@ckeditor/ckeditor5-track-changes 43.2.0-alpha.5 → 43.2.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x26a770,PendingActions as _0x34b6d6,icons as _0x320a23}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x13c5a0,ObservableMixin as _0x334129,uid as _0x4f54ad,insertToPriorityArray as _0x3966af,priorities as _0x5b8cf7,logWarning as _0x1cc79c,getEnvKeystrokeText as _0x1eb9f0,FocusTracker as _0xf9b9a0,KeystrokeHandler as _0x368b70,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5698c1,View as _0x2e19fa,ViewCollection as _0x5f28e2,FocusCycler as _0x1f890a,ViewModel as _0x21730f,createDropdown as Qt,SplitButtonView as _0xa80728,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x5180ba}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x53b94d,hashObject as _0x179626,surroundingMarkersDetector as _0x461878,FOCUS_ANNOTATION_KEYSTROKE as _0x5dadca,AriaDescriptionView as _0x77bd41,setupThreadKeyboardNavigation as _0x5d7def,trimHtml as _0x5558c6,UserView as _0x188458,LateFocusButtonView as _0x35c314,getDateTimeFormatter as _0x5c98ba,getAllMarkersDomElementsSorted as _0x36ddf0,sanitizeEditorConfig as _0xeb5872}from'ckeditor5-collaboration/dist/index.js';import{Element as _0xabfdd,LiveRange as _0x7da4c9,LivePosition as _0x3940dc}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x43adf1,toWidget as _0x5c582a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x244c61,set as _0x1b4d20,isEqual as _0x19ae42,unset as _0x216d45,omit as Tt}from'lodash-es';import{Delete as _0x233af2,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4eb9ba,ShiftEnter as _0x12f81c}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x33b609,_0x26ecd3){super(_0x33b609),this['_enabledCommands']=_0x26ecd3,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 _0x327891 of this['editor']['commands']['commands']())_0x327891['affectsData']&&!this['_enabledCommands']['has'](_0x327891)&&_0x327891['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x251b3a of this['editor']['commands']['commands']())_0x251b3a['affectsData']&&!this['_enabledCommands']['has'](_0x251b3a)&&_0x251b3a['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x11b2f8,_0x5e58c2){super(_0x11b2f8),this['_suggestions']=_0x5e58c2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x13774a){const _0x2f5114=this['_suggestions']['get'](_0x13774a);if(!_0x2f5114)throw new _0x13c5a0('track-changes-accept-suggestion-not-found',this);const _0x443c70=_0x2f5114['getRanges']();this['editor']['model']['canEditAt'](_0x443c70)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2f5114);}}class R extends ts{['_suggestions'];constructor(_0x4e3a27,_0x4b9a32){super(_0x4e3a27),this['_suggestions']=_0x4b9a32,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x293f8c){const _0xaa3de6=this['_suggestions']['get'](_0x293f8c);if(!_0xaa3de6)throw new _0x13c5a0('track-changes-discard-suggestion-not-found',this);const _0x23a243=_0xaa3de6['getRanges']();this['editor']['model']['canEditAt'](_0x23a243)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xaa3de6);}}function ls(_0x2f7d79,_0x23ee61){let _0x17ee2d='';return _0x17ee2d+=_0x2f7d79['split']('*')['map']((_0x4f7328,_0x58d30f)=>_0x58d30f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4f7328)+'</span>':nn(_0x4f7328))['join'](''),_0x23ee61&&(_0x17ee2d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x23ee61['value']+'\x22\x20title=\x22'+_0x23ee61['title']+'\x22></span>'),_0x17ee2d;}function nn(_0x310362){const _0x48b243=document['createElement']('span');return _0x48b243['innerText']=_0x310362,_0x48b243['innerHTML'];}function ss(_0xc2d1b5){return _0xc2d1b5['sort']((_0x33653c,_0xa33fee)=>'deletion'==_0x33653c['type']&&'deletion'!=_0xa33fee['type']?-0x1:'deletion'!=_0x33653c['type']&&'deletion'==_0xa33fee['type']?0x1:0x0);}function to(_0x287e2d,_0x3de0f7){let _0x40b722,_0x16663b=0x0;const _0x58b597=[],_0x3e15db=_0x3de0f7['schema'];for(;_0x16663b<_0x287e2d['length'];){const _0x496185=_0x287e2d[_0x16663b],_0x4a2ed8=_0x287e2d[_0x16663b+0x1];_0x40b722||(_0x40b722=_0x3de0f7['createPositionBefore'](_0x496185)),on(_0x3de0f7,_0x496185,_0x4a2ed8)||(_0x58b597['push'](_0x3de0f7['createRange'](_0x40b722,_0x3e15db['isObject'](_0x496185)?_0x3de0f7['createPositionAfter'](_0x496185):_0x3de0f7['createPositionAt'](_0x496185,'end'))),_0x40b722=null),_0x16663b++;}return _0x58b597;}function on(_0x152d49,_0x500116,_0x18dabb){if(!_0x18dabb)return!0x1;const _0x5721a3=_0x152d49['createPositionAfter'](_0x500116),_0x47d27a=_0x152d49['createPositionBefore'](_0x18dabb);return _0x5721a3['isTouching'](_0x47d27a);}function rs(_0x7d27c8,_0x544a96,_0x323806){for(;_0x323806['length'];){const _0x348bf8=_0x323806['splice'](0x0,0x64);_0x7d27c8['change'](()=>{for(const _0x58989a of _0x348bf8)_0x58989a['isInContent']&&_0x544a96['execute'](_0x58989a['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x44fea6,_0x482147,_0x51adc1){super(_0x44fea6),this['_command']=_0x482147,this['_suggestions']=_0x51adc1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x38b21f=Array['from'](this['_suggestions']['values']())['some'](_0x38b0b9=>_0x38b0b9['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x38b21f;}['execute'](){const _0x35a78a=ss(Array['from'](this['_suggestions']['values']()));for(const _0x4b3dc4 of _0x35a78a){const _0x861639=_0x4b3dc4['getRanges']();if(!this['editor']['model']['canEditAt'](_0x861639))return;}rs(this['editor']['model'],this['_command'],_0x35a78a);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x398495,_0x381861,_0x1d1beb){super(_0x398495),this['_command']=_0x381861,this['_suggestions']=_0x1d1beb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x117147=this['editor']['model']['document']['selection'],_0xc71918=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2fe518,_0x4a897e){const _0x6cc77=Array['from'](_0x2fe518['getRanges']()),_0x7a9aa=new Set();for(const _0x331239 of _0x4a897e)if(_0x331239['isInContent']){for(const _0x3560ba of _0x6cc77)for(const _0x3d222f of _0x331239['getRanges']())(_0x3560ba['isIntersecting'](_0x3d222f)||_0x2fe518['isCollapsed']&&!_0x331239['isMultiRange']&&_0x331239['next']&&_0x3d222f['end']['isTouching'](_0x3560ba['start']))&&_0x7a9aa['add'](_0x331239);}return _0x7a9aa;}(_0x117147,_0xc71918),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x28641a=ss(Array['from'](this['_selectedSuggestions']));for(const _0x288090 of _0x28641a){const _0x13b107=_0x288090['getRanges']();if(!this['editor']['model']['canEditAt'](_0x13b107))return;}rs(this['editor']['model'],this['_command'],_0x28641a);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x334129(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3830cf,_0x3d740b){super(),this['id']=_0x3d740b['id'],this['type']=_0x3d740b['type'],this['subType']=_0x3d740b['subType']||null,this['author']=_0x3d740b['author'],this['creator']=_0x3d740b['creator']||_0x3d740b['author'],this['isExternal']=Boolean(_0x3d740b['attributes']&&_0x3d740b['attributes']['@external']),this['data']=null,this['_model']=_0x3830cf,this['_onAccept']=_0x3d740b['onAccept'],this['_onDiscard']=_0x3d740b['onDiscard'],this['_onAttributesChange']=_0x3d740b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3d740b['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 _0x43b8f0=this;for(;_0x43b8f0['previous'];)_0x43b8f0=_0x43b8f0['previous'];return _0x43b8f0;}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'](_0x4d223e){this['_markerNames']['add'](_0x4d223e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x459a16=>this['_model']['markers']['get'](_0x459a16))['filter'](_0x569dba=>_0x569dba);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4c1a48=>{for(const _0x25256f of this['getMarkers']())_0x4c1a48['removeMarker'](_0x25256f);}),this['_markerNames']['clear']();}['removeMarker'](_0x7e0d21){this['_model']['change'](_0x38dc1d=>{_0x38dc1d['removeMarker'](_0x7e0d21);}),this['_markerNames']['delete'](_0x7e0d21);}['addRange'](_0x27f8a9){const _0x3a687f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3a687f),this['_model']['change'](_0x2e2e98=>{_0x2e2e98['addMarker'](_0x3a687f,{'range':_0x27f8a9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x16242b){for(const _0x48d29e of this['getRanges']())if(_0x48d29e['isIntersecting'](_0x16242b))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x33a9ae=>_0x33a9ae['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x296e91,_0xda400a)=>[..._0x296e91,..._0xda400a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1a887a=this['getRanges']();if(0x1!=_0x1a887a['length'])return null;const _0x11acf4=_0x1a887a[0x0],_0x4dd9cd=_0x11acf4['start']['nodeAfter'],_0x2a3c17=_0x11acf4['end']['nodeBefore'];return _0x4dd9cd instanceof _0xabfdd?_0x4dd9cd!=_0x2a3c17?null:_0x4dd9cd: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 _0xd6bf5a=[];let _0x1b6a4c=this['head'];for(;_0x1b6a4c;)_0xd6bf5a['push'](_0x1b6a4c),_0x1b6a4c=_0x1b6a4c['next'];return _0xd6bf5a;}['setAttribute'](_0xaced97,_0x67b9b5){const _0x4f0a2c=_0x244c61(this['attributes']);_0x1b4d20(_0x4f0a2c,_0xaced97,_0x67b9b5),_0x19ae42(_0x4f0a2c,this['attributes'])||(this['attributes']=_0x4f0a2c,this['_onAttributesChange'](_0x4f0a2c));}['removeAttribute'](_0x3300d6){const _0x38b594=_0x244c61(this['attributes']);_0x216d45(_0x38b594,_0x3300d6),_0x19ae42(_0x38b594,this['attributes'])||(this['attributes']=_0x38b594,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 _0x4f54ad()['substr'](0x1,0x5);}}function o(_0x164164,_0x3a20c8,_0x110304){const t=_0x164164['t'];switch(_0x3a20c8){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x110304);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x110304);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x110304);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x110304);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x110304);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',_0x110304);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x110304);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x110304);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x110304);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x110304);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x110304);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x110304);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x110304);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x110304);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x110304);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x110304);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x110304);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x110304);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x110304);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x110304);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x110304);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x110304);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x110304);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'},_0x110304);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x110304);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x110304);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x110304);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x110304);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x110304);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'},_0x110304);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x110304);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x110304);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x110304);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x110304);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x110304);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x110304);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'},_0x110304);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x110304);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x110304);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'},_0x110304);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x110304);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'},_0x110304);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x110304);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x110304);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'},_0x110304);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x110304);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x110304);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x110304);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'},_0x110304);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'},_0x110304);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'},_0x110304);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3a20c8;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4ab207,_0x22f7bd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4ab207,this['_locale']=_0x22f7bd;}['getDescriptions'](_0x11b208){const _0x414b47=[],_0x394a11=new Set(),_0x40398e=new Set();for(let _0x5393ca=0x0;_0x5393ca<_0x11b208['length'];_0x5393ca++){const _0x323fff=_0x11b208[_0x5393ca];if(!_0x323fff['isInContent'])continue;const _0x5489e6=this['_handleCustomCallbackDescription'](_0x323fff);if(_0x5489e6){if(null!=_0x323fff['subType']){if(_0x394a11['has'](_0x323fff['subType']))continue;_0x394a11['add'](_0x323fff['subType']);}_0x414b47['push'](_0x5489e6);}else{if('attribute'!=_0x323fff['type'])'insertion'!=_0x323fff['type']&&'deletion'!=_0x323fff['type']||this['_handleInsertRemoveSuggestionDescription'](_0x414b47,_0x323fff,_0x11b208[_0x5393ca+0x1]);else{const _0x177170=_0x323fff['data']['key'];if(_0x40398e['has'](_0x177170))continue;_0x40398e['add'](_0x323fff['data']['key']),_0x177170==m?this['_handleRenameSuggestionDescription'](_0x414b47,_0x323fff):this['_handleAttributeSuggestionDescription'](_0x414b47,_0x323fff);}}}return this['_resolveDescriptionItems'](_0x414b47);}['registerDescriptionCallback'](_0x3bd280){this['_customCallbacks']['push'](_0x3bd280);}['registerElementLabel'](_0x22252b,_0x5e337e,_0x401a8e=_0x5b8cf7['normal']){'function'==typeof _0x22252b?_0x3966af(this['_itemLabelsCallbacks'],{'matchingCallback':_0x22252b,'label':_0x5e337e,'priority':_0x401a8e}):this['_itemLabels']['set'](_0x22252b,_0x5e337e);}['registerAttributeLabel'](_0x162dd7,_0x1b7920){this['_attributeLabels']['set'](_0x162dd7,_0x1b7920);}['getItemLabel'](_0x32a68c,_0x6fb261=0x1){let _0x5a1048;for(const _0x4fcba4 of this['_itemLabelsCallbacks'])if(_0x4fcba4['matchingCallback'](_0x32a68c)){_0x5a1048=_0x4fcba4['label'];break;}return _0x5a1048||(_0x5a1048=this['_itemLabels']['get'](_0x32a68c['name'])),_0x5a1048?_0x5a1048(_0x6fb261):0x1!==_0x6fb261?_0x6fb261+'\x20'+_0x32a68c['name']+'s':''+_0x32a68c['name'];}['_addDescriptionItems'](_0x4b9c94,_0x351e09){const _0x1b536c=_0x351e09['getFirstRange']()['getWalker'](),_0x68f080='insertion'==_0x351e09['type']?'add':'remove';for(const _0x386615 of _0x1b536c){const _0x4405fa=_0x386615['item'],_0x2e6edf=_0x4b9c94[_0x4b9c94['length']-0x1];if(_0x4405fa['is']('$textProxy'))_0x2e6edf&&_0x2e6edf['type']['indexOf']('Container')>-0x1&&_0x4b9c94['pop'](),_0x2e6edf&&'text'==_0x2e6edf['type']?_0x2e6edf[_0x68f080]+=_0x4405fa['data']:_0x4b9c94['push']({'type':'text','add':'add'==_0x68f080?_0x4405fa['data']:'','remove':'remove'==_0x68f080?_0x4405fa['data']:''});else{if(this['_schema']['isObject'](_0x4405fa)){const _0x5f2a28=_0x4405fa;if(_0x2e6edf&&_0x2e6edf['type']['indexOf']('Container')>-0x1&&_0x4b9c94['pop'](),'elementEnd'==_0x386615['type'])continue;_0x2e6edf&&_0x2e6edf['type']==_0x68f080+'Object'&&_0x2e6edf['element']['name']==_0x5f2a28['name']?_0x2e6edf['quantity']++:_0x4b9c94['push']({'type':_0x68f080+'Object','element':_0x5f2a28,'quantity':0x1}),_0x1b536c['skip'](_0x50eaeb=>!('elementEnd'==_0x50eaeb['type']&&_0x50eaeb['item']==_0x4405fa));}else{if(this['_schema']['checkChild'](_0x4405fa,'$text')||_0x4405fa['is']('element','softBreak')){const _0xa1cd1d=_0x4405fa;if('add'==_0x68f080&&'elementStart'==_0x386615['type']||'remove'==_0x68f080&&'elementEnd'==_0x386615['type'])continue;if(_0x2e6edf&&-0x1==_0x2e6edf['type']['indexOf']('Container')){'text'==_0x2e6edf['type']&&(_0x2e6edf[_0x68f080]+='\x0a');continue;}let _0x461299;if(_0x461299='add'==_0x68f080?_0xa1cd1d['nextSibling']&&!this['_schema']['isObject'](_0xa1cd1d['nextSibling'])?_0xa1cd1d['nextSibling']:null:_0xa1cd1d['previousSibling']&&!this['_schema']['isObject'](_0xa1cd1d['previousSibling'])?_0xa1cd1d['previousSibling']:null,_0xa1cd1d['isEmpty']||_0x461299&&_0x461299['isEmpty']){const _0x5a2a9b=_0x461299&&_0x461299['isEmpty']?_0x461299:_0xa1cd1d;_0x2e6edf&&_0x2e6edf['type']==_0x68f080+'EmptyContainer'&&_0x2e6edf['element']['name']==_0x5a2a9b['name']?_0x2e6edf['quantity']++:_0x4b9c94['push']({'type':_0x68f080+'EmptyContainer','element':_0x5a2a9b,'quantity':0x1});}else _0x4b9c94['push']({'type':_0x68f080+'Container','element':_0xa1cd1d});}}}}}['_resolveDescriptionItems'](_0xb7509a){const _0x38ee85=this['_locale'],_0xd799b9=[],_0x468ee5=[],_0x50e566=[];for(const _0x2984a9 of _0xb7509a)switch(_0x2984a9['type']){case'text':if(_0x2984a9['add']=_0x2984a9['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2984a9['remove']=_0x2984a9['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2984a9['add']&&''!=_0x2984a9['remove']){_0xd799b9['push']({'type':'replace','content':o(_0x38ee85,'REPLACE_TEXT',['\x22'+_0x2984a9['remove']+'\x22','\x22'+_0x2984a9['add']+'\x22'])});continue;}if(null!=_0x2984a9['add']['match'](/^ +$/)){_0xd799b9['push']({'type':'insertion','content':o(_0x38ee85,'*Insert:*\x20%0',o(_0x38ee85,'ELEMENT_SPACE',_0x2984a9['add']['length']))});continue;}if(null!=_0x2984a9['remove']['match'](/^ +$/)){_0xd799b9['push']({'type':'deletion','content':o(_0x38ee85,'*Remove:*\x20%0',o(_0x38ee85,'ELEMENT_SPACE',_0x2984a9['remove']['length']))});continue;}if(''!=_0x2984a9['add']){_0xd799b9['push']({'type':'insertion','content':o(_0x38ee85,'*Insert:*\x20%0','\x22'+_0x2984a9['add']+'\x22')});continue;}_0xd799b9['push']({'type':'deletion','content':o(_0x38ee85,'*Remove:*\x20%0','\x22'+_0x2984a9['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xd799b9['push']({'type':'insertion','content':o(_0x38ee85,'*Insert:*\x20%0',this['getItemLabel'](_0x2984a9['element'],_0x2984a9['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xd799b9['push']({'type':'deletion','content':o(_0x38ee85,'*Remove:*\x20%0',this['getItemLabel'](_0x2984a9['element'],_0x2984a9['quantity']))});continue;case'addContainer':_0xd799b9['push']({'type':'insertion','content':o(_0x38ee85,'*Split:*\x20%0',this['getItemLabel'](_0x2984a9['element'],_0x2984a9['quantity']))});continue;case'removeContainer':_0xd799b9['push']({'type':'deletion','content':o(_0x38ee85,'*Merge:*\x20%0',this['getItemLabel'](_0x2984a9['element'],_0x2984a9['quantity']))});continue;case'addFormat':_0x468ee5['push'](_0x2984a9['key']);continue;case'removeFormat':_0x50e566['push'](_0x2984a9['key']);continue;default:_0xd799b9['push'](_0x2984a9);}if(_0x468ee5['length']){const _0x42cbf6=_0x468ee5['map'](_0x31aa64=>this['_attributeLabels']['has'](_0x31aa64)?this['_attributeLabels']['get'](_0x31aa64):_0x31aa64)['join'](',\x20');_0xd799b9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x42cbf6)});}if(_0x50e566['length']){const _0xf7f254=_0x50e566['map'](_0x483be9=>this['_attributeLabels']['has'](_0x483be9)?this['_attributeLabels']['get'](_0x483be9):_0x483be9)['join'](',\x20');_0xd799b9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xf7f254)});}return _0xd799b9;}['_handleCustomCallbackDescription'](_0x4a0d28){for(const _0x182ad6 of this['_customCallbacks']){const _0x27bee7=_0x182ad6(_0x4a0d28);if(_0x27bee7&&'type'in _0x27bee7)return _0x27bee7;}}['_handleAttributeSuggestionDescription'](_0x187639,_0x2b48f9){const _0xf48f35=_0x2b48f9['data'],_0x19894e=void 0x0===_0xf48f35['newValue']?'removeFormat':'addFormat';_0x187639['push']({'type':_0x19894e,'key':_0xf48f35['key']});}['_handleRenameSuggestionDescription'](_0x36d20e,_0x41de5c){_0x36d20e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x41de5c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5ad0d8,_0x555a66,_0x1045b0){if(this['_addDescriptionItems'](_0x5ad0d8,_0x555a66),_0x1045b0&&_0x1045b0['getFirstRange']()&&!_0x555a66['getFirstRange']()['end']['isEqual'](_0x1045b0['getFirstRange']()['start'])){const _0x207ab4=_0x5ad0d8[_0x5ad0d8['length']-0x1],_0xddf06='insertion'==_0x555a66['type']?'add':'remove';_0x207ab4&&'text'==_0x207ab4['type']&&(_0x207ab4[_0xddf06]+='\x0a');}}}class V extends _0x26a770{['afterInit'](){const _0x43c9af=this['editor'],_0x12c7d0=_0x43c9af['plugins']['get']('TrackChangesEditing');_0x43c9af['commands']['get']('showAIAssistant')&&_0x12c7d0['enableCommand']('showAIAssistant');}}class U extends _0x26a770{['afterInit'](){const _0x2b29e4=this['editor'],_0x43e703=_0x2b29e4['locale'];if(!_0x2b29e4['plugins']['has']('AlignmentEditing'))return;const _0x5077fd=_0x2b29e4['plugins']['get']('TrackChangesEditing');_0x5077fd['enableDefaultAttributesIntegration']('alignment'),_0x5077fd['registerBlockAttribute']('alignment'),_0x5077fd['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x43e703,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe5e509=this['editor'],_0x7f7d04=_0xe5e509['locale'];_0xe5e509['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22bad4=>{if('formatBlock'!=_0x22bad4['type'])return;const {data:_0x5422ea}=_0x22bad4;if(_0x5422ea&&'alignment'==_0x5422ea['commandName']){const _0x5d85eb=_0x5422ea['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x7f7d04,'*Format:*\x20%0',function(_0x233a6b){switch(_0x233a6b){case'left':return o(_0x7f7d04,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x7f7d04,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x7f7d04,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x7f7d04,'FORMAT_JUSTIFY_TEXT');}}(_0x5d85eb))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x26a770{['afterInit'](){const _0x57daab=this['editor'],_0x3aac01=_0x57daab['plugins']['get']('TrackChangesEditing'),_0x9c9b47=_0x57daab['locale'];for(const _0x2fbbc7 of ti){if(!_0x57daab['plugins']['has'](_0x2fbbc7))continue;const _0x3ae791=_0x2fbbc7['slice'](0x0,-0x7)['toLowerCase'](),_0x33f742='FORMAT_'+_0x3ae791['toUpperCase']();_0x3aac01['enableDefaultAttributesIntegration'](_0x3ae791),_0x3aac01['registerInlineAttribute'](_0x3ae791),_0x3aac01['descriptionFactory']['registerAttributeLabel'](_0x3ae791,o(_0x9c9b47,_0x33f742));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ccba6=this['editor'],_0x497fb3=_0x4ccba6['locale'],_0x4b3756=_0x4ccba6['plugins']['get']('TrackChangesEditing');function _0x1d7069(_0x2d7e74,_0x3c62db){_0x4b3756['descriptionFactory']['registerDescriptionCallback'](_0x46bbd1=>{if('formatInline'!=_0x46bbd1['type'])return;const {data:_0x595a29}=_0x46bbd1;return _0x595a29&&_0x595a29['commandName']===_0x2d7e74?_0x595a29['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x497fb3,'*Format:*\x20%0',_0x3c62db)}:{'type':'format','content':o(_0x497fb3,'*Remove\x20format:*\x20%0',_0x3c62db)}:void 0x0;});}_0x1d7069('bold',o(_0x497fb3,'FORMAT_BOLD')),_0x1d7069('italic',o(_0x497fb3,'FORMAT_ITALIC')),_0x1d7069('underline',o(_0x497fb3,'FORMAT_UNDERLINE')),_0x1d7069('code',o(_0x497fb3,'FORMAT_CODE')),_0x1d7069('strikethrough',o(_0x497fb3,'FORMAT_STRIKETHROUGH')),_0x1d7069('subscript',o(_0x497fb3,'FORMAT_SUBSCRIPT')),_0x1d7069('superscript',o(_0x497fb3,'FORMAT_SUPERSCRIPT'));}}class F extends _0x26a770{['afterInit'](){const _0x4b1e35=this['editor'],_0x188f9f=_0x4b1e35['locale'];if(!_0x4b1e35['plugins']['has']('BlockQuoteEditing'))return;const _0x5132fc=_0x4b1e35['plugins']['get']('TrackChangesEditing'),_0x4226f9=this['editor']['commands']['get']('blockQuote');_0x5132fc['enableCommand']('blockQuote',(_0xc5446e,_0x53f532={})=>{const _0x1a5b9e=this['editor']['model']['document']['selection'],_0x119760=_0x53f532&&void 0x0!==_0x53f532['forceValue']?_0x53f532['forceValue']:!_0x4226f9['value'];let _0x4b834b=[];if(_0x119760){const _0x1be080=Array['from'](_0x1a5b9e['getSelectedBlocks']())['filter'](_0x220037=>oo(_0x220037)||function(_0x1984ca,_0x19aaa3){const _0x3aacb6=_0x19aaa3['checkChild'](_0x1984ca['parent'],'blockQuote'),_0x4c3773=_0x19aaa3['checkChild'](['$root','blockQuote'],_0x1984ca);return _0x3aacb6&&_0x4c3773;}(_0x220037,this['editor']['model']['schema']));_0x4b834b=to(_0x1be080,_0x4b1e35['model']);}else{const _0x2bdc25=Array['from'](_0x1a5b9e['getSelectedBlocks']())['filter'](_0x217939=>oo(_0x217939));_0x4b834b=to(_0x2bdc25,_0x4b1e35['model']);}_0x4b1e35['model']['change'](()=>{for(const _0x4eddc3 of _0x4b834b)_0x5132fc['markBlockFormat'](_0x4eddc3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x119760}]});});}),_0x5132fc['descriptionFactory']['registerDescriptionCallback'](_0x5c1fb8=>{const {data:_0x7e032e}=_0x5c1fb8;if(_0x7e032e&&'blockQuote'==_0x7e032e['commandName']){const _0x5470d5=o(_0x188f9f,'ELEMENT_BLOCK_QUOTE');return _0x7e032e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x188f9f,'*Set\x20format:*\x20%0',_0x5470d5)}:{'type':'format','content':o(_0x188f9f,'*Remove\x20format:*\x20%0',_0x5470d5)};}});}}function oo(_0x2983e5){return'blockQuote'==_0x2983e5['parent']['name'];}class L extends _0x26a770{['afterInit'](){const _0x4e387c=this['editor'];_0x4e387c['plugins']['has']('CaseChange')&&(_0x4e387c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4e387c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4e387c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x26a770{['afterInit'](){const _0x5c1aa4=this['editor'];_0x5c1aa4['commands']['get']('ckbox')&&_0x5c1aa4['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x26a770{['afterInit'](){const _0x185f39=this['editor'];if(!_0x185f39['plugins']['has']('CodeBlock'))return;const _0x21bc96=_0x185f39['plugins']['get']('TrackChangesEditing'),_0x294976=_0x185f39['locale'],_0x558f4c=_0x185f39['config']['get']('codeBlock')['languages'],_0x571b27=_0x185f39['commands']['get']('codeBlock');_0x21bc96['enableCommand']('indentCodeBlock'),_0x21bc96['enableCommand']('outdentCodeBlock'),_0x21bc96['enableCommand']('codeBlock',(_0x4edb27,_0x2bc0c7={})=>{const _0x569348=_0x185f39['model'],_0x2e71f1=_0x185f39['model']['document']['selection'],_0x47261a=_0x2bc0c7&&void 0x0!==_0x2bc0c7['forceValue']?_0x2bc0c7['forceValue']:!_0x571b27['value'];let _0x3d1089;_0x2bc0c7['language']||(_0x2bc0c7['language']=_0x558f4c[0x0]['language']),_0x3d1089=_0x47261a?Array['from'](_0x2e71f1['getSelectedBlocks']())['filter'](_0x3940c0=>eo(_0x3940c0)||function(_0x30a1e5,_0xc95fdf){if(_0x30a1e5['is']('rootElement')||_0xc95fdf['isLimit'](_0x30a1e5))return!0x1;return _0xc95fdf['checkChild'](_0x30a1e5['parent'],'codeBlock');}(_0x3940c0,_0x569348['schema'])):Array['from'](_0x2e71f1['getSelectedBlocks']())['filter'](_0x5e1e66=>eo(_0x5e1e66));const _0x4541ec=to(_0x3d1089,_0x569348);_0x569348['change'](()=>{for(const _0x467302 of _0x4541ec)_0x21bc96['markBlockFormat'](_0x467302,{'commandName':'codeBlock','commandParams':[{..._0x2bc0c7,'forceValue':_0x47261a}],'formatGroupId':'blockName'});});}),(_0x21bc96['descriptionFactory']['registerElementLabel']('codeBlock',_0x1d08ec=>o(_0x294976,'ELEMENT_CODE_BLOCK',_0x1d08ec)),_0x21bc96['descriptionFactory']['registerDescriptionCallback'](_0x44e01b=>{if('formatBlock'!=_0x44e01b['type'])return;const _0x204c00=_0x294976['t'],{data:_0x269136}=_0x44e01b;if(!_0x269136||'codeBlock'!=_0x269136['commandName'])return;const _0x254c98=_0x269136['commandParams'][0x0]['language'],_0x4554e0=_0x204c00(_0x558f4c['find'](_0x25efd2=>_0x25efd2['language']===_0x254c98)['label'])['toLowerCase']();return _0x269136['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x294976,'*Set\x20format:*\x20%0',o(_0x294976,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4554e0+')')}:{'type':'format','content':o(_0x294976,'*Remove\x20format:*\x20%0',o(_0x294976,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5c3fe3){return'codeBlock'==_0x5c3fe3['name'];}class q extends _0x26a770{['afterInit'](){const _0x30e68b=this['editor'];if(!_0x30e68b['plugins']['has']('CommentsEditing'))return;_0x30e68b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x17530a,_0x4a34ae,_0x28bb22){const _0x5336e4=[];for(const _0x14e03a of _0x4a34ae['getItems']())_0x14e03a['hasAttribute'](_0x17530a)&&_0x5336e4['push'](_0x28bb22['createRangeOn'](_0x14e03a));return _0x5336e4;}function _e(_0x129977,_0x3cd6a0,{showActiveMarker:_0x5a1a24=!0x0}={}){const _0x10a282=_0x129977['plugins']['get']('TrackChangesEditing');return(_0x312fe5,_0x9c6372,_0x4a0e7d)=>{if(!_0x4a0e7d['consumable']['test'](_0x9c6372['markerRange'],_0x312fe5['name']))return;const _0x39fcba=_0x9c6372['markerRange']['getWalker'](),_0x4bb838=_0x9c6372['markerRange']['start'],_0x39681f=_0x129977['model']['schema'];let _0x333a26=null,_0x3a3670=null,_0x4db955=!0x1,_0x405cff=!0x1;for(const _0xd04a4c of _0x39fcba){const _0x21ab8c=_0xd04a4c['item'];_0x4db955=_0x4db955||_0x39681f['isContent'](_0x21ab8c);const _0x1933c7=_0x4a0e7d['mapper']['toViewElement'](_0x21ab8c);if(_0x1933c7&&_0x1933c7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xd04a4c['type']&&(_0x39681f['isBlock'](_0x21ab8c)&&!_0x39681f['isLimit'](_0x21ab8c)&&(_0x21ab8c['nextSibling']||_0x4bb838['isAtEnd']?_0x333a26&&_0x333a26['parent']==_0x21ab8c||(_0x333a26=_0x21ab8c,_0x81f0e4(_0xd04a4c['previousPosition']),_0x405cff=!0x0):_0x3a3670=_0x3a3670||_0xd04a4c['previousPosition']));}function _0x81f0e4(_0xaa2ccc){const {authorId:_0x452e47}=_0x10a282['_splitMarkerName'](_0x9c6372['markerName']),_0xb930b0=_0x4a0e7d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3cd6a0,'data-author-id':_0x452e47}),_0x31e15c=_0x4a0e7d['mapper']['toViewPosition'](_0xaa2ccc);_0x5a1a24&&_0x10a282['activeMarkers']['includes'](_0x9c6372['markerName'])&&_0x4a0e7d['writer']['addClass']('ck-suggestion-marker--active',_0xb930b0),_0x4a0e7d['writer']['insert'](_0x31e15c,_0xb930b0),_0x4a0e7d['mapper']['bindElementToMarker'](_0xb930b0,_0x9c6372['markerName']);}_0x4db955||_0x405cff||!_0x3a3670||_0x81f0e4(_0x3a3670);};}class z extends _0x26a770{static get['requires'](){return[_0x233af2];}['init'](){const _0x45bbb6=this['editor'],_0x40966d=_0x45bbb6['plugins']['get']('TrackChangesEditing');_0x40966d['enableCommand']('delete');const _0x3ca1b5=_0x45bbb6['commands']['get']('deleteForward');_0x40966d['enableCommand']('deleteForward',(_0x277647,_0x17872f={})=>{const _0x51e843=_0x45bbb6['model']['createSelection'](_0x45bbb6['model']['document']['selection']);_0x51e843['isCollapsed']&&_0x45bbb6['model']['modifySelection'](_0x51e843,{'direction':'forward','unit':_0x17872f['unit']});const _0x1a4615=_0x51e843['getFirstRange'](),_0xb7b5a3=_0x7da4c9['fromRange'](_0x1a4615);let _0x161fb0;_0x277647(_0x17872f),_0x161fb0='$graveyard'==_0xb7b5a3['root']['rootName']?_0x45bbb6['model']['createRange'](_0x1a4615['start']):_0x45bbb6['model']['createRange'](_0xb7b5a3['start'],_0xb7b5a3['end']),_0xb7b5a3['detach'](),_0x45bbb6['model']['enqueueChange'](_0x3ca1b5['buffer']['batch'],_0x5b79af=>{_0x3ca1b5['buffer']['lock'](),_0x5b79af['setSelection'](_0x5b79af['createRange'](_0x161fb0['end'])),_0x3ca1b5['buffer']['unlock']();});}),_0x45bbb6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x45bbb6,'merge'),{'priority':'high'}),_0x45bbb6['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x21591d,_0x493866,_0x46dd46)=>{_0x46dd46['options']['showSuggestionHighlights']&&_e(_0x45bbb6,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x21591d,_0x493866,_0x46dd46);},{'priority':'high'}),_0x45bbb6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x42da4c,_0x29440c,_0x11a9ff)=>{const _0x503a06=_0x11a9ff['mapper']['markerNameToElements'](_0x29440c['markerName']);if(_0x503a06){for(const _0x445528 of _0x503a06)_0x445528['is']('uiElement')&&(_0x11a9ff['mapper']['unbindElementFromMarkerName'](_0x445528,_0x29440c['markerName']),_0x11a9ff['writer']['remove'](_0x445528));}},{'priority':'high'});}}class K extends _0x26a770{['afterInit'](){const _0x3dbdd8=this['editor'];if(!_0x3dbdd8['plugins']['has']('ListEditing'))return;const _0x48d7cd=_0x3dbdd8['locale'],_0xc6804c=_0x3dbdd8['plugins']['get']('TrackChangesEditing'),_0x14cd6f=_0x3dbdd8['plugins']['has']('TodoListEditing'),_0x2f171b=!!_0x3dbdd8['config']['get']('list.multiBlock');function _0x3ff197(_0x678d61){return{'type':'format','content':''+o(_0x48d7cd,'*Set\x20format:*\x20%0',_0x678d61)};}function _0x1fe89f(_0x29ff88){return{'type':'format','content':''+o(_0x48d7cd,'*Remove\x20format:*\x20%0',_0x29ff88)};}_0xc6804c['enableDefaultAttributesIntegration']('numberedList'),_0xc6804c['enableDefaultAttributesIntegration']('bulletedList'),_0xc6804c['enableDefaultAttributesIntegration']('customNumberedList'),_0xc6804c['enableDefaultAttributesIntegration']('customBulletedList'),_0xc6804c['enableDefaultAttributesIntegration']('indentList'),_0xc6804c['enableDefaultAttributesIntegration']('outdentList'),_0xc6804c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xc6804c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xc6804c['registerBlockAttribute']('listItemId'),_0xc6804c['registerBlockAttribute']('listType'),_0xc6804c['registerBlockAttribute']('listIndent'),_0x2f171b&&(_0xc6804c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xc6804c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x14cd6f&&(_0xc6804c['enableDefaultAttributesIntegration']('todoList'),_0xc6804c['enableDefaultAttributesIntegration']('checkTodoList'),_0xc6804c['registerBlockAttribute']('todoListChecked'),_0xc6804c['descriptionFactory']['registerDescriptionCallback'](_0x5bdfb2=>{const {data:_0x2df04e}=_0x5bdfb2;if(_0x2df04e&&'todoListChecked'==_0x2df04e['key'])return{'type':'format','content':_0x2df04e['newValue']?o(_0x48d7cd,'*Check\x20item*'):o(_0x48d7cd,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x39ed26=>{if(_0x39ed26['batch']['isUndo'])return!0x1;let _0x3a842a=!0x1;const _0x1eea34=_0xc6804c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d2b92=>'todoListChecked'===_0xc6804c['_getAttributeKey'](_0x3d2b92));for(const _0x287205 of _0x1eea34){'todo'!=_0x287205['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xc6804c['_findSuggestions'](_0x287205['getFirstRange'](),'attribute')['find'](_0x93de43=>'listType'===_0xc6804c['_getAttributeKey'](_0x93de43['suggestion']))||(_0x39ed26['removeMarker'](_0x287205['getFirstMarker']()),_0x3a842a=!0x0));}return _0x3a842a;})),_0xc6804c['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x48d7cd,'FORMAT_INDENT'));const _0x435a5d={'type':'format','content':''};_0xc6804c['descriptionFactory']['registerDescriptionCallback'](_0x39b7de=>{const {data:_0x4210db}=_0x39b7de;if(!_0x4210db||'listType'!=_0x4210db['key'])return;let _0x352b90=_0x39b7de['head'];for(;_0x352b90;){if(_0x352b90['data']&&(('listStyle'==_0x352b90['data']['key']||'listMarkerStyle'==_0x352b90['data']['key'])&&(_0x352b90['data']['newValue']&&'default'!=_0x352b90['data']['newValue']||'default'!=_0x352b90['data']['oldValue']&&!_0x4210db['newValue'])||!_0x2f171b&&_0x352b90['data']['key']==m))return _0x435a5d;_0x352b90=_0x352b90['next'];}if(null==_0x4210db['newValue'])switch(_0x4210db['oldValue']){case'bulleted':return _0x1fe89f(o(_0x48d7cd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1fe89f(o(_0x48d7cd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1fe89f(o(_0x48d7cd,'ELEMENT_TODO_LIST'));}switch(_0x4210db['newValue']){case'bulleted':return _0x3ff197(o(_0x48d7cd,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3ff197(o(_0x48d7cd,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3ff197(o(_0x48d7cd,'ELEMENT_TODO_LIST'));}}),_0xc6804c['descriptionFactory']['registerDescriptionCallback'](_0x269f35=>{const {data:_0x713112}=_0x269f35;if(_0x713112&&'listIndent'==_0x713112['key'])return null==_0x713112['newValue']||null==_0x713112['oldValue']&&0x0==_0x713112['newValue']?_0x435a5d:void 0x0;}),_0xc6804c['descriptionFactory']['registerDescriptionCallback'](_0x1bcddc=>{if('attribute'!=_0x1bcddc['type'])return;const {data:_0x405614}=_0x1bcddc;if(!_0x405614||'listItemId'!=_0x405614['key'])return;const _0x45430c=Ee(_0x1bcddc);return'newValue'==_0x45430c?{'type':'format','content':o(_0x48d7cd,'*Merge:*\x20list\x20item')}:'oldValue'==_0x45430c?{'type':'format','content':o(_0x48d7cd,'*Split:*\x20list\x20item')}:_0x435a5d;}),_0x3dbdd8['model']['document']['registerPostFixer'](_0x3e2271=>this['listItemIdFixer'](_0x3e2271)),_0x3dbdd8['model']['document']['registerPostFixer'](_0x55d6c9=>this['noTrackChangesFixer'](_0x55d6c9)),_0x3dbdd8['model']['document']['on']('change:data',(_0x273136,_0x42ddae)=>{if(_0x42ddae['isUndo']||!_0x42ddae['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x40e8a3){if(_0x40e8a3['batch']['isUndo']||!_0x40e8a3['batch']['isLocal'])return!0x1;let _0x2af527=!0x1;const _0x7b47fe=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x265c94=>_0x265c94['data']&&'listItemId'==_0x265c94['data']['key'])['filter'](_0x1ffcd1=>_0x1ffcd1['data']['newValue']&&_0x1ffcd1['data']['oldValue']);for(const _0x1dbf1b of _0x7b47fe)Ee(_0x1dbf1b)||(_0x40e8a3['removeMarker'](_0x1dbf1b['getFirstMarker']()),_0x2af527=!0x0);return _0x2af527;}['noTrackChangesFixer'](_0x4c8f76){if(_0x4c8f76['batch']['isUndo']||!_0x4c8f76['batch']['isLocal'])return!0x1;const _0x53fc48=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x53fc48['trackChangesCommand']['value'])return!0x1;let _0x4a7e70=!0x1;const _0x46969c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x19230b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x12011e=>'attribute'==_0x12011e['type'])['filter'](_0x3f832d=>_0x46969c['includes'](_0x3f832d['attributeKey']));if(0x0==_0x19230b['length'])return _0x4a7e70;for(const _0x4e5067 of _0x19230b){const _0x212399=_0x53fc48['_findSuggestions'](_0x4e5067['range'],'attribute')['filter'](_0x4d275d=>!_0x4d275d['meta']['isNextTo'])['map'](_0x3eebc2=>_0x3eebc2['suggestion'])['filter'](_0x34b79f=>{const _0xa71754=_0x53fc48['_getAttributeKey'](_0x34b79f);return _0x46969c['includes'](_0xa71754);});if(_0x212399['length']){for(const _0x257831 of _0x212399)_0x4c8f76['removeMarker'](_0x257831['getFirstMarker']());_0x4a7e70=!0x0;}}return _0x4a7e70;}['assureChains'](){const _0x2e2730=this['editor']['plugins']['get']('TrackChangesEditing'),_0x194172=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xc8db9a;const _0x5ca285=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x531a54=>{if(_0x531a54['data']['oldRange']||!_0x531a54['data']['newRange'])return null;if(!_0x531a54['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5eb99a}=_0x2e2730['_splitMarkerName'](_0x531a54['name']);if(!_0x2e2730['hasSuggestion'](_0x5eb99a))return null;const _0x4d2e8f=_0x2e2730['getSuggestion'](_0x5eb99a);return _0x194172['includes'](_0x4d2e8f['data']['key']);})['map'](_0x1f97f9=>{const {id:_0x135549}=_0x2e2730['_splitMarkerName'](_0x1f97f9['name']),_0x4a2ec3=_0x2e2730['getSuggestion'](_0x135549);return _0xc8db9a=_0x4a2ec3['attributes']['groupId'],_0x4a2ec3['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5ca285['size'])return;const _0x36e533=_0x2e2730['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x571ab=>'attribute'==_0x571ab['type']&&_0x571ab['data']&&_0x194172['includes'](_0x571ab['data']['key'])&&_0x571ab['attributes']['groupId']!=_0xc8db9a)['map'](_0x29675c=>({'listItem':_0x29675c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x29675c['attributes']['groupId']})),_0x249695=new Set();for(const {groupId:_0x2f7a1e,listItem:_0x3f5256}of _0x36e533)_0x5ca285['has'](_0x3f5256)&&_0x249695['add'](_0x2f7a1e);for(const _0x51a5dc of _0x2e2730['getSuggestions']())_0x249695['has'](_0x51a5dc['attributes']['groupId'])&&_0x51a5dc['setAttribute']('groupId',_0xc8db9a);}['_supportLegacySuggestions'](){const _0x2c37be=this['editor'],_0x89180a=_0x2c37be['locale'],_0x2d6e67=_0x2c37be['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2d6e67['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2caad9,_0x27b9fd){const _0x39c69f=[];for(let _0x2cbb72 of _0x2caad9)_0x2cbb72['start']['nodeAfter']===_0x2cbb72['end']['parent']&&(_0x2cbb72=_0x2c37be['model']['createRange'](_0x2c37be['model']['createPositionAt'](_0x2cbb72['start']['nodeAfter'],0x0))),_0x39c69f['push'](_0x2cbb72);_0x2c37be['model']['change'](_0x167c44=>{const _0x4967de=_0x2c37be['model']['document']['selection'],_0x5ef26e=Array['from'](_0x4967de['getRanges']())['map'](_0x2518fb=>_0x7da4c9['fromRange'](_0x2518fb));_0x167c44['setSelection'](_0x39c69f),_0x2c37be['commands']['get'](_0x27b9fd['commandName'])['refresh'](),_0x27b9fd['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2c37be['execute'](_0x27b9fd['commandName'],..._0x27b9fd['commandParams']),_0x167c44['setSelection'](_0x5ef26e);for(const _0x477aa8 of _0x5ef26e)_0x477aa8['detach']();});}),_0x2d6e67['descriptionFactory']['registerElementLabel'](function(_0x58c5d9){const _0x3551c4=!_0x2c37be['model']['schema']['isObject'](_0x58c5d9),_0x66c0a7=_0x58c5d9['previousSibling'],_0x4b21d5=_0x58c5d9['nextSibling'],_0x1548d2=_0x58c5d9['getAttribute']('listItemId'),_0x39d9a8=!_0x66c0a7||_0x66c0a7['getAttribute']('listItemId')!==_0x1548d2,_0x3f24b4=!_0x4b21d5||_0x4b21d5['getAttribute']('listItemId')!==_0x1548d2;return _0x3551c4&&Boolean(_0x1548d2)&&_0x39d9a8&&_0x3f24b4;},_0xb1c032=>o(_0x89180a,'ELEMENT_LIST_ITEM',_0xb1c032));}['_registerLegacyDescription'](){const _0x3ba05e=this['editor'],_0x568ea9=_0x3ba05e['locale'];function _0xc37d11(_0x38085a){const _0x5af4b5=_0x3ba05e['commands']['get']('bulletedList')['value'],_0x5c13c8=_0x3ba05e['commands']['get']('numberedList')['value'];return'numberedList'===_0x38085a?_0x5af4b5:_0x5c13c8;}_0x3ba05e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x437724){if('formatBlock'!=_0x437724['type'])return;const {data:_0x1b82aa}=_0x437724;if(!_0x1b82aa)return;let _0x268e36,_0x4ef029,_0x4d2898,_0x129faa;switch(_0x1b82aa['commandName']){case'bulletedList':_0x4d2898=_0x1b82aa['commandParams'][0x0]['forceValue'],_0x129faa=_0xc37d11(_0x1b82aa['commandName']),_0x268e36=_0x4d2898?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x129faa&&_0x3ba05e['config']['get']('list.multiBlock')||(_0x268e36='*Change\x20to:*\x20%0'),_0x4ef029={'type':'format','content':o(_0x568ea9,_0x268e36,o(_0x568ea9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4d2898=_0x1b82aa['commandParams'][0x0]['forceValue'],_0x129faa=_0xc37d11(_0x1b82aa['commandName']),_0x268e36=_0x4d2898?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x129faa&&_0x3ba05e['config']['get']('list.multiBlock')||(_0x268e36='*Change\x20to:*\x20%0'),_0x4ef029={'type':'format','content':o(_0x568ea9,_0x268e36,o(_0x568ea9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x268e36='*Indent:*\x20%0',_0x4ef029={'type':'format','content':o(_0x568ea9,_0x268e36,o(_0x568ea9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x268e36=function(_0x46553d){const _0x4fe7c3=_0x46553d['getFirstRange']();let _0x4ca256=_0x4fe7c3['start']['nodeAfter'];for(;_0x4ca256&&_0x4fe7c3['containsItem'](_0x4ca256);){if(_0x4ca256['getAttribute']('listIndent')>0x0)return!0x1;_0x4ca256=_0x4ca256['nextSibling'];}return!0x0;}(_0x437724)?o(_0x568ea9,'*Format:*\x20remove\x20from\x20%0',o(_0x568ea9,function(_0x1df523){return'ELEMENT_'+_0x1df523['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x437724))):o(_0x568ea9,'*Outdent:*\x20%0',o(_0x568ea9,'ELEMENT_LIST_ITEM')),_0x4ef029={'type':'format','content':_0x268e36};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1b82aa['multipleBlocks']&&(_0x268e36='*Merge:*\x20%0',_0x4ef029={'type':'deletion','content':o(_0x568ea9,_0x268e36,o(_0x568ea9,'ELEMENT_LIST_ITEM'))});}return _0x4ef029;});}}function Ee(_0x335b12){let _0x4fb33d=_0x335b12['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4fb33d;){const _0x2e3b5f=_0x4fb33d['getAttribute']('listItemId');if(!_0x2e3b5f)return!0x1;if(_0x2e3b5f==_0x335b12['data']['newValue'])return'newValue';if(_0x2e3b5f==_0x335b12['data']['oldValue'])return'oldValue';_0x4fb33d=_0x4fb33d['previousSibling'];}return!0x1;}class pe extends _0x26a770{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5f327d=this['editor']['config']['get']('list.properties'),_0x2fb095=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f327d['styles']&&(_0x2fb095['enableDefaultAttributesIntegration']('listStyle'),_0x2fb095['registerBlockAttribute']('listStyle')),_0x5f327d['reversed']&&(_0x2fb095['enableDefaultAttributesIntegration']('listReversed'),_0x2fb095['registerBlockAttribute']('listReversed')),_0x5f327d['startIndex']&&(_0x2fb095['enableDefaultAttributesIntegration']('listStart'),_0x2fb095['registerBlockAttribute']('listStart'));const _0x5db2c6={'type':'format','content':''};_0x2fb095['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x20fda9=this['editor']['locale'];_0x2fb095['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x20fda9,'FORMAT_LIST_REVERSED')),_0x2fb095['descriptionFactory']['registerDescriptionCallback'](_0x2ea975=>{const {data:_0x1ba262}=_0x2ea975;if(_0x1ba262&&'listReversed'==_0x1ba262['key'])return null==_0x1ba262['newValue']||0x0==_0x1ba262['newValue']&&null==_0x1ba262['oldValue']?_0x5db2c6:void 0x0;}),_0x2fb095['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x20fda9,'FORMAT_LIST_START')),_0x2fb095['descriptionFactory']['registerDescriptionCallback'](_0x507c8e=>{const {data:_0x1d0ee1}=_0x507c8e;if(_0x1d0ee1&&'listStart'==_0x1d0ee1['key'])return null==_0x1d0ee1['newValue']||0x1==_0x1d0ee1['newValue']&&null==_0x1d0ee1['oldValue']?_0x5db2c6:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x117851=>{if(_0x117851['batch']['isUndo'])return!0x1;let _0x1c2ed1=!0x1;const _0x5bbc6a=_0x2fb095['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x300ac9=>{const _0x2adabf=_0x2fb095['_getAttributeKey'](_0x300ac9);return'listStart'==_0x2adabf||'listReversed'==_0x2adabf;});for(const _0x5d2512 of _0x5bbc6a){const _0xdf3ad7=_0x5d2512['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xdf3ad7||'customNumbered'==_0xdf3ad7)continue;_0x2fb095['_findSuggestions'](_0x5d2512['getFirstRange'](),'attribute')['find'](_0x1502b8=>'listType'==_0x2fb095['_getAttributeKey'](_0x1502b8['suggestion']))||(_0x117851['removeMarker'](_0x5d2512['getFirstMarker']()),_0x1c2ed1=!0x0);}return _0x1c2ed1;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x47f547){const _0x4c67db=this['editor']['locale'],{data:_0x262ed1}=_0x47f547,_0x5c13e6={'type':'format','content':''};if(!_0x262ed1||'listStyle'!=_0x262ed1['key'])return;if(!_0x262ed1['oldValue'])return'default'==_0x262ed1['newValue']?_0x5c13e6:{'type':'format','content':''+o(_0x4c67db,'*Set\x20format:*\x20%0',o(_0x4c67db,this['_getTranslationKeyForListStyle'](_0x262ed1['newValue'])))};if(!_0x262ed1['newValue']){if('default'==_0x262ed1['oldValue'])return _0x5c13e6;let _0x3c0594=_0x47f547['head'];for(;_0x3c0594;){if(_0x3c0594['data']&&'listType'==_0x3c0594['data']['key']&&_0x3c0594['data']['newValue'])return _0x5c13e6;_0x3c0594=_0x3c0594['next'];}return{'type':'format','content':''+o(_0x4c67db,'*Remove\x20format:*\x20%0',o(_0x4c67db,this['_getTranslationKeyForListStyle'](_0x262ed1['oldValue'])))};}if('default'!=_0x262ed1['newValue'])return{'type':'format','content':''+o(_0x4c67db,'*Set\x20format:*\x20%0',o(_0x4c67db,this['_getTranslationKeyForListStyle'](_0x262ed1['newValue'])))};let _0x4fec69=_0x47f547['head'];for(;_0x4fec69;){if(_0x4fec69['data']&&'listType'==_0x4fec69['data']['key']&&_0x4fec69['data']['newValue']&&_0x4fec69['data']['oldValue'])return _0x5c13e6;_0x4fec69=_0x4fec69['next'];}return{'type':'format','content':o(_0x4c67db,'*Set\x20format:*\x20%0',o(_0x4c67db,'ELEMENT_'+_0x47f547['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1fb77d=this['editor'],_0x488139=_0x1fb77d['locale'];_0x1fb77d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x139806=>{if('formatBlock'!=_0x139806['type'])return;const {data:_0x437ec5}=_0x139806;if(!_0x437ec5)return;let _0x550eb5,_0x5e7bb7;switch(_0x437ec5['commandName']){case'listStyle':_0x550eb5='*Change\x20to:*\x20%0',_0x5e7bb7={'type':'format','content':o(_0x488139,_0x550eb5,o(_0x488139,this['_getTranslationKeyForListStyle'](_0x437ec5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x550eb5=_0x437ec5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5e7bb7={'type':'format','content':o(_0x488139,_0x550eb5)};break;case'listStart':_0x550eb5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5e7bb7={'type':'format','content':o(_0x488139,_0x550eb5,_0x437ec5['commandParams'][0x0]['startIndex'])};}return _0x5e7bb7;});}['_getTranslationKeyForListStyle'](_0x3b5696){return'ELEMENT_'+function(_0x4a52cc){if(ye['includes'](_0x4a52cc))return'bulleted';if(Se['includes'](_0x4a52cc))return'numbered';return null;}(_0x3b5696)['toUpperCase']()+'_LIST_'+_0x3b5696['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x26a770{static get['requires'](){return[_0x4eb9ba];}['init'](){const _0x47f133=this['editor'],_0x381845=_0x47f133['plugins']['get']('TrackChangesEditing'),_0x2a4924=_0x47f133['commands']['get']('enter');_0x381845['enableCommand']('enter',()=>{_0x47f133['model']['change'](_0x50dd7d=>{const _0x1ad8ca=_0x47f133['model']['document']['selection'],_0x1cd9b7=_0x1ad8ca['getFirstPosition'](),_0x3ff8e6=_0x7da4c9['fromRange'](_0x1ad8ca['getFirstRange']());if(_0x2a4924['enterBlock'](_0x50dd7d)){const _0x40d0c6=_0x47f133['model']['createPositionAt'](_0x1cd9b7['parent']['nextSibling'],0x0),_0x59e53d=_0x50dd7d['createRange'](_0x1cd9b7,_0x40d0c6);_0x381845['markInsertion'](_0x59e53d);}else _0x50dd7d['setSelection'](_0x50dd7d['createRange'](_0x3ff8e6['end']));_0x3ff8e6['detach'](),_0x2a4924['fire']('afterExecute',{'writer':_0x50dd7d});});}),_0x47f133['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x47f133,'split'),{'priority':'high'}),_0x47f133['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2d5e8d,_0x358e26,_0x46c800)=>{const _0x15890f=_0x46c800['mapper']['markerNameToElements'](_0x358e26['markerName']);if(_0x15890f){for(const _0x433333 of _0x15890f)_0x433333['hasClass']('ck-suggestion-marker-split')&&(_0x46c800['mapper']['unbindElementFromMarkerName'](_0x433333,_0x358e26['markerName']),_0x46c800['writer']['remove'](_0x433333));}},{'priority':'high'}),_0x47f133['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3262dd,_0x329a9d,_0x53cadb)=>{_0x53cadb['options']['showSuggestionHighlights']&&_e(_0x47f133,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3262dd,_0x329a9d,_0x53cadb);},{'priority':'high'});}}class X extends _0x26a770{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x121578=this['editor']['plugins']['get']('TrackChangesEditing');_0x121578['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x121578['enableCommand']('findNext'),_0x121578['enableCommand']('findPrevious'),_0x121578['enableCommand']('replace'),_0x121578['enableCommand']('replaceAll');}['handleFindCommand'](_0x5cac30,_0x2d38c5,_0x471271={}){const _0x345468=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5cac30(_0x811d38=>{let _0x1991d3=('string'==typeof _0x2d38c5?_0x345468['findByTextCallback'](_0x2d38c5,_0x471271):_0x2d38c5)(_0x811d38);Array['isArray'](_0x1991d3)&&(_0x1991d3={'results':_0x1991d3,'searchText':'string'==typeof _0x2d38c5?_0x2d38c5:''});const _0x449ad9=_0x1991d3['results']['filter'](_0x152510=>!0x1===this['_isInDeletionRange'](_0x152510,_0x811d38['item']));return{..._0x1991d3,'results':_0x449ad9};},_0x471271);}['_isInDeletionRange'](_0x43d827,_0x371217){const _0x2d1058=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x371217,_0x43d827['start']),this['editor']['model']['createPositionAt'](_0x371217,_0x43d827['end']));for(const _0x10c143 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2d1058['getIntersection'](_0x10c143['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x26a770{['afterInit'](){const _0x32cbfd=this['editor']['locale'],_0x360cc6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x364252,commandName:_0x4a3993}of ro)this['editor']['plugins']['has'](_0x364252)&&(_0x360cc6['enableDefaultAttributesIntegration'](_0x4a3993),_0x360cc6['registerInlineAttribute'](_0x4a3993));_0x360cc6['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x32cbfd,'FORMAT_FONT_SIZE')),_0x360cc6['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x32cbfd,'FORMAT_FONT_FAMILY')),_0x360cc6['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x32cbfd,'FORMAT_FONT_COLOR')),_0x360cc6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x32cbfd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38f779=this['editor'],_0x5b18d2=_0x38f779['locale'];_0x38f779['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x708c9b=>{const _0x31a9df=_0x5b18d2['t'];if('formatInline'!=_0x708c9b['type'])return;const {data:_0x337ed6}=_0x708c9b;if(null!=_0x337ed6){if('fontSize'==_0x337ed6['commandName']){const _0x19a49c=_0x337ed6['commandParams'][0x0]['value'];if(_0x19a49c){const _0x1eafe2=_0x31a9df(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x451d57=>_0x451d57['model']==_0x19a49c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5b18d2,'*Set\x20font\x20size:*\x20%0',_0x1eafe2)};}return{'type':'format','content':o(_0x5b18d2,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x337ed6['commandName']){const _0x3d13f5=_0x337ed6['commandParams'][0x0]['value'];return _0x3d13f5?{'type':'format','content':o(_0x5b18d2,'*Set\x20font\x20family:*\x20%0',_0x3d13f5)}:{'type':'format','content':o(_0x5b18d2,'*Reset\x20font\x20family*')};}if('fontColor'==_0x337ed6['commandName']){const _0x546151=_0x337ed6['commandParams'][0x0]['value'];if(_0x546151){const _0x19d668=_0x5698c1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x536a96=>_0x536a96['model']==_0x546151);let _0x35e4c3=_0x546151,_0x1f21c0='';return _0x19d668&&(_0x35e4c3=_0x19d668['label'],_0x1f21c0=_0x31a9df(_0x35e4c3)['toLowerCase']()),{'type':'format','content':o(_0x5b18d2,'*Set\x20font\x20color:*\x20%0',_0x1f21c0)['trim'](),'color':{'value':_0x546151,'title':_0x1f21c0||_0x35e4c3}};}return{'type':'format','content':o(_0x5b18d2,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x337ed6['commandName']){const _0x5e9658=_0x337ed6['commandParams'][0x0]['value'];if(_0x5e9658){const _0xb7e913=_0x5698c1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x421b9b=>_0x421b9b['model']==_0x5e9658);let _0x44ea58=_0x5e9658,_0x2bb12f='';return _0xb7e913&&(_0x44ea58=_0xb7e913['label'],_0x2bb12f=_0x31a9df(_0x44ea58)['toLowerCase']()),{'type':'format','content':o(_0x5b18d2,'*Set\x20font\x20background\x20color:*\x20%0',_0x2bb12f)['trim'](),'color':{'value':_0x5e9658,'title':_0x2bb12f||_0x44ea58}};}return{'type':'format','content':o(_0x5b18d2,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x26a770{['afterInit'](){const _0x232293=this['editor'],_0x398386=_0x232293['plugins']['get']('TrackChangesEditing'),_0x360214=_0x232293['commands']['get']('copyFormat'),_0x241b79=_0x232293['commands']['get']('pasteFormat');_0x360214&&_0x241b79&&(_0x398386['enableDefaultAttributesIntegration']('pasteFormat'),_0x398386['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5dc5f6=this['editor'],_0x27737a=_0x5dc5f6['locale'];_0x5dc5f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5894d4=>{if('formatBlock'!=_0x5894d4['type']&&'formatInline'!=_0x5894d4['type'])return;const {data:_0x48a9fa}=_0x5894d4;if(_0x48a9fa&&'pasteFormat'===_0x48a9fa['commandName']){const _0x3920e=[],_0x3c94d7=_0x48a9fa['commandParams'][0x0];for(const [_0x135d8a,_0x5ae64c]of Object['entries'](_0x3c94d7))_0x3920e['push'](so(_0x5dc5f6,_0x135d8a,_0x5ae64c));return _0x3920e['length']?{'type':'format','content':o(_0x27737a,'*Set\x20format\x20to:*\x20%0',_0x3920e['join'](',\x20'))}:{'type':'format','content':o(_0x27737a,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2d1edb,_0x2fd5c5,_0x1e5f06){const _0x1572ea=_0x2d1edb['locale']['t'],_0xbbeadb=_0x2fd5c5['split'](/(?=[A-Z])/)['join']('\x20'),_0x3114d8=_0x1572ea(_0xbbeadb['charAt'](0x0)['toUpperCase']()+_0xbbeadb['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1e5f06)return _0x3114d8;if('fontColor'===_0x2fd5c5||'fontBackgroundColor'===_0x2fd5c5){const _0x379c45=_0x5698c1(_0x2d1edb['config']['get']('fontColor.colors'))['find'](_0x480425=>_0x480425['model']==_0x1e5f06);return _0x3114d8+'\x20('+(_0x379c45?_0x1572ea(_0x379c45['label'])['toLowerCase']():_0x1e5f06)+')';}if('fontSize'===_0x2fd5c5&&isNaN(parseFloat(_0x1e5f06))){const _0x4efcd8=_0x2d1edb['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2d1edb['config']['get']('fontSize.options'))['find'](_0x291366=>_0x291366['model']==_0x1e5f06);return _0x3114d8+'\x20('+(_0x4efcd8?_0x1572ea(_0x4efcd8['title'])['toLowerCase']():_0x1e5f06)+')';}return _0x3114d8+'\x20('+_0x1e5f06+')';}class tt extends _0x26a770{['_headingOptions'];['afterInit'](){const _0x2c9ad3=this['editor'];if(!_0x2c9ad3['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2c9ad3['config']['get']('heading.options');const _0x53829d=_0x2c9ad3['locale'],_0x4d84cb=_0x2c9ad3['plugins']['get']('TrackChangesEditing');_0x4d84cb['enableDefaultAttributesIntegration']('heading');for(const _0x3a98d2 of this['_headingOptions'])'paragraph'!=_0x3a98d2['model']&&_0x4d84cb['descriptionFactory']['registerElementLabel'](_0x3a98d2['model'],_0xf4305=>{const _0x311d00=this['_getHeadingLevel'](_0x3a98d2['model']);return null!==_0x311d00?_0x4b06c5(_0xf4305,_0x311d00):_0x3fd76b(_0xf4305,_0x3a98d2['title']);});function _0x4b06c5(_0x421cbd,_0x173b11){return o(_0x53829d,'ELEMENT_HEADING',[_0x421cbd,_0x173b11]);}function _0x3fd76b(_0x9937be,_0x361abc){return o(_0x53829d,'ELEMENT_HEADING_CUSTOM',[_0x9937be,_0x361abc]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3932ec=this['editor'],_0x175d97=_0x3932ec['locale'];function _0x334421(_0x4c0c83,_0x2b8345){return o(_0x175d97,'ELEMENT_HEADING_CUSTOM',[_0x4c0c83,_0x2b8345]);}_0x3932ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12b569=>{if('formatBlock'!=_0x12b569['type'])return;const {data:_0x599be3}=_0x12b569;if(_0x599be3&&'heading'==_0x599be3['commandName']){const _0x158b93=_0x599be3['commandParams'][0x0]['value'],_0x807176=this['_getHeadingLevel'](_0x158b93);if(null!==_0x807176)return{'type':'format','content':o(_0x175d97,'*Change\x20to:*\x20%0',(_0x30beee=0x1,_0x36db6b=_0x807176,o(_0x175d97,'ELEMENT_HEADING',[_0x30beee,_0x36db6b])))};const _0x1b0fe1=this['_headingOptions']['find'](_0x2f44fa=>_0x2f44fa['model']===_0x158b93)['title'];return{'type':'format','content':o(_0x175d97,'*Change\x20to:*\x20%0',_0x334421(0x1,_0x1b0fe1))};}var _0x30beee,_0x36db6b;});}['_getHeadingLevel'](_0x14bb69){const _0x123cdb=_0x14bb69['match'](/^heading(\d+)/);if(_0x123cdb)return _0x123cdb[0x1];const _0x12a0d1=this['_headingOptions']?.['find'](_0x2da6af=>_0x2da6af['model']==_0x14bb69);if(_0x12a0d1&&_0x12a0d1['view']){const _0x15e920=_0x12a0d1['view'],_0x5d9f73=(_0x15e920['name']??_0x15e920)['match'](/^h(\d+)/);if(_0x5d9f73)return _0x5d9f73[0x1];}return null;}}class et extends _0x26a770{['afterInit'](){const _0x4b0f64=this['editor'];if(!_0x4b0f64['plugins']['has']('HighlightEditing'))return;const _0x5e3c67=_0x4b0f64['plugins']['get']('TrackChangesEditing'),_0x1efdf4=_0x4b0f64['locale'];_0x5e3c67['enableDefaultAttributesIntegration']('highlight'),_0x5e3c67['registerInlineAttribute']('highlight'),_0x5e3c67['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1efdf4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49cb68=this['editor'],_0x23c367=_0x49cb68['locale'];_0x49cb68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3adf9f=>{if('formatInline'!=_0x3adf9f['type'])return;const {data:_0x21c744}=_0x3adf9f;if(_0x21c744&&'highlight'==_0x21c744['commandName']){const _0xd16c64=_0x23c367['t'],_0x46a98a=_0x21c744['commandParams'][0x0]['value'];if(_0x46a98a){const _0xa05273=_0x49cb68['config']['get']('highlight.options')['find'](_0x4a9629=>_0x4a9629['model']==_0x46a98a),_0x1af7d6=_0xd16c64(_0xa05273['title'])['toLowerCase']();return{'type':'format','content':o(_0x23c367,'*Set\x20highlight:*\x20%0',_0x1af7d6),'color':{'value':_0xa05273['color'],'title':_0xa05273['title']}};}return{'type':'format','content':o(_0x23c367,'*Remove\x20highlight*',o(_0x23c367,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x26a770{['afterInit'](){const _0x3f756a=this['editor'];if(!_0x3f756a['plugins']['has']('HorizontalLineEditing'))return;_0x3f756a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2778df=_0x3f756a['plugins']['get']('TrackChangesEditing'),_0xf81b0=_0x3f756a['locale'];_0x2778df['descriptionFactory']['registerElementLabel']('horizontalLine',_0x21fb30=>o(_0xf81b0,'ELEMENT_HORIZONTAL_LINE',_0x21fb30)),_0x3f756a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x213f81,{writer:_0x4ba03e,options:_0x590175})=>{if(!_0x590175['showSuggestionHighlights'])return null;const _0x3ba140=_0x4ba03e['createContainerElement']('div'),_0x2a669a=_0x4ba03e['createEmptyElement']('hr');return _0x4ba03e['addClass']('ck-horizontal-line',_0x3ba140),_0x4ba03e['insert'](_0x4ba03e['createPositionAt'](_0x3ba140,0x0),_0x2a669a),_0x3ba140;},'converterPriority':'high'});}}class st extends _0x26a770{['afterInit'](){const _0x3be22e=this['editor'];if(!_0x3be22e['plugins']['has']('HtmlEmbed'))return;const _0x2d1645=_0x3be22e['plugins']['get']('TrackChangesEditing'),_0x4e82cf=_0x3be22e['locale'];_0x2d1645['descriptionFactory']['registerElementLabel']('rawHtml',_0xb1871f=>o(_0x4e82cf,'ELEMENT_HTML_EMBED',_0xb1871f)),_0x2d1645['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2d1645['registerBlockAttribute']('value'),_0x2d1645['descriptionFactory']['registerDescriptionCallback'](_0x389979=>{if('attribute'!=_0x389979['type'])return;const {data:_0x503487}=_0x389979;if(_0x503487&&'value'==_0x503487['key']&&_0x389979['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3d8d73=o(_0x4e82cf,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4e82cf,'*Change\x20%0\x20content*',_0x3d8d73)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48dd07=this['editor'],_0x5d38a6=_0x48dd07['locale'];_0x48dd07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ccd54=>{if('formatBlock'!=_0x3ccd54['type'])return;const {data:_0x44c33a}=_0x3ccd54;if(_0x44c33a&&'htmlEmbed'==_0x44c33a['commandName']){const _0x7817b9=o(_0x5d38a6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5d38a6,'*Change\x20%0\x20content*',_0x7817b9)};}});}}class nt extends _0x26a770{['afterInit'](){const _0x50e21a=this['editor'];if(!_0x50e21a['plugins']['has']('ImageEditing'))return;const _0x50db10=_0x50e21a['plugins']['get']('TrackChangesEditing'),_0x173772=_0x50e21a['plugins']['get']('ImageUtils'),_0x1a664e=_0x50e21a['locale'];_0x50db10['enableCommand']('insertImage'),_0x50db10['descriptionFactory']['registerElementLabel']('imageBlock',_0x3a2862=>o(_0x1a664e,'ELEMENT_IMAGE',_0x3a2862)),_0x50db10['descriptionFactory']['registerElementLabel']('imageInline',_0x388233=>o(_0x1a664e,'ELEMENT_INLINE_IMAGE',_0x388233)),_0x50db10['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1a664e,'ELEMENT_CAPTION')),_0x50e21a['plugins']['has']('ImageUploadEditing')&&_0x50db10['enableCommand']('uploadImage'),_0x50e21a['plugins']['has']('ImageBlockEditing')&&_0x50e21a['plugins']['has']('ImageInlineEditing')&&(_0x50db10['enableCommand']('imageTypeInline',(_0x9154a5,_0x3fa9e1)=>{const _0x5425e0=_0x173772['getClosestSelectedImageElement'](_0x50e21a['model']['document']['selection']);_0x50e21a['model']['change'](()=>{_0x50db10['markBlockFormat'](_0x5425e0,{'commandName':'imageTypeInline','commandParams':[_0x3fa9e1]},[],'convertBlockImageToInline');});}),_0x50db10['enableCommand']('imageTypeBlock',(_0xff3c93,_0x27934d)=>{_0x50e21a['model']['change'](_0x5192d1=>{let _0x34f3f6=_0x173772['getClosestSelectedImageElement'](_0x50e21a['model']['document']['selection']),_0x11ffbb=_0x5192d1['createRangeOn'](_0x34f3f6);const _0xf44a9=_0x3940dc['fromPosition'](_0x11ffbb['start'],'toPrevious'),_0x5d6398=_0x3940dc['fromPosition'](_0x11ffbb['end'],'toNext');_0x50db10['forceDefaultExecution'](()=>_0xff3c93(_0x27934d)),_0x34f3f6=_0x173772['getClosestSelectedImageElement'](_0x50e21a['model']['document']['selection']),_0x11ffbb=_0x5192d1['createRangeOn'](_0x34f3f6);const _0x4cd57e=_0x5192d1['createRange'](_0xf44a9,_0x5d6398);_0xf44a9['detach'](),_0x5d6398['detach'](),_0x50db10['markBlockFormat'](_0x34f3f6,{'commandName':'imageTypeInline','commandParams':[_0x27934d]},[],'convertInlineImageToBlock'),_0x4cd57e['start']['isBefore'](_0x11ffbb['start'])&&_0x50db10['markInsertion'](_0x5192d1['createRange'](_0x4cd57e['start'],_0x11ffbb['start']),'convertInlineImageToBlock'),_0x11ffbb['end']['isBefore'](_0x4cd57e['end'])&&_0x50db10['markInsertion'](_0x5192d1['createRange'](_0x11ffbb['end'],_0x4cd57e['end']),'convertInlineImageToBlock');});}),_0x50db10['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x50db10['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x50db10['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x50db10['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x50db10['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x50db10['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3fe491])=>{const _0x4ade8e=_0x50db10['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x11320f=_0x3fe491['start'],_0x452bb3=_0x3fe491['end'];const _0x12dbb2=_0x50e21a['model']['schema']['getNearestSelectionRange'](_0x11320f,'backward'),_0x59b686=_0x50e21a['model']['schema']['getNearestSelectionRange'](_0x452bb3,'forward');_0x12dbb2['isCollapsed']&&(_0x11320f=_0x12dbb2['start']),_0x59b686['isCollapsed']&&(_0x452bb3=_0x59b686['end']),_0x4ade8e([_0x50e21a['model']['createRange'](_0x11320f,_0x452bb3)]);}),_0x50db10['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5889a0),_0x50db10['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5889a0)),_0x50e21a['plugins']['has']('ImageCaptionEditing')&&(_0x50db10['enableCommand']('toggleImageCaption',(_0x4b0202,_0x144ed3)=>{const _0x1cb8a0=_0x50e21a['plugins']['get']('ImageCaptionUtils');let _0x2dcc22=_0x173772['getClosestSelectedImageElement'](_0x50e21a['model']['document']['selection']),_0x4e6971=_0x1cb8a0['getCaptionFromImageModelElement'](_0x2dcc22);_0x50e21a['model']['change'](()=>{if(_0x4e6971)return void _0x50db10['markDeletion'](_0x50e21a['model']['createRangeOn'](_0x4e6971));const _0x2ba0ba=_0x173772['isBlockImage'](_0x2dcc22);_0x4b0202(_0x144ed3),_0x2dcc22=_0x173772['getClosestSelectedImageElement'](_0x50e21a['model']['document']['selection']),_0x4e6971=_0x1cb8a0['getCaptionFromImageModelElement'](_0x2dcc22),_0x50db10['markInsertion'](_0x50e21a['model']['createRangeOn'](_0x4e6971),_0x2ba0ba?null:'imageCaption');});}),_0x50db10['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5889a0));const _0x48b58e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x15dc4e(_0x14f800,_0x2d1f34){const _0x561cdb=_0x48b58e['findIndex'](({type:_0x324138,subType:_0x93fb89})=>_0x14f800['type']==_0x324138&&_0x14f800['subType']==_0x93fb89),_0x44d9ae=_0x48b58e['findIndex'](({type:_0x1d8cb7,subType:_0x8ecee9})=>_0x2d1f34['type']==_0x1d8cb7&&_0x2d1f34['subType']==_0x8ecee9);if(_0x561cdb<0x0||_0x44d9ae<0x0)return!0x1;const _0x352041=_0x14f800['getFirstRange'](),_0x10fb5f=_0x2d1f34['getFirstRange']();if((0x0==_0x561cdb||0x1==_0x561cdb)&&0x2==_0x44d9ae&&_0x352041['isIntersecting'](_0x10fb5f))return!0x0;if(0x2==_0x561cdb&&0x3==_0x44d9ae){const _0x5c3b40=_0x50db10['_findSuggestions'](_0x352041,'insertion')['filter'](({suggestion:_0x3cf9b0,meta:_0x3908ae})=>_0x3908ae['isOwn']&&'convertInlineImageToBlock'==_0x3cf9b0['subType']);if(_0x5c3b40['length']>0x1&&_0x10fb5f['end']['isEqual'](_0x352041['start']))return!0x0;if(0x1==_0x5c3b40['length']&&(_0x352041['start']['isEqual'](_0x10fb5f['end'])||_0x352041['end']['isEqual'](_0x10fb5f['start'])))return!0x0;}if(0x3==_0x561cdb&&0x3==_0x44d9ae&&_0x352041['start']['isBefore'](_0x10fb5f['start'])){const _0x30ccef=_0x352041['end']['nodeAfter'],_0x1ef6b8=_0x10fb5f['start']['nodeBefore'];return _0x173772['isBlockImage'](_0x30ccef)&&_0x30ccef===_0x1ef6b8;}return!0x1;}function _0x5889a0(_0x3ca74c,_0xc359f5){return _0x15dc4e(_0x3ca74c,_0xc359f5)?[_0x3ca74c,_0xc359f5]:_0x15dc4e(_0xc359f5,_0x3ca74c)?[_0xc359f5,_0x3ca74c]:null;}_0x50e21a['plugins']['has']('ImageResize')&&(_0x50db10['enableDefaultAttributesIntegration']('resizeImage'),_0x50db10['registerBlockAttribute']('resizedWidth'),_0x50db10['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1a664e,'FORMAT_IMAGE_SIZE'))),_0x50e21a['plugins']['has']('ImageTextAlternativeEditing')&&(_0x50db10['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x50db10['registerBlockAttribute']('alt')),_0x50db10['descriptionFactory']['registerDescriptionCallback'](_0x2d7782=>{if(!!_0x48b58e['find'](({type:_0x224e30,subType:_0x4aa9b6})=>_0x2d7782['type']==_0x224e30&&_0x2d7782['subType']==_0x4aa9b6))return _0x2d7782['previous']?{}:void 0x0;}),_0x50db10['descriptionFactory']['registerDescriptionCallback'](_0x5709b6=>{if('insertion'==_0x5709b6['type']||'deletion'==_0x5709b6['type']){const _0xc86c7a=_0x5709b6['getContainedElement']();if(_0xc86c7a&&_0xc86c7a['is']('element','caption'))return{'type':'insertion'==_0x5709b6['type']?'addObject':'removeObject','element':_0xc86c7a,'quantity':0x1};}}),_0x50db10['descriptionFactory']['registerDescriptionCallback'](_0x215582=>'formatBlock'==_0x215582['type']&&'convertInlineImageToBlock'==_0x215582['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x215582['type']&&'convertBlockImageToInline'==_0x215582['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x50db10['descriptionFactory']['registerDescriptionCallback'](_0x120c25=>{if('attribute'!=_0x120c25['type'])return;const {data:_0x19e135}=_0x120c25;if(!_0x19e135||'alt'!=_0x19e135['key'])return;const _0x1c8833=_0x19e135['newValue'];return _0x1c8833?{'type':'format','content':o(_0x1a664e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1c8833+'\x22')}:{'type':'format','content':o(_0x1a664e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x471a5f=this['editor'],_0x48b0ce=_0x471a5f['locale'];_0x471a5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a8a23=>{if('formatBlock'!=_0x1a8a23['type']&&'formatInline'!=_0x1a8a23['type'])return;const {data:_0x4c415a}=_0x1a8a23;if(_0x4c415a){if('imageTextAlternative'==_0x4c415a['commandName']){const _0x3c7efc=_0x4c415a['commandParams'][0x0]['newValue'];return _0x3c7efc?{'type':'format','content':o(_0x48b0ce,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3c7efc+'\x22')}:{'type':'format','content':o(_0x48b0ce,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4c415a['commandName']){const _0x1ee3bc=_0x4c415a['commandParams'][0x0]['width'];return _0x1ee3bc?{'type':'format','content':o(_0x48b0ce,'*Set\x20image\x20width:*\x20%0',_0x1ee3bc)}:{'type':'format','content':o(_0x48b0ce,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x26a770{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x484fd8=this['editor']['locale'],_0x3791a8=this['editor']['plugins']['get']('TrackChangesEditing');_0x3791a8['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3791a8['registerBlockAttribute']('src'),_0x3791a8['descriptionFactory']['registerDescriptionCallback'](_0xfb0062=>{if('attribute'!=_0xfb0062['type'])return;const {data:_0x584365}=_0xfb0062;return _0x584365&&'src'==_0x584365['key']?_0x584365['newValue']&&_0x584365['oldValue']?{'type':'format','content':o(_0x484fd8,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xb09311=this['editor']['plugins']['get']('TrackChangesEditing');_0xb09311['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xb09311['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb09311['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xb09311['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x496ab1=this['editor'],_0x43a3cc=_0x496ab1['locale'];_0x496ab1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x568784=>{if('formatBlock'!=_0x568784['type']&&'formatInline'!=_0x568784['type'])return;const {data:_0x1bc5c2}=_0x568784;if(!_0x1bc5c2||'replaceImageSource'!=_0x1bc5c2['commandName'])return;return{'type':'format','content':o(_0x43a3cc,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x26a770{['afterInit'](){const _0x5b3e5a=this['editor'];if(!_0x5b3e5a['plugins']['has']('ImageStyleEditing'))return;const _0x219672=_0x5b3e5a['plugins']['get']('TrackChangesEditing'),_0x54644e=_0x5b3e5a['plugins']['get']('ImageUtils'),_0x12a6d1={};_0x219672['enableCommand']('imageStyle',(_0x4bd788,_0x4c4ec8)=>{const _0x72cd08=_0x5b3e5a['plugins']['get']('Users')['me'],_0x448dbc=_0x5b3e5a['commands']['get']('imageStyle');let _0x2f403f=_0x54644e['getClosestSelectedImageElement'](_0x5b3e5a['model']['document']['selection']),_0x3bcf23=_0x5b3e5a['model']['createRangeOn'](_0x2f403f),_0x5beba2=_0x448dbc['value'];if(_0x5beba2==_0x4c4ec8['value'])return;const _0x49679d={'commandName':'imageStyle','commandParams':[_0x4c4ec8],'formatGroupId':_0x4f54ad()};_0x5b3e5a['model']['change'](()=>{if(_0x219672['getSuggestions']()['filter'](_0x3cb361=>_0x3cb361['isInContent']&&_0x72cd08==_0x3cb361['author']&&('formatBlock'==_0x3cb361['type']||'formatInline'==_0x3cb361['type'])&&('imageStylePreApply'==_0x3cb361['subType']||'imageStylePostApply'==_0x3cb361['subType'])&&_0x3cb361['getFirstRange']()['isEqual'](_0x3bcf23))['forEach'](_0x273732=>_0x219672['discardSuggestion'](_0x273732['head'])),_0x2f403f=_0x54644e['getClosestSelectedImageElement'](_0x5b3e5a['model']['document']['selection']),_0x3bcf23=_0x5b3e5a['model']['createRangeOn'](_0x2f403f),_0x448dbc['refresh'](),_0x5b3e5a['commands']['get']('imageTypeInline')['refresh'](),_0x5b3e5a['commands']['get']('imageTypeBlock')['refresh'](),_0x5beba2=_0x448dbc['value'],_0x5beba2!=_0x4c4ec8['value'])return _0x54644e['isInlineImage'](_0x2f403f)&&_0x448dbc['shouldConvertImageType'](_0x4c4ec8['value'],_0x2f403f)?(_0x4bd788({..._0x4c4ec8,'setImageSizes':!0x1}),_0x2f403f=_0x54644e['getClosestSelectedImageElement'](_0x5b3e5a['model']['document']['selection']),void _0x219672['markBlockFormat'](_0x2f403f,{..._0x49679d,'commandReversedParams':[{'value':_0x5beba2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x54644e['isBlockImage'](_0x2f403f)?_0x219672['markBlockFormat'](_0x2f403f,_0x49679d,[],'imageStylePostApply'):_0x219672['markInlineFormat'](_0x3bcf23,_0x49679d,'imageStylePostApply'));});});for(const _0x1843ad of _0x5b3e5a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x12a6d1[_0x1843ad['name']]=_0x1843ad['title']['toLowerCase']();_0x219672['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x219672['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x219672['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x219672['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x327c9c])=>{_0x54644e['setImageNaturalSizeAttributes'](_0x327c9c['getContainedElement']());}),_0x219672['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4356ba,_0xe049d)=>{_0x219672['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4356ba,{'commandName':_0xe049d['commandName'],'commandParams':_0xe049d['commandReversedParams']});}),_0x219672['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x39c07e,_0x1e3456){if(_0x2ec995(_0x39c07e,_0x1e3456))return[_0x39c07e,_0x1e3456];if(_0x2ec995(_0x1e3456,_0x39c07e))return[_0x1e3456,_0x39c07e];return null;});const _0x1eb48=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2ec995(_0x348d2e,_0x417c3d){const _0x736479=_0x1eb48['findIndex'](({type:_0x49b5a7,subType:_0x42984c})=>_0x348d2e['type']==_0x49b5a7&&_0x348d2e['subType']==_0x42984c),_0x57f707=_0x1eb48['findIndex'](({type:_0x5bbc03,subType:_0x3e7cbb})=>_0x417c3d['type']==_0x5bbc03&&_0x417c3d['subType']==_0x3e7cbb);if(_0x736479<0x0||_0x57f707<0x0)return!0x1;const _0x40752a=_0x348d2e['getFirstRange'](),_0x134c2a=_0x417c3d['getFirstRange']();if((0x0==_0x736479||0x1==_0x736479)&&0x2==_0x57f707&&_0x40752a['isIntersecting'](_0x134c2a))return!0x0;if(0x2==_0x736479&&0x3==_0x57f707){const _0x59be64=_0x219672['_findSuggestions'](_0x40752a,'insertion')['filter'](({suggestion:_0x29a15f,meta:_0x2b3f04})=>_0x2b3f04['isOwn']&&'convertInlineImageToBlock'==_0x29a15f['subType']);if(_0x59be64['length']>0x1&&_0x134c2a['end']['isEqual'](_0x40752a['start']))return!0x0;if(0x1==_0x59be64['length']&&(_0x40752a['start']['isEqual'](_0x134c2a['end'])||_0x40752a['end']['isEqual'](_0x134c2a['start'])))return!0x0;}if(0x3==_0x736479&&0x3==_0x57f707&&_0x40752a['start']['isBefore'](_0x134c2a['start'])){const _0x2e975b=_0x40752a['end']['nodeAfter'],_0x413e25=_0x134c2a['start']['nodeBefore'];return _0x54644e['isBlockImage'](_0x2e975b)&&_0x2e975b===_0x413e25;}return!0x1;}_0x5b3e5a['model']['document']['registerPostFixer'](()=>{let _0x38ee19=!0x1;const _0x1a5191=Array['from'](_0x5b3e5a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4fbe38,data:_0x2af17f}of _0x1a5191){const {group:_0x73f98a,type:_0x35228f,subType:_0xfd29ef,id:_0x7dcdbc}=_0x219672['_splitMarkerName'](_0x4fbe38);if('suggestion'==_0x73f98a&&_0x219672['hasSuggestion'](_0x7dcdbc)){if('formatBlock'==_0x35228f&&('imageStylePreApply'==_0xfd29ef||'imageStylePostApply'==_0xfd29ef)){const _0x2285e6=_0x219672['getSuggestion'](_0x7dcdbc);if(_0x2af17f['newRange']){const _0x97045a=_0x2285e6['getFirstRange']()['getContainedElement']();if(_0x54644e['isBlockImage'](_0x97045a))continue;_0x219672['discardSuggestion'](_0x2285e6),_0x38ee19=!0x0;}}if('insertion'==_0x35228f&&'imageCaption'==_0xfd29ef&&!_0x2af17f['newRange']){const _0xa2daf9=_0x219672['getSuggestion'](_0x7dcdbc);_0xa2daf9['next']&&_0xa2daf9['next']['isInContent']&&(_0x219672['discardSuggestion'](_0xa2daf9['next']),_0x38ee19=!0x0);}}}return _0x38ee19;}),this['_registerLegacyDescription'](_0x12a6d1);}['_registerLegacyDescription'](_0xff41cf){const _0x5b3c1a=this['editor'],_0x50de32=_0x5b3c1a['locale'];_0x5b3c1a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a4735=>{if('formatBlock'!=_0x2a4735['type']&&'formatInline'!=_0x2a4735['type'])return;const {data:_0x380fb1}=_0x2a4735;if(!_0x380fb1||'imageStyle'!=_0x380fb1['commandName'])return;const _0x3b0fbc=_0x380fb1['commandParams'][0x0]['value'];return _0x1ad614('side'===_0x3b0fbc?o(_0x50de32,'FORMAT_SIDE_IMAGE'):_0xff41cf[_0x3b0fbc]||_0x3b0fbc);function _0x1ad614(_0x107fae){return{'type':'format','content':o(_0x50de32,'*Format:*\x20%0',_0x107fae)};}});}}class at extends _0x26a770{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x34b1dd){super(_0x34b1dd),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3bbe87=this['editor'],_0x4ef0f2=_0x3bbe87['commands']['get']('importWord'),_0x4fe35b=_0x3bbe87['commands']['get']('trackChanges');_0x4ef0f2&&(_0x4ef0f2['on']('execute',(_0x3c9e15,[,_0x1fa101])=>{this['_trackChangesValueDuringImport']=_0x4fe35b['value'],_0x1fa101['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4ef0f2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4ef0f2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4fe35b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3bbe87['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x309666,_0x3a888){const {suggestions:_0x42c272}=_0x3a888,_0x31c570=this['editor']['commands']['get']('trackChanges'),_0x3fb1d3=_0x31c570['value'];this['_trackChangesValueDuringImport']!==_0x3fb1d3&&(_0x31c570['execute'](),this['_trackChangesExecuted']=!0x0),_0x42c272&&_0x42c272['forEach'](({id:_0x5f4249,type:_0x22390b,author:_0x5955e8,created_at:_0x54fe46})=>{const _0x158ad2={'id':_0x5f4249,'type':_0x22390b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5955e8,'createdAt':_0x54fe46?new Date(_0x54fe46):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x158ad2);});}}class ct extends _0x26a770{['afterInit'](){const _0x44f2d9=this['editor'],_0x20f174=_0x44f2d9['plugins']['get']('TrackChangesEditing');if(_0x44f2d9['plugins']['has']('IndentEditing')&&(_0x20f174['enableCommand']('indent'),_0x20f174['enableCommand']('outdent')),_0x44f2d9['plugins']['has']('IndentBlock')){for(const _0x3aa4e4 of['indentBlock','outdentBlock'])_0x20f174['enableDefaultAttributesIntegration'](_0x3aa4e4);}const _0x4d7f1b=_0x44f2d9['locale'];_0x20f174['registerBlockAttribute']('blockIndent'),_0x20f174['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4d7f1b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ab4bf=this['editor'],_0x41ccbf=_0x2ab4bf['locale'],_0x59c788=_0x2ab4bf['plugins']['get']('TrackChangesEditing');_0x59c788['descriptionFactory']['registerDescriptionCallback'](_0x1f7376=>{if('formatBlock'!=_0x1f7376['type'])return;const {data:_0x5a66e2}=_0x1f7376;if(!_0x5a66e2)return;if('indentBlock'!=_0x5a66e2['commandName']&&'outdentBlock'!=_0x5a66e2['commandName'])return;const _0x22cc33=_0x1f7376['getItems']()[0x0],_0x145b01=_0x59c788['descriptionFactory']['getItemLabel'](_0x22cc33);return'indentBlock'==_0x5a66e2['commandName']?{'type':'format','content':o(_0x41ccbf,'*Indent:*\x20%0',_0x145b01)}:'outdentBlock'==_0x5a66e2['commandName']?{'type':'format','content':o(_0x41ccbf,'*Outdent:*\x20%0',_0x145b01)}:void 0x0;});}}class ut extends _0x26a770{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x26a770{['afterInit'](){const _0x44b43c=this['editor'];if(!_0x44b43c['plugins']['has']('LinkEditing'))return;const _0x3e06b4=_0x44b43c['plugins']['get']('TrackChangesEditing'),_0x63192=_0x44b43c['commands']['get']('link');_0x3e06b4['enableDefaultAttributesIntegration']('link'),_0x3e06b4['enableDefaultAttributesIntegration']('unlink'),_0x3e06b4['registerInlineAttribute']('linkHref');for(const _0x3bcc59 of _0x63192['manualDecorators'])_0x3e06b4['registerInlineAttribute'](_0x3bcc59['id']),_0x3e06b4['descriptionFactory']['registerAttributeLabel'](_0x3bcc59['id'],'link\x20('+_0x3bcc59['label']['toLowerCase']()+')');_0x3e06b4['descriptionFactory']['registerDescriptionCallback'](_0x139a88=>{if('attribute'!=_0x139a88['type'])return;const {data:_0x98dfa4}=_0x139a88;if(!_0x98dfa4||'linkHref'!=_0x98dfa4['key'])return;const _0xbcb5df=_0x98dfa4['newValue'],_0x2772bc=_0x44b43c['locale'];return{'type':'format','content':null==_0xbcb5df?o(_0x2772bc,'*Remove\x20link*'):o(_0x2772bc,'*Set\x20link:*\x20%0','\x22'+_0xbcb5df+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3751ac=this['editor'],_0x337081=_0x3751ac['locale'];_0x3751ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a0cac=>{if('formatInline'!=_0x5a0cac['type'])return;const {data:_0x262c86}=_0x5a0cac;if(_0x262c86){if('link'==_0x262c86['commandName']){const _0x315ee0=_0x262c86['commandParams'][0x0];return{'type':'format','content':o(_0x337081,'*Set\x20link:*\x20%0','\x22'+_0x315ee0+'\x22')};}return'unlink'==_0x262c86['commandName']?{'type':'format','content':o(_0x337081,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x26a770{['afterInit'](){const _0x48cc12=this['editor'],_0x4b7597=_0x48cc12['locale'];if(!_0x48cc12['plugins']['has']('LegacyListEditing'))return;const _0x4522e1=_0x48cc12['plugins']['get']('TrackChangesEditing'),_0xac6130=_0x48cc12['plugins']['has']('LegacyTodoListEditing');function _0x16c465(_0x374f89){return()=>{const _0x25e378=_0x48cc12['model']['document']['selection'],_0xd4ef4d=_0x48cc12['commands']['get'](_0x374f89);if(_0xd4ef4d['value'])return void _0x48cc12['execute']('paragraph',{});const _0x29efca=_0x374f89['slice'](0x0,-0x4),_0x56928c=function(_0x458ac1,_0x5d84c4,_0x3aedf0){let _0x1ce158=Array['from'](_0x458ac1)['filter'](_0x49c86d=>function(_0x3c8b8c,_0x5b8d6d){return _0x5b8d6d['checkChild'](_0x3c8b8c['parent'],'listItem')&&!_0x5b8d6d['isObject'](_0x3c8b8c);}(_0x49c86d,_0x3aedf0));_0x1ce158=_0x1ce158['filter'](_0x3de27d=>!_0x3de27d['is']('element','listItem')||_0x3de27d['getAttribute']('listType')!=_0x5d84c4);const _0x55607d=new Set();for(const _0x31bfac of _0x1ce158)_0x31bfac['is']('element','listItem')?_0x55607d['add'](fe(_0x31bfac)):_0x55607d['add'](_0x31bfac);return Array['from'](_0x55607d);}(_0x25e378['getSelectedBlocks'](),_0x29efca,_0x48cc12['model']['schema']);_0x48cc12['model']['change'](()=>{for(const _0xcac97a of _0x56928c)_0x4522e1['markBlockFormat'](_0xcac97a,{'commandName':_0x374f89,'commandParams':[{'forceValue':!_0xd4ef4d['value']}],'formatGroupId':'blockName'},ue(_0xcac97a));});};}function _0x464d1d(_0x547121){return()=>{const _0x1333b7=function(_0x5b156e){let _0x4e0f68=Array['from'](_0x5b156e);const _0x2b563c=_0x4e0f68['findIndex'](_0x492c06=>'listItem'!=_0x492c06['name']);return _0x2b563c>-0x1&&(_0x4e0f68=_0x4e0f68['slice'](0x0,_0x2b563c)),_0x4e0f68;}(_0x48cc12['model']['document']['selection']['getSelectedBlocks']()),_0x53ea36=_0x48cc12['model']['createRange'](_0x48cc12['model']['createPositionAt'](_0x1333b7[0x0],'before'),_0x48cc12['model']['createPositionAt'](_0x1333b7[_0x1333b7['length']-0x1],'end'));_0x48cc12['model']['change'](()=>{_0x4522e1['markBlockFormat'](_0x53ea36,{'commandName':_0x547121,'commandParams':[],'formatGroupId':'listIndent'},function(_0x691293){const _0x5e3376=new Set();for(const _0xa8f82 of _0x691293){let _0x1860e6=_0xa8f82['nextSibling'];for(;_0x1860e6&&_0x1860e6['getAttribute']('listIndent')>_0xa8f82['getAttribute']('listIndent');)_0x5e3376['add'](_0x1860e6),_0x1860e6=_0x1860e6['nextSibling'];}return Array['from'](_0x5e3376);}(_0x1333b7));});};}_0x4522e1['enableCommand']('numberedList',_0x16c465('numberedList')),_0x4522e1['enableCommand']('bulletedList',_0x16c465('bulletedList')),_0xac6130&&_0x4522e1['enableCommand']('todoList',_0x16c465('todoList')),_0x4522e1['enableCommand']('indentList',_0x464d1d('indentList')),_0x4522e1['enableCommand']('outdentList',_0x464d1d('outdentList')),_0xac6130&&_0x4522e1['enableCommand']('checkTodoList',()=>{const _0x1ae537=_0x48cc12['commands']['get']('checkTodoList'),_0x53b670=Array['from'](_0x1ae537['_selectedElements']);_0x53b670['filter'](_0x34e171=>_0x34e171['getAttribute']('todoListChecked')!=_0x1ae537['value']),_0x48cc12['model']['change'](()=>{for(const _0x7ac48a of _0x53b670)_0x4522e1['markBlockFormat'](_0x7ac48a,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1ae537['value']}]});});}),_0x4522e1['descriptionFactory']['registerElementLabel']('listItem',_0x1a8275=>o(_0x4b7597,'ELEMENT_LIST_ITEM',_0x1a8275)),_0x4522e1['descriptionFactory']['registerDescriptionCallback'](_0x518e0c=>{if('formatBlock'!=_0x518e0c['type']&&'formatInline'!=_0x518e0c['type'])return;const {data:_0x556fde}=_0x518e0c;if(_0x556fde){if('numberedList'==_0x556fde['commandName']||'bulletedList'==_0x556fde['commandName']||'todoList'==_0x556fde['commandName'])switch(_0x556fde['commandName']['replace']('List','')){case'bulleted':return _0x48e84c(o(_0x4b7597,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48e84c(o(_0x4b7597,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48e84c(o(_0x4b7597,'ELEMENT_TODO_LIST'));}if('indentList'==_0x556fde['commandName'])return{'type':'format','content':o(_0x4b7597,'*Indent:*\x20%0',o(_0x4b7597,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x556fde['commandName'])return{'type':'format','content':o(_0x4b7597,'*Outdent:*\x20%0',o(_0x4b7597,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x556fde['commandName'])return _0x556fde['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b7597,'*Check\x20item*')}:{'type':'format','content':o(_0x4b7597,'*Uncheck\x20item*')};}function _0x48e84c(_0x214134){return{'type':'format','content':o(_0x4b7597,'*Change\x20to:*\x20%0',_0x214134)};}});}}function fe(_0x58092c){const _0x34a30d=_0x58092c['getAttribute']('listIndent');if(0x0==_0x34a30d)return _0x58092c;let _0x4da927=_0x58092c;for(;_0x58092c['previousSibling']&&_0x58092c['previousSibling']['is']('element','listItem');){const _0x37ac07=_0x58092c['previousSibling']['getAttribute']('listIndent');if(_0x37ac07==_0x34a30d)_0x4da927=_0x58092c['previousSibling'];else{if(_0x37ac07<_0x34a30d)break;}_0x58092c=_0x58092c['previousSibling'];}return _0x4da927;}function ue(_0x1ad0fe){const _0x57b71e=[];if(_0x1ad0fe['is']('element','listItem')&&_0x1ad0fe['getAttribute']('listIndent')>0x0){let _0x421d58=_0x1ad0fe['nextSibling'];for(;_0x421d58&&'listItem'==_0x421d58['name']&&_0x421d58['getAttribute']('listIndent')==_0x1ad0fe['getAttribute']('listIndent');)_0x57b71e['push'](_0x421d58),_0x421d58=_0x421d58['nextSibling'];}return _0x57b71e;}class W extends _0x26a770{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2fa2ed=this['editor']['config']['get']('list.properties'),_0x3347fc=this['editor']['plugins']['get']('TrackChangesEditing');_0x2fa2ed['styles']&&_0x3347fc['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2fa2ed['reversed']&&_0x3347fc['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2fa2ed['startIndex']&&_0x3347fc['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3347fc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2b55ae,_0x38fa95={}){const _0x20f9bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbab811=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x20f9bc['markMultiRangeBlockFormat'](_0xbab811,{'commandName':'listStyle','commandParams':[{'type':_0x38fa95['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x30c47f,_0x1705aa={}){const _0x536802=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa8623c=this['_getSuggestionBlocks'](_0x409cb4=>_0x409cb4['is']('element','listItem')&&'numbered'===_0x409cb4['getAttribute']('listType'));if(_0xa8623c['length']<0x1)return;const _0x472508=_0xa8623c['map'](_0x251f25=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x251f25,'before'),this['editor']['model']['createPositionAt'](_0x251f25,0x0)));this['editor']['model']['change'](()=>{_0x536802['markMultiRangeBlockFormat'](_0x472508,{'commandName':'listReversed','commandParams':[{'reversed':_0x1705aa['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5c5b6e,_0x4112e7={}){const _0x58ea76=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a02d9=this['_getSuggestionBlocks'](_0xfca0e5=>_0xfca0e5['is']('element','listItem')&&'numbered'===_0xfca0e5['getAttribute']('listType'));if(_0x1a02d9['length']<0x1)return;const _0x1e1f6d=_0x1a02d9['map'](_0x3f0cce=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f0cce,'before'),this['editor']['model']['createPositionAt'](_0x3f0cce,0x0)));this['editor']['model']['change'](()=>{_0x58ea76['markMultiRangeBlockFormat'](_0x1e1f6d,{'commandName':'listStart','commandParams':[{'startIndex':_0x4112e7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x492bf5){if('formatBlock'!=_0x492bf5['type']&&'formatInline'!=_0x492bf5['type'])return;const _0x5b68ce=this['editor']['locale'],{data:_0xa0e3d9}=_0x492bf5;if(!_0xa0e3d9)return;let _0x425fb6,_0x66dd8d;switch(_0xa0e3d9['commandName']){case'listStyle':_0x425fb6='*Change\x20to:*\x20%0',_0x66dd8d={'type':'format','content':o(_0x5b68ce,_0x425fb6,o(_0x5b68ce,this['_getTranslationKeyForListStyle'](_0xa0e3d9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x425fb6=_0xa0e3d9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x66dd8d={'type':'format','content':o(_0x5b68ce,_0x425fb6)};break;case'listStart':_0x425fb6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x66dd8d={'type':'format','content':o(_0x5b68ce,_0x425fb6,_0xa0e3d9['commandParams'][0x0]['startIndex'])};}return _0x66dd8d;}['_getSuggestionBlocksForListStyle'](){const _0x11c86a=this['editor']['plugins']['get']('LegacyListUtils');let _0xe84dad=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xe84dad[0x0]?.['is']('element','listItem')&&_0xe84dad['unshift'](..._0x11c86a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xe84dad[_0xe84dad['length']-0x1]?.['is']('element','listItem')&&_0xe84dad['push'](..._0x11c86a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xe84dad=[...new Set(_0xe84dad)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xe84dad=_0xe84dad['filter'](_0x212e11=>_0x212e11['is']('element','listItem'))),_0xe84dad;}['_getSuggestionBlocks'](_0x40c877){const _0x4538c9=this['editor']['plugins']['get']('LegacyListUtils');let _0x4b3e4d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x40c877)['map'](_0x5a4680=>{const _0x380087=this['editor']['model']['createPositionAt'](_0x5a4680,0x0);return[..._0x4538c9['getSiblingNodes'](_0x380087,'backward'),..._0x4538c9['getSiblingNodes'](_0x380087,'forward')];})['flat']();return _0x4b3e4d=[...new Set(_0x4b3e4d)],_0x4b3e4d;}['_getTranslationKeyForListStyle'](_0x3273fd){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3273fd)||'default')['toUpperCase']()+'_LIST_'+_0x3273fd['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x26a770{['afterInit'](){const _0x3d1090=this['editor'];if(!_0x3d1090['plugins']['has']('MediaEmbedEditing'))return;const _0x18a77d=_0x3d1090['plugins']['get']('TrackChangesEditing'),_0x1bafc9=_0x3d1090['locale'];_0x18a77d['enableCommand']('mediaEmbed'),_0x18a77d['descriptionFactory']['registerElementLabel']('media',_0x2767db=>o(_0x1bafc9,'ELEMENT_MEDIA',_0x2767db)),_0x3d1090['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5a58b6,{writer:_0x3ca698,options:_0xe2d6c9})=>{if(_0xe2d6c9['showSuggestionHighlights'])return _0x3ca698['createEmptyElement']('div');},'converterPriority':'high'}),_0x3d1090['data']['downcastDispatcher']['on']('attribute:url:media',(_0x762a4f,_0x4040fc,_0x109794)=>{_0x109794['options']['showSuggestionHighlights']&&_0x762a4f['stop']();},{'priority':'high'});}}class mt extends _0x26a770{['afterInit'](){const _0xa06a5d=this['editor'];_0xa06a5d['plugins']['has']('MentionEditing')&&_0xa06a5d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x26a770{['afterInit'](){const _0x34460b=this['editor'];if(!_0x34460b['plugins']['has']('MergeFieldsEditing'))return;_0x34460b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x34460b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x1784db=_0x34460b['plugins']['get']('TrackChangesEditing'),_0x541da8=_0x34460b['locale'];_0x1784db['descriptionFactory']['registerElementLabel']('mergeField',_0x3ac03d=>o(_0x541da8,'ELEMENT_MERGE_FIELD',_0x3ac03d)),_0x1784db['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5007d4=>o(_0x541da8,'ELEMENT_MERGE_FIELD',_0x5007d4)),_0x1784db['descriptionFactory']['registerDescriptionCallback'](_0x526dc3=>{if('insertion'!=_0x526dc3['type']&&'deletion'!=_0x526dc3['type'])return;const _0x1f06ef=_0x526dc3['getContainedElement']();if(null==_0x1f06ef)return;if(!_0x1f06ef['is']('element','mergeField')&&!_0x1f06ef['is']('element','mergeFieldBlock'))return;const _0x4a708d=_0x34460b['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x1f06ef['getAttribute']('id'));return'insertion'==_0x526dc3['type']?{'type':'insertion','content':o(_0x541da8,'*Insert:*\x20%0','\x22'+_0x4a708d+'\x22\x20'+o(_0x541da8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x541da8,'*Remove:*\x20%0','\x22'+_0x4a708d+'\x22\x20'+o(_0x541da8,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x26a770{['afterInit'](){const _0x55c8ba=this['editor'],_0x81ff6c=_0x55c8ba['plugins']['get']('TrackChangesEditing');_0x55c8ba['plugins']['has']('MultiLevelList')&&(_0x81ff6c['enableDefaultAttributesIntegration']('multiLevelList'),_0x81ff6c['registerBlockAttribute']('listMarkerStyle'),_0x81ff6c['descriptionFactory']['registerDescriptionCallback'](_0x29f53a=>this['handleDescriptions'](_0x29f53a)));}['handleDescriptions'](_0x10bd04){const _0xb9e1e0=this['editor']['locale'],{data:_0x196382}=_0x10bd04,_0x137401={'type':'format','content':''};if(_0x196382&&'listMarkerStyle'==_0x196382['key']){if(!_0x196382['oldValue'])return{'type':'format','content':o(_0xb9e1e0,'*Set\x20format:*\x20%0',o(_0xb9e1e0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x196382['newValue']+')'};if(!_0x196382['newValue']){let _0x5c9f32=_0x10bd04['head'];for(;_0x5c9f32;){if(_0x5c9f32['data']&&'listType'==_0x5c9f32['data']['key']&&_0x5c9f32['data']['newValue'])return _0x137401;_0x5c9f32=_0x5c9f32['next'];}return{'type':'format','content':o(_0xb9e1e0,'*Remove\x20format:*\x20%0',o(_0xb9e1e0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x196382['oldValue']+')'};}}}}class kt extends _0x26a770{['afterInit'](){const _0xc427d2=this['editor'];if(!_0xc427d2['plugins']['has']('PageBreakEditing'))return;_0xc427d2['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x18a460=_0xc427d2['plugins']['get']('TrackChangesEditing'),_0x28933b=_0xc427d2['locale'];_0x18a460['descriptionFactory']['registerElementLabel']('pageBreak',_0x15cb7b=>o(_0x28933b,'ELEMENT_PAGE_BREAK',_0x15cb7b));}}class bt extends _0x26a770{['afterInit'](){const _0x38e491=this['editor'];if(!_0x38e491['plugins']['has']('Paragraph'))return;const _0x4b7357=_0x38e491['locale'],_0x535b4f=_0x38e491['plugins']['get']('TrackChangesEditing');_0x535b4f['descriptionFactory']['registerElementLabel']('paragraph',_0x2708c3=>o(_0x4b7357,'ELEMENT_PARAGRAPH',_0x2708c3)),_0x535b4f['enableDefaultAttributesIntegration']('paragraph'),_0x535b4f['enableCommand']('insertParagraph'),_0x38e491['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x38e491),{'priority':'highest'}),_0x38e491['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x156959,_0x343c05,_0x3e32f9)=>{_0x3e32f9['options']['showSuggestionHighlights']&&nr(_0x38e491,{'showActiveMarker':!0x1})(_0x156959,_0x343c05,_0x3e32f9);},{'priority':'highest'});const _0x2f6f9d=_0x535b4f['descriptionFactory'];_0x2f6f9d['registerDescriptionCallback'](_0x28b74c=>{if('insertion'!==_0x28b74c['type'])return;const {start:_0x343fce,end:_0x52064d}=_0x28b74c['getFirstRange']();if(!_0x343fce['isTouching'](_0x52064d)||!_0x343fce['nodeAfter'])return;const _0x2994aa=_0x38e491['model']['schema'],_0x1eee58=_0x343fce['nodeAfter'];return _0x2994aa['isBlock'](_0x1eee58)&&!_0x2994aa['isLimit'](_0x1eee58)&&_0x2994aa['checkChild'](_0x1eee58,'$text')?{'type':'insertion','content':o(_0x4b7357,'*Insert:*\x20%0',_0x2f6f9d['getItemLabel'](_0x1eee58,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b5511=this['editor'],_0x709b63=_0x5b5511['locale'];_0x5b5511['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47dd49=>{if('formatBlock'!=_0x47dd49['type'])return;const {data:_0x4c7cc1}=_0x47dd49;return _0x4c7cc1&&'paragraph'==_0x4c7cc1['commandName']?{'type':'format','content':o(_0x709b63,'*Change\x20to:*\x20%0',o(_0x709b63,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xe45406,{showActiveMarker:_0x40176a=!0x0}={}){return(_0x3a946e,_0x2d1f86,_0x211268)=>{const _0x2b0683=_0xe45406['plugins']['get']('TrackChangesEditing'),_0x56af67=_0x2d1f86['markerRange']['start'],_0x22fa67=_0x2d1f86['markerRange']['end'],_0xd0dfa9=_0xe45406['model']['schema'];if(!_0x56af67['isTouching'](_0x22fa67)||!_0x56af67['nodeAfter'])return;const _0x226654=_0x56af67['nodeAfter'];if(_0xd0dfa9['isBlock'](_0x226654)&&!_0xd0dfa9['isLimit'](_0x226654)&&_0xd0dfa9['checkChild'](_0x226654,'$text')){if(!_0x211268['consumable']['consume'](_0x2d1f86['markerRange'],_0x3a946e['name']))return;const {authorId:_0x2a17b3}=_0x2b0683['_splitMarkerName'](_0x2d1f86['markerName']),_0x4904f8=_0x211268['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2a17b3}),_0x5e1799=_0x211268['mapper']['toViewPosition'](_0x22fa67);_0x40176a&&_0x2b0683['activeMarkers']['includes'](_0x2d1f86['markerName'])&&_0x211268['writer']['addClass']('ck-suggestion-marker--active',_0x4904f8),_0x211268['writer']['insert'](_0x5e1799,_0x4904f8),_0x211268['mapper']['bindElementToMarker'](_0x4904f8,_0x2d1f86['markerName']);}};}class wt extends _0x26a770{['afterInit'](){const _0x5836df=this['editor'];if(!_0x5836df['plugins']['has']('RemoveFormatEditing'))return;_0x5836df['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f470f=this['editor'];_0x4f470f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb9b930=>{if('formatBlock'!=_0xb9b930['type']&&'formatInline'!=_0xb9b930['type'])return;const {data:_0x33354c}=_0xb9b930;return _0x33354c&&'removeFormat'==_0x33354c['commandName']?{'type':'format','content':o(_0x4f470f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x26a770{['afterInit'](){const _0x1a5648=this['editor'];if(!_0x1a5648['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1dff08=_0x1a5648['plugins']['get']('TrackChangesEditing');_0x1dff08['enableCommand']('goToPreviousRestrictedEditingException'),_0x1dff08['enableCommand']('goToNextRestrictedEditingException');const _0x1294f9=_0x1a5648['plugins']['get']('RestrictedEditingModeEditing');_0x1294f9['enableCommand']('trackChanges'),_0x1294f9['enableCommand']('acceptSuggestion'),_0x1294f9['enableCommand']('discardSuggestion'),_0x1294f9['enableCommand']('acceptAllSuggestions'),_0x1294f9['enableCommand']('discardAllSuggestions'),_0x1294f9['enableCommand']('acceptSelectedSuggestions'),_0x1294f9['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x26a770{static get['requires'](){return[_0x12f81c];}['init'](){const _0xce6028=this['editor'],_0x4df44d=_0xce6028['plugins']['get']('TrackChangesEditing');_0x4df44d['enableCommand']('shiftEnter'),_0xce6028['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0xce6028),{'priority':'high'}),_0xce6028['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0xce6028),{'priority':'high'}),_0xce6028['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x13f81d,_0x9b21e7,_0x108860)=>{_0x108860['options']['showSuggestionHighlights']&&ge(_0xce6028,{'showActiveMarker':!0x1})(_0x13f81d,_0x9b21e7,_0x108860);}),_0x4df44d['descriptionFactory']['registerElementLabel']('softBreak',_0x45fe4c=>o(_0xce6028['locale'],'ELEMENT_LINE_BREAK',_0x45fe4c));}}function ge(_0x26f1bd,{showActiveMarker:_0x438a8f=!0x0}={}){return(_0x56916b,_0x545525,_0x348f02)=>{const _0x1f5e96=_0x26f1bd['plugins']['get']('TrackChangesEditing');if(!_0x348f02['consumable']['test'](_0x545525['markerRange'],_0x56916b['name']))return;const _0x287f0d=_0x26f1bd['model'];for(const _0x14d1dd of _0x545525['markerRange']['getItems']()){if(!_0x14d1dd['is']('element','softBreak'))continue;const _0x15b424='deletion'==_0x545525['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3a9a46}=_0x1f5e96['_splitMarkerName'](_0x545525['markerName']),_0x5209ef=_0x348f02['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x15b424,'data-author-id':_0x3a9a46}),_0x18f760=_0x348f02['mapper']['toViewPosition'](_0x287f0d['createPositionBefore'](_0x14d1dd));_0x438a8f&&_0x1f5e96['activeMarkers']['includes'](_0x545525['markerName'])&&_0x348f02['writer']['addClass']('ck-suggestion-marker--active',_0x5209ef),_0x348f02['writer']['insert'](_0x18f760,_0x5209ef),_0x348f02['mapper']['bindElementToMarker'](_0x5209ef,_0x545525['markerName']);}};}class St extends _0x26a770{['afterInit'](){const _0x2504ff=this['editor'],_0x54da9e=_0x2504ff['model'],_0x42334e=_0x2504ff['locale'];if(!_0x2504ff['plugins']['has']('StandardEditingModeEditing'))return;const _0x355307=_0x2504ff['plugins']['get']('TrackChangesEditing'),_0x17174c='restrictedEditingException',_0x4f48af=_0x2504ff['commands']['get'](_0x17174c);_0x355307['enableCommand'](_0x17174c,(_0x3a4363,_0xba0e20={})=>{const _0x4dafd3=_0x54da9e['document']['selection'];if(_0x4dafd3['isCollapsed'])return void _0x3a4363(_0xba0e20);const _0x13e7fa=void 0x0!==_0xba0e20['forceValue']?_0xba0e20['forceValue']:!_0x4f48af['value'];_0x54da9e['change'](()=>{const _0x145724=Array['from'](_0x4dafd3['getRanges']());for(const _0x4b580a of _0x145724){const _0x46f5bd=_0x13e7fa?[_0x4b580a]:io(_0x17174c,_0x4b580a,_0x54da9e);for(const _0x72ebda of _0x46f5bd)_0x355307['markInlineFormat'](_0x72ebda,{'commandName':_0x17174c,'commandParams':[{'forceValue':_0x13e7fa}]});}});}),_0x355307['descriptionFactory']['registerDescriptionCallback'](_0x38a451=>{if('formatBlock'!=_0x38a451['type']&&'formatInline'!=_0x38a451['type'])return;const {data:_0x38b047}=_0x38a451;return _0x38b047&&_0x38b047['commandName']==_0x17174c?_0x38b047['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42334e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x42334e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x26a770{['afterInit'](){const _0x3e547d=this['editor'];if(!_0x3e547d['plugins']['has']('Style')||!_0x3e547d['plugins']['has']('DataSchema'))return;const _0x299080=_0x3e547d['plugins']['get']('TrackChangesEditing'),_0xba6f97=_0x3e547d['locale'],_0x371026=_0x3e547d['config']['get']('style')||{},_0x1f8cad=_0x3e547d['plugins']['get']('GeneralHtmlSupport'),_0x5a2004=_0x3e547d['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3e547d['plugins']['get']('DataSchema'),_0x371026['definitions']);_0x299080['enableDefaultAttributesIntegration']('style');const _0x389ced=new Set();for(const _0x16a095 of _0x5a2004['block']){const _0x360e8a=_0x1f8cad['getGhsAttributeNameForElement'](_0x16a095['element']);_0x389ced['add'](_0x360e8a);}const _0x450cea=new Set();for(const _0x99c716 of _0x5a2004['inline']){const _0x402c52=_0x1f8cad['getGhsAttributeNameForElement'](_0x99c716['element']);_0x450cea['add'](_0x402c52);for(const _0x28fbe1 of _0x99c716['ghsAttributes'])_0x450cea['add'](_0x28fbe1);}for(const _0x18b6da of _0x389ced)_0x299080['registerBlockAttribute'](_0x18b6da),_0x299080['descriptionFactory']['registerAttributeLabel'](_0x18b6da,o(_0xba6f97,'FORMAT_STYLE'));for(const _0x3cb1e0 of _0x450cea)_0x299080['registerInlineAttribute'](_0x3cb1e0),_0x299080['descriptionFactory']['registerAttributeLabel'](_0x3cb1e0,o(_0xba6f97,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcbeb92=this['editor'],_0x307c8a=_0xcbeb92['locale'];_0xcbeb92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28afc0=>{if('formatBlock'!=_0x28afc0['type']&&'formatInline'!=_0x28afc0['type'])return;const {data:_0x5cdc2b}=_0x28afc0;return _0x5cdc2b&&'style'===_0x5cdc2b['commandName']?_0x5cdc2b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x307c8a,'*Set\x20format:*\x20%0',_0x5cdc2b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x307c8a,'*Remove\x20format:*\x20%0',_0x5cdc2b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x26a770{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x52ec11){super(_0x52ec11),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3c2476=this['editor'],_0x345ab3=_0x3c2476['model']['document']['selection'];if(!_0x3c2476['plugins']['has']('TableEditing'))return;const _0x3c98b1=_0x3c2476['locale'],_0x4494ab=_0x3c2476['plugins']['get']('TrackChangesEditing'),_0x28c793=_0x3c2476['plugins']['get']('TableUtils');_0x4494ab['descriptionFactory']['registerElementLabel']('table',_0x52bc27=>o(_0x3c98b1,'ELEMENT_TABLE',_0x52bc27)),this['_setupColumnsRowsFixing'](),_0x4494ab['enableCommand']('insertTable'),_0x4494ab['enableCommand']('selectTableRow'),_0x4494ab['enableCommand']('selectTableColumn');for(const _0x5bd8c4 of['insertTableRowAbove','insertTableRowBelow']){const _0x4c2359=_0x3c2476['commands']['get'](_0x5bd8c4);_0x4494ab['enableCommand'](_0x5bd8c4,_0x3dd2aa=>{_0x3c2476['model']['change'](_0x190e5c=>{_0x3dd2aa();const _0x117fd2='above'===_0x4c2359['order'],_0xed3f2f=_0x28c793['getSelectionAffectedTableCells'](_0x345ab3),_0x5c7f83=_0x28c793['getRowIndexes'](_0xed3f2f),_0x173838=_0x117fd2?_0x5c7f83['first']-0x1:_0x5c7f83['last']+0x1,_0x560067=_0xed3f2f[0x0]['findAncestor']('table'),_0xee7070=_0x28c793['createTableWalker'](_0x560067,{'startRow':_0x173838,'endRow':_0x173838}),_0x428f85=Array['from'](_0xee7070)['map'](_0x883e9a=>_0x190e5c['createRangeOn'](_0x883e9a['cell']));_0x4494ab['markMultiRangeInsertion'](_0x428f85,'tableRow');});});}for(const _0x288bcb of['insertTableColumnLeft','insertTableColumnRight']){const _0x187dfa=_0x3c2476['commands']['get'](_0x288bcb);_0x4494ab['enableCommand'](_0x288bcb,_0x2964f4=>{_0x3c2476['model']['change'](_0x5b0c2c=>{_0x2964f4();const _0x2388e1='left'===_0x187dfa['order'],_0x22bce7=_0x28c793['getSelectionAffectedTableCells'](_0x345ab3),_0xd40941=_0x28c793['getColumnIndexes'](_0x22bce7),_0xe4b1d=_0x2388e1?_0xd40941['first']-0x1:_0xd40941['last']+0x1,_0x4f882b=_0x22bce7[0x0]['findAncestor']('table'),_0x1ae025=_0x28c793['createTableWalker'](_0x4f882b,{'startRow':0x0,'column':_0xe4b1d,'includeAllSlots':!0x1}),_0x173618=Array['from'](_0x1ae025)['map'](_0x5bf8e4=>_0x5b0c2c['createRangeOn'](_0x5bf8e4['cell']));_0x4494ab['markMultiRangeInsertion'](_0x173618,'tableColumn');});});}for(const _0x42a2a6 of['removeTableRow','removeTableColumn']){const _0x15ba86=_0x42a2a6['substr'](0xb),_0x149b1e=_0x15ba86['toLowerCase'](),_0x2af037=_0x149b1e['substr'](0x0,0x3)+'span',_0x57a75b='table'+_0x15ba86,_0x1eb0a6='min'+_0x15ba86,_0x284689='max'+_0x15ba86;_0x4494ab['enableCommand'](_0x42a2a6,()=>{_0x3c2476['model']['change'](_0x243504=>{const _0x1ffd98=_0x28c793['getSelectionAffectedTableCells'](_0x345ab3),_0x13b852=_0x1ffd98[0x0]['findAncestor']('table');let _0x52e9bb;if('removeTableRow'==_0x42a2a6){const _0x42d098=_0x28c793['getRowIndexes'](_0x1ffd98);_0x52e9bb={'startRow':_0x42d098['first'],'endRow':_0x42d098['last'],'includeAllSlots':!0x0};}else{const _0xf74dd6=_0x28c793['getColumnIndexes'](_0x1ffd98);_0x52e9bb={'startColumn':_0xf74dd6['first'],'endColumn':_0xf74dd6['last'],'includeAllSlots':!0x0};}const _0x4f3e49=_0x28c793['createTableWalker'](_0x13b852,_0x52e9bb),_0x38d8e1=Array['from'](_0x4f3e49)['map'](({cell:_0x548a28})=>_0x548a28),_0x49e5e8=be(_0x38d8e1['filter'](_0x2e807b=>_0x2e807b['hasAttribute'](_0x2af037))),_0x160e37=be(_0x38d8e1['filter'](_0x2b7de3=>!_0x2b7de3['hasAttribute'](_0x2af037)))['map'](_0x55d9b1=>_0x243504['createRangeOn'](_0x55d9b1)),_0x5bb141=_0x4494ab['markMultiRangeDeletion'](_0x160e37,_0x57a75b);if(_0x5bb141&&('tableRow'==_0x5bb141['subType']||'tableColumn'==_0x5bb141['subType'])){const _0x2a839d=this['_getSuggestionCoords'](_0x5bb141);for(const _0x4a6f30 of _0x49e5e8){const _0x281a43=_0x243504['createRangeOn'](_0x4a6f30),_0x26bb95=_0x28c793['getCellLocation'](_0x4a6f30),_0x1e0c81=_0x4a6f30['getAttribute'](_0x2af037)-0x1,_0x527d8a=_0x2a839d[_0x1eb0a6],_0x4a8ed3=_0x2a839d[_0x284689];_0x527d8a<=_0x26bb95[_0x149b1e]&&_0x26bb95[_0x149b1e]+_0x1e0c81<=_0x4a8ed3&&_0x5bb141['addRange'](_0x281a43);}}});});}function _0x9a6647(_0x41a5d9){const _0x4905aa=Array['from'](_0x345ab3['getRanges']())['map'](_0xb95154=>_0x7da4c9['fromRange'](_0xb95154));_0x3c2476['model']['change'](_0x65339b=>{const _0x42b1de=_0x65339b['batch'];_0x41a5d9=_0x41a5d9['filter'](_0x20638e=>'$graveyard'!=_0x20638e['root']['rootName']),_0x65339b['setSelection'](_0x41a5d9),_0x3c2476['commands']['get']('removeTableRow')['refresh'](),_0x3c2476['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3c2476['model']['enqueueChange'](()=>{_0x3c2476['model']['enqueueChange'](_0x42b1de,_0x4d7b60=>{const _0x4ba337=_0x4905aa['filter'](_0x59eead=>'$graveyard'!=_0x59eead['root']['rootName']);_0x4ba337['length']>0x0&&_0x4d7b60['setSelection'](_0x4ba337);for(const _0x55a4fa of _0x4905aa)_0x55a4fa['detach']();});});});}function _0xf9a1e1(_0x453a7a){_0x3c2476['model']['change'](_0x295493=>{const _0x5535cc=Array['from'](_0x345ab3['getRanges']())['map'](_0x56d853=>_0x7da4c9['fromRange'](_0x56d853)),_0x1310b0=[];for(const _0x19ea4a of _0x453a7a)for(const _0x13a253 of _0x19ea4a['getItems']({'shallow':!0x0}))_0x1310b0['push'](_0x13a253);for(const _0x1dc925 of _0x1310b0)'$graveyard'!=_0x1dc925['root']['rootName']&&(_0x295493['setSelection'](_0x295493['createPositionAt'](_0x1dc925,0x0)),_0x3c2476['commands']['get']('removeTableColumn')['refresh'](),_0x3c2476['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x275cfc=_0x5535cc['filter'](_0x88c031=>'$graveyard'!=_0x88c031['root']['rootName']);_0x275cfc['length']>0x0&&_0x295493['setSelection'](_0x275cfc);for(const _0x3c45aa of _0x5535cc)_0x3c45aa['detach']();});}function _0x2cbf31(_0x592130,_0x56a3c4){return _0x56a3c4['every'](_0x328d0e=>_0x592130['some'](_0x289ab4=>_0x289ab4['end']['isEqual'](_0x328d0e['start'])||_0x328d0e['end']['isEqual'](_0x289ab4['start'])));}function _0x1470c6(_0x48457b,_0x39fcc9){return!_0x48457b['some'](_0x1b6802=>_0x39fcc9['some'](_0x1b7640=>_0x1b6802['isIntersecting'](_0x1b7640)))&&_0x48457b['some'](_0x4ad9ba=>_0x39fcc9['some'](_0x1eb2f2=>_0x4ad9ba['end']['isTouching'](_0x1eb2f2['start'])));}_0x3c2476['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xf22031,_0x30898d,_0x6d422f)=>{if(!_0x6d422f['options']['showSuggestionHighlights'])return;const _0x401050=_0x30898d['item'];if(!_0x401050)return;const _0x2653c0=_0x6d422f['mapper']['toViewElement'](_0x401050);function _0x44ce78(_0x2faaac){return Array['isArray'](_0x2faaac)?_0x2faaac:[_0x2faaac];}_0x2653c0&&'tableCell'===_0x401050['name']&&_0x43adf1(_0x2653c0,_0x6d422f['writer'],(_0x1828a1,_0x320255,_0x376e57)=>_0x376e57['addClass'](_0x44ce78(_0x320255['classes']),_0x1828a1),(_0x14d0ee,_0x408056,_0x490c99)=>_0x490c99['removeClass'](_0x44ce78(_0x408056['classes']),_0x14d0ee));},{'priority':'highest'}),_0x4494ab['descriptionFactory']['registerDescriptionCallback'](_0x303b11=>{if('insertion'!=_0x303b11['type']&&'deletion'!=_0x303b11['type'])return;const _0x29edc0=_0x303b11['getContainedElement']();if(null!=_0x29edc0&&_0x29edc0['is']('element','table')){if('insertion'==_0x303b11['type']){const _0x4b0f27=_0x303b11['getItems']()['filter'](_0x3ccc49=>_0x3ccc49['is']('$textProxy'))['map'](_0x44e023=>_0x44e023['data']);if(_0x4b0f27['length'])return{'type':'insertion','content':o(_0x3c98b1,'*Insert:*\x20%0',o(_0x3c98b1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4b0f27['join']('\x20')+'\x22'))};}if('deletion'==_0x303b11['type']){const _0x5d7db1=_0x303b11['getItems']()['filter'](_0xa7e230=>_0xa7e230['is']('$textProxy'))['map'](_0x1b4f32=>_0x1b4f32['data']);if(_0x5d7db1['length'])return{'type':'deletion','content':o(_0x3c98b1,'*Remove:*\x20%0',o(_0x3c98b1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5d7db1['join']('\x20')+'\x22'))};}}}),_0x4494ab['descriptionFactory']['registerDescriptionCallback'](_0x4acb9f=>{if('tableRow'==_0x4acb9f['subType']){const _0x2066f1=_0x4acb9f['getItems']()['filter'](_0x3292bf=>_0x3292bf['is']('$textProxy'))['map'](_0x4f644b=>_0x4f644b['data']),_0x4fe145=this['_getSuggestionCoords'](_0x4acb9f),_0x4089dc=_0x4fe145['maxRow']-_0x4fe145['minRow']+0x1;if('insertion'==_0x4acb9f['type'])return _0x2066f1['length']?{'type':'insertion','content':o(_0x3c98b1,'*Insert:*\x20%0',o(_0x3c98b1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4089dc,'\x22'+_0x2066f1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3c98b1,'*Insert:*\x20%0',o(_0x3c98b1,'ELEMENT_TABLE_ROW',_0x4089dc))};if('deletion'==_0x4acb9f['type'])return _0x2066f1['length']?{'type':'deletion','content':o(_0x3c98b1,'*Remove:*\x20%0',o(_0x3c98b1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4089dc,'\x22'+_0x2066f1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3c98b1,'*Remove:*\x20%0',o(_0x3c98b1,'ELEMENT_TABLE_ROW',_0x4089dc))};}if('tableColumn'==_0x4acb9f['subType']){const _0x87f4ad=_0x4acb9f['getItems']()['filter'](_0x11895d=>_0x11895d['is']('$textProxy'))['map'](_0x6bf7aa=>_0x6bf7aa['data']),_0x1500d0=this['_getSuggestionCoords'](_0x4acb9f),_0x1dc1fc=_0x1500d0['maxColumn']-_0x1500d0['minColumn']+0x1;if('insertion'==_0x4acb9f['type'])return _0x87f4ad['length']?{'type':'insertion','content':o(_0x3c98b1,'*Insert:*\x20%0',o(_0x3c98b1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1dc1fc,'\x22'+_0x87f4ad['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3c98b1,'*Insert:*\x20%0',o(_0x3c98b1,'ELEMENT_TABLE_COLUMN',_0x1dc1fc))};if('deletion'==_0x4acb9f['type'])return _0x87f4ad['length']?{'type':'deletion','content':o(_0x3c98b1,'*Remove:*\x20%0',o(_0x3c98b1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1dc1fc,'\x22'+_0x87f4ad['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3c98b1,'*Remove:*\x20%0',o(_0x3c98b1,'ELEMENT_TABLE_COLUMN',_0x1dc1fc))};}}),_0x4494ab['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x9a6647),_0x4494ab['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x9a6647),_0x4494ab['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xf9a1e1),_0x4494ab['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xf9a1e1),_0x4494ab['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2cbf31),_0x4494ab['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2cbf31),_0x4494ab['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1470c6),_0x4494ab['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1470c6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x301ba4=this['editor'],_0x5baa2e=_0x301ba4['model']['document']['selection'];return(_0x4659d5,_0x13d64c)=>{_0x301ba4['model']['change'](_0x4fbeb8=>{const {commandName:_0x2110fd,commandParams:_0x5ee5fd}=_0x13d64c;let _0x4b8c6d=_0x4659d5[0x0]['end']['nodeBefore'];_0x5ee5fd&&_0x5ee5fd[0x0]&&!0x1===_0x5ee5fd[0x0]['forceValue']&&(_0x4b8c6d=_0x4659d5[0x0]['start']['nodeAfter']);const _0x14a5af=_0x4fbeb8['createRangeIn'](_0x4b8c6d);if('$graveyard'==_0x14a5af['root']['rootName'])return;const _0x240b41=Array['from'](_0x5baa2e['getRanges']())['map'](_0x5d7911=>_0x7da4c9['fromRange'](_0x5d7911));_0x4fbeb8['setSelection'](_0x14a5af),_0x301ba4['commands']['get'](_0x2110fd)['refresh'](),_0x5ee5fd['push']({'forceDefaultExecution':!0x0}),_0x301ba4['execute'](_0x2110fd,..._0x5ee5fd);const _0x4e37cc=_0x240b41['filter'](_0x59e1c3=>'$graveyard'!=_0x59e1c3['root']['rootName']);_0x4e37cc['length']>0x0&&_0x4fbeb8['setSelection'](_0x4e37cc);for(const _0x192b67 of _0x240b41)_0x192b67['detach']();});};}['_getCoordsForCells'](_0x26a06c){const _0x21641a=this['editor']['plugins']['get']('TableUtils');let _0x4d17f2=Number['MAX_SAFE_INTEGER'],_0x5f4b44=Number['MIN_SAFE_INTEGER'],_0x4ddf42=Number['MAX_SAFE_INTEGER'],_0x300871=Number['MIN_SAFE_INTEGER'];for(const _0x4b68cd of _0x26a06c){if('$graveyard'==_0x4b68cd['root']['rootName'])continue;const {row:_0x343da4,column:_0x2ebb9e}=_0x21641a['getCellLocation'](_0x4b68cd),_0x17aa27=_0x4b68cd['hasAttribute']('rowspan')?_0x4b68cd['getAttribute']('rowspan')-0x1:0x0,_0x222183=_0x4b68cd['hasAttribute']('colspan')?_0x4b68cd['getAttribute']('colspan')-0x1:0x0;_0x4d17f2=_0x343da4<_0x4d17f2?_0x343da4:_0x4d17f2,_0x5f4b44=_0x343da4+_0x17aa27>_0x5f4b44?_0x343da4+_0x17aa27:_0x5f4b44,_0x4ddf42=_0x2ebb9e<_0x4ddf42?_0x2ebb9e:_0x4ddf42,_0x300871=_0x2ebb9e+_0x222183>_0x300871?_0x2ebb9e+_0x222183:_0x300871;}return{'minRow':_0x4d17f2,'maxRow':_0x5f4b44,'minColumn':_0x4ddf42,'maxColumn':_0x300871};}['_setupColumnsRowsFixing'](){const _0x1881c7=this['editor'],_0x1402ea=_0x1881c7['plugins']['get']('TrackChangesEditing'),_0x288ffd=_0x1881c7['plugins']['get']('TableUtils');_0x1881c7['model']['document']['on']('change:data',()=>{const _0x42347c=Array['from'](_0x1881c7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d5f45,data:_0x1ca387}of _0x42347c){const {group:_0x2d8736,id:_0x3ed388,subType:_0x523993}=_0x1402ea['_splitMarkerName'](_0x2d5f45);if('suggestion'!=_0x2d8736)continue;if(null!=_0x1ca387['oldRange'])continue;const _0x13bc88=_0x1402ea['getSuggestion'](_0x3ed388);this['_tablePostFixingSubtypes']['includes'](_0x523993)&&this['_tableSuggestions']['add'](_0x13bc88);}},{'priority':'low'});const _0x1cc6c8=(_0x2d59ca,_0xdcbcb0)=>{let _0x3fdf21=!0x1;const _0x3d1925=_0xdcbcb0['createRangeOn'](_0x2d59ca),_0x4b1925=_0x2d59ca['findAncestor']('table'),_0xb6e7e1=_0x288ffd['getCellLocation'](_0x2d59ca);for(const _0x47ff7e of this['_tableSuggestions']){const _0x7b22db=_0x47ff7e['subType'],_0x55b96d=_0x7b22db['startsWith']('tablePaste'),_0xb2e49a=_0x7b22db['substr'](_0x55b96d?0xa:0x5),_0x2a20e9=_0xb2e49a['toLowerCase'](),_0x161939=_0x2a20e9['substr'](0x0,0x3)+'span',_0x20af14='min'+_0xb2e49a,_0xeaf559='max'+_0xb2e49a;if(!_0x47ff7e['isInContent'])continue;if(_0x4b1925!=_0x47ff7e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x47ff7e['isIntersectingWithRange'](_0x3d1925))continue;const _0x5b93e5=_0x2d59ca['hasAttribute'](_0x161939)?_0x2d59ca['getAttribute'](_0x161939)-0x1:0x0,_0x23b95d=this['_getSuggestionCoords'](_0x47ff7e),_0x5aa47f=_0x23b95d[_0x20af14],_0x470369=_0x23b95d[_0xeaf559];_0x5aa47f<=_0xb6e7e1[_0x2a20e9]&&_0xb6e7e1[_0x2a20e9]+_0x5b93e5<=_0x470369&&(_0x47ff7e['addRange'](_0x3d1925),_0x3fdf21=!0x0);}return _0x3fdf21;};_0x1881c7['model']['document']['registerPostFixer'](_0x22bebc=>{let _0xea014=!0x1;for(const _0x1aef58 of _0x1881c7['model']['document']['differ']['getChanges']())if('insert'==_0x1aef58['type']){if('tableRow'==_0x1aef58['name']){for(const _0x319f32 of _0x1aef58['position']['nodeAfter']['getChildren']())_0xea014=_0xea014||_0x1cc6c8(_0x319f32,_0x22bebc);}else'tableCell'==_0x1aef58['name']&&(_0xea014=_0xea014||_0x1cc6c8(_0x1aef58['position']['nodeAfter'],_0x22bebc));}return _0xea014;});}['_getSuggestionCoords'](_0x16535b){return this['_getCoordsForCells'](_0x16535b['getRanges']()['map'](_0x58bc3f=>_0x58bc3f['start']['nodeAfter']));}}function be(_0x140b8f){return Array['from'](new Set(_0x140b8f)['values']());}class vt extends _0x26a770{static get['requires'](){return[It];}['afterInit'](){const _0x7b4a53=this['editor'],_0x2452df=_0x7b4a53['model']['document']['selection'],_0x82fe33=_0x7b4a53['locale'];if(!_0x7b4a53['plugins']['has']('TableEditing'))return;const _0x446c5e=_0x7b4a53['plugins']['get']('TrackChangesEditing'),_0x455f92=_0x7b4a53['plugins']['get']('TableUtils'),_0x525102=_0x7b4a53['plugins']['get'](It);_0x525102['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x446c5e['enableCommand']('mergeTableCells',()=>{const _0x1848d3=_0x455f92['getSelectionAffectedTableCells'](_0x7b4a53['model']['document']['selection']);_0x7b4a53['model']['change'](()=>{_0x446c5e['markMultiRangeBlockFormat'](_0x1848d3,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x7b4a53['commands']['get']('mergeTableCells')['on']('execute',(_0x2288fe,_0x1a3640)=>{_0x7b4a53['commands']['get']('trackChanges')['value']&&(_0x1a3640['length']>0x0&&_0x1a3640[_0x1a3640['length']-0x1]&&_0x1a3640[_0x1a3640['length']-0x1]['forceDefaultExecution']||_0x446c5e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2288fe['stop']());},{'priority':'highest'});for(const _0x43cb45 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x439efd=_0x7b4a53['commands']['get'](_0x43cb45);_0x446c5e['enableCommand'](_0x43cb45,()=>{const _0x30eab5=_0x7b4a53['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x51e4de=>_0x51e4de['is']('element','tableCell')),_0x5b3cd7=_0x439efd['value'];_0x7b4a53['model']['change'](()=>{_0x446c5e['markMultiRangeBlockFormat']([_0x30eab5,_0x5b3cd7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x392250 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2c3dc7=_0x7b4a53['commands']['get'](_0x392250);_0x446c5e['enableCommand'](_0x392250,()=>{const _0x4373eb=_0x455f92['getSelectionAffectedTableCells'](_0x7b4a53['model']['document']['selection'])[0x0],_0xd02a69=_0x4373eb['findAncestor']('table'),{column:_0x4caba1,row:_0x37c3a3}=_0x455f92['getCellLocation'](_0x4373eb);let _0x20741f=[];if('horizontally'==_0x2c3dc7['direction']){const _0x161436=_0x455f92['createTableWalker'](_0xd02a69,{'startRow':_0x37c3a3,'endRow':_0x37c3a3,'includeAllSlots':!0x0});_0x20741f=Array['from'](_0x161436)['map'](_0x25fc92=>_0x25fc92['cell']);}else{const _0xd73d=_0x455f92['createTableWalker'](_0xd02a69,{'column':_0x4caba1,'includeAllSlots':!0x0});_0x20741f=Array['from'](_0xd73d)['map'](_0x2156c8=>_0x2156c8['cell']);}_0x7b4a53['model']['change'](_0x383613=>{_0x446c5e['markBlockFormat'](_0x383613['createRangeOn'](_0x4373eb),{'commandName':_0x392250,'commandParams':[]},_0x20741f,_0x392250);});});}_0x446c5e['descriptionFactory']['registerDescriptionCallback'](_0x4dbb15=>{if('formatBlock'!=_0x4dbb15['type']&&'formatInline'!=_0x4dbb15['type'])return;const {data:_0x10dbb8}=_0x4dbb15;return _0x10dbb8&&'mergeTableCells'==_0x10dbb8['commandName']?{'type':'format','content':o(_0x82fe33,'*Merge\x20cells*')}:void 0x0;}),_0x446c5e['descriptionFactory']['registerDescriptionCallback'](_0x2fca6a=>{if('formatBlock'!=_0x2fca6a['type']&&'formatInline'!=_0x2fca6a['type'])return;const {data:_0x27f663}=_0x2fca6a;return _0x27f663?'splitTableCellVertically'==_0x27f663['commandName']?{'type':'format','content':o(_0x82fe33,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x27f663['commandName']?{'type':'format','content':o(_0x82fe33,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2a1a6c=_0x525102['_acceptFormatSuggestionCallbackFactory']();for(const _0x454258 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x446c5e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x454258,'accept',_0x2a1a6c);for(const _0xf53e09 of['splitTableCellVertically','splitTableCellHorizontally'])_0x446c5e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xf53e09,'accept',_0x2a1a6c);_0x446c5e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3ed5bc=>{_0x7b4a53['model']['change'](_0x36c713=>{const _0x499e73=Array['from'](_0x2452df['getRanges']())['map'](_0x3d3e4f=>_0x7da4c9['fromRange'](_0x3d3e4f));_0x36c713['setSelection'](_0x3ed5bc),_0x7b4a53['commands']['get']('mergeTableCells')['refresh'](),_0x7b4a53['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4dffc9=_0x499e73['filter'](_0x1f644f=>'$graveyard'!=_0x1f644f['root']['rootName']);_0x4dffc9['length']>0x0&&_0x36c713['setSelection'](_0x4dffc9);for(const _0x36af1d of _0x499e73)_0x36af1d['detach']();});});for(const _0xe2efd of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x12950f=_0x7b4a53['commands']['get'](_0xe2efd);_0x12950f['on']('set:isEnabled',(_0x23c764,_0x7f347c,_0x57ecdb)=>{if(_0x57ecdb){const _0x5f2cce=_0x7b4a53['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5f5b6f=>_0x5f5b6f['is']('element','tableCell'));this['_areMergableCells'](_0x12950f['value'],_0x5f2cce)||(_0x23c764['return']=!0x1,_0x23c764['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x545bef=this['editor']['commands']['get']('mergeTableCells'),_0x47cea2=this['editor']['plugins']['get']('TableUtils');if(!_0x545bef['isEnabled'])return!0x1;const _0x4d4457=_0x47cea2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x28ae1a of _0x4d4457)for(const _0x377e58 of _0x4d4457)if(_0x28ae1a!=_0x377e58&&!this['_areMergableCells'](_0x28ae1a,_0x377e58))return!0x1;return!0x0;}['_areMergableCells'](_0x22ebb2,_0x3d42b4){const _0x524b8b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35607b=this['editor']['model']['createRangeOn'](_0x22ebb2),_0x4d616f=this['editor']['model']['createRangeOn'](_0x3d42b4),_0x1fd897=new Set(),_0xcb0824=new Set();for(const _0x2e98ae of _0x524b8b['getSuggestions']())if(('insertion'==_0x2e98ae['type']||'deletion'==_0x2e98ae['type']||'mergeTableCells'==_0x2e98ae['subType'])&&_0x2e98ae['isInContent']){for(const _0x3507f3 of _0x2e98ae['getRanges']())_0x3507f3['containsRange'](_0x35607b,!0x0)&&_0x1fd897['add'](_0x2e98ae['type']+':'+_0x2e98ae['author']['id']),_0x3507f3['containsRange'](_0x4d616f,!0x0)&&_0xcb0824['add'](_0x2e98ae['type']+':'+_0x2e98ae['author']['id']);}if(_0x1fd897['size']!=_0xcb0824['size'])return!0x1;for(const _0x5dc189 of _0x1fd897)if(!_0xcb0824['has'](_0x5dc189))return!0x1;return!0x0;}}class Ct extends _0x26a770{static get['requires'](){return[It];}['afterInit'](){const _0x301e5d=this['editor'];if(!_0x301e5d['plugins']['has']('TableEditing'))return;const _0x2304f3=_0x301e5d['locale'],_0x2a0c3f=_0x301e5d['plugins']['get']('TrackChangesEditing');_0x2a0c3f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2a0c3f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2a0c3f['registerBlockAttribute']('headingRows'),_0x2a0c3f['registerBlockAttribute']('headingColumns'),_0x2a0c3f['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2304f3,'FORMAT_HEADER_ROW')),_0x2a0c3f['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2304f3,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x59d5e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x546a70=this['editor']['plugins']['get']('TableUtils'),_0x237884=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x118d1d({showActiveMarker:_0x236edf=!0x0,setDataAttribute:_0x490ed6=!0x0}={}){return(_0x522387,_0xbcaa23,_0x12d31b)=>{const {type:_0x389f2a,id:_0x516da5}=_0x59d5e1['_splitMarkerName'](_0xbcaa23['markerName']),_0x19d825=_0x59d5e1['getSuggestion'](_0x516da5),_0x3390d3=_0x19d825['data'];if('formatBlock'!=_0x19d825['type']||!_0x3390d3||'setTableColumnHeader'!=_0x3390d3['commandName'])return;if(_0xbcaa23['item'])return void _0x522387['stop']();if(!_0x12d31b['consumable']['consume'](_0xbcaa23['markerRange'],_0x522387['name']))return;const _0xe39372=_0xbcaa23['markerRange']['start']['nodeAfter'],_0x5d73=_0xbcaa23['markerRange']['end']['nodeBefore'],_0x4ec479=_0xe39372['parent']['parent'],{column:_0x33f7f4}=_0x546a70['getCellLocation'](_0xe39372),{column:_0x2b1bed}=_0x546a70['getCellLocation'](_0x5d73);for(let _0x526482=_0x33f7f4;_0x526482<=_0x2b1bed;_0x526482++){const _0x2566e6=_0x546a70['createTableWalker'](_0x4ec479,{'column':_0x526482,'includeAllSlots':!0x1});for(const _0x257f9b of _0x2566e6){const _0x96f3c=_0x257f9b['cell'],_0x293568=_0x12d31b['mapper']['toViewElement'](_0x96f3c);_0x12d31b['writer']['addClass']('ck-suggestion-marker-'+_0x389f2a,_0x293568),_0x490ed6&&_0x12d31b['writer']['setAttribute']('data-suggestion',_0x516da5,_0x293568),_0x12d31b['mapper']['bindElementToMarker'](_0x293568,_0xbcaa23['markerName']),_0x236edf&&(_0x59d5e1['activeMarkers']['includes'](_0xbcaa23['markerName'])?_0x12d31b['writer']['addClass']('ck-suggestion-marker--active',_0x293568):_0x12d31b['writer']['removeClass']('ck-suggestion-marker--active',_0x293568));}}};}_0x59d5e1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x237884),_0x59d5e1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x237884),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x118d1d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xf126e2,_0x4b05b4,_0xd5d13a)=>{_0xd5d13a['options']['showSuggestionHighlights']&&_0x118d1d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xf126e2,_0x4b05b4,_0xd5d13a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2d11bc,_0x2745a7,_0x1ff202)=>{const {type:_0x4f53a1,id:_0x38dd59}=_0x59d5e1['_splitMarkerName'](_0x2745a7['markerName']),_0x4ffdd8=_0x59d5e1['getSuggestion'](_0x38dd59),_0x364938=_0x4ffdd8['data'];if('formatBlock'!=_0x4ffdd8['type']||!_0x364938||'setTableColumnHeader'!=_0x364938['commandName'])return;const _0x4cb7b2=_0x1ff202['mapper']['markerNameToElements'](_0x2745a7['markerName']);if(_0x4cb7b2){for(const _0x53f692 of _0x4cb7b2)_0x1ff202['writer']['removeClass']('ck-suggestion-marker-'+_0x4f53a1,_0x53f692),_0x1ff202['writer']['removeClass']('ck-suggestion-marker--active',_0x53f692),_0x1ff202['writer']['removeAttribute']('data-suggestion',_0x53f692),_0x1ff202['mapper']['unbindElementFromMarkerName'](_0x53f692,_0x2745a7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33554c=this['editor'],_0x3747d7=_0x33554c['locale'];function _0x300f99(_0x3788e2){return{'type':'format','content':o(_0x3747d7,'*Format:*\x20%0',_0x3788e2)};}_0x33554c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40d2c0=>{if('formatBlock'!=_0x40d2c0['type'])return;const {data:_0x3c9050}=_0x40d2c0;if(_0x3c9050){if('setTableRowHeader'==_0x3c9050['commandName']){const _0xdeec68=_0x3c9050['commandParams'][0x0]['forceValue'];return _0x300f99(o(_0x3747d7,_0xdeec68?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3c9050['commandName']){const _0x59922a=_0x3c9050['commandParams'][0x0]['forceValue'];return _0x300f99(o(_0x3747d7,_0x59922a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x1475ec=>[_0x1475ec,null]));class _t extends _0x26a770{static get['requires'](){return[It];}['afterInit'](){const _0x377a62=this['editor'];if(!_0x377a62['plugins']['has']('TableClipboard'))return;const _0x46f86f=_0x377a62['plugins']['get']('TrackChangesEditing'),_0xa0bbc8=_0x377a62['plugins']['get']('TableUtils'),_0xadfa6e=_0x377a62['plugins']['get'](It),_0x191475=_0x377a62['plugins']['get']('TableClipboard');_0xadfa6e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x377a62['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x377a62['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x7eab3a=null;_0x377a62['model']['on']('insertContent',(_0x52bbf3,_0x20a19f)=>{const [_0x570e89,_0x5331ad]=_0x20a19f,_0x3fd236=_0x20a19f[_0x20a19f['length']-0x1];_0x3fd236&&_0x3fd236['forceDefaultExecution']||_0x46f86f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x119260,_0x4e3654,_0x2a02fc,_0x44dce0,_0x3c8742){if(_0x4e3654&&!_0x4e3654['is']('documentSelection'))return!0x1;const _0x46242f=_0x3c8742['getTableIfOnlyTableInContent'](_0x119260,_0x2a02fc);if(!_0x46242f||!Re(_0x46242f,void 0x0,_0x44dce0))return!0x1;const _0x5a6e9c=_0x44dce0['getSelectionAffectedTableCells'](_0x2a02fc['document']['selection']);if(!_0x5a6e9c['length'])return!0x1;const _0x2d2e3c=_0x5a6e9c[0x0]['findAncestor']('table'),_0x7ed4c5=_0x44dce0['getRowIndexes'](_0x5a6e9c),_0x57f2e1=_0x44dce0['getColumnIndexes'](_0x5a6e9c),_0x231f57={'startRow':_0x7ed4c5['first'],'endRow':_0x7ed4c5['last'],'startColumn':_0x57f2e1['first'],'endColumn':_0x57f2e1['last']};return 0x1==_0x5a6e9c['length']&&(_0x231f57['endRow']+=_0x44dce0['getRows'](_0x46242f)-0x1,_0x231f57['endColumn']+=_0x44dce0['getColumns'](_0x46242f)-0x1),Re(_0x2d2e3c,_0x231f57,_0x44dce0);}(_0x570e89,_0x5331ad,_0x377a62['model'],_0xa0bbc8,_0x191475)&&(_0x52bbf3['stop'](),_0x7eab3a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x377a62['model']['change'](()=>{_0x377a62['model']['insertContent'](_0x20a19f[0x0],_0x20a19f[0x1],_0x20a19f[0x2],{'forceDefaultExecution':!0x0});const _0x154024=_0x4f54ad(),{rowInsertionRanges:_0x587133,columnInsertionRanges:_0x43f553,insertionRanges:_0x3cc4c3,deletionRanges:_0x10e5f9,cells:_0x3f7170}=_0x7eab3a;_0x587133['length']&&_0x46f86f['markMultiRangeInsertion'](_0x587133,'tablePasteRow',{'tablePasteChainId':_0x154024}),_0x43f553['length']&&_0x46f86f['markMultiRangeInsertion'](_0x43f553,'tablePasteColumn',{'tablePasteChainId':_0x154024}),_0x3cc4c3['length']&&(_0x46f86f['markMultiRangeInsertion'](_0x3cc4c3,'tablePaste',{'tablePasteChainId':_0x154024,'skipNestingCheck':!0x0}),_0x3cc4c3['forEach'](_0x1b7336=>_0x1b7336['detach']?.())),_0x10e5f9['length']&&(_0x46f86f['markMultiRangeDeletion'](_0x10e5f9,'tablePaste',{'tablePasteChainId':_0x154024,'skipNestingCheck':!0x0}),_0x10e5f9['forEach'](_0x47eeae=>_0x47eeae['detach']?.()));const _0x1f4116=_0x46f86f['markMultiRangeBlockFormat'](_0x3f7170['map'](({element:_0x42d562})=>_0x42d562),{'formatGroupId':_0x4f54ad()},[],'tablePasteCell',{'tablePasteChainId':_0x154024});if(_0x1f4116){const _0x2a3faa=_0x1f4116['getMarkers'](),_0x19ebf0=[];for(const {element:_0x20ab58,attributes:_0x40c246}of _0x3f7170){if(!_0x40c246)continue;const _0x53720e=_0x377a62['model']['createRangeOn'](_0x20ab58),_0x4897dc=_0x2a3faa['find'](_0x4978d5=>_0x4978d5['getRange']()['isEqual'](_0x53720e));_0x4897dc&&_0x19ebf0['push']([_0x4897dc['name'],_0x40c246]);}_0x19ebf0['length']&&_0x1f4116['setAttribute']('markerAttributes',Object['fromEntries'](_0x19ebf0));}_0x7eab3a=null;}));},{'priority':_0x5b8cf7['high']+0xa}),_0x377a62['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x399f67,_0x3e1be1)=>{const [_0x10aa88,_0x4de2a2,,_0x1bb41d]=_0x3e1be1;if(!_0x7eab3a)return;_0x399f67['stop']();const _0x1d2c92=_0x10aa88['cell'],_0x1e7809=_0x4de2a2,_0x4c9249=ke(_0x1d2c92),_0x34aaf2=ke(_0x1e7809);_0x399f67['return']=_0x1d2c92;let _0x25f3f5=null,_0x36448e=null;if(_0x34aaf2||_0x4c9249){if(_0x4c9249&&!_0x34aaf2){_0x1bb41d['remove'](_0x1d2c92['getChild'](0x0));for(const _0x4ac9df of Array['from'](_0x1e7809['getChildren']()))_0x1bb41d['insert'](_0x4ac9df,_0x1d2c92,'end');const _0x27689a=_0x7eab3a['rowInsertionIndexes']['includes'](_0x10aa88['row']),_0xd28349=_0x7eab3a['columnInsertionIndexes']['includes'](_0x10aa88['column']);_0x27689a||_0xd28349||(_0x25f3f5=_0x7da4c9['fromRange'](_0x1bb41d['createRangeIn'](_0x1d2c92)));}else _0x34aaf2&&!_0x4c9249&&(_0x36448e=_0x1bb41d['createRangeIn'](_0x1d2c92));}else{const _0x9a523=_0x1bb41d['createElement']('tableCellSuggestion'),_0x547810=_0x1bb41d['createElement']('tableCellSuggestion');_0x1bb41d['wrap'](_0x1bb41d['createRangeIn'](_0x1d2c92),_0x547810),_0x1bb41d['insert'](_0x9a523,_0x1d2c92,0x0);for(const _0x13e3db of Array['from'](_0x1e7809['getChildren']()))_0x1bb41d['insert'](_0x13e3db,_0x9a523,'end');_0x25f3f5=_0x7da4c9['fromRange'](_0x1bb41d['createRangeOn'](_0x9a523)),_0x36448e=_0x7da4c9['fromRange'](_0x1bb41d['createRangeOn'](_0x547810));}const _0x5790e2=Array['from'](_0x1e7809['getAttributes']())['filter'](([_0x1ced47])=>Pe['includes'](_0x1ced47));_0x7eab3a['cells']['push']({'element':_0x1d2c92,'attributes':_0x5790e2['length']?Object['fromEntries'](_0x5790e2):null}),_0x25f3f5&&_0x7eab3a['insertionRanges']['push'](_0x25f3f5),_0x36448e&&_0x7eab3a['deletionRanges']['push'](_0x36448e);},{'priority':'high'}),_0xa0bbc8['on']('insertColumns',(_0x4bebe8,_0x4f1e99)=>{const [_0x2111ce,_0x5623fa={}]=_0x4f1e99;if(!_0x7eab3a)return;const _0x9d1c3b=_0x5623fa['at']||0x0,_0x1c55c3=_0x5623fa['columns']||0x1;_0x7eab3a['columnInsertionIndexes']=new Array(_0x1c55c3)['fill'](_0x9d1c3b)['map']((_0x2c7114,_0x51de45)=>_0x2c7114+_0x51de45);for(const {cell:_0x436de5}of _0xa0bbc8['createTableWalker'](_0x2111ce,{'startColumn':_0x9d1c3b,'endColumn':_0x9d1c3b+_0x1c55c3-0x1}))_0x7eab3a['columnInsertionRanges']['push'](_0x377a62['model']['createRangeOn'](_0x436de5));},{'priority':'low'}),_0xa0bbc8['on']('insertRows',(_0x1c3fe3,_0x50a374)=>{const [_0x3c1dfd,_0x44ccb0={}]=_0x50a374;if(!_0x7eab3a)return;const _0xf688da=_0x44ccb0['at']||0x0,_0x346550=_0x44ccb0['rows']||0x1;_0x7eab3a['rowInsertionIndexes']=new Array(_0x346550)['fill'](_0xf688da)['map']((_0x5b3ce9,_0x2f2b38)=>_0x5b3ce9+_0x2f2b38);for(const {cell:_0x598df9}of _0xa0bbc8['createTableWalker'](_0x3c1dfd,{'startRow':_0xf688da,'endRow':_0xf688da+_0x346550-0x1}))_0x7eab3a['rowInsertionRanges']['push'](_0x377a62['model']['createRangeOn'](_0x598df9));},{'priority':'low'}),_0x46f86f['descriptionFactory']['registerDescriptionCallback'](_0x2d2c68=>{if(_0x2d2c68['subType']&&_0x2d2c68['subType']['startsWith']('tablePaste'))return _0x2d2c68['previous']?{}:{'type':'insertion','content':o(_0x377a62['locale'],'*Replace\x20table\x20cells*')};});const _0x152d9c=()=>!0x1;for(const _0x57b25e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x46f86f['_suggestionFactory']['registerCustomCallback']('insertion',_0x57b25e,'join',_0x152d9c),_0x46f86f['_suggestionFactory']['registerCustomCallback']('deletion',_0x57b25e,'join',_0x152d9c),_0x46f86f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x57b25e,'join',_0x152d9c);_0x46f86f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x152d9c),_0x46f86f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x44f296,_0x2384dc,_0x4e536c)=>{const _0x1d4611=_0x44f296['map'](_0x439198=>_0x439198['getContainedElement']())['filter'](_0x472ef7=>_0x472ef7),_0x24b843=new Map(_0x1d4611['map'](_0x274759=>[_0x274759,null]));if(_0x7eab3a){for(const {element:_0x585d65,attributes:_0x30da3b}of _0x7eab3a['cells'])_0x30da3b&&_0x24b843['set'](_0x585d65,_0x30da3b);}else{if(_0x4e536c&&_0x4e536c['markerAttributes'])for(const [_0x2b07d7,_0x599885]of Object['entries'](_0x4e536c['markerAttributes'])){const _0xd5b803=_0x377a62['model']['markers']['get'](_0x2b07d7),_0x144f8c=_0xd5b803?_0xd5b803['getRange']()['getContainedElement']():null;_0x144f8c&&_0x24b843['set'](_0x144f8c,_0x599885);}}_0x377a62['model']['change'](_0x3ce096=>{for(const [_0x3f64cb,_0x30e444]of _0x24b843)_0x3ce096['setAttributes']({...we,..._0x30e444},_0x3f64cb);});});const _0x7da427=(_0xff0404,_0x2bc8e3)=>{_0x46f86f['_suggestionFactory']['registerCustomCallback'](_0xff0404,'tablePaste',_0x2bc8e3,(_0x418c1f,_0x565a42,_0x3d98e4)=>{_0x377a62['model']['change'](_0xd682ad=>{const _0x52f2f9=[];for(const _0x27faeb of _0x418c1f){const _0x255270=_0x27faeb['start']['nodeAfter'];_0x255270['is']('element','tableCellSuggestion')&&_0x52f2f9['push'](_0x255270);}_0x46f86f['_suggestionFactory']['getSuggestionCallback'](_0xff0404,null,_0x2bc8e3)(_0x418c1f,_0x565a42,_0x3d98e4);for(const _0x474706 of _0x52f2f9)'$graveyard'!=_0x474706['root']['rootName']&&_0xd682ad['unwrap'](_0x474706);});});};_0x7da427('insertion','accept'),_0x7da427('insertion','discard'),_0x7da427('deletion','accept'),_0x7da427('deletion','discard'),_0x46f86f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x531953=>{const _0x26a0c2=_0x531953['map'](_0x5d38a5=>_0x5d38a5['getContainedElement']()),_0x5c150d=_0x26a0c2[0x0]['findAncestor']('table'),{minRow:_0x1416a4,maxRow:_0x136703}=_0xadfa6e['_getCoordsForCells'](_0x26a0c2);_0xa0bbc8['removeRows'](_0x5c150d,{'at':_0x1416a4,'rows':_0x136703-_0x1416a4+0x1});}),_0x46f86f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xd1037f=>{const _0x144afc=_0xd1037f['map'](_0x39dc3b=>_0x39dc3b['getContainedElement']()),_0x116d79=_0x144afc[0x0]['findAncestor']('table'),{minColumn:_0x293093,maxColumn:_0x44195f}=_0xadfa6e['_getCoordsForCells'](_0x144afc);_0xa0bbc8['removeColumns'](_0x116d79,{'at':_0x293093,'columns':_0x44195f-_0x293093+0x1});});const _0x294ac9=(_0x1df496,_0x131afa)=>{if(!_0x131afa['subType']||!_0x131afa['subType']['startsWith']('tablePaste'))return;const _0x27bc42=_0x131afa['attributes']['tablePasteChainId'],_0x1ef533=_0x46f86f['getSuggestions']()['filter'](_0x4d8db6=>_0x4d8db6['isInContent']&&_0x4d8db6['attributes']&&_0x4d8db6['attributes']['tablePasteChainId']==_0x27bc42);_0x1ef533['length']&&_0x131afa['getAllAdjacentSuggestions']()['length']!=_0x1ef533['length']&&_0x1ef533['reduce']((_0x23c2a2,_0x10a013)=>(_0x23c2a2['next']=_0x10a013,_0x10a013['previous']=_0x23c2a2,_0x10a013));};function _0x23a921(_0x5c3888,_0x186554=!0x0){const {id:_0x5ddd1a,authorId:_0x19e077}=_0x46f86f['_splitMarkerName'](_0x5c3888['markerName']),_0x499cfc=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1375f6=_0x46f86f['activeMarkers']['includes'](_0x5c3888['markerName']);return _0x1375f6&&_0x499cfc['push']('ck-suggestion-marker--active'),{'classes':_0x499cfc,'attributes':{'data-suggestion':_0x5ddd1a,'data-author-id':_0x19e077},'priority':_0x1375f6&&_0x186554?0xbc2:0xbb8};}_0x46f86f['on']('suggestionLoaded',_0x294ac9,{'priority':'high'}),_0x46f86f['on']('suggestionUnloaded',_0x294ac9,{'priority':'high'}),_0x377a62['model']['document']['registerPostFixer'](()=>{let _0x2ee800=!0x1;const _0x50da7f=Array['from'](_0x377a62['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ce085,data:_0x249abf}of _0x50da7f){const {group:_0x22aee5,type:_0x23088d,id:_0x243ece}=_0x46f86f['_splitMarkerName'](_0x1ce085);if('suggestion'!=_0x22aee5||'deletion'!=_0x23088d||_0x249abf['oldRange'])continue;if(!_0x46f86f['hasSuggestion'](_0x243ece))continue;const _0x40dc1e=_0x46f86f['getSuggestion'](_0x243ece)['getRanges'](),_0x13a304=_0x377a62['plugins']['get']('Users')['me'];for(const _0x238e4b of _0x46f86f['getSuggestions']()){if(!_0x238e4b['isInContent']||_0x238e4b['author']!=_0x13a304)continue;if('formatBlock'!=_0x238e4b['type']||'tablePasteCell'!=_0x238e4b['subType'])continue;if(_0x238e4b['getRanges']()['every'](_0x15a5c8=>_0x40dc1e['some'](_0x2ed3de=>_0x2ed3de['containsRange'](_0x15a5c8,!0x0)))){for(const _0x17270e of _0x238e4b['getAllAdjacentSuggestions']())_0x17270e['isInContent']&&(_0x17270e['discard'](),_0x2ee800=!0x0);}}}return _0x2ee800;}),_0x377a62['model']['document']['registerPostFixer'](_0x221b3c=>{const _0x113364=_0x377a62['commands']['get']('redo');if(!_0x113364||!_0x113364['_createdBatches']['has'](_0x221b3c['batch']))return!0x1;let _0x26c5ad=!0x1;const _0x1bbd19=_0x377a62['plugins']['get']('Users')['me'],_0x3925ce=_0x377a62['model']['document']['differ']['getChanges'](),_0x39fbd4=Array['from'](_0x377a62['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x531191,data:_0x28790a})=>{const {group:_0x6053c8,subType:_0x164d0b,authorId:_0x58fc28}=_0x46f86f['_splitMarkerName'](_0x531191);return'suggestion'==_0x6053c8&&'tablePaste'==_0x164d0b&&_0x58fc28==_0x1bbd19['id']&&!_0x28790a['oldRange'];});for(const _0x384e9b of _0x3925ce){if('insert'!=_0x384e9b['type']||'tableCellSuggestion'!=_0x384e9b['name']||0x1!=_0x384e9b['length'])continue;const _0x440f46=_0x221b3c['createRange'](_0x384e9b['position'],_0x384e9b['position']['getShiftedBy'](0x1));if(!_0x39fbd4['find'](({data:_0xde5690})=>_0xde5690['newRange']['isEqual'](_0x440f46))){for(const {name:_0xf0d8c0,data:_0x501089}of _0x39fbd4)if(_0x440f46['containsRange'](_0x501089['newRange'])){_0x221b3c['updateMarker'](_0xf0d8c0,{'range':_0x440f46}),_0x26c5ad=!0x0;break;}}}return _0x26c5ad;}),_0x377a62['model']['document']['registerPostFixer'](_0xc731af=>{let _0x4323f0=!0x1;const _0x6040ae=_0x377a62['plugins']['get']('Users')['me'],_0x333814=_0x46f86f['getSuggestions']()['filter'](_0x19ca05=>_0x19ca05['isInContent']&&_0x19ca05['author']==_0x6040ae),_0x583118=new Set(),_0x4590f8=new Set();for(const _0x166446 of _0x333814)if('tablePaste'==_0x166446['subType'])for(const _0x53cd01 of _0x166446['getMarkers']()){const _0x4fa725=_0x53cd01['getRange']()['getContainedElement']();if(_0x4fa725){if(_0x4fa725['is']('element','tableCellSuggestion')&&ke(_0x4fa725)){_0x166446['removeMarker'](_0x53cd01['name']),_0x583118['add'](_0x4fa725),_0x4323f0=!0x0;const _0x139b4c=_0x4fa725['nextSibling'],_0x5059e6=_0x4fa725['previousSibling'],_0x2fe4b0=_0x139b4c&&_0x139b4c['is']('element','tableCellSuggestion'),_0x53ecfb=_0x5059e6&&_0x5059e6['is']('element','tableCellSuggestion');_0x2fe4b0&&!_0x583118['has'](_0x139b4c)&&_0x4590f8['add'](_0x139b4c),_0x53ecfb&&!_0x583118['has'](_0x5059e6)&&_0x4590f8['add'](_0x5059e6);}else _0x4fa725['is']('element','paragraph')&&_0x4fa725['isEmpty']&&(_0x166446['removeMarker'](_0x53cd01['name']),_0x4323f0=!0x0);}}else{if('tablePasteCell'==_0x166446['subType']){if(!_0x166446['attributes']||!_0x166446['attributes']['tablePasteChainId'])continue;const _0x2fd0aa=_0x166446['attributes']['markerAttributes'];if(_0x2fd0aa&&Object['keys'](_0x2fd0aa)['length'])continue;const _0x48ad04=_0x166446['attributes']['tablePasteChainId'];let _0x514864=!0x0,_0x2b75fd=!0x0;for(const _0x50ca2d of _0x333814)if(_0x50ca2d['subType']&&_0x50ca2d['subType']['startsWith']('tablePaste')){if(!_0x50ca2d['attributes']['tablePasteChainId']){_0x2b75fd=!0x1;break;}if(_0x50ca2d['id']!=_0x166446['id']&&_0x50ca2d['attributes']['tablePasteChainId']==_0x48ad04){_0x514864=!0x1;break;}}_0x2b75fd&&_0x514864&&(_0x166446['removeMarkers'](),_0x4323f0=!0x0);}}for(const _0x56e62a of _0x583118)_0xc731af['remove'](_0x56e62a);for(const _0x3eef6c of _0x4590f8)_0xc731af['unwrap'](_0x3eef6c);return _0x4323f0;}),_0x377a62['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x55c7cf=>_0x23a921(_0x55c7cf),'converterPriority':'high'}),_0x377a62['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x494a29,_0x252a3a)=>_0x252a3a['options']['showSuggestionHighlights']?_0x23a921(_0x494a29,!0x1):null,'converterPriority':'high'});const _0x5521c4=_0x377a62['editing']['view'];this['listenTo'](_0x5521c4['document'],'clipboardOutput',(_0x4f0c75,_0x1ecf2c)=>{const _0x4f0927=[];for(const _0xe72680 of _0x5521c4['createRangeIn'](_0x1ecf2c['content'])['getItems']())_0xe72680['is']('element','suggestion-td')&&_0x4f0927['push'](_0xe72680);_0x5521c4['change'](_0x3b36fe=>{for(const _0x59ab1e of _0x4f0927)_0x3b36fe['move'](_0x3b36fe['createRangeIn'](_0x59ab1e),_0x3b36fe['createPositionBefore'](_0x59ab1e)),_0x3b36fe['remove'](_0x59ab1e);});});}}function ke(_0x14b3b7){if(_0x14b3b7['isEmpty'])return!0x0;const _0x309b0f=_0x14b3b7['getChild'](0x0);return _0x309b0f['is']('element','paragraph')&&_0x309b0f['isEmpty'];}function Re(_0x4e726c,_0x4465c3={},_0x8fbe4e){for(const {isAnchor:_0x566294,cellHeight:_0x2a00c3,cellWidth:_0xf7601c}of _0x8fbe4e['createTableWalker'](_0x4e726c,{'includeAllSlots':!0x0,..._0x4465c3}))if(!_0x566294||0x1!=_0x2a00c3||0x1!=_0xf7601c)return!0x1;return!0x0;}class Nt extends _0x26a770{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xf36120=this['editor']['plugins']['get']('TrackChangesEditing');_0xf36120['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xf36120['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xf36120['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xf36120['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xf36120['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xf36120['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x31a97b,_0x56cd31){const _0xd91a5b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17fbc5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x358c98=_0x56cd31['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x15f400=_0x17fbc5['getColumnGroupElement'](_0x358c98);let _0x4fb569=_0x15f400?_0x17fbc5['getTableColumnsWidths'](_0x15f400):null,_0x526f35=_0x358c98['getAttribute']('tableWidth')||null;const _0x368bf7=_0x56cd31['tableWidth']||_0x526f35,_0x36429b=_0x56cd31['columnWidths']||_0x4fb569,_0x799df9=this['editor']['plugins']['get']('Users')['me'];for(const _0x202c8b of _0xd91a5b['getSuggestions']()){const _0x1d6f12=_0x202c8b['getContainedElement']();if('resizeTable'===_0x202c8b['subType']&&_0x1d6f12===_0x358c98){_0x202c8b['author']!==_0x799df9&&_0x202c8b['discard']();const _0x29d8ca=_0x202c8b['data']['commandParams'];_0x526f35=_0x29d8ca[0x0]['tableWidth'],_0x4fb569=_0x29d8ca[0x0]['columnWidths'];break;}}_0x31a97b({'table':_0x358c98,'tableWidth':_0x368bf7,'columnWidths':_0x36429b}),_0xd91a5b['markBlockFormat'](_0x358c98,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x526f35,'columnWidths':_0x4fb569}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3a5d71){if('formatBlock'!=_0x3a5d71['type']&&'formatInline'!=_0x3a5d71['type'])return;const {data:_0x4ec246}=_0x3a5d71;if(_0x4ec246&&'resizeTable'===_0x4ec246['formatGroupId']){const _0x33c27e='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x33c27e)};}}}class Dt extends _0x26a770{['afterInit'](){const _0x103ca9=this['editor'];_0x103ca9['plugins']['has']('Template')&&_0x103ca9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x26a770{['afterInit'](){const _0xbbc483=this['editor'];if(!_0xbbc483['commands']['get']('insertTableOfContents'))return;_0xbbc483['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4ff652=_0xbbc483['plugins']['get']('TrackChangesEditing'),_0x415127=_0xbbc483['locale'];_0x4ff652['descriptionFactory']['registerElementLabel']('tableOfContents',_0x114fde=>o(_0x415127,'ELEMENT_TABLE_OF_CONTENTS',_0x114fde));}}class $t extends _0x26a770{['afterInit'](){const _0x31ede7=this['editor'];if(!_0x31ede7['plugins']['has']('Title'))return;const _0x52ce5f=_0x31ede7['plugins']['get']('TrackChangesEditing');_0x52ce5f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x31ede7['locale'],'ELEMENT_TITLE')),_0x31ede7['model']['document']['registerPostFixer'](_0x463025=>{let _0x27542d=!0x1;const _0x2b2a97=Array['from'](_0x31ede7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb0627f,data:_0x3d4afc}of _0x2b2a97){const {group:_0x34e741}=_0x52ce5f['_splitMarkerName'](_0xb0627f);if('suggestion'!==_0x34e741||!_0x3d4afc['newRange'])continue;const _0x32ee22=_0x3d4afc['newRange'],_0x33fab2=_0x32ee22['end']['nodeBefore'];if(!_0x33fab2||!_0x33fab2['is']('element','title-content'))continue;if(!_0x32ee22['start']['isTouching'](_0x32ee22['end']))continue;const _0x5e9ca=_0x31ede7['model']['schema']['getNearestSelectionRange'](_0x32ee22['end'],'forward');if(_0x5e9ca&&_0x5e9ca['isCollapsed']){const _0x120622=_0x463025['createRange'](_0x32ee22['start'],_0x5e9ca['start']);_0x120622['isEqual'](_0x32ee22)||(_0x463025['updateMarker'](_0xb0627f,{'range':_0x120622}),_0x27542d=!0x0);}_0x27542d||(_0x463025['removeMarker'](_0xb0627f),_0x27542d=!0x0);}return _0x27542d;});}}class Bt extends _0x26a770{['afterInit'](){const _0xf057ed=this['editor'],_0x17ecb0=_0xf057ed['plugins']['get']('TrackChangesEditing');_0xf057ed['plugins']['has']('UndoEditing')&&(_0x17ecb0['enableCommand']('undo'),_0x17ecb0['enableCommand']('redo'));}}class xt extends _0x26a770{static get['requires'](){return[It];}['afterInit'](){const _0x369e4f=this['editor'];if(!_0x369e4f['plugins']['has']('TableCaptionEditing'))return;_0x369e4f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x26a770{['tableProperties'];['tableCellProperties'];constructor(_0x3f7e24){super(_0x3f7e24),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x5233bf=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x98f4b4 of this['tableProperties'])_0x5233bf['enableCommand'](_0x98f4b4,(_0x57c55b,_0x59eb64)=>{const _0x59927a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x98f4b4,[_0x59927a],this['tableProperties'],'tableProperties',_0x57c55b,_0x59eb64);});_0x5233bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5233bf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5233bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4ee781,_0x548e53)=>this['handleDiscardAction'](this['tableProperties'],_0x4ee781,_0x548e53)),_0x5233bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x97364b of this['tableCellProperties'])_0x5233bf['enableCommand'](_0x97364b,(_0x24f026,_0x5f5b42)=>{const _0x3df686=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x97364b,_0x3df686,this['tableCellProperties'],'tableCellProperties',_0x24f026,_0x5f5b42);});_0x5233bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5233bf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5233bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xdd676f,_0x3ba3ea)=>this['handleDiscardAction'](this['tableCellProperties'],_0xdd676f,_0x3ba3ea)),_0x5233bf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5233bf['descriptionFactory']['registerDescriptionCallback'](_0xaa398c=>this['handleSuggestionDescription'](_0xaa398c));}['_handlePropertyChange'](_0x289aaa,_0x52e2f9,_0x17b1ff,_0x1e7e8a,_0x477fa5,_0x48b5bb){const _0x39d984=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x48b5bb['batch'],()=>{for(const _0x48a81a of _0x52e2f9){if(this['_getSuggestion'](_0x48a81a,_0x1e7e8a))_0x477fa5(_0x48b5bb);else{const _0x1d16bc={};for(const _0x1aca9e of _0x17b1ff){const _0x214ff4=_0x48a81a['getAttribute'](_0x1aca9e);void 0x0!==_0x214ff4&&(_0x1d16bc[_0x1aca9e]=_0x214ff4);}_0x477fa5(_0x48b5bb),_0x39d984['markBlockFormat'](_0x48a81a,{'commandParams':[_0x1d16bc]},[],_0x1e7e8a);}}});}['handleDiscardAction'](_0xab7315,_0x22d4e8,_0x5d7935){const _0x305dfc=_0x22d4e8[0x0]['start']['nodeAfter'],_0x498c64=_0x5d7935['commandParams'][0x0];this['editor']['model']['change'](_0x41e20d=>{for(const _0x1f000d of _0xab7315)void 0x0!==_0x498c64[_0x1f000d]?_0x41e20d['setAttribute'](_0x1f000d,_0x498c64[_0x1f000d],_0x305dfc):_0x41e20d['removeAttribute'](_0x1f000d,_0x305dfc);});}['handleSuggestionDescription'](_0x5ab2da){if(_0x5ab2da['data'])switch(_0x5ab2da['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5178d1,_0x51f22a){const _0x1dc6fc=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3fce0a of _0x1dc6fc['getSuggestions']({'skipNotAttached':!0x0})){const _0x578bd5=_0x3fce0a['getContainedElement']();if(_0x3fce0a['subType']===_0x51f22a&&_0x578bd5===_0x5178d1)return _0x3fce0a;}return null;}}const m='$elementName';class p extends _0x26a770{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x53b94d,_0x34b6d6,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x179864){function _0x380d67(_0xa0d4a9){return _0xa0d4a9['map'](_0x50b705=>String['fromCharCode'](_0x50b705))['join']('');}super(_0x179864),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3093c5,_0x4a8fa8,_0x22783b,_0x578cc7)=>{this['_model']['change'](()=>{for(const _0x5f11c7 of[..._0x578cc7,..._0x22783b])this['_model']['markers']['has'](_0x5f11c7)&&_0x179864['editing']['reconvertMarker'](_0x5f11c7);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x179864['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x179864['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x179864['config']['get']('trackChanges.trackFormatChanges'),_0x179864['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x179864['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x179864,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x380d67([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x380d67([0x34,0x30,0x34,0x38,0x31,0x38,0x36,0x30]);}['init'](){const _0x469ed5=this['editor'],_0x20174e=(_0x1f6b6a,_0x3ce24b)=>{if('attribute'!=_0x1f6b6a)return'ck-suggestion-marker-'+_0x1f6b6a;const _0x57b08a=_0x3ce24b['split']('|')[0x0];return this['_isBlockAttribute'](_0x57b08a)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x469ed5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xf8456a=>{const {id:_0x42d020,authorId:_0x1418c1,type:_0xbbf0f9,subType:_0x235731}=this['_splitMarkerName'](_0xf8456a['markerName']),_0x16c6bc=['ck-suggestion-marker',_0x20174e(_0xbbf0f9,_0x235731)];let _0x39ad15=0xbb8;return this['activeMarkers']['includes'](_0xf8456a['markerName'])&&(_0x16c6bc['push']('ck-suggestion-marker--active'),_0x39ad15=0xbc2),'deletion'==_0xbbf0f9&&(_0x39ad15+=0x5),{'classes':_0x16c6bc,'attributes':{'data-suggestion':_0x42d020,'data-author-id':_0x1418c1},'priority':_0x39ad15};}}),_0x469ed5['conversion']['for']('dataDowncast')['add'](_0x8d4415=>{_0x8d4415['on']('addMarker:suggestion',(_0x4ee8d0,_0x5d1e4d,_0x23cbfe)=>{if(!_0x23cbfe['options']['showSuggestionHighlights'])return;const _0x4814c9=_0x5d1e4d['item'];if(!_0x4814c9)return;const _0x4929df=_0x23cbfe['mapper']['toViewElement'](_0x4814c9);_0x469ed5['model']['schema']['isObject'](_0x4814c9)&&_0x4929df&&!_0x4929df['getCustomProperty']('widget')&&_0x4929df['is']('containerElement')&&_0x5c582a(_0x4929df,_0x23cbfe['writer']);},{'priority':'high'});}),_0x469ed5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2a10c2,_0x1763a0)=>{if(!_0x1763a0['options']['showSuggestionHighlights'])return null;const {type:_0x1350d6,subType:_0x3745ef}=this['_splitMarkerName'](_0x2a10c2['markerName']);return{'classes':['ck-suggestion-marker',_0x20174e(_0x1350d6,_0x3745ef)],'priority':0xbb8};}});const _0x5187e8=({showActiveMarkers:_0x22905b=!0x0,isAttributeSuggestion:_0x45edf4=!0x1}={})=>(_0x5d09e3,_0x4d591a,_0x995727)=>{if(!_0x4d591a['item'])return;const {id:_0x124cf9,authorId:_0x52c982}=this['_splitMarkerName'](_0x4d591a['markerName']);if(_0x45edf4){const _0x18a9f9=this['_suggestions']['get'](_0x124cf9),_0x382177=this['_getAttributeKey'](_0x18a9f9);if(!this['_isBlockAttribute'](_0x382177))return;}if(_0x4d591a['item']['is']('selection'))return void _0x995727['consumable']['consume'](_0x4d591a['item'],_0x5d09e3['name']);const _0x168617=_0x995727['mapper']['toViewElement'](_0x4d591a['item']);if(_0x4d591a['item']['is']('element')&&_0x469ed5['model']['schema']['isBlock'](_0x4d591a['item'])&&!_0x168617['getCustomProperty']('addHighlight')){_0x995727['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x168617),_0x995727['writer']['setAttribute']('data-suggestion',_0x124cf9,_0x168617),_0x995727['writer']['setAttribute']('data-author-id',_0x52c982,_0x168617),_0x995727['mapper']['bindElementToMarker'](_0x168617,_0x4d591a['markerName']),_0x22905b&&(this['activeMarkers']['includes'](_0x4d591a['markerName'])?_0x995727['writer']['addClass']('ck-suggestion-marker--active',_0x168617):_0x995727['writer']['removeClass']('ck-suggestion-marker--active',_0x168617));for(const _0x11a65e of _0x469ed5['model']['createRangeIn'](_0x4d591a['item'])['getItems']())_0x995727['consumable']['consume'](_0x11a65e,_0x5d09e3['name']);_0x995727['consumable']['consume'](_0x4d591a['item'],_0x5d09e3['name']);}};_0x469ed5['conversion']['for']('dataDowncast')['add'](_0x44e766=>{_0x44e766['on']('addMarker:suggestion:formatBlock',(_0x3c40fd,_0x21bfaf,_0x17657e)=>{_0x17657e['options']['showSuggestionHighlights']&&_0x5187e8({'showActiveMarkers':!0x1})(_0x3c40fd,_0x21bfaf,_0x17657e);},{'priority':'highest'});}),_0x469ed5['conversion']['for']('dataDowncast')['add'](_0x354c37=>{_0x354c37['on']('addMarker:suggestion:attribute',(_0x1e9a8a,_0x1be5d6,_0x50adaa)=>{_0x50adaa['options']['showSuggestionHighlights']&&_0x5187e8({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1e9a8a,_0x1be5d6,_0x50adaa);},{'priority':'highest'});}),_0x469ed5['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5435d1,_0x4389fb)=>_0x4389fb['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5435d1['substr'](0xb)}}),_0x469ed5['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5078a3,{writer:_0x57a7e4})=>{let _0x1eef66='suggestion:'+_0x5078a3['getAttribute']('suggestion-type')+':'+_0x5078a3['getAttribute']('id');return _0x5078a3['getAttribute']('marker-count')&&(_0x1eef66+=':'+_0x5078a3['getAttribute']('marker-count')),_0x57a7e4['createElement']('$marker',{'data-name':_0x1eef66});}}),_0x469ed5['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x469ed5['conversion']['for']('editingDowncast')['add'](_0x20829c=>{_0x20829c['on']('addMarker:suggestion:formatBlock',_0x5187e8(),{'priority':'high'});}),_0x469ed5['conversion']['for']('editingDowncast')['add'](_0x294d3f=>{_0x294d3f['on']('addMarker:suggestion:attribute',_0x5187e8({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x469ed5['conversion']['for']('editingDowncast')['add'](_0x34b1cb=>{_0x34b1cb['on']('removeMarker:suggestion:formatBlock',(_0x17404a,_0x514baa,_0x4fec07)=>{const _0x4143a4=_0x4fec07['mapper']['markerNameToElements'](_0x514baa['markerName']);if(_0x4143a4){for(const _0x272b0f of _0x4143a4)_0x272b0f['getCustomProperty']('addHighlight')||(_0x4fec07['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x272b0f),_0x4fec07['writer']['removeAttribute']('data-suggestion',_0x272b0f),_0x4fec07['writer']['removeAttribute']('data-author-id',_0x272b0f),_0x4fec07['mapper']['unbindElementFromMarkerName'](_0x272b0f,_0x514baa['markerName']));}},{'priority':'high'});}),_0x469ed5['conversion']['for']('editingDowncast')['add'](_0xe00633=>{_0xe00633['on']('removeMarker:suggestion:attribute',(_0x320799,_0x573231,_0x54dd15)=>{const _0x2c21d0=_0x54dd15['mapper']['markerNameToElements'](_0x573231['markerName']);if(!_0x2c21d0)return;const {id:_0x32c824}=this['_splitMarkerName'](_0x573231['markerName']),_0x589be2=this['_suggestions']['get'](_0x32c824),_0x537b68=this['_getAttributeKey'](_0x589be2);if(this['_isBlockAttribute'](_0x537b68)){for(const _0x458100 of _0x2c21d0)_0x458100['getCustomProperty']('addHighlight')||(_0x54dd15['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x458100),_0x54dd15['writer']['removeAttribute']('data-suggestion',_0x458100),_0x54dd15['writer']['removeAttribute']('data-author-id',_0x458100),_0x54dd15['mapper']['unbindElementFromMarkerName'](_0x458100,_0x573231['markerName']));}},{'priority':'high'});}),_0x469ed5['model']['document']['registerPostFixer'](_0x47b58b=>{let _0x509cdf=!0x1;const _0x48fc01=Array['from'](_0x469ed5['model']['document']['differ']['getChangedMarkers']()),_0x49d775=new Set();for(const {name:_0x5f3747,data:_0x3fd65d}of _0x48fc01){const {group:_0x3d33b6,type:_0x5246c2,subType:_0x434b07,id:_0x1c6335}=this['_splitMarkerName'](_0x5f3747);if('suggestion'!==_0x3d33b6)continue;const _0x1f7ef0=this['_suggestions']['get'](_0x1c6335);if(null!=_0x3fd65d['newRange']){'formatInline'==_0x5246c2&&(_0x509cdf=_0x509cdf||Ut(_0x3fd65d['newRange'],_0x5f3747,_0x47b58b,_0x469ed5['model']['schema']));const _0x1ae6f2='attribute'==_0x5246c2&&this['_isBlockAttribute'](_0x434b07['split']('|')[0x0]);if(_0x3fd65d['newRange']['isCollapsed']||'$graveyard'==_0x3fd65d['newRange']['root']['rootName']||'formatBlock'==_0x5246c2&&!Ft(_0x3fd65d['newRange'])||_0x1ae6f2&&!Ft(_0x3fd65d['newRange'])||'deletion'==_0x5246c2&&!(!Vt(_0x328152=_0x3fd65d['newRange'])&&!function(_0x18052a){return _0x18052a['start']['parent']==_0x18052a['end']['nodeBefore']&&_0x18052a['start']['isAtEnd'];}(_0x328152)))_0x47b58b['removeMarker'](_0x5f3747),_0x509cdf=!0x0;else{if(!_0x1f7ef0||!_0x1f7ef0['isInContent'])continue;if(_0x3fd65d['newRange']&&_0x3fd65d['oldRange']&&_0x3fd65d['newRange']['isEqual'](_0x3fd65d['oldRange']))continue;_0x49d775['add'](_0x1f7ef0);}}}var _0x328152;return _0x49d775['size']>0x0&&(_0x509cdf=!!this['_joinWithAdjacentSuggestions'](_0x49d775)||_0x509cdf),_0x509cdf;}),_0x469ed5['model']['document']['registerPostFixer'](_0x157e03=>{let _0x2895fb=!0x1;for(const _0x2bf2b9 of _0x469ed5['model']['document']['differ']['getChanges']())if('insert'==_0x2bf2b9['type'])for(const _0x4047f2 of this['_suggestions']['values']()){if(_0x4047f2['isMultiRange']||!_0x4047f2['isInContent'])continue;const _0x3da885='formatBlock'==_0x4047f2['type'],_0x1d1479=this['_getAttributeKey'](_0x4047f2),_0x3c10fb=_0x1d1479&&this['_isBlockAttribute'](_0x1d1479);if(!_0x3da885&&!_0x3c10fb)continue;const _0x28b8d1=_0x4047f2['getFirstRange']();if(_0x28b8d1['start']['parent']!=_0x28b8d1['end']['parent']&&!_0x28b8d1['end']['isAtEnd']){const _0x5d0df6=_0x469ed5['model']['createPositionAt'](_0x28b8d1['start']['nodeAfter'],'end'),_0x64cce8=_0x469ed5['model']['createRange'](_0x28b8d1['start'],_0x5d0df6);_0x157e03['updateMarker'](_0x4047f2['getFirstMarker'](),{'range':_0x64cce8}),_0x2895fb=!0x0;}}return _0x2895fb;}),_0x469ed5['model']['document']['registerPostFixer'](_0x327a56=>this['_processAttributeChanges'](_0x327a56)),_0x469ed5['model']['document']['registerPostFixer'](_0x55173b=>!_0x55173b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x55173b)),_0x469ed5['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x469ed5['model']['document']['on']('change:data',(_0x278aaa,_0x5c400b)=>{if(!_0x5c400b['isLocal']||_0x5c400b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5b1c78=_0x469ed5['model']['document']['differ']['getChanges']();if(0x0==_0x5b1c78['length'])return;const _0x48a0cc=[],_0x198e19=_0x5b1c78['filter'](_0x476c0c=>'attribute'==_0x476c0c['type']),_0x2b7fb5=_0x5b1c78['filter'](_0x488556=>'insert'==_0x488556['type']&&'$text'!=_0x488556['name']);for(const _0x41089a of _0x198e19)this['_isRegisteredAttribute'](_0x41089a['attributeKey'])&&_0x48a0cc['push']({'key':_0x41089a['attributeKey'],'newValue':_0x41089a['attributeNewValue'],'oldValue':_0x41089a['attributeOldValue'],'range':Pt(_0x41089a['range'],_0x469ed5['model'])});for(const _0x1e2a0b of _0x2b7fb5){if('rename'!=_0x1e2a0b['action']&&'refresh'!=_0x1e2a0b['action'])continue;const _0x464465=Lt(_0x1e2a0b['position']['nodeAfter'],_0x469ed5['model']),_0x4cc69a=_0x1e2a0b['before'];'rename'==_0x1e2a0b['action']&&_0x48a0cc['push']({'key':m,'newValue':_0x1e2a0b['name'],'oldValue':_0x4cc69a['name'],'range':_0x464465});for(const [_0x17f361,_0x3d2517]of _0x4cc69a['attributes']){if(!this['_isRegisteredAttribute'](_0x17f361))continue;const _0x11ea5a=_0x1e2a0b['attributes']['get'](_0x17f361);_0x3d2517!==_0x11ea5a&&_0x48a0cc['push']({'key':_0x17f361,'newValue':_0x11ea5a,'oldValue':_0x3d2517,'range':_0x464465});}for(const [_0x23d5e2,_0x1a452d]of _0x1e2a0b['attributes'])this['_isRegisteredAttribute'](_0x23d5e2)&&(_0x4cc69a['attributes']['has'](_0x23d5e2)||_0x48a0cc['push']({'key':_0x23d5e2,'newValue':_0x1a452d,'oldValue':null,'range':_0x464465}));}0x0!=_0x48a0cc['length']&&_0x469ed5['model']['enqueueChange'](_0x5c400b,_0x1e3b4b=>{const _0x222d98=_0x4f54ad();for(const {range:_0x289bdf,key:_0x2719c7,oldValue:_0x4fe2ce,newValue:_0x11a7e4}of _0x48a0cc)this['markAttributeChange'](_0x289bdf,_0x2719c7,_0x4fe2ce,_0x11a7e4,{'groupId':_0x222d98});this['_reduceExistingSuggestions'](_0x1e3b4b,_0x48a0cc);});},{'priority':'lowest'}),_0x469ed5['model']['markers']['on']('update:suggestion',(_0x44005e,_0x252b80,_0x1d026e)=>{if(null==_0x1d026e){const {id:_0xb3e840}=this['_splitMarkerName'](_0x252b80['name']),_0x18744e=this['_suggestions']['get'](_0xb3e840);_0x18744e&&_0x18744e['addMarkerName'](_0x252b80['name']);}}),_0x469ed5['model']['document']['on']('change:data',()=>{const _0x561f0c=Array['from'](_0x469ed5['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4ef40a=>'suggestion'===this['_splitMarkerName'](_0x4ef40a['name'])['group']);if(0x0===_0x561f0c['length'])return;_0x561f0c['sort']((_0x47cf88,_0x49e9bb)=>{const _0xcc759f=_0x47cf88['data']['oldRange'],_0x493839=_0x49e9bb['data']['oldRange'];return null===_0xcc759f&&null===_0x493839?0x0:null===_0xcc759f&&null!==_0x493839?-0x1:null!==_0xcc759f&&null===_0x493839?0x1:_0xcc759f['start']['isBefore'](_0x493839['start'])?-0x1:0x1;});const _0x21242c=new Set(),_0x924af8=new Set();for(const {name:_0x256a7f,data:_0x46ce6d}of _0x561f0c){const {id:_0x4f39f0}=this['_splitMarkerName'](_0x256a7f);if(null===_0x46ce6d['oldRange']){const _0x47c334=this['_handleNewSuggestionMarker'](_0x256a7f);_0x924af8['add'](_0x47c334);}else{const _0x4ae144=this['_suggestions']['get'](_0x4f39f0);null!==_0x46ce6d['newRange']||_0x4ae144['isInContent']?(_0x21242c['add'](_0x4ae144['head']),_0x924af8['add'](_0x4ae144)):this['_removeSuggestion'](_0x4ae144);}}_0x924af8['size']>0x0&&this['_refreshSuggestionsChain'](_0x924af8);for(const _0x385c77 of _0x21242c)this['fire']('suggestionChanged',_0x385c77);}),_0x469ed5['model']['on']('applyOperation',(_0x4aa296,_0x296d1b)=>{const _0x506a97=_0x296d1b[0x0];if(!this['_suggestions']['size'])return;if(!_0x506a97['isDocumentOperation'])return;if(_0x506a97['batch']['isUndo']||!_0x506a97['batch']['isLocal'])return;let _0x48a201,_0x5cb868;switch(_0x506a97['type']){case'insert':_0x48a201=_0x469ed5['model']['createPositionAt'](_0x506a97['position']),_0x5cb868=_0x48a201['getShiftedBy'](_0x506a97['howMany']);break;case'split':_0x48a201=_0x469ed5['model']['createPositionAt'](_0x506a97['splitPosition']),_0x5cb868=_0x469ed5['model']['createPositionAt'](_0x506a97['moveTargetPosition']);break;case'move':_0x48a201=_0x469ed5['model']['createPositionAt'](_0x506a97['targetPosition']),_0x5cb868=_0x48a201['getShiftedBy'](_0x506a97['howMany']);break;default:return;}const _0x2af8f5=_0x469ed5['model']['createRange'](_0x48a201,_0x5cb868);_0x469ed5['model']['change'](()=>{for(const {suggestion:_0x5553cb,meta:_0x12e9de}of this['_findSuggestions'](_0x2af8f5)){if(_0x5553cb['isMultiRange'])continue;if('formatInline'==_0x5553cb['type'])continue;const _0x3c5a4b=this['_getAttributeKey'](_0x5553cb);if(_0x3c5a4b&&this['_isBlockAttribute'](_0x3c5a4b)&&'split'!=_0x506a97['type'])continue;const _0x4651a5=_0x5553cb['data']&&_0x5553cb['data']['multipleBlocks'];('formatBlock'!=_0x5553cb['type']||'split'==_0x506a97['type']&&!_0x4651a5)&&(_0x12e9de['containsRangeInObject']||'insertion'==_0x5553cb['type']&&_0x12e9de['isOwn']||_0x5553cb['getFirstRange']()['containsRange'](_0x2af8f5)&&this['_breakSuggestionMarker'](_0x5553cb,_0x48a201,_0x5cb868));}});},{'priority':'lowest'}),_0x469ed5['model']['on']('deleteContent',(_0xb52899,_0x120879)=>{const _0x23fd51=_0x120879[0x0],_0x35fc24=_0x120879[0x1];if(_0x35fc24&&_0x35fc24['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x23fd51['isCollapsed'])return;const _0x4983f5=_0x469ed5['model']['schema'],{start:_0x3bb1f5,end:_0x25b53e}=_0x23fd51['getFirstRange'](),_0x5b8884=_0x3bb1f5['nodeAfter']&&_0x4983f5['isLimit'](_0x3bb1f5['nodeAfter'])?null:_0x4983f5['getNearestSelectionRange'](_0x3bb1f5,'forward'),_0x2b7e4d=_0x25b53e['nodeBefore']&&_0x4983f5['isLimit'](_0x25b53e['nodeBefore'])?null:_0x4983f5['getNearestSelectionRange'](_0x25b53e,'backward'),_0x292232=_0x469ed5['model']['createRange'](_0x5b8884?_0x5b8884['start']:_0x3bb1f5,_0x2b7e4d?_0x2b7e4d['end']:_0x25b53e);_0x469ed5['model']['change'](_0x386b1c=>{this['markDeletion'](_0x292232);const _0xeb3e71=_0x469ed5['model']['schema']['getNearestSelectionRange'](_0x292232['start']);_0x23fd51['is']('documentSelection')?_0x386b1c['setSelection'](_0xeb3e71):_0x23fd51['setTo'](_0xeb3e71);}),_0xb52899['stop']();},{'priority':_0x5b8cf7['normal']+0xa}),_0x469ed5['model']['on']('insertContent',(_0xed4f6c,_0x43b44b)=>{const _0x205e62=_0x43b44b[_0x43b44b['length']-0x1];_0x205e62&&_0x205e62['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x469ed5['model']['change'](()=>{let _0x206205=_0x469ed5['model']['insertContent'](_0x43b44b[0x0],_0x43b44b[0x1],_0x43b44b[0x2],{'forceDefaultExecution':!0x0});if(!_0x206205)return;_0xed4f6c['return']=_0x206205['clone']();const _0x3a3a72=_0x206205['end']['nodeBefore'],_0x88a0c5=_0x469ed5['model']['schema'];_0x3a3a72&&_0x88a0c5['isBlock'](_0x3a3a72)&&!_0x88a0c5['isObject'](_0x3a3a72)&&(_0x206205=_0x469ed5['model']['createRange'](_0x206205['start'],_0x469ed5['model']['createPositionAt'](_0x3a3a72,'end'))),this['markInsertion'](_0x206205);}),_0xed4f6c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1db523=new x(_0x469ed5,this['_suggestions']);_0x469ed5['commands']['add']('acceptSuggestion',_0x1db523),this['enableCommand']('acceptSuggestion');const _0x1624e5=new R(_0x469ed5,this['_suggestions']);_0x469ed5['commands']['add']('discardSuggestion',_0x1624e5),this['enableCommand']('discardSuggestion'),_0x469ed5['commands']['add']('acceptAllSuggestions',new E(_0x469ed5,_0x1db523,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x469ed5['commands']['add']('discardAllSuggestions',new E(_0x469ed5,_0x1624e5,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x469ed5['commands']['add']('acceptSelectedSuggestions',new O(_0x469ed5,_0x1db523,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x469ed5['commands']['add']('discardSelectedSuggestions',new O(_0x469ed5,_0x1624e5,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1acd6b=_0x469ed5['plugins']['get']('CommentsRepository');this['listenTo'](_0x1acd6b,'addComment',(_0xd4b8b2,{threadId:_0x1ba0be})=>{const _0x493bbd=this['_suggestions']['get'](_0x1ba0be);_0x493bbd&&_0x493bbd['commentThread']&&0x1===_0x493bbd['commentThread']['length']&&this['_updateSuggestionData'](_0x1ba0be,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1acd6b,'removeComment',(_0x135bd0,{threadId:_0x16058a})=>{const _0x3ea79f=this['_suggestions']['get'](_0x16058a);_0x3ea79f&&_0x3ea79f['commentThread']&&!_0x3ea79f['commentThread']['length']&&this['_updateSuggestionData'](_0x16058a,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x14a3cb){if(this['_adapter'])throw new _0x13c5a0('track-changes-adapter-already-set',this);this['_adapter']=_0x14a3cb;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x13c52b=!0x1,toJSON:_0x31e751=!0x1}={}){const _0x258be7=[];for(const _0x184b97 of this['_suggestions']['values']())_0x13c52b&&!_0x184b97['isInContent']||_0x258be7['push'](_0x184b97);return _0x31e751?_0x258be7['map'](_0x3e72ca=>_0x3e72ca['toJSON']()):_0x258be7;}['getSuggestion'](_0x7eb4a4){const _0x478680=this['_suggestions']['get'](_0x7eb4a4);if(!_0x478680)throw new _0x13c5a0('track-changes-suggestion-not-found',this);return _0x478680;}['hasSuggestion'](_0x377e65){return this['_suggestions']['has'](_0x377e65);}['addSuggestionData'](_0x611519){const {authorId:_0xbfe06c,id:_0x3f13c4,attributes:_0x288a49}=_0x611519,[_0x516926,_0x58f092]=_0x611519['type']['split'](':'),_0xbe495b=this['_suggestions']['get'](_0x3f13c4)||this['_createSuggestion'](_0x516926,_0x58f092,_0x3f13c4,_0xbfe06c,_0x288a49);if(this['_addThreadToSuggestion'](_0xbe495b),this['_checkSuggestionCorrectness'](_0xbe495b,_0x516926,_0x58f092||null,_0xbfe06c),_0xbe495b['createdAt']=_0x611519['createdAt'],_0xbe495b['_isDataLoaded']=!0x0,_0x288a49&&_0x288a49['@external']){const _0x5e334d=_0x288a49['@external'],_0x2ff44d=this['_getExternalAuthor'](_0x5e334d['authorName']);_0xbe495b['authoredAt']=_0x5e334d['createdAt'],_0xbe495b['author']=_0x2ff44d,_0xbe495b['isExternal']=!0x0;}else _0xbe495b['authoredAt']=_0x611519['createdAt'];switch(_0x611519['data']&&(_0xbe495b['data']=_0x611519['data']),_0x611519['attributes']&&(_0xbe495b['attributes']=_0x611519['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xbe495b['_saved']=!0x0),this['_suggestionState']['get'](_0xbe495b)){case'notReady':this['_suggestionState']['set'](_0xbe495b,'dataReady');break;case'markerReady':_0xbe495b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xbe495b])),this['_refreshSuggestionsChain'](new Set([_0xbe495b])),this['_suggestionState']['set'](_0xbe495b,'ready'),this['fire']('suggestionLoaded',_0xbe495b)):this['_suggestionState']['set'](_0xbe495b,'removed');}return _0xbe495b;}['acceptSuggestion'](_0x315a82){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2e09dc of _0x315a82['getAllAdjacentSuggestions']())_0x2e09dc['accept']();});});}['discardSuggestion'](_0x4c7ab6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3862fd of _0x4c7ab6['getAllAdjacentSuggestions']())_0x3862fd['discard']();});});}['enableCommand'](_0x3b24ed,_0x41f631){const _0x199028=this['editor']['commands']['get'](_0x3b24ed);if(!_0x199028)throw new _0x13c5a0('track-changes-command-not-found',this,{'commandName':_0x3b24ed});if(this['_enabledCommands']['has'](_0x199028))throw new _0x13c5a0('track-changes-enable-command-twice',this,{'commandName':_0x3b24ed});this['_enabledCommands']['add'](_0x199028),_0x41f631&&_0x199028['on']('execute',(_0x459f5e,_0xaa61a5)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xaa61a5['length']>0x0&&_0xaa61a5[_0xaa61a5['length']-0x1]&&_0xaa61a5[_0xaa61a5['length']-0x1]['forceDefaultExecution']?_0xaa61a5['pop']():(_0x459f5e['return']=_0x41f631((..._0x5b4dae)=>_0x199028['execute'](..._0x5b4dae,{'forceDefaultExecution':!0x0}),..._0xaa61a5),_0x459f5e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x212da1){let _0x302e9e,_0x3579a4;const _0x4ab014=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x302e9e=_0x212da1();}catch(_0x4c1e3e){_0x3579a4=_0x4c1e3e;}return _0x4ab014||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3579a4&&_0x13c5a0['rethrowUnexpectedError'](_0x3579a4,this),_0x302e9e;}['markInsertion'](_0x211dd2,_0x3341c3=null,_0x8b4c8a={}){if(_0x211dd2['isCollapsed'])return null;const _0x192ed9=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x15732f,meta:_0x11e499}of this['_findSuggestions'](_0x211dd2,'insertion'))if(_0x11e499['isOwn']){if(!_0x11e499['isNextTo']){if(_0x11e499['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x15732f,_0x8b4c8a))continue;return _0x15732f;}if(qt(_0x15732f,_0x8b4c8a))return _0x15732f;this['_breakSuggestionMarker'](_0x15732f,_0x211dd2['start'],_0x211dd2['end']);break;}if(_0x3341c3==_0x15732f['subType']&&qt(_0x15732f,_0x8b4c8a)){const _0x535d2f=_0x15732f['getFirstRange']();return _0x535d2f['start']['isEqual'](_0x211dd2['end'])?this['_setSuggestionRange'](_0x15732f,this['_model']['createRange'](_0x211dd2['start'],_0x535d2f['end'])):this['_setSuggestionRange'](_0x15732f,this['_model']['createRange'](_0x535d2f['start'],_0x211dd2['end'])),_0x15732f;}}const _0x1b504e=_0x4f54ad(),_0x4bb1c8=_0x192ed9['id'],_0xe5d0ce=_0x3341c3?'insertion:'+_0x3341c3:'insertion',_0x1954ba=this['_setSuggestionData']({'id':_0x1b504e,'type':_0xe5d0ce,'createdAt':new Date(),'authorId':_0x4bb1c8,'attributes':_0x8b4c8a});return this['_addSuggestionMarker'](_0xe5d0ce,_0x1b504e,_0x4bb1c8,_0x211dd2),_0x1954ba;}['markMultiRangeInsertion'](_0x3b5fc8,_0x5409d1='multi',_0x346999={}){const _0x2ae799=this['editor']['plugins']['get']('Users')['me'],_0x5770b9=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5409d1,'join');for(const _0x30b88f of this['getSuggestions']())if(_0x30b88f['author']['id']==_0x2ae799['id']&&'insertion'==_0x30b88f['type']&&_0x30b88f['subType']==_0x5409d1&&qt(_0x30b88f,_0x346999)&&(_0x5770b9(_0x30b88f['getRanges'](),_0x3b5fc8)||_0x5770b9(_0x3b5fc8,_0x30b88f['getRanges']()))){for(const _0x243955 of _0x3b5fc8)_0x30b88f['addRange'](_0x243955);return _0x30b88f;}for(const {suggestion:_0x1f999b,meta:_0x3bcfd1}of this['_findSuggestions'](_0x3b5fc8,'insertion')){if(!_0x3bcfd1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3bcfd1['containsRangeInObject'])continue;if(!qt(_0x1f999b,_0x346999))continue;let _0x75b3f5=!0x0;for(const _0x5f1782 of _0x1f999b['getRanges']())for(const _0x15a713 of _0x3b5fc8)if(!_0x5f1782['containsRange'](_0x15a713)){_0x75b3f5=!0x1;break;}if(_0x75b3f5)return _0x1f999b;}const _0x57346d=_0x4f54ad(),_0x2b4b37=_0x2ae799['id'],_0x127443='insertion:'+_0x5409d1,_0x5b4205=this['_setSuggestionData']({'id':_0x57346d,'type':_0x127443,'createdAt':new Date(),'authorId':_0x2b4b37,'attributes':_0x346999});for(const _0x7a434a of _0x3b5fc8)this['_addSuggestionMarker'](_0x127443,_0x57346d,_0x2b4b37,_0x7a434a,u['getMultiRangeId']());return _0x5b4205;}['markInlineFormat'](_0x3ef366,_0x4e4e70,_0x393834=null,_0xee4fe2={}){if(_0x393834=_0x393834||Gt(_0x4e4e70),_0x3ef366['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x334e32=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x393834,'accept');return this['forceDefaultExecution'](()=>_0x334e32([_0x3ef366],_0x4e4e70,_0xee4fe2)),null;}const _0xf1bdb9=this['editor']['plugins']['get']('Users')['me'],_0x362b67=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x48d539,meta:_0x454974}of this['_findSuggestions'](_0x3ef366,'insertion'))_0x454974['isOwn']&&!_0x454974['isInsideObject']&&_0x362b67['push'](..._0x48d539['getRanges']());}const _0x3074ee=function(_0x2a6615,_0x1d72b7){const _0x2b1dd3=[];for(const _0x49df56 of _0x1d72b7){const _0x4eddc4=_0x2a6615['getIntersection'](_0x49df56);_0x4eddc4&&_0x2b1dd3['push'](_0x4eddc4);}return _0x2b1dd3;}(_0x3ef366,_0x362b67),_0x38718e=function(_0x5b5138,_0x5aeac0){const _0x5c2067=[_0x5b5138];for(const _0x1beb3e of _0x5aeac0){let _0x2bfce6=0x0;for(;_0x2bfce6<_0x5c2067['length'];){const _0x628bd2=_0x5c2067[_0x2bfce6]['getDifference'](_0x1beb3e);_0x5c2067['splice'](_0x2bfce6,0x1,..._0x628bd2),_0x2bfce6+=_0x628bd2['length'];}}return _0x5c2067;}(_0x3ef366,_0x362b67);_0x3074ee['length']&&this['_model']['change'](()=>{for(const _0x16caa4 of _0x3074ee){const _0x26ae12=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x393834,'accept');this['forceDefaultExecution'](()=>_0x26ae12([_0x16caa4],_0x4e4e70,_0xee4fe2));}});for(const _0x311b03 of _0x38718e){let _0x22f7d5=null,_0x22ff69=_0x311b03['start'],_0x9c3cc8=_0x311b03['end'];for(const {suggestion:_0x24422b,meta:_0x13c229}of this['_findSuggestions'](_0x311b03,'formatInline')){if(!_0x13c229['isOwn'])continue;if(_0x24422b['subType']!=_0x393834)continue;if(!qt(_0x24422b,_0xee4fe2))continue;const _0x526452=_0x24422b['getFirstRange']();if(_0x526452['containsRange'](_0x311b03,!0x0))return null;_0x22ff69=_0x22ff69['isBefore'](_0x526452['start'])?_0x22ff69:_0x526452['start'],_0x9c3cc8=_0x9c3cc8['isAfter'](_0x526452['end'])?_0x9c3cc8:_0x526452['end'],_0x22f7d5?_0x526452['start']['isBefore'](_0x22f7d5['getFirstRange']()['start'])?(_0x22f7d5['removeMarkers'](),_0x22f7d5=_0x24422b):_0x24422b['removeMarkers']():_0x22f7d5=_0x24422b;}const _0x52709c=this['_model']['createRange'](_0x22ff69,_0x9c3cc8);if(_0x22f7d5)this['_setSuggestionRange'](_0x22f7d5,_0x52709c);else{const _0xa7c21=_0x4f54ad(),_0x1cf1d2=_0xf1bdb9['id'];this['_setSuggestionData']({'id':_0xa7c21,'type':'formatInline:'+_0x393834,'data':_0x4e4e70,'createdAt':new Date(),'authorId':_0x1cf1d2,'attributes':_0xee4fe2}),this['_addSuggestionMarker']('formatInline:'+_0x393834,_0xa7c21,_0x1cf1d2,_0x52709c);}}return null;}['markBlockFormat'](_0x119da4,_0x3f7bc8,_0xd128ed=[],_0xb0e6b2=null,_0xbd8b70={}){_0x3f7bc8['formatGroupId']||(_0x3f7bc8['formatGroupId']=_0x3f7bc8['commandName']),_0x3f7bc8['multipleBlocks']=_0x119da4['is']('range'),_0xb0e6b2=_0xb0e6b2||Gt(_0x3f7bc8);const _0x45e1d3=_0xd128ed['map'](_0x233035=>Lt(_0x233035,this['_model'])),_0x86bf24=_0x119da4['is']('range')?_0x119da4:Lt(_0x119da4,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4b8635=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb0e6b2,'accept');return this['forceDefaultExecution'](()=>_0x4b8635([_0x86bf24],_0x3f7bc8,_0xbd8b70)),null;}_0x45e1d3['push'](_0x86bf24);let _0x257da1=!0x0;for(const _0xb335fd of _0x45e1d3)if(!this['_rangeIsInLocalUserInsertion'](_0xb335fd)){_0x257da1=!0x1;break;}if(_0x257da1&&'always'!==this['_trackFormatChanges']){const _0x1a77c9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb0e6b2,'accept');return this['forceDefaultExecution'](()=>_0x1a77c9([_0x86bf24],_0x3f7bc8,_0xbd8b70)),null;}let _0x106b44=null,_0x42185e=_0x86bf24['start'],_0x44bc31=_0x86bf24['end'];for(const {suggestion:_0x1e5d6e,meta:_0x21993e}of this['_findSuggestions'](_0x86bf24,'formatBlock')){if(!_0x21993e['isOwn'])continue;if(_0x21993e['isNextTo']||_0x21993e['containsRangeInObject']||_0x21993e['isInsideObject'])continue;if(_0x1e5d6e['data']['formatGroupId']!=_0x3f7bc8['formatGroupId'])continue;if(!qt(_0x1e5d6e,_0xbd8b70))continue;const _0x36f61e=_0x1e5d6e['getFirstRange']();if(_0x1e5d6e['subType']==_0xb0e6b2){if(_0x36f61e['containsRange'](_0x86bf24,!0x0))return null;_0x42185e=_0x42185e['isBefore'](_0x36f61e['start'])?_0x42185e:_0x36f61e['start'],_0x44bc31=_0x44bc31['isAfter'](_0x36f61e['end'])?_0x44bc31:_0x36f61e['end'],_0x106b44?_0x36f61e['start']['isBefore'](_0x106b44['getFirstRange']()['start'])?(_0x106b44['removeMarkers'](),_0x106b44=_0x1e5d6e):_0x1e5d6e['removeMarkers']():_0x106b44=_0x1e5d6e;}else{const _0xf0a9ce=_0x86bf24['getIntersection'](_0x36f61e);this['_cutOutSuggestionMarker'](_0x1e5d6e,_0xf0a9ce);}}const _0x46a94c=this['editor']['plugins']['get']('Users')['me'],_0x3e273a=_0x4f54ad(),_0x4c2a69=_0x46a94c['id'];if(_0x106b44)return this['_setSuggestionRange'](_0x106b44,this['_model']['createRange'](_0x42185e,_0x44bc31)),_0x106b44;{const _0x3496fa=this['_setSuggestionData']({'id':_0x3e273a,'type':'formatBlock:'+_0xb0e6b2,'data':_0x3f7bc8,'createdAt':new Date(),'authorId':_0x4c2a69,'attributes':_0xbd8b70});return this['_addSuggestionMarker']('formatBlock:'+_0xb0e6b2,_0x3e273a,_0x4c2a69,this['_model']['createRange'](_0x42185e,_0x44bc31)),_0x3496fa;}}['markMultiRangeBlockFormat'](_0x443731,_0x7aa524,_0x4304c8=[],_0xe79eab=null,_0xeac033={}){_0x7aa524['formatGroupId']||(_0x7aa524['formatGroupId']=_0x7aa524['commandName']);const _0x1c6f80=_0x443731[0x0];_0x7aa524['multipleBlocks']=_0x1c6f80['is']('range'),_0xe79eab=_0xe79eab||Gt(_0x7aa524);const _0x2f1ac6=_0x4304c8['map'](_0x4d5083=>Lt(_0x4d5083,this['_model'])),_0xdf241=_0x1c6f80['is']('range')?_0x443731:_0x443731['map'](_0x296437=>Lt(_0x296437,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1b6b5b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe79eab,'accept');return this['forceDefaultExecution'](()=>_0x1b6b5b(_0xdf241,_0x7aa524,_0xeac033)),null;}_0x2f1ac6['push'](..._0xdf241);let _0x2cc77e=!0x0;for(const _0x5c36df of _0x2f1ac6)if(!this['_rangeIsInLocalUserInsertion'](_0x5c36df)){_0x2cc77e=!0x1;break;}if(_0x2cc77e&&'always'!==this['_trackFormatChanges']){const _0xa1942=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe79eab,'accept');return this['forceDefaultExecution'](()=>_0xa1942(_0xdf241,_0x7aa524,_0xeac033)),null;}const _0x4128fd=this['editor']['plugins']['get']('Users')['me'];for(const _0x3e8338 of this['getSuggestions']()){if(_0x3e8338['author']['id']!=_0x4128fd['id'])continue;if('formatBlock'!=_0x3e8338['type']||_0x3e8338['data']['formatGroupId']!=_0x7aa524['formatGroupId'])continue;if(!qt(_0x3e8338,_0xeac033))continue;const _0x304810=_0x3e8338['subType']==_0xe79eab;for(let _0x3b6d1a=0x0;_0x3b6d1a<_0xdf241['length'];_0x3b6d1a++){const _0x3ef321=_0xdf241[_0x3b6d1a];for(const _0x5ab4ea of _0x3e8338['getMarkers']()){const _0x52bfed=_0x5ab4ea['getRange']();if(_0x3ef321['isEqual'](_0x52bfed)){_0x304810?(_0xdf241['splice'](_0x3b6d1a,0x1),_0x3b6d1a--):_0x3e8338['removeMarker'](_0x5ab4ea['name']);break;}}}}if(0x0==_0xdf241['length'])return null;const _0x4478cf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe79eab,'join');for(const _0x157f91 of this['getSuggestions']())if(_0x157f91['author']['id']==_0x4128fd['id']&&'formatBlock'==_0x157f91['type']&&_0x157f91['data']['formatGroupId']==_0x7aa524['formatGroupId']&&_0x157f91['subType']==_0xe79eab&&qt(_0x157f91,_0xeac033)&&(_0x4478cf(_0x157f91['getRanges'](),_0xdf241)||_0x4478cf(_0xdf241,_0x157f91['getRanges']()))){for(const _0x22eecb of _0xdf241)_0x157f91['addRange'](_0x22eecb);return _0x157f91;}const _0x2e632e=_0x4f54ad(),_0x5426f6=_0x4128fd['id'],_0x279042='formatBlock:'+_0xe79eab,_0x1f96f1=this['_setSuggestionData']({'id':_0x2e632e,'type':_0x279042,'data':_0x7aa524,'createdAt':new Date(),'authorId':_0x5426f6,'attributes':_0xeac033});for(const _0x23e0d2 of _0xdf241)this['_addSuggestionMarker'](_0x279042,_0x2e632e,_0x5426f6,_0x23e0d2,u['getMultiRangeId']());return _0x1f96f1;}['markDeletion'](_0x4af8c9,_0xd80852=null,_0x470671={}){if(_0x4af8c9['isCollapsed'])return null;const _0x488fa1=this['editor']['plugins']['get']('Users')['me'],_0x28da2d=new _0x7da4c9(_0x4af8c9['start'],_0x4af8c9['end']);for(const {suggestion:_0x3ef604,meta:_0x3c581c}of this['_findSuggestions'](_0x28da2d,'insertion'))if(_0x3c581c['isOwn']&&!_0x3c581c['isNextTo']){if(_0x3ef604['isMultiRange']){const _0x687cfb=_0x3ef604['getRanges']()['filter'](_0x2b0452=>'$graveyard'!=_0x2b0452['root']['rootName']);_0x687cfb['every'](_0x95b02b=>_0x28da2d['containsRange'](_0x95b02b,!0x0))&&_0x3ef604['discard']();if(_0x687cfb['some'](_0xce2e44=>_0xce2e44['containsRange'](_0x28da2d,!0x0))){const _0x4baa1f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xd80852,'accept');return this['forceDefaultExecution'](()=>_0x4baa1f([_0x28da2d],null,_0x470671)),null;}}else{const _0x589f2f=_0x28da2d['getIntersection'](_0x3ef604['getFirstRange']());null!==_0x589f2f&&_0x3ef604['_onDiscard']([_0x589f2f],null,_0x470671);}}if(_0x28da2d['detach'](),_0x28da2d['isCollapsed']||'$graveyard'==_0x28da2d['root']['rootName'])return null;let _0x422ea8=null,_0x130b8e=_0x28da2d['start'],_0xd72c17=_0x28da2d['end'];const _0x1e535c=this['_findSuggestions'](_0x28da2d,'deletion');for(const {suggestion:_0x34db3e,meta:_0x2c70ef}of _0x1e535c){const _0x35dd48=this['_model']['createRange'](_0x130b8e,_0xd72c17);if(_0x2c70ef['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2c70ef['containsRangeInObject']&&!_0x2c70ef['isInsideObject'])){if(_0x34db3e['isMultiRange']){if(!qt(_0x34db3e,_0x470671))continue;let _0x237b58=!0x0;for(const _0x4c87e5 of _0x34db3e['getRanges']()){if(_0x4c87e5['containsRange'](_0x35dd48,!0x0))return _0x34db3e;_0x35dd48['containsRange'](_0x4c87e5)||(_0x237b58=!0x1);}_0x237b58&&_0x34db3e['discard']();}else{const _0x11666a=_0x34db3e['getFirstRange']();if(_0x11666a['containsRange'](_0x35dd48,!0x0))return _0x34db3e;if(!qt(_0x34db3e,_0x470671)){_0x35dd48['containsRange'](_0x11666a)?_0x34db3e['removeMarkers']():_0x11666a['containsPosition'](_0x130b8e)?_0x130b8e=_0x11666a['end']:_0x11666a['containsPosition'](_0xd72c17)&&(_0xd72c17=_0x11666a['start']);continue;}_0x130b8e=_0x130b8e['isBefore'](_0x11666a['start'])?_0x130b8e:_0x11666a['start'],_0xd72c17=_0xd72c17['isAfter'](_0x11666a['end'])?_0xd72c17:_0x11666a['end'],_0x470671=Object['assign']({},_0x34db3e['attributes']),_0x422ea8?_0x11666a['start']['isBefore'](_0x422ea8['getFirstRange']()['start'])?(_0x422ea8['removeMarkers'](),_0x422ea8=_0x34db3e):_0x34db3e['removeMarkers']():_0x422ea8=_0x34db3e;}}}if(_0x422ea8)return this['_setSuggestionRange'](_0x422ea8,this['_model']['createRange'](_0x130b8e,_0xd72c17)),_0x422ea8;{const _0x51b5b1=_0x4f54ad(),_0x2a61fc=this['_model']['createRange'](_0x130b8e,_0xd72c17),_0x25a8c9=_0x488fa1['id'],_0x302a07=_0xd80852?'deletion:'+_0xd80852:'deletion',_0x2e4d7b=this['_setSuggestionData']({'id':_0x51b5b1,'type':_0x302a07,'createdAt':new Date(),'authorId':_0x25a8c9,'attributes':_0x470671});return this['_addSuggestionMarker'](_0x302a07,_0x51b5b1,_0x25a8c9,_0x2a61fc),_0x2e4d7b;}}['markMultiRangeDeletion'](_0x5c62cc,_0x403b74='multi',_0x42eada={}){const _0x237cec=this['editor']['plugins']['get']('Users')['me'],_0x13d5e1=_0x5c62cc['map'](_0x45907c=>new _0x7da4c9(_0x45907c['start'],_0x45907c['end'])),_0x196acf=new Set();for(const {suggestion:_0x24ff4a,meta:_0x332405}of this['_findSuggestions'](_0x13d5e1,'insertion'))_0x332405['isOwn']&&!_0x332405['isNextTo']&&_0x196acf['add'](_0x24ff4a);for(const _0x352bd9 of _0x196acf)if(_0x352bd9['isMultiRange']){const _0x422556=_0x352bd9['getRanges']();(!_0x352bd9['attributes']||!_0x352bd9['attributes']['skipNestingCheck'])&&(_0x422556['every'](_0x453a6f=>_0x13d5e1['some'](_0x5506d1=>_0x5506d1['containsRange'](_0x453a6f,!0x0)))&&_0x352bd9['discard']());if(_0x13d5e1['every'](_0x5e790a=>_0x422556['some'](_0x4d16a=>_0x4d16a['containsRange'](_0x5e790a,!0x0)))){const _0x385e7f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x403b74,'accept');return this['forceDefaultExecution'](()=>_0x385e7f(_0x5c62cc,null,_0x42eada)),null;}}else{const _0x20f6e3=_0x352bd9['getFirstRange']();_0x13d5e1['some'](_0x4f4691=>_0x4f4691['containsRange'](_0x20f6e3,!0x0))&&_0x352bd9['discard']();if(_0x13d5e1['every'](_0x11883e=>_0x20f6e3['containsRange'](_0x11883e,!0x0))){const _0x5cb5f4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x403b74,'accept');return this['forceDefaultExecution'](()=>_0x5cb5f4(_0x13d5e1,null,_0x42eada)),null;}}const _0x57d0ac=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x403b74,'join');let _0x5274eb=null;for(const _0x2a1e6f of this['getSuggestions']())if(_0x2a1e6f['author']['id']==_0x237cec['id']&&_0x2a1e6f['isInContent']&&'deletion'==_0x2a1e6f['type']&&_0x2a1e6f['subType']==_0x403b74&&qt(_0x2a1e6f,_0x42eada)&&(_0x57d0ac(_0x2a1e6f['getRanges'](),_0x13d5e1)||_0x57d0ac(_0x13d5e1,_0x2a1e6f['getRanges']()))){if(_0x5274eb){if(_0x2a1e6f['commentThread']&&_0x2a1e6f['commentThread']['length'])continue;for(const _0x37e8ad of _0x2a1e6f['getRanges']())_0x5274eb['isIntersectingWithRange'](_0x37e8ad)||_0x5274eb['addRange'](_0x37e8ad);_0x2a1e6f['removeMarkers']();}else{_0x5274eb=_0x2a1e6f;for(const _0x128aa4 of _0x13d5e1)_0x2a1e6f['isIntersectingWithRange'](_0x128aa4)||_0x2a1e6f['addRange'](_0x128aa4);}}if(_0x5274eb)return _0x5274eb;_0x196acf['clear']();for(const {suggestion:_0x50ac2f,meta:_0x5a0143}of this['_findSuggestions'](_0x13d5e1,'deletion'))_0x5a0143['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5a0143['containsRangeInObject']&&!_0x5a0143['isInsideObject'])&&qt(_0x50ac2f,_0x42eada)&&_0x196acf['add'](_0x50ac2f);for(const _0x425c3d of _0x196acf){const _0x63a351=_0x425c3d['getRanges']();if(!_0x42eada||!_0x42eada['skipNestingCheck']){if(_0x13d5e1['every'](_0x38c120=>_0x63a351['some'](_0x45cc29=>_0x45cc29['containsRange'](_0x38c120,!0x0))))return _0x425c3d;}(!_0x425c3d['attributes']||!_0x425c3d['attributes']['skipNestingCheck'])&&(_0x63a351['every'](_0x2d79ca=>_0x13d5e1['some'](_0x129196=>_0x129196['containsRange'](_0x2d79ca,!0x0)))&&_0x425c3d['discard']());}const _0x27818e=_0x4f54ad(),_0x480377=_0x237cec['id'],_0x2725b8='deletion:'+_0x403b74,_0x1d80e9=this['_setSuggestionData']({'id':_0x27818e,'type':_0x2725b8,'createdAt':new Date(),'authorId':_0x480377,'attributes':_0x42eada});for(const _0x478b0f of _0x13d5e1)_0x478b0f['detach'](),_0x478b0f['isCollapsed']||'$graveyard'==_0x478b0f['root']['rootName']||this['_addSuggestionMarker'](_0x2725b8,_0x27818e,_0x480377,_0x478b0f,u['getMultiRangeId']());return _0x1d80e9;}['markAttributeChange'](_0x29dcc3,_0x13448e,_0x282ad4,_0x493375,_0x5d5b76){if(_0x29dcc3['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1f4864=this['editor']['plugins']['get']('Users')['me']['id'],_0x31f51b=Array['from'](this['_suggestions']['values']())['filter'](_0x1a5ce2=>'attribute'==_0x1a5ce2['type']&&_0x1a5ce2['data']['key']==_0x13448e&&_0x1a5ce2['isIntersectingWithRange'](_0x29dcc3));if('default'===this['_trackFormatChanges']){const _0x23cee0=this['_findSuggestions'](_0x29dcc3,'insertion')['filter'](({meta:_0x43102c})=>_0x43102c['isOwn']&&!_0x43102c['isInsideObject']&&!_0x43102c['isNextTo'])['map'](({suggestion:_0x1fd043})=>_0x1fd043);_0x31f51b['unshift'](..._0x23cee0);}const _0x296e11=new Map([[_0x29dcc3,_0x282ad4]]);for(const _0x19f25b of _0x31f51b){const _0x5a21f6='attribute'==_0x19f25b['type']?_0x19f25b['data']['oldValue']:void 0x0,_0x538bed=_0x19f25b['getFirstRange'](),_0xd77b12=Array['from'](_0x296e11['keys']())['find'](_0x493238=>_0x493238['isIntersecting'](_0x538bed));if(!_0xd77b12)continue;const _0x534d82=_0xd77b12['getDifference'](_0x538bed);this['_isBlockAttribute'](_0x13448e)&&'insertion'==_0x19f25b['type']&&0x0!=_0x534d82['length']||(_0x296e11['delete'](_0xd77b12),_0x534d82['forEach'](_0x2f72e8=>{_0x296e11['set'](_0x2f72e8,_0x282ad4);}),'insertion'!=_0x19f25b['type']&&_0x5a21f6!=_0x493375&&_0x296e11['set'](_0xd77b12['getIntersection'](_0x538bed),_0x5a21f6));}const _0x57a889=[];for(const [_0x8aa11d,_0x495e06]of _0x296e11){const _0x3c1656=_0x4f54ad(),_0x222b23={'key':_0x13448e,'oldValue':_0x495e06,'newValue':_0x493375};_0x13448e['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':_0x13448e});const _0x36102b=('attribute:'+(_0x13448e+'|'+Gt({'newValue':_0x493375})))['substring'](0x0,0x3c),_0x149562=this['_setSuggestionData']({'id':_0x3c1656,'type':_0x36102b,'data':_0x222b23,'createdAt':new Date(),'authorId':_0x1f4864,'attributes':_0x5d5b76});_0x57a889['push'](_0x149562),this['_addSuggestionMarker'](_0x36102b,_0x3c1656,_0x1f4864,_0x8aa11d);}return _0x57a889;}['enableDefaultAttributesIntegration'](_0x4a80c0){this['enableCommand'](_0x4a80c0,(_0xcb81d2,..._0x52ac4b)=>{this['_recordAttributeChanges'](()=>{_0xcb81d2(..._0x52ac4b);});});}['registerBlockAttribute'](_0x52c1b4){this['_blockAttributeKeys']['add'](_0x52c1b4);}['registerInlineAttribute'](_0x171c37){this['_inlineAttributeKeys']['add'](_0x171c37);}['_getAttributeKey'](_0x3ca9e2){return'attribute'==_0x3ca9e2['type']?_0x3ca9e2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5be386,_0x16a2a9){const _0x22d892=_0x5be386['getFirstMarker']();this['_model']['change'](_0x54441a=>{_0x54441a['updateMarker'](_0x22d892,{'range':_0x16a2a9});});}['_addThreadToSuggestion'](_0x142fa9){const _0x42aaa7=_0x142fa9['id'],_0x25ffc0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x42aaa7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x25ffc0,'threadId':_0x42aaa7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1b6596=this['_commentsRepository']['getCommentThread'](_0x42aaa7);_0x1b6596['unbind']('isRemovable'),_0x1b6596['isRemovable']=!0x1,_0x142fa9['commentThread']=_0x1b6596;}['_checkSuggestionCorrectness'](_0x5208f5,_0xea41f4,_0x40eec2,_0x381f99){if(_0x5208f5['type']!=_0xea41f4||_0x5208f5['subType']!=_0x40eec2||_0x5208f5['creator']['id']!=_0x381f99)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x13c5a0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5d79b0,_0x18cdb4){const _0x5e8279=_0x5d79b0['getFirstRange']();if(_0x18cdb4['isEqual'](_0x5e8279))_0x5d79b0['removeMarkers']();else{if(_0x5e8279['containsRange'](_0x18cdb4)){const _0x265d1b=this['_model']['createPositionAt'](_0x18cdb4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5d79b0,this['_model']['createRange'](_0x5e8279['start'],_0x265d1b));const _0x5779bc=_0x4f54ad(),_0x205099=_0x5d79b0['creator']['id'],_0x4d599c=_0x5d79b0['type']+':'+_0x5d79b0['subType'];this['_setSuggestionData']({'id':_0x5779bc,'type':_0x4d599c,'createdAt':new Date(),'authorId':_0x205099,'data':_0x5d79b0['data'],'attributes':_0x5d79b0['attributes']});const _0xb93d19=this['_model']['createPositionAt'](_0x18cdb4['end']['parent'],'after'),_0x3c4165=this['_model']['createRange'](_0xb93d19,_0x5e8279['end']);this['_addSuggestionMarker'](_0x4d599c,_0x5779bc,_0x205099,_0x3c4165);}else{if(_0x5e8279['containsPosition'](_0x18cdb4['start'])){const _0xd53f36=this['_model']['createPositionAt'](_0x18cdb4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5d79b0,this['_model']['createRange'](_0x5e8279['start'],_0xd53f36));}else{const _0x12ef35=this['_model']['createPositionAt'](_0x18cdb4['end']['parent'],'after');this['_setSuggestionRange'](_0x5d79b0,this['_model']['createRange'](_0x12ef35,_0x5e8279['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3c2f8a){for(const {suggestion:_0x3176c7,meta:_0x6f4241}of this['_findSuggestions'](_0x3c2f8a,'insertion')){if(!_0x6f4241['isOwn'])continue;const _0x4c1132=_0x3176c7['getRanges']();for(const _0x3653e1 of _0x4c1132)if(!_0x3c2f8a['getDifference'](_0x3653e1)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x31b0e2){const _0x436729=this['editor']['plugins']['get']('Users')['getUser'](_0x31b0e2);if(!_0x436729)throw new _0x13c5a0('track-changes-user-not-found',this);return _0x436729;}['_getExternalAuthor'](_0x36b28c){const _0x3b65f5=this['editor']['plugins']['get']('Users'),_0x15dc3d=_0x179626('external:'+_0x36b28c),_0x205191=_0x3b65f5['getUser'](_0x15dc3d);return _0x205191||_0x3b65f5['addUser']({'id':_0x15dc3d,'name':_0x36b28c});}['_createSuggestion'](_0x585068,_0x41be2c,_0x12960c,_0x4202ce,_0x53f875){const _0x5b43d6=this['_getAuthorFromId'](_0x4202ce),_0x4a2277=this['_suggestionFactory']['buildSuggestion'](_0x585068,_0x41be2c,_0x12960c,_0x5b43d6,_0x53f875,_0x4a1006=>{this['_updateSuggestionData'](_0x12960c,{'attributes':_0x4a1006});const _0x2910e1=this['getSuggestion'](_0x12960c);this['_joinWithAdjacentSuggestions'](new Set([_0x2910e1])),this['_refreshSuggestionsChain'](new Set([_0x2910e1]));});return this['listenTo'](_0x4a2277,'accept',()=>{this['_updateSuggestionData'](_0x12960c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4a2277,'discard',()=>{this['_updateSuggestionData'](_0x12960c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x12960c,_0x4a2277),this['_suggestionState']['set'](_0x4a2277,'notReady'),_0x4a2277;}['_splitMarkerName'](_0xb0ce02){const _0x5f2a1b=_0xb0ce02['split'](':');return{'group':_0x5f2a1b[0x0],'type':_0x5f2a1b[0x1],'subType':_0x5f2a1b['length']>=0x5?_0x5f2a1b[0x2]:null,'id':_0x5f2a1b['length']<0x5?_0x5f2a1b[0x2]:_0x5f2a1b[0x3],'authorId':_0x5f2a1b['length']<0x5?_0x5f2a1b[0x3]:_0x5f2a1b[0x4],'markerCount':0x6==_0x5f2a1b['length']?_0x5f2a1b[0x5]:null};}['_breakSuggestionMarker'](_0x3443ce,_0x575545,_0x8c87ad){const _0x4e7e81=_0x3443ce['getFirstRange'](),_0x2291ba=_0x4e7e81['start'],_0x1a1480=_0x4e7e81['end'];this['_setSuggestionRange'](_0x3443ce,this['_model']['createRange'](_0x2291ba,_0x575545));const _0x409fbb=_0x4f54ad(),_0x479b5c=_0x3443ce['creator']['id'],_0x224761=_0x3443ce['type']+(_0x3443ce['subType']?':'+_0x3443ce['subType']:'');this['_setSuggestionData']({'id':_0x409fbb,'type':_0x224761,'createdAt':new Date(),'authorId':_0x479b5c,'originalSuggestionId':_0x3443ce['id'],'attributes':_0x3443ce['attributes'],'data':_0x3443ce['data']});const _0x575c3c=this['_getAttributeKey'](_0x3443ce);('formatBlock'==_0x3443ce['type']||_0x575c3c&&this['_isBlockAttribute'](_0x575c3c))&&(_0x8c87ad=this['_model']['createPositionBefore'](_0x8c87ad['parent'])),this['_addSuggestionMarker'](_0x224761,_0x409fbb,_0x479b5c,this['_model']['createRange'](_0x8c87ad,_0x1a1480));}['_findSuggestions'](_0x57a1c8,_0x305ed1=null){const _0x3c592e=[],_0x5e1e7c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x57a1c8)||(_0x57a1c8=[_0x57a1c8]);for(const _0x1385b3 of this['getSuggestions']()){if(!_0x1385b3['isInContent'])continue;if(_0x305ed1&&_0x1385b3['type']!=_0x305ed1)continue;let _0x3b5749=!0x1;for(const _0x53b533 of _0x1385b3['getRanges']()){for(const _0x488d61 of _0x57a1c8){const _0x1fa4b3=_0x488d61['start']['isEqual'](_0x53b533['end'])||_0x488d61['end']['isEqual'](_0x53b533['start']);if(_0x1fa4b3||_0x488d61['getIntersection'](_0x53b533)){const _0x4c5c11=_0x488d61['containsRange'](_0x53b533)&&Ot(this['_model']['schema'],_0x53b533['start'],_0x488d61),_0x32fa92=_0x53b533['containsRange'](_0x488d61)&&Ot(this['_model']['schema'],_0x488d61['start'],_0x53b533);_0x3c592e['push']({'suggestion':_0x1385b3,'meta':{'isOwn':_0x5e1e7c==_0x1385b3['author'],'isNextTo':_0x1fa4b3,'isInsideObject':_0x4c5c11,'containsRangeInObject':_0x32fa92}}),_0x3b5749=!0x0;break;}}if(_0x3b5749)break;}}return _0x3c592e;}['_addSuggestionMarker'](_0x4c9fb1,_0x25d621,_0xd3122d,_0x467af2,_0x5bf5fb){this['_model']['change'](_0x478b6e=>{let _0x3e967d='suggestion:'+_0x4c9fb1+':'+_0x25d621+':'+_0xd3122d;_0x5bf5fb&&(_0x3e967d=_0x3e967d+':'+_0x5bf5fb),_0x478b6e['addMarker'](_0x3e967d,{'range':_0x467af2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3a7283){const _0x1cac5a=_0x3a7283['previous'],_0x316299=_0x3a7283['next'];_0x3a7283['previous']=null,_0x3a7283['next']=null,null!=_0x1cac5a&&_0x1cac5a['next']==_0x3a7283&&(_0x1cac5a['next']=_0x316299),null!=_0x316299&&_0x316299['previous']==_0x3a7283&&(_0x316299['previous']=_0x1cac5a),'ready'==this['_suggestionState']['get'](_0x3a7283)&&(this['_suggestionState']['set'](_0x3a7283,'removed'),this['fire']('suggestionUnloaded',_0x3a7283,_0x1cac5a,_0x316299));}['_setSuggestionData'](_0x4ef68a){const _0x4bb003=_0x4ef68a['id'],_0x471b5e=this['addSuggestionData'](_0x4ef68a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5eb935=this['editor']['plugins']['get']('PendingActions'),_0x5ffcd9=_0x471b5e['hasComments'],_0x3474a4=_0x471b5e['subType']?_0x471b5e['type']+':'+_0x471b5e['subType']:_0x471b5e['type'],_0x5dcf7c=this['editor']['locale'],_0x1d19b2=_0x5eb935['add'](o(_0x5dcf7c,'PENDING_ACTION_SUGGESTION')),_0x46e3ea={'id':_0x4bb003,'type':_0x3474a4,'hasComments':_0x5ffcd9,'data':_0x4ef68a['data']||null,'originalSuggestionId':_0x4ef68a['originalSuggestionId']||null,'attributes':_0x471b5e['attributes']};this['_adapter']['addSuggestion'](_0x46e3ea)['then'](_0x3d7895=>{_0x471b5e['_saved']=!0x0,_0x5eb935['remove'](_0x1d19b2),_0x3d7895&&_0x3d7895['createdAt']&&(this['_suggestions']['get'](_0x4bb003)['createdAt']=_0x3d7895['createdAt']);})['catch'](_0x59ac09=>{throw _0x1cc79c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x471b5e['discard']();}),_0x471b5e['stopListening'](),this['_suggestions']['delete'](_0x471b5e['id']),this['_suggestionState']['delete'](_0x471b5e),_0x59ac09;});}return _0x471b5e;}['_isBlockAttribute'](_0x5abdb1){return this['_blockAttributeKeys']['has'](_0x5abdb1);}['_updateSuggestionData'](_0x23c2f7,_0x331eef){const _0x36d61c=this['editor']['plugins']['get']('PendingActions'),_0x5c623d=this['getSuggestion'](_0x23c2f7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5c623d['_saved']){const _0xf6025d=_0x36d61c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x23c2f7,_0x331eef)['then'](()=>{_0x36d61c['remove'](_0xf6025d);});}else _0x5c623d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x23c2f7,_0x331eef);});}}['_getSuggestionData'](_0x2b4c7e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x13c5a0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2b4c7e);}['_handleNewSuggestionMarker'](_0x4512f0){const {id:_0x2717df,type:_0x28bcc7,subType:_0x44501e,authorId:_0x3d8358}=this['_splitMarkerName'](_0x4512f0),_0x44780e=this['_suggestions']['get'](_0x2717df)||this['_createSuggestion'](_0x28bcc7,_0x44501e,_0x2717df,_0x3d8358,{});switch(this['_checkSuggestionCorrectness'](_0x44780e,_0x28bcc7,_0x44501e,_0x3d8358),this['_suggestionState']['get'](_0x44780e)){case'notReady':this['_getSuggestionData'](_0x2717df)['then'](_0x3ea043=>{let _0x1e7a28=Promise['resolve']();_0x3ea043['hasComments']&&(_0x1e7a28=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2717df})),_0x1e7a28['then'](()=>{this['addSuggestionData'](_0x3ea043)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x44780e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2717df,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x44780e,'ready'),this['fire']('suggestionLoaded',_0x44780e);break;case'ready':this['fire']('suggestionChanged',_0x44780e);}return _0x44780e['addMarkerName'](_0x4512f0),_0x44780e;}['_refreshSuggestionsChain'](_0x5aba15){const _0x4f6e57=Array['from'](_0x5aba15),_0x41448d=_0x4f6e57['filter'](_0x59b53e=>'attribute'==_0x59b53e['type']);this['_refreshAttributeSuggestionsChain'](_0x41448d);const _0x18d28c=_0x4f6e57['filter'](_0x3c3763=>!_0x3c3763['isMultiRange']&&'attribute'!=_0x3c3763['type']),_0x2d1c17=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x284b09=>!_0x284b09['isMultiRange']&&'attribute'!=_0x284b09['type']),_0x4c9b17=_0x2d1c17['filter'](_0x420b71=>!_0x5aba15['has'](_0x420b71)),_0x2994cd=new Map(_0x2d1c17['map'](_0x61c483=>[_0x61c483,this['_suggestionFactory']['getSuggestionCallback'](_0x61c483['type'],_0x61c483['subType'],'chain')])),_0x253b01=new Map(_0x2d1c17['map'](_0x4d68a0=>[_0x4d68a0,_0x4d68a0['getFirstRange']()])),_0x57e3a6=new Set(),_0x44f6d6=new Set();for(let _0x20159d=0x0;_0x20159d<_0x18d28c['length'];_0x20159d++)_0x43d1ce(_0x18d28c[_0x20159d],_0x18d28c,_0x20159d+0x1);for(let _0x309f3c=0x0;_0x309f3c<_0x18d28c['length'];_0x309f3c++)_0x43d1ce(_0x18d28c[_0x309f3c],_0x4c9b17,0x0);const _0x594ed0=new Set();for(let _0x22cbab=0x0;_0x22cbab<_0x18d28c['length'];_0x22cbab++){const _0x33c368=_0x18d28c[_0x22cbab];!_0x44f6d6['has'](_0x33c368)&&_0x33c368['previous']&&(_0x594ed0['add'](_0x33c368['previous']),_0x33c368['previous']['next']===_0x33c368&&(_0x33c368['previous']['next']=null),_0x33c368['previous']=null),!_0x57e3a6['has'](_0x33c368)&&_0x33c368['next']&&(_0x594ed0['add'](_0x33c368['next']),_0x33c368['next']['previous']===_0x33c368&&(_0x33c368['next']['previous']=null),_0x33c368['next']=null);}function _0x43d1ce(_0x38fd2a,_0x5c5d65,_0x1a1454){for(let _0x4b233b=_0x1a1454;_0x4b233b<_0x5c5d65['length'];_0x4b233b++){const _0x508516=_0x5683da(_0x38fd2a,_0x5c5d65[_0x4b233b]);_0x508516&&(_0x508516[0x0]['next']=_0x508516[0x1],_0x508516[0x1]['previous']=_0x508516[0x0],_0x57e3a6['add'](_0x508516[0x0]),_0x44f6d6['add'](_0x508516[0x1]));}}function _0x5683da(_0x5547ea,_0x16ee41){if(_0x5547ea['author']['id']!==_0x16ee41['author']['id'])return null;const _0x12d126=_0x2994cd['get'](_0x5547ea)(_0x5547ea,_0x16ee41,_0x253b01['get'](_0x5547ea),_0x253b01['get'](_0x16ee41));if(!_0x12d126)return null;return _0x2994cd['get'](_0x16ee41)(_0x5547ea,_0x16ee41,_0x253b01['get'](_0x5547ea),_0x253b01['get'](_0x16ee41))?_0x12d126[0x1]['commentThread']&&_0x12d126[0x1]['commentThread']['length']?null:_0x12d126:null;}_0x594ed0['size']&&this['_refreshSuggestionsChain'](_0x594ed0);}['_refreshAttributeSuggestionsChain'](_0x29b70d){if(0x0==_0x29b70d['length'])return;const _0x283a7d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52e3d7=>'attribute'==_0x52e3d7['type']&&_0x52e3d7['_isDataLoaded']),_0x16824a=[],_0x2004bd=new Map();for(const _0x3bce79 of _0x283a7d){const _0x58d7a9=_0x179626(_0x3bce79['attributes']);_0x2004bd['has'](_0x58d7a9)||(_0x2004bd['set'](_0x58d7a9,_0x16824a['length']),_0x16824a['push']([]));const _0x1357da=_0x2004bd['get'](_0x58d7a9);_0x16824a[_0x1357da]['push'](_0x3bce79);}!(function(){_0x16824a['sort']((_0x51c53b,_0x564c94)=>{const _0x1da05a=_0x51c53b[0x0]['createdAt'],_0x56582c=_0x564c94[0x0]['createdAt'];return _0x1da05a==_0x56582c?_0x51c53b[0x0]['attributes']['groupId']<_0x564c94[0x0]['attributes']['groupId']?-0x1:0x1:_0x1da05a<_0x56582c?-0x1:0x1;});for(const _0x2779db of _0x16824a)_0x2779db['sort']((_0x242d97,_0x5aab22)=>_0x242d97['id']<_0x5aab22['id']?-0x1:0x1);}());for(let _0x2d6e45=0x0;_0x2d6e45<_0x16824a['length'];_0x2d6e45++){if(0x0==_0x16824a[_0x2d6e45]['length'])continue;const _0x15f677=[];for(let _0x203697=_0x2d6e45+0x1;_0x203697<_0x16824a['length'];_0x203697++)0x0!=_0x16824a[_0x203697]['length']&&_0x1eadcf(_0x16824a[_0x2d6e45],_0x16824a[_0x203697])&&_0x15f677['push'](_0x203697);for(const _0x45f4fb of _0x15f677)_0x16824a[_0x2d6e45]=_0x16824a[_0x2d6e45]['concat'](_0x16824a[_0x45f4fb]),_0x16824a[_0x45f4fb]=[];}for(const _0x5cc265 of _0x16824a)for(let _0x292136=0x0;_0x292136<_0x5cc265['length'];_0x292136++){const _0x268b60=_0x5cc265[_0x292136+0x1]||null;_0x5cc265[_0x292136]['next']!==_0x268b60&&(_0x5cc265[_0x292136]['next']=_0x268b60);}for(const _0x22ecaa of _0x16824a)for(let _0x2f4426=0x0;_0x2f4426<_0x22ecaa['length'];_0x2f4426++){const _0x532fc8=_0x22ecaa[_0x2f4426-0x1]||null;_0x22ecaa[_0x2f4426]['previous']!==_0x532fc8&&(_0x22ecaa[_0x2f4426]['previous']=_0x532fc8);}function _0x1eadcf(_0xee9b0c,_0x3eee75){if(_0xee9b0c[0x0]['attributes']['groupId']!==_0x3eee75[0x0]['attributes']['groupId']&&_0xee9b0c[0x0]['author']!==_0x3eee75[0x0]['author'])return!0x1;if(!function(_0x408ea4,_0x89e47e){if(!_0x408ea4['hasComments']&&!_0x89e47e['hasComments'])return!0x0;if(_0x408ea4['hasComments']&&_0x89e47e['hasComments'])return!0x1;if(_0x408ea4['hasComments']&&_0x89e47e['createdAt']<_0x408ea4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x89e47e['hasComments']&&_0x408ea4['createdAt']<_0x89e47e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xee9b0c[0x0],_0x3eee75[0x0]))return!0x1;const _0x2f5f4d=Tt(_0xee9b0c[0x0]['attributes'],'groupId'),_0x278eaf=Tt(_0x3eee75[0x0]['attributes'],'groupId');if(!_0x19ae42(_0x2f5f4d,_0x278eaf))return!0x1;return!!_0xee9b0c['every'](_0x2c1244=>_0x3eee75['some'](_0x1312cb=>_0x2c1244['getFirstRange']()['isEqual'](_0x1312cb['getFirstRange']())))&&_0x3eee75['every'](_0x405491=>_0xee9b0c['some'](_0x4bf1bb=>_0x405491['getFirstRange']()['isEqual'](_0x4bf1bb['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x32eba0){const _0x115b28=Array['from'](_0x32eba0),_0x2928a0=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3ab3e4=_0x2928a0['filter'](_0x3909e7=>!_0x32eba0['has'](_0x3909e7)),_0x2b6e58=new Map(_0x115b28['map'](_0x441232=>[_0x441232,this['_suggestionFactory']['getSuggestionCallback'](_0x441232['type'],_0x441232['subType'],'join')])),_0x2ec41c=new Map(_0x2928a0['map'](_0x504b56=>[_0x504b56,_0x504b56['getRanges']()]));for(let _0x957287=0x0;_0x957287<_0x115b28['length'];_0x957287++){if(_0x422211(this,_0x115b28[_0x957287],_0x115b28,_0x957287+0x1))return!0x0;}for(let _0x1bfb9b=0x0;_0x1bfb9b<_0x115b28['length'];_0x1bfb9b++){if(_0x422211(this,_0x115b28[_0x1bfb9b],_0x3ab3e4,0x0))return!0x0;}return!0x1;function _0x422211(_0x3f19bc,_0x4c3b92,_0x566acc,_0xbd1632){for(let _0x168e94=_0xbd1632;_0x168e94<_0x566acc['length'];_0x168e94++){const _0x4bc568=_0x566acc[_0x168e94];if(_0x4bc568['type']!==_0x4c3b92['type']||_0x4bc568['author']['id']!==_0x4c3b92['author']['id']||_0x4bc568['subType']!==_0x4c3b92['subType'])continue;if(!Jt(_0x4c3b92,_0x4bc568))continue;if('attribute'==_0x4c3b92['type']&&_0x4c3b92['data']['oldValue']!=_0x4bc568['data']['oldValue'])continue;if('attribute'==_0x4c3b92['type']&&_0x3f19bc['_isBlockAttribute'](_0x4c3b92['data']['key']))continue;if('formatBlock'==_0x4c3b92['type']){const _0x9dc228=_0x3f19bc['editor']['model'],_0x2be0cf=_0x4c3b92['getContainedElement']();if(_0x2be0cf&&(_0x9dc228['schema']['isObject'](_0x2be0cf)||_0x9dc228['schema']['isLimit'](_0x2be0cf)))continue;}const _0xcc9ffa=_0x2b6e58['get'](_0x4c3b92),_0x40767b=_0x2ec41c['get'](_0x4c3b92),_0x392427=_0x2ec41c['get'](_0x4bc568),_0x103152=_0x4c3b92['commentThread']&&_0x4c3b92['commentThread']['length'],_0x3baf93=_0x4bc568['commentThread']&&_0x4bc568['commentThread']['length'];if(!_0x103152&&_0xcc9ffa(_0x392427,_0x40767b))return _0x3f19bc['_joinSuggestions'](_0x4bc568,_0x4c3b92),_0x2ec41c['delete'](_0x4c3b92),!0x0;if(!_0x3baf93&&_0xcc9ffa(_0x40767b,_0x392427))return _0x3f19bc['_joinSuggestions'](_0x4c3b92,_0x4bc568),_0x2ec41c['delete'](_0x4bc568),!0x0;}return!0x1;}}['_joinSuggestions'](_0x267b28,_0x3707a9){if(_0x267b28['isMultiRange']){for(const _0x19bbde of _0x3707a9['getRanges']())_0x267b28['addRange'](_0x19bbde);}else{const _0x1d9aa7=_0x3707a9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x267b28,this['_model']['createRange'](_0x267b28['getFirstRange']()['start'],_0x1d9aa7));}_0x3707a9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x520724,_0x2da9ba,_0x193a03){const _0x50ef54=_0x520724['startsWith']('format')||_0x520724['startsWith']('attribute')?'FORMATTING':_0x520724['toUpperCase']();return o(this['editor']['locale'],_0x2da9ba+'_'+_0x50ef54+'_SUGGESTION_ANNOUNCEMENT',_0x193a03);}['_initAriaMarkerChangeAnnouncements'](){const _0x48a126=this['editor'];if(!_0x48a126['ui'])return;const {ariaLiveAnnouncer:_0x249a6f}=_0x48a126['ui'];_0x461878(this['_model'],({left:_0x4a117f,entered:_0x1393fa})=>{for(const _0x314e9f of _0x4a117f){const {group:_0xac6455,type:_0x43f2a0}=this['_splitMarkerName'](_0x314e9f['name']);if('suggestion'===_0xac6455){_0x249a6f['announce'](this['_getMarkerAnnouncementText'](_0x43f2a0,'LEAVE'));break;}}for(const _0x14389b of _0x1393fa){const {group:_0x1b89af,type:_0xaeb485}=this['_splitMarkerName'](_0x14389b['name']);if('suggestion'===_0x1b89af){_0x249a6f['announce'](this['_getMarkerAnnouncementText'](_0xaeb485,'ENTER',_0x1eb9f0(_0x5dadca)));break;}}});}['_processAttributeChanges'](_0x376ff9){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4153fc=this['editor'],_0x3a7f50=_0x4153fc['model']['document']['differ']['getChanges']();if(0x0==_0x3a7f50['length'])return!0x1;const _0x53f453=[],_0x21f552=_0x3a7f50['filter'](_0x213c25=>'attribute'==_0x213c25['type']),_0x1511dd=_0x3a7f50['filter'](_0x2eaf67=>'insert'==_0x2eaf67['type']&&'$text'!=_0x2eaf67['name']),_0x4b3497=_0x3a7f50['filter'](_0x3de3df=>'remove'==_0x3de3df['type']&&'$text'!=_0x3de3df['name']);for(const _0xc6be0a of _0x21f552)_0x53f453['push']({'key':_0xc6be0a['attributeKey'],'newValue':_0xc6be0a['attributeNewValue'],'oldValue':_0xc6be0a['attributeOldValue'],'range':Pt(_0xc6be0a['range'],_0x4153fc['model'])});for(const _0x2942ed of _0x1511dd){const _0x13fd18=_0x4b3497['find'](_0x2f6060=>_0x2f6060['position']['isEqual'](_0x2942ed['position']));_0x13fd18&&_0x53f453['push']({'key':m,'newValue':_0x2942ed['name'],'oldValue':_0x13fd18['name'],'range':_0x4153fc['model']['createRangeOn'](_0x2942ed['position']['nodeAfter'])});}return 0x0!=_0x53f453['length']&&this['_reduceExistingSuggestions'](_0x376ff9,_0x53f453);}['_processAttributeSuggestions'](_0x2b5796){let _0x93ba2e=!0x1;const _0x3d04d5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x333ee9=>_0x333ee9['data']['newRange']&&_0x333ee9['name']['startsWith']('suggestion:attribute:'));for(const _0xcdb634 of _0x3d04d5){const {subType:_0x256612,id:_0x4730e4}=this['_splitMarkerName'](_0xcdb634['name']),_0x405556=_0x256612['split']('|')[0x0];for(const _0x138191 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x138191['id']!=_0x4730e4&&'attribute'==_0x138191['type']&&_0x138191['data']&&_0x138191['data']['key']==_0x405556&&_0x138191['getFirstRange']()['isIntersecting'](_0xcdb634['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x138191,_0xcdb634['data']['newRange'],_0x2b5796),_0x93ba2e=!0x0);}return _0x93ba2e;}['_recordAttributeChanges'](_0x33f346){this['_recordAttributeSuggestions']=!0x0,_0x33f346();}['_isRegisteredAttribute'](_0x33e1c1){const _0x4504c6=this['_isBlockAttribute'](_0x33e1c1),_0x2e22bc=this['_inlineAttributeKeys']['has'](_0x33e1c1);return _0x4504c6||_0x2e22bc;}['_reduceExistingSuggestions'](_0x346642,_0x2b217e){if(0x0==_0x2b217e['length'])return!0x1;let _0x367700=!0x1;for(const _0x3eef39 of _0x2b217e){const _0x13ef67=this['_findSuggestions'](_0x3eef39['range'],'attribute')['filter'](_0x398f19=>!_0x398f19['meta']['isNextTo'])['map'](_0x6d8c3f=>_0x6d8c3f['suggestion']),_0x4554cb=_0x179626({'newValue':_0x3eef39['newValue']});_0x13ef67['filter'](_0xbd654c=>{const [_0x2f3c8e,_0x3c99a8]=_0xbd654c['subType']['split']('|');return _0x2f3c8e==_0x3eef39['key']&&_0x3c99a8!=_0x4554cb;})['forEach'](_0x4db8a0=>{this['_reduceSuggestionAttributeRange'](_0x4db8a0,_0x3eef39['range'],_0x346642),_0x367700=!0x0;});}return _0x367700;}['_reduceSuggestionAttributeRange'](_0x337df2,_0x46387f,_0x235702){const _0x58b372=_0x337df2['getFirstRange']()['getDifference'](_0x46387f);0x0!==_0x58b372['length']?0x1!==_0x58b372['length']?this['_breakSuggestionMarker'](_0x337df2,_0x46387f['start'],_0x46387f['end']):this['_setSuggestionRange'](_0x337df2,_0x58b372[0x0]):_0x235702['removeMarker'](_0x337df2['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1fcc93){this['_editor']=_0x1fcc93,this['_model']=_0x1fcc93['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1821d6,_0x4ae56b,_0x25a00f,_0x40c8ec,_0x317d37,_0x2cd91e){return new u(this['_model'],{'type':_0x1821d6,'subType':_0x4ae56b,'id':_0x25a00f,'author':_0x40c8ec,'creator':_0x40c8ec,'attributes':_0x317d37,'onAttributesChange':_0x2cd91e,'onAccept':(..._0x18d8d0)=>this['getSuggestionCallback'](_0x1821d6,_0x4ae56b,'accept')(..._0x18d8d0),'onDiscard':(..._0x54c65e)=>this['getSuggestionCallback'](_0x1821d6,_0x4ae56b,'discard')(..._0x54c65e)});}['registerCustomCallback'](_0x21e09a,_0x534eed,_0x3afb75,_0x1b352b){const _0x40f047=_0x21e09a+':'+_0x534eed+':'+_0x3afb75;this['_customCallbacks']['set'](_0x40f047,_0x1b352b);}['getSuggestionCallback'](_0x4af08a,_0xa2de87,_0x51b2b4){const _0x2df364=_0x4af08a+':'+_0xa2de87+':'+_0x51b2b4;return this['_customCallbacks']['get'](_0x2df364)||this['_defaultCallbacks']['get'](_0x4af08a+':'+_0x51b2b4);}['_registerDefaultCallbacks'](){const _0x5900b2=()=>!0x1,_0x7d863a=_0x4761a6=>{_0x4761a6['sort']((_0x2c174b,_0x4bf7ab)=>_0x2c174b['start']['isBefore'](_0x4bf7ab['start'])?0x1:-0x1),this['_model']['change'](_0xa7747a=>{for(const _0xa5eaf4 of _0x4761a6){let _0x5eafc7;_0x5eafc7=_0xa5eaf4['end']['isAtEnd']&&_0xa5eaf4['end']['parent']==_0xa5eaf4['start']['nodeAfter']?_0xa7747a['createSelection'](_0xa5eaf4['start']['nodeAfter'],'on'):_0xa7747a['createSelection'](_0xa5eaf4),this['_model']['deleteContent'](_0x5eafc7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x44a088=(_0x46b8e6,_0x405430)=>{_0x405430&&this['_model']['change'](_0x5b0352=>{const {commandName:_0x202c38,commandParams:_0x2813e1=[]}=_0x405430,_0x2d5366=_0x46b8e6['map'](_0x4f268d=>(Vt(_0x4f268d)&&(_0x4f268d=this['_model']['createRange'](_0x4f268d['end'])),_0x4f268d))['filter'](_0x11e0d6=>'$graveyard'!==_0x11e0d6['root']['rootName']);if(_0x2d5366['length']<0x1)return;const _0x26ba80=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x49ac03=>_0x7da4c9['fromRange'](_0x49ac03));_0x5b0352['setSelection'](_0x2d5366);for(const _0x989d2c of this['_editor']['commands']['commands']())_0x989d2c['refresh']();_0x2813e1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x202c38,..._0x2813e1);const _0x29c0ea=_0x26ba80['filter'](_0x1d703c=>'$graveyard'!=_0x1d703c['root']['rootName']);_0x29c0ea['length']>0x0&&_0x5b0352['setSelection'](_0x29c0ea);for(const _0x1f7dfb of _0x26ba80)_0x1f7dfb['detach']();});},_0x395129=(_0x12a5d1,_0x226479)=>0x1==_0x12a5d1['length']&&0x1==_0x226479['length']&&_0x12a5d1[0x0]['end']['isEqual'](_0x226479[0x0]['start']),_0x2a7e1d=(_0x52ea43,_0x2abc48,_0x28981d,_0xd7c4d3)=>Ht(_0x52ea43,_0x2abc48,_0x28981d,_0xd7c4d3,this['_model'])?[_0x52ea43,_0x2abc48]:Ht(_0x2abc48,_0x52ea43,_0xd7c4d3,_0x28981d,this['_model'])?[_0x2abc48,_0x52ea43]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5900b2),this['_defaultCallbacks']['set']('insertion:discard',_0x7d863a),this['_defaultCallbacks']['set']('insertion:join',_0x395129),this['_defaultCallbacks']['set']('insertion:chain',_0x2a7e1d),this['_defaultCallbacks']['set']('deletion:accept',_0x7d863a),this['_defaultCallbacks']['set']('deletion:discard',_0x5900b2),this['_defaultCallbacks']['set']('deletion:join',_0x395129),this['_defaultCallbacks']['set']('deletion:chain',_0x2a7e1d),this['_defaultCallbacks']['set']('formatInline:accept',_0x44a088),this['_defaultCallbacks']['set']('formatInline:discard',_0x5900b2),this['_defaultCallbacks']['set']('formatInline:join',_0x395129),this['_defaultCallbacks']['set']('formatInline:chain',_0x5900b2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x44a088),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5900b2),this['_defaultCallbacks']['set']('formatBlock:join',_0x395129),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5900b2),this['_defaultCallbacks']['set']('attribute:accept',_0x5900b2),this['_defaultCallbacks']['set']('attribute:discard',(_0x757fb9,_0xf5acda)=>{if(!_0xf5acda)return;const _0xbfb0d7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x334b14=>{if(_0xf5acda['key']==m)for(const _0x777204 of _0x757fb9){const _0x30b25e=_0x777204['start']['nodeAfter'],_0x1a7679=_0xf5acda['oldValue'];_0x334b14['rename'](_0x30b25e,_0x1a7679);}else{if(_0xbfb0d7['_isBlockAttribute'](_0xf5acda['key'])){for(const _0xe9d254 of _0x757fb9)void 0x0!==_0xf5acda['oldValue']?_0x334b14['setAttribute'](_0xf5acda['key'],_0xf5acda['oldValue'],_0xe9d254['start']['nodeAfter']):_0x334b14['removeAttribute'](_0xf5acda['key'],_0xe9d254['start']['nodeAfter']);}else{for(const _0x31ce05 of _0x757fb9)_0xf5acda['oldValue']?_0x334b14['setAttribute'](_0xf5acda['key'],_0xf5acda['oldValue'],_0x31ce05):_0x334b14['removeAttribute'](_0xf5acda['key'],_0x31ce05);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x395129);}}function Ot(_0x1227f3,_0x31d91c,_0x326e29){for(const _0x3799a1 of _0x31d91c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3799a1['root']==_0x3799a1)return!0x1;if(!_0x326e29['containsItem'](_0x3799a1))return!0x1;if(_0x1227f3['isObject'](_0x3799a1)||_0x1227f3['isLimit'](_0x3799a1))return!0x0;}return!0x1;}function Vt(_0x1145ca){return _0x1145ca['end']['parent']==_0x1145ca['start']['nodeAfter']&&_0x1145ca['end']['isAtStart'];}function Ut(_0x3eec08,_0x1fa63d,_0x1f6386,_0x7bdd29){const _0x24419f=_0x16fdd9=>!_0x16fdd9['item']['is']('$textProxy')&&!_0x7bdd29['isObject'](_0x16fdd9['item']),_0x35bd9b=_0x3eec08['start']['getLastMatchingPosition'](_0x24419f),_0x224889=_0x3eec08['end']['getLastMatchingPosition'](_0x24419f,{'direction':'backward'});return(!_0x3eec08['start']['isEqual'](_0x35bd9b)||!_0x3eec08['end']['isEqual'](_0x224889))&&(_0x35bd9b['isBefore'](_0x224889)?_0x1f6386['updateMarker'](_0x1fa63d,{'range':_0x1f6386['createRange'](_0x35bd9b,_0x224889)}):_0x1f6386['removeMarker'](_0x1fa63d),!0x0);}function Gt(_0x3a363b){return _0x179626(_0x3a363b);}function Ft(_0x308efa){const _0x5640ae=_0x308efa['start']['nodeAfter'];return _0x5640ae&&_0x5640ae['is']('element');}function Pt(_0x436a0a,_0x124252){return null==_0x436a0a['end']['nodeBefore']&&_0x436a0a['end']['parent']==_0x436a0a['start']['nodeAfter']?Lt(_0x436a0a['start']['nodeAfter'],_0x124252):_0x436a0a;}function Lt(_0x14cd94,_0x4b0d1d){const _0x5d2329=_0x4b0d1d['schema']['isObject'](_0x14cd94)||_0x4b0d1d['schema']['isSelectable'](_0x14cd94);return _0x4b0d1d['createRange'](_0x4b0d1d['createPositionAt'](_0x14cd94,'before'),_0x5d2329?_0x4b0d1d['createPositionAfter'](_0x14cd94):_0x4b0d1d['createPositionAt'](_0x14cd94,'end'));}function Ht(_0x1e1667,_0x30c06e,_0x5845da,_0x12f8ad,_0x1dfb61){if(_0x1e1667['next'])return!0x1;if(!Jt(_0x1e1667,_0x30c06e))return!0x1;if(_0x5845da['end']['isEqual'](_0x12f8ad['start']))return!0x0;if(_0x1e1667['type']!=_0x30c06e['type'])return!0x1;if(!_0x5845da['end']['isTouching'](_0x12f8ad['start']))return!0x1;const _0x131b20=_0x1dfb61['createRange'](_0x5845da['end'],_0x12f8ad['start'])['getWalker']();for(const _0x109144 of _0x131b20)if(['elementStart','elementEnd']['includes'](_0x109144['type'])&&_0x1dfb61['schema']['isLimit'](_0x109144['item']))return!0x1;return!0x0;}function Jt(_0x26d31b,_0x4c035a){if(!_0x26d31b['_isDataLoaded']||!_0x4c035a['_isDataLoaded'])return!0x1;const _0x1d7930=new Set(Object['keys'](_0x26d31b['attributes'])),_0x5ae036=new Set(Object['keys'](_0x4c035a['attributes']));if(_0x1d7930['delete']('groupId'),_0x5ae036['delete']('groupId'),0x0==_0x1d7930['size']&&0x0==_0x5ae036['size'])return!0x0;if(_0x1d7930['size']!=_0x5ae036['size'])return!0x1;const _0x17cec7={..._0x26d31b['attributes']},_0x5a39a4={..._0x4c035a['attributes']};return delete _0x17cec7['groupId'],delete _0x5a39a4['groupId'],JSON['stringify'](_0x17cec7)==JSON['stringify'](_0x5a39a4);}function qt(_0x4e6499,_0x3aee97){const _0x28f7d5=zt(_0x4e6499['attributes']),_0x5600ff=zt(_0x3aee97);if(!_0x4e6499['_isDataLoaded'])return!0x1;for(const _0x16136a of Object['keys'](_0x5600ff))if(!_0x19ae42(_0x28f7d5[_0x16136a],_0x5600ff[_0x16136a]))return!0x1;return!0x0;}function zt(_0x131666){const _0x211575=Object['assign']({},_0x131666);return delete _0x211575['skipNestingCheck'],delete _0x211575['tablePasteChainId'],_0x211575;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x334129(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1f72f7,_0x5589c7,_0x30d55f,_0x3a414b){super(),this['model']=_0x5589c7,this['view']=_0x30d55f,this['commentThreadController']=_0x3a414b,this['_editor']=_0x1f72f7,this['_acceptCommand']=_0x1f72f7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1f72f7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2ad404,_0x4a7ae4)=>_0x2ad404||_0x4a7ae4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1c135d=>_0x1c135d&&this['_editor']['model']['canEditAt'](_0x5589c7['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2696c0=>_0x2696c0&&this['_editor']['model']['canEditAt'](_0x5589c7['getRanges']())),this['_pendingAction']=null,_0x30d55f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x30d55f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x30d55f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x30d55f,'change:isDirty',()=>{_0x30d55f['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 _0x350460=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x350460);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2e19fa{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5a115f,_0x2b2864,_0x7f28c3,_0x11d6dd){super(_0x5a115f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x77bd41(_0x5a115f,o(_0x5a115f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2b2864['authoredAt']),this['bind']('authoredAt')['to'](_0x2b2864),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',_0x2b2864,'authoredAt',this,'descriptionParts',(_0x35c643,_0x1b6e8f,_0x2b9958)=>{const _0x9f6717=_0x2b9958['map'](_0x39deb0=>ls(_0x39deb0['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x35c643-0x1,_0x2b2864['author']['name'],_0x1b6e8f?_0x11d6dd['formatDateTime'](_0x1b6e8f):'',new DOMParser()['parseFromString'](_0x9f6717,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5f28e2(),this['focusTracker']=new _0xf9b9a0(),this['keystrokes']=new _0x368b70(),this['focusCycler']=new _0x1f890a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4edad3=>_0x4edad3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2b2864,this['_localUser']=_0x7f28c3,this['_config']=_0x11d6dd,_0x11d6dd['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5d7def(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x20b7a6}=this['_config'];this['commentsListView']=new _0x20b7a6(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',_0x3b9cda=>_0x3b9cda+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x44fafc,_0x527ecc)=>_0x44fafc||!!_0x527ecc);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2886ab}=this['_config'],_0x57f6c7=new _0x2886ab(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x573d3d=_0x57f6c7['commentInputView'];return _0x57f6c7['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x573d3d,'value',(_0x2f8332,_0x4440ca,_0xbdc35f)=>!!_0xbdc35f||_0x2f8332&&!_0x4440ca),_0x573d3d['on']('submit',(_0x436aa0,_0x898f49)=>{this['fire']('addComment',_0x898f49),_0x573d3d['editor']['setData']('');}),_0x573d3d['on']('cancel',()=>this['focus']()),_0x573d3d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x57f6c7;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x522c5d,_0x2104d6,_0x3097f5,_0x597eb7){super(_0x522c5d,_0x2104d6,_0x3097f5,_0x597eb7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x39435e=>_0x39435e&&_0x39435e[0x0]?_0x39435e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x38618c,_0x4b2a79)=>{let _0x5777e5='';for(const _0x57fed4 of _0x38618c)_0x5777e5+='<p>'+ls(_0x57fed4['content'],_0x57fed4['color'])+'</p>';return _0x4b2a79?_0x5777e5:_0x5558c6(_0x5777e5,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x597eb7['SuggestionView'](_0x522c5d,_0x2104d6,{'formatDateTime':_0x597eb7['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 _0x3a452d=this['bindTemplate'],_0x2cdcd6=[this['suggestionView']];return this['commentsListView']&&_0x2cdcd6['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2cdcd6['push'](this['commentThreadInputView']),_0x2cdcd6['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3a452d['if']('isActive','ck-suggestion-wrapper--active'),_0x3a452d['to']('type',_0x27ca62=>'ck-suggestion-'+_0x27ca62),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':_0x3a452d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2cdcd6};}['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 ce extends _0x2e19fa{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x290831,_0x17507e,_0x4f5df9){super(_0x290831),this['_model']=_0x17507e,this['_config']=_0x4f5df9,this['set']('description',''),this['bind']('authoredAt')['to'](_0x17507e),this['acceptButton']=this['_createButton'](o(_0x290831,'Accept\x20suggestion'),_0x320a23['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x290831,'Discard\x20suggestion'),_0x320a23['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x188458(_0x290831,_0x17507e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5f28e2([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xf9b9a0(),this['keystrokes']=new _0x368b70(),this['focusCycler']=new _0x1f890a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1ccddf=>_0x1ccddf['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x552a25=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x552a25['innerHTML']=this['description'],this['on']('change:description',(_0x1fb241,_0x1e960d,_0x247b69)=>{_0x552a25['innerHTML']=_0x247b69;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x37c174=this['bindTemplate'],_0x2951c0=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x37c174['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x37c174['to']('authoredAt',_0x4e2093=>this['_config']['formatDateTime'](_0x4e2093))}]}]},{'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']&&_0x2951c0['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':_0x2951c0}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x346a3d,_0x38764c,_0x350007,_0x4de371,_0x4891b7){const _0xc6234e=new _0x35c314(this['locale']);return _0xc6234e['set']({'label':_0x346a3d,'icon':_0x38764c,'tooltip':!0x0,'tooltipPosition':_0x4891b7}),_0xc6234e['extendTemplate']({'attributes':{'class':_0x350007}}),_0xc6234e['on']('execute',()=>{this['fire'](_0x4de371,this['_model']['id']);}),_0xc6234e;}['_setupKeyboardNavigation'](){const _0x4f97ff=this['element'];this['keystrokes']['listenTo'](_0x4f97ff);for(const _0x1fb27e of this['focusables'])this['focusTracker']['add'](_0x1fb27e['element']),this['keystrokes']['listenTo'](_0x1fb27e['element']);this['keystrokes']['set']('enter',(_0x2bb024,_0x10a374)=>{_0x4f97ff===_0x2bb024['target']&&(this['focusCycler']['focusFirst'](),_0x10a374());}),this['keystrokes']['set']('esc',(_0x215b43,_0x3dac90)=>{_0x4f97ff!==_0x215b43['target']&&(this['focus'](),_0x3dac90());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x26a770{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x53b94d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x5b89b4){super(_0x5b89b4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x11aaca=this['editor']['config'];_0x11aaca['define']('trackChanges.SuggestionThreadView',re),_0x11aaca['define']('trackChanges.SuggestionView',ce),_0x11aaca['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x11aaca['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1d3cb4,_0x1db2d7){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4b4392,_0x5591fd]of this['_handleControllerBuffer']){const _0x54f1ba=this['_suggestionToController']['has'](_0x4b4392);_0x54f1ba||_0x5591fd?_0x54f1ba&&_0x5591fd&&this['_destroyController'](_0x4b4392):this['_initializeController'](_0x4b4392);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1d3cb4,_0x1db2d7);}['init'](){const _0x3c170=this['editor'],_0x1208ce=_0x3c170['plugins']['get']('TrackChangesEditing'),_0x3d308f=_0x3c170['plugins']['get']('Annotations'),_0x2892ff=_0x3c170['plugins']['get']('EditorAnnotations'),_0x15fa52=_0x3c170['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2892ff['addSourceCollector'](()=>{const _0x1322ac=[];for(const [_0x50ec5a,_0x13c16d]of Array['from'](this['_suggestionToController'])){const _0x2580cc=_0x50ec5a['getAllAdjacentSuggestions'](),_0x534d9a=[];for(const _0x23665c of _0x2580cc){if(!_0x23665c['isInContent'])continue;if(_0x23665c['isMultiRange']){_0x534d9a['push'](..._0x23665c['getRanges']());continue;}const _0x33255f=_0x23665c['getFirstRange']();if(_0x534d9a['length']>0x0){const _0x205e4b=_0x534d9a[0x0]['getJoined'](_0x33255f);if(_0x205e4b){_0x534d9a[0x0]=_0x205e4b;continue;}}_0x534d9a['push'](_0x33255f);}_0x1322ac['push']([_0x13c16d['view'],_0x534d9a]);}return _0x1322ac;}),this['listenTo'](_0x1208ce,'suggestionLoaded',(_0x2579f4,_0x531452)=>{this['listenTo'](_0x531452,'change:previous',(_0x4411c0,_0x25de1e,_0x25d271,_0x43bb08)=>{_0x531452['isInContent']&&(null==_0x25d271?(this['_updateController'](_0x43bb08['head']),this['_handleSuggestionControllerDelayed'](_0x531452,!0x1)):(this['_updateController'](_0x25d271['head']),null==_0x43bb08&&this['_handleSuggestionControllerDelayed'](_0x531452,!0x0)));}),null!==_0x531452['previous']?this['_updateController'](_0x531452['head']):this['_handleSuggestionControllerDelayed'](_0x531452,!0x1);}),this['listenTo'](_0x1208ce,'suggestionUnloaded',(_0x4e5ad9,_0x30eba4,_0x1b8a88)=>{this['stopListening'](_0x30eba4,'change:previous'),this['_handleControllerBuffer']['delete'](_0x30eba4),this['_suggestionToController']['has'](_0x30eba4)&&this['_destroyController'](_0x30eba4),_0x1b8a88&&this['_updateController'](_0x1b8a88['head']);}),this['listenTo'](_0x1208ce,'suggestionChanged',(_0x3b1f69,_0x260e92)=>{this['_updateController'](_0x260e92);}),this['listenTo'](_0x3d308f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x15fa52,'addComment',(_0x5cbcee,{threadId:_0x489b3e,isFromAdapter:_0x37b79f})=>{if(_0x37b79f||!_0x1208ce['hasSuggestion'](_0x489b3e))return;const _0x46d094=_0x1208ce['getSuggestion'](_0x489b3e);this['_suggestionToController']['get'](_0x46d094)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x33d5fd=this['editor']['plugins']['get']('Annotations'),_0x106050=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34d0bd=Array['from'](_0x33d5fd['activeAnnotations'],_0x331e69=>_0x331e69['innerView'])['filter'](_0x3da702=>this['_viewToController']['has'](_0x3da702)),_0x54cafa=[];for(const _0x56649a of _0x34d0bd){const _0x1e67d4=this['_viewToController']['get'](_0x56649a)['model']['getAllAdjacentSuggestions']();_0x54cafa['push'](..._0x1e67d4['reduce']((_0x510006,_0xcba1cc)=>[..._0x510006,..._0xcba1cc['getMarkerNames']()],[]));}_0x106050['activeMarkers']=_0x54cafa;}['_addUIComponentsToFactory'](){const _0x35c791=this['editor'],_0x3a1e07=_0x35c791['locale'],_0x30dd84=o(_0x3a1e07,'Track\x20changes'),_0x319a6f=new Wt([{'type':'switchbutton','model':new _0x21730f({'withText':!0x0,'isToggleable':!0x0,'label':_0x30dd84,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x21730f({'withText':!0x0,'label':o(_0x3a1e07,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x21730f({'withText':!0x0,'label':o(_0x3a1e07,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x21730f({'withText':!0x0,'label':o(_0x3a1e07,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x21730f({'withText':!0x0,'label':o(_0x3a1e07,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2d776d of _0x319a6f)if(me(_0x2d776d)){const _0x56ef0f=_0x35c791['commands']['get'](_0x2d776d['model']['commandName']);_0x2d776d['model']['bind']('isOn','isEnabled')['to'](_0x56ef0f,'value','isEnabled');}_0x35c791['ui']['componentFactory']['add']('trackChanges',_0x4928d4=>this['_createToolbarButton'](_0x4928d4,_0x319a6f,_0x30dd84)),_0x35c791['ui']['componentFactory']['add']('menuBar:trackChanges',_0x166646=>this['_createMenuBarMenu'](_0x166646,_0x319a6f,_0x30dd84));}['_createToolbarButton'](_0x26c57b,_0x29c49e,_0x4b7222){const _0x48a012=Qt(_0x26c57b,_0xa80728),_0x556a66=this['editor']['commands']['get']('trackChanges');_0x48a012['buttonView']['set']({'tooltip':_0x4b7222,'label':_0x4b7222,'icon':he}),_0x48a012['buttonView']['bind']('isOn')['to'](_0x556a66,'value'),_0x48a012['buttonView']['on']('execute',()=>{_0x556a66['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x48a012,_0x29c49e,{'role':'menu'});const _0x127917=[];for(const _0x49ff21 of _0x29c49e)me(_0x49ff21)&&_0x127917['push'](this['editor']['commands']['get'](_0x49ff21['model']['commandName']));const _0x1ef8eb=_0x48a012['buttonView'];return _0x1ef8eb['actionView']['unbind']('isEnabled'),_0x1ef8eb['arrowView']['unbind']('isEnabled'),_0x1ef8eb['actionView']['bind']('isEnabled')['to'](_0x556a66,'isEnabled'),_0x1ef8eb['arrowView']['bind']('isEnabled')['toMany'](_0x127917,'isEnabled',(..._0x392a4c)=>_0x392a4c['some'](_0x2dcf28=>_0x2dcf28)),_0x48a012['on']('execute',_0x1751eb=>{this['editor']['execute'](_0x1751eb['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x48a012;}['_createMenuBarMenu'](_0x5e3e5a,_0xaa5c04,_0x4ac0a3){const _0x29a6e3=new Yt(_0x5e3e5a),_0x360888=this['editor']['commands']['get']('trackChanges');_0x29a6e3['buttonView']['set']({'label':_0x4ac0a3,'icon':he});const _0x55442f=new Zt(_0x5e3e5a);for(const _0xb92d25 of _0xaa5c04){if('separator'==_0xb92d25['type']){_0x55442f['items']['add'](new Xt(_0x5e3e5a));continue;}const _0x334978=new te(_0x5e3e5a,_0x29a6e3),_0xea0336=new _0x5180ba(_0x5e3e5a),_0x1a80d4=_0xb92d25['model'];_0xea0336['bind'](...Object['keys'](_0x1a80d4))['to'](_0x1a80d4),_0xea0336['delegate']('execute')['to'](_0x29a6e3),_0xea0336['on']('execute',()=>{this['editor']['execute'](_0x1a80d4['commandName']),this['editor']['editing']['view']['focus']();}),_0x334978['children']['add'](_0xea0336),_0x55442f['items']['add'](_0x334978);}return _0x29a6e3['bind']('isEnabled')['to'](_0x360888,'isEnabled'),_0x29a6e3['panelView']['children']['add'](_0x55442f),_0x29a6e3;}['_initializeController'](_0x2ec543){const _0x414e37=this['editor'],_0x20f846=_0x414e37['config'],_0x3cdb73=_0x414e37['plugins']['get']('Annotations'),_0x4b4eb5=_0x414e37['plugins']['get']('CommentsRepository'),_0x103282=_0x414e37['plugins']['get']('EditorAnnotations'),_0x47c430=_0x414e37['plugins']['get'](_0x53b94d)['me'],_0x41515a=_0x20f846['get']('trackChanges')['SuggestionThreadView'],_0x29d753=_0x20f846['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x480a9e,CommentThreadInputView:_0x2f242b}=_0x414e37['plugins']['get']('CommentsUI');let _0x2d883c,_0x5e05d8,_0x47e01c;this['_annotationViews']['has'](_0x2ec543['id'])?(_0x5e05d8=this['_annotationViews']['get'](_0x2ec543['id']),_0x2d883c=_0x5e05d8['mainView']):(_0x2d883c=new _0x41515a(_0x414e37['locale'],_0x2ec543,_0x47c430,{'disableComments':this['_disableComments'],'editorConfig':_0x20f846['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x20f846['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x20f846['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x20f846['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5c98ba(_0x20f846['get']('locale')),'CommentView':_0x20f846['get']('comments')['CommentView'],'CommentsListView':_0x480a9e,'CommentThreadInputView':_0x2f242b,'SuggestionView':_0x29d753}),_0x2d883c['suggestionView']['acceptButton']['on']('execute',()=>{_0x414e37['editing']['view']['focus']();}),_0x2d883c['suggestionView']['discardButton']['on']('execute',()=>{_0x414e37['editing']['view']['focus']();}),_0x5e05d8=_0x3cdb73['createAnnotationView'](this['editor']['locale'],_0x2d883c),_0x5e05d8['bind']('isDirty')['to'](_0x2d883c,'isDirty'),_0x5e05d8['bind']('length')['to'](_0x2d883c),_0x5e05d8['bind']('type')['to'](_0x2d883c,'type',_0xaac687=>'suggestion-'+_0xaac687),_0x2d883c['on']('escape',()=>{_0x47e01c['fire']('escape');}),this['_annotationViews']['set'](_0x2ec543['id'],_0x5e05d8));const _0x35f5f5=_0x4b4eb5['createCommentThreadController'](_0x2ec543['commentThread'],_0x2d883c),_0x5f0a7f=new ae(_0x414e37,_0x2ec543,_0x2d883c,_0x35f5f5),_0x3e881f=_0x2ec543['getAllAdjacentSuggestions']()['filter'](_0x1ba73a=>_0x1ba73a['isInContent']);_0x2d883c['descriptionParts']=_0x414e37['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3e881f),this['_suggestionToController']['set'](_0x2ec543,_0x5f0a7f),this['_viewToController']['set'](_0x2d883c,_0x5f0a7f),_0x47e01c=_0x3cdb73['createAnnotation']({'view':_0x5e05d8,'target':()=>{const _0x1c098e=[],_0x29dc38=_0x2ec543['getAllAdjacentSuggestions']()['filter'](_0x184a98=>_0x184a98['isInContent']);for(const _0x106eea of _0x29dc38)_0x1c098e['push'](..._0x106eea['getMarkers']());return _0x36ddf0(_0x414e37['editing'],_0x1c098e);},'type':()=>'suggestion-'+_0x5f0a7f['view']['type']}),_0x4b4eb5['_bindAnnotationToEditors'](_0x2d883c,_0x47e01c),_0x3cdb73['add'](_0x47e01c),_0x103282['registerAnnotation'](_0x47e01c);}['_destroyController'](_0x8a32e3){const _0x1d409e=this['editor']['plugins']['get']('CommentsRepository'),_0x572d00=this['editor']['plugins']['get']('Annotations'),_0x403962=this['_suggestionToController']['get'](_0x8a32e3),_0x3af2bb=_0x403962['view'],_0x27f9d7=_0x572d00['getByInnerView'](_0x3af2bb);_0x1d409e['_unbindEditors'](_0x3af2bb),_0x27f9d7&&_0x572d00['remove'](_0x27f9d7),this['_suggestionToController']['delete'](_0x8a32e3),this['_viewToController']['delete'](_0x3af2bb),_0x403962['destroy']();}['_updateController'](_0x1ea25b){if(!_0x1ea25b['isInContent']||!this['_suggestionToController']['has'](_0x1ea25b))return;const _0x5a3488=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3dbc20=this['_suggestionToController']['get'](_0x1ea25b),_0x356625=_0x1ea25b['getAllAdjacentSuggestions']();_0x3dbc20['view']['descriptionParts']=_0x5a3488['descriptionFactory']['getDescriptions'](_0x356625);}['destroy'](){for(const _0x4b2ad6 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4b2ad6);for(const _0x4b3cd6 of this['_annotationViews']['values']())_0x4b3cd6['mainView']['destroy']();super['destroy']();}}function me(_0x191bcf){return'model'in _0x191bcf;}class k extends _0x26a770{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x20c6b3){this['editor']['plugins']['get'](p)['adapter']=_0x20c6b3;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4dc356){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4dc356);}['getSuggestions']({skipNotAttached:_0x1117aa=!0x1,toJSON:_0xe6626d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1117aa,'toJSON':_0xe6626d});}['getSuggestion'](_0x35d467){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x35d467);}}const T=['Pagination'];class P extends _0x26a770{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x157d05=this['editor'];if(_0x157d05['config']['define']('trackChangesData.editorCreator',_0x39092c=>{const _0xc52b11=_0x157d05['model']['document']['getRootNames']()['reduce']((_0x58fb4e,_0x5c71f4)=>(_0x58fb4e[_0x5c71f4]='',_0x58fb4e),{});return _0x157d05['constructor']['create'](_0xc52b11,_0x39092c);}),'function'!=typeof _0x157d05['config']['get']('trackChangesData')['editorCreator'])throw new _0x13c5a0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x308a3a){return N(this['editor'],!0x0,_0x308a3a);}['getDataWithDiscardedSuggestions'](_0x122e58){return N(this['editor'],!0x1,_0x122e58);}}class D extends _0x26a770{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x176720){super(_0x176720),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x2dad7d){return void 0x0!==_0x2dad7d['getRootsAttributes'];}async function N(_0x4fe8f0,_0x471ee5,_0x91b890){const _0x59398e=_0xeb5872(_0x4fe8f0,T);_0x59398e['plugins']['push'](p,D),_0x59398e['rootsAttributes']=v(_0x4fe8f0)?_0x4fe8f0['getRootsAttributes']():void 0x0;const _0x1c3b98=document['createDocumentFragment'](),_0x4fc9ae=_0x4fe8f0['config']['get']('trackChangesData')['editorCreator'],_0x194b74=await _0x4fc9ae(_0x59398e,()=>function(_0x359ed4){const _0x478ed3=document['createElement']('div');return _0x359ed4['appendChild'](_0x478ed3),_0x478ed3;}(_0x1c3b98));!function(_0x5f3a6f,_0xbcdea8){const _0x23e654=_0x5f3a6f['model']['document']['getRootNames']()['reduce']((_0x59f461,_0x31a531)=>(_0x59f461[_0x31a531]=_0x5f3a6f['data']['get']({'rootName':_0x31a531}),_0x59f461),{}),_0x28db64=_0x5f3a6f['plugins']['get']('Users')['users']['map'](_0x5ea2fd=>({'id':_0x5ea2fd['id'],'name':_0x5ea2fd['name']})),_0x192147=_0x5f3a6f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x46aad4=_0x5f3a6f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x19427b=_0xbcdea8['plugins']['get']('Users'),_0x593355=_0xbcdea8['plugins']['get']('TrackChangesEditing'),_0x28a948=_0xbcdea8['plugins']['get']('CommentsRepository');for(const _0x12c3af of _0x28a948['getCommentThreads']())_0x12c3af['remove']();for(const _0x24f2c0 of _0x28db64)_0x19427b['getUser'](_0x24f2c0['id'])||_0x19427b['addUser'](_0x24f2c0);_0x19427b['me']||_0x19427b['useAnonymousUser']();for(const _0x16bdf5 of _0x46aad4)_0x28a948['addCommentThread'](_0x16bdf5);for(const _0x1791bb of _0x192147)_0x593355['addSuggestionData'](_0x1791bb);_0xbcdea8['data']['set'](_0x23e654);}(_0x4fe8f0,_0x194b74),_0x194b74['execute'](_0x471ee5?'acceptAllSuggestions':'discardAllSuggestions');const _0x301488=v(_0x194b74)?_0x194b74['getFullData'](_0x91b890):_0x194b74['data']['get'](_0x91b890);return await _0x194b74['destroy'](),_0x301488;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x1b5c48,PendingActions as _0x515800,icons as _0x317551}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3334e4,ObservableMixin as _0x408897,uid as _0x360b63,insertToPriorityArray as _0x539d7d,priorities as _0x5d48ef,logWarning as _0xf5dede,getEnvKeystrokeText as _0x77e078,FocusTracker as _0x1c26fd,KeystrokeHandler as _0x1a4f50,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4919ed,View as _0x567c19,ViewCollection as _0x1b1e9a,FocusCycler as _0x4fa8d6,ViewModel as _0x4982e6,createDropdown as Qt,SplitButtonView as _0x59d84c,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x9c15db}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x12f772,hashObject as _0x598d17,surroundingMarkersDetector as _0x292113,FOCUS_ANNOTATION_KEYSTROKE as _0x4c8217,AriaDescriptionView as _0x1f68dc,setupThreadKeyboardNavigation as _0x351f8e,trimHtml as _0x478927,UserView as _0x219be4,LateFocusButtonView as _0x155e90,getDateTimeFormatter as _0x44512e,getAllMarkersDomElementsSorted as _0x185986,sanitizeEditorConfig as _0x55cc03}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3c0424,LiveRange as _0x2ad496,LivePosition as _0x2c4486}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4f15b7,toWidget as _0x4e8939}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3432b2,set as _0x1c86ce,isEqual as _0x3db994,unset as _0xfd0b6b,omit as Tt}from'lodash-es';import{Delete as _0x2e60aa,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1b598f,ShiftEnter as _0x449e5b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x4cc8b2,_0x21db07){super(_0x4cc8b2),this['_enabledCommands']=_0x21db07,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 _0x1882de of this['editor']['commands']['commands']())_0x1882de['affectsData']&&!this['_enabledCommands']['has'](_0x1882de)&&_0x1882de['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3b3137 of this['editor']['commands']['commands']())_0x3b3137['affectsData']&&!this['_enabledCommands']['has'](_0x3b3137)&&_0x3b3137['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0xfa94e1,_0x27c250){super(_0xfa94e1),this['_suggestions']=_0x27c250,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3ddb38){const _0x46196c=this['_suggestions']['get'](_0x3ddb38);if(!_0x46196c)throw new _0x3334e4('track-changes-accept-suggestion-not-found',this);const _0x4ce8a7=_0x46196c['getRanges']();this['editor']['model']['canEditAt'](_0x4ce8a7)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x46196c);}}class R extends ts{['_suggestions'];constructor(_0x1fed8f,_0x1b306c){super(_0x1fed8f),this['_suggestions']=_0x1b306c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4b7e60){const _0x4e0079=this['_suggestions']['get'](_0x4b7e60);if(!_0x4e0079)throw new _0x3334e4('track-changes-discard-suggestion-not-found',this);const _0x59aa7d=_0x4e0079['getRanges']();this['editor']['model']['canEditAt'](_0x59aa7d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4e0079);}}function ls(_0xcbefd7,_0x51a3f0){let _0x501a6c='';return _0x501a6c+=_0xcbefd7['split']('*')['map']((_0x19c71c,_0x250d06)=>_0x250d06%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x19c71c)+'</span>':nn(_0x19c71c))['join'](''),_0x51a3f0&&(_0x501a6c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x51a3f0['value']+'\x22\x20title=\x22'+_0x51a3f0['title']+'\x22></span>'),_0x501a6c;}function nn(_0x51796d){const _0xf5d37a=document['createElement']('span');return _0xf5d37a['innerText']=_0x51796d,_0xf5d37a['innerHTML'];}function ss(_0x4aed9e){return _0x4aed9e['sort']((_0x22668a,_0x50af7f)=>'deletion'==_0x22668a['type']&&'deletion'!=_0x50af7f['type']?-0x1:'deletion'!=_0x22668a['type']&&'deletion'==_0x50af7f['type']?0x1:0x0);}function to(_0x42b666,_0x2ef4d5){let _0x62451e,_0x41fc00=0x0;const _0x5825fc=[],_0x108d7e=_0x2ef4d5['schema'];for(;_0x41fc00<_0x42b666['length'];){const _0x1a3ddd=_0x42b666[_0x41fc00],_0x44ab87=_0x42b666[_0x41fc00+0x1];_0x62451e||(_0x62451e=_0x2ef4d5['createPositionBefore'](_0x1a3ddd)),on(_0x2ef4d5,_0x1a3ddd,_0x44ab87)||(_0x5825fc['push'](_0x2ef4d5['createRange'](_0x62451e,_0x108d7e['isObject'](_0x1a3ddd)?_0x2ef4d5['createPositionAfter'](_0x1a3ddd):_0x2ef4d5['createPositionAt'](_0x1a3ddd,'end'))),_0x62451e=null),_0x41fc00++;}return _0x5825fc;}function on(_0x555eef,_0x11a5d8,_0x1ade73){if(!_0x1ade73)return!0x1;const _0x586d59=_0x555eef['createPositionAfter'](_0x11a5d8),_0x56d30c=_0x555eef['createPositionBefore'](_0x1ade73);return _0x586d59['isTouching'](_0x56d30c);}function rs(_0x516183,_0x2dbc59,_0x502966){for(;_0x502966['length'];){const _0xa2dd2a=_0x502966['splice'](0x0,0x64);_0x516183['change'](()=>{for(const _0x3c2648 of _0xa2dd2a)_0x3c2648['isInContent']&&_0x2dbc59['execute'](_0x3c2648['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x100588,_0x5122d4,_0x3da122){super(_0x100588),this['_command']=_0x5122d4,this['_suggestions']=_0x3da122,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xf5eb15=Array['from'](this['_suggestions']['values']())['some'](_0x2d9ffa=>_0x2d9ffa['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xf5eb15;}['execute'](){const _0x34772a=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3e623d of _0x34772a){const _0x264174=_0x3e623d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x264174))return;}rs(this['editor']['model'],this['_command'],_0x34772a);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4dc68c,_0xe13863,_0x3b191d){super(_0x4dc68c),this['_command']=_0xe13863,this['_suggestions']=_0x3b191d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1fa58c=this['editor']['model']['document']['selection'],_0x51f6f6=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5db3f0,_0x58695e){const _0x5d8e47=Array['from'](_0x5db3f0['getRanges']()),_0x52e5c4=new Set();for(const _0x48f6a6 of _0x58695e)if(_0x48f6a6['isInContent']){for(const _0x24023a of _0x5d8e47)for(const _0x584a79 of _0x48f6a6['getRanges']())(_0x24023a['isIntersecting'](_0x584a79)||_0x5db3f0['isCollapsed']&&!_0x48f6a6['isMultiRange']&&_0x48f6a6['next']&&_0x584a79['end']['isTouching'](_0x24023a['start']))&&_0x52e5c4['add'](_0x48f6a6);}return _0x52e5c4;}(_0x1fa58c,_0x51f6f6),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5e2e35=ss(Array['from'](this['_selectedSuggestions']));for(const _0x50e2e3 of _0x5e2e35){const _0xd8703a=_0x50e2e3['getRanges']();if(!this['editor']['model']['canEditAt'](_0xd8703a))return;}rs(this['editor']['model'],this['_command'],_0x5e2e35);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x408897(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5ad557,_0x2ee264){super(),this['id']=_0x2ee264['id'],this['type']=_0x2ee264['type'],this['subType']=_0x2ee264['subType']||null,this['author']=_0x2ee264['author'],this['creator']=_0x2ee264['creator']||_0x2ee264['author'],this['isExternal']=Boolean(_0x2ee264['attributes']&&_0x2ee264['attributes']['@external']),this['data']=null,this['_model']=_0x5ad557,this['_onAccept']=_0x2ee264['onAccept'],this['_onDiscard']=_0x2ee264['onDiscard'],this['_onAttributesChange']=_0x2ee264['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2ee264['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 _0x3743c1=this;for(;_0x3743c1['previous'];)_0x3743c1=_0x3743c1['previous'];return _0x3743c1;}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'](_0x7e1caf){this['_markerNames']['add'](_0x7e1caf);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xc05450=>this['_model']['markers']['get'](_0xc05450))['filter'](_0x49748b=>_0x49748b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1a4ec3=>{for(const _0x1b1715 of this['getMarkers']())_0x1a4ec3['removeMarker'](_0x1b1715);}),this['_markerNames']['clear']();}['removeMarker'](_0x31a0f6){this['_model']['change'](_0x2873d1=>{_0x2873d1['removeMarker'](_0x31a0f6);}),this['_markerNames']['delete'](_0x31a0f6);}['addRange'](_0x134868){const _0x246198='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x246198),this['_model']['change'](_0x16c600=>{_0x16c600['addMarker'](_0x246198,{'range':_0x134868,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x41cb5a){for(const _0x326245 of this['getRanges']())if(_0x326245['isIntersecting'](_0x41cb5a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5490b0=>_0x5490b0['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xd07b4d,_0x186c0f)=>[..._0xd07b4d,..._0x186c0f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1ee4ab=this['getRanges']();if(0x1!=_0x1ee4ab['length'])return null;const _0x4e133f=_0x1ee4ab[0x0],_0x2ba898=_0x4e133f['start']['nodeAfter'],_0xde6107=_0x4e133f['end']['nodeBefore'];return _0x2ba898 instanceof _0x3c0424?_0x2ba898!=_0xde6107?null:_0x2ba898: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 _0x496585=[];let _0x237ead=this['head'];for(;_0x237ead;)_0x496585['push'](_0x237ead),_0x237ead=_0x237ead['next'];return _0x496585;}['setAttribute'](_0x191f21,_0x9df1fc){const _0x26f05b=_0x3432b2(this['attributes']);_0x1c86ce(_0x26f05b,_0x191f21,_0x9df1fc),_0x3db994(_0x26f05b,this['attributes'])||(this['attributes']=_0x26f05b,this['_onAttributesChange'](_0x26f05b));}['removeAttribute'](_0x21aefe){const _0xe62f20=_0x3432b2(this['attributes']);_0xfd0b6b(_0xe62f20,_0x21aefe),_0x3db994(_0xe62f20,this['attributes'])||(this['attributes']=_0xe62f20,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 _0x360b63()['substr'](0x1,0x5);}}function o(_0x2f449b,_0x32d608,_0x71389a){const t=_0x2f449b['t'];switch(_0x32d608){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x71389a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x71389a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x71389a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x71389a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x71389a);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',_0x71389a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x71389a);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x71389a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x71389a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x71389a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x71389a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x71389a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x71389a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x71389a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x71389a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x71389a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x71389a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x71389a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x71389a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x71389a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x71389a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x71389a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x71389a);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'},_0x71389a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x71389a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x71389a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x71389a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x71389a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x71389a);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'},_0x71389a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x71389a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x71389a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x71389a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x71389a);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x71389a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x71389a);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'},_0x71389a);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x71389a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x71389a);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'},_0x71389a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x71389a);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'},_0x71389a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x71389a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x71389a);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'},_0x71389a);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x71389a);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x71389a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x71389a);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'},_0x71389a);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'},_0x71389a);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'},_0x71389a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x32d608;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5db89d,_0x4ef601){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5db89d,this['_locale']=_0x4ef601;}['getDescriptions'](_0x53780d){const _0x22f868=[],_0x5b2ec2=new Set(),_0x554d78=new Set();for(let _0x35710e=0x0;_0x35710e<_0x53780d['length'];_0x35710e++){const _0x163b3a=_0x53780d[_0x35710e];if(!_0x163b3a['isInContent'])continue;const _0x1ddb01=this['_handleCustomCallbackDescription'](_0x163b3a);if(_0x1ddb01){if(null!=_0x163b3a['subType']){if(_0x5b2ec2['has'](_0x163b3a['subType']))continue;_0x5b2ec2['add'](_0x163b3a['subType']);}_0x22f868['push'](_0x1ddb01);}else{if('attribute'!=_0x163b3a['type'])'insertion'!=_0x163b3a['type']&&'deletion'!=_0x163b3a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x22f868,_0x163b3a,_0x53780d[_0x35710e+0x1]);else{const _0x25e6c2=_0x163b3a['data']['key'];if(_0x554d78['has'](_0x25e6c2))continue;_0x554d78['add'](_0x163b3a['data']['key']),_0x25e6c2==m?this['_handleRenameSuggestionDescription'](_0x22f868,_0x163b3a):this['_handleAttributeSuggestionDescription'](_0x22f868,_0x163b3a);}}}return this['_resolveDescriptionItems'](_0x22f868);}['registerDescriptionCallback'](_0x8f799c){this['_customCallbacks']['push'](_0x8f799c);}['registerElementLabel'](_0x2cd573,_0xd3fbea,_0x1a0ebc=_0x5d48ef['normal']){'function'==typeof _0x2cd573?_0x539d7d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2cd573,'label':_0xd3fbea,'priority':_0x1a0ebc}):this['_itemLabels']['set'](_0x2cd573,_0xd3fbea);}['registerAttributeLabel'](_0x5b2c62,_0x286e28){this['_attributeLabels']['set'](_0x5b2c62,_0x286e28);}['getItemLabel'](_0x267aec,_0x4b584a=0x1){let _0x42d1f6;for(const _0x23d873 of this['_itemLabelsCallbacks'])if(_0x23d873['matchingCallback'](_0x267aec)){_0x42d1f6=_0x23d873['label'];break;}return _0x42d1f6||(_0x42d1f6=this['_itemLabels']['get'](_0x267aec['name'])),_0x42d1f6?_0x42d1f6(_0x4b584a):0x1!==_0x4b584a?_0x4b584a+'\x20'+_0x267aec['name']+'s':''+_0x267aec['name'];}['_addDescriptionItems'](_0x4113e2,_0x1d70d6){const _0x4a37d2=_0x1d70d6['getFirstRange']()['getWalker'](),_0x4c98c0='insertion'==_0x1d70d6['type']?'add':'remove';for(const _0x1c83c5 of _0x4a37d2){const _0x1c759d=_0x1c83c5['item'],_0x5d1e64=_0x4113e2[_0x4113e2['length']-0x1];if(_0x1c759d['is']('$textProxy'))_0x5d1e64&&_0x5d1e64['type']['indexOf']('Container')>-0x1&&_0x4113e2['pop'](),_0x5d1e64&&'text'==_0x5d1e64['type']?_0x5d1e64[_0x4c98c0]+=_0x1c759d['data']:_0x4113e2['push']({'type':'text','add':'add'==_0x4c98c0?_0x1c759d['data']:'','remove':'remove'==_0x4c98c0?_0x1c759d['data']:''});else{if(this['_schema']['isObject'](_0x1c759d)){const _0x9505e4=_0x1c759d;if(_0x5d1e64&&_0x5d1e64['type']['indexOf']('Container')>-0x1&&_0x4113e2['pop'](),'elementEnd'==_0x1c83c5['type'])continue;_0x5d1e64&&_0x5d1e64['type']==_0x4c98c0+'Object'&&_0x5d1e64['element']['name']==_0x9505e4['name']?_0x5d1e64['quantity']++:_0x4113e2['push']({'type':_0x4c98c0+'Object','element':_0x9505e4,'quantity':0x1}),_0x4a37d2['skip'](_0x4673c2=>!('elementEnd'==_0x4673c2['type']&&_0x4673c2['item']==_0x1c759d));}else{if(this['_schema']['checkChild'](_0x1c759d,'$text')||_0x1c759d['is']('element','softBreak')){const _0x2a8f73=_0x1c759d;if('add'==_0x4c98c0&&'elementStart'==_0x1c83c5['type']||'remove'==_0x4c98c0&&'elementEnd'==_0x1c83c5['type'])continue;if(_0x5d1e64&&-0x1==_0x5d1e64['type']['indexOf']('Container')){'text'==_0x5d1e64['type']&&(_0x5d1e64[_0x4c98c0]+='\x0a');continue;}let _0x4ab51f;if(_0x4ab51f='add'==_0x4c98c0?_0x2a8f73['nextSibling']&&!this['_schema']['isObject'](_0x2a8f73['nextSibling'])?_0x2a8f73['nextSibling']:null:_0x2a8f73['previousSibling']&&!this['_schema']['isObject'](_0x2a8f73['previousSibling'])?_0x2a8f73['previousSibling']:null,_0x2a8f73['isEmpty']||_0x4ab51f&&_0x4ab51f['isEmpty']){const _0x31ae6d=_0x4ab51f&&_0x4ab51f['isEmpty']?_0x4ab51f:_0x2a8f73;_0x5d1e64&&_0x5d1e64['type']==_0x4c98c0+'EmptyContainer'&&_0x5d1e64['element']['name']==_0x31ae6d['name']?_0x5d1e64['quantity']++:_0x4113e2['push']({'type':_0x4c98c0+'EmptyContainer','element':_0x31ae6d,'quantity':0x1});}else _0x4113e2['push']({'type':_0x4c98c0+'Container','element':_0x2a8f73});}}}}}['_resolveDescriptionItems'](_0x47f929){const _0x1350da=this['_locale'],_0xc0ce81=[],_0x2a0980=[],_0x2d5a41=[];for(const _0x152cf5 of _0x47f929)switch(_0x152cf5['type']){case'text':if(_0x152cf5['add']=_0x152cf5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x152cf5['remove']=_0x152cf5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x152cf5['add']&&''!=_0x152cf5['remove']){_0xc0ce81['push']({'type':'replace','content':o(_0x1350da,'REPLACE_TEXT',['\x22'+_0x152cf5['remove']+'\x22','\x22'+_0x152cf5['add']+'\x22'])});continue;}if(null!=_0x152cf5['add']['match'](/^ +$/)){_0xc0ce81['push']({'type':'insertion','content':o(_0x1350da,'*Insert:*\x20%0',o(_0x1350da,'ELEMENT_SPACE',_0x152cf5['add']['length']))});continue;}if(null!=_0x152cf5['remove']['match'](/^ +$/)){_0xc0ce81['push']({'type':'deletion','content':o(_0x1350da,'*Remove:*\x20%0',o(_0x1350da,'ELEMENT_SPACE',_0x152cf5['remove']['length']))});continue;}if(''!=_0x152cf5['add']){_0xc0ce81['push']({'type':'insertion','content':o(_0x1350da,'*Insert:*\x20%0','\x22'+_0x152cf5['add']+'\x22')});continue;}_0xc0ce81['push']({'type':'deletion','content':o(_0x1350da,'*Remove:*\x20%0','\x22'+_0x152cf5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xc0ce81['push']({'type':'insertion','content':o(_0x1350da,'*Insert:*\x20%0',this['getItemLabel'](_0x152cf5['element'],_0x152cf5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xc0ce81['push']({'type':'deletion','content':o(_0x1350da,'*Remove:*\x20%0',this['getItemLabel'](_0x152cf5['element'],_0x152cf5['quantity']))});continue;case'addContainer':_0xc0ce81['push']({'type':'insertion','content':o(_0x1350da,'*Split:*\x20%0',this['getItemLabel'](_0x152cf5['element'],_0x152cf5['quantity']))});continue;case'removeContainer':_0xc0ce81['push']({'type':'deletion','content':o(_0x1350da,'*Merge:*\x20%0',this['getItemLabel'](_0x152cf5['element'],_0x152cf5['quantity']))});continue;case'addFormat':_0x2a0980['push'](_0x152cf5['key']);continue;case'removeFormat':_0x2d5a41['push'](_0x152cf5['key']);continue;default:_0xc0ce81['push'](_0x152cf5);}if(_0x2a0980['length']){const _0x34d4f8=_0x2a0980['map'](_0x14f659=>this['_attributeLabels']['has'](_0x14f659)?this['_attributeLabels']['get'](_0x14f659):_0x14f659)['join'](',\x20');_0xc0ce81['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x34d4f8)});}if(_0x2d5a41['length']){const _0x457841=_0x2d5a41['map'](_0x33e950=>this['_attributeLabels']['has'](_0x33e950)?this['_attributeLabels']['get'](_0x33e950):_0x33e950)['join'](',\x20');_0xc0ce81['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x457841)});}return _0xc0ce81;}['_handleCustomCallbackDescription'](_0x2707ab){for(const _0x763195 of this['_customCallbacks']){const _0x1df5d3=_0x763195(_0x2707ab);if(_0x1df5d3&&'type'in _0x1df5d3)return _0x1df5d3;}}['_handleAttributeSuggestionDescription'](_0x492e53,_0x496ddf){const _0x5ee2b9=_0x496ddf['data'],_0x3b0615=void 0x0===_0x5ee2b9['newValue']?'removeFormat':'addFormat';_0x492e53['push']({'type':_0x3b0615,'key':_0x5ee2b9['key']});}['_handleRenameSuggestionDescription'](_0x32225b,_0x427ab2){_0x32225b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x427ab2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x52ae6b,_0x3266a7,_0x3f482c){if(this['_addDescriptionItems'](_0x52ae6b,_0x3266a7),_0x3f482c&&_0x3f482c['getFirstRange']()&&!_0x3266a7['getFirstRange']()['end']['isEqual'](_0x3f482c['getFirstRange']()['start'])){const _0x30bb32=_0x52ae6b[_0x52ae6b['length']-0x1],_0x22038e='insertion'==_0x3266a7['type']?'add':'remove';_0x30bb32&&'text'==_0x30bb32['type']&&(_0x30bb32[_0x22038e]+='\x0a');}}}class V extends _0x1b5c48{['afterInit'](){const _0x2579f3=this['editor'],_0x284d4b=_0x2579f3['plugins']['get']('TrackChangesEditing');_0x2579f3['commands']['get']('showAIAssistant')&&_0x284d4b['enableCommand']('showAIAssistant');}}class U extends _0x1b5c48{['afterInit'](){const _0x1a0a69=this['editor'],_0x22be8f=_0x1a0a69['locale'];if(!_0x1a0a69['plugins']['has']('AlignmentEditing'))return;const _0xf0d0dc=_0x1a0a69['plugins']['get']('TrackChangesEditing');_0xf0d0dc['enableDefaultAttributesIntegration']('alignment'),_0xf0d0dc['registerBlockAttribute']('alignment'),_0xf0d0dc['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x22be8f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc0e738=this['editor'],_0x371d09=_0xc0e738['locale'];_0xc0e738['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42fb5d=>{if('formatBlock'!=_0x42fb5d['type'])return;const {data:_0x11c79c}=_0x42fb5d;if(_0x11c79c&&'alignment'==_0x11c79c['commandName']){const _0x43518c=_0x11c79c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x371d09,'*Format:*\x20%0',function(_0x50f823){switch(_0x50f823){case'left':return o(_0x371d09,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x371d09,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x371d09,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x371d09,'FORMAT_JUSTIFY_TEXT');}}(_0x43518c))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x1b5c48{['afterInit'](){const _0x459bb0=this['editor'],_0xdebf4c=_0x459bb0['plugins']['get']('TrackChangesEditing'),_0x28b2d1=_0x459bb0['locale'];for(const _0x4e8c8b of ti){if(!_0x459bb0['plugins']['has'](_0x4e8c8b))continue;const _0x101cc0=_0x4e8c8b['slice'](0x0,-0x7)['toLowerCase'](),_0x44ff02='FORMAT_'+_0x101cc0['toUpperCase']();_0xdebf4c['enableDefaultAttributesIntegration'](_0x101cc0),_0xdebf4c['registerInlineAttribute'](_0x101cc0),_0xdebf4c['descriptionFactory']['registerAttributeLabel'](_0x101cc0,o(_0x28b2d1,_0x44ff02));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fb499=this['editor'],_0x574d89=_0x4fb499['locale'],_0x209f9f=_0x4fb499['plugins']['get']('TrackChangesEditing');function _0x442f62(_0x43df01,_0x18ed27){_0x209f9f['descriptionFactory']['registerDescriptionCallback'](_0x310cf2=>{if('formatInline'!=_0x310cf2['type'])return;const {data:_0x37e5fb}=_0x310cf2;return _0x37e5fb&&_0x37e5fb['commandName']===_0x43df01?_0x37e5fb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x574d89,'*Format:*\x20%0',_0x18ed27)}:{'type':'format','content':o(_0x574d89,'*Remove\x20format:*\x20%0',_0x18ed27)}:void 0x0;});}_0x442f62('bold',o(_0x574d89,'FORMAT_BOLD')),_0x442f62('italic',o(_0x574d89,'FORMAT_ITALIC')),_0x442f62('underline',o(_0x574d89,'FORMAT_UNDERLINE')),_0x442f62('code',o(_0x574d89,'FORMAT_CODE')),_0x442f62('strikethrough',o(_0x574d89,'FORMAT_STRIKETHROUGH')),_0x442f62('subscript',o(_0x574d89,'FORMAT_SUBSCRIPT')),_0x442f62('superscript',o(_0x574d89,'FORMAT_SUPERSCRIPT'));}}class F extends _0x1b5c48{['afterInit'](){const _0x8e8e25=this['editor'],_0x579943=_0x8e8e25['locale'];if(!_0x8e8e25['plugins']['has']('BlockQuoteEditing'))return;const _0x32f53b=_0x8e8e25['plugins']['get']('TrackChangesEditing'),_0x597056=this['editor']['commands']['get']('blockQuote');_0x32f53b['enableCommand']('blockQuote',(_0x499145,_0x33c69d={})=>{const _0x2575ba=this['editor']['model']['document']['selection'],_0x583258=_0x33c69d&&void 0x0!==_0x33c69d['forceValue']?_0x33c69d['forceValue']:!_0x597056['value'];let _0x1a550e=[];if(_0x583258){const _0x3d8d28=Array['from'](_0x2575ba['getSelectedBlocks']())['filter'](_0x30710a=>oo(_0x30710a)||function(_0x19f2ac,_0x1f7b28){const _0x4014ef=_0x1f7b28['checkChild'](_0x19f2ac['parent'],'blockQuote'),_0x4ce39d=_0x1f7b28['checkChild'](['$root','blockQuote'],_0x19f2ac);return _0x4014ef&&_0x4ce39d;}(_0x30710a,this['editor']['model']['schema']));_0x1a550e=to(_0x3d8d28,_0x8e8e25['model']);}else{const _0x596cde=Array['from'](_0x2575ba['getSelectedBlocks']())['filter'](_0x9d69f2=>oo(_0x9d69f2));_0x1a550e=to(_0x596cde,_0x8e8e25['model']);}_0x8e8e25['model']['change'](()=>{for(const _0x345802 of _0x1a550e)_0x32f53b['markBlockFormat'](_0x345802,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x583258}]});});}),_0x32f53b['descriptionFactory']['registerDescriptionCallback'](_0x51fcba=>{const {data:_0x12fceb}=_0x51fcba;if(_0x12fceb&&'blockQuote'==_0x12fceb['commandName']){const _0x3ec194=o(_0x579943,'ELEMENT_BLOCK_QUOTE');return _0x12fceb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x579943,'*Set\x20format:*\x20%0',_0x3ec194)}:{'type':'format','content':o(_0x579943,'*Remove\x20format:*\x20%0',_0x3ec194)};}});}}function oo(_0x3f8394){return'blockQuote'==_0x3f8394['parent']['name'];}class L extends _0x1b5c48{['afterInit'](){const _0x37726e=this['editor'];_0x37726e['plugins']['has']('CaseChange')&&(_0x37726e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x37726e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x37726e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x1b5c48{['afterInit'](){const _0x322550=this['editor'];_0x322550['commands']['get']('ckbox')&&_0x322550['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x1b5c48{['afterInit'](){const _0x3c0a4d=this['editor'];if(!_0x3c0a4d['plugins']['has']('CodeBlock'))return;const _0xdea83d=_0x3c0a4d['plugins']['get']('TrackChangesEditing'),_0x483796=_0x3c0a4d['locale'],_0x67c3e=_0x3c0a4d['config']['get']('codeBlock')['languages'],_0x57d55e=_0x3c0a4d['commands']['get']('codeBlock');_0xdea83d['enableCommand']('indentCodeBlock'),_0xdea83d['enableCommand']('outdentCodeBlock'),_0xdea83d['enableCommand']('codeBlock',(_0x50522f,_0x5ee08b={})=>{const _0x6e5b78=_0x3c0a4d['model'],_0x2a043f=_0x3c0a4d['model']['document']['selection'],_0xb29fa9=_0x5ee08b&&void 0x0!==_0x5ee08b['forceValue']?_0x5ee08b['forceValue']:!_0x57d55e['value'];let _0x2d5606;_0x5ee08b['language']||(_0x5ee08b['language']=_0x67c3e[0x0]['language']),_0x2d5606=_0xb29fa9?Array['from'](_0x2a043f['getSelectedBlocks']())['filter'](_0x1a195c=>eo(_0x1a195c)||function(_0xc71f0d,_0x357553){if(_0xc71f0d['is']('rootElement')||_0x357553['isLimit'](_0xc71f0d))return!0x1;return _0x357553['checkChild'](_0xc71f0d['parent'],'codeBlock');}(_0x1a195c,_0x6e5b78['schema'])):Array['from'](_0x2a043f['getSelectedBlocks']())['filter'](_0x5a4005=>eo(_0x5a4005));const _0x1bbcd1=to(_0x2d5606,_0x6e5b78);_0x6e5b78['change'](()=>{for(const _0x429fcb of _0x1bbcd1)_0xdea83d['markBlockFormat'](_0x429fcb,{'commandName':'codeBlock','commandParams':[{..._0x5ee08b,'forceValue':_0xb29fa9}],'formatGroupId':'blockName'});});}),(_0xdea83d['descriptionFactory']['registerElementLabel']('codeBlock',_0x1ae8be=>o(_0x483796,'ELEMENT_CODE_BLOCK',_0x1ae8be)),_0xdea83d['descriptionFactory']['registerDescriptionCallback'](_0x69e0aa=>{if('formatBlock'!=_0x69e0aa['type'])return;const _0x412581=_0x483796['t'],{data:_0x560d2a}=_0x69e0aa;if(!_0x560d2a||'codeBlock'!=_0x560d2a['commandName'])return;const _0x4663b4=_0x560d2a['commandParams'][0x0]['language'],_0x2f4244=_0x412581(_0x67c3e['find'](_0x28a082=>_0x28a082['language']===_0x4663b4)['label'])['toLowerCase']();return _0x560d2a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x483796,'*Set\x20format:*\x20%0',o(_0x483796,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2f4244+')')}:{'type':'format','content':o(_0x483796,'*Remove\x20format:*\x20%0',o(_0x483796,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3d688f){return'codeBlock'==_0x3d688f['name'];}class q extends _0x1b5c48{['afterInit'](){const _0x3e9319=this['editor'];if(!_0x3e9319['plugins']['has']('CommentsEditing'))return;_0x3e9319['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x190245,_0x92bf2e,_0x54f90a){const _0x4c1670=[];for(const _0x497ab7 of _0x92bf2e['getItems']())_0x497ab7['hasAttribute'](_0x190245)&&_0x4c1670['push'](_0x54f90a['createRangeOn'](_0x497ab7));return _0x4c1670;}function _e(_0x510e03,_0xd320cd,{showActiveMarker:_0x5184c7=!0x0}={}){const _0x2741ad=_0x510e03['plugins']['get']('TrackChangesEditing');return(_0xe3905e,_0x173228,_0x30b66c)=>{if(!_0x30b66c['consumable']['test'](_0x173228['markerRange'],_0xe3905e['name']))return;const _0x502f4d=_0x173228['markerRange']['getWalker'](),_0x1e29e0=_0x173228['markerRange']['start'],_0xe5eec6=_0x510e03['model']['schema'];let _0x51a51c=null,_0x54b2ca=null,_0x1a3018=!0x1,_0x1e2a10=!0x1;for(const _0x3acd01 of _0x502f4d){const _0x26e1f0=_0x3acd01['item'];_0x1a3018=_0x1a3018||_0xe5eec6['isContent'](_0x26e1f0);const _0xdfe5b4=_0x30b66c['mapper']['toViewElement'](_0x26e1f0);if(_0xdfe5b4&&_0xdfe5b4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3acd01['type']&&(_0xe5eec6['isBlock'](_0x26e1f0)&&!_0xe5eec6['isLimit'](_0x26e1f0)&&(_0x26e1f0['nextSibling']||_0x1e29e0['isAtEnd']?_0x51a51c&&_0x51a51c['parent']==_0x26e1f0||(_0x51a51c=_0x26e1f0,_0x1eaad0(_0x3acd01['previousPosition']),_0x1e2a10=!0x0):_0x54b2ca=_0x54b2ca||_0x3acd01['previousPosition']));}function _0x1eaad0(_0x42d3f1){const {authorId:_0x12488c}=_0x2741ad['_splitMarkerName'](_0x173228['markerName']),_0x5226b3=_0x30b66c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xd320cd,'data-author-id':_0x12488c}),_0x4cedc9=_0x30b66c['mapper']['toViewPosition'](_0x42d3f1);_0x5184c7&&_0x2741ad['activeMarkers']['includes'](_0x173228['markerName'])&&_0x30b66c['writer']['addClass']('ck-suggestion-marker--active',_0x5226b3),_0x30b66c['writer']['insert'](_0x4cedc9,_0x5226b3),_0x30b66c['mapper']['bindElementToMarker'](_0x5226b3,_0x173228['markerName']);}_0x1a3018||_0x1e2a10||!_0x54b2ca||_0x1eaad0(_0x54b2ca);};}class z extends _0x1b5c48{static get['requires'](){return[_0x2e60aa];}['init'](){const _0x2e0fb3=this['editor'],_0x230a80=_0x2e0fb3['plugins']['get']('TrackChangesEditing');_0x230a80['enableCommand']('delete');const _0xc0137e=_0x2e0fb3['commands']['get']('deleteForward');_0x230a80['enableCommand']('deleteForward',(_0x311427,_0x195b8f={})=>{const _0x3ecc71=_0x2e0fb3['model']['createSelection'](_0x2e0fb3['model']['document']['selection']);_0x3ecc71['isCollapsed']&&_0x2e0fb3['model']['modifySelection'](_0x3ecc71,{'direction':'forward','unit':_0x195b8f['unit']});const _0x36bd51=_0x3ecc71['getFirstRange'](),_0x17d515=_0x2ad496['fromRange'](_0x36bd51);let _0x52e4b4;_0x311427(_0x195b8f),_0x52e4b4='$graveyard'==_0x17d515['root']['rootName']?_0x2e0fb3['model']['createRange'](_0x36bd51['start']):_0x2e0fb3['model']['createRange'](_0x17d515['start'],_0x17d515['end']),_0x17d515['detach'](),_0x2e0fb3['model']['enqueueChange'](_0xc0137e['buffer']['batch'],_0x15c7d9=>{_0xc0137e['buffer']['lock'](),_0x15c7d9['setSelection'](_0x15c7d9['createRange'](_0x52e4b4['end'])),_0xc0137e['buffer']['unlock']();});}),_0x2e0fb3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2e0fb3,'merge'),{'priority':'high'}),_0x2e0fb3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2dd19b,_0x46e392,_0x6d55ba)=>{_0x6d55ba['options']['showSuggestionHighlights']&&_e(_0x2e0fb3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2dd19b,_0x46e392,_0x6d55ba);},{'priority':'high'}),_0x2e0fb3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x189c46,_0x4606cc,_0x5d851e)=>{const _0x23de0a=_0x5d851e['mapper']['markerNameToElements'](_0x4606cc['markerName']);if(_0x23de0a){for(const _0x1a32cc of _0x23de0a)_0x1a32cc['is']('uiElement')&&(_0x5d851e['mapper']['unbindElementFromMarkerName'](_0x1a32cc,_0x4606cc['markerName']),_0x5d851e['writer']['remove'](_0x1a32cc));}},{'priority':'high'});}}class K extends _0x1b5c48{['afterInit'](){const _0x248140=this['editor'];if(!_0x248140['plugins']['has']('ListEditing'))return;const _0x4d8a8b=_0x248140['locale'],_0x43e9de=_0x248140['plugins']['get']('TrackChangesEditing'),_0x3bf838=_0x248140['plugins']['has']('TodoListEditing'),_0x684d39=!!_0x248140['config']['get']('list.multiBlock');function _0x35df74(_0x156d0b){return{'type':'format','content':''+o(_0x4d8a8b,'*Set\x20format:*\x20%0',_0x156d0b)};}function _0x3d5b0b(_0x4a5a04){return{'type':'format','content':''+o(_0x4d8a8b,'*Remove\x20format:*\x20%0',_0x4a5a04)};}_0x43e9de['enableDefaultAttributesIntegration']('numberedList'),_0x43e9de['enableDefaultAttributesIntegration']('bulletedList'),_0x43e9de['enableDefaultAttributesIntegration']('customNumberedList'),_0x43e9de['enableDefaultAttributesIntegration']('customBulletedList'),_0x43e9de['enableDefaultAttributesIntegration']('indentList'),_0x43e9de['enableDefaultAttributesIntegration']('outdentList'),_0x43e9de['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x43e9de['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x43e9de['registerBlockAttribute']('listItemId'),_0x43e9de['registerBlockAttribute']('listType'),_0x43e9de['registerBlockAttribute']('listIndent'),_0x684d39&&(_0x43e9de['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x43e9de['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3bf838&&(_0x43e9de['enableDefaultAttributesIntegration']('todoList'),_0x43e9de['enableDefaultAttributesIntegration']('checkTodoList'),_0x43e9de['registerBlockAttribute']('todoListChecked'),_0x43e9de['descriptionFactory']['registerDescriptionCallback'](_0x5e2bbb=>{const {data:_0x2b8ff5}=_0x5e2bbb;if(_0x2b8ff5&&'todoListChecked'==_0x2b8ff5['key'])return{'type':'format','content':_0x2b8ff5['newValue']?o(_0x4d8a8b,'*Check\x20item*'):o(_0x4d8a8b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3de745=>{if(_0x3de745['batch']['isUndo'])return!0x1;let _0x4cc317=!0x1;const _0x37dc80=_0x43e9de['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x224697=>'todoListChecked'===_0x43e9de['_getAttributeKey'](_0x224697));for(const _0x2cf2f4 of _0x37dc80){'todo'!=_0x2cf2f4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x43e9de['_findSuggestions'](_0x2cf2f4['getFirstRange'](),'attribute')['find'](_0x52493a=>'listType'===_0x43e9de['_getAttributeKey'](_0x52493a['suggestion']))||(_0x3de745['removeMarker'](_0x2cf2f4['getFirstMarker']()),_0x4cc317=!0x0));}return _0x4cc317;})),_0x43e9de['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4d8a8b,'FORMAT_INDENT'));const _0xfdabfc={'type':'format','content':''};_0x43e9de['descriptionFactory']['registerDescriptionCallback'](_0x4719e2=>{const {data:_0x434878}=_0x4719e2;if(!_0x434878||'listType'!=_0x434878['key'])return;let _0x5b80b9=_0x4719e2['head'];for(;_0x5b80b9;){if(_0x5b80b9['data']&&(('listStyle'==_0x5b80b9['data']['key']||'listMarkerStyle'==_0x5b80b9['data']['key'])&&(_0x5b80b9['data']['newValue']&&'default'!=_0x5b80b9['data']['newValue']||'default'!=_0x5b80b9['data']['oldValue']&&!_0x434878['newValue'])||!_0x684d39&&_0x5b80b9['data']['key']==m))return _0xfdabfc;_0x5b80b9=_0x5b80b9['next'];}if(null==_0x434878['newValue'])switch(_0x434878['oldValue']){case'bulleted':return _0x3d5b0b(o(_0x4d8a8b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3d5b0b(o(_0x4d8a8b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3d5b0b(o(_0x4d8a8b,'ELEMENT_TODO_LIST'));}switch(_0x434878['newValue']){case'bulleted':return _0x35df74(o(_0x4d8a8b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x35df74(o(_0x4d8a8b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x35df74(o(_0x4d8a8b,'ELEMENT_TODO_LIST'));}}),_0x43e9de['descriptionFactory']['registerDescriptionCallback'](_0x25506f=>{const {data:_0x108795}=_0x25506f;if(_0x108795&&'listIndent'==_0x108795['key'])return null==_0x108795['newValue']||null==_0x108795['oldValue']&&0x0==_0x108795['newValue']?_0xfdabfc:void 0x0;}),_0x43e9de['descriptionFactory']['registerDescriptionCallback'](_0x350ecb=>{if('attribute'!=_0x350ecb['type'])return;const {data:_0x425270}=_0x350ecb;if(!_0x425270||'listItemId'!=_0x425270['key'])return;const _0x46b83c=Ee(_0x350ecb);return'newValue'==_0x46b83c?{'type':'format','content':o(_0x4d8a8b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x46b83c?{'type':'format','content':o(_0x4d8a8b,'*Split:*\x20list\x20item')}:_0xfdabfc;}),_0x248140['model']['document']['registerPostFixer'](_0x2885fe=>this['listItemIdFixer'](_0x2885fe)),_0x248140['model']['document']['registerPostFixer'](_0x22baf4=>this['noTrackChangesFixer'](_0x22baf4)),_0x248140['model']['document']['on']('change:data',(_0x2b94e0,_0x44f790)=>{if(_0x44f790['isUndo']||!_0x44f790['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1dc7c8){if(_0x1dc7c8['batch']['isUndo']||!_0x1dc7c8['batch']['isLocal'])return!0x1;let _0x122b1a=!0x1;const _0x41b135=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x106a6e=>_0x106a6e['data']&&'listItemId'==_0x106a6e['data']['key'])['filter'](_0x105bd7=>_0x105bd7['data']['newValue']&&_0x105bd7['data']['oldValue']);for(const _0x5ac666 of _0x41b135)Ee(_0x5ac666)||(_0x1dc7c8['removeMarker'](_0x5ac666['getFirstMarker']()),_0x122b1a=!0x0);return _0x122b1a;}['noTrackChangesFixer'](_0xb028){if(_0xb028['batch']['isUndo']||!_0xb028['batch']['isLocal'])return!0x1;const _0x19d027=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x19d027['trackChangesCommand']['value'])return!0x1;let _0x9246e1=!0x1;const _0x59858d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x46c515=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x91aa4b=>'attribute'==_0x91aa4b['type'])['filter'](_0x378d08=>_0x59858d['includes'](_0x378d08['attributeKey']));if(0x0==_0x46c515['length'])return _0x9246e1;for(const _0x54e88c of _0x46c515){const _0x467f28=_0x19d027['_findSuggestions'](_0x54e88c['range'],'attribute')['filter'](_0x35179a=>!_0x35179a['meta']['isNextTo'])['map'](_0x41a00f=>_0x41a00f['suggestion'])['filter'](_0x59156c=>{const _0x5a6416=_0x19d027['_getAttributeKey'](_0x59156c);return _0x59858d['includes'](_0x5a6416);});if(_0x467f28['length']){for(const _0x41c986 of _0x467f28)_0xb028['removeMarker'](_0x41c986['getFirstMarker']());_0x9246e1=!0x0;}}return _0x9246e1;}['assureChains'](){const _0x577f39=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3857cc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x59f5a6;const _0xfbe54f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2ef3ab=>{if(_0x2ef3ab['data']['oldRange']||!_0x2ef3ab['data']['newRange'])return null;if(!_0x2ef3ab['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x25f408}=_0x577f39['_splitMarkerName'](_0x2ef3ab['name']);if(!_0x577f39['hasSuggestion'](_0x25f408))return null;const _0x34655a=_0x577f39['getSuggestion'](_0x25f408);return _0x3857cc['includes'](_0x34655a['data']['key']);})['map'](_0x31aa23=>{const {id:_0x5c34b2}=_0x577f39['_splitMarkerName'](_0x31aa23['name']),_0x4a48c9=_0x577f39['getSuggestion'](_0x5c34b2);return _0x59f5a6=_0x4a48c9['attributes']['groupId'],_0x4a48c9['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xfbe54f['size'])return;const _0x2cfc27=_0x577f39['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50c70f=>'attribute'==_0x50c70f['type']&&_0x50c70f['data']&&_0x3857cc['includes'](_0x50c70f['data']['key'])&&_0x50c70f['attributes']['groupId']!=_0x59f5a6)['map'](_0xd2241a=>({'listItem':_0xd2241a['getFirstRange']()['start']['nodeAfter'],'groupId':_0xd2241a['attributes']['groupId']})),_0x26df0a=new Set();for(const {groupId:_0x34b50a,listItem:_0x36d3b1}of _0x2cfc27)_0xfbe54f['has'](_0x36d3b1)&&_0x26df0a['add'](_0x34b50a);for(const _0x1e01c9 of _0x577f39['getSuggestions']())_0x26df0a['has'](_0x1e01c9['attributes']['groupId'])&&_0x1e01c9['setAttribute']('groupId',_0x59f5a6);}['_supportLegacySuggestions'](){const _0x142805=this['editor'],_0x2b6e12=_0x142805['locale'],_0xa5214b=_0x142805['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xa5214b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5745b8,_0xc12468){const _0x2f04cf=[];for(let _0x47bb5c of _0x5745b8)_0x47bb5c['start']['nodeAfter']===_0x47bb5c['end']['parent']&&(_0x47bb5c=_0x142805['model']['createRange'](_0x142805['model']['createPositionAt'](_0x47bb5c['start']['nodeAfter'],0x0))),_0x2f04cf['push'](_0x47bb5c);_0x142805['model']['change'](_0x5ea29e=>{const _0x5c4cf7=_0x142805['model']['document']['selection'],_0x24b2a1=Array['from'](_0x5c4cf7['getRanges']())['map'](_0x1d7b24=>_0x2ad496['fromRange'](_0x1d7b24));_0x5ea29e['setSelection'](_0x2f04cf),_0x142805['commands']['get'](_0xc12468['commandName'])['refresh'](),_0xc12468['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x142805['execute'](_0xc12468['commandName'],..._0xc12468['commandParams']),_0x5ea29e['setSelection'](_0x24b2a1);for(const _0x567d09 of _0x24b2a1)_0x567d09['detach']();});}),_0xa5214b['descriptionFactory']['registerElementLabel'](function(_0x3e70aa){const _0x35e1c5=!_0x142805['model']['schema']['isObject'](_0x3e70aa),_0x9b0e17=_0x3e70aa['previousSibling'],_0x2c715f=_0x3e70aa['nextSibling'],_0x474571=_0x3e70aa['getAttribute']('listItemId'),_0x3f9938=!_0x9b0e17||_0x9b0e17['getAttribute']('listItemId')!==_0x474571,_0x5588fa=!_0x2c715f||_0x2c715f['getAttribute']('listItemId')!==_0x474571;return _0x35e1c5&&Boolean(_0x474571)&&_0x3f9938&&_0x5588fa;},_0x3ca182=>o(_0x2b6e12,'ELEMENT_LIST_ITEM',_0x3ca182));}['_registerLegacyDescription'](){const _0x19eb1e=this['editor'],_0x2db9e1=_0x19eb1e['locale'];function _0x5e0c22(_0x109fe4){const _0x56ee52=_0x19eb1e['commands']['get']('bulletedList')['value'],_0x342220=_0x19eb1e['commands']['get']('numberedList')['value'];return'numberedList'===_0x109fe4?_0x56ee52:_0x342220;}_0x19eb1e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x206217){if('formatBlock'!=_0x206217['type'])return;const {data:_0x20310b}=_0x206217;if(!_0x20310b)return;let _0x272264,_0x2a2ffc,_0x1bc0ba,_0x1b0673;switch(_0x20310b['commandName']){case'bulletedList':_0x1bc0ba=_0x20310b['commandParams'][0x0]['forceValue'],_0x1b0673=_0x5e0c22(_0x20310b['commandName']),_0x272264=_0x1bc0ba?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1b0673&&_0x19eb1e['config']['get']('list.multiBlock')||(_0x272264='*Change\x20to:*\x20%0'),_0x2a2ffc={'type':'format','content':o(_0x2db9e1,_0x272264,o(_0x2db9e1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1bc0ba=_0x20310b['commandParams'][0x0]['forceValue'],_0x1b0673=_0x5e0c22(_0x20310b['commandName']),_0x272264=_0x1bc0ba?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1b0673&&_0x19eb1e['config']['get']('list.multiBlock')||(_0x272264='*Change\x20to:*\x20%0'),_0x2a2ffc={'type':'format','content':o(_0x2db9e1,_0x272264,o(_0x2db9e1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x272264='*Indent:*\x20%0',_0x2a2ffc={'type':'format','content':o(_0x2db9e1,_0x272264,o(_0x2db9e1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x272264=function(_0x3cd9e5){const _0xe148de=_0x3cd9e5['getFirstRange']();let _0xff5e1f=_0xe148de['start']['nodeAfter'];for(;_0xff5e1f&&_0xe148de['containsItem'](_0xff5e1f);){if(_0xff5e1f['getAttribute']('listIndent')>0x0)return!0x1;_0xff5e1f=_0xff5e1f['nextSibling'];}return!0x0;}(_0x206217)?o(_0x2db9e1,'*Format:*\x20remove\x20from\x20%0',o(_0x2db9e1,function(_0x38cf3b){return'ELEMENT_'+_0x38cf3b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x206217))):o(_0x2db9e1,'*Outdent:*\x20%0',o(_0x2db9e1,'ELEMENT_LIST_ITEM')),_0x2a2ffc={'type':'format','content':_0x272264};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x20310b['multipleBlocks']&&(_0x272264='*Merge:*\x20%0',_0x2a2ffc={'type':'deletion','content':o(_0x2db9e1,_0x272264,o(_0x2db9e1,'ELEMENT_LIST_ITEM'))});}return _0x2a2ffc;});}}function Ee(_0x182802){let _0x165d90=_0x182802['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x165d90;){const _0xc60140=_0x165d90['getAttribute']('listItemId');if(!_0xc60140)return!0x1;if(_0xc60140==_0x182802['data']['newValue'])return'newValue';if(_0xc60140==_0x182802['data']['oldValue'])return'oldValue';_0x165d90=_0x165d90['previousSibling'];}return!0x1;}class pe extends _0x1b5c48{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1abbc2=this['editor']['config']['get']('list.properties'),_0x24230a=this['editor']['plugins']['get']('TrackChangesEditing');_0x1abbc2['styles']&&(_0x24230a['enableDefaultAttributesIntegration']('listStyle'),_0x24230a['registerBlockAttribute']('listStyle')),_0x1abbc2['reversed']&&(_0x24230a['enableDefaultAttributesIntegration']('listReversed'),_0x24230a['registerBlockAttribute']('listReversed')),_0x1abbc2['startIndex']&&(_0x24230a['enableDefaultAttributesIntegration']('listStart'),_0x24230a['registerBlockAttribute']('listStart'));const _0x1e52a4={'type':'format','content':''};_0x24230a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xd52548=this['editor']['locale'];_0x24230a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xd52548,'FORMAT_LIST_REVERSED')),_0x24230a['descriptionFactory']['registerDescriptionCallback'](_0x23fdef=>{const {data:_0x3368b3}=_0x23fdef;if(_0x3368b3&&'listReversed'==_0x3368b3['key'])return null==_0x3368b3['newValue']||0x0==_0x3368b3['newValue']&&null==_0x3368b3['oldValue']?_0x1e52a4:void 0x0;}),_0x24230a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xd52548,'FORMAT_LIST_START')),_0x24230a['descriptionFactory']['registerDescriptionCallback'](_0x523731=>{const {data:_0x20242e}=_0x523731;if(_0x20242e&&'listStart'==_0x20242e['key'])return null==_0x20242e['newValue']||0x1==_0x20242e['newValue']&&null==_0x20242e['oldValue']?_0x1e52a4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1b1c9a=>{if(_0x1b1c9a['batch']['isUndo'])return!0x1;let _0x5676c9=!0x1;const _0x4973db=_0x24230a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dfddd=>{const _0x431513=_0x24230a['_getAttributeKey'](_0x5dfddd);return'listStart'==_0x431513||'listReversed'==_0x431513;});for(const _0x5d6bbb of _0x4973db){const _0x4a5050=_0x5d6bbb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4a5050||'customNumbered'==_0x4a5050)continue;_0x24230a['_findSuggestions'](_0x5d6bbb['getFirstRange'](),'attribute')['find'](_0x166f41=>'listType'==_0x24230a['_getAttributeKey'](_0x166f41['suggestion']))||(_0x1b1c9a['removeMarker'](_0x5d6bbb['getFirstMarker']()),_0x5676c9=!0x0);}return _0x5676c9;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x34209f){const _0x235958=this['editor']['locale'],{data:_0x586217}=_0x34209f,_0x24c46f={'type':'format','content':''};if(!_0x586217||'listStyle'!=_0x586217['key'])return;if(!_0x586217['oldValue'])return'default'==_0x586217['newValue']?_0x24c46f:{'type':'format','content':''+o(_0x235958,'*Set\x20format:*\x20%0',o(_0x235958,this['_getTranslationKeyForListStyle'](_0x586217['newValue'])))};if(!_0x586217['newValue']){if('default'==_0x586217['oldValue'])return _0x24c46f;let _0x445e1d=_0x34209f['head'];for(;_0x445e1d;){if(_0x445e1d['data']&&'listType'==_0x445e1d['data']['key']&&_0x445e1d['data']['newValue'])return _0x24c46f;_0x445e1d=_0x445e1d['next'];}return{'type':'format','content':''+o(_0x235958,'*Remove\x20format:*\x20%0',o(_0x235958,this['_getTranslationKeyForListStyle'](_0x586217['oldValue'])))};}if('default'!=_0x586217['newValue'])return{'type':'format','content':''+o(_0x235958,'*Set\x20format:*\x20%0',o(_0x235958,this['_getTranslationKeyForListStyle'](_0x586217['newValue'])))};let _0x20260d=_0x34209f['head'];for(;_0x20260d;){if(_0x20260d['data']&&'listType'==_0x20260d['data']['key']&&_0x20260d['data']['newValue']&&_0x20260d['data']['oldValue'])return _0x24c46f;_0x20260d=_0x20260d['next'];}return{'type':'format','content':o(_0x235958,'*Set\x20format:*\x20%0',o(_0x235958,'ELEMENT_'+_0x34209f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x276658=this['editor'],_0x4184ac=_0x276658['locale'];_0x276658['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x535d69=>{if('formatBlock'!=_0x535d69['type'])return;const {data:_0x34d25a}=_0x535d69;if(!_0x34d25a)return;let _0x353644,_0x3c330a;switch(_0x34d25a['commandName']){case'listStyle':_0x353644='*Change\x20to:*\x20%0',_0x3c330a={'type':'format','content':o(_0x4184ac,_0x353644,o(_0x4184ac,this['_getTranslationKeyForListStyle'](_0x34d25a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x353644=_0x34d25a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3c330a={'type':'format','content':o(_0x4184ac,_0x353644)};break;case'listStart':_0x353644='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3c330a={'type':'format','content':o(_0x4184ac,_0x353644,_0x34d25a['commandParams'][0x0]['startIndex'])};}return _0x3c330a;});}['_getTranslationKeyForListStyle'](_0x55394a){return'ELEMENT_'+function(_0x382756){if(ye['includes'](_0x382756))return'bulleted';if(Se['includes'](_0x382756))return'numbered';return null;}(_0x55394a)['toUpperCase']()+'_LIST_'+_0x55394a['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x1b5c48{static get['requires'](){return[_0x1b598f];}['init'](){const _0x3fec24=this['editor'],_0x4fe233=_0x3fec24['plugins']['get']('TrackChangesEditing'),_0x2c919b=_0x3fec24['commands']['get']('enter');_0x4fe233['enableCommand']('enter',()=>{_0x3fec24['model']['change'](_0x53d9ef=>{const _0x255deb=_0x3fec24['model']['document']['selection'],_0x5a2cc3=_0x255deb['getFirstPosition'](),_0x418ad5=_0x2ad496['fromRange'](_0x255deb['getFirstRange']());if(_0x2c919b['enterBlock'](_0x53d9ef)){const _0x5d35c4=_0x3fec24['model']['createPositionAt'](_0x5a2cc3['parent']['nextSibling'],0x0),_0x2496fc=_0x53d9ef['createRange'](_0x5a2cc3,_0x5d35c4);_0x4fe233['markInsertion'](_0x2496fc);}else _0x53d9ef['setSelection'](_0x53d9ef['createRange'](_0x418ad5['end']));_0x418ad5['detach'](),_0x2c919b['fire']('afterExecute',{'writer':_0x53d9ef});});}),_0x3fec24['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x3fec24,'split'),{'priority':'high'}),_0x3fec24['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x551ee6,_0x5865c3,_0x3b65d7)=>{const _0x1af9a1=_0x3b65d7['mapper']['markerNameToElements'](_0x5865c3['markerName']);if(_0x1af9a1){for(const _0x12caab of _0x1af9a1)_0x12caab['hasClass']('ck-suggestion-marker-split')&&(_0x3b65d7['mapper']['unbindElementFromMarkerName'](_0x12caab,_0x5865c3['markerName']),_0x3b65d7['writer']['remove'](_0x12caab));}},{'priority':'high'}),_0x3fec24['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3fefa5,_0x25d7cb,_0x282b3d)=>{_0x282b3d['options']['showSuggestionHighlights']&&_e(_0x3fec24,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3fefa5,_0x25d7cb,_0x282b3d);},{'priority':'high'});}}class X extends _0x1b5c48{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x34b015=this['editor']['plugins']['get']('TrackChangesEditing');_0x34b015['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x34b015['enableCommand']('findNext'),_0x34b015['enableCommand']('findPrevious'),_0x34b015['enableCommand']('replace'),_0x34b015['enableCommand']('replaceAll');}['handleFindCommand'](_0x5c688a,_0x4ec33c,_0x359970={}){const _0xb9e4cb=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5c688a(_0x293b73=>{let _0x175fef=('string'==typeof _0x4ec33c?_0xb9e4cb['findByTextCallback'](_0x4ec33c,_0x359970):_0x4ec33c)(_0x293b73);Array['isArray'](_0x175fef)&&(_0x175fef={'results':_0x175fef,'searchText':'string'==typeof _0x4ec33c?_0x4ec33c:''});const _0x28811b=_0x175fef['results']['filter'](_0x198f15=>!0x1===this['_isInDeletionRange'](_0x198f15,_0x293b73['item']));return{..._0x175fef,'results':_0x28811b};},_0x359970);}['_isInDeletionRange'](_0x340e87,_0x2e1b89){const _0x585a3a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2e1b89,_0x340e87['start']),this['editor']['model']['createPositionAt'](_0x2e1b89,_0x340e87['end']));for(const _0x1ea422 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x585a3a['getIntersection'](_0x1ea422['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x1b5c48{['afterInit'](){const _0x41e9ed=this['editor']['locale'],_0x58b784=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4d995b,commandName:_0x13d054}of ro)this['editor']['plugins']['has'](_0x4d995b)&&(_0x58b784['enableDefaultAttributesIntegration'](_0x13d054),_0x58b784['registerInlineAttribute'](_0x13d054));_0x58b784['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x41e9ed,'FORMAT_FONT_SIZE')),_0x58b784['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x41e9ed,'FORMAT_FONT_FAMILY')),_0x58b784['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x41e9ed,'FORMAT_FONT_COLOR')),_0x58b784['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x41e9ed,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb4eb8f=this['editor'],_0x59affb=_0xb4eb8f['locale'];_0xb4eb8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c23c9=>{const _0x330384=_0x59affb['t'];if('formatInline'!=_0x2c23c9['type'])return;const {data:_0x50463c}=_0x2c23c9;if(null!=_0x50463c){if('fontSize'==_0x50463c['commandName']){const _0x122245=_0x50463c['commandParams'][0x0]['value'];if(_0x122245){const _0x5ca6e1=_0x330384(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4467a0=>_0x4467a0['model']==_0x122245)['title'])['toLowerCase']();return{'type':'format','content':o(_0x59affb,'*Set\x20font\x20size:*\x20%0',_0x5ca6e1)};}return{'type':'format','content':o(_0x59affb,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x50463c['commandName']){const _0x1216b6=_0x50463c['commandParams'][0x0]['value'];return _0x1216b6?{'type':'format','content':o(_0x59affb,'*Set\x20font\x20family:*\x20%0',_0x1216b6)}:{'type':'format','content':o(_0x59affb,'*Reset\x20font\x20family*')};}if('fontColor'==_0x50463c['commandName']){const _0x1dd3ae=_0x50463c['commandParams'][0x0]['value'];if(_0x1dd3ae){const _0x56c741=_0x4919ed(this['editor']['config']['get']('fontColor.colors'))['find'](_0x596cd2=>_0x596cd2['model']==_0x1dd3ae);let _0x5d09e7=_0x1dd3ae,_0x18e8e1='';return _0x56c741&&(_0x5d09e7=_0x56c741['label'],_0x18e8e1=_0x330384(_0x5d09e7)['toLowerCase']()),{'type':'format','content':o(_0x59affb,'*Set\x20font\x20color:*\x20%0',_0x18e8e1)['trim'](),'color':{'value':_0x1dd3ae,'title':_0x18e8e1||_0x5d09e7}};}return{'type':'format','content':o(_0x59affb,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x50463c['commandName']){const _0x154323=_0x50463c['commandParams'][0x0]['value'];if(_0x154323){const _0x1bef91=_0x4919ed(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x24b2f7=>_0x24b2f7['model']==_0x154323);let _0x25c8f6=_0x154323,_0x151683='';return _0x1bef91&&(_0x25c8f6=_0x1bef91['label'],_0x151683=_0x330384(_0x25c8f6)['toLowerCase']()),{'type':'format','content':o(_0x59affb,'*Set\x20font\x20background\x20color:*\x20%0',_0x151683)['trim'](),'color':{'value':_0x154323,'title':_0x151683||_0x25c8f6}};}return{'type':'format','content':o(_0x59affb,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x1b5c48{['afterInit'](){const _0x881efb=this['editor'],_0x2b27e7=_0x881efb['plugins']['get']('TrackChangesEditing'),_0x2d984c=_0x881efb['commands']['get']('copyFormat'),_0x11ad8d=_0x881efb['commands']['get']('pasteFormat');_0x2d984c&&_0x11ad8d&&(_0x2b27e7['enableDefaultAttributesIntegration']('pasteFormat'),_0x2b27e7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3236e7=this['editor'],_0x14c241=_0x3236e7['locale'];_0x3236e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f368a=>{if('formatBlock'!=_0x3f368a['type']&&'formatInline'!=_0x3f368a['type'])return;const {data:_0x2c6c49}=_0x3f368a;if(_0x2c6c49&&'pasteFormat'===_0x2c6c49['commandName']){const _0x4cde52=[],_0x4fdefd=_0x2c6c49['commandParams'][0x0];for(const [_0x2c81f3,_0x3becb2]of Object['entries'](_0x4fdefd))_0x4cde52['push'](so(_0x3236e7,_0x2c81f3,_0x3becb2));return _0x4cde52['length']?{'type':'format','content':o(_0x14c241,'*Set\x20format\x20to:*\x20%0',_0x4cde52['join'](',\x20'))}:{'type':'format','content':o(_0x14c241,'*Remove\x20all\x20formatting*')};}});}}function so(_0x50f2fd,_0x1746fa,_0x50882e){const _0x27ce72=_0x50f2fd['locale']['t'],_0x466b83=_0x1746fa['split'](/(?=[A-Z])/)['join']('\x20'),_0x50e4d7=_0x27ce72(_0x466b83['charAt'](0x0)['toUpperCase']()+_0x466b83['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x50882e)return _0x50e4d7;if('fontColor'===_0x1746fa||'fontBackgroundColor'===_0x1746fa){const _0x1b92a1=_0x4919ed(_0x50f2fd['config']['get']('fontColor.colors'))['find'](_0x3827c3=>_0x3827c3['model']==_0x50882e);return _0x50e4d7+'\x20('+(_0x1b92a1?_0x27ce72(_0x1b92a1['label'])['toLowerCase']():_0x50882e)+')';}if('fontSize'===_0x1746fa&&isNaN(parseFloat(_0x50882e))){const _0x4a69d9=_0x50f2fd['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x50f2fd['config']['get']('fontSize.options'))['find'](_0x3a5c8b=>_0x3a5c8b['model']==_0x50882e);return _0x50e4d7+'\x20('+(_0x4a69d9?_0x27ce72(_0x4a69d9['title'])['toLowerCase']():_0x50882e)+')';}return _0x50e4d7+'\x20('+_0x50882e+')';}class tt extends _0x1b5c48{['_headingOptions'];['afterInit'](){const _0x5751f9=this['editor'];if(!_0x5751f9['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5751f9['config']['get']('heading.options');const _0x34668b=_0x5751f9['locale'],_0x2af814=_0x5751f9['plugins']['get']('TrackChangesEditing');_0x2af814['enableDefaultAttributesIntegration']('heading');for(const _0x29ea02 of this['_headingOptions'])'paragraph'!=_0x29ea02['model']&&_0x2af814['descriptionFactory']['registerElementLabel'](_0x29ea02['model'],_0x5cbbd6=>{const _0x5e1d65=this['_getHeadingLevel'](_0x29ea02['model']);return null!==_0x5e1d65?_0x569221(_0x5cbbd6,_0x5e1d65):_0x1522c4(_0x5cbbd6,_0x29ea02['title']);});function _0x569221(_0x1cacb8,_0x290386){return o(_0x34668b,'ELEMENT_HEADING',[_0x1cacb8,_0x290386]);}function _0x1522c4(_0x128704,_0x1dd138){return o(_0x34668b,'ELEMENT_HEADING_CUSTOM',[_0x128704,_0x1dd138]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e62a6=this['editor'],_0x579e9f=_0x1e62a6['locale'];function _0xd21504(_0x58ae09,_0x36bad8){return o(_0x579e9f,'ELEMENT_HEADING_CUSTOM',[_0x58ae09,_0x36bad8]);}_0x1e62a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c2e65=>{if('formatBlock'!=_0x2c2e65['type'])return;const {data:_0x3b4817}=_0x2c2e65;if(_0x3b4817&&'heading'==_0x3b4817['commandName']){const _0xb0ec5c=_0x3b4817['commandParams'][0x0]['value'],_0x2f9c5d=this['_getHeadingLevel'](_0xb0ec5c);if(null!==_0x2f9c5d)return{'type':'format','content':o(_0x579e9f,'*Change\x20to:*\x20%0',(_0x207374=0x1,_0x49ded2=_0x2f9c5d,o(_0x579e9f,'ELEMENT_HEADING',[_0x207374,_0x49ded2])))};const _0x101cb3=this['_headingOptions']['find'](_0x4b4598=>_0x4b4598['model']===_0xb0ec5c)['title'];return{'type':'format','content':o(_0x579e9f,'*Change\x20to:*\x20%0',_0xd21504(0x1,_0x101cb3))};}var _0x207374,_0x49ded2;});}['_getHeadingLevel'](_0x426611){const _0x4cf505=_0x426611['match'](/^heading(\d+)/);if(_0x4cf505)return _0x4cf505[0x1];const _0x26d822=this['_headingOptions']?.['find'](_0x1b57ce=>_0x1b57ce['model']==_0x426611);if(_0x26d822&&_0x26d822['view']){const _0x2ab420=_0x26d822['view'],_0x57847c=(_0x2ab420['name']??_0x2ab420)['match'](/^h(\d+)/);if(_0x57847c)return _0x57847c[0x1];}return null;}}class et extends _0x1b5c48{['afterInit'](){const _0x8918ec=this['editor'];if(!_0x8918ec['plugins']['has']('HighlightEditing'))return;const _0x4fb8f0=_0x8918ec['plugins']['get']('TrackChangesEditing'),_0x76fff7=_0x8918ec['locale'];_0x4fb8f0['enableDefaultAttributesIntegration']('highlight'),_0x4fb8f0['registerInlineAttribute']('highlight'),_0x4fb8f0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x76fff7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fb4ee=this['editor'],_0x420e85=_0x2fb4ee['locale'];_0x2fb4ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50432f=>{if('formatInline'!=_0x50432f['type'])return;const {data:_0x445989}=_0x50432f;if(_0x445989&&'highlight'==_0x445989['commandName']){const _0x3209ef=_0x420e85['t'],_0x3a8c1f=_0x445989['commandParams'][0x0]['value'];if(_0x3a8c1f){const _0x3946fe=_0x2fb4ee['config']['get']('highlight.options')['find'](_0x1a86ca=>_0x1a86ca['model']==_0x3a8c1f),_0x58cc4e=_0x3209ef(_0x3946fe['title'])['toLowerCase']();return{'type':'format','content':o(_0x420e85,'*Set\x20highlight:*\x20%0',_0x58cc4e),'color':{'value':_0x3946fe['color'],'title':_0x3946fe['title']}};}return{'type':'format','content':o(_0x420e85,'*Remove\x20highlight*',o(_0x420e85,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x1b5c48{['afterInit'](){const _0x50ec46=this['editor'];if(!_0x50ec46['plugins']['has']('HorizontalLineEditing'))return;_0x50ec46['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1036eb=_0x50ec46['plugins']['get']('TrackChangesEditing'),_0x397028=_0x50ec46['locale'];_0x1036eb['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5cf316=>o(_0x397028,'ELEMENT_HORIZONTAL_LINE',_0x5cf316)),_0x50ec46['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x25652e,{writer:_0x5cc40b,options:_0x5a55f4})=>{if(!_0x5a55f4['showSuggestionHighlights'])return null;const _0xf3aa96=_0x5cc40b['createContainerElement']('div'),_0x17e252=_0x5cc40b['createEmptyElement']('hr');return _0x5cc40b['addClass']('ck-horizontal-line',_0xf3aa96),_0x5cc40b['insert'](_0x5cc40b['createPositionAt'](_0xf3aa96,0x0),_0x17e252),_0xf3aa96;},'converterPriority':'high'});}}class st extends _0x1b5c48{['afterInit'](){const _0x1a4d0f=this['editor'];if(!_0x1a4d0f['plugins']['has']('HtmlEmbed'))return;const _0x3a99b5=_0x1a4d0f['plugins']['get']('TrackChangesEditing'),_0x3de2f6=_0x1a4d0f['locale'];_0x3a99b5['descriptionFactory']['registerElementLabel']('rawHtml',_0x25725c=>o(_0x3de2f6,'ELEMENT_HTML_EMBED',_0x25725c)),_0x3a99b5['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3a99b5['registerBlockAttribute']('value'),_0x3a99b5['descriptionFactory']['registerDescriptionCallback'](_0x24e068=>{if('attribute'!=_0x24e068['type'])return;const {data:_0x235153}=_0x24e068;if(_0x235153&&'value'==_0x235153['key']&&_0x24e068['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3e8a50=o(_0x3de2f6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3de2f6,'*Change\x20%0\x20content*',_0x3e8a50)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x681cee=this['editor'],_0x341276=_0x681cee['locale'];_0x681cee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29d235=>{if('formatBlock'!=_0x29d235['type'])return;const {data:_0x4587af}=_0x29d235;if(_0x4587af&&'htmlEmbed'==_0x4587af['commandName']){const _0xce669b=o(_0x341276,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x341276,'*Change\x20%0\x20content*',_0xce669b)};}});}}class nt extends _0x1b5c48{['afterInit'](){const _0x4a6c8f=this['editor'];if(!_0x4a6c8f['plugins']['has']('ImageEditing'))return;const _0x2e3fa0=_0x4a6c8f['plugins']['get']('TrackChangesEditing'),_0xb250a2=_0x4a6c8f['plugins']['get']('ImageUtils'),_0x47aab8=_0x4a6c8f['locale'];_0x2e3fa0['enableCommand']('insertImage'),_0x2e3fa0['descriptionFactory']['registerElementLabel']('imageBlock',_0x14a05e=>o(_0x47aab8,'ELEMENT_IMAGE',_0x14a05e)),_0x2e3fa0['descriptionFactory']['registerElementLabel']('imageInline',_0x45ad95=>o(_0x47aab8,'ELEMENT_INLINE_IMAGE',_0x45ad95)),_0x2e3fa0['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x47aab8,'ELEMENT_CAPTION')),_0x4a6c8f['plugins']['has']('ImageUploadEditing')&&_0x2e3fa0['enableCommand']('uploadImage'),_0x4a6c8f['plugins']['has']('ImageBlockEditing')&&_0x4a6c8f['plugins']['has']('ImageInlineEditing')&&(_0x2e3fa0['enableCommand']('imageTypeInline',(_0x245e90,_0x212c48)=>{const _0x4df4aa=_0xb250a2['getClosestSelectedImageElement'](_0x4a6c8f['model']['document']['selection']);_0x4a6c8f['model']['change'](()=>{_0x2e3fa0['markBlockFormat'](_0x4df4aa,{'commandName':'imageTypeInline','commandParams':[_0x212c48]},[],'convertBlockImageToInline');});}),_0x2e3fa0['enableCommand']('imageTypeBlock',(_0x846c1f,_0x3d23f3)=>{_0x4a6c8f['model']['change'](_0x50f460=>{let _0x3a62a9=_0xb250a2['getClosestSelectedImageElement'](_0x4a6c8f['model']['document']['selection']),_0x34d0f2=_0x50f460['createRangeOn'](_0x3a62a9);const _0x246b32=_0x2c4486['fromPosition'](_0x34d0f2['start'],'toPrevious'),_0x189f81=_0x2c4486['fromPosition'](_0x34d0f2['end'],'toNext');_0x2e3fa0['forceDefaultExecution'](()=>_0x846c1f(_0x3d23f3)),_0x3a62a9=_0xb250a2['getClosestSelectedImageElement'](_0x4a6c8f['model']['document']['selection']),_0x34d0f2=_0x50f460['createRangeOn'](_0x3a62a9);const _0x16e7f8=_0x50f460['createRange'](_0x246b32,_0x189f81);_0x246b32['detach'](),_0x189f81['detach'](),_0x2e3fa0['markBlockFormat'](_0x3a62a9,{'commandName':'imageTypeInline','commandParams':[_0x3d23f3]},[],'convertInlineImageToBlock'),_0x16e7f8['start']['isBefore'](_0x34d0f2['start'])&&_0x2e3fa0['markInsertion'](_0x50f460['createRange'](_0x16e7f8['start'],_0x34d0f2['start']),'convertInlineImageToBlock'),_0x34d0f2['end']['isBefore'](_0x16e7f8['end'])&&_0x2e3fa0['markInsertion'](_0x50f460['createRange'](_0x34d0f2['end'],_0x16e7f8['end']),'convertInlineImageToBlock');});}),_0x2e3fa0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2e3fa0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2e3fa0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2e3fa0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2e3fa0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2e3fa0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x668319])=>{const _0x53f09e=_0x2e3fa0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x26fb41=_0x668319['start'],_0x19c3e9=_0x668319['end'];const _0x517c2e=_0x4a6c8f['model']['schema']['getNearestSelectionRange'](_0x26fb41,'backward'),_0xd6cb52=_0x4a6c8f['model']['schema']['getNearestSelectionRange'](_0x19c3e9,'forward');_0x517c2e['isCollapsed']&&(_0x26fb41=_0x517c2e['start']),_0xd6cb52['isCollapsed']&&(_0x19c3e9=_0xd6cb52['end']),_0x53f09e([_0x4a6c8f['model']['createRange'](_0x26fb41,_0x19c3e9)]);}),_0x2e3fa0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xf62e4a),_0x2e3fa0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xf62e4a)),_0x4a6c8f['plugins']['has']('ImageCaptionEditing')&&(_0x2e3fa0['enableCommand']('toggleImageCaption',(_0x29fc41,_0x5f0c9b)=>{const _0x5c74a8=_0x4a6c8f['plugins']['get']('ImageCaptionUtils');let _0x5403ad=_0xb250a2['getClosestSelectedImageElement'](_0x4a6c8f['model']['document']['selection']),_0x75ccfb=_0x5c74a8['getCaptionFromImageModelElement'](_0x5403ad);_0x4a6c8f['model']['change'](()=>{if(_0x75ccfb)return void _0x2e3fa0['markDeletion'](_0x4a6c8f['model']['createRangeOn'](_0x75ccfb));const _0x18b269=_0xb250a2['isBlockImage'](_0x5403ad);_0x29fc41(_0x5f0c9b),_0x5403ad=_0xb250a2['getClosestSelectedImageElement'](_0x4a6c8f['model']['document']['selection']),_0x75ccfb=_0x5c74a8['getCaptionFromImageModelElement'](_0x5403ad),_0x2e3fa0['markInsertion'](_0x4a6c8f['model']['createRangeOn'](_0x75ccfb),_0x18b269?null:'imageCaption');});}),_0x2e3fa0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xf62e4a));const _0x1b71ca=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x515657(_0x4091c8,_0x3248ef){const _0x30d155=_0x1b71ca['findIndex'](({type:_0x472abe,subType:_0x1ab077})=>_0x4091c8['type']==_0x472abe&&_0x4091c8['subType']==_0x1ab077),_0x566d39=_0x1b71ca['findIndex'](({type:_0x39073c,subType:_0x373754})=>_0x3248ef['type']==_0x39073c&&_0x3248ef['subType']==_0x373754);if(_0x30d155<0x0||_0x566d39<0x0)return!0x1;const _0x57ea56=_0x4091c8['getFirstRange'](),_0x3f33c5=_0x3248ef['getFirstRange']();if((0x0==_0x30d155||0x1==_0x30d155)&&0x2==_0x566d39&&_0x57ea56['isIntersecting'](_0x3f33c5))return!0x0;if(0x2==_0x30d155&&0x3==_0x566d39){const _0x46c31b=_0x2e3fa0['_findSuggestions'](_0x57ea56,'insertion')['filter'](({suggestion:_0x39b6d7,meta:_0x35acf3})=>_0x35acf3['isOwn']&&'convertInlineImageToBlock'==_0x39b6d7['subType']);if(_0x46c31b['length']>0x1&&_0x3f33c5['end']['isEqual'](_0x57ea56['start']))return!0x0;if(0x1==_0x46c31b['length']&&(_0x57ea56['start']['isEqual'](_0x3f33c5['end'])||_0x57ea56['end']['isEqual'](_0x3f33c5['start'])))return!0x0;}if(0x3==_0x30d155&&0x3==_0x566d39&&_0x57ea56['start']['isBefore'](_0x3f33c5['start'])){const _0x4f8531=_0x57ea56['end']['nodeAfter'],_0xccdb4b=_0x3f33c5['start']['nodeBefore'];return _0xb250a2['isBlockImage'](_0x4f8531)&&_0x4f8531===_0xccdb4b;}return!0x1;}function _0xf62e4a(_0x2153b4,_0x3a6790){return _0x515657(_0x2153b4,_0x3a6790)?[_0x2153b4,_0x3a6790]:_0x515657(_0x3a6790,_0x2153b4)?[_0x3a6790,_0x2153b4]:null;}_0x4a6c8f['plugins']['has']('ImageResize')&&(_0x2e3fa0['enableDefaultAttributesIntegration']('resizeImage'),_0x2e3fa0['registerBlockAttribute']('resizedWidth'),_0x2e3fa0['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x47aab8,'FORMAT_IMAGE_SIZE'))),_0x4a6c8f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2e3fa0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2e3fa0['registerBlockAttribute']('alt')),_0x2e3fa0['descriptionFactory']['registerDescriptionCallback'](_0x5bbadd=>{if(!!_0x1b71ca['find'](({type:_0xa6f694,subType:_0x11f404})=>_0x5bbadd['type']==_0xa6f694&&_0x5bbadd['subType']==_0x11f404))return _0x5bbadd['previous']?{}:void 0x0;}),_0x2e3fa0['descriptionFactory']['registerDescriptionCallback'](_0x4a7ad4=>{if('insertion'==_0x4a7ad4['type']||'deletion'==_0x4a7ad4['type']){const _0x35d260=_0x4a7ad4['getContainedElement']();if(_0x35d260&&_0x35d260['is']('element','caption'))return{'type':'insertion'==_0x4a7ad4['type']?'addObject':'removeObject','element':_0x35d260,'quantity':0x1};}}),_0x2e3fa0['descriptionFactory']['registerDescriptionCallback'](_0x1d8367=>'formatBlock'==_0x1d8367['type']&&'convertInlineImageToBlock'==_0x1d8367['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1d8367['type']&&'convertBlockImageToInline'==_0x1d8367['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2e3fa0['descriptionFactory']['registerDescriptionCallback'](_0x126cf8=>{if('attribute'!=_0x126cf8['type'])return;const {data:_0x6e7f2b}=_0x126cf8;if(!_0x6e7f2b||'alt'!=_0x6e7f2b['key'])return;const _0x537c79=_0x6e7f2b['newValue'];return _0x537c79?{'type':'format','content':o(_0x47aab8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x537c79+'\x22')}:{'type':'format','content':o(_0x47aab8,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bb48e=this['editor'],_0x1991db=_0x3bb48e['locale'];_0x3bb48e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x394255=>{if('formatBlock'!=_0x394255['type']&&'formatInline'!=_0x394255['type'])return;const {data:_0x2cd905}=_0x394255;if(_0x2cd905){if('imageTextAlternative'==_0x2cd905['commandName']){const _0x57a51=_0x2cd905['commandParams'][0x0]['newValue'];return _0x57a51?{'type':'format','content':o(_0x1991db,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x57a51+'\x22')}:{'type':'format','content':o(_0x1991db,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2cd905['commandName']){const _0x512bd0=_0x2cd905['commandParams'][0x0]['width'];return _0x512bd0?{'type':'format','content':o(_0x1991db,'*Set\x20image\x20width:*\x20%0',_0x512bd0)}:{'type':'format','content':o(_0x1991db,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x1b5c48{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x6cc36d=this['editor']['locale'],_0x265a0f=this['editor']['plugins']['get']('TrackChangesEditing');_0x265a0f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x265a0f['registerBlockAttribute']('src'),_0x265a0f['descriptionFactory']['registerDescriptionCallback'](_0x4243ad=>{if('attribute'!=_0x4243ad['type'])return;const {data:_0x37e02b}=_0x4243ad;return _0x37e02b&&'src'==_0x37e02b['key']?_0x37e02b['newValue']&&_0x37e02b['oldValue']?{'type':'format','content':o(_0x6cc36d,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x20bc9d=this['editor']['plugins']['get']('TrackChangesEditing');_0x20bc9d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x20bc9d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x20bc9d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x20bc9d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x179b6b=this['editor'],_0x52ce38=_0x179b6b['locale'];_0x179b6b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f4506=>{if('formatBlock'!=_0x5f4506['type']&&'formatInline'!=_0x5f4506['type'])return;const {data:_0x77b7a3}=_0x5f4506;if(!_0x77b7a3||'replaceImageSource'!=_0x77b7a3['commandName'])return;return{'type':'format','content':o(_0x52ce38,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x1b5c48{['afterInit'](){const _0x18a02d=this['editor'];if(!_0x18a02d['plugins']['has']('ImageStyleEditing'))return;const _0x1716fc=_0x18a02d['plugins']['get']('TrackChangesEditing'),_0x29a5e8=_0x18a02d['plugins']['get']('ImageUtils'),_0xe973d1={};_0x1716fc['enableCommand']('imageStyle',(_0x29d8ad,_0x2120ad)=>{const _0x40cfd1=_0x18a02d['plugins']['get']('Users')['me'],_0x266367=_0x18a02d['commands']['get']('imageStyle');let _0x3cb26e=_0x29a5e8['getClosestSelectedImageElement'](_0x18a02d['model']['document']['selection']),_0x47cf01=_0x18a02d['model']['createRangeOn'](_0x3cb26e),_0x2ba86=_0x266367['value'];if(_0x2ba86==_0x2120ad['value'])return;const _0x187d9f={'commandName':'imageStyle','commandParams':[_0x2120ad],'formatGroupId':_0x360b63()};_0x18a02d['model']['change'](()=>{if(_0x1716fc['getSuggestions']()['filter'](_0x2745ef=>_0x2745ef['isInContent']&&_0x40cfd1==_0x2745ef['author']&&('formatBlock'==_0x2745ef['type']||'formatInline'==_0x2745ef['type'])&&('imageStylePreApply'==_0x2745ef['subType']||'imageStylePostApply'==_0x2745ef['subType'])&&_0x2745ef['getFirstRange']()['isEqual'](_0x47cf01))['forEach'](_0x37789f=>_0x1716fc['discardSuggestion'](_0x37789f['head'])),_0x3cb26e=_0x29a5e8['getClosestSelectedImageElement'](_0x18a02d['model']['document']['selection']),_0x47cf01=_0x18a02d['model']['createRangeOn'](_0x3cb26e),_0x266367['refresh'](),_0x18a02d['commands']['get']('imageTypeInline')['refresh'](),_0x18a02d['commands']['get']('imageTypeBlock')['refresh'](),_0x2ba86=_0x266367['value'],_0x2ba86!=_0x2120ad['value'])return _0x29a5e8['isInlineImage'](_0x3cb26e)&&_0x266367['shouldConvertImageType'](_0x2120ad['value'],_0x3cb26e)?(_0x29d8ad({..._0x2120ad,'setImageSizes':!0x1}),_0x3cb26e=_0x29a5e8['getClosestSelectedImageElement'](_0x18a02d['model']['document']['selection']),void _0x1716fc['markBlockFormat'](_0x3cb26e,{..._0x187d9f,'commandReversedParams':[{'value':_0x2ba86||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x29a5e8['isBlockImage'](_0x3cb26e)?_0x1716fc['markBlockFormat'](_0x3cb26e,_0x187d9f,[],'imageStylePostApply'):_0x1716fc['markInlineFormat'](_0x47cf01,_0x187d9f,'imageStylePostApply'));});});for(const _0x45932f of _0x18a02d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xe973d1[_0x45932f['name']]=_0x45932f['title']['toLowerCase']();_0x1716fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1716fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1716fc['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1716fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4cd4fb])=>{_0x29a5e8['setImageNaturalSizeAttributes'](_0x4cd4fb['getContainedElement']());}),_0x1716fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1c5883,_0x402448)=>{_0x1716fc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1c5883,{'commandName':_0x402448['commandName'],'commandParams':_0x402448['commandReversedParams']});}),_0x1716fc['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x585aab,_0x56ab12){if(_0x53f48e(_0x585aab,_0x56ab12))return[_0x585aab,_0x56ab12];if(_0x53f48e(_0x56ab12,_0x585aab))return[_0x56ab12,_0x585aab];return null;});const _0x449d0e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x53f48e(_0x447246,_0xea3741){const _0x3b3d51=_0x449d0e['findIndex'](({type:_0x23921f,subType:_0x2d3652})=>_0x447246['type']==_0x23921f&&_0x447246['subType']==_0x2d3652),_0x23c4ad=_0x449d0e['findIndex'](({type:_0x320ea8,subType:_0x4af1cc})=>_0xea3741['type']==_0x320ea8&&_0xea3741['subType']==_0x4af1cc);if(_0x3b3d51<0x0||_0x23c4ad<0x0)return!0x1;const _0x4ec812=_0x447246['getFirstRange'](),_0x5ad831=_0xea3741['getFirstRange']();if((0x0==_0x3b3d51||0x1==_0x3b3d51)&&0x2==_0x23c4ad&&_0x4ec812['isIntersecting'](_0x5ad831))return!0x0;if(0x2==_0x3b3d51&&0x3==_0x23c4ad){const _0x544f6d=_0x1716fc['_findSuggestions'](_0x4ec812,'insertion')['filter'](({suggestion:_0x58df16,meta:_0x5b2445})=>_0x5b2445['isOwn']&&'convertInlineImageToBlock'==_0x58df16['subType']);if(_0x544f6d['length']>0x1&&_0x5ad831['end']['isEqual'](_0x4ec812['start']))return!0x0;if(0x1==_0x544f6d['length']&&(_0x4ec812['start']['isEqual'](_0x5ad831['end'])||_0x4ec812['end']['isEqual'](_0x5ad831['start'])))return!0x0;}if(0x3==_0x3b3d51&&0x3==_0x23c4ad&&_0x4ec812['start']['isBefore'](_0x5ad831['start'])){const _0x4f8295=_0x4ec812['end']['nodeAfter'],_0x3c084f=_0x5ad831['start']['nodeBefore'];return _0x29a5e8['isBlockImage'](_0x4f8295)&&_0x4f8295===_0x3c084f;}return!0x1;}_0x18a02d['model']['document']['registerPostFixer'](()=>{let _0x2d907f=!0x1;const _0x2a6255=Array['from'](_0x18a02d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf08e05,data:_0xf9bdce}of _0x2a6255){const {group:_0x2c2e50,type:_0x246cea,subType:_0x432794,id:_0x52e57c}=_0x1716fc['_splitMarkerName'](_0xf08e05);if('suggestion'==_0x2c2e50&&_0x1716fc['hasSuggestion'](_0x52e57c)){if('formatBlock'==_0x246cea&&('imageStylePreApply'==_0x432794||'imageStylePostApply'==_0x432794)){const _0x29d13b=_0x1716fc['getSuggestion'](_0x52e57c);if(_0xf9bdce['newRange']){const _0x1847a8=_0x29d13b['getFirstRange']()['getContainedElement']();if(_0x29a5e8['isBlockImage'](_0x1847a8))continue;_0x1716fc['discardSuggestion'](_0x29d13b),_0x2d907f=!0x0;}}if('insertion'==_0x246cea&&'imageCaption'==_0x432794&&!_0xf9bdce['newRange']){const _0x3f1468=_0x1716fc['getSuggestion'](_0x52e57c);_0x3f1468['next']&&_0x3f1468['next']['isInContent']&&(_0x1716fc['discardSuggestion'](_0x3f1468['next']),_0x2d907f=!0x0);}}}return _0x2d907f;}),this['_registerLegacyDescription'](_0xe973d1);}['_registerLegacyDescription'](_0x3afad2){const _0x215109=this['editor'],_0x24a4b4=_0x215109['locale'];_0x215109['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x404005=>{if('formatBlock'!=_0x404005['type']&&'formatInline'!=_0x404005['type'])return;const {data:_0x3d58ad}=_0x404005;if(!_0x3d58ad||'imageStyle'!=_0x3d58ad['commandName'])return;const _0x211378=_0x3d58ad['commandParams'][0x0]['value'];return _0x2ccbbd('side'===_0x211378?o(_0x24a4b4,'FORMAT_SIDE_IMAGE'):_0x3afad2[_0x211378]||_0x211378);function _0x2ccbbd(_0x4e01ef){return{'type':'format','content':o(_0x24a4b4,'*Format:*\x20%0',_0x4e01ef)};}});}}class at extends _0x1b5c48{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4d0485){super(_0x4d0485),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4cd0c0=this['editor'],_0x57ac63=_0x4cd0c0['commands']['get']('importWord'),_0x798f96=_0x4cd0c0['commands']['get']('trackChanges');_0x57ac63&&(_0x57ac63['on']('execute',(_0x119129,[,_0xd24fcd])=>{this['_trackChangesValueDuringImport']=_0x798f96['value'],_0xd24fcd['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x57ac63,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x57ac63,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x798f96['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4cd0c0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x132998,_0x170d40){const {suggestions:_0x4fc515}=_0x170d40,_0x2ac3f0=this['editor']['commands']['get']('trackChanges'),_0x39fcef=_0x2ac3f0['value'];this['_trackChangesValueDuringImport']!==_0x39fcef&&(_0x2ac3f0['execute'](),this['_trackChangesExecuted']=!0x0),_0x4fc515&&_0x4fc515['forEach'](({id:_0x15904c,type:_0x4a1f1f,author:_0x4a1451,created_at:_0x2a2c33})=>{const _0x29c508={'id':_0x15904c,'type':_0x4a1f1f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4a1451,'createdAt':_0x2a2c33?new Date(_0x2a2c33):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x29c508);});}}class ct extends _0x1b5c48{['afterInit'](){const _0x12b45e=this['editor'],_0x1964e5=_0x12b45e['plugins']['get']('TrackChangesEditing');if(_0x12b45e['plugins']['has']('IndentEditing')&&(_0x1964e5['enableCommand']('indent'),_0x1964e5['enableCommand']('outdent')),_0x12b45e['plugins']['has']('IndentBlock')){for(const _0x3bfe4b of['indentBlock','outdentBlock'])_0x1964e5['enableDefaultAttributesIntegration'](_0x3bfe4b);}const _0x4828d8=_0x12b45e['locale'];_0x1964e5['registerBlockAttribute']('blockIndent'),_0x1964e5['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4828d8,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a725b=this['editor'],_0x4750c4=_0x5a725b['locale'],_0x573195=_0x5a725b['plugins']['get']('TrackChangesEditing');_0x573195['descriptionFactory']['registerDescriptionCallback'](_0x94c6e=>{if('formatBlock'!=_0x94c6e['type'])return;const {data:_0x1c5b4c}=_0x94c6e;if(!_0x1c5b4c)return;if('indentBlock'!=_0x1c5b4c['commandName']&&'outdentBlock'!=_0x1c5b4c['commandName'])return;const _0x211799=_0x94c6e['getItems']()[0x0],_0x364d40=_0x573195['descriptionFactory']['getItemLabel'](_0x211799);return'indentBlock'==_0x1c5b4c['commandName']?{'type':'format','content':o(_0x4750c4,'*Indent:*\x20%0',_0x364d40)}:'outdentBlock'==_0x1c5b4c['commandName']?{'type':'format','content':o(_0x4750c4,'*Outdent:*\x20%0',_0x364d40)}:void 0x0;});}}class ut extends _0x1b5c48{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x1b5c48{['afterInit'](){const _0x3fc921=this['editor'];if(!_0x3fc921['plugins']['has']('LinkEditing'))return;const _0x471055=_0x3fc921['plugins']['get']('TrackChangesEditing'),_0x4aa049=_0x3fc921['commands']['get']('link');_0x471055['enableDefaultAttributesIntegration']('link'),_0x471055['enableDefaultAttributesIntegration']('unlink'),_0x471055['registerInlineAttribute']('linkHref');for(const _0x25ae6c of _0x4aa049['manualDecorators'])_0x471055['registerInlineAttribute'](_0x25ae6c['id']),_0x471055['descriptionFactory']['registerAttributeLabel'](_0x25ae6c['id'],'link\x20('+_0x25ae6c['label']['toLowerCase']()+')');_0x471055['descriptionFactory']['registerDescriptionCallback'](_0x5a8687=>{if('attribute'!=_0x5a8687['type'])return;const {data:_0x28171b}=_0x5a8687;if(!_0x28171b||'linkHref'!=_0x28171b['key'])return;const _0x21c195=_0x28171b['newValue'],_0x2eaecd=_0x3fc921['locale'];return{'type':'format','content':null==_0x21c195?o(_0x2eaecd,'*Remove\x20link*'):o(_0x2eaecd,'*Set\x20link:*\x20%0','\x22'+_0x21c195+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f6110=this['editor'],_0x10e96e=_0x4f6110['locale'];_0x4f6110['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27390e=>{if('formatInline'!=_0x27390e['type'])return;const {data:_0x5a175e}=_0x27390e;if(_0x5a175e){if('link'==_0x5a175e['commandName']){const _0x45ca11=_0x5a175e['commandParams'][0x0];return{'type':'format','content':o(_0x10e96e,'*Set\x20link:*\x20%0','\x22'+_0x45ca11+'\x22')};}return'unlink'==_0x5a175e['commandName']?{'type':'format','content':o(_0x10e96e,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x1b5c48{['afterInit'](){const _0xcf520c=this['editor'],_0x47e1c=_0xcf520c['locale'];if(!_0xcf520c['plugins']['has']('LegacyListEditing'))return;const _0x4c842e=_0xcf520c['plugins']['get']('TrackChangesEditing'),_0x1f4d6d=_0xcf520c['plugins']['has']('LegacyTodoListEditing');function _0x47b4db(_0x50deaf){return()=>{const _0x41cd98=_0xcf520c['model']['document']['selection'],_0x12296e=_0xcf520c['commands']['get'](_0x50deaf);if(_0x12296e['value'])return void _0xcf520c['execute']('paragraph',{});const _0x64bba0=_0x50deaf['slice'](0x0,-0x4),_0x1b8631=function(_0x5dd1ad,_0x356a33,_0x521abf){let _0x259661=Array['from'](_0x5dd1ad)['filter'](_0x298452=>function(_0x1ff0bd,_0x20ddc1){return _0x20ddc1['checkChild'](_0x1ff0bd['parent'],'listItem')&&!_0x20ddc1['isObject'](_0x1ff0bd);}(_0x298452,_0x521abf));_0x259661=_0x259661['filter'](_0xf85d16=>!_0xf85d16['is']('element','listItem')||_0xf85d16['getAttribute']('listType')!=_0x356a33);const _0x199ad1=new Set();for(const _0x874e51 of _0x259661)_0x874e51['is']('element','listItem')?_0x199ad1['add'](fe(_0x874e51)):_0x199ad1['add'](_0x874e51);return Array['from'](_0x199ad1);}(_0x41cd98['getSelectedBlocks'](),_0x64bba0,_0xcf520c['model']['schema']);_0xcf520c['model']['change'](()=>{for(const _0x13ddf2 of _0x1b8631)_0x4c842e['markBlockFormat'](_0x13ddf2,{'commandName':_0x50deaf,'commandParams':[{'forceValue':!_0x12296e['value']}],'formatGroupId':'blockName'},ue(_0x13ddf2));});};}function _0x48bd8a(_0x3d93c0){return()=>{const _0xaa0673=function(_0x530150){let _0x6a3f08=Array['from'](_0x530150);const _0x1d48bb=_0x6a3f08['findIndex'](_0x3c9fe9=>'listItem'!=_0x3c9fe9['name']);return _0x1d48bb>-0x1&&(_0x6a3f08=_0x6a3f08['slice'](0x0,_0x1d48bb)),_0x6a3f08;}(_0xcf520c['model']['document']['selection']['getSelectedBlocks']()),_0x38088f=_0xcf520c['model']['createRange'](_0xcf520c['model']['createPositionAt'](_0xaa0673[0x0],'before'),_0xcf520c['model']['createPositionAt'](_0xaa0673[_0xaa0673['length']-0x1],'end'));_0xcf520c['model']['change'](()=>{_0x4c842e['markBlockFormat'](_0x38088f,{'commandName':_0x3d93c0,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3b938e){const _0x508a0e=new Set();for(const _0x3887c2 of _0x3b938e){let _0x234a9e=_0x3887c2['nextSibling'];for(;_0x234a9e&&_0x234a9e['getAttribute']('listIndent')>_0x3887c2['getAttribute']('listIndent');)_0x508a0e['add'](_0x234a9e),_0x234a9e=_0x234a9e['nextSibling'];}return Array['from'](_0x508a0e);}(_0xaa0673));});};}_0x4c842e['enableCommand']('numberedList',_0x47b4db('numberedList')),_0x4c842e['enableCommand']('bulletedList',_0x47b4db('bulletedList')),_0x1f4d6d&&_0x4c842e['enableCommand']('todoList',_0x47b4db('todoList')),_0x4c842e['enableCommand']('indentList',_0x48bd8a('indentList')),_0x4c842e['enableCommand']('outdentList',_0x48bd8a('outdentList')),_0x1f4d6d&&_0x4c842e['enableCommand']('checkTodoList',()=>{const _0x1d2ad9=_0xcf520c['commands']['get']('checkTodoList'),_0x5b6184=Array['from'](_0x1d2ad9['_selectedElements']);_0x5b6184['filter'](_0x256142=>_0x256142['getAttribute']('todoListChecked')!=_0x1d2ad9['value']),_0xcf520c['model']['change'](()=>{for(const _0x2504fc of _0x5b6184)_0x4c842e['markBlockFormat'](_0x2504fc,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1d2ad9['value']}]});});}),_0x4c842e['descriptionFactory']['registerElementLabel']('listItem',_0x5a7cca=>o(_0x47e1c,'ELEMENT_LIST_ITEM',_0x5a7cca)),_0x4c842e['descriptionFactory']['registerDescriptionCallback'](_0x3d832f=>{if('formatBlock'!=_0x3d832f['type']&&'formatInline'!=_0x3d832f['type'])return;const {data:_0x393701}=_0x3d832f;if(_0x393701){if('numberedList'==_0x393701['commandName']||'bulletedList'==_0x393701['commandName']||'todoList'==_0x393701['commandName'])switch(_0x393701['commandName']['replace']('List','')){case'bulleted':return _0x16deaa(o(_0x47e1c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x16deaa(o(_0x47e1c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x16deaa(o(_0x47e1c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x393701['commandName'])return{'type':'format','content':o(_0x47e1c,'*Indent:*\x20%0',o(_0x47e1c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x393701['commandName'])return{'type':'format','content':o(_0x47e1c,'*Outdent:*\x20%0',o(_0x47e1c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x393701['commandName'])return _0x393701['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47e1c,'*Check\x20item*')}:{'type':'format','content':o(_0x47e1c,'*Uncheck\x20item*')};}function _0x16deaa(_0x1d322a){return{'type':'format','content':o(_0x47e1c,'*Change\x20to:*\x20%0',_0x1d322a)};}});}}function fe(_0xdaca83){const _0x15d385=_0xdaca83['getAttribute']('listIndent');if(0x0==_0x15d385)return _0xdaca83;let _0x4ec5e4=_0xdaca83;for(;_0xdaca83['previousSibling']&&_0xdaca83['previousSibling']['is']('element','listItem');){const _0x3d552b=_0xdaca83['previousSibling']['getAttribute']('listIndent');if(_0x3d552b==_0x15d385)_0x4ec5e4=_0xdaca83['previousSibling'];else{if(_0x3d552b<_0x15d385)break;}_0xdaca83=_0xdaca83['previousSibling'];}return _0x4ec5e4;}function ue(_0x5e91aa){const _0x3ebe9c=[];if(_0x5e91aa['is']('element','listItem')&&_0x5e91aa['getAttribute']('listIndent')>0x0){let _0x46b57d=_0x5e91aa['nextSibling'];for(;_0x46b57d&&'listItem'==_0x46b57d['name']&&_0x46b57d['getAttribute']('listIndent')==_0x5e91aa['getAttribute']('listIndent');)_0x3ebe9c['push'](_0x46b57d),_0x46b57d=_0x46b57d['nextSibling'];}return _0x3ebe9c;}class W extends _0x1b5c48{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x329a5d=this['editor']['config']['get']('list.properties'),_0x3e834a=this['editor']['plugins']['get']('TrackChangesEditing');_0x329a5d['styles']&&_0x3e834a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x329a5d['reversed']&&_0x3e834a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x329a5d['startIndex']&&_0x3e834a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3e834a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xa01b27,_0x1a898b={}){const _0x426ee4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49ad48=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x426ee4['markMultiRangeBlockFormat'](_0x49ad48,{'commandName':'listStyle','commandParams':[{'type':_0x1a898b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x254e8c,_0x5f5645={}){const _0x4f4366=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26b8ac=this['_getSuggestionBlocks'](_0x2bbb96=>_0x2bbb96['is']('element','listItem')&&'numbered'===_0x2bbb96['getAttribute']('listType'));if(_0x26b8ac['length']<0x1)return;const _0x2d5cf8=_0x26b8ac['map'](_0x2f2426=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2f2426,'before'),this['editor']['model']['createPositionAt'](_0x2f2426,0x0)));this['editor']['model']['change'](()=>{_0x4f4366['markMultiRangeBlockFormat'](_0x2d5cf8,{'commandName':'listReversed','commandParams':[{'reversed':_0x5f5645['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4034df,_0x50725d={}){const _0x39a6c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x186d93=this['_getSuggestionBlocks'](_0xf7dc48=>_0xf7dc48['is']('element','listItem')&&'numbered'===_0xf7dc48['getAttribute']('listType'));if(_0x186d93['length']<0x1)return;const _0x4725ec=_0x186d93['map'](_0x256a91=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x256a91,'before'),this['editor']['model']['createPositionAt'](_0x256a91,0x0)));this['editor']['model']['change'](()=>{_0x39a6c0['markMultiRangeBlockFormat'](_0x4725ec,{'commandName':'listStart','commandParams':[{'startIndex':_0x50725d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x19e6cd){if('formatBlock'!=_0x19e6cd['type']&&'formatInline'!=_0x19e6cd['type'])return;const _0x4d1dd4=this['editor']['locale'],{data:_0x177383}=_0x19e6cd;if(!_0x177383)return;let _0x4f1ac1,_0x15cd41;switch(_0x177383['commandName']){case'listStyle':_0x4f1ac1='*Change\x20to:*\x20%0',_0x15cd41={'type':'format','content':o(_0x4d1dd4,_0x4f1ac1,o(_0x4d1dd4,this['_getTranslationKeyForListStyle'](_0x177383['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4f1ac1=_0x177383['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x15cd41={'type':'format','content':o(_0x4d1dd4,_0x4f1ac1)};break;case'listStart':_0x4f1ac1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x15cd41={'type':'format','content':o(_0x4d1dd4,_0x4f1ac1,_0x177383['commandParams'][0x0]['startIndex'])};}return _0x15cd41;}['_getSuggestionBlocksForListStyle'](){const _0x324d29=this['editor']['plugins']['get']('LegacyListUtils');let _0x44118c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x44118c[0x0]?.['is']('element','listItem')&&_0x44118c['unshift'](..._0x324d29['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x44118c[_0x44118c['length']-0x1]?.['is']('element','listItem')&&_0x44118c['push'](..._0x324d29['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x44118c=[...new Set(_0x44118c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x44118c=_0x44118c['filter'](_0x5be5f4=>_0x5be5f4['is']('element','listItem'))),_0x44118c;}['_getSuggestionBlocks'](_0x2fc944){const _0x3d6352=this['editor']['plugins']['get']('LegacyListUtils');let _0x24c2be=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2fc944)['map'](_0x1dc171=>{const _0x592ac9=this['editor']['model']['createPositionAt'](_0x1dc171,0x0);return[..._0x3d6352['getSiblingNodes'](_0x592ac9,'backward'),..._0x3d6352['getSiblingNodes'](_0x592ac9,'forward')];})['flat']();return _0x24c2be=[...new Set(_0x24c2be)],_0x24c2be;}['_getTranslationKeyForListStyle'](_0x5c7590){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5c7590)||'default')['toUpperCase']()+'_LIST_'+_0x5c7590['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x1b5c48{['afterInit'](){const _0x1d2c67=this['editor'];if(!_0x1d2c67['plugins']['has']('MediaEmbedEditing'))return;const _0x1b93d8=_0x1d2c67['plugins']['get']('TrackChangesEditing'),_0xc54a3c=_0x1d2c67['locale'];_0x1b93d8['enableCommand']('mediaEmbed'),_0x1b93d8['descriptionFactory']['registerElementLabel']('media',_0x4966fc=>o(_0xc54a3c,'ELEMENT_MEDIA',_0x4966fc)),_0x1d2c67['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x14abde,{writer:_0x537fd8,options:_0x20fcd7})=>{if(_0x20fcd7['showSuggestionHighlights'])return _0x537fd8['createEmptyElement']('div');},'converterPriority':'high'}),_0x1d2c67['data']['downcastDispatcher']['on']('attribute:url:media',(_0x26d956,_0x5690b2,_0x5ab42e)=>{_0x5ab42e['options']['showSuggestionHighlights']&&_0x26d956['stop']();},{'priority':'high'});}}class mt extends _0x1b5c48{['afterInit'](){const _0x2409a9=this['editor'];_0x2409a9['plugins']['has']('MentionEditing')&&_0x2409a9['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x1b5c48{['afterInit'](){const _0x51b9d=this['editor'];if(!_0x51b9d['plugins']['has']('MergeFieldsEditing'))return;_0x51b9d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x51b9d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x3a01b3=_0x51b9d['plugins']['get']('TrackChangesEditing'),_0x479a53=_0x51b9d['locale'];_0x3a01b3['descriptionFactory']['registerElementLabel']('mergeField',_0x5d3964=>o(_0x479a53,'ELEMENT_MERGE_FIELD',_0x5d3964)),_0x3a01b3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2a69fd=>o(_0x479a53,'ELEMENT_MERGE_FIELD',_0x2a69fd)),_0x3a01b3['descriptionFactory']['registerDescriptionCallback'](_0x49ef54=>{if('insertion'!=_0x49ef54['type']&&'deletion'!=_0x49ef54['type'])return;const _0x336571=_0x49ef54['getContainedElement']();if(null==_0x336571)return;if(!_0x336571['is']('element','mergeField')&&!_0x336571['is']('element','mergeFieldBlock'))return;const _0x27a78f=_0x51b9d['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x336571['getAttribute']('id'));return'insertion'==_0x49ef54['type']?{'type':'insertion','content':o(_0x479a53,'*Insert:*\x20%0','\x22'+_0x27a78f+'\x22\x20'+o(_0x479a53,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x479a53,'*Remove:*\x20%0','\x22'+_0x27a78f+'\x22\x20'+o(_0x479a53,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x1b5c48{['afterInit'](){const _0x3a3f6c=this['editor'],_0x2f3f0d=_0x3a3f6c['plugins']['get']('TrackChangesEditing');_0x3a3f6c['plugins']['has']('MultiLevelList')&&(_0x2f3f0d['enableDefaultAttributesIntegration']('multiLevelList'),_0x2f3f0d['registerBlockAttribute']('listMarkerStyle'),_0x2f3f0d['descriptionFactory']['registerDescriptionCallback'](_0x323757=>this['handleDescriptions'](_0x323757)));}['handleDescriptions'](_0x198cfd){const _0x26c78a=this['editor']['locale'],{data:_0x2fd1c8}=_0x198cfd,_0x566979={'type':'format','content':''};if(_0x2fd1c8&&'listMarkerStyle'==_0x2fd1c8['key']){if(!_0x2fd1c8['oldValue'])return{'type':'format','content':o(_0x26c78a,'*Set\x20format:*\x20%0',o(_0x26c78a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2fd1c8['newValue']+')'};if(!_0x2fd1c8['newValue']){let _0x3766bd=_0x198cfd['head'];for(;_0x3766bd;){if(_0x3766bd['data']&&'listType'==_0x3766bd['data']['key']&&_0x3766bd['data']['newValue'])return _0x566979;_0x3766bd=_0x3766bd['next'];}return{'type':'format','content':o(_0x26c78a,'*Remove\x20format:*\x20%0',o(_0x26c78a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2fd1c8['oldValue']+')'};}}}}class kt extends _0x1b5c48{['afterInit'](){const _0x45bfba=this['editor'];if(!_0x45bfba['plugins']['has']('PageBreakEditing'))return;_0x45bfba['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3bb0df=_0x45bfba['plugins']['get']('TrackChangesEditing'),_0x3a2b82=_0x45bfba['locale'];_0x3bb0df['descriptionFactory']['registerElementLabel']('pageBreak',_0x786bde=>o(_0x3a2b82,'ELEMENT_PAGE_BREAK',_0x786bde));}}class bt extends _0x1b5c48{['afterInit'](){const _0x1c9618=this['editor'];if(!_0x1c9618['plugins']['has']('Paragraph'))return;const _0x1aa80b=_0x1c9618['locale'],_0x201033=_0x1c9618['plugins']['get']('TrackChangesEditing');_0x201033['descriptionFactory']['registerElementLabel']('paragraph',_0x378f66=>o(_0x1aa80b,'ELEMENT_PARAGRAPH',_0x378f66)),_0x201033['enableDefaultAttributesIntegration']('paragraph'),_0x201033['enableCommand']('insertParagraph'),_0x1c9618['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1c9618),{'priority':'highest'}),_0x1c9618['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x29944c,_0xdea910,_0x3780af)=>{_0x3780af['options']['showSuggestionHighlights']&&nr(_0x1c9618,{'showActiveMarker':!0x1})(_0x29944c,_0xdea910,_0x3780af);},{'priority':'highest'});const _0x3af714=_0x201033['descriptionFactory'];_0x3af714['registerDescriptionCallback'](_0x369a4a=>{if('insertion'!==_0x369a4a['type'])return;const {start:_0x475712,end:_0x3be71f}=_0x369a4a['getFirstRange']();if(!_0x475712['isTouching'](_0x3be71f)||!_0x475712['nodeAfter'])return;const _0x57285c=_0x1c9618['model']['schema'],_0x254290=_0x475712['nodeAfter'];return _0x57285c['isBlock'](_0x254290)&&!_0x57285c['isLimit'](_0x254290)&&_0x57285c['checkChild'](_0x254290,'$text')?{'type':'insertion','content':o(_0x1aa80b,'*Insert:*\x20%0',_0x3af714['getItemLabel'](_0x254290,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57687b=this['editor'],_0x26f3ff=_0x57687b['locale'];_0x57687b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3226b1=>{if('formatBlock'!=_0x3226b1['type'])return;const {data:_0x432da2}=_0x3226b1;return _0x432da2&&'paragraph'==_0x432da2['commandName']?{'type':'format','content':o(_0x26f3ff,'*Change\x20to:*\x20%0',o(_0x26f3ff,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1665cc,{showActiveMarker:_0x295bfa=!0x0}={}){return(_0x356f42,_0x359fde,_0x3616db)=>{const _0x431505=_0x1665cc['plugins']['get']('TrackChangesEditing'),_0xdc0e95=_0x359fde['markerRange']['start'],_0x37f534=_0x359fde['markerRange']['end'],_0x385fb0=_0x1665cc['model']['schema'];if(!_0xdc0e95['isTouching'](_0x37f534)||!_0xdc0e95['nodeAfter'])return;const _0x39b6a0=_0xdc0e95['nodeAfter'];if(_0x385fb0['isBlock'](_0x39b6a0)&&!_0x385fb0['isLimit'](_0x39b6a0)&&_0x385fb0['checkChild'](_0x39b6a0,'$text')){if(!_0x3616db['consumable']['consume'](_0x359fde['markerRange'],_0x356f42['name']))return;const {authorId:_0x3f2637}=_0x431505['_splitMarkerName'](_0x359fde['markerName']),_0x4c894e=_0x3616db['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3f2637}),_0xbf84ca=_0x3616db['mapper']['toViewPosition'](_0x37f534);_0x295bfa&&_0x431505['activeMarkers']['includes'](_0x359fde['markerName'])&&_0x3616db['writer']['addClass']('ck-suggestion-marker--active',_0x4c894e),_0x3616db['writer']['insert'](_0xbf84ca,_0x4c894e),_0x3616db['mapper']['bindElementToMarker'](_0x4c894e,_0x359fde['markerName']);}};}class wt extends _0x1b5c48{['afterInit'](){const _0x490a11=this['editor'];if(!_0x490a11['plugins']['has']('RemoveFormatEditing'))return;_0x490a11['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e878e=this['editor'];_0x4e878e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x565d56=>{if('formatBlock'!=_0x565d56['type']&&'formatInline'!=_0x565d56['type'])return;const {data:_0x124c11}=_0x565d56;return _0x124c11&&'removeFormat'==_0x124c11['commandName']?{'type':'format','content':o(_0x4e878e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x1b5c48{['afterInit'](){const _0x12dbc7=this['editor'];if(!_0x12dbc7['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x7b9392=_0x12dbc7['plugins']['get']('TrackChangesEditing');_0x7b9392['enableCommand']('goToPreviousRestrictedEditingException'),_0x7b9392['enableCommand']('goToNextRestrictedEditingException');const _0x5d94f0=_0x12dbc7['plugins']['get']('RestrictedEditingModeEditing');_0x5d94f0['enableCommand']('trackChanges'),_0x5d94f0['enableCommand']('acceptSuggestion'),_0x5d94f0['enableCommand']('discardSuggestion'),_0x5d94f0['enableCommand']('acceptAllSuggestions'),_0x5d94f0['enableCommand']('discardAllSuggestions'),_0x5d94f0['enableCommand']('acceptSelectedSuggestions'),_0x5d94f0['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x1b5c48{static get['requires'](){return[_0x449e5b];}['init'](){const _0x377eea=this['editor'],_0x522120=_0x377eea['plugins']['get']('TrackChangesEditing');_0x522120['enableCommand']('shiftEnter'),_0x377eea['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x377eea),{'priority':'high'}),_0x377eea['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x377eea),{'priority':'high'}),_0x377eea['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c908,_0x31015e,_0x139705)=>{_0x139705['options']['showSuggestionHighlights']&&ge(_0x377eea,{'showActiveMarker':!0x1})(_0x4c908,_0x31015e,_0x139705);}),_0x522120['descriptionFactory']['registerElementLabel']('softBreak',_0x14642f=>o(_0x377eea['locale'],'ELEMENT_LINE_BREAK',_0x14642f));}}function ge(_0x1f3d85,{showActiveMarker:_0x383c7e=!0x0}={}){return(_0x3fd41f,_0x3ac5d5,_0x3ca31b)=>{const _0xe2e365=_0x1f3d85['plugins']['get']('TrackChangesEditing');if(!_0x3ca31b['consumable']['test'](_0x3ac5d5['markerRange'],_0x3fd41f['name']))return;const _0x14091b=_0x1f3d85['model'];for(const _0x33c18c of _0x3ac5d5['markerRange']['getItems']()){if(!_0x33c18c['is']('element','softBreak'))continue;const _0x2df587='deletion'==_0x3ac5d5['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2d2928}=_0xe2e365['_splitMarkerName'](_0x3ac5d5['markerName']),_0x57eff7=_0x3ca31b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2df587,'data-author-id':_0x2d2928}),_0x2fc9c6=_0x3ca31b['mapper']['toViewPosition'](_0x14091b['createPositionBefore'](_0x33c18c));_0x383c7e&&_0xe2e365['activeMarkers']['includes'](_0x3ac5d5['markerName'])&&_0x3ca31b['writer']['addClass']('ck-suggestion-marker--active',_0x57eff7),_0x3ca31b['writer']['insert'](_0x2fc9c6,_0x57eff7),_0x3ca31b['mapper']['bindElementToMarker'](_0x57eff7,_0x3ac5d5['markerName']);}};}class St extends _0x1b5c48{['afterInit'](){const _0x5e3b7d=this['editor'],_0x7d7683=_0x5e3b7d['model'],_0x2d411d=_0x5e3b7d['locale'];if(!_0x5e3b7d['plugins']['has']('StandardEditingModeEditing'))return;const _0xff0a85=_0x5e3b7d['plugins']['get']('TrackChangesEditing'),_0x313e32='restrictedEditingException',_0xe5a5b4=_0x5e3b7d['commands']['get'](_0x313e32);_0xff0a85['enableCommand'](_0x313e32,(_0x26ba67,_0x225648={})=>{const _0x9bc9b1=_0x7d7683['document']['selection'];if(_0x9bc9b1['isCollapsed'])return void _0x26ba67(_0x225648);const _0x4d6123=void 0x0!==_0x225648['forceValue']?_0x225648['forceValue']:!_0xe5a5b4['value'];_0x7d7683['change'](()=>{const _0x1f4d5e=Array['from'](_0x9bc9b1['getRanges']());for(const _0xa7cf5f of _0x1f4d5e){const _0x1cb5e3=_0x4d6123?[_0xa7cf5f]:io(_0x313e32,_0xa7cf5f,_0x7d7683);for(const _0x98f214 of _0x1cb5e3)_0xff0a85['markInlineFormat'](_0x98f214,{'commandName':_0x313e32,'commandParams':[{'forceValue':_0x4d6123}]});}});}),_0xff0a85['descriptionFactory']['registerDescriptionCallback'](_0x314e7c=>{if('formatBlock'!=_0x314e7c['type']&&'formatInline'!=_0x314e7c['type'])return;const {data:_0x116110}=_0x314e7c;return _0x116110&&_0x116110['commandName']==_0x313e32?_0x116110['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2d411d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2d411d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x1b5c48{['afterInit'](){const _0x190897=this['editor'];if(!_0x190897['plugins']['has']('Style')||!_0x190897['plugins']['has']('DataSchema'))return;const _0x3dce2e=_0x190897['plugins']['get']('TrackChangesEditing'),_0x27b284=_0x190897['locale'],_0x76a644=_0x190897['config']['get']('style')||{},_0x24e37c=_0x190897['plugins']['get']('GeneralHtmlSupport'),_0x3e29e8=_0x190897['plugins']['get']('StyleUtils')['normalizeConfig'](_0x190897['plugins']['get']('DataSchema'),_0x76a644['definitions']);_0x3dce2e['enableDefaultAttributesIntegration']('style');const _0x5764b3=new Set();for(const _0x588249 of _0x3e29e8['block']){const _0x396aa5=_0x24e37c['getGhsAttributeNameForElement'](_0x588249['element']);_0x5764b3['add'](_0x396aa5);}const _0x2c9ec8=new Set();for(const _0x3b1a7b of _0x3e29e8['inline']){const _0x108c65=_0x24e37c['getGhsAttributeNameForElement'](_0x3b1a7b['element']);_0x2c9ec8['add'](_0x108c65);for(const _0x4735ca of _0x3b1a7b['ghsAttributes'])_0x2c9ec8['add'](_0x4735ca);}for(const _0xdb3723 of _0x5764b3)_0x3dce2e['registerBlockAttribute'](_0xdb3723),_0x3dce2e['descriptionFactory']['registerAttributeLabel'](_0xdb3723,o(_0x27b284,'FORMAT_STYLE'));for(const _0x5ef46b of _0x2c9ec8)_0x3dce2e['registerInlineAttribute'](_0x5ef46b),_0x3dce2e['descriptionFactory']['registerAttributeLabel'](_0x5ef46b,o(_0x27b284,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd471c5=this['editor'],_0x23d052=_0xd471c5['locale'];_0xd471c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26a245=>{if('formatBlock'!=_0x26a245['type']&&'formatInline'!=_0x26a245['type'])return;const {data:_0x3014f6}=_0x26a245;return _0x3014f6&&'style'===_0x3014f6['commandName']?_0x3014f6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23d052,'*Set\x20format:*\x20%0',_0x3014f6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x23d052,'*Remove\x20format:*\x20%0',_0x3014f6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x1b5c48{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x597753){super(_0x597753),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1116e0=this['editor'],_0x4e3d05=_0x1116e0['model']['document']['selection'];if(!_0x1116e0['plugins']['has']('TableEditing'))return;const _0x2e03d7=_0x1116e0['locale'],_0x63a67f=_0x1116e0['plugins']['get']('TrackChangesEditing'),_0x58e8fc=_0x1116e0['plugins']['get']('TableUtils');_0x63a67f['descriptionFactory']['registerElementLabel']('table',_0x3be3bb=>o(_0x2e03d7,'ELEMENT_TABLE',_0x3be3bb)),this['_setupColumnsRowsFixing'](),_0x63a67f['enableCommand']('insertTable'),_0x63a67f['enableCommand']('selectTableRow'),_0x63a67f['enableCommand']('selectTableColumn');for(const _0x23a5a2 of['insertTableRowAbove','insertTableRowBelow']){const _0x153ea8=_0x1116e0['commands']['get'](_0x23a5a2);_0x63a67f['enableCommand'](_0x23a5a2,_0xc6ecdd=>{_0x1116e0['model']['change'](_0x842674=>{_0xc6ecdd();const _0x38b10e='above'===_0x153ea8['order'],_0x254125=_0x58e8fc['getSelectionAffectedTableCells'](_0x4e3d05),_0x2bab81=_0x58e8fc['getRowIndexes'](_0x254125),_0x21635f=_0x38b10e?_0x2bab81['first']-0x1:_0x2bab81['last']+0x1,_0x3b5c9e=_0x254125[0x0]['findAncestor']('table'),_0x8cdbf0=_0x58e8fc['createTableWalker'](_0x3b5c9e,{'startRow':_0x21635f,'endRow':_0x21635f}),_0x155a6e=Array['from'](_0x8cdbf0)['map'](_0x41e239=>_0x842674['createRangeOn'](_0x41e239['cell']));_0x63a67f['markMultiRangeInsertion'](_0x155a6e,'tableRow');});});}for(const _0x36b8ce of['insertTableColumnLeft','insertTableColumnRight']){const _0x3daf3a=_0x1116e0['commands']['get'](_0x36b8ce);_0x63a67f['enableCommand'](_0x36b8ce,_0x577951=>{_0x1116e0['model']['change'](_0x3085e6=>{_0x577951();const _0x7df88d='left'===_0x3daf3a['order'],_0x4fe2b8=_0x58e8fc['getSelectionAffectedTableCells'](_0x4e3d05),_0x40b555=_0x58e8fc['getColumnIndexes'](_0x4fe2b8),_0x2614ca=_0x7df88d?_0x40b555['first']-0x1:_0x40b555['last']+0x1,_0xb4f9b7=_0x4fe2b8[0x0]['findAncestor']('table'),_0x5c2725=_0x58e8fc['createTableWalker'](_0xb4f9b7,{'startRow':0x0,'column':_0x2614ca,'includeAllSlots':!0x1}),_0x329284=Array['from'](_0x5c2725)['map'](_0x480461=>_0x3085e6['createRangeOn'](_0x480461['cell']));_0x63a67f['markMultiRangeInsertion'](_0x329284,'tableColumn');});});}for(const _0x17d517 of['removeTableRow','removeTableColumn']){const _0x3eab9e=_0x17d517['substr'](0xb),_0x2aebc2=_0x3eab9e['toLowerCase'](),_0x545670=_0x2aebc2['substr'](0x0,0x3)+'span',_0x31ad27='table'+_0x3eab9e,_0x158609='min'+_0x3eab9e,_0x3a28d0='max'+_0x3eab9e;_0x63a67f['enableCommand'](_0x17d517,()=>{_0x1116e0['model']['change'](_0x2f1b1d=>{const _0x37e226=_0x58e8fc['getSelectionAffectedTableCells'](_0x4e3d05),_0xc7e3b=_0x37e226[0x0]['findAncestor']('table');let _0x35d20b;if('removeTableRow'==_0x17d517){const _0xbc538c=_0x58e8fc['getRowIndexes'](_0x37e226);_0x35d20b={'startRow':_0xbc538c['first'],'endRow':_0xbc538c['last'],'includeAllSlots':!0x0};}else{const _0x1c152d=_0x58e8fc['getColumnIndexes'](_0x37e226);_0x35d20b={'startColumn':_0x1c152d['first'],'endColumn':_0x1c152d['last'],'includeAllSlots':!0x0};}const _0x39e892=_0x58e8fc['createTableWalker'](_0xc7e3b,_0x35d20b),_0x160489=Array['from'](_0x39e892)['map'](({cell:_0xc03155})=>_0xc03155),_0x3aa52b=be(_0x160489['filter'](_0xffa7c9=>_0xffa7c9['hasAttribute'](_0x545670))),_0x274d33=be(_0x160489['filter'](_0x24d9e9=>!_0x24d9e9['hasAttribute'](_0x545670)))['map'](_0x4b8659=>_0x2f1b1d['createRangeOn'](_0x4b8659)),_0x10e4f9=_0x63a67f['markMultiRangeDeletion'](_0x274d33,_0x31ad27);if(_0x10e4f9&&('tableRow'==_0x10e4f9['subType']||'tableColumn'==_0x10e4f9['subType'])){const _0x5a55c3=this['_getSuggestionCoords'](_0x10e4f9);for(const _0x36fd23 of _0x3aa52b){const _0x389662=_0x2f1b1d['createRangeOn'](_0x36fd23),_0x57b943=_0x58e8fc['getCellLocation'](_0x36fd23),_0x52249a=_0x36fd23['getAttribute'](_0x545670)-0x1,_0x1efe35=_0x5a55c3[_0x158609],_0xbef2b4=_0x5a55c3[_0x3a28d0];_0x1efe35<=_0x57b943[_0x2aebc2]&&_0x57b943[_0x2aebc2]+_0x52249a<=_0xbef2b4&&_0x10e4f9['addRange'](_0x389662);}}});});}function _0x3de79c(_0x28050e){const _0x2bcf16=Array['from'](_0x4e3d05['getRanges']())['map'](_0x2b738b=>_0x2ad496['fromRange'](_0x2b738b));_0x1116e0['model']['change'](_0x33fc81=>{const _0x4a9ab1=_0x33fc81['batch'];_0x28050e=_0x28050e['filter'](_0x531531=>'$graveyard'!=_0x531531['root']['rootName']),_0x33fc81['setSelection'](_0x28050e),_0x1116e0['commands']['get']('removeTableRow')['refresh'](),_0x1116e0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1116e0['model']['enqueueChange'](()=>{_0x1116e0['model']['enqueueChange'](_0x4a9ab1,_0x5ba4d2=>{const _0x4d37de=_0x2bcf16['filter'](_0x5731e1=>'$graveyard'!=_0x5731e1['root']['rootName']);_0x4d37de['length']>0x0&&_0x5ba4d2['setSelection'](_0x4d37de);for(const _0x32b4e4 of _0x2bcf16)_0x32b4e4['detach']();});});});}function _0x447daa(_0x313edb){_0x1116e0['model']['change'](_0x108b6a=>{const _0x517894=Array['from'](_0x4e3d05['getRanges']())['map'](_0xf8664=>_0x2ad496['fromRange'](_0xf8664)),_0x3cfc0e=[];for(const _0xaab0f6 of _0x313edb)for(const _0x639ca5 of _0xaab0f6['getItems']({'shallow':!0x0}))_0x3cfc0e['push'](_0x639ca5);for(const _0x3aa0ff of _0x3cfc0e)'$graveyard'!=_0x3aa0ff['root']['rootName']&&(_0x108b6a['setSelection'](_0x108b6a['createPositionAt'](_0x3aa0ff,0x0)),_0x1116e0['commands']['get']('removeTableColumn')['refresh'](),_0x1116e0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5a10ae=_0x517894['filter'](_0x4b723e=>'$graveyard'!=_0x4b723e['root']['rootName']);_0x5a10ae['length']>0x0&&_0x108b6a['setSelection'](_0x5a10ae);for(const _0x231c65 of _0x517894)_0x231c65['detach']();});}function _0x4b6be4(_0x2dc319,_0x23e0fd){return _0x23e0fd['every'](_0x17233b=>_0x2dc319['some'](_0x572a3c=>_0x572a3c['end']['isEqual'](_0x17233b['start'])||_0x17233b['end']['isEqual'](_0x572a3c['start'])));}function _0x238d6e(_0x2d0cef,_0x34eaac){return!_0x2d0cef['some'](_0x5bf47d=>_0x34eaac['some'](_0x3d0fe1=>_0x5bf47d['isIntersecting'](_0x3d0fe1)))&&_0x2d0cef['some'](_0x1000a3=>_0x34eaac['some'](_0x4836a9=>_0x1000a3['end']['isTouching'](_0x4836a9['start'])));}_0x1116e0['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xede395,_0x4eb7ec,_0x540a04)=>{if(!_0x540a04['options']['showSuggestionHighlights'])return;const _0x2a80a4=_0x4eb7ec['item'];if(!_0x2a80a4)return;const _0x4ad8e2=_0x540a04['mapper']['toViewElement'](_0x2a80a4);function _0x19659b(_0x4f774e){return Array['isArray'](_0x4f774e)?_0x4f774e:[_0x4f774e];}_0x4ad8e2&&'tableCell'===_0x2a80a4['name']&&_0x4f15b7(_0x4ad8e2,_0x540a04['writer'],(_0x420351,_0x1ed16e,_0x477e4f)=>_0x477e4f['addClass'](_0x19659b(_0x1ed16e['classes']),_0x420351),(_0x2d29dd,_0x44631b,_0x203e89)=>_0x203e89['removeClass'](_0x19659b(_0x44631b['classes']),_0x2d29dd));},{'priority':'highest'}),_0x63a67f['descriptionFactory']['registerDescriptionCallback'](_0x199d55=>{if('insertion'!=_0x199d55['type']&&'deletion'!=_0x199d55['type'])return;const _0x127540=_0x199d55['getContainedElement']();if(null!=_0x127540&&_0x127540['is']('element','table')){if('insertion'==_0x199d55['type']){const _0x506f34=_0x199d55['getItems']()['filter'](_0xf98383=>_0xf98383['is']('$textProxy'))['map'](_0x592666=>_0x592666['data']);if(_0x506f34['length'])return{'type':'insertion','content':o(_0x2e03d7,'*Insert:*\x20%0',o(_0x2e03d7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x506f34['join']('\x20')+'\x22'))};}if('deletion'==_0x199d55['type']){const _0x184929=_0x199d55['getItems']()['filter'](_0x1b48b7=>_0x1b48b7['is']('$textProxy'))['map'](_0x346a3e=>_0x346a3e['data']);if(_0x184929['length'])return{'type':'deletion','content':o(_0x2e03d7,'*Remove:*\x20%0',o(_0x2e03d7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x184929['join']('\x20')+'\x22'))};}}}),_0x63a67f['descriptionFactory']['registerDescriptionCallback'](_0x4dc273=>{if('tableRow'==_0x4dc273['subType']){const _0x16194a=_0x4dc273['getItems']()['filter'](_0x3004f9=>_0x3004f9['is']('$textProxy'))['map'](_0x30d1ff=>_0x30d1ff['data']),_0x3225a5=this['_getSuggestionCoords'](_0x4dc273),_0x45e6a6=_0x3225a5['maxRow']-_0x3225a5['minRow']+0x1;if('insertion'==_0x4dc273['type'])return _0x16194a['length']?{'type':'insertion','content':o(_0x2e03d7,'*Insert:*\x20%0',o(_0x2e03d7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x45e6a6,'\x22'+_0x16194a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2e03d7,'*Insert:*\x20%0',o(_0x2e03d7,'ELEMENT_TABLE_ROW',_0x45e6a6))};if('deletion'==_0x4dc273['type'])return _0x16194a['length']?{'type':'deletion','content':o(_0x2e03d7,'*Remove:*\x20%0',o(_0x2e03d7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x45e6a6,'\x22'+_0x16194a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2e03d7,'*Remove:*\x20%0',o(_0x2e03d7,'ELEMENT_TABLE_ROW',_0x45e6a6))};}if('tableColumn'==_0x4dc273['subType']){const _0x193551=_0x4dc273['getItems']()['filter'](_0x14d1ad=>_0x14d1ad['is']('$textProxy'))['map'](_0x4e344d=>_0x4e344d['data']),_0x5968ee=this['_getSuggestionCoords'](_0x4dc273),_0x2d736f=_0x5968ee['maxColumn']-_0x5968ee['minColumn']+0x1;if('insertion'==_0x4dc273['type'])return _0x193551['length']?{'type':'insertion','content':o(_0x2e03d7,'*Insert:*\x20%0',o(_0x2e03d7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2d736f,'\x22'+_0x193551['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2e03d7,'*Insert:*\x20%0',o(_0x2e03d7,'ELEMENT_TABLE_COLUMN',_0x2d736f))};if('deletion'==_0x4dc273['type'])return _0x193551['length']?{'type':'deletion','content':o(_0x2e03d7,'*Remove:*\x20%0',o(_0x2e03d7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2d736f,'\x22'+_0x193551['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2e03d7,'*Remove:*\x20%0',o(_0x2e03d7,'ELEMENT_TABLE_COLUMN',_0x2d736f))};}}),_0x63a67f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3de79c),_0x63a67f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3de79c),_0x63a67f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x447daa),_0x63a67f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x447daa),_0x63a67f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4b6be4),_0x63a67f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4b6be4),_0x63a67f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x238d6e),_0x63a67f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x238d6e);}['_acceptFormatSuggestionCallbackFactory'](){const _0xf109f6=this['editor'],_0x95d1d4=_0xf109f6['model']['document']['selection'];return(_0x39b8f9,_0x5756dd)=>{_0xf109f6['model']['change'](_0x297055=>{const {commandName:_0x316f99,commandParams:_0x32a9af}=_0x5756dd;let _0x34144a=_0x39b8f9[0x0]['end']['nodeBefore'];_0x32a9af&&_0x32a9af[0x0]&&!0x1===_0x32a9af[0x0]['forceValue']&&(_0x34144a=_0x39b8f9[0x0]['start']['nodeAfter']);const _0x4b1c14=_0x297055['createRangeIn'](_0x34144a);if('$graveyard'==_0x4b1c14['root']['rootName'])return;const _0x52d10c=Array['from'](_0x95d1d4['getRanges']())['map'](_0x5e5109=>_0x2ad496['fromRange'](_0x5e5109));_0x297055['setSelection'](_0x4b1c14),_0xf109f6['commands']['get'](_0x316f99)['refresh'](),_0x32a9af['push']({'forceDefaultExecution':!0x0}),_0xf109f6['execute'](_0x316f99,..._0x32a9af);const _0x2d84ec=_0x52d10c['filter'](_0x183a60=>'$graveyard'!=_0x183a60['root']['rootName']);_0x2d84ec['length']>0x0&&_0x297055['setSelection'](_0x2d84ec);for(const _0x4ee906 of _0x52d10c)_0x4ee906['detach']();});};}['_getCoordsForCells'](_0x112300){const _0x476875=this['editor']['plugins']['get']('TableUtils');let _0x51b679=Number['MAX_SAFE_INTEGER'],_0x57bc23=Number['MIN_SAFE_INTEGER'],_0x3eba6d=Number['MAX_SAFE_INTEGER'],_0x2a7ec3=Number['MIN_SAFE_INTEGER'];for(const _0x300815 of _0x112300){if('$graveyard'==_0x300815['root']['rootName'])continue;const {row:_0x870c80,column:_0x17de52}=_0x476875['getCellLocation'](_0x300815),_0xa8bbd6=_0x300815['hasAttribute']('rowspan')?_0x300815['getAttribute']('rowspan')-0x1:0x0,_0x40a608=_0x300815['hasAttribute']('colspan')?_0x300815['getAttribute']('colspan')-0x1:0x0;_0x51b679=_0x870c80<_0x51b679?_0x870c80:_0x51b679,_0x57bc23=_0x870c80+_0xa8bbd6>_0x57bc23?_0x870c80+_0xa8bbd6:_0x57bc23,_0x3eba6d=_0x17de52<_0x3eba6d?_0x17de52:_0x3eba6d,_0x2a7ec3=_0x17de52+_0x40a608>_0x2a7ec3?_0x17de52+_0x40a608:_0x2a7ec3;}return{'minRow':_0x51b679,'maxRow':_0x57bc23,'minColumn':_0x3eba6d,'maxColumn':_0x2a7ec3};}['_setupColumnsRowsFixing'](){const _0x566803=this['editor'],_0x1ea213=_0x566803['plugins']['get']('TrackChangesEditing'),_0x436149=_0x566803['plugins']['get']('TableUtils');_0x566803['model']['document']['on']('change:data',()=>{const _0x481f32=Array['from'](_0x566803['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc5a55,data:_0x50f38d}of _0x481f32){const {group:_0x41a4a8,id:_0x5cb9e9,subType:_0x72ee5b}=_0x1ea213['_splitMarkerName'](_0xc5a55);if('suggestion'!=_0x41a4a8)continue;if(null!=_0x50f38d['oldRange'])continue;const _0xb9b187=_0x1ea213['getSuggestion'](_0x5cb9e9);this['_tablePostFixingSubtypes']['includes'](_0x72ee5b)&&this['_tableSuggestions']['add'](_0xb9b187);}},{'priority':'low'});const _0x389d2d=(_0x356192,_0xf60ca9)=>{let _0x16b336=!0x1;const _0x3486c4=_0xf60ca9['createRangeOn'](_0x356192),_0x3a198f=_0x356192['findAncestor']('table'),_0x2b02b5=_0x436149['getCellLocation'](_0x356192);for(const _0xa765b2 of this['_tableSuggestions']){const _0x3cd57e=_0xa765b2['subType'],_0x41b9ba=_0x3cd57e['startsWith']('tablePaste'),_0x4671eb=_0x3cd57e['substr'](_0x41b9ba?0xa:0x5),_0x904371=_0x4671eb['toLowerCase'](),_0x5368c6=_0x904371['substr'](0x0,0x3)+'span',_0x5dbd3f='min'+_0x4671eb,_0x1226db='max'+_0x4671eb;if(!_0xa765b2['isInContent'])continue;if(_0x3a198f!=_0xa765b2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xa765b2['isIntersectingWithRange'](_0x3486c4))continue;const _0x368204=_0x356192['hasAttribute'](_0x5368c6)?_0x356192['getAttribute'](_0x5368c6)-0x1:0x0,_0x3267f6=this['_getSuggestionCoords'](_0xa765b2),_0x4d6881=_0x3267f6[_0x5dbd3f],_0x2a8725=_0x3267f6[_0x1226db];_0x4d6881<=_0x2b02b5[_0x904371]&&_0x2b02b5[_0x904371]+_0x368204<=_0x2a8725&&(_0xa765b2['addRange'](_0x3486c4),_0x16b336=!0x0);}return _0x16b336;};_0x566803['model']['document']['registerPostFixer'](_0x50b17c=>{let _0x331317=!0x1;for(const _0x1b0629 of _0x566803['model']['document']['differ']['getChanges']())if('insert'==_0x1b0629['type']){if('tableRow'==_0x1b0629['name']){for(const _0x448df6 of _0x1b0629['position']['nodeAfter']['getChildren']())_0x331317=_0x331317||_0x389d2d(_0x448df6,_0x50b17c);}else'tableCell'==_0x1b0629['name']&&(_0x331317=_0x331317||_0x389d2d(_0x1b0629['position']['nodeAfter'],_0x50b17c));}return _0x331317;});}['_getSuggestionCoords'](_0x186cce){return this['_getCoordsForCells'](_0x186cce['getRanges']()['map'](_0x7a36bd=>_0x7a36bd['start']['nodeAfter']));}}function be(_0x531930){return Array['from'](new Set(_0x531930)['values']());}class vt extends _0x1b5c48{static get['requires'](){return[It];}['afterInit'](){const _0x32468e=this['editor'],_0x88a481=_0x32468e['model']['document']['selection'],_0x10796a=_0x32468e['locale'];if(!_0x32468e['plugins']['has']('TableEditing'))return;const _0x16ee8e=_0x32468e['plugins']['get']('TrackChangesEditing'),_0x3b5052=_0x32468e['plugins']['get']('TableUtils'),_0x4b0ab1=_0x32468e['plugins']['get'](It);_0x4b0ab1['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x16ee8e['enableCommand']('mergeTableCells',()=>{const _0x437a0f=_0x3b5052['getSelectionAffectedTableCells'](_0x32468e['model']['document']['selection']);_0x32468e['model']['change'](()=>{_0x16ee8e['markMultiRangeBlockFormat'](_0x437a0f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x32468e['commands']['get']('mergeTableCells')['on']('execute',(_0x270d6b,_0x13a35f)=>{_0x32468e['commands']['get']('trackChanges')['value']&&(_0x13a35f['length']>0x0&&_0x13a35f[_0x13a35f['length']-0x1]&&_0x13a35f[_0x13a35f['length']-0x1]['forceDefaultExecution']||_0x16ee8e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x270d6b['stop']());},{'priority':'highest'});for(const _0x2ca3af of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x25f49d=_0x32468e['commands']['get'](_0x2ca3af);_0x16ee8e['enableCommand'](_0x2ca3af,()=>{const _0x5d4c80=_0x32468e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x596bc1=>_0x596bc1['is']('element','tableCell')),_0x255c11=_0x25f49d['value'];_0x32468e['model']['change'](()=>{_0x16ee8e['markMultiRangeBlockFormat']([_0x5d4c80,_0x255c11],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1bf0ef of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2755c6=_0x32468e['commands']['get'](_0x1bf0ef);_0x16ee8e['enableCommand'](_0x1bf0ef,()=>{const _0x11d689=_0x3b5052['getSelectionAffectedTableCells'](_0x32468e['model']['document']['selection'])[0x0],_0x5109c4=_0x11d689['findAncestor']('table'),{column:_0x11bde7,row:_0x2412f1}=_0x3b5052['getCellLocation'](_0x11d689);let _0x574986=[];if('horizontally'==_0x2755c6['direction']){const _0x12ab8d=_0x3b5052['createTableWalker'](_0x5109c4,{'startRow':_0x2412f1,'endRow':_0x2412f1,'includeAllSlots':!0x0});_0x574986=Array['from'](_0x12ab8d)['map'](_0xa2afea=>_0xa2afea['cell']);}else{const _0x1b6211=_0x3b5052['createTableWalker'](_0x5109c4,{'column':_0x11bde7,'includeAllSlots':!0x0});_0x574986=Array['from'](_0x1b6211)['map'](_0x29c277=>_0x29c277['cell']);}_0x32468e['model']['change'](_0x58169e=>{_0x16ee8e['markBlockFormat'](_0x58169e['createRangeOn'](_0x11d689),{'commandName':_0x1bf0ef,'commandParams':[]},_0x574986,_0x1bf0ef);});});}_0x16ee8e['descriptionFactory']['registerDescriptionCallback'](_0x3568a1=>{if('formatBlock'!=_0x3568a1['type']&&'formatInline'!=_0x3568a1['type'])return;const {data:_0x5729ca}=_0x3568a1;return _0x5729ca&&'mergeTableCells'==_0x5729ca['commandName']?{'type':'format','content':o(_0x10796a,'*Merge\x20cells*')}:void 0x0;}),_0x16ee8e['descriptionFactory']['registerDescriptionCallback'](_0x3845bb=>{if('formatBlock'!=_0x3845bb['type']&&'formatInline'!=_0x3845bb['type'])return;const {data:_0x3ae89e}=_0x3845bb;return _0x3ae89e?'splitTableCellVertically'==_0x3ae89e['commandName']?{'type':'format','content':o(_0x10796a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3ae89e['commandName']?{'type':'format','content':o(_0x10796a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x6fafce=_0x4b0ab1['_acceptFormatSuggestionCallbackFactory']();for(const _0x4700a9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x16ee8e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4700a9,'accept',_0x6fafce);for(const _0x50d014 of['splitTableCellVertically','splitTableCellHorizontally'])_0x16ee8e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x50d014,'accept',_0x6fafce);_0x16ee8e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4f34d7=>{_0x32468e['model']['change'](_0xdf5829=>{const _0x58bebc=Array['from'](_0x88a481['getRanges']())['map'](_0x139af8=>_0x2ad496['fromRange'](_0x139af8));_0xdf5829['setSelection'](_0x4f34d7),_0x32468e['commands']['get']('mergeTableCells')['refresh'](),_0x32468e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3b124e=_0x58bebc['filter'](_0x2d4bd2=>'$graveyard'!=_0x2d4bd2['root']['rootName']);_0x3b124e['length']>0x0&&_0xdf5829['setSelection'](_0x3b124e);for(const _0x40c281 of _0x58bebc)_0x40c281['detach']();});});for(const _0x56cad8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1e5f27=_0x32468e['commands']['get'](_0x56cad8);_0x1e5f27['on']('set:isEnabled',(_0x203bde,_0x2b45e7,_0x5daba8)=>{if(_0x5daba8){const _0x276590=_0x32468e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xfcc942=>_0xfcc942['is']('element','tableCell'));this['_areMergableCells'](_0x1e5f27['value'],_0x276590)||(_0x203bde['return']=!0x1,_0x203bde['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x51be85=this['editor']['commands']['get']('mergeTableCells'),_0x2bfe2c=this['editor']['plugins']['get']('TableUtils');if(!_0x51be85['isEnabled'])return!0x1;const _0x313dae=_0x2bfe2c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2a191b of _0x313dae)for(const _0x3bef62 of _0x313dae)if(_0x2a191b!=_0x3bef62&&!this['_areMergableCells'](_0x2a191b,_0x3bef62))return!0x1;return!0x0;}['_areMergableCells'](_0x43ef76,_0x9bcfd7){const _0x49b86e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28c23d=this['editor']['model']['createRangeOn'](_0x43ef76),_0x5ae788=this['editor']['model']['createRangeOn'](_0x9bcfd7),_0xb05b4a=new Set(),_0x19fe5c=new Set();for(const _0x404004 of _0x49b86e['getSuggestions']())if(('insertion'==_0x404004['type']||'deletion'==_0x404004['type']||'mergeTableCells'==_0x404004['subType'])&&_0x404004['isInContent']){for(const _0x3a0636 of _0x404004['getRanges']())_0x3a0636['containsRange'](_0x28c23d,!0x0)&&_0xb05b4a['add'](_0x404004['type']+':'+_0x404004['author']['id']),_0x3a0636['containsRange'](_0x5ae788,!0x0)&&_0x19fe5c['add'](_0x404004['type']+':'+_0x404004['author']['id']);}if(_0xb05b4a['size']!=_0x19fe5c['size'])return!0x1;for(const _0x1e5957 of _0xb05b4a)if(!_0x19fe5c['has'](_0x1e5957))return!0x1;return!0x0;}}class Ct extends _0x1b5c48{static get['requires'](){return[It];}['afterInit'](){const _0x23899c=this['editor'];if(!_0x23899c['plugins']['has']('TableEditing'))return;const _0x461ad2=_0x23899c['locale'],_0x1cb69b=_0x23899c['plugins']['get']('TrackChangesEditing');_0x1cb69b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1cb69b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1cb69b['registerBlockAttribute']('headingRows'),_0x1cb69b['registerBlockAttribute']('headingColumns'),_0x1cb69b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x461ad2,'FORMAT_HEADER_ROW')),_0x1cb69b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x461ad2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4ff527=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cae5d=this['editor']['plugins']['get']('TableUtils'),_0x219434=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x38f893({showActiveMarker:_0x3c8cb3=!0x0,setDataAttribute:_0x3bd724=!0x0}={}){return(_0x42496e,_0x5cbf4d,_0x3f580d)=>{const {type:_0x221c2e,id:_0x17e091}=_0x4ff527['_splitMarkerName'](_0x5cbf4d['markerName']),_0x29a428=_0x4ff527['getSuggestion'](_0x17e091),_0x37c36=_0x29a428['data'];if('formatBlock'!=_0x29a428['type']||!_0x37c36||'setTableColumnHeader'!=_0x37c36['commandName'])return;if(_0x5cbf4d['item'])return void _0x42496e['stop']();if(!_0x3f580d['consumable']['consume'](_0x5cbf4d['markerRange'],_0x42496e['name']))return;const _0x3152d1=_0x5cbf4d['markerRange']['start']['nodeAfter'],_0x36f5cc=_0x5cbf4d['markerRange']['end']['nodeBefore'],_0x294159=_0x3152d1['parent']['parent'],{column:_0x3d8a81}=_0x4cae5d['getCellLocation'](_0x3152d1),{column:_0x32bb0a}=_0x4cae5d['getCellLocation'](_0x36f5cc);for(let _0x4b6153=_0x3d8a81;_0x4b6153<=_0x32bb0a;_0x4b6153++){const _0x376cc2=_0x4cae5d['createTableWalker'](_0x294159,{'column':_0x4b6153,'includeAllSlots':!0x1});for(const _0x40e50d of _0x376cc2){const _0x2f9dcd=_0x40e50d['cell'],_0x5356ff=_0x3f580d['mapper']['toViewElement'](_0x2f9dcd);_0x3f580d['writer']['addClass']('ck-suggestion-marker-'+_0x221c2e,_0x5356ff),_0x3bd724&&_0x3f580d['writer']['setAttribute']('data-suggestion',_0x17e091,_0x5356ff),_0x3f580d['mapper']['bindElementToMarker'](_0x5356ff,_0x5cbf4d['markerName']),_0x3c8cb3&&(_0x4ff527['activeMarkers']['includes'](_0x5cbf4d['markerName'])?_0x3f580d['writer']['addClass']('ck-suggestion-marker--active',_0x5356ff):_0x3f580d['writer']['removeClass']('ck-suggestion-marker--active',_0x5356ff));}}};}_0x4ff527['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x219434),_0x4ff527['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x219434),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x38f893(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b54e7,_0x25d179,_0x4f0e61)=>{_0x4f0e61['options']['showSuggestionHighlights']&&_0x38f893({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2b54e7,_0x25d179,_0x4f0e61);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2c5d55,_0xf9b49c,_0x570a76)=>{const {type:_0x2fd5ca,id:_0xd82cd4}=_0x4ff527['_splitMarkerName'](_0xf9b49c['markerName']),_0x3f20dd=_0x4ff527['getSuggestion'](_0xd82cd4),_0x1f628d=_0x3f20dd['data'];if('formatBlock'!=_0x3f20dd['type']||!_0x1f628d||'setTableColumnHeader'!=_0x1f628d['commandName'])return;const _0x23a793=_0x570a76['mapper']['markerNameToElements'](_0xf9b49c['markerName']);if(_0x23a793){for(const _0x502920 of _0x23a793)_0x570a76['writer']['removeClass']('ck-suggestion-marker-'+_0x2fd5ca,_0x502920),_0x570a76['writer']['removeClass']('ck-suggestion-marker--active',_0x502920),_0x570a76['writer']['removeAttribute']('data-suggestion',_0x502920),_0x570a76['mapper']['unbindElementFromMarkerName'](_0x502920,_0xf9b49c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b0244=this['editor'],_0x393e9a=_0x1b0244['locale'];function _0x554a04(_0x5db791){return{'type':'format','content':o(_0x393e9a,'*Format:*\x20%0',_0x5db791)};}_0x1b0244['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x357d34=>{if('formatBlock'!=_0x357d34['type'])return;const {data:_0x35f0ed}=_0x357d34;if(_0x35f0ed){if('setTableRowHeader'==_0x35f0ed['commandName']){const _0x5800d7=_0x35f0ed['commandParams'][0x0]['forceValue'];return _0x554a04(o(_0x393e9a,_0x5800d7?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x35f0ed['commandName']){const _0x1e89bc=_0x35f0ed['commandParams'][0x0]['forceValue'];return _0x554a04(o(_0x393e9a,_0x1e89bc?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x254714=>[_0x254714,null]));class _t extends _0x1b5c48{static get['requires'](){return[It];}['afterInit'](){const _0x1d7168=this['editor'];if(!_0x1d7168['plugins']['has']('TableClipboard'))return;const _0x40eb31=_0x1d7168['plugins']['get']('TrackChangesEditing'),_0x5a88b3=_0x1d7168['plugins']['get']('TableUtils'),_0x1224c1=_0x1d7168['plugins']['get'](It),_0x33c079=_0x1d7168['plugins']['get']('TableClipboard');_0x1224c1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1d7168['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1d7168['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x319e93=null;_0x1d7168['model']['on']('insertContent',(_0x38eeae,_0x7eec45)=>{const [_0x51fa6b,_0x4baef0]=_0x7eec45,_0x5cd581=_0x7eec45[_0x7eec45['length']-0x1];_0x5cd581&&_0x5cd581['forceDefaultExecution']||_0x40eb31['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x371bcb,_0x2b7274,_0x74ed2d,_0x1f0717,_0x387417){if(_0x2b7274&&!_0x2b7274['is']('documentSelection'))return!0x1;const _0x3abc1f=_0x387417['getTableIfOnlyTableInContent'](_0x371bcb,_0x74ed2d);if(!_0x3abc1f||!Re(_0x3abc1f,void 0x0,_0x1f0717))return!0x1;const _0xa01773=_0x1f0717['getSelectionAffectedTableCells'](_0x74ed2d['document']['selection']);if(!_0xa01773['length'])return!0x1;const _0x491f15=_0xa01773[0x0]['findAncestor']('table'),_0x29850a=_0x1f0717['getRowIndexes'](_0xa01773),_0x545fb0=_0x1f0717['getColumnIndexes'](_0xa01773),_0x45a0ef={'startRow':_0x29850a['first'],'endRow':_0x29850a['last'],'startColumn':_0x545fb0['first'],'endColumn':_0x545fb0['last']};return 0x1==_0xa01773['length']&&(_0x45a0ef['endRow']+=_0x1f0717['getRows'](_0x3abc1f)-0x1,_0x45a0ef['endColumn']+=_0x1f0717['getColumns'](_0x3abc1f)-0x1),Re(_0x491f15,_0x45a0ef,_0x1f0717);}(_0x51fa6b,_0x4baef0,_0x1d7168['model'],_0x5a88b3,_0x33c079)&&(_0x38eeae['stop'](),_0x319e93={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1d7168['model']['change'](()=>{_0x1d7168['model']['insertContent'](_0x7eec45[0x0],_0x7eec45[0x1],_0x7eec45[0x2],{'forceDefaultExecution':!0x0});const _0x3c4f6c=_0x360b63(),{rowInsertionRanges:_0x32a861,columnInsertionRanges:_0x1a7812,insertionRanges:_0x182e8f,deletionRanges:_0x4e55b8,cells:_0x2f8e60}=_0x319e93;_0x32a861['length']&&_0x40eb31['markMultiRangeInsertion'](_0x32a861,'tablePasteRow',{'tablePasteChainId':_0x3c4f6c}),_0x1a7812['length']&&_0x40eb31['markMultiRangeInsertion'](_0x1a7812,'tablePasteColumn',{'tablePasteChainId':_0x3c4f6c}),_0x182e8f['length']&&(_0x40eb31['markMultiRangeInsertion'](_0x182e8f,'tablePaste',{'tablePasteChainId':_0x3c4f6c,'skipNestingCheck':!0x0}),_0x182e8f['forEach'](_0x63a100=>_0x63a100['detach']?.())),_0x4e55b8['length']&&(_0x40eb31['markMultiRangeDeletion'](_0x4e55b8,'tablePaste',{'tablePasteChainId':_0x3c4f6c,'skipNestingCheck':!0x0}),_0x4e55b8['forEach'](_0x2f145c=>_0x2f145c['detach']?.()));const _0x5bea0d=_0x40eb31['markMultiRangeBlockFormat'](_0x2f8e60['map'](({element:_0xd14741})=>_0xd14741),{'formatGroupId':_0x360b63()},[],'tablePasteCell',{'tablePasteChainId':_0x3c4f6c});if(_0x5bea0d){const _0x317e4d=_0x5bea0d['getMarkers'](),_0x3fb682=[];for(const {element:_0x353514,attributes:_0x2b2a08}of _0x2f8e60){if(!_0x2b2a08)continue;const _0x39b789=_0x1d7168['model']['createRangeOn'](_0x353514),_0x39de54=_0x317e4d['find'](_0xfb3979=>_0xfb3979['getRange']()['isEqual'](_0x39b789));_0x39de54&&_0x3fb682['push']([_0x39de54['name'],_0x2b2a08]);}_0x3fb682['length']&&_0x5bea0d['setAttribute']('markerAttributes',Object['fromEntries'](_0x3fb682));}_0x319e93=null;}));},{'priority':_0x5d48ef['high']+0xa}),_0x1d7168['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x54dd59,_0x86f700)=>{const [_0x87110d,_0x9ca7dc,,_0x2bab2b]=_0x86f700;if(!_0x319e93)return;_0x54dd59['stop']();const _0xe64085=_0x87110d['cell'],_0xa6c73f=_0x9ca7dc,_0x120473=ke(_0xe64085),_0x4d342d=ke(_0xa6c73f);_0x54dd59['return']=_0xe64085;let _0x30a1d9=null,_0x1159ae=null;if(_0x4d342d||_0x120473){if(_0x120473&&!_0x4d342d){_0x2bab2b['remove'](_0xe64085['getChild'](0x0));for(const _0x228f61 of Array['from'](_0xa6c73f['getChildren']()))_0x2bab2b['insert'](_0x228f61,_0xe64085,'end');const _0x29e84d=_0x319e93['rowInsertionIndexes']['includes'](_0x87110d['row']),_0x48c5d8=_0x319e93['columnInsertionIndexes']['includes'](_0x87110d['column']);_0x29e84d||_0x48c5d8||(_0x30a1d9=_0x2ad496['fromRange'](_0x2bab2b['createRangeIn'](_0xe64085)));}else _0x4d342d&&!_0x120473&&(_0x1159ae=_0x2bab2b['createRangeIn'](_0xe64085));}else{const _0x1a6ee6=_0x2bab2b['createElement']('tableCellSuggestion'),_0xb88b3a=_0x2bab2b['createElement']('tableCellSuggestion');_0x2bab2b['wrap'](_0x2bab2b['createRangeIn'](_0xe64085),_0xb88b3a),_0x2bab2b['insert'](_0x1a6ee6,_0xe64085,0x0);for(const _0x42d569 of Array['from'](_0xa6c73f['getChildren']()))_0x2bab2b['insert'](_0x42d569,_0x1a6ee6,'end');_0x30a1d9=_0x2ad496['fromRange'](_0x2bab2b['createRangeOn'](_0x1a6ee6)),_0x1159ae=_0x2ad496['fromRange'](_0x2bab2b['createRangeOn'](_0xb88b3a));}const _0x25cb7d=Array['from'](_0xa6c73f['getAttributes']())['filter'](([_0x4ed1b0])=>Pe['includes'](_0x4ed1b0));_0x319e93['cells']['push']({'element':_0xe64085,'attributes':_0x25cb7d['length']?Object['fromEntries'](_0x25cb7d):null}),_0x30a1d9&&_0x319e93['insertionRanges']['push'](_0x30a1d9),_0x1159ae&&_0x319e93['deletionRanges']['push'](_0x1159ae);},{'priority':'high'}),_0x5a88b3['on']('insertColumns',(_0x58f1eb,_0x6d09c0)=>{const [_0x1ae117,_0x2982fb={}]=_0x6d09c0;if(!_0x319e93)return;const _0x157819=_0x2982fb['at']||0x0,_0x1bee25=_0x2982fb['columns']||0x1;_0x319e93['columnInsertionIndexes']=new Array(_0x1bee25)['fill'](_0x157819)['map']((_0x5153e1,_0x463411)=>_0x5153e1+_0x463411);for(const {cell:_0x6bb600}of _0x5a88b3['createTableWalker'](_0x1ae117,{'startColumn':_0x157819,'endColumn':_0x157819+_0x1bee25-0x1}))_0x319e93['columnInsertionRanges']['push'](_0x1d7168['model']['createRangeOn'](_0x6bb600));},{'priority':'low'}),_0x5a88b3['on']('insertRows',(_0x55b9df,_0x6ab7d0)=>{const [_0x28edbc,_0x1815ee={}]=_0x6ab7d0;if(!_0x319e93)return;const _0x46256c=_0x1815ee['at']||0x0,_0x35038c=_0x1815ee['rows']||0x1;_0x319e93['rowInsertionIndexes']=new Array(_0x35038c)['fill'](_0x46256c)['map']((_0x2b48dd,_0x3caaaf)=>_0x2b48dd+_0x3caaaf);for(const {cell:_0x32e821}of _0x5a88b3['createTableWalker'](_0x28edbc,{'startRow':_0x46256c,'endRow':_0x46256c+_0x35038c-0x1}))_0x319e93['rowInsertionRanges']['push'](_0x1d7168['model']['createRangeOn'](_0x32e821));},{'priority':'low'}),_0x40eb31['descriptionFactory']['registerDescriptionCallback'](_0x32b0f9=>{if(_0x32b0f9['subType']&&_0x32b0f9['subType']['startsWith']('tablePaste'))return _0x32b0f9['previous']?{}:{'type':'insertion','content':o(_0x1d7168['locale'],'*Replace\x20table\x20cells*')};});const _0x5ad6f3=()=>!0x1;for(const _0x16473c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x40eb31['_suggestionFactory']['registerCustomCallback']('insertion',_0x16473c,'join',_0x5ad6f3),_0x40eb31['_suggestionFactory']['registerCustomCallback']('deletion',_0x16473c,'join',_0x5ad6f3),_0x40eb31['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x16473c,'join',_0x5ad6f3);_0x40eb31['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5ad6f3),_0x40eb31['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1f27cf,_0x437bae,_0x3c2769)=>{const _0x378974=_0x1f27cf['map'](_0x150574=>_0x150574['getContainedElement']())['filter'](_0x5e6a22=>_0x5e6a22),_0x317bf7=new Map(_0x378974['map'](_0x4ec6b1=>[_0x4ec6b1,null]));if(_0x319e93){for(const {element:_0x388697,attributes:_0x34b5a3}of _0x319e93['cells'])_0x34b5a3&&_0x317bf7['set'](_0x388697,_0x34b5a3);}else{if(_0x3c2769&&_0x3c2769['markerAttributes'])for(const [_0x47b7de,_0x3e8f2a]of Object['entries'](_0x3c2769['markerAttributes'])){const _0x4aea18=_0x1d7168['model']['markers']['get'](_0x47b7de),_0x5843e0=_0x4aea18?_0x4aea18['getRange']()['getContainedElement']():null;_0x5843e0&&_0x317bf7['set'](_0x5843e0,_0x3e8f2a);}}_0x1d7168['model']['change'](_0x41e9c4=>{for(const [_0x1abeaa,_0x32f8a7]of _0x317bf7)_0x41e9c4['setAttributes']({...we,..._0x32f8a7},_0x1abeaa);});});const _0x25eedd=(_0x3df674,_0x3499a1)=>{_0x40eb31['_suggestionFactory']['registerCustomCallback'](_0x3df674,'tablePaste',_0x3499a1,(_0x493a0b,_0xcce24b,_0x10c003)=>{_0x1d7168['model']['change'](_0x4272bb=>{const _0x1fb704=[];for(const _0x461ecc of _0x493a0b){const _0x3f1b5c=_0x461ecc['start']['nodeAfter'];_0x3f1b5c['is']('element','tableCellSuggestion')&&_0x1fb704['push'](_0x3f1b5c);}_0x40eb31['_suggestionFactory']['getSuggestionCallback'](_0x3df674,null,_0x3499a1)(_0x493a0b,_0xcce24b,_0x10c003);for(const _0x2c3ec6 of _0x1fb704)'$graveyard'!=_0x2c3ec6['root']['rootName']&&_0x4272bb['unwrap'](_0x2c3ec6);});});};_0x25eedd('insertion','accept'),_0x25eedd('insertion','discard'),_0x25eedd('deletion','accept'),_0x25eedd('deletion','discard'),_0x40eb31['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5f56c0=>{const _0x43cd65=_0x5f56c0['map'](_0x9f4623=>_0x9f4623['getContainedElement']()),_0x1dc14=_0x43cd65[0x0]['findAncestor']('table'),{minRow:_0xe89765,maxRow:_0x2447a1}=_0x1224c1['_getCoordsForCells'](_0x43cd65);_0x5a88b3['removeRows'](_0x1dc14,{'at':_0xe89765,'rows':_0x2447a1-_0xe89765+0x1});}),_0x40eb31['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2d0778=>{const _0x4b5b1d=_0x2d0778['map'](_0x1d3761=>_0x1d3761['getContainedElement']()),_0x4499b9=_0x4b5b1d[0x0]['findAncestor']('table'),{minColumn:_0x3e0256,maxColumn:_0x3f646a}=_0x1224c1['_getCoordsForCells'](_0x4b5b1d);_0x5a88b3['removeColumns'](_0x4499b9,{'at':_0x3e0256,'columns':_0x3f646a-_0x3e0256+0x1});});const _0x1e8f3c=(_0x3902f6,_0x5956b3)=>{if(!_0x5956b3['subType']||!_0x5956b3['subType']['startsWith']('tablePaste'))return;const _0x3e2041=_0x5956b3['attributes']['tablePasteChainId'],_0x592027=_0x40eb31['getSuggestions']()['filter'](_0x4a6d2f=>_0x4a6d2f['isInContent']&&_0x4a6d2f['attributes']&&_0x4a6d2f['attributes']['tablePasteChainId']==_0x3e2041);_0x592027['length']&&_0x5956b3['getAllAdjacentSuggestions']()['length']!=_0x592027['length']&&_0x592027['reduce']((_0x308237,_0x3e7262)=>(_0x308237['next']=_0x3e7262,_0x3e7262['previous']=_0x308237,_0x3e7262));};function _0x21ea86(_0x15a42a,_0x546870=!0x0){const {id:_0x54e506,authorId:_0x3b41d3}=_0x40eb31['_splitMarkerName'](_0x15a42a['markerName']),_0x224915=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x234c70=_0x40eb31['activeMarkers']['includes'](_0x15a42a['markerName']);return _0x234c70&&_0x224915['push']('ck-suggestion-marker--active'),{'classes':_0x224915,'attributes':{'data-suggestion':_0x54e506,'data-author-id':_0x3b41d3},'priority':_0x234c70&&_0x546870?0xbc2:0xbb8};}_0x40eb31['on']('suggestionLoaded',_0x1e8f3c,{'priority':'high'}),_0x40eb31['on']('suggestionUnloaded',_0x1e8f3c,{'priority':'high'}),_0x1d7168['model']['document']['registerPostFixer'](()=>{let _0x36c2cc=!0x1;const _0x1d62ec=Array['from'](_0x1d7168['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xefd175,data:_0x196636}of _0x1d62ec){const {group:_0x48d19b,type:_0x12503e,id:_0x471f51}=_0x40eb31['_splitMarkerName'](_0xefd175);if('suggestion'!=_0x48d19b||'deletion'!=_0x12503e||_0x196636['oldRange'])continue;if(!_0x40eb31['hasSuggestion'](_0x471f51))continue;const _0x14b1a8=_0x40eb31['getSuggestion'](_0x471f51)['getRanges'](),_0x1721a1=_0x1d7168['plugins']['get']('Users')['me'];for(const _0x41e6b6 of _0x40eb31['getSuggestions']()){if(!_0x41e6b6['isInContent']||_0x41e6b6['author']!=_0x1721a1)continue;if('formatBlock'!=_0x41e6b6['type']||'tablePasteCell'!=_0x41e6b6['subType'])continue;if(_0x41e6b6['getRanges']()['every'](_0x618a1e=>_0x14b1a8['some'](_0x2b912e=>_0x2b912e['containsRange'](_0x618a1e,!0x0)))){for(const _0x564e6e of _0x41e6b6['getAllAdjacentSuggestions']())_0x564e6e['isInContent']&&(_0x564e6e['discard'](),_0x36c2cc=!0x0);}}}return _0x36c2cc;}),_0x1d7168['model']['document']['registerPostFixer'](_0x27245d=>{const _0x15ce31=_0x1d7168['commands']['get']('redo');if(!_0x15ce31||!_0x15ce31['_createdBatches']['has'](_0x27245d['batch']))return!0x1;let _0x5bf476=!0x1;const _0x4cb77d=_0x1d7168['plugins']['get']('Users')['me'],_0x564636=_0x1d7168['model']['document']['differ']['getChanges'](),_0x22e9a8=Array['from'](_0x1d7168['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x236cb5,data:_0x24d163})=>{const {group:_0x43a20e,subType:_0x332a7f,authorId:_0x48c88e}=_0x40eb31['_splitMarkerName'](_0x236cb5);return'suggestion'==_0x43a20e&&'tablePaste'==_0x332a7f&&_0x48c88e==_0x4cb77d['id']&&!_0x24d163['oldRange'];});for(const _0x407826 of _0x564636){if('insert'!=_0x407826['type']||'tableCellSuggestion'!=_0x407826['name']||0x1!=_0x407826['length'])continue;const _0xa2562e=_0x27245d['createRange'](_0x407826['position'],_0x407826['position']['getShiftedBy'](0x1));if(!_0x22e9a8['find'](({data:_0x2c02ed})=>_0x2c02ed['newRange']['isEqual'](_0xa2562e))){for(const {name:_0x282c45,data:_0x22edb0}of _0x22e9a8)if(_0xa2562e['containsRange'](_0x22edb0['newRange'])){_0x27245d['updateMarker'](_0x282c45,{'range':_0xa2562e}),_0x5bf476=!0x0;break;}}}return _0x5bf476;}),_0x1d7168['model']['document']['registerPostFixer'](_0x2f431c=>{let _0x15b7fb=!0x1;const _0x130889=_0x1d7168['plugins']['get']('Users')['me'],_0x381c8d=_0x40eb31['getSuggestions']()['filter'](_0x1eec70=>_0x1eec70['isInContent']&&_0x1eec70['author']==_0x130889),_0x477d8f=new Set(),_0x35ff68=new Set();for(const _0x26d6be of _0x381c8d)if('tablePaste'==_0x26d6be['subType'])for(const _0x292978 of _0x26d6be['getMarkers']()){const _0x2a1690=_0x292978['getRange']()['getContainedElement']();if(_0x2a1690){if(_0x2a1690['is']('element','tableCellSuggestion')&&ke(_0x2a1690)){_0x26d6be['removeMarker'](_0x292978['name']),_0x477d8f['add'](_0x2a1690),_0x15b7fb=!0x0;const _0x1b15b2=_0x2a1690['nextSibling'],_0x5b20ba=_0x2a1690['previousSibling'],_0x3d564e=_0x1b15b2&&_0x1b15b2['is']('element','tableCellSuggestion'),_0x24a205=_0x5b20ba&&_0x5b20ba['is']('element','tableCellSuggestion');_0x3d564e&&!_0x477d8f['has'](_0x1b15b2)&&_0x35ff68['add'](_0x1b15b2),_0x24a205&&!_0x477d8f['has'](_0x5b20ba)&&_0x35ff68['add'](_0x5b20ba);}else _0x2a1690['is']('element','paragraph')&&_0x2a1690['isEmpty']&&(_0x26d6be['removeMarker'](_0x292978['name']),_0x15b7fb=!0x0);}}else{if('tablePasteCell'==_0x26d6be['subType']){if(!_0x26d6be['attributes']||!_0x26d6be['attributes']['tablePasteChainId'])continue;const _0x1c8f4a=_0x26d6be['attributes']['markerAttributes'];if(_0x1c8f4a&&Object['keys'](_0x1c8f4a)['length'])continue;const _0x40169c=_0x26d6be['attributes']['tablePasteChainId'];let _0x243de1=!0x0,_0x164def=!0x0;for(const _0x43abe9 of _0x381c8d)if(_0x43abe9['subType']&&_0x43abe9['subType']['startsWith']('tablePaste')){if(!_0x43abe9['attributes']['tablePasteChainId']){_0x164def=!0x1;break;}if(_0x43abe9['id']!=_0x26d6be['id']&&_0x43abe9['attributes']['tablePasteChainId']==_0x40169c){_0x243de1=!0x1;break;}}_0x164def&&_0x243de1&&(_0x26d6be['removeMarkers'](),_0x15b7fb=!0x0);}}for(const _0x5716fa of _0x477d8f)_0x2f431c['remove'](_0x5716fa);for(const _0x234686 of _0x35ff68)_0x2f431c['unwrap'](_0x234686);return _0x15b7fb;}),_0x1d7168['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2202f5=>_0x21ea86(_0x2202f5),'converterPriority':'high'}),_0x1d7168['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x30563c,_0x3f580c)=>_0x3f580c['options']['showSuggestionHighlights']?_0x21ea86(_0x30563c,!0x1):null,'converterPriority':'high'});const _0x2888a4=_0x1d7168['editing']['view'];this['listenTo'](_0x2888a4['document'],'clipboardOutput',(_0x39336a,_0x12fa06)=>{const _0x4de22e=[];for(const _0x5cbb65 of _0x2888a4['createRangeIn'](_0x12fa06['content'])['getItems']())_0x5cbb65['is']('element','suggestion-td')&&_0x4de22e['push'](_0x5cbb65);_0x2888a4['change'](_0x4fbf00=>{for(const _0x372dab of _0x4de22e)_0x4fbf00['move'](_0x4fbf00['createRangeIn'](_0x372dab),_0x4fbf00['createPositionBefore'](_0x372dab)),_0x4fbf00['remove'](_0x372dab);});});}}function ke(_0x528fc9){if(_0x528fc9['isEmpty'])return!0x0;const _0x4d8cab=_0x528fc9['getChild'](0x0);return _0x4d8cab['is']('element','paragraph')&&_0x4d8cab['isEmpty'];}function Re(_0x39e269,_0x446907={},_0x43f21a){for(const {isAnchor:_0x4034ef,cellHeight:_0x1d2536,cellWidth:_0x1e62b9}of _0x43f21a['createTableWalker'](_0x39e269,{'includeAllSlots':!0x0,..._0x446907}))if(!_0x4034ef||0x1!=_0x1d2536||0x1!=_0x1e62b9)return!0x1;return!0x0;}class Nt extends _0x1b5c48{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xa309e8=this['editor']['plugins']['get']('TrackChangesEditing');_0xa309e8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xa309e8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xa309e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xa309e8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xa309e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xa309e8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x403174,_0x176bf9){const _0xaeb62b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55bfb4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2e4276=_0x176bf9['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x23fa02=_0x55bfb4['getColumnGroupElement'](_0x2e4276);let _0x2c5088=_0x23fa02?_0x55bfb4['getTableColumnsWidths'](_0x23fa02):null,_0x6a8c50=_0x2e4276['getAttribute']('tableWidth')||null;const _0x1e17b6=_0x176bf9['tableWidth']||_0x6a8c50,_0x40f05c=_0x176bf9['columnWidths']||_0x2c5088,_0x3f336a=this['editor']['plugins']['get']('Users')['me'];for(const _0x2c46f1 of _0xaeb62b['getSuggestions']()){const _0xb149f6=_0x2c46f1['getContainedElement']();if('resizeTable'===_0x2c46f1['subType']&&_0xb149f6===_0x2e4276){_0x2c46f1['author']!==_0x3f336a&&_0x2c46f1['discard']();const _0x13573d=_0x2c46f1['data']['commandParams'];_0x6a8c50=_0x13573d[0x0]['tableWidth'],_0x2c5088=_0x13573d[0x0]['columnWidths'];break;}}_0x403174({'table':_0x2e4276,'tableWidth':_0x1e17b6,'columnWidths':_0x40f05c}),_0xaeb62b['markBlockFormat'](_0x2e4276,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x6a8c50,'columnWidths':_0x2c5088}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1d00ad){if('formatBlock'!=_0x1d00ad['type']&&'formatInline'!=_0x1d00ad['type'])return;const {data:_0x450b87}=_0x1d00ad;if(_0x450b87&&'resizeTable'===_0x450b87['formatGroupId']){const _0x3aa53a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3aa53a)};}}}class Dt extends _0x1b5c48{['afterInit'](){const _0x199f13=this['editor'];_0x199f13['plugins']['has']('Template')&&_0x199f13['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x1b5c48{['afterInit'](){const _0x461188=this['editor'];if(!_0x461188['commands']['get']('insertTableOfContents'))return;_0x461188['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x117d4a=_0x461188['plugins']['get']('TrackChangesEditing'),_0x2f54c9=_0x461188['locale'];_0x117d4a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x519874=>o(_0x2f54c9,'ELEMENT_TABLE_OF_CONTENTS',_0x519874));}}class $t extends _0x1b5c48{['afterInit'](){const _0x7fe9d3=this['editor'];if(!_0x7fe9d3['plugins']['has']('Title'))return;const _0x217c1d=_0x7fe9d3['plugins']['get']('TrackChangesEditing');_0x217c1d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x7fe9d3['locale'],'ELEMENT_TITLE')),_0x7fe9d3['model']['document']['registerPostFixer'](_0x9bb837=>{let _0x3c959f=!0x1;const _0x56162d=Array['from'](_0x7fe9d3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5410ca,data:_0xa37fd6}of _0x56162d){const {group:_0x203616}=_0x217c1d['_splitMarkerName'](_0x5410ca);if('suggestion'!==_0x203616||!_0xa37fd6['newRange'])continue;const _0x1aa72b=_0xa37fd6['newRange'],_0x24929e=_0x1aa72b['end']['nodeBefore'];if(!_0x24929e||!_0x24929e['is']('element','title-content'))continue;if(!_0x1aa72b['start']['isTouching'](_0x1aa72b['end']))continue;const _0x3e9ed7=_0x7fe9d3['model']['schema']['getNearestSelectionRange'](_0x1aa72b['end'],'forward');if(_0x3e9ed7&&_0x3e9ed7['isCollapsed']){const _0x3c3b4c=_0x9bb837['createRange'](_0x1aa72b['start'],_0x3e9ed7['start']);_0x3c3b4c['isEqual'](_0x1aa72b)||(_0x9bb837['updateMarker'](_0x5410ca,{'range':_0x3c3b4c}),_0x3c959f=!0x0);}_0x3c959f||(_0x9bb837['removeMarker'](_0x5410ca),_0x3c959f=!0x0);}return _0x3c959f;});}}class Bt extends _0x1b5c48{['afterInit'](){const _0x16d93f=this['editor'],_0x5ddfb1=_0x16d93f['plugins']['get']('TrackChangesEditing');_0x16d93f['plugins']['has']('UndoEditing')&&(_0x5ddfb1['enableCommand']('undo'),_0x5ddfb1['enableCommand']('redo'));}}class xt extends _0x1b5c48{static get['requires'](){return[It];}['afterInit'](){const _0x55ebe4=this['editor'];if(!_0x55ebe4['plugins']['has']('TableCaptionEditing'))return;_0x55ebe4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x1b5c48{['tableProperties'];['tableCellProperties'];constructor(_0x221294){super(_0x221294),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0xe2ff2e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xaa98c5 of this['tableProperties'])_0xe2ff2e['enableCommand'](_0xaa98c5,(_0x405c5b,_0x389975)=>{const _0x2f9037=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xaa98c5,[_0x2f9037],this['tableProperties'],'tableProperties',_0x405c5b,_0x389975);});_0xe2ff2e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xe2ff2e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xe2ff2e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3dd0b7,_0x3631ce)=>this['handleDiscardAction'](this['tableProperties'],_0x3dd0b7,_0x3631ce)),_0xe2ff2e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x7882ed of this['tableCellProperties'])_0xe2ff2e['enableCommand'](_0x7882ed,(_0x386137,_0x295701)=>{const _0x1685d0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x7882ed,_0x1685d0,this['tableCellProperties'],'tableCellProperties',_0x386137,_0x295701);});_0xe2ff2e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xe2ff2e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xe2ff2e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xeea11f,_0x279bb8)=>this['handleDiscardAction'](this['tableCellProperties'],_0xeea11f,_0x279bb8)),_0xe2ff2e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xe2ff2e['descriptionFactory']['registerDescriptionCallback'](_0x25152b=>this['handleSuggestionDescription'](_0x25152b));}['_handlePropertyChange'](_0xf352a,_0x25da06,_0x2da10c,_0x2f49ad,_0x353fc5,_0x1f6045){const _0x468fe0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1f6045['batch'],()=>{for(const _0x510bbd of _0x25da06){if(this['_getSuggestion'](_0x510bbd,_0x2f49ad))_0x353fc5(_0x1f6045);else{const _0x46e5c3={};for(const _0x586367 of _0x2da10c){const _0x59dd64=_0x510bbd['getAttribute'](_0x586367);void 0x0!==_0x59dd64&&(_0x46e5c3[_0x586367]=_0x59dd64);}_0x353fc5(_0x1f6045),_0x468fe0['markBlockFormat'](_0x510bbd,{'commandParams':[_0x46e5c3]},[],_0x2f49ad);}}});}['handleDiscardAction'](_0x1e2d17,_0x2fe169,_0x45c01c){const _0x160def=_0x2fe169[0x0]['start']['nodeAfter'],_0x1eb08f=_0x45c01c['commandParams'][0x0];this['editor']['model']['change'](_0x269f42=>{for(const _0x3b4edc of _0x1e2d17)void 0x0!==_0x1eb08f[_0x3b4edc]?_0x269f42['setAttribute'](_0x3b4edc,_0x1eb08f[_0x3b4edc],_0x160def):_0x269f42['removeAttribute'](_0x3b4edc,_0x160def);});}['handleSuggestionDescription'](_0x244384){if(_0x244384['data'])switch(_0x244384['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3fe4bc,_0x169911){const _0x3a07da=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3f4024 of _0x3a07da['getSuggestions']({'skipNotAttached':!0x0})){const _0x273a59=_0x3f4024['getContainedElement']();if(_0x3f4024['subType']===_0x169911&&_0x273a59===_0x3fe4bc)return _0x3f4024;}return null;}}const m='$elementName';class p extends _0x1b5c48{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x12f772,_0x515800,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0xdbd809){function _0x4a376c(_0x38090e){return _0x38090e['map'](_0x3dbaa4=>String['fromCharCode'](_0x3dbaa4))['join']('');}super(_0xdbd809),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2524f6,_0x51bd88,_0x6b2bf9,_0x58b519)=>{this['_model']['change'](()=>{for(const _0x438819 of[..._0x58b519,..._0x6b2bf9])this['_model']['markers']['has'](_0x438819)&&_0xdbd809['editing']['reconvertMarker'](_0x438819);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xdbd809['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0xdbd809['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xdbd809['config']['get']('trackChanges.trackFormatChanges'),_0xdbd809['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xdbd809['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xdbd809,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4a376c([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4a376c([0x34,0x30,0x34,0x38,0x32,0x30,0x30,0x32]);}['init'](){const _0x51eaca=this['editor'],_0x5d0fb3=(_0x1e6837,_0x1fabcc)=>{if('attribute'!=_0x1e6837)return'ck-suggestion-marker-'+_0x1e6837;const _0x39805a=_0x1fabcc['split']('|')[0x0];return this['_isBlockAttribute'](_0x39805a)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x51eaca['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x98c474=>{const {id:_0x5444a2,authorId:_0x584627,type:_0x9d51f0,subType:_0x371aa9}=this['_splitMarkerName'](_0x98c474['markerName']),_0x51f995=['ck-suggestion-marker',_0x5d0fb3(_0x9d51f0,_0x371aa9)];let _0x284795=0xbb8;return this['activeMarkers']['includes'](_0x98c474['markerName'])&&(_0x51f995['push']('ck-suggestion-marker--active'),_0x284795=0xbc2),'deletion'==_0x9d51f0&&(_0x284795+=0x5),{'classes':_0x51f995,'attributes':{'data-suggestion':_0x5444a2,'data-author-id':_0x584627},'priority':_0x284795};}}),_0x51eaca['conversion']['for']('dataDowncast')['add'](_0x506aa1=>{_0x506aa1['on']('addMarker:suggestion',(_0x680922,_0x5141d0,_0x140c55)=>{if(!_0x140c55['options']['showSuggestionHighlights'])return;const _0x43680b=_0x5141d0['item'];if(!_0x43680b)return;const _0x23e7c2=_0x140c55['mapper']['toViewElement'](_0x43680b);_0x51eaca['model']['schema']['isObject'](_0x43680b)&&_0x23e7c2&&!_0x23e7c2['getCustomProperty']('widget')&&_0x23e7c2['is']('containerElement')&&_0x4e8939(_0x23e7c2,_0x140c55['writer']);},{'priority':'high'});}),_0x51eaca['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x268fe5,_0x3eab85)=>{if(!_0x3eab85['options']['showSuggestionHighlights'])return null;const {type:_0x33eb39,subType:_0x5b0ddf}=this['_splitMarkerName'](_0x268fe5['markerName']);return{'classes':['ck-suggestion-marker',_0x5d0fb3(_0x33eb39,_0x5b0ddf)],'priority':0xbb8};}});const _0x5209e1=({showActiveMarkers:_0x5ae693=!0x0,isAttributeSuggestion:_0x51be4d=!0x1}={})=>(_0x1b728f,_0x5c1e1c,_0x483cbd)=>{if(!_0x5c1e1c['item'])return;const {id:_0x4190dd,authorId:_0x951a6e}=this['_splitMarkerName'](_0x5c1e1c['markerName']);if(_0x51be4d){const _0x34fa54=this['_suggestions']['get'](_0x4190dd),_0x43a51a=this['_getAttributeKey'](_0x34fa54);if(!this['_isBlockAttribute'](_0x43a51a))return;}if(_0x5c1e1c['item']['is']('selection'))return void _0x483cbd['consumable']['consume'](_0x5c1e1c['item'],_0x1b728f['name']);const _0x1e38ac=_0x483cbd['mapper']['toViewElement'](_0x5c1e1c['item']);if(_0x5c1e1c['item']['is']('element')&&_0x51eaca['model']['schema']['isBlock'](_0x5c1e1c['item'])&&!_0x1e38ac['getCustomProperty']('addHighlight')){_0x483cbd['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1e38ac),_0x483cbd['writer']['setAttribute']('data-suggestion',_0x4190dd,_0x1e38ac),_0x483cbd['writer']['setAttribute']('data-author-id',_0x951a6e,_0x1e38ac),_0x483cbd['mapper']['bindElementToMarker'](_0x1e38ac,_0x5c1e1c['markerName']),_0x5ae693&&(this['activeMarkers']['includes'](_0x5c1e1c['markerName'])?_0x483cbd['writer']['addClass']('ck-suggestion-marker--active',_0x1e38ac):_0x483cbd['writer']['removeClass']('ck-suggestion-marker--active',_0x1e38ac));for(const _0x352d65 of _0x51eaca['model']['createRangeIn'](_0x5c1e1c['item'])['getItems']())_0x483cbd['consumable']['consume'](_0x352d65,_0x1b728f['name']);_0x483cbd['consumable']['consume'](_0x5c1e1c['item'],_0x1b728f['name']);}};_0x51eaca['conversion']['for']('dataDowncast')['add'](_0x36295e=>{_0x36295e['on']('addMarker:suggestion:formatBlock',(_0x5d5905,_0x4a9a58,_0x5eee1f)=>{_0x5eee1f['options']['showSuggestionHighlights']&&_0x5209e1({'showActiveMarkers':!0x1})(_0x5d5905,_0x4a9a58,_0x5eee1f);},{'priority':'highest'});}),_0x51eaca['conversion']['for']('dataDowncast')['add'](_0x5e94e0=>{_0x5e94e0['on']('addMarker:suggestion:attribute',(_0x407202,_0x2d8210,_0x434957)=>{_0x434957['options']['showSuggestionHighlights']&&_0x5209e1({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x407202,_0x2d8210,_0x434957);},{'priority':'highest'});}),_0x51eaca['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xdc0eed,_0x63c0e8)=>_0x63c0e8['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xdc0eed['substr'](0xb)}}),_0x51eaca['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x52c21d,{writer:_0x39f21f})=>{let _0x2684d8='suggestion:'+_0x52c21d['getAttribute']('suggestion-type')+':'+_0x52c21d['getAttribute']('id');return _0x52c21d['getAttribute']('marker-count')&&(_0x2684d8+=':'+_0x52c21d['getAttribute']('marker-count')),_0x39f21f['createElement']('$marker',{'data-name':_0x2684d8});}}),_0x51eaca['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x51eaca['conversion']['for']('editingDowncast')['add'](_0x25df3f=>{_0x25df3f['on']('addMarker:suggestion:formatBlock',_0x5209e1(),{'priority':'high'});}),_0x51eaca['conversion']['for']('editingDowncast')['add'](_0x37c1a9=>{_0x37c1a9['on']('addMarker:suggestion:attribute',_0x5209e1({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x51eaca['conversion']['for']('editingDowncast')['add'](_0x4711ee=>{_0x4711ee['on']('removeMarker:suggestion:formatBlock',(_0x4d2622,_0x82d13d,_0x18ce42)=>{const _0x543339=_0x18ce42['mapper']['markerNameToElements'](_0x82d13d['markerName']);if(_0x543339){for(const _0x5a9495 of _0x543339)_0x5a9495['getCustomProperty']('addHighlight')||(_0x18ce42['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a9495),_0x18ce42['writer']['removeAttribute']('data-suggestion',_0x5a9495),_0x18ce42['writer']['removeAttribute']('data-author-id',_0x5a9495),_0x18ce42['mapper']['unbindElementFromMarkerName'](_0x5a9495,_0x82d13d['markerName']));}},{'priority':'high'});}),_0x51eaca['conversion']['for']('editingDowncast')['add'](_0x4a0b35=>{_0x4a0b35['on']('removeMarker:suggestion:attribute',(_0x232cab,_0x10e5eb,_0x5c6236)=>{const _0x215373=_0x5c6236['mapper']['markerNameToElements'](_0x10e5eb['markerName']);if(!_0x215373)return;const {id:_0x59e554}=this['_splitMarkerName'](_0x10e5eb['markerName']),_0x46165c=this['_suggestions']['get'](_0x59e554),_0x35b13d=this['_getAttributeKey'](_0x46165c);if(this['_isBlockAttribute'](_0x35b13d)){for(const _0x4b4a50 of _0x215373)_0x4b4a50['getCustomProperty']('addHighlight')||(_0x5c6236['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4b4a50),_0x5c6236['writer']['removeAttribute']('data-suggestion',_0x4b4a50),_0x5c6236['writer']['removeAttribute']('data-author-id',_0x4b4a50),_0x5c6236['mapper']['unbindElementFromMarkerName'](_0x4b4a50,_0x10e5eb['markerName']));}},{'priority':'high'});}),_0x51eaca['model']['document']['registerPostFixer'](_0x12835d=>{let _0x2d9431=!0x1;const _0x3d3ad3=Array['from'](_0x51eaca['model']['document']['differ']['getChangedMarkers']()),_0xe45606=new Set();for(const {name:_0x318d2a,data:_0x3225ed}of _0x3d3ad3){const {group:_0x5dde97,type:_0x160195,subType:_0x986ac8,id:_0x4e42d4}=this['_splitMarkerName'](_0x318d2a);if('suggestion'!==_0x5dde97)continue;const _0x51b304=this['_suggestions']['get'](_0x4e42d4);if(null!=_0x3225ed['newRange']){'formatInline'==_0x160195&&(_0x2d9431=_0x2d9431||Ut(_0x3225ed['newRange'],_0x318d2a,_0x12835d,_0x51eaca['model']['schema']));const _0x5e25fd='attribute'==_0x160195&&this['_isBlockAttribute'](_0x986ac8['split']('|')[0x0]);if(_0x3225ed['newRange']['isCollapsed']||'$graveyard'==_0x3225ed['newRange']['root']['rootName']||'formatBlock'==_0x160195&&!Ft(_0x3225ed['newRange'])||_0x5e25fd&&!Ft(_0x3225ed['newRange'])||'deletion'==_0x160195&&!(!Vt(_0x31be1c=_0x3225ed['newRange'])&&!function(_0x294b86){return _0x294b86['start']['parent']==_0x294b86['end']['nodeBefore']&&_0x294b86['start']['isAtEnd'];}(_0x31be1c)))_0x12835d['removeMarker'](_0x318d2a),_0x2d9431=!0x0;else{if(!_0x51b304||!_0x51b304['isInContent'])continue;if(_0x3225ed['newRange']&&_0x3225ed['oldRange']&&_0x3225ed['newRange']['isEqual'](_0x3225ed['oldRange']))continue;_0xe45606['add'](_0x51b304);}}}var _0x31be1c;return _0xe45606['size']>0x0&&(_0x2d9431=!!this['_joinWithAdjacentSuggestions'](_0xe45606)||_0x2d9431),_0x2d9431;}),_0x51eaca['model']['document']['registerPostFixer'](_0x2a52b0=>{let _0x2c2db9=!0x1;for(const _0x5e7df8 of _0x51eaca['model']['document']['differ']['getChanges']())if('insert'==_0x5e7df8['type'])for(const _0x169843 of this['_suggestions']['values']()){if(_0x169843['isMultiRange']||!_0x169843['isInContent'])continue;const _0x7c8927='formatBlock'==_0x169843['type'],_0x497cb6=this['_getAttributeKey'](_0x169843),_0x481c8b=_0x497cb6&&this['_isBlockAttribute'](_0x497cb6);if(!_0x7c8927&&!_0x481c8b)continue;const _0x585b49=_0x169843['getFirstRange']();if(_0x585b49['start']['parent']!=_0x585b49['end']['parent']&&!_0x585b49['end']['isAtEnd']){const _0x46fec9=_0x51eaca['model']['createPositionAt'](_0x585b49['start']['nodeAfter'],'end'),_0x594936=_0x51eaca['model']['createRange'](_0x585b49['start'],_0x46fec9);_0x2a52b0['updateMarker'](_0x169843['getFirstMarker'](),{'range':_0x594936}),_0x2c2db9=!0x0;}}return _0x2c2db9;}),_0x51eaca['model']['document']['registerPostFixer'](_0x31ed36=>this['_processAttributeChanges'](_0x31ed36)),_0x51eaca['model']['document']['registerPostFixer'](_0x4fc3c9=>!_0x4fc3c9['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4fc3c9)),_0x51eaca['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x51eaca['model']['document']['on']('change:data',(_0x3224aa,_0x5b1cc4)=>{if(!_0x5b1cc4['isLocal']||_0x5b1cc4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x504ea2=_0x51eaca['model']['document']['differ']['getChanges']();if(0x0==_0x504ea2['length'])return;const _0x51ca76=[],_0x1eba7e=_0x504ea2['filter'](_0x9e0c8=>'attribute'==_0x9e0c8['type']),_0x152748=_0x504ea2['filter'](_0x5d1d8a=>'insert'==_0x5d1d8a['type']&&'$text'!=_0x5d1d8a['name']);for(const _0x28b710 of _0x1eba7e)this['_isRegisteredAttribute'](_0x28b710['attributeKey'])&&_0x51ca76['push']({'key':_0x28b710['attributeKey'],'newValue':_0x28b710['attributeNewValue'],'oldValue':_0x28b710['attributeOldValue'],'range':Pt(_0x28b710['range'],_0x51eaca['model'])});for(const _0x15c472 of _0x152748){if('rename'!=_0x15c472['action']&&'refresh'!=_0x15c472['action'])continue;const _0x1b2417=Lt(_0x15c472['position']['nodeAfter'],_0x51eaca['model']),_0x2430c1=_0x15c472['before'];'rename'==_0x15c472['action']&&_0x51ca76['push']({'key':m,'newValue':_0x15c472['name'],'oldValue':_0x2430c1['name'],'range':_0x1b2417});for(const [_0x33aaf0,_0x153c77]of _0x2430c1['attributes']){if(!this['_isRegisteredAttribute'](_0x33aaf0))continue;const _0x32c68e=_0x15c472['attributes']['get'](_0x33aaf0);_0x153c77!==_0x32c68e&&_0x51ca76['push']({'key':_0x33aaf0,'newValue':_0x32c68e,'oldValue':_0x153c77,'range':_0x1b2417});}for(const [_0x24e8d1,_0x492419]of _0x15c472['attributes'])this['_isRegisteredAttribute'](_0x24e8d1)&&(_0x2430c1['attributes']['has'](_0x24e8d1)||_0x51ca76['push']({'key':_0x24e8d1,'newValue':_0x492419,'oldValue':null,'range':_0x1b2417}));}0x0!=_0x51ca76['length']&&_0x51eaca['model']['enqueueChange'](_0x5b1cc4,_0x8665a5=>{const _0x3d31ce=_0x360b63();for(const {range:_0x532658,key:_0x1a370b,oldValue:_0x4b4f6a,newValue:_0xe0a816}of _0x51ca76)this['markAttributeChange'](_0x532658,_0x1a370b,_0x4b4f6a,_0xe0a816,{'groupId':_0x3d31ce});this['_reduceExistingSuggestions'](_0x8665a5,_0x51ca76);});},{'priority':'lowest'}),_0x51eaca['model']['markers']['on']('update:suggestion',(_0x367db7,_0x4b2c1f,_0x3f2f50)=>{if(null==_0x3f2f50){const {id:_0xabba67}=this['_splitMarkerName'](_0x4b2c1f['name']),_0x91fa48=this['_suggestions']['get'](_0xabba67);_0x91fa48&&_0x91fa48['addMarkerName'](_0x4b2c1f['name']);}}),_0x51eaca['model']['document']['on']('change:data',()=>{const _0x1134ef=Array['from'](_0x51eaca['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4dcf1f=>'suggestion'===this['_splitMarkerName'](_0x4dcf1f['name'])['group']);if(0x0===_0x1134ef['length'])return;_0x1134ef['sort']((_0x4b424a,_0x5b3f1f)=>{const _0x403063=_0x4b424a['data']['oldRange'],_0x49faac=_0x5b3f1f['data']['oldRange'];return null===_0x403063&&null===_0x49faac?0x0:null===_0x403063&&null!==_0x49faac?-0x1:null!==_0x403063&&null===_0x49faac?0x1:_0x403063['start']['isBefore'](_0x49faac['start'])?-0x1:0x1;});const _0x4ad890=new Set(),_0x226c99=new Set();for(const {name:_0x4877bf,data:_0x3f17d0}of _0x1134ef){const {id:_0x542670}=this['_splitMarkerName'](_0x4877bf);if(null===_0x3f17d0['oldRange']){const _0x345680=this['_handleNewSuggestionMarker'](_0x4877bf);_0x226c99['add'](_0x345680);}else{const _0x139983=this['_suggestions']['get'](_0x542670);null!==_0x3f17d0['newRange']||_0x139983['isInContent']?(_0x4ad890['add'](_0x139983['head']),_0x226c99['add'](_0x139983)):this['_removeSuggestion'](_0x139983);}}_0x226c99['size']>0x0&&this['_refreshSuggestionsChain'](_0x226c99);for(const _0x95128e of _0x4ad890)this['fire']('suggestionChanged',_0x95128e);}),_0x51eaca['model']['on']('applyOperation',(_0x64f9b0,_0x286bef)=>{const _0x592361=_0x286bef[0x0];if(!this['_suggestions']['size'])return;if(!_0x592361['isDocumentOperation'])return;if(_0x592361['batch']['isUndo']||!_0x592361['batch']['isLocal'])return;let _0x2e1af6,_0x37f4dd;switch(_0x592361['type']){case'insert':_0x2e1af6=_0x51eaca['model']['createPositionAt'](_0x592361['position']),_0x37f4dd=_0x2e1af6['getShiftedBy'](_0x592361['howMany']);break;case'split':_0x2e1af6=_0x51eaca['model']['createPositionAt'](_0x592361['splitPosition']),_0x37f4dd=_0x51eaca['model']['createPositionAt'](_0x592361['moveTargetPosition']);break;case'move':_0x2e1af6=_0x51eaca['model']['createPositionAt'](_0x592361['targetPosition']),_0x37f4dd=_0x2e1af6['getShiftedBy'](_0x592361['howMany']);break;default:return;}const _0x388730=_0x51eaca['model']['createRange'](_0x2e1af6,_0x37f4dd);_0x51eaca['model']['change'](()=>{for(const {suggestion:_0x52c39e,meta:_0x2cdb49}of this['_findSuggestions'](_0x388730)){if(_0x52c39e['isMultiRange'])continue;if('formatInline'==_0x52c39e['type'])continue;const _0x5b053a=this['_getAttributeKey'](_0x52c39e);if(_0x5b053a&&this['_isBlockAttribute'](_0x5b053a)&&'split'!=_0x592361['type'])continue;const _0x3506a2=_0x52c39e['data']&&_0x52c39e['data']['multipleBlocks'];('formatBlock'!=_0x52c39e['type']||'split'==_0x592361['type']&&!_0x3506a2)&&(_0x2cdb49['containsRangeInObject']||'insertion'==_0x52c39e['type']&&_0x2cdb49['isOwn']||_0x52c39e['getFirstRange']()['containsRange'](_0x388730)&&this['_breakSuggestionMarker'](_0x52c39e,_0x2e1af6,_0x37f4dd));}});},{'priority':'lowest'}),_0x51eaca['model']['on']('deleteContent',(_0x42eff5,_0x5989ea)=>{const _0x1f7eb2=_0x5989ea[0x0],_0x505045=_0x5989ea[0x1];if(_0x505045&&_0x505045['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1f7eb2['isCollapsed'])return;const _0x2cb6a1=_0x51eaca['model']['schema'],{start:_0x3e6b87,end:_0x458931}=_0x1f7eb2['getFirstRange'](),_0x3fc39d=_0x3e6b87['nodeAfter']&&_0x2cb6a1['isLimit'](_0x3e6b87['nodeAfter'])?null:_0x2cb6a1['getNearestSelectionRange'](_0x3e6b87,'forward'),_0xc58fda=_0x458931['nodeBefore']&&_0x2cb6a1['isLimit'](_0x458931['nodeBefore'])?null:_0x2cb6a1['getNearestSelectionRange'](_0x458931,'backward'),_0x2ecc17=_0x51eaca['model']['createRange'](_0x3fc39d?_0x3fc39d['start']:_0x3e6b87,_0xc58fda?_0xc58fda['end']:_0x458931);_0x51eaca['model']['change'](_0xa4e1ec=>{this['markDeletion'](_0x2ecc17);const _0x28dc40=_0x51eaca['model']['schema']['getNearestSelectionRange'](_0x2ecc17['start']);_0x1f7eb2['is']('documentSelection')?_0xa4e1ec['setSelection'](_0x28dc40):_0x1f7eb2['setTo'](_0x28dc40);}),_0x42eff5['stop']();},{'priority':_0x5d48ef['normal']+0xa}),_0x51eaca['model']['on']('insertContent',(_0xac6917,_0x166fab)=>{const _0x549151=_0x166fab[_0x166fab['length']-0x1];_0x549151&&_0x549151['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x51eaca['model']['change'](()=>{let _0x1560bd=_0x51eaca['model']['insertContent'](_0x166fab[0x0],_0x166fab[0x1],_0x166fab[0x2],{'forceDefaultExecution':!0x0});if(!_0x1560bd)return;_0xac6917['return']=_0x1560bd['clone']();const _0xd858aa=_0x1560bd['end']['nodeBefore'],_0x447e00=_0x51eaca['model']['schema'];_0xd858aa&&_0x447e00['isBlock'](_0xd858aa)&&!_0x447e00['isObject'](_0xd858aa)&&(_0x1560bd=_0x51eaca['model']['createRange'](_0x1560bd['start'],_0x51eaca['model']['createPositionAt'](_0xd858aa,'end'))),this['markInsertion'](_0x1560bd);}),_0xac6917['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3d2bda=new x(_0x51eaca,this['_suggestions']);_0x51eaca['commands']['add']('acceptSuggestion',_0x3d2bda),this['enableCommand']('acceptSuggestion');const _0x3910f2=new R(_0x51eaca,this['_suggestions']);_0x51eaca['commands']['add']('discardSuggestion',_0x3910f2),this['enableCommand']('discardSuggestion'),_0x51eaca['commands']['add']('acceptAllSuggestions',new E(_0x51eaca,_0x3d2bda,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x51eaca['commands']['add']('discardAllSuggestions',new E(_0x51eaca,_0x3910f2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x51eaca['commands']['add']('acceptSelectedSuggestions',new O(_0x51eaca,_0x3d2bda,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x51eaca['commands']['add']('discardSelectedSuggestions',new O(_0x51eaca,_0x3910f2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4a04c7=_0x51eaca['plugins']['get']('CommentsRepository');this['listenTo'](_0x4a04c7,'addComment',(_0x1d7b6b,{threadId:_0x21d4d2})=>{const _0x232c06=this['_suggestions']['get'](_0x21d4d2);_0x232c06&&_0x232c06['commentThread']&&0x1===_0x232c06['commentThread']['length']&&this['_updateSuggestionData'](_0x21d4d2,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4a04c7,'removeComment',(_0x3be280,{threadId:_0x263564})=>{const _0xc3b38d=this['_suggestions']['get'](_0x263564);_0xc3b38d&&_0xc3b38d['commentThread']&&!_0xc3b38d['commentThread']['length']&&this['_updateSuggestionData'](_0x263564,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4d24f5){if(this['_adapter'])throw new _0x3334e4('track-changes-adapter-already-set',this);this['_adapter']=_0x4d24f5;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1b7508=!0x1,toJSON:_0x32f3d3=!0x1}={}){const _0x442d2c=[];for(const _0x42d02c of this['_suggestions']['values']())_0x1b7508&&!_0x42d02c['isInContent']||_0x442d2c['push'](_0x42d02c);return _0x32f3d3?_0x442d2c['map'](_0x2ea6a9=>_0x2ea6a9['toJSON']()):_0x442d2c;}['getSuggestion'](_0x116e2e){const _0x482153=this['_suggestions']['get'](_0x116e2e);if(!_0x482153)throw new _0x3334e4('track-changes-suggestion-not-found',this);return _0x482153;}['hasSuggestion'](_0x360369){return this['_suggestions']['has'](_0x360369);}['addSuggestionData'](_0x591280){const {authorId:_0x17179a,id:_0x5c4098,attributes:_0x493f10}=_0x591280,[_0xa12214,_0x2dcb6d]=_0x591280['type']['split'](':'),_0x4ff906=this['_suggestions']['get'](_0x5c4098)||this['_createSuggestion'](_0xa12214,_0x2dcb6d,_0x5c4098,_0x17179a,_0x493f10);if(this['_addThreadToSuggestion'](_0x4ff906),this['_checkSuggestionCorrectness'](_0x4ff906,_0xa12214,_0x2dcb6d||null,_0x17179a),_0x4ff906['createdAt']=_0x591280['createdAt'],_0x4ff906['_isDataLoaded']=!0x0,_0x493f10&&_0x493f10['@external']){const _0x51d691=_0x493f10['@external'],_0x1d7ad3=this['_getExternalAuthor'](_0x51d691['authorName']);_0x4ff906['authoredAt']=_0x51d691['createdAt'],_0x4ff906['author']=_0x1d7ad3,_0x4ff906['isExternal']=!0x0;}else _0x4ff906['authoredAt']=_0x591280['createdAt'];switch(_0x591280['data']&&(_0x4ff906['data']=_0x591280['data']),_0x591280['attributes']&&(_0x4ff906['attributes']=_0x591280['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4ff906['_saved']=!0x0),this['_suggestionState']['get'](_0x4ff906)){case'notReady':this['_suggestionState']['set'](_0x4ff906,'dataReady');break;case'markerReady':_0x4ff906['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4ff906])),this['_refreshSuggestionsChain'](new Set([_0x4ff906])),this['_suggestionState']['set'](_0x4ff906,'ready'),this['fire']('suggestionLoaded',_0x4ff906)):this['_suggestionState']['set'](_0x4ff906,'removed');}return _0x4ff906;}['acceptSuggestion'](_0x519434){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5b6880 of _0x519434['getAllAdjacentSuggestions']())_0x5b6880['accept']();});});}['discardSuggestion'](_0x23971c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x317e18 of _0x23971c['getAllAdjacentSuggestions']())_0x317e18['discard']();});});}['enableCommand'](_0x258ad1,_0x62f84c){const _0x1e29b4=this['editor']['commands']['get'](_0x258ad1);if(!_0x1e29b4)throw new _0x3334e4('track-changes-command-not-found',this,{'commandName':_0x258ad1});if(this['_enabledCommands']['has'](_0x1e29b4))throw new _0x3334e4('track-changes-enable-command-twice',this,{'commandName':_0x258ad1});this['_enabledCommands']['add'](_0x1e29b4),_0x62f84c&&_0x1e29b4['on']('execute',(_0x45fd76,_0x1f64cf)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1f64cf['length']>0x0&&_0x1f64cf[_0x1f64cf['length']-0x1]&&_0x1f64cf[_0x1f64cf['length']-0x1]['forceDefaultExecution']?_0x1f64cf['pop']():(_0x45fd76['return']=_0x62f84c((..._0x496cf3)=>_0x1e29b4['execute'](..._0x496cf3,{'forceDefaultExecution':!0x0}),..._0x1f64cf),_0x45fd76['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x129183){let _0x372225,_0x1993b2;const _0x3c7457=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x372225=_0x129183();}catch(_0x5170de){_0x1993b2=_0x5170de;}return _0x3c7457||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1993b2&&_0x3334e4['rethrowUnexpectedError'](_0x1993b2,this),_0x372225;}['markInsertion'](_0x241e3b,_0x52fb1a=null,_0x287b85={}){if(_0x241e3b['isCollapsed'])return null;const _0x3c1abe=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x19702f,meta:_0x39fd00}of this['_findSuggestions'](_0x241e3b,'insertion'))if(_0x39fd00['isOwn']){if(!_0x39fd00['isNextTo']){if(_0x39fd00['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x19702f,_0x287b85))continue;return _0x19702f;}if(qt(_0x19702f,_0x287b85))return _0x19702f;this['_breakSuggestionMarker'](_0x19702f,_0x241e3b['start'],_0x241e3b['end']);break;}if(_0x52fb1a==_0x19702f['subType']&&qt(_0x19702f,_0x287b85)){const _0x4bf730=_0x19702f['getFirstRange']();return _0x4bf730['start']['isEqual'](_0x241e3b['end'])?this['_setSuggestionRange'](_0x19702f,this['_model']['createRange'](_0x241e3b['start'],_0x4bf730['end'])):this['_setSuggestionRange'](_0x19702f,this['_model']['createRange'](_0x4bf730['start'],_0x241e3b['end'])),_0x19702f;}}const _0x4637ae=_0x360b63(),_0x82d308=_0x3c1abe['id'],_0x35e155=_0x52fb1a?'insertion:'+_0x52fb1a:'insertion',_0xa3c152=this['_setSuggestionData']({'id':_0x4637ae,'type':_0x35e155,'createdAt':new Date(),'authorId':_0x82d308,'attributes':_0x287b85});return this['_addSuggestionMarker'](_0x35e155,_0x4637ae,_0x82d308,_0x241e3b),_0xa3c152;}['markMultiRangeInsertion'](_0xffae8f,_0x4c2723='multi',_0x79bdbb={}){const _0x31f19f=this['editor']['plugins']['get']('Users')['me'],_0x469633=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4c2723,'join');for(const _0x408edb of this['getSuggestions']())if(_0x408edb['author']['id']==_0x31f19f['id']&&'insertion'==_0x408edb['type']&&_0x408edb['subType']==_0x4c2723&&qt(_0x408edb,_0x79bdbb)&&(_0x469633(_0x408edb['getRanges'](),_0xffae8f)||_0x469633(_0xffae8f,_0x408edb['getRanges']()))){for(const _0x5ec39a of _0xffae8f)_0x408edb['addRange'](_0x5ec39a);return _0x408edb;}for(const {suggestion:_0x52e0c7,meta:_0x47ee4d}of this['_findSuggestions'](_0xffae8f,'insertion')){if(!_0x47ee4d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x47ee4d['containsRangeInObject'])continue;if(!qt(_0x52e0c7,_0x79bdbb))continue;let _0x433be1=!0x0;for(const _0x3f4ecc of _0x52e0c7['getRanges']())for(const _0x32e3c7 of _0xffae8f)if(!_0x3f4ecc['containsRange'](_0x32e3c7)){_0x433be1=!0x1;break;}if(_0x433be1)return _0x52e0c7;}const _0x58f324=_0x360b63(),_0x4f30da=_0x31f19f['id'],_0x118889='insertion:'+_0x4c2723,_0xa15800=this['_setSuggestionData']({'id':_0x58f324,'type':_0x118889,'createdAt':new Date(),'authorId':_0x4f30da,'attributes':_0x79bdbb});for(const _0x2f11eb of _0xffae8f)this['_addSuggestionMarker'](_0x118889,_0x58f324,_0x4f30da,_0x2f11eb,u['getMultiRangeId']());return _0xa15800;}['markInlineFormat'](_0x4b8b8c,_0x4f8a45,_0x165f97=null,_0x38f505={}){if(_0x165f97=_0x165f97||Gt(_0x4f8a45),_0x4b8b8c['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2d7b0f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x165f97,'accept');return this['forceDefaultExecution'](()=>_0x2d7b0f([_0x4b8b8c],_0x4f8a45,_0x38f505)),null;}const _0x51a2a2=this['editor']['plugins']['get']('Users')['me'],_0x1bc427=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x31dff8,meta:_0x193389}of this['_findSuggestions'](_0x4b8b8c,'insertion'))_0x193389['isOwn']&&!_0x193389['isInsideObject']&&_0x1bc427['push'](..._0x31dff8['getRanges']());}const _0xd9f8b=function(_0x2081bb,_0x3b3dba){const _0x4cef82=[];for(const _0x24fa51 of _0x3b3dba){const _0x4fd7a2=_0x2081bb['getIntersection'](_0x24fa51);_0x4fd7a2&&_0x4cef82['push'](_0x4fd7a2);}return _0x4cef82;}(_0x4b8b8c,_0x1bc427),_0x5e0577=function(_0x3ced5e,_0xbb2015){const _0x4fefe1=[_0x3ced5e];for(const _0x2adced of _0xbb2015){let _0x6a2df5=0x0;for(;_0x6a2df5<_0x4fefe1['length'];){const _0x2c492a=_0x4fefe1[_0x6a2df5]['getDifference'](_0x2adced);_0x4fefe1['splice'](_0x6a2df5,0x1,..._0x2c492a),_0x6a2df5+=_0x2c492a['length'];}}return _0x4fefe1;}(_0x4b8b8c,_0x1bc427);_0xd9f8b['length']&&this['_model']['change'](()=>{for(const _0x1fe8d0 of _0xd9f8b){const _0x1062d7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x165f97,'accept');this['forceDefaultExecution'](()=>_0x1062d7([_0x1fe8d0],_0x4f8a45,_0x38f505));}});for(const _0x11e4a7 of _0x5e0577){let _0x2d9739=null,_0x24429b=_0x11e4a7['start'],_0x5a193a=_0x11e4a7['end'];for(const {suggestion:_0x5151cf,meta:_0xf7fae7}of this['_findSuggestions'](_0x11e4a7,'formatInline')){if(!_0xf7fae7['isOwn'])continue;if(_0x5151cf['subType']!=_0x165f97)continue;if(!qt(_0x5151cf,_0x38f505))continue;const _0x139796=_0x5151cf['getFirstRange']();if(_0x139796['containsRange'](_0x11e4a7,!0x0))return null;_0x24429b=_0x24429b['isBefore'](_0x139796['start'])?_0x24429b:_0x139796['start'],_0x5a193a=_0x5a193a['isAfter'](_0x139796['end'])?_0x5a193a:_0x139796['end'],_0x2d9739?_0x139796['start']['isBefore'](_0x2d9739['getFirstRange']()['start'])?(_0x2d9739['removeMarkers'](),_0x2d9739=_0x5151cf):_0x5151cf['removeMarkers']():_0x2d9739=_0x5151cf;}const _0x1d3263=this['_model']['createRange'](_0x24429b,_0x5a193a);if(_0x2d9739)this['_setSuggestionRange'](_0x2d9739,_0x1d3263);else{const _0x261629=_0x360b63(),_0xa8a7ac=_0x51a2a2['id'];this['_setSuggestionData']({'id':_0x261629,'type':'formatInline:'+_0x165f97,'data':_0x4f8a45,'createdAt':new Date(),'authorId':_0xa8a7ac,'attributes':_0x38f505}),this['_addSuggestionMarker']('formatInline:'+_0x165f97,_0x261629,_0xa8a7ac,_0x1d3263);}}return null;}['markBlockFormat'](_0xa0c1ac,_0x3a8435,_0x5290ab=[],_0x630cd8=null,_0x479e14={}){_0x3a8435['formatGroupId']||(_0x3a8435['formatGroupId']=_0x3a8435['commandName']),_0x3a8435['multipleBlocks']=_0xa0c1ac['is']('range'),_0x630cd8=_0x630cd8||Gt(_0x3a8435);const _0x2e5a5b=_0x5290ab['map'](_0x442bea=>Lt(_0x442bea,this['_model'])),_0x11e285=_0xa0c1ac['is']('range')?_0xa0c1ac:Lt(_0xa0c1ac,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5a8181=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x630cd8,'accept');return this['forceDefaultExecution'](()=>_0x5a8181([_0x11e285],_0x3a8435,_0x479e14)),null;}_0x2e5a5b['push'](_0x11e285);let _0x3782f2=!0x0;for(const _0x352b3f of _0x2e5a5b)if(!this['_rangeIsInLocalUserInsertion'](_0x352b3f)){_0x3782f2=!0x1;break;}if(_0x3782f2&&'always'!==this['_trackFormatChanges']){const _0x14303f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x630cd8,'accept');return this['forceDefaultExecution'](()=>_0x14303f([_0x11e285],_0x3a8435,_0x479e14)),null;}let _0x3c2d3b=null,_0x4cced4=_0x11e285['start'],_0x79b6d9=_0x11e285['end'];for(const {suggestion:_0x11ed25,meta:_0xdc8f0c}of this['_findSuggestions'](_0x11e285,'formatBlock')){if(!_0xdc8f0c['isOwn'])continue;if(_0xdc8f0c['isNextTo']||_0xdc8f0c['containsRangeInObject']||_0xdc8f0c['isInsideObject'])continue;if(_0x11ed25['data']['formatGroupId']!=_0x3a8435['formatGroupId'])continue;if(!qt(_0x11ed25,_0x479e14))continue;const _0x3176a4=_0x11ed25['getFirstRange']();if(_0x11ed25['subType']==_0x630cd8){if(_0x3176a4['containsRange'](_0x11e285,!0x0))return null;_0x4cced4=_0x4cced4['isBefore'](_0x3176a4['start'])?_0x4cced4:_0x3176a4['start'],_0x79b6d9=_0x79b6d9['isAfter'](_0x3176a4['end'])?_0x79b6d9:_0x3176a4['end'],_0x3c2d3b?_0x3176a4['start']['isBefore'](_0x3c2d3b['getFirstRange']()['start'])?(_0x3c2d3b['removeMarkers'](),_0x3c2d3b=_0x11ed25):_0x11ed25['removeMarkers']():_0x3c2d3b=_0x11ed25;}else{const _0x43d17c=_0x11e285['getIntersection'](_0x3176a4);this['_cutOutSuggestionMarker'](_0x11ed25,_0x43d17c);}}const _0x327fc5=this['editor']['plugins']['get']('Users')['me'],_0x10580e=_0x360b63(),_0x487354=_0x327fc5['id'];if(_0x3c2d3b)return this['_setSuggestionRange'](_0x3c2d3b,this['_model']['createRange'](_0x4cced4,_0x79b6d9)),_0x3c2d3b;{const _0x2b4ffa=this['_setSuggestionData']({'id':_0x10580e,'type':'formatBlock:'+_0x630cd8,'data':_0x3a8435,'createdAt':new Date(),'authorId':_0x487354,'attributes':_0x479e14});return this['_addSuggestionMarker']('formatBlock:'+_0x630cd8,_0x10580e,_0x487354,this['_model']['createRange'](_0x4cced4,_0x79b6d9)),_0x2b4ffa;}}['markMultiRangeBlockFormat'](_0x49952e,_0x152783,_0x4dd2b5=[],_0x95c734=null,_0x28b38f={}){_0x152783['formatGroupId']||(_0x152783['formatGroupId']=_0x152783['commandName']);const _0xe1e7b6=_0x49952e[0x0];_0x152783['multipleBlocks']=_0xe1e7b6['is']('range'),_0x95c734=_0x95c734||Gt(_0x152783);const _0x26a516=_0x4dd2b5['map'](_0x1cf758=>Lt(_0x1cf758,this['_model'])),_0x4e9d2a=_0xe1e7b6['is']('range')?_0x49952e:_0x49952e['map'](_0xcde376=>Lt(_0xcde376,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3f90ca=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x95c734,'accept');return this['forceDefaultExecution'](()=>_0x3f90ca(_0x4e9d2a,_0x152783,_0x28b38f)),null;}_0x26a516['push'](..._0x4e9d2a);let _0x159fcb=!0x0;for(const _0x2991e9 of _0x26a516)if(!this['_rangeIsInLocalUserInsertion'](_0x2991e9)){_0x159fcb=!0x1;break;}if(_0x159fcb&&'always'!==this['_trackFormatChanges']){const _0x86456e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x95c734,'accept');return this['forceDefaultExecution'](()=>_0x86456e(_0x4e9d2a,_0x152783,_0x28b38f)),null;}const _0x258c9c=this['editor']['plugins']['get']('Users')['me'];for(const _0x5dd0dd of this['getSuggestions']()){if(_0x5dd0dd['author']['id']!=_0x258c9c['id'])continue;if('formatBlock'!=_0x5dd0dd['type']||_0x5dd0dd['data']['formatGroupId']!=_0x152783['formatGroupId'])continue;if(!qt(_0x5dd0dd,_0x28b38f))continue;const _0x56c0b9=_0x5dd0dd['subType']==_0x95c734;for(let _0x281e65=0x0;_0x281e65<_0x4e9d2a['length'];_0x281e65++){const _0x54df4b=_0x4e9d2a[_0x281e65];for(const _0x4e76c8 of _0x5dd0dd['getMarkers']()){const _0xd4cb4c=_0x4e76c8['getRange']();if(_0x54df4b['isEqual'](_0xd4cb4c)){_0x56c0b9?(_0x4e9d2a['splice'](_0x281e65,0x1),_0x281e65--):_0x5dd0dd['removeMarker'](_0x4e76c8['name']);break;}}}}if(0x0==_0x4e9d2a['length'])return null;const _0xa4755=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x95c734,'join');for(const _0x73732f of this['getSuggestions']())if(_0x73732f['author']['id']==_0x258c9c['id']&&'formatBlock'==_0x73732f['type']&&_0x73732f['data']['formatGroupId']==_0x152783['formatGroupId']&&_0x73732f['subType']==_0x95c734&&qt(_0x73732f,_0x28b38f)&&(_0xa4755(_0x73732f['getRanges'](),_0x4e9d2a)||_0xa4755(_0x4e9d2a,_0x73732f['getRanges']()))){for(const _0x5d2923 of _0x4e9d2a)_0x73732f['addRange'](_0x5d2923);return _0x73732f;}const _0x579d5f=_0x360b63(),_0x3b7b98=_0x258c9c['id'],_0x1508b2='formatBlock:'+_0x95c734,_0x1967f5=this['_setSuggestionData']({'id':_0x579d5f,'type':_0x1508b2,'data':_0x152783,'createdAt':new Date(),'authorId':_0x3b7b98,'attributes':_0x28b38f});for(const _0x35f0d7 of _0x4e9d2a)this['_addSuggestionMarker'](_0x1508b2,_0x579d5f,_0x3b7b98,_0x35f0d7,u['getMultiRangeId']());return _0x1967f5;}['markDeletion'](_0x2a8940,_0x2b49a3=null,_0x510908={}){if(_0x2a8940['isCollapsed'])return null;const _0xbd039a=this['editor']['plugins']['get']('Users')['me'],_0x494f38=new _0x2ad496(_0x2a8940['start'],_0x2a8940['end']);for(const {suggestion:_0x5215a0,meta:_0x408d38}of this['_findSuggestions'](_0x494f38,'insertion'))if(_0x408d38['isOwn']&&!_0x408d38['isNextTo']){if(_0x5215a0['isMultiRange']){const _0x9817bf=_0x5215a0['getRanges']()['filter'](_0x688c5b=>'$graveyard'!=_0x688c5b['root']['rootName']);_0x9817bf['every'](_0x300940=>_0x494f38['containsRange'](_0x300940,!0x0))&&_0x5215a0['discard']();if(_0x9817bf['some'](_0x52dd14=>_0x52dd14['containsRange'](_0x494f38,!0x0))){const _0x426e13=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b49a3,'accept');return this['forceDefaultExecution'](()=>_0x426e13([_0x494f38],null,_0x510908)),null;}}else{const _0x3632b5=_0x494f38['getIntersection'](_0x5215a0['getFirstRange']());null!==_0x3632b5&&_0x5215a0['_onDiscard']([_0x3632b5],null,_0x510908);}}if(_0x494f38['detach'](),_0x494f38['isCollapsed']||'$graveyard'==_0x494f38['root']['rootName'])return null;let _0x127dab=null,_0x36e873=_0x494f38['start'],_0x1e7420=_0x494f38['end'];const _0x3b186e=this['_findSuggestions'](_0x494f38,'deletion');for(const {suggestion:_0x15a959,meta:_0x46278b}of _0x3b186e){const _0x2b12a4=this['_model']['createRange'](_0x36e873,_0x1e7420);if(_0x46278b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x46278b['containsRangeInObject']&&!_0x46278b['isInsideObject'])){if(_0x15a959['isMultiRange']){if(!qt(_0x15a959,_0x510908))continue;let _0x4262cb=!0x0;for(const _0xcfcdaf of _0x15a959['getRanges']()){if(_0xcfcdaf['containsRange'](_0x2b12a4,!0x0))return _0x15a959;_0x2b12a4['containsRange'](_0xcfcdaf)||(_0x4262cb=!0x1);}_0x4262cb&&_0x15a959['discard']();}else{const _0x1a1851=_0x15a959['getFirstRange']();if(_0x1a1851['containsRange'](_0x2b12a4,!0x0))return _0x15a959;if(!qt(_0x15a959,_0x510908)){_0x2b12a4['containsRange'](_0x1a1851)?_0x15a959['removeMarkers']():_0x1a1851['containsPosition'](_0x36e873)?_0x36e873=_0x1a1851['end']:_0x1a1851['containsPosition'](_0x1e7420)&&(_0x1e7420=_0x1a1851['start']);continue;}_0x36e873=_0x36e873['isBefore'](_0x1a1851['start'])?_0x36e873:_0x1a1851['start'],_0x1e7420=_0x1e7420['isAfter'](_0x1a1851['end'])?_0x1e7420:_0x1a1851['end'],_0x510908=Object['assign']({},_0x15a959['attributes']),_0x127dab?_0x1a1851['start']['isBefore'](_0x127dab['getFirstRange']()['start'])?(_0x127dab['removeMarkers'](),_0x127dab=_0x15a959):_0x15a959['removeMarkers']():_0x127dab=_0x15a959;}}}if(_0x127dab)return this['_setSuggestionRange'](_0x127dab,this['_model']['createRange'](_0x36e873,_0x1e7420)),_0x127dab;{const _0x70e9b1=_0x360b63(),_0x22352c=this['_model']['createRange'](_0x36e873,_0x1e7420),_0x5ebcb6=_0xbd039a['id'],_0x47173a=_0x2b49a3?'deletion:'+_0x2b49a3:'deletion',_0x5d35d5=this['_setSuggestionData']({'id':_0x70e9b1,'type':_0x47173a,'createdAt':new Date(),'authorId':_0x5ebcb6,'attributes':_0x510908});return this['_addSuggestionMarker'](_0x47173a,_0x70e9b1,_0x5ebcb6,_0x22352c),_0x5d35d5;}}['markMultiRangeDeletion'](_0x4946ba,_0x333556='multi',_0x4eee39={}){const _0x318dbd=this['editor']['plugins']['get']('Users')['me'],_0xedcf03=_0x4946ba['map'](_0x54b9e9=>new _0x2ad496(_0x54b9e9['start'],_0x54b9e9['end'])),_0x56ebd4=new Set();for(const {suggestion:_0x23e9c8,meta:_0x13c9c2}of this['_findSuggestions'](_0xedcf03,'insertion'))_0x13c9c2['isOwn']&&!_0x13c9c2['isNextTo']&&_0x56ebd4['add'](_0x23e9c8);for(const _0x130fc6 of _0x56ebd4)if(_0x130fc6['isMultiRange']){const _0x59147=_0x130fc6['getRanges']();(!_0x130fc6['attributes']||!_0x130fc6['attributes']['skipNestingCheck'])&&(_0x59147['every'](_0x2340be=>_0xedcf03['some'](_0x128a1d=>_0x128a1d['containsRange'](_0x2340be,!0x0)))&&_0x130fc6['discard']());if(_0xedcf03['every'](_0x4b13fd=>_0x59147['some'](_0x4f6dde=>_0x4f6dde['containsRange'](_0x4b13fd,!0x0)))){const _0x3318ac=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x333556,'accept');return this['forceDefaultExecution'](()=>_0x3318ac(_0x4946ba,null,_0x4eee39)),null;}}else{const _0x28d119=_0x130fc6['getFirstRange']();_0xedcf03['some'](_0x5679ab=>_0x5679ab['containsRange'](_0x28d119,!0x0))&&_0x130fc6['discard']();if(_0xedcf03['every'](_0x2378b0=>_0x28d119['containsRange'](_0x2378b0,!0x0))){const _0x13937f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x333556,'accept');return this['forceDefaultExecution'](()=>_0x13937f(_0xedcf03,null,_0x4eee39)),null;}}const _0x1a4405=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x333556,'join');let _0x39c109=null;for(const _0x33e3f6 of this['getSuggestions']())if(_0x33e3f6['author']['id']==_0x318dbd['id']&&_0x33e3f6['isInContent']&&'deletion'==_0x33e3f6['type']&&_0x33e3f6['subType']==_0x333556&&qt(_0x33e3f6,_0x4eee39)&&(_0x1a4405(_0x33e3f6['getRanges'](),_0xedcf03)||_0x1a4405(_0xedcf03,_0x33e3f6['getRanges']()))){if(_0x39c109){if(_0x33e3f6['commentThread']&&_0x33e3f6['commentThread']['length'])continue;for(const _0x11968d of _0x33e3f6['getRanges']())_0x39c109['isIntersectingWithRange'](_0x11968d)||_0x39c109['addRange'](_0x11968d);_0x33e3f6['removeMarkers']();}else{_0x39c109=_0x33e3f6;for(const _0x164080 of _0xedcf03)_0x33e3f6['isIntersectingWithRange'](_0x164080)||_0x33e3f6['addRange'](_0x164080);}}if(_0x39c109)return _0x39c109;_0x56ebd4['clear']();for(const {suggestion:_0x5198f6,meta:_0x1af7a2}of this['_findSuggestions'](_0xedcf03,'deletion'))_0x1af7a2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1af7a2['containsRangeInObject']&&!_0x1af7a2['isInsideObject'])&&qt(_0x5198f6,_0x4eee39)&&_0x56ebd4['add'](_0x5198f6);for(const _0x2bbb72 of _0x56ebd4){const _0x513972=_0x2bbb72['getRanges']();if(!_0x4eee39||!_0x4eee39['skipNestingCheck']){if(_0xedcf03['every'](_0x3a7250=>_0x513972['some'](_0x244df3=>_0x244df3['containsRange'](_0x3a7250,!0x0))))return _0x2bbb72;}(!_0x2bbb72['attributes']||!_0x2bbb72['attributes']['skipNestingCheck'])&&(_0x513972['every'](_0x4fb3c1=>_0xedcf03['some'](_0x5f259f=>_0x5f259f['containsRange'](_0x4fb3c1,!0x0)))&&_0x2bbb72['discard']());}const _0x1098ea=_0x360b63(),_0xa31d0a=_0x318dbd['id'],_0xf65edf='deletion:'+_0x333556,_0x534e53=this['_setSuggestionData']({'id':_0x1098ea,'type':_0xf65edf,'createdAt':new Date(),'authorId':_0xa31d0a,'attributes':_0x4eee39});for(const _0x16bde1 of _0xedcf03)_0x16bde1['detach'](),_0x16bde1['isCollapsed']||'$graveyard'==_0x16bde1['root']['rootName']||this['_addSuggestionMarker'](_0xf65edf,_0x1098ea,_0xa31d0a,_0x16bde1,u['getMultiRangeId']());return _0x534e53;}['markAttributeChange'](_0x1d84eb,_0x5d2698,_0x116559,_0x46a6d1,_0x24ce71){if(_0x1d84eb['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x53ef1c=this['editor']['plugins']['get']('Users')['me']['id'],_0x4f8222=Array['from'](this['_suggestions']['values']())['filter'](_0x1d59ee=>'attribute'==_0x1d59ee['type']&&_0x1d59ee['data']['key']==_0x5d2698&&_0x1d59ee['isIntersectingWithRange'](_0x1d84eb));if('default'===this['_trackFormatChanges']){const _0x501889=this['_findSuggestions'](_0x1d84eb,'insertion')['filter'](({meta:_0x268ba2})=>_0x268ba2['isOwn']&&!_0x268ba2['isInsideObject']&&!_0x268ba2['isNextTo'])['map'](({suggestion:_0x1e0c7e})=>_0x1e0c7e);_0x4f8222['unshift'](..._0x501889);}const _0x40d3d4=new Map([[_0x1d84eb,_0x116559]]);for(const _0x28431f of _0x4f8222){const _0xf2d1a1='attribute'==_0x28431f['type']?_0x28431f['data']['oldValue']:void 0x0,_0x3faae7=_0x28431f['getFirstRange'](),_0x45a628=Array['from'](_0x40d3d4['keys']())['find'](_0x3ad227=>_0x3ad227['isIntersecting'](_0x3faae7));if(!_0x45a628)continue;const _0x2a9836=_0x45a628['getDifference'](_0x3faae7);this['_isBlockAttribute'](_0x5d2698)&&'insertion'==_0x28431f['type']&&0x0!=_0x2a9836['length']||(_0x40d3d4['delete'](_0x45a628),_0x2a9836['forEach'](_0x31210b=>{_0x40d3d4['set'](_0x31210b,_0x116559);}),'insertion'!=_0x28431f['type']&&_0xf2d1a1!=_0x46a6d1&&_0x40d3d4['set'](_0x45a628['getIntersection'](_0x3faae7),_0xf2d1a1));}const _0x4f966b=[];for(const [_0x2e7b1e,_0x179360]of _0x40d3d4){const _0x509c95=_0x360b63(),_0x3a92e9={'key':_0x5d2698,'oldValue':_0x179360,'newValue':_0x46a6d1};_0x5d2698['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':_0x5d2698});const _0x5dd7a1=('attribute:'+(_0x5d2698+'|'+Gt({'newValue':_0x46a6d1})))['substring'](0x0,0x3c),_0x362e18=this['_setSuggestionData']({'id':_0x509c95,'type':_0x5dd7a1,'data':_0x3a92e9,'createdAt':new Date(),'authorId':_0x53ef1c,'attributes':_0x24ce71});_0x4f966b['push'](_0x362e18),this['_addSuggestionMarker'](_0x5dd7a1,_0x509c95,_0x53ef1c,_0x2e7b1e);}return _0x4f966b;}['enableDefaultAttributesIntegration'](_0x303f0c){this['enableCommand'](_0x303f0c,(_0xe0ddbf,..._0x43a9ee)=>{this['_recordAttributeChanges'](()=>{_0xe0ddbf(..._0x43a9ee);});});}['registerBlockAttribute'](_0x195cb8){this['_blockAttributeKeys']['add'](_0x195cb8);}['registerInlineAttribute'](_0x2bbe91){this['_inlineAttributeKeys']['add'](_0x2bbe91);}['_getAttributeKey'](_0x2fed2b){return'attribute'==_0x2fed2b['type']?_0x2fed2b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x323061,_0x1a6a8e){const _0x302a0e=_0x323061['getFirstMarker']();this['_model']['change'](_0x5c7970=>{_0x5c7970['updateMarker'](_0x302a0e,{'range':_0x1a6a8e});});}['_addThreadToSuggestion'](_0x4afdce){const _0x5964c0=_0x4afdce['id'],_0x291c48=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5964c0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x291c48,'threadId':_0x5964c0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1600f0=this['_commentsRepository']['getCommentThread'](_0x5964c0);_0x1600f0['unbind']('isRemovable'),_0x1600f0['isRemovable']=!0x1,_0x4afdce['commentThread']=_0x1600f0;}['_checkSuggestionCorrectness'](_0x489eaf,_0x2094d7,_0x2aae6a,_0x1f9288){if(_0x489eaf['type']!=_0x2094d7||_0x489eaf['subType']!=_0x2aae6a||_0x489eaf['creator']['id']!=_0x1f9288)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3334e4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x58a8b1,_0x3715ea){const _0x258d8c=_0x58a8b1['getFirstRange']();if(_0x3715ea['isEqual'](_0x258d8c))_0x58a8b1['removeMarkers']();else{if(_0x258d8c['containsRange'](_0x3715ea)){const _0x93c045=this['_model']['createPositionAt'](_0x3715ea['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x58a8b1,this['_model']['createRange'](_0x258d8c['start'],_0x93c045));const _0x26c0c8=_0x360b63(),_0xbe1c34=_0x58a8b1['creator']['id'],_0x560ece=_0x58a8b1['type']+':'+_0x58a8b1['subType'];this['_setSuggestionData']({'id':_0x26c0c8,'type':_0x560ece,'createdAt':new Date(),'authorId':_0xbe1c34,'data':_0x58a8b1['data'],'attributes':_0x58a8b1['attributes']});const _0xcbdcee=this['_model']['createPositionAt'](_0x3715ea['end']['parent'],'after'),_0x2c1c96=this['_model']['createRange'](_0xcbdcee,_0x258d8c['end']);this['_addSuggestionMarker'](_0x560ece,_0x26c0c8,_0xbe1c34,_0x2c1c96);}else{if(_0x258d8c['containsPosition'](_0x3715ea['start'])){const _0x8c20c4=this['_model']['createPositionAt'](_0x3715ea['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x58a8b1,this['_model']['createRange'](_0x258d8c['start'],_0x8c20c4));}else{const _0x30f724=this['_model']['createPositionAt'](_0x3715ea['end']['parent'],'after');this['_setSuggestionRange'](_0x58a8b1,this['_model']['createRange'](_0x30f724,_0x258d8c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x34e7ba){for(const {suggestion:_0x5ef81f,meta:_0x11d764}of this['_findSuggestions'](_0x34e7ba,'insertion')){if(!_0x11d764['isOwn'])continue;const _0x1842dd=_0x5ef81f['getRanges']();for(const _0x441d18 of _0x1842dd)if(!_0x34e7ba['getDifference'](_0x441d18)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3eef3e){const _0x111634=this['editor']['plugins']['get']('Users')['getUser'](_0x3eef3e);if(!_0x111634)throw new _0x3334e4('track-changes-user-not-found',this);return _0x111634;}['_getExternalAuthor'](_0x1d79b2){const _0x1d7b62=this['editor']['plugins']['get']('Users'),_0x46fdb4=_0x598d17('external:'+_0x1d79b2),_0x9b4a1b=_0x1d7b62['getUser'](_0x46fdb4);return _0x9b4a1b||_0x1d7b62['addUser']({'id':_0x46fdb4,'name':_0x1d79b2});}['_createSuggestion'](_0x2506b1,_0x15df68,_0x3b1bc0,_0x2f1d9a,_0x289000){const _0x2dd5d5=this['_getAuthorFromId'](_0x2f1d9a),_0xcadee5=this['_suggestionFactory']['buildSuggestion'](_0x2506b1,_0x15df68,_0x3b1bc0,_0x2dd5d5,_0x289000,_0x11b126=>{this['_updateSuggestionData'](_0x3b1bc0,{'attributes':_0x11b126});const _0x44aa02=this['getSuggestion'](_0x3b1bc0);this['_joinWithAdjacentSuggestions'](new Set([_0x44aa02])),this['_refreshSuggestionsChain'](new Set([_0x44aa02]));});return this['listenTo'](_0xcadee5,'accept',()=>{this['_updateSuggestionData'](_0x3b1bc0,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xcadee5,'discard',()=>{this['_updateSuggestionData'](_0x3b1bc0,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3b1bc0,_0xcadee5),this['_suggestionState']['set'](_0xcadee5,'notReady'),_0xcadee5;}['_splitMarkerName'](_0x49c4ca){const _0x10d657=_0x49c4ca['split'](':');return{'group':_0x10d657[0x0],'type':_0x10d657[0x1],'subType':_0x10d657['length']>=0x5?_0x10d657[0x2]:null,'id':_0x10d657['length']<0x5?_0x10d657[0x2]:_0x10d657[0x3],'authorId':_0x10d657['length']<0x5?_0x10d657[0x3]:_0x10d657[0x4],'markerCount':0x6==_0x10d657['length']?_0x10d657[0x5]:null};}['_breakSuggestionMarker'](_0x8593f6,_0x12ce14,_0x2bf619){const _0x1fa199=_0x8593f6['getFirstRange'](),_0x238694=_0x1fa199['start'],_0x408902=_0x1fa199['end'];this['_setSuggestionRange'](_0x8593f6,this['_model']['createRange'](_0x238694,_0x12ce14));const _0x3d8bbb=_0x360b63(),_0x2c57b3=_0x8593f6['creator']['id'],_0x168b24=_0x8593f6['type']+(_0x8593f6['subType']?':'+_0x8593f6['subType']:'');this['_setSuggestionData']({'id':_0x3d8bbb,'type':_0x168b24,'createdAt':new Date(),'authorId':_0x2c57b3,'originalSuggestionId':_0x8593f6['id'],'attributes':_0x8593f6['attributes'],'data':_0x8593f6['data']});const _0x1ef422=this['_getAttributeKey'](_0x8593f6);('formatBlock'==_0x8593f6['type']||_0x1ef422&&this['_isBlockAttribute'](_0x1ef422))&&(_0x2bf619=this['_model']['createPositionBefore'](_0x2bf619['parent'])),this['_addSuggestionMarker'](_0x168b24,_0x3d8bbb,_0x2c57b3,this['_model']['createRange'](_0x2bf619,_0x408902));}['_findSuggestions'](_0x34d82a,_0xff084b=null){const _0x41b833=[],_0x522c0e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x34d82a)||(_0x34d82a=[_0x34d82a]);for(const _0x42e5c6 of this['getSuggestions']()){if(!_0x42e5c6['isInContent'])continue;if(_0xff084b&&_0x42e5c6['type']!=_0xff084b)continue;let _0x1ca47b=!0x1;for(const _0x5d492e of _0x42e5c6['getRanges']()){for(const _0x42a6c4 of _0x34d82a){const _0x1f943a=_0x42a6c4['start']['isEqual'](_0x5d492e['end'])||_0x42a6c4['end']['isEqual'](_0x5d492e['start']);if(_0x1f943a||_0x42a6c4['getIntersection'](_0x5d492e)){const _0x5e0478=_0x42a6c4['containsRange'](_0x5d492e)&&Ot(this['_model']['schema'],_0x5d492e['start'],_0x42a6c4),_0x48976f=_0x5d492e['containsRange'](_0x42a6c4)&&Ot(this['_model']['schema'],_0x42a6c4['start'],_0x5d492e);_0x41b833['push']({'suggestion':_0x42e5c6,'meta':{'isOwn':_0x522c0e==_0x42e5c6['author'],'isNextTo':_0x1f943a,'isInsideObject':_0x5e0478,'containsRangeInObject':_0x48976f}}),_0x1ca47b=!0x0;break;}}if(_0x1ca47b)break;}}return _0x41b833;}['_addSuggestionMarker'](_0x2fbc78,_0x1d8a5f,_0x5ec424,_0x3e2b63,_0x45b423){this['_model']['change'](_0x332180=>{let _0x18e14d='suggestion:'+_0x2fbc78+':'+_0x1d8a5f+':'+_0x5ec424;_0x45b423&&(_0x18e14d=_0x18e14d+':'+_0x45b423),_0x332180['addMarker'](_0x18e14d,{'range':_0x3e2b63,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x8fac63){const _0x22c55c=_0x8fac63['previous'],_0x2e0784=_0x8fac63['next'];_0x8fac63['previous']=null,_0x8fac63['next']=null,null!=_0x22c55c&&_0x22c55c['next']==_0x8fac63&&(_0x22c55c['next']=_0x2e0784),null!=_0x2e0784&&_0x2e0784['previous']==_0x8fac63&&(_0x2e0784['previous']=_0x22c55c),'ready'==this['_suggestionState']['get'](_0x8fac63)&&(this['_suggestionState']['set'](_0x8fac63,'removed'),this['fire']('suggestionUnloaded',_0x8fac63,_0x22c55c,_0x2e0784));}['_setSuggestionData'](_0x3a9285){const _0x56d14c=_0x3a9285['id'],_0xa3a5f0=this['addSuggestionData'](_0x3a9285);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2ab59f=this['editor']['plugins']['get']('PendingActions'),_0x277308=_0xa3a5f0['hasComments'],_0x8227c2=_0xa3a5f0['subType']?_0xa3a5f0['type']+':'+_0xa3a5f0['subType']:_0xa3a5f0['type'],_0x5d216e=this['editor']['locale'],_0x29bc8e=_0x2ab59f['add'](o(_0x5d216e,'PENDING_ACTION_SUGGESTION')),_0x500733={'id':_0x56d14c,'type':_0x8227c2,'hasComments':_0x277308,'data':_0x3a9285['data']||null,'originalSuggestionId':_0x3a9285['originalSuggestionId']||null,'attributes':_0xa3a5f0['attributes']};this['_adapter']['addSuggestion'](_0x500733)['then'](_0x3f7939=>{_0xa3a5f0['_saved']=!0x0,_0x2ab59f['remove'](_0x29bc8e),_0x3f7939&&_0x3f7939['createdAt']&&(this['_suggestions']['get'](_0x56d14c)['createdAt']=_0x3f7939['createdAt']);})['catch'](_0x2a79e3=>{throw _0xf5dede('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xa3a5f0['discard']();}),_0xa3a5f0['stopListening'](),this['_suggestions']['delete'](_0xa3a5f0['id']),this['_suggestionState']['delete'](_0xa3a5f0),_0x2a79e3;});}return _0xa3a5f0;}['_isBlockAttribute'](_0x187dff){return this['_blockAttributeKeys']['has'](_0x187dff);}['_updateSuggestionData'](_0x3043bc,_0x31df24){const _0x55a02c=this['editor']['plugins']['get']('PendingActions'),_0x5807a1=this['getSuggestion'](_0x3043bc);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5807a1['_saved']){const _0x4186be=_0x55a02c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3043bc,_0x31df24)['then'](()=>{_0x55a02c['remove'](_0x4186be);});}else _0x5807a1['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3043bc,_0x31df24);});}}['_getSuggestionData'](_0x4682b5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3334e4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4682b5);}['_handleNewSuggestionMarker'](_0x170d93){const {id:_0x2999ca,type:_0x43ea47,subType:_0x4c678d,authorId:_0x18a022}=this['_splitMarkerName'](_0x170d93),_0x9ebe56=this['_suggestions']['get'](_0x2999ca)||this['_createSuggestion'](_0x43ea47,_0x4c678d,_0x2999ca,_0x18a022,{});switch(this['_checkSuggestionCorrectness'](_0x9ebe56,_0x43ea47,_0x4c678d,_0x18a022),this['_suggestionState']['get'](_0x9ebe56)){case'notReady':this['_getSuggestionData'](_0x2999ca)['then'](_0x3887b2=>{let _0x3a3294=Promise['resolve']();_0x3887b2['hasComments']&&(_0x3a3294=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2999ca})),_0x3a3294['then'](()=>{this['addSuggestionData'](_0x3887b2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x9ebe56,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2999ca,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x9ebe56,'ready'),this['fire']('suggestionLoaded',_0x9ebe56);break;case'ready':this['fire']('suggestionChanged',_0x9ebe56);}return _0x9ebe56['addMarkerName'](_0x170d93),_0x9ebe56;}['_refreshSuggestionsChain'](_0x202e8a){const _0x46d6a1=Array['from'](_0x202e8a),_0x43d9ca=_0x46d6a1['filter'](_0x35f73e=>'attribute'==_0x35f73e['type']);this['_refreshAttributeSuggestionsChain'](_0x43d9ca);const _0x40dad0=_0x46d6a1['filter'](_0x423c2c=>!_0x423c2c['isMultiRange']&&'attribute'!=_0x423c2c['type']),_0x9ef2a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9188ad=>!_0x9188ad['isMultiRange']&&'attribute'!=_0x9188ad['type']),_0x3ce07f=_0x9ef2a['filter'](_0x370e6d=>!_0x202e8a['has'](_0x370e6d)),_0x34e637=new Map(_0x9ef2a['map'](_0x13e640=>[_0x13e640,this['_suggestionFactory']['getSuggestionCallback'](_0x13e640['type'],_0x13e640['subType'],'chain')])),_0xc128b9=new Map(_0x9ef2a['map'](_0xf443fc=>[_0xf443fc,_0xf443fc['getFirstRange']()])),_0x297775=new Set(),_0xdd5b73=new Set();for(let _0xd265c4=0x0;_0xd265c4<_0x40dad0['length'];_0xd265c4++)_0x3cb526(_0x40dad0[_0xd265c4],_0x40dad0,_0xd265c4+0x1);for(let _0x97efb6=0x0;_0x97efb6<_0x40dad0['length'];_0x97efb6++)_0x3cb526(_0x40dad0[_0x97efb6],_0x3ce07f,0x0);const _0x3756c7=new Set();for(let _0x194998=0x0;_0x194998<_0x40dad0['length'];_0x194998++){const _0xa61e64=_0x40dad0[_0x194998];!_0xdd5b73['has'](_0xa61e64)&&_0xa61e64['previous']&&(_0x3756c7['add'](_0xa61e64['previous']),_0xa61e64['previous']['next']===_0xa61e64&&(_0xa61e64['previous']['next']=null),_0xa61e64['previous']=null),!_0x297775['has'](_0xa61e64)&&_0xa61e64['next']&&(_0x3756c7['add'](_0xa61e64['next']),_0xa61e64['next']['previous']===_0xa61e64&&(_0xa61e64['next']['previous']=null),_0xa61e64['next']=null);}function _0x3cb526(_0x5ddc53,_0x596869,_0xc5f5ef){for(let _0x251481=_0xc5f5ef;_0x251481<_0x596869['length'];_0x251481++){const _0x2e6bba=_0x36e324(_0x5ddc53,_0x596869[_0x251481]);_0x2e6bba&&(_0x2e6bba[0x0]['next']=_0x2e6bba[0x1],_0x2e6bba[0x1]['previous']=_0x2e6bba[0x0],_0x297775['add'](_0x2e6bba[0x0]),_0xdd5b73['add'](_0x2e6bba[0x1]));}}function _0x36e324(_0x39d9b4,_0x34dfd4){if(_0x39d9b4['author']['id']!==_0x34dfd4['author']['id'])return null;const _0x5caba4=_0x34e637['get'](_0x39d9b4)(_0x39d9b4,_0x34dfd4,_0xc128b9['get'](_0x39d9b4),_0xc128b9['get'](_0x34dfd4));if(!_0x5caba4)return null;return _0x34e637['get'](_0x34dfd4)(_0x39d9b4,_0x34dfd4,_0xc128b9['get'](_0x39d9b4),_0xc128b9['get'](_0x34dfd4))?_0x5caba4[0x1]['commentThread']&&_0x5caba4[0x1]['commentThread']['length']?null:_0x5caba4:null;}_0x3756c7['size']&&this['_refreshSuggestionsChain'](_0x3756c7);}['_refreshAttributeSuggestionsChain'](_0x44177b){if(0x0==_0x44177b['length'])return;const _0x178dcc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a0bae=>'attribute'==_0x2a0bae['type']&&_0x2a0bae['_isDataLoaded']),_0x4df75f=[],_0x4fd1c7=new Map();for(const _0x11e5eb of _0x178dcc){const _0xfd5b0a=_0x598d17(_0x11e5eb['attributes']);_0x4fd1c7['has'](_0xfd5b0a)||(_0x4fd1c7['set'](_0xfd5b0a,_0x4df75f['length']),_0x4df75f['push']([]));const _0x46a517=_0x4fd1c7['get'](_0xfd5b0a);_0x4df75f[_0x46a517]['push'](_0x11e5eb);}!(function(){_0x4df75f['sort']((_0x5ef3e4,_0x592bbd)=>{const _0x1a4083=_0x5ef3e4[0x0]['createdAt'],_0x4eca4c=_0x592bbd[0x0]['createdAt'];return _0x1a4083==_0x4eca4c?_0x5ef3e4[0x0]['attributes']['groupId']<_0x592bbd[0x0]['attributes']['groupId']?-0x1:0x1:_0x1a4083<_0x4eca4c?-0x1:0x1;});for(const _0x13ef77 of _0x4df75f)_0x13ef77['sort']((_0x18dbb2,_0x1f29df)=>_0x18dbb2['id']<_0x1f29df['id']?-0x1:0x1);}());for(let _0x4a251e=0x0;_0x4a251e<_0x4df75f['length'];_0x4a251e++){if(0x0==_0x4df75f[_0x4a251e]['length'])continue;const _0x1fcd8f=[];for(let _0x35e883=_0x4a251e+0x1;_0x35e883<_0x4df75f['length'];_0x35e883++)0x0!=_0x4df75f[_0x35e883]['length']&&_0x4ef73e(_0x4df75f[_0x4a251e],_0x4df75f[_0x35e883])&&_0x1fcd8f['push'](_0x35e883);for(const _0x230d02 of _0x1fcd8f)_0x4df75f[_0x4a251e]=_0x4df75f[_0x4a251e]['concat'](_0x4df75f[_0x230d02]),_0x4df75f[_0x230d02]=[];}for(const _0x196831 of _0x4df75f)for(let _0x43e6f3=0x0;_0x43e6f3<_0x196831['length'];_0x43e6f3++){const _0x20b4a9=_0x196831[_0x43e6f3+0x1]||null;_0x196831[_0x43e6f3]['next']!==_0x20b4a9&&(_0x196831[_0x43e6f3]['next']=_0x20b4a9);}for(const _0x5c1552 of _0x4df75f)for(let _0x16770f=0x0;_0x16770f<_0x5c1552['length'];_0x16770f++){const _0x508d69=_0x5c1552[_0x16770f-0x1]||null;_0x5c1552[_0x16770f]['previous']!==_0x508d69&&(_0x5c1552[_0x16770f]['previous']=_0x508d69);}function _0x4ef73e(_0x51d400,_0x251547){if(_0x51d400[0x0]['attributes']['groupId']!==_0x251547[0x0]['attributes']['groupId']&&_0x51d400[0x0]['author']!==_0x251547[0x0]['author'])return!0x1;if(!function(_0x54f497,_0x434a63){if(!_0x54f497['hasComments']&&!_0x434a63['hasComments'])return!0x0;if(_0x54f497['hasComments']&&_0x434a63['hasComments'])return!0x1;if(_0x54f497['hasComments']&&_0x434a63['createdAt']<_0x54f497['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x434a63['hasComments']&&_0x54f497['createdAt']<_0x434a63['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x51d400[0x0],_0x251547[0x0]))return!0x1;const _0x33b292=Tt(_0x51d400[0x0]['attributes'],'groupId'),_0x55eaa8=Tt(_0x251547[0x0]['attributes'],'groupId');if(!_0x3db994(_0x33b292,_0x55eaa8))return!0x1;return!!_0x51d400['every'](_0x439c6d=>_0x251547['some'](_0x54cbe9=>_0x439c6d['getFirstRange']()['isEqual'](_0x54cbe9['getFirstRange']())))&&_0x251547['every'](_0x4c68c3=>_0x51d400['some'](_0x446bfc=>_0x4c68c3['getFirstRange']()['isEqual'](_0x446bfc['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x575427){const _0x49aa31=Array['from'](_0x575427),_0x633533=this['getSuggestions']({'skipNotAttached':!0x0}),_0x21d8d4=_0x633533['filter'](_0x34be00=>!_0x575427['has'](_0x34be00)),_0x52d293=new Map(_0x49aa31['map'](_0x495ec6=>[_0x495ec6,this['_suggestionFactory']['getSuggestionCallback'](_0x495ec6['type'],_0x495ec6['subType'],'join')])),_0xb5368b=new Map(_0x633533['map'](_0x95d6f=>[_0x95d6f,_0x95d6f['getRanges']()]));for(let _0x510242=0x0;_0x510242<_0x49aa31['length'];_0x510242++){if(_0x319f15(this,_0x49aa31[_0x510242],_0x49aa31,_0x510242+0x1))return!0x0;}for(let _0xaabed9=0x0;_0xaabed9<_0x49aa31['length'];_0xaabed9++){if(_0x319f15(this,_0x49aa31[_0xaabed9],_0x21d8d4,0x0))return!0x0;}return!0x1;function _0x319f15(_0x33017f,_0x4381b7,_0x51e2f7,_0x484ea2){for(let _0x2e2fbe=_0x484ea2;_0x2e2fbe<_0x51e2f7['length'];_0x2e2fbe++){const _0x470f28=_0x51e2f7[_0x2e2fbe];if(_0x470f28['type']!==_0x4381b7['type']||_0x470f28['author']['id']!==_0x4381b7['author']['id']||_0x470f28['subType']!==_0x4381b7['subType'])continue;if(!Jt(_0x4381b7,_0x470f28))continue;if('attribute'==_0x4381b7['type']&&_0x4381b7['data']['oldValue']!=_0x470f28['data']['oldValue'])continue;if('attribute'==_0x4381b7['type']&&_0x33017f['_isBlockAttribute'](_0x4381b7['data']['key']))continue;if('formatBlock'==_0x4381b7['type']){const _0x14c5da=_0x33017f['editor']['model'],_0x508ad7=_0x4381b7['getContainedElement']();if(_0x508ad7&&(_0x14c5da['schema']['isObject'](_0x508ad7)||_0x14c5da['schema']['isLimit'](_0x508ad7)))continue;}const _0x128466=_0x52d293['get'](_0x4381b7),_0x5ebac5=_0xb5368b['get'](_0x4381b7),_0x2a1205=_0xb5368b['get'](_0x470f28),_0x3d4649=_0x4381b7['commentThread']&&_0x4381b7['commentThread']['length'],_0x4e6472=_0x470f28['commentThread']&&_0x470f28['commentThread']['length'];if(!_0x3d4649&&_0x128466(_0x2a1205,_0x5ebac5))return _0x33017f['_joinSuggestions'](_0x470f28,_0x4381b7),_0xb5368b['delete'](_0x4381b7),!0x0;if(!_0x4e6472&&_0x128466(_0x5ebac5,_0x2a1205))return _0x33017f['_joinSuggestions'](_0x4381b7,_0x470f28),_0xb5368b['delete'](_0x470f28),!0x0;}return!0x1;}}['_joinSuggestions'](_0x19da06,_0x30be67){if(_0x19da06['isMultiRange']){for(const _0x25c1e2 of _0x30be67['getRanges']())_0x19da06['addRange'](_0x25c1e2);}else{const _0x330b42=_0x30be67['getFirstRange']()['end'];this['_setSuggestionRange'](_0x19da06,this['_model']['createRange'](_0x19da06['getFirstRange']()['start'],_0x330b42));}_0x30be67['removeMarkers']();}['_getMarkerAnnouncementText'](_0x52467d,_0x58c51e,_0x222013){const _0x491097=_0x52467d['startsWith']('format')||_0x52467d['startsWith']('attribute')?'FORMATTING':_0x52467d['toUpperCase']();return o(this['editor']['locale'],_0x58c51e+'_'+_0x491097+'_SUGGESTION_ANNOUNCEMENT',_0x222013);}['_initAriaMarkerChangeAnnouncements'](){const _0x47ac50=this['editor'];if(!_0x47ac50['ui'])return;const {ariaLiveAnnouncer:_0xd705fe}=_0x47ac50['ui'];_0x292113(this['_model'],({left:_0x2ee732,entered:_0x3fbd4a})=>{for(const _0x373181 of _0x2ee732){const {group:_0x428e11,type:_0x53a0dc}=this['_splitMarkerName'](_0x373181['name']);if('suggestion'===_0x428e11){_0xd705fe['announce'](this['_getMarkerAnnouncementText'](_0x53a0dc,'LEAVE'));break;}}for(const _0x2f5334 of _0x3fbd4a){const {group:_0x27ce81,type:_0x22e2ae}=this['_splitMarkerName'](_0x2f5334['name']);if('suggestion'===_0x27ce81){_0xd705fe['announce'](this['_getMarkerAnnouncementText'](_0x22e2ae,'ENTER',_0x77e078(_0x4c8217)));break;}}});}['_processAttributeChanges'](_0xbd6914){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4ba4c5=this['editor'],_0x35df63=_0x4ba4c5['model']['document']['differ']['getChanges']();if(0x0==_0x35df63['length'])return!0x1;const _0x1e4233=[],_0x3d9835=_0x35df63['filter'](_0x44ea1f=>'attribute'==_0x44ea1f['type']),_0x1389dd=_0x35df63['filter'](_0x4b91db=>'insert'==_0x4b91db['type']&&'$text'!=_0x4b91db['name']),_0x29db3e=_0x35df63['filter'](_0x5534b6=>'remove'==_0x5534b6['type']&&'$text'!=_0x5534b6['name']);for(const _0x1456b6 of _0x3d9835)_0x1e4233['push']({'key':_0x1456b6['attributeKey'],'newValue':_0x1456b6['attributeNewValue'],'oldValue':_0x1456b6['attributeOldValue'],'range':Pt(_0x1456b6['range'],_0x4ba4c5['model'])});for(const _0x17e3f7 of _0x1389dd){const _0x557675=_0x29db3e['find'](_0x3dedbe=>_0x3dedbe['position']['isEqual'](_0x17e3f7['position']));_0x557675&&_0x1e4233['push']({'key':m,'newValue':_0x17e3f7['name'],'oldValue':_0x557675['name'],'range':_0x4ba4c5['model']['createRangeOn'](_0x17e3f7['position']['nodeAfter'])});}return 0x0!=_0x1e4233['length']&&this['_reduceExistingSuggestions'](_0xbd6914,_0x1e4233);}['_processAttributeSuggestions'](_0x1760a8){let _0x4a2b24=!0x1;const _0x2c0196=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2911aa=>_0x2911aa['data']['newRange']&&_0x2911aa['name']['startsWith']('suggestion:attribute:'));for(const _0x5ca8b2 of _0x2c0196){const {subType:_0x875acd,id:_0x4386b8}=this['_splitMarkerName'](_0x5ca8b2['name']),_0x33bad7=_0x875acd['split']('|')[0x0];for(const _0x1ccdde of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1ccdde['id']!=_0x4386b8&&'attribute'==_0x1ccdde['type']&&_0x1ccdde['data']&&_0x1ccdde['data']['key']==_0x33bad7&&_0x1ccdde['getFirstRange']()['isIntersecting'](_0x5ca8b2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1ccdde,_0x5ca8b2['data']['newRange'],_0x1760a8),_0x4a2b24=!0x0);}return _0x4a2b24;}['_recordAttributeChanges'](_0x348d94){this['_recordAttributeSuggestions']=!0x0,_0x348d94();}['_isRegisteredAttribute'](_0x2c7c36){const _0x3ee0a0=this['_isBlockAttribute'](_0x2c7c36),_0x2cb364=this['_inlineAttributeKeys']['has'](_0x2c7c36);return _0x3ee0a0||_0x2cb364;}['_reduceExistingSuggestions'](_0xd5841,_0x285a85){if(0x0==_0x285a85['length'])return!0x1;let _0x342c0e=!0x1;for(const _0x37e558 of _0x285a85){const _0x41b118=this['_findSuggestions'](_0x37e558['range'],'attribute')['filter'](_0x331c90=>!_0x331c90['meta']['isNextTo'])['map'](_0x3849ef=>_0x3849ef['suggestion']),_0x524471=_0x598d17({'newValue':_0x37e558['newValue']});_0x41b118['filter'](_0x40b455=>{const [_0x322097,_0x5508e2]=_0x40b455['subType']['split']('|');return _0x322097==_0x37e558['key']&&_0x5508e2!=_0x524471;})['forEach'](_0x593935=>{this['_reduceSuggestionAttributeRange'](_0x593935,_0x37e558['range'],_0xd5841),_0x342c0e=!0x0;});}return _0x342c0e;}['_reduceSuggestionAttributeRange'](_0x26cc52,_0x1d3e3d,_0x2ccdbf){const _0x402a08=_0x26cc52['getFirstRange']()['getDifference'](_0x1d3e3d);0x0!==_0x402a08['length']?0x1!==_0x402a08['length']?this['_breakSuggestionMarker'](_0x26cc52,_0x1d3e3d['start'],_0x1d3e3d['end']):this['_setSuggestionRange'](_0x26cc52,_0x402a08[0x0]):_0x2ccdbf['removeMarker'](_0x26cc52['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1a8fc8){this['_editor']=_0x1a8fc8,this['_model']=_0x1a8fc8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5903b5,_0x6a81c5,_0x328683,_0x3be56e,_0x3c5d6c,_0x587251){return new u(this['_model'],{'type':_0x5903b5,'subType':_0x6a81c5,'id':_0x328683,'author':_0x3be56e,'creator':_0x3be56e,'attributes':_0x3c5d6c,'onAttributesChange':_0x587251,'onAccept':(..._0x4c721d)=>this['getSuggestionCallback'](_0x5903b5,_0x6a81c5,'accept')(..._0x4c721d),'onDiscard':(..._0x5fa7b8)=>this['getSuggestionCallback'](_0x5903b5,_0x6a81c5,'discard')(..._0x5fa7b8)});}['registerCustomCallback'](_0x23f1b8,_0x2609da,_0x5618a1,_0x27f8a7){const _0x58e180=_0x23f1b8+':'+_0x2609da+':'+_0x5618a1;this['_customCallbacks']['set'](_0x58e180,_0x27f8a7);}['getSuggestionCallback'](_0x176465,_0x377d45,_0x3d2236){const _0x50a1bb=_0x176465+':'+_0x377d45+':'+_0x3d2236;return this['_customCallbacks']['get'](_0x50a1bb)||this['_defaultCallbacks']['get'](_0x176465+':'+_0x3d2236);}['_registerDefaultCallbacks'](){const _0x1a4f60=()=>!0x1,_0x5c89bc=_0x2477de=>{_0x2477de['sort']((_0x29ada2,_0x3646e4)=>_0x29ada2['start']['isBefore'](_0x3646e4['start'])?0x1:-0x1),this['_model']['change'](_0xc3dc25=>{for(const _0x3e4560 of _0x2477de){let _0x288d34;_0x288d34=_0x3e4560['end']['isAtEnd']&&_0x3e4560['end']['parent']==_0x3e4560['start']['nodeAfter']?_0xc3dc25['createSelection'](_0x3e4560['start']['nodeAfter'],'on'):_0xc3dc25['createSelection'](_0x3e4560),this['_model']['deleteContent'](_0x288d34,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x28ff8d=(_0x5a461c,_0x15c7bd)=>{_0x15c7bd&&this['_model']['change'](_0x31edaa=>{const {commandName:_0x185be8,commandParams:_0x49a912=[]}=_0x15c7bd,_0x489e74=_0x5a461c['map'](_0x276af3=>(Vt(_0x276af3)&&(_0x276af3=this['_model']['createRange'](_0x276af3['end'])),_0x276af3))['filter'](_0x48c918=>'$graveyard'!==_0x48c918['root']['rootName']);if(_0x489e74['length']<0x1)return;const _0x4bd749=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5760f3=>_0x2ad496['fromRange'](_0x5760f3));_0x31edaa['setSelection'](_0x489e74);for(const _0x4d32b9 of this['_editor']['commands']['commands']())_0x4d32b9['refresh']();_0x49a912['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x185be8,..._0x49a912);const _0x4347ab=_0x4bd749['filter'](_0x11b0cf=>'$graveyard'!=_0x11b0cf['root']['rootName']);_0x4347ab['length']>0x0&&_0x31edaa['setSelection'](_0x4347ab);for(const _0x579190 of _0x4bd749)_0x579190['detach']();});},_0x192fe4=(_0x2276c2,_0x26a608)=>0x1==_0x2276c2['length']&&0x1==_0x26a608['length']&&_0x2276c2[0x0]['end']['isEqual'](_0x26a608[0x0]['start']),_0x188b6d=(_0x5d8da6,_0x38fd7c,_0x251456,_0x51b0ab)=>Ht(_0x5d8da6,_0x38fd7c,_0x251456,_0x51b0ab,this['_model'])?[_0x5d8da6,_0x38fd7c]:Ht(_0x38fd7c,_0x5d8da6,_0x51b0ab,_0x251456,this['_model'])?[_0x38fd7c,_0x5d8da6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1a4f60),this['_defaultCallbacks']['set']('insertion:discard',_0x5c89bc),this['_defaultCallbacks']['set']('insertion:join',_0x192fe4),this['_defaultCallbacks']['set']('insertion:chain',_0x188b6d),this['_defaultCallbacks']['set']('deletion:accept',_0x5c89bc),this['_defaultCallbacks']['set']('deletion:discard',_0x1a4f60),this['_defaultCallbacks']['set']('deletion:join',_0x192fe4),this['_defaultCallbacks']['set']('deletion:chain',_0x188b6d),this['_defaultCallbacks']['set']('formatInline:accept',_0x28ff8d),this['_defaultCallbacks']['set']('formatInline:discard',_0x1a4f60),this['_defaultCallbacks']['set']('formatInline:join',_0x192fe4),this['_defaultCallbacks']['set']('formatInline:chain',_0x1a4f60),this['_defaultCallbacks']['set']('formatBlock:accept',_0x28ff8d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1a4f60),this['_defaultCallbacks']['set']('formatBlock:join',_0x192fe4),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1a4f60),this['_defaultCallbacks']['set']('attribute:accept',_0x1a4f60),this['_defaultCallbacks']['set']('attribute:discard',(_0xbd6d2d,_0x1143c5)=>{if(!_0x1143c5)return;const _0x5d1a37=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x54db51=>{if(_0x1143c5['key']==m)for(const _0x1a130c of _0xbd6d2d){const _0x181c70=_0x1a130c['start']['nodeAfter'],_0x1da998=_0x1143c5['oldValue'];_0x54db51['rename'](_0x181c70,_0x1da998);}else{if(_0x5d1a37['_isBlockAttribute'](_0x1143c5['key'])){for(const _0x39d42a of _0xbd6d2d)void 0x0!==_0x1143c5['oldValue']?_0x54db51['setAttribute'](_0x1143c5['key'],_0x1143c5['oldValue'],_0x39d42a['start']['nodeAfter']):_0x54db51['removeAttribute'](_0x1143c5['key'],_0x39d42a['start']['nodeAfter']);}else{for(const _0x3a7df2 of _0xbd6d2d)_0x1143c5['oldValue']?_0x54db51['setAttribute'](_0x1143c5['key'],_0x1143c5['oldValue'],_0x3a7df2):_0x54db51['removeAttribute'](_0x1143c5['key'],_0x3a7df2);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x192fe4);}}function Ot(_0x1da81e,_0x1a4a58,_0x51485d){for(const _0x49cc49 of _0x1a4a58['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x49cc49['root']==_0x49cc49)return!0x1;if(!_0x51485d['containsItem'](_0x49cc49))return!0x1;if(_0x1da81e['isObject'](_0x49cc49)||_0x1da81e['isLimit'](_0x49cc49))return!0x0;}return!0x1;}function Vt(_0xb46db6){return _0xb46db6['end']['parent']==_0xb46db6['start']['nodeAfter']&&_0xb46db6['end']['isAtStart'];}function Ut(_0x5cb01d,_0x3b75e7,_0x27334d,_0x1547c4){const _0x292793=_0x1a63cb=>!_0x1a63cb['item']['is']('$textProxy')&&!_0x1547c4['isObject'](_0x1a63cb['item']),_0x3dec20=_0x5cb01d['start']['getLastMatchingPosition'](_0x292793),_0x28b661=_0x5cb01d['end']['getLastMatchingPosition'](_0x292793,{'direction':'backward'});return(!_0x5cb01d['start']['isEqual'](_0x3dec20)||!_0x5cb01d['end']['isEqual'](_0x28b661))&&(_0x3dec20['isBefore'](_0x28b661)?_0x27334d['updateMarker'](_0x3b75e7,{'range':_0x27334d['createRange'](_0x3dec20,_0x28b661)}):_0x27334d['removeMarker'](_0x3b75e7),!0x0);}function Gt(_0x11c62f){return _0x598d17(_0x11c62f);}function Ft(_0x2fca95){const _0x1d8924=_0x2fca95['start']['nodeAfter'];return _0x1d8924&&_0x1d8924['is']('element');}function Pt(_0x24400f,_0x44c4c1){return null==_0x24400f['end']['nodeBefore']&&_0x24400f['end']['parent']==_0x24400f['start']['nodeAfter']?Lt(_0x24400f['start']['nodeAfter'],_0x44c4c1):_0x24400f;}function Lt(_0x5c860b,_0x58141b){const _0x4b2303=_0x58141b['schema']['isObject'](_0x5c860b)||_0x58141b['schema']['isSelectable'](_0x5c860b);return _0x58141b['createRange'](_0x58141b['createPositionAt'](_0x5c860b,'before'),_0x4b2303?_0x58141b['createPositionAfter'](_0x5c860b):_0x58141b['createPositionAt'](_0x5c860b,'end'));}function Ht(_0x4428e8,_0x5129e3,_0x4cc067,_0x9b3db2,_0x8a0e27){if(_0x4428e8['next'])return!0x1;if(!Jt(_0x4428e8,_0x5129e3))return!0x1;if(_0x4cc067['end']['isEqual'](_0x9b3db2['start']))return!0x0;if(_0x4428e8['type']!=_0x5129e3['type'])return!0x1;if(!_0x4cc067['end']['isTouching'](_0x9b3db2['start']))return!0x1;const _0x47ac11=_0x8a0e27['createRange'](_0x4cc067['end'],_0x9b3db2['start'])['getWalker']();for(const _0x3c4a4b of _0x47ac11)if(['elementStart','elementEnd']['includes'](_0x3c4a4b['type'])&&_0x8a0e27['schema']['isLimit'](_0x3c4a4b['item']))return!0x1;return!0x0;}function Jt(_0x52d59a,_0x20e2de){if(!_0x52d59a['_isDataLoaded']||!_0x20e2de['_isDataLoaded'])return!0x1;const _0x2bb197=new Set(Object['keys'](_0x52d59a['attributes'])),_0x1f23dc=new Set(Object['keys'](_0x20e2de['attributes']));if(_0x2bb197['delete']('groupId'),_0x1f23dc['delete']('groupId'),0x0==_0x2bb197['size']&&0x0==_0x1f23dc['size'])return!0x0;if(_0x2bb197['size']!=_0x1f23dc['size'])return!0x1;const _0xa75280={..._0x52d59a['attributes']},_0x402ae9={..._0x20e2de['attributes']};return delete _0xa75280['groupId'],delete _0x402ae9['groupId'],JSON['stringify'](_0xa75280)==JSON['stringify'](_0x402ae9);}function qt(_0x5b4ae9,_0x4d408f){const _0x312e74=zt(_0x5b4ae9['attributes']),_0x52d97e=zt(_0x4d408f);if(!_0x5b4ae9['_isDataLoaded'])return!0x1;for(const _0x33c605 of Object['keys'](_0x52d97e))if(!_0x3db994(_0x312e74[_0x33c605],_0x52d97e[_0x33c605]))return!0x1;return!0x0;}function zt(_0x335697){const _0x251809=Object['assign']({},_0x335697);return delete _0x251809['skipNestingCheck'],delete _0x251809['tablePasteChainId'],_0x251809;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x408897(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x462b60,_0x555f27,_0xac8c25,_0x2b157b){super(),this['model']=_0x555f27,this['view']=_0xac8c25,this['commentThreadController']=_0x2b157b,this['_editor']=_0x462b60,this['_acceptCommand']=_0x462b60['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x462b60['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4973e7,_0x38df9e)=>_0x4973e7||_0x38df9e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3f4f87=>_0x3f4f87&&this['_editor']['model']['canEditAt'](_0x555f27['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x149143=>_0x149143&&this['_editor']['model']['canEditAt'](_0x555f27['getRanges']())),this['_pendingAction']=null,_0xac8c25['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xac8c25,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xac8c25,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xac8c25,'change:isDirty',()=>{_0xac8c25['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 _0x528f2a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x528f2a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x567c19{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x202e82,_0x411bda,_0x401112,_0x5713d1){super(_0x202e82),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1f68dc(_0x202e82,o(_0x202e82,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x411bda['authoredAt']),this['bind']('authoredAt')['to'](_0x411bda),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',_0x411bda,'authoredAt',this,'descriptionParts',(_0x866078,_0x1a18f4,_0x1f729f)=>{const _0x440e32=_0x1f729f['map'](_0x17c82d=>ls(_0x17c82d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x866078-0x1,_0x411bda['author']['name'],_0x1a18f4?_0x5713d1['formatDateTime'](_0x1a18f4):'',new DOMParser()['parseFromString'](_0x440e32,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1b1e9a(),this['focusTracker']=new _0x1c26fd(),this['keystrokes']=new _0x1a4f50(),this['focusCycler']=new _0x4fa8d6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3abf5d=>_0x3abf5d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x411bda,this['_localUser']=_0x401112,this['_config']=_0x5713d1,_0x5713d1['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x351f8e(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x427669}=this['_config'];this['commentsListView']=new _0x427669(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',_0xa7e81=>_0xa7e81+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x333376,_0x30a8b7)=>_0x333376||!!_0x30a8b7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x569b27}=this['_config'],_0x11587e=new _0x569b27(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4a88c3=_0x11587e['commentInputView'];return _0x11587e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4a88c3,'value',(_0xe118a5,_0x300f4a,_0x433472)=>!!_0x433472||_0xe118a5&&!_0x300f4a),_0x4a88c3['on']('submit',(_0x3162a0,_0x5e8195)=>{this['fire']('addComment',_0x5e8195),_0x4a88c3['editor']['setData']('');}),_0x4a88c3['on']('cancel',()=>this['focus']()),_0x4a88c3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x11587e;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x57e471,_0x1edd30,_0xcebb4d,_0x548fe0){super(_0x57e471,_0x1edd30,_0xcebb4d,_0x548fe0),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xe601b9=>_0xe601b9&&_0xe601b9[0x0]?_0xe601b9[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x39e7b1,_0xca1a74)=>{let _0x5c4460='';for(const _0x124f84 of _0x39e7b1)_0x5c4460+='<p>'+ls(_0x124f84['content'],_0x124f84['color'])+'</p>';return _0xca1a74?_0x5c4460:_0x478927(_0x5c4460,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x548fe0['SuggestionView'](_0x57e471,_0x1edd30,{'formatDateTime':_0x548fe0['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 _0x458fae=this['bindTemplate'],_0x56b27b=[this['suggestionView']];return this['commentsListView']&&_0x56b27b['push'](this['commentsListView']),this['commentThreadInputView']&&_0x56b27b['push'](this['commentThreadInputView']),_0x56b27b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x458fae['if']('isActive','ck-suggestion-wrapper--active'),_0x458fae['to']('type',_0x26ea3e=>'ck-suggestion-'+_0x26ea3e),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':_0x458fae['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x56b27b};}['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 ce extends _0x567c19{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x313ab5,_0x338c9f,_0x4234a8){super(_0x313ab5),this['_model']=_0x338c9f,this['_config']=_0x4234a8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x338c9f),this['acceptButton']=this['_createButton'](o(_0x313ab5,'Accept\x20suggestion'),_0x317551['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x313ab5,'Discard\x20suggestion'),_0x317551['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x219be4(_0x313ab5,_0x338c9f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1b1e9a([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1c26fd(),this['keystrokes']=new _0x1a4f50(),this['focusCycler']=new _0x4fa8d6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3a91b5=>_0x3a91b5['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1462d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1462d['innerHTML']=this['description'],this['on']('change:description',(_0x23d84d,_0x258412,_0x44892c)=>{_0x1462d['innerHTML']=_0x44892c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x249569=this['bindTemplate'],_0x1a53db=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x249569['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x249569['to']('authoredAt',_0x67c5f2=>this['_config']['formatDateTime'](_0x67c5f2))}]}]},{'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']&&_0x1a53db['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':_0x1a53db}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x61d999,_0xa8ed49,_0x453705,_0x5e37e0,_0x322fa5){const _0x3cb4d8=new _0x155e90(this['locale']);return _0x3cb4d8['set']({'label':_0x61d999,'icon':_0xa8ed49,'tooltip':!0x0,'tooltipPosition':_0x322fa5}),_0x3cb4d8['extendTemplate']({'attributes':{'class':_0x453705}}),_0x3cb4d8['on']('execute',()=>{this['fire'](_0x5e37e0,this['_model']['id']);}),_0x3cb4d8;}['_setupKeyboardNavigation'](){const _0x3f826d=this['element'];this['keystrokes']['listenTo'](_0x3f826d);for(const _0x4e1f56 of this['focusables'])this['focusTracker']['add'](_0x4e1f56['element']),this['keystrokes']['listenTo'](_0x4e1f56['element']);this['keystrokes']['set']('enter',(_0x4d2078,_0x5e600b)=>{_0x3f826d===_0x4d2078['target']&&(this['focusCycler']['focusFirst'](),_0x5e600b());}),this['keystrokes']['set']('esc',(_0x23c151,_0x20bf15)=>{_0x3f826d!==_0x23c151['target']&&(this['focus'](),_0x20bf15());});}}var he='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x1b5c48{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x12f772,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2b3f61){super(_0x2b3f61),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x363e4b=this['editor']['config'];_0x363e4b['define']('trackChanges.SuggestionThreadView',re),_0x363e4b['define']('trackChanges.SuggestionView',ce),_0x363e4b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x363e4b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3ad77a,_0x30cf37){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x173fbd,_0x5562cd]of this['_handleControllerBuffer']){const _0x3400fe=this['_suggestionToController']['has'](_0x173fbd);_0x3400fe||_0x5562cd?_0x3400fe&&_0x5562cd&&this['_destroyController'](_0x173fbd):this['_initializeController'](_0x173fbd);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3ad77a,_0x30cf37);}['init'](){const _0x1b38b2=this['editor'],_0x2add53=_0x1b38b2['plugins']['get']('TrackChangesEditing'),_0x2bfdc3=_0x1b38b2['plugins']['get']('Annotations'),_0x27bf37=_0x1b38b2['plugins']['get']('EditorAnnotations'),_0x710bd4=_0x1b38b2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x27bf37['addSourceCollector'](()=>{const _0x27898b=[];for(const [_0x46e45a,_0x374b10]of Array['from'](this['_suggestionToController'])){const _0x30c82f=_0x46e45a['getAllAdjacentSuggestions'](),_0x3b7fa3=[];for(const _0x175d4e of _0x30c82f){if(!_0x175d4e['isInContent'])continue;if(_0x175d4e['isMultiRange']){_0x3b7fa3['push'](..._0x175d4e['getRanges']());continue;}const _0x1d3d58=_0x175d4e['getFirstRange']();if(_0x3b7fa3['length']>0x0){const _0x2c90e4=_0x3b7fa3[0x0]['getJoined'](_0x1d3d58);if(_0x2c90e4){_0x3b7fa3[0x0]=_0x2c90e4;continue;}}_0x3b7fa3['push'](_0x1d3d58);}_0x27898b['push']([_0x374b10['view'],_0x3b7fa3]);}return _0x27898b;}),this['listenTo'](_0x2add53,'suggestionLoaded',(_0x3b4239,_0x411fb7)=>{this['listenTo'](_0x411fb7,'change:previous',(_0x263cf8,_0x58e1dd,_0x5243d9,_0x48de66)=>{_0x411fb7['isInContent']&&(null==_0x5243d9?(this['_updateController'](_0x48de66['head']),this['_handleSuggestionControllerDelayed'](_0x411fb7,!0x1)):(this['_updateController'](_0x5243d9['head']),null==_0x48de66&&this['_handleSuggestionControllerDelayed'](_0x411fb7,!0x0)));}),null!==_0x411fb7['previous']?this['_updateController'](_0x411fb7['head']):this['_handleSuggestionControllerDelayed'](_0x411fb7,!0x1);}),this['listenTo'](_0x2add53,'suggestionUnloaded',(_0x2d725a,_0x35f5dc,_0x55d5ba)=>{this['stopListening'](_0x35f5dc,'change:previous'),this['_handleControllerBuffer']['delete'](_0x35f5dc),this['_suggestionToController']['has'](_0x35f5dc)&&this['_destroyController'](_0x35f5dc),_0x55d5ba&&this['_updateController'](_0x55d5ba['head']);}),this['listenTo'](_0x2add53,'suggestionChanged',(_0x407238,_0x11820f)=>{this['_updateController'](_0x11820f);}),this['listenTo'](_0x2bfdc3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x710bd4,'addComment',(_0x4deb63,{threadId:_0x86fbfb,isFromAdapter:_0x2140c1})=>{if(_0x2140c1||!_0x2add53['hasSuggestion'](_0x86fbfb))return;const _0x3921d0=_0x2add53['getSuggestion'](_0x86fbfb);this['_suggestionToController']['get'](_0x3921d0)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x21891d=this['editor']['plugins']['get']('Annotations'),_0x4d9be5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bc635=Array['from'](_0x21891d['activeAnnotations'],_0x1f58ab=>_0x1f58ab['innerView'])['filter'](_0x477d03=>this['_viewToController']['has'](_0x477d03)),_0xfb36ae=[];for(const _0x103526 of _0x1bc635){const _0x179c30=this['_viewToController']['get'](_0x103526)['model']['getAllAdjacentSuggestions']();_0xfb36ae['push'](..._0x179c30['reduce']((_0x187601,_0x3d7a34)=>[..._0x187601,..._0x3d7a34['getMarkerNames']()],[]));}_0x4d9be5['activeMarkers']=_0xfb36ae;}['_addUIComponentsToFactory'](){const _0x3a0836=this['editor'],_0x39cc90=_0x3a0836['locale'],_0x20a4f7=o(_0x39cc90,'Track\x20changes'),_0x4bb4c9=new Wt([{'type':'switchbutton','model':new _0x4982e6({'withText':!0x0,'isToggleable':!0x0,'label':_0x20a4f7,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4982e6({'withText':!0x0,'label':o(_0x39cc90,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4982e6({'withText':!0x0,'label':o(_0x39cc90,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4982e6({'withText':!0x0,'label':o(_0x39cc90,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4982e6({'withText':!0x0,'label':o(_0x39cc90,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3761a9 of _0x4bb4c9)if(me(_0x3761a9)){const _0x353f55=_0x3a0836['commands']['get'](_0x3761a9['model']['commandName']);_0x3761a9['model']['bind']('isOn','isEnabled')['to'](_0x353f55,'value','isEnabled');}_0x3a0836['ui']['componentFactory']['add']('trackChanges',_0xdfbb74=>this['_createToolbarButton'](_0xdfbb74,_0x4bb4c9,_0x20a4f7)),_0x3a0836['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1c3c66=>this['_createMenuBarMenu'](_0x1c3c66,_0x4bb4c9,_0x20a4f7));}['_createToolbarButton'](_0x380310,_0x55969c,_0x17746d){const _0x5f505e=Qt(_0x380310,_0x59d84c),_0x28790b=this['editor']['commands']['get']('trackChanges');_0x5f505e['buttonView']['set']({'tooltip':_0x17746d,'label':_0x17746d,'icon':he}),_0x5f505e['buttonView']['bind']('isOn')['to'](_0x28790b,'value'),_0x5f505e['buttonView']['on']('execute',()=>{_0x28790b['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x5f505e,_0x55969c,{'role':'menu'});const _0x44e6a5=[];for(const _0x42c811 of _0x55969c)me(_0x42c811)&&_0x44e6a5['push'](this['editor']['commands']['get'](_0x42c811['model']['commandName']));const _0x1bd25c=_0x5f505e['buttonView'];return _0x1bd25c['actionView']['unbind']('isEnabled'),_0x1bd25c['arrowView']['unbind']('isEnabled'),_0x1bd25c['actionView']['bind']('isEnabled')['to'](_0x28790b,'isEnabled'),_0x1bd25c['arrowView']['bind']('isEnabled')['toMany'](_0x44e6a5,'isEnabled',(..._0x3c6c0d)=>_0x3c6c0d['some'](_0x296a88=>_0x296a88)),_0x5f505e['on']('execute',_0x3b3269=>{this['editor']['execute'](_0x3b3269['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5f505e;}['_createMenuBarMenu'](_0x44f3f5,_0x1b80ee,_0x37d05b){const _0x73aa99=new Yt(_0x44f3f5),_0xc5d5b5=this['editor']['commands']['get']('trackChanges');_0x73aa99['buttonView']['set']({'label':_0x37d05b,'icon':he});const _0x3fc7b9=new Zt(_0x44f3f5);for(const _0x45fd6c of _0x1b80ee){if('separator'==_0x45fd6c['type']){_0x3fc7b9['items']['add'](new Xt(_0x44f3f5));continue;}const _0x2802c6=new te(_0x44f3f5,_0x73aa99),_0x3eaafa=new _0x9c15db(_0x44f3f5),_0x4164ac=_0x45fd6c['model'];_0x3eaafa['bind'](...Object['keys'](_0x4164ac))['to'](_0x4164ac),_0x3eaafa['delegate']('execute')['to'](_0x73aa99),_0x3eaafa['on']('execute',()=>{this['editor']['execute'](_0x4164ac['commandName']),this['editor']['editing']['view']['focus']();}),_0x2802c6['children']['add'](_0x3eaafa),_0x3fc7b9['items']['add'](_0x2802c6);}return _0x73aa99['bind']('isEnabled')['to'](_0xc5d5b5,'isEnabled'),_0x73aa99['panelView']['children']['add'](_0x3fc7b9),_0x73aa99;}['_initializeController'](_0x31bc3e){const _0x3a9d2a=this['editor'],_0x4f64dd=_0x3a9d2a['config'],_0x5611d4=_0x3a9d2a['plugins']['get']('Annotations'),_0x350af6=_0x3a9d2a['plugins']['get']('CommentsRepository'),_0x17b3b8=_0x3a9d2a['plugins']['get']('EditorAnnotations'),_0x38d381=_0x3a9d2a['plugins']['get'](_0x12f772)['me'],_0x2d6130=_0x4f64dd['get']('trackChanges')['SuggestionThreadView'],_0x14388a=_0x4f64dd['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1af446,CommentThreadInputView:_0x1930be}=_0x3a9d2a['plugins']['get']('CommentsUI');let _0x19a7fa,_0x2b7e05,_0xd430c2;this['_annotationViews']['has'](_0x31bc3e['id'])?(_0x2b7e05=this['_annotationViews']['get'](_0x31bc3e['id']),_0x19a7fa=_0x2b7e05['mainView']):(_0x19a7fa=new _0x2d6130(_0x3a9d2a['locale'],_0x31bc3e,_0x38d381,{'disableComments':this['_disableComments'],'editorConfig':_0x4f64dd['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4f64dd['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4f64dd['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4f64dd['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x44512e(_0x4f64dd['get']('locale')),'CommentView':_0x4f64dd['get']('comments')['CommentView'],'CommentsListView':_0x1af446,'CommentThreadInputView':_0x1930be,'SuggestionView':_0x14388a}),_0x19a7fa['suggestionView']['acceptButton']['on']('execute',()=>{_0x3a9d2a['editing']['view']['focus']();}),_0x19a7fa['suggestionView']['discardButton']['on']('execute',()=>{_0x3a9d2a['editing']['view']['focus']();}),_0x2b7e05=_0x5611d4['createAnnotationView'](this['editor']['locale'],_0x19a7fa),_0x2b7e05['bind']('isDirty')['to'](_0x19a7fa,'isDirty'),_0x2b7e05['bind']('length')['to'](_0x19a7fa),_0x2b7e05['bind']('type')['to'](_0x19a7fa,'type',_0x587788=>'suggestion-'+_0x587788),_0x19a7fa['on']('escape',()=>{_0xd430c2['fire']('escape');}),this['_annotationViews']['set'](_0x31bc3e['id'],_0x2b7e05));const _0x22ef7b=_0x350af6['createCommentThreadController'](_0x31bc3e['commentThread'],_0x19a7fa),_0x18bd9a=new ae(_0x3a9d2a,_0x31bc3e,_0x19a7fa,_0x22ef7b),_0x253e0a=_0x31bc3e['getAllAdjacentSuggestions']()['filter'](_0x3c0285=>_0x3c0285['isInContent']);_0x19a7fa['descriptionParts']=_0x3a9d2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x253e0a),this['_suggestionToController']['set'](_0x31bc3e,_0x18bd9a),this['_viewToController']['set'](_0x19a7fa,_0x18bd9a),_0xd430c2=_0x5611d4['createAnnotation']({'view':_0x2b7e05,'target':()=>{const _0x101bf8=[],_0x358935=_0x31bc3e['getAllAdjacentSuggestions']()['filter'](_0x209961=>_0x209961['isInContent']);for(const _0x2f28b8 of _0x358935)_0x101bf8['push'](..._0x2f28b8['getMarkers']());return _0x185986(_0x3a9d2a['editing'],_0x101bf8);},'type':()=>'suggestion-'+_0x18bd9a['view']['type']}),_0x350af6['_bindAnnotationToEditors'](_0x19a7fa,_0xd430c2),_0x5611d4['add'](_0xd430c2),_0x17b3b8['registerAnnotation'](_0xd430c2);}['_destroyController'](_0xc7a550){const _0x24c760=this['editor']['plugins']['get']('CommentsRepository'),_0x11fa96=this['editor']['plugins']['get']('Annotations'),_0x46274a=this['_suggestionToController']['get'](_0xc7a550),_0x154137=_0x46274a['view'],_0x1ede44=_0x11fa96['getByInnerView'](_0x154137);_0x24c760['_unbindEditors'](_0x154137),_0x1ede44&&_0x11fa96['remove'](_0x1ede44),this['_suggestionToController']['delete'](_0xc7a550),this['_viewToController']['delete'](_0x154137),_0x46274a['destroy']();}['_updateController'](_0x2d2196){if(!_0x2d2196['isInContent']||!this['_suggestionToController']['has'](_0x2d2196))return;const _0x4b9c6a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b581a=this['_suggestionToController']['get'](_0x2d2196),_0x5b38d3=_0x2d2196['getAllAdjacentSuggestions']();_0x3b581a['view']['descriptionParts']=_0x4b9c6a['descriptionFactory']['getDescriptions'](_0x5b38d3);}['destroy'](){for(const _0x14175e of this['_suggestionToController']['keys']())this['_destroyController'](_0x14175e);for(const _0x47e1f7 of this['_annotationViews']['values']())_0x47e1f7['mainView']['destroy']();super['destroy']();}}function me(_0xe32498){return'model'in _0xe32498;}class k extends _0x1b5c48{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5db284){this['editor']['plugins']['get'](p)['adapter']=_0x5db284;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x259fec){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x259fec);}['getSuggestions']({skipNotAttached:_0x5a2925=!0x1,toJSON:_0x25895f=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5a2925,'toJSON':_0x25895f});}['getSuggestion'](_0x129f5d){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x129f5d);}}const T=['Pagination'];class P extends _0x1b5c48{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x10fcd3=this['editor'];if(_0x10fcd3['config']['define']('trackChangesData.editorCreator',_0x4eeb02=>{const _0x52cc30=_0x10fcd3['model']['document']['getRootNames']()['reduce']((_0x5d85c8,_0x4bf16a)=>(_0x5d85c8[_0x4bf16a]='',_0x5d85c8),{});return _0x10fcd3['constructor']['create'](_0x52cc30,_0x4eeb02);}),'function'!=typeof _0x10fcd3['config']['get']('trackChangesData')['editorCreator'])throw new _0x3334e4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1d2fb4){return N(this['editor'],!0x0,_0x1d2fb4);}['getDataWithDiscardedSuggestions'](_0x147563){return N(this['editor'],!0x1,_0x147563);}}class D extends _0x1b5c48{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x131507){super(_0x131507),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x3c1019){return void 0x0!==_0x3c1019['getRootsAttributes'];}async function N(_0x15009a,_0x10efc8,_0x50e13e){const _0x153bb9=_0x55cc03(_0x15009a,T);_0x153bb9['plugins']['push'](p,D),_0x153bb9['rootsAttributes']=v(_0x15009a)?_0x15009a['getRootsAttributes']():void 0x0;const _0x2ef6f5=document['createDocumentFragment'](),_0x223dc4=_0x15009a['config']['get']('trackChangesData')['editorCreator'],_0x3ad4df=await _0x223dc4(_0x153bb9,()=>function(_0x343aa4){const _0x3e1431=document['createElement']('div');return _0x343aa4['appendChild'](_0x3e1431),_0x3e1431;}(_0x2ef6f5));!function(_0x36060f,_0x37693f){const _0x1a66df=_0x36060f['model']['document']['getRootNames']()['reduce']((_0x100ae9,_0x4c6372)=>(_0x100ae9[_0x4c6372]=_0x36060f['data']['get']({'rootName':_0x4c6372}),_0x100ae9),{}),_0x478c13=_0x36060f['plugins']['get']('Users')['users']['map'](_0x2ce395=>({'id':_0x2ce395['id'],'name':_0x2ce395['name']})),_0x206e9a=_0x36060f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x16709f=_0x36060f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x29cf2e=_0x37693f['plugins']['get']('Users'),_0x5793c1=_0x37693f['plugins']['get']('TrackChangesEditing'),_0x1cf828=_0x37693f['plugins']['get']('CommentsRepository');for(const _0x2a5f6c of _0x1cf828['getCommentThreads']())_0x2a5f6c['remove']();for(const _0xb99bd4 of _0x478c13)_0x29cf2e['getUser'](_0xb99bd4['id'])||_0x29cf2e['addUser'](_0xb99bd4);_0x29cf2e['me']||_0x29cf2e['useAnonymousUser']();for(const _0xe2e71a of _0x16709f)_0x1cf828['addCommentThread'](_0xe2e71a);for(const _0x29989b of _0x206e9a)_0x5793c1['addSuggestionData'](_0x29989b);_0x37693f['data']['set'](_0x1a66df);}(_0x15009a,_0x3ad4df),_0x3ad4df['execute'](_0x10efc8?'acceptAllSuggestions':'discardAllSuggestions');const _0x4edeb7=v(_0x3ad4df)?_0x3ad4df['getFullData'](_0x50e13e):_0x3ad4df['data']['get'](_0x50e13e);return await _0x3ad4df['destroy'](),_0x4edeb7;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};