@ckeditor/ckeditor5-track-changes 46.0.0-alpha.4 → 46.0.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,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x1ae931,Plugin as _0xccd55c,PendingActions as _0x3bc0b2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x59d332,ObservableMixin as _0x389d9b,uid as _0x427844,priorities as _0x850491,insertToPriorityArray as _0x2e014a,toArray as _0x1c6e8b,logWarning as _0x14c28e,getEnvKeystrokeText as _0x2a60c2,FocusTracker as _0x336cee,KeystrokeHandler as _0x1db80e,Collection as _0x52b0e2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4d3828,IconCancel as _0x220b2c,IconTrackChanges as _0x2a8276}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x514438,View as _0x390189,ViewCollection as _0x164c10,FocusCycler as _0x435308,UIModel as _0xe74fc0,createDropdown as _0x3ec213,SplitButtonView as _0x23a6b0,addListToDropdown as _0x1ac0a4,MenuBarMenuView as _0x52984c,MenuBarMenuListView as _0x42add5,ListSeparatorView as _0x6bdc90,MenuBarMenuListItemView as _0x3d5b90,MenuBarMenuListItemButtonView as _0x51bfc9,BodyCollection as _0x49dc14,Dialog as _0xb00e44}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1c60de,hashObject as _0x17437d,surroundingMarkersDetector as _0xfb66d9,FOCUS_ANNOTATION_KEYSTROKE as _0x59a850,AriaDescriptionView as _0x2805ed,setupThreadKeyboardNavigation as _0x4d2696,trimHtml as _0x33cbe5,UserView as _0x924866,LateFocusButtonView as _0x5dfb91,getDateTimeFormatter as _0x142fa3,getAllMarkersDomElementsSorted as _0x17848e,sanitizeEditorConfig as _0x423a1d}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x48434c,ModelLiveRange as _0x20b456,ModelLivePosition as _0x26ff4e,ViewDowncastWriter as _0x278fb4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x117925,toWidget as _0xc4712e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x460771,set as _0x519ddd,isEqual as _0x23cad6,unset as _0x50ac6c,omit as Ut}from'es-toolkit/compat';import{Delete as _0x202975,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3d2f33}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x6b813f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x1ae931{['_enabledCommands'];constructor(_0x9e8eb9,_0x3579f8){super(_0x9e8eb9),this['_enabledCommands']=_0x3579f8,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 _0x2947b6 of this['editor']['commands']['commands']())_0x2947b6['affectsData']&&!this['_enabledCommands']['has'](_0x2947b6)&&_0x2947b6['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1d6ec3 of this['editor']['commands']['commands']())_0x1d6ec3['affectsData']&&!this['_enabledCommands']['has'](_0x1d6ec3)&&_0x1d6ec3['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x1ae931{['_suggestions'];constructor(_0xb13e25,_0x315b09){super(_0xb13e25),this['_suggestions']=_0x315b09,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xbddae7){const _0x4fb82b=this['_suggestions']['get'](_0xbddae7);if(!_0x4fb82b)throw new _0x59d332('track-changes-accept-suggestion-not-found',this);const _0x4b6dcc=_0x4fb82b['getRanges']();this['editor']['model']['canEditAt'](_0x4b6dcc)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4fb82b);}}class M extends _0x1ae931{['_suggestions'];constructor(_0x2c6348,_0x51b69b){super(_0x2c6348),this['_suggestions']=_0x51b69b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x190e56){const _0x38dd99=this['_suggestions']['get'](_0x190e56);if(!_0x38dd99)throw new _0x59d332('track-changes-discard-suggestion-not-found',this);const _0x5d3f8c=_0x38dd99['getRanges']();this['editor']['model']['canEditAt'](_0x5d3f8c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x38dd99);}}function ls(_0xa106d2,_0x19fb7f){let _0x316a70='';return _0x316a70+=_0xa106d2['split']('*')['map']((_0x44c5eb,_0x59ad18)=>_0x59ad18%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x44c5eb)+'</span>':Yt(_0x44c5eb))['join'](''),_0x19fb7f&&(_0x316a70+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x19fb7f['value']+'\x22\x20title=\x22'+_0x19fb7f['title']+'\x22></span>'),_0x316a70;}function Yt(_0x195db6){const _0x46d0aa=document['createElement']('span');return _0x46d0aa['innerText']=_0x195db6,_0x46d0aa['innerHTML'];}function ts(_0x547150){return _0x547150['sort']((_0x187023,_0x277d0a)=>'attribute'===_0x187023['type']&&'attribute'!==_0x277d0a['type']?-0x1:'attribute'!==_0x187023['type']&&'attribute'===_0x277d0a['type']?0x1:'deletion'==_0x187023['type']&&'deletion'!=_0x277d0a['type']?-0x1:'deletion'!=_0x187023['type']&&'deletion'==_0x277d0a['type']?0x1:0x0);}function to(_0x258ae1,_0xd6e3a1){let _0x2b11e1,_0x2a4296=0x0;const _0x26f704=[],_0x1254e1=_0xd6e3a1['schema'];for(;_0x2a4296<_0x258ae1['length'];){const _0x1cbd2b=_0x258ae1[_0x2a4296],_0x213f96=_0x258ae1[_0x2a4296+0x1];_0x2b11e1||(_0x2b11e1=_0xd6e3a1['createPositionBefore'](_0x1cbd2b)),Zt(_0xd6e3a1,_0x1cbd2b,_0x213f96)||(_0x26f704['push'](_0xd6e3a1['createRange'](_0x2b11e1,_0x1254e1['isObject'](_0x1cbd2b)?_0xd6e3a1['createPositionAfter'](_0x1cbd2b):_0xd6e3a1['createPositionAt'](_0x1cbd2b,'end'))),_0x2b11e1=null),_0x2a4296++;}return _0x26f704;}function Zt(_0x1459d4,_0x583c7e,_0x541894){if(!_0x541894)return!0x1;const _0x2e176d=_0x1459d4['createPositionAfter'](_0x583c7e),_0xb53b2=_0x1459d4['createPositionBefore'](_0x541894);return _0x2e176d['isTouching'](_0xb53b2);}function rs(_0x41db03,_0x26d95b,_0x5aee2f){for(;_0x5aee2f['length'];){const _0x4d3ec4=_0x5aee2f['splice'](0x0,0x64);_0x41db03['change'](()=>{for(const _0x55fcbf of _0x4d3ec4)_0x55fcbf['isInContent']&&_0x26d95b['execute'](_0x55fcbf['id']);});}}class $ extends _0x1ae931{['_command'];['_suggestions'];constructor(_0xefa391,_0x5cad95,_0x3f3247){super(_0xefa391),this['_command']=_0x5cad95,this['_suggestions']=_0x3f3247,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1f915e=Array['from'](this['_suggestions']['values']())['some'](_0x43d32b=>_0x43d32b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1f915e;}['execute'](){const _0x584a38=ts(Array['from'](this['_suggestions']['values']()));for(const _0x206785 of _0x584a38){const _0x6b9364=_0x206785['getRanges']();if(!this['editor']['model']['canEditAt'](_0x6b9364))return;}rs(this['editor']['model'],this['_command'],_0x584a38);}}class B extends _0x1ae931{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xb7275e,_0x48626f,_0x41d855){super(_0xb7275e),this['_command']=_0x48626f,this['_suggestions']=_0x41d855,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x6e5fa8=this['editor']['model']['document']['selection'],_0x4e0f43=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x584bf1,_0x5518cf){const _0x545d65=Array['from'](_0x584bf1['getRanges']()),_0x5073e4=new Set();for(const _0x5c23f7 of _0x5518cf)if(_0x5c23f7['isInContent']){for(const _0x5c82ee of _0x545d65)for(const _0x224f1c of _0x5c23f7['getRanges']())(_0x5c82ee['isIntersecting'](_0x224f1c)||_0x584bf1['isCollapsed']&&!_0x5c23f7['isMultiRange']&&_0x5c23f7['next']&&_0x224f1c['end']['isTouching'](_0x5c82ee['start']))&&_0x5073e4['add'](_0x5c23f7);}return _0x5073e4;}(_0x6e5fa8,_0x4e0f43),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5df777=ts(Array['from'](this['_selectedSuggestions']));for(const _0x5d83e3 of _0x5df777){const _0x401222=_0x5d83e3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x401222))return;}rs(this['editor']['model'],this['_command'],_0x5df777);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x389d9b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x35f46d,_0x370bfe){super(),this['id']=_0x370bfe['id'],this['type']=_0x370bfe['type'],this['subType']=_0x370bfe['subType']||null,this['author']=_0x370bfe['author'],this['creator']=_0x370bfe['creator']||_0x370bfe['author'],this['isExternal']=Boolean(_0x370bfe['attributes']&&_0x370bfe['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x370bfe['originalSuggestionId']||null,this['_model']=_0x35f46d,this['_onAccept']=_0x370bfe['onAccept'],this['_onDiscard']=_0x370bfe['onDiscard'],this['_onAttributesChange']=_0x370bfe['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x370bfe['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 _0x3d741b=this;for(;_0x3d741b['previous'];)_0x3d741b=_0x3d741b['previous'];return _0x3d741b;}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'](_0x1c04ef){this['_markerNames']['add'](_0x1c04ef);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3c7907=>this['_model']['markers']['get'](_0x3c7907))['filter'](_0x3f86f7=>_0x3f86f7);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3786a8=>{for(const _0x947723 of this['getMarkers']())_0x3786a8['removeMarker'](_0x947723);}),this['_markerNames']['clear']();}['removeMarker'](_0x3c094a){this['_model']['change'](_0x18acac=>{_0x18acac['removeMarker'](_0x3c094a);}),this['_markerNames']['delete'](_0x3c094a);}['addRange'](_0x2d185e){const _0x382e70='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x382e70),this['_model']['change'](_0x80e9b1=>{_0x80e9b1['addMarker'](_0x382e70,{'range':_0x2d185e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1e866){for(const _0x1cd258 of this['getRanges']())if(_0x1cd258['isIntersecting'](_0x1e866))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4f9f1b=>_0x4f9f1b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xa66347,_0x56e008)=>[..._0xa66347,..._0x56e008['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xb23a07=this['getRanges']();if(0x1!=_0xb23a07['length'])return null;const _0x2fa581=_0xb23a07[0x0],_0x458754=_0x2fa581['start']['nodeAfter'],_0x577e1f=_0x2fa581['end']['nodeBefore'];return _0x458754 instanceof _0x48434c?_0x458754!=_0x577e1f?null:_0x458754: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 _0x1f2af7=[];let _0x202a00=this['head'];for(;_0x202a00;)_0x1f2af7['push'](_0x202a00),_0x202a00=_0x202a00['next'];return _0x1f2af7;}['setAttribute'](_0x249f20,_0xf31dfb){const _0x597496=_0x460771(this['attributes']);_0x519ddd(_0x597496,_0x249f20,_0xf31dfb),_0x23cad6(_0x597496,this['attributes'])||(this['attributes']=_0x597496,this['_onAttributesChange'](_0x597496));}['removeAttribute'](_0x444311){const _0x42f08f=_0x460771(this['attributes']);_0x50ac6c(_0x42f08f,_0x444311),_0x23cad6(_0x42f08f,this['attributes'])||(this['attributes']=_0x42f08f,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 _0x427844()['substr'](0x1,0x5);}}function o(_0x13d150,_0x5c3668,_0x11f307){const _0x1ac777=_0x13d150['t'],t=_0x13d150['t'];switch(_0x5c3668){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x11f307);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x11f307);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x11f307);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x11f307);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x11f307);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',_0x11f307);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x11f307);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x11f307);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x11f307);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x11f307);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x11f307);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x11f307);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x11f307);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x11f307);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x11f307);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x11f307);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x11f307);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x11f307);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x11f307);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x11f307);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x11f307);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x11f307);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x11f307);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x11f307);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x11f307);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'},_0x11f307);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x11f307);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x11f307);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x11f307);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x11f307);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x11f307);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x11f307);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x11f307);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'},_0x11f307);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x11f307);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x11f307);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x11f307);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x11f307);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'},_0x11f307);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x11f307);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'},_0x11f307);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x11f307);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x11f307);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'},_0x11f307);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x11f307);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'},_0x11f307);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x11f307);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x11f307);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'},_0x11f307);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x11f307);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 _0x1ac777({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x11f307);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1ac777({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x11f307);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x11f307);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'},_0x11f307);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'},_0x11f307);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'},_0x11f307);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5c3668;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1999b3,_0x2e6ffc){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1999b3,this['_locale']=_0x2e6ffc;}['getDescriptions'](_0x1a3ee7){const _0x3011b8=[],_0x1f3ad1=new Set(),_0x47c0df=new Set();for(let _0x303337=0x0;_0x303337<_0x1a3ee7['length'];_0x303337++){const _0x5bcaca=_0x1a3ee7[_0x303337];if(!_0x5bcaca['isInContent'])continue;const _0x47e19f=this['_handleCustomCallbackDescription'](_0x5bcaca);if(_0x47e19f){if(null!=_0x5bcaca['subType']){if(_0x1f3ad1['has'](_0x5bcaca['subType']))continue;_0x1f3ad1['add'](_0x5bcaca['subType']);}_0x3011b8['push'](_0x47e19f);}else{if('attribute'==_0x5bcaca['type']){const _0x22622b=_0x5bcaca['data']['key'];if(_0x47c0df['has'](_0x22622b))continue;_0x47c0df['add'](_0x5bcaca['data']['key']),_0x22622b==m?this['_handleRenameSuggestionDescription'](_0x3011b8,_0x5bcaca):this['_handleAttributeSuggestionDescription'](_0x3011b8,_0x5bcaca);continue;}'insertion'!=_0x5bcaca['type']&&'deletion'!=_0x5bcaca['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3011b8,_0x5bcaca,_0x1a3ee7[_0x303337+0x1]);}}return this['_resolveDescriptionItems'](_0x3011b8);}['registerDescriptionCallback'](_0x4edf25){this['_customCallbacks']['push'](_0x4edf25);}['registerElementLabel'](_0xee758a,_0x1d2b5e,_0x3618d3=_0x850491['normal']){'function'==typeof _0xee758a?_0x2e014a(this['_itemLabelsCallbacks'],{'matchingCallback':_0xee758a,'label':_0x1d2b5e,'priority':_0x3618d3}):this['_itemLabels']['set'](_0xee758a,_0x1d2b5e);}['registerAttributeLabel'](_0x2e7abe,_0x47ef82){this['_attributeLabels']['set'](_0x2e7abe,_0x47ef82);}['getItemLabel'](_0x412afe,_0x151e2e=0x1){let _0x563339;for(const _0x510a80 of this['_itemLabelsCallbacks'])if(_0x510a80['matchingCallback'](_0x412afe)){_0x563339=_0x510a80['label'];break;}return _0x563339||(_0x563339=this['_itemLabels']['get'](_0x412afe['name'])),_0x563339?_0x563339(_0x151e2e):0x1!==_0x151e2e?_0x151e2e+'\x20'+_0x412afe['name']+'s':''+_0x412afe['name'];}['_addDescriptionItems'](_0x183d20,_0x1d2250){const _0x556b61=_0x1d2250['getFirstRange']()['getWalker'](),_0x4c76bf='insertion'==_0x1d2250['type']?'add':'remove';for(const _0x14104e of _0x556b61){const _0x26c873=_0x14104e['item'],_0x358410=_0x183d20[_0x183d20['length']-0x1];if(_0x26c873['is']('$textProxy'))_0x358410&&_0x358410['type']['indexOf']('Container')>-0x1&&_0x183d20['pop'](),_0x358410&&'text'==_0x358410['type']?_0x358410[_0x4c76bf]+=_0x26c873['data']:_0x183d20['push']({'type':'text','add':'add'==_0x4c76bf?_0x26c873['data']:'','remove':'remove'==_0x4c76bf?_0x26c873['data']:''});else{if(this['_schema']['isObject'](_0x26c873)){const _0xde4380=_0x26c873;if(_0x358410&&_0x358410['type']['indexOf']('Container')>-0x1&&_0x183d20['pop'](),'elementEnd'==_0x14104e['type'])continue;_0x358410&&_0x358410['type']==_0x4c76bf+'Object'&&_0x358410['element']['name']==_0xde4380['name']?_0x358410['quantity']++:_0x183d20['push']({'type':_0x4c76bf+'Object','element':_0xde4380,'quantity':0x1}),_0x556b61['skip'](_0x5aecf3=>!('elementEnd'==_0x5aecf3['type']&&_0x5aecf3['item']==_0x26c873));}else{if(this['_schema']['checkChild'](_0x26c873,'$text')||_0x26c873['is']('element','softBreak')){const _0x310b7d=_0x26c873;if('add'==_0x4c76bf&&'elementStart'==_0x14104e['type']||'remove'==_0x4c76bf&&'elementEnd'==_0x14104e['type'])continue;if(_0x358410&&-0x1==_0x358410['type']['indexOf']('Container')){'text'==_0x358410['type']&&(_0x358410[_0x4c76bf]+='\x0a');continue;}let _0x4cb43d;if(_0x4cb43d='add'==_0x4c76bf?_0x310b7d['nextSibling']&&!this['_schema']['isObject'](_0x310b7d['nextSibling'])?_0x310b7d['nextSibling']:null:_0x310b7d['previousSibling']&&!this['_schema']['isObject'](_0x310b7d['previousSibling'])?_0x310b7d['previousSibling']:null,_0x310b7d['isEmpty']||_0x4cb43d&&_0x4cb43d['isEmpty']){const _0xdf822a=_0x4cb43d&&_0x4cb43d['isEmpty']?_0x4cb43d:_0x310b7d;_0x358410&&_0x358410['type']==_0x4c76bf+'EmptyContainer'&&_0x358410['element']['name']==_0xdf822a['name']?_0x358410['quantity']++:_0x183d20['push']({'type':_0x4c76bf+'EmptyContainer','element':_0xdf822a,'quantity':0x1});}else _0x183d20['push']({'type':_0x4c76bf+'Container','element':_0x310b7d});}}}}}['_resolveDescriptionItems'](_0x3c2aba){const _0x4f8678=this['_locale'],_0x55bfee=[],_0x237b57=[],_0x45615f=[];for(const _0x4c4f4e of _0x3c2aba)switch(_0x4c4f4e['type']){case'text':if(_0x4c4f4e['add']=_0x4c4f4e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4c4f4e['remove']=_0x4c4f4e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4c4f4e['add']&&''!=_0x4c4f4e['remove']){_0x55bfee['push']({'type':'replace','content':o(_0x4f8678,'REPLACE_TEXT',['\x22'+_0x4c4f4e['remove']+'\x22','\x22'+_0x4c4f4e['add']+'\x22'])});continue;}if(null!=_0x4c4f4e['add']['match'](/^ +$/)){_0x55bfee['push']({'type':'insertion','content':o(_0x4f8678,'*Insert:*\x20%0',o(_0x4f8678,'ELEMENT_SPACE',_0x4c4f4e['add']['length']))});continue;}if(null!=_0x4c4f4e['remove']['match'](/^ +$/)){_0x55bfee['push']({'type':'deletion','content':o(_0x4f8678,'*Remove:*\x20%0',o(_0x4f8678,'ELEMENT_SPACE',_0x4c4f4e['remove']['length']))});continue;}if(''!=_0x4c4f4e['add']){_0x55bfee['push']({'type':'insertion','content':o(_0x4f8678,'*Insert:*\x20%0','\x22'+_0x4c4f4e['add']+'\x22')});continue;}_0x55bfee['push']({'type':'deletion','content':o(_0x4f8678,'*Remove:*\x20%0','\x22'+_0x4c4f4e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x55bfee['push']({'type':'insertion','content':o(_0x4f8678,'*Insert:*\x20%0',this['getItemLabel'](_0x4c4f4e['element'],_0x4c4f4e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x55bfee['push']({'type':'deletion','content':o(_0x4f8678,'*Remove:*\x20%0',this['getItemLabel'](_0x4c4f4e['element'],_0x4c4f4e['quantity']))});continue;case'addContainer':_0x55bfee['push']({'type':'insertion','content':o(_0x4f8678,'*Split:*\x20%0',this['getItemLabel'](_0x4c4f4e['element'],_0x4c4f4e['quantity']))});continue;case'removeContainer':_0x55bfee['push']({'type':'deletion','content':o(_0x4f8678,'*Merge:*\x20%0',this['getItemLabel'](_0x4c4f4e['element'],_0x4c4f4e['quantity']))});continue;case'addFormat':_0x237b57['push'](_0x4c4f4e['key']);continue;case'removeFormat':_0x45615f['push'](_0x4c4f4e['key']);continue;default:_0x55bfee['push'](_0x4c4f4e);}if(_0x237b57['length']){const _0x54ec6f=_0x237b57['map'](_0x3dc695=>this['_attributeLabels']['has'](_0x3dc695)?this['_attributeLabels']['get'](_0x3dc695):_0x3dc695)['join'](',\x20');_0x55bfee['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x54ec6f)});}if(_0x45615f['length']){const _0x4aa5e8=_0x45615f['map'](_0x530f72=>this['_attributeLabels']['has'](_0x530f72)?this['_attributeLabels']['get'](_0x530f72):_0x530f72)['join'](',\x20');_0x55bfee['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4aa5e8)});}return _0x55bfee;}['_handleCustomCallbackDescription'](_0x345768){for(const _0x47cec9 of this['_customCallbacks']){const _0x37d750=_0x47cec9(_0x345768);if(_0x37d750&&'type'in _0x37d750)return _0x37d750;}}['_handleAttributeSuggestionDescription'](_0x298003,_0x5c0f4a){const _0x36d08e=_0x5c0f4a['data'],_0x20b9ef=void 0x0===_0x36d08e['newValue']?'removeFormat':'addFormat';_0x298003['push']({'type':_0x20b9ef,'key':_0x36d08e['key']});}['_handleRenameSuggestionDescription'](_0x3025e0,_0x4bde54){_0x3025e0['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4bde54['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x34d143,_0x2d4c6b,_0xef237){if(this['_addDescriptionItems'](_0x34d143,_0x2d4c6b),_0xef237&&_0xef237['getFirstRange']()&&!_0x2d4c6b['getFirstRange']()['end']['isEqual'](_0xef237['getFirstRange']()['start'])){const _0x5e1a14=_0x34d143[_0x34d143['length']-0x1],_0x322991='insertion'==_0x2d4c6b['type']?'add':'remove';_0x5e1a14&&'text'==_0x5e1a14['type']&&(_0x5e1a14[_0x322991]+='\x0a');}}}class O extends _0xccd55c{['afterInit'](){const _0xe77c7b=this['editor'],_0x4066a7=_0xe77c7b['plugins']['get']('TrackChangesEditing');_0xe77c7b['commands']['get']('showAIAssistant')&&_0x4066a7['enableCommand']('showAIAssistant');}}class E extends _0xccd55c{['afterInit'](){const _0x33296a=this['editor'],_0x4c93f1=_0x33296a['locale'];if(!_0x33296a['plugins']['has']('AlignmentEditing'))return;const _0x1c6044=_0x33296a['plugins']['get']('TrackChangesEditing');_0x1c6044['enableDefaultAttributesIntegration']('alignment'),_0x1c6044['registerBlockAttribute']('alignment'),_0x1c6044['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4c93f1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd3c7be=this['editor'],_0x57745d=_0xd3c7be['locale'];_0xd3c7be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x450d72=>{if('formatBlock'!=_0x450d72['type'])return;const {data:_0x136703}=_0x450d72;if(_0x136703&&'alignment'==_0x136703['commandName']){const _0x4c03cd=_0x136703['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x57745d,'*Format:*\x20%0',function(_0x59a7ee){switch(_0x59a7ee){case'left':return o(_0x57745d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x57745d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x57745d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x57745d,'FORMAT_JUSTIFY_TEXT');}}(_0x4c03cd))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xccd55c{['afterInit'](){const _0x3cc6c0=this['editor'],_0x23bad6=_0x3cc6c0['plugins']['get']('TrackChangesEditing'),_0x138fda=_0x3cc6c0['locale'];for(const _0x1a9c44 of ti){if(!_0x3cc6c0['plugins']['has'](_0x1a9c44))continue;const _0x3999f1=_0x1a9c44['slice'](0x0,-0x7)['toLowerCase'](),_0x46260a='FORMAT_'+_0x3999f1['toUpperCase']();_0x23bad6['enableDefaultAttributesIntegration'](_0x3999f1),_0x23bad6['registerInlineAttribute'](_0x3999f1),_0x23bad6['descriptionFactory']['registerAttributeLabel'](_0x3999f1,o(_0x138fda,_0x46260a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5964d2=this['editor'],_0x57e178=_0x5964d2['locale'],_0x200405=_0x5964d2['plugins']['get']('TrackChangesEditing');function _0x4bba08(_0xb644f8,_0x25e9ea){_0x200405['descriptionFactory']['registerDescriptionCallback'](_0x440051=>{if('formatInline'!=_0x440051['type'])return;const {data:_0x472513}=_0x440051;return _0x472513&&_0x472513['commandName']===_0xb644f8?_0x472513['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x57e178,'*Format:*\x20%0',_0x25e9ea)}:{'type':'format','content':o(_0x57e178,'*Remove\x20format:*\x20%0',_0x25e9ea)}:void 0x0;});}_0x4bba08('bold',o(_0x57e178,'FORMAT_BOLD')),_0x4bba08('italic',o(_0x57e178,'FORMAT_ITALIC')),_0x4bba08('underline',o(_0x57e178,'FORMAT_UNDERLINE')),_0x4bba08('code',o(_0x57e178,'FORMAT_CODE')),_0x4bba08('strikethrough',o(_0x57e178,'FORMAT_STRIKETHROUGH')),_0x4bba08('subscript',o(_0x57e178,'FORMAT_SUBSCRIPT')),_0x4bba08('superscript',o(_0x57e178,'FORMAT_SUPERSCRIPT'));}}class U extends _0xccd55c{['afterInit'](){const _0x106b93=this['editor'],_0x160d36=_0x106b93['locale'];if(!_0x106b93['plugins']['has']('BlockQuoteEditing'))return;const _0x59c8e=_0x106b93['plugins']['get']('TrackChangesEditing'),_0xd087ee=this['editor']['commands']['get']('blockQuote');_0x59c8e['enableCommand']('blockQuote',(_0x1bfddb,_0x2b9e8e={})=>{const _0x1c911d=this['editor']['model']['document']['selection'],_0x1acf96=_0x2b9e8e&&void 0x0!==_0x2b9e8e['forceValue']?_0x2b9e8e['forceValue']:!_0xd087ee['value'];let _0x42c4d4=[];if(_0x1acf96){const _0x587a8f=Array['from'](_0x1c911d['getSelectedBlocks']())['filter'](_0x2a529a=>oo(_0x2a529a)||function(_0x5a1fac,_0x2263ff){const _0x31be9c=_0x2263ff['checkChild'](_0x5a1fac['parent'],'blockQuote'),_0x151381=_0x2263ff['checkChild'](['$root','blockQuote'],_0x5a1fac);return _0x31be9c&&_0x151381;}(_0x2a529a,this['editor']['model']['schema']));_0x42c4d4=to(_0x587a8f,_0x106b93['model']);}else{const _0x2a0f97=Array['from'](_0x1c911d['getSelectedBlocks']())['filter'](_0x13824c=>oo(_0x13824c));_0x42c4d4=to(_0x2a0f97,_0x106b93['model']);}_0x106b93['model']['change'](()=>{for(const _0x8f1781 of _0x42c4d4)_0x59c8e['markBlockFormat'](_0x8f1781,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1acf96}]});});}),_0x59c8e['descriptionFactory']['registerDescriptionCallback'](_0x5c8cfb=>{const {data:_0x5069f0}=_0x5c8cfb;if(_0x5069f0&&'blockQuote'==_0x5069f0['commandName']){const _0x2556a5=o(_0x160d36,'ELEMENT_BLOCK_QUOTE');return _0x5069f0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x160d36,'*Set\x20format:*\x20%0',_0x2556a5)}:{'type':'format','content':o(_0x160d36,'*Remove\x20format:*\x20%0',_0x2556a5)};}});}}function oo(_0x524d6b){return'blockQuote'==_0x524d6b['parent']['name'];}class V extends _0xccd55c{['afterInit'](){const _0x934143=this['editor'],_0x331607=_0x934143['locale'],_0x4b2566=_0x934143['plugins']['get']('TrackChangesEditing');_0x934143['plugins']['has']('BookmarkEditing')&&(_0x4b2566['enableCommand']('insertBookmark'),_0x4b2566['enableDefaultAttributesIntegration']('updateBookmark'),_0x4b2566['registerBlockAttribute']('bookmarkId'),_0x4b2566['descriptionFactory']['registerDescriptionCallback'](_0x34de75=>{if('insertion'!=_0x34de75['type']&&'deletion'!=_0x34de75['type']&&'attribute'!=_0x34de75['type'])return;const _0x58124a=_0x34de75['getContainedElement']();if(null==_0x58124a)return;if(!_0x58124a['is']('element','bookmark'))return;const _0x414f91=_0x58124a['getAttribute']('bookmarkId');if('insertion'==_0x34de75['type'])return{'type':'insertion','content':o(_0x331607,'*Insert:*\x20%0','\x22'+_0x414f91+'\x22\x20'+o(_0x331607,'ELEMENT_BOOKMARK'))};if('deletion'==_0x34de75['type'])return{'type':'deletion','content':o(_0x331607,'*Remove:*\x20%0','\x22'+_0x414f91+'\x22\x20'+o(_0x331607,'ELEMENT_BOOKMARK'))};const {data:_0x6dc2d}=_0x34de75;if(!_0x6dc2d||'bookmarkId'!=_0x6dc2d['key'])return;return{'type':'format','content':o(_0x331607,'*Set\x20bookmark:*\x20%0','\x22'+_0x6dc2d['newValue']+'\x22')};}));}}class F extends _0xccd55c{['afterInit'](){const _0x3285e4=this['editor'];_0x3285e4['plugins']['has']('CaseChange')&&(_0x3285e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3285e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3285e4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xccd55c{['afterInit'](){const _0x20661e=this['editor'];_0x20661e['commands']['get']('ckbox')&&_0x20661e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xccd55c{['afterInit'](){const _0x574182=this['editor'];if(!_0x574182['plugins']['has']('CodeBlock'))return;const _0xa7b000=_0x574182['plugins']['get']('TrackChangesEditing'),_0x334f8e=_0x574182['locale'],_0x40adba=_0x574182['config']['get']('codeBlock')['languages'],_0x30475f=_0x574182['commands']['get']('codeBlock');_0xa7b000['enableCommand']('indentCodeBlock'),_0xa7b000['enableCommand']('outdentCodeBlock'),_0xa7b000['enableCommand']('codeBlock',(_0x20fc38,_0x4826d6={})=>{const _0x2d5fa2=_0x574182['model'],_0xe81c3a=_0x574182['model']['document']['selection'],_0x32ea99=_0x4826d6&&void 0x0!==_0x4826d6['forceValue']?_0x4826d6['forceValue']:!_0x30475f['value'];let _0xaecb6b;_0x4826d6['language']||(_0x4826d6['language']=_0x40adba[0x0]['language']),_0xaecb6b=_0x32ea99?Array['from'](_0xe81c3a['getSelectedBlocks']())['filter'](_0x1458d4=>co(_0x1458d4)||function(_0x130b9c,_0x2f0aa8){if(_0x130b9c['is']('rootElement')||_0x2f0aa8['isLimit'](_0x130b9c))return!0x1;return _0x2f0aa8['checkChild'](_0x130b9c['parent'],'codeBlock');}(_0x1458d4,_0x2d5fa2['schema'])):Array['from'](_0xe81c3a['getSelectedBlocks']())['filter'](_0x27207a=>co(_0x27207a));const _0x36a9f4=to(_0xaecb6b,_0x2d5fa2);_0x2d5fa2['change'](()=>{for(const _0x535e65 of _0x36a9f4)_0xa7b000['markBlockFormat'](_0x535e65,{'commandName':'codeBlock','commandParams':[{..._0x4826d6,'forceValue':_0x32ea99}],'formatGroupId':'blockName'});});}),(_0xa7b000['descriptionFactory']['registerElementLabel']('codeBlock',_0x14e1c2=>o(_0x334f8e,'ELEMENT_CODE_BLOCK',_0x14e1c2)),_0xa7b000['descriptionFactory']['registerDescriptionCallback'](_0x45d3e1=>{if('formatBlock'!=_0x45d3e1['type'])return;const _0x52848a=_0x334f8e['t'],{data:_0x570a7e}=_0x45d3e1;if(!_0x570a7e||'codeBlock'!=_0x570a7e['commandName'])return;const _0x524101=_0x570a7e['commandParams'][0x0]['language'],_0x302de0=_0x52848a(_0x40adba['find'](_0x53a9bf=>_0x53a9bf['language']===_0x524101)['label'])['toLowerCase']();return _0x570a7e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x334f8e,'*Set\x20format:*\x20%0',o(_0x334f8e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x302de0+')')}:{'type':'format','content':o(_0x334f8e,'*Remove\x20format:*\x20%0',o(_0x334f8e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x19dfb1){return'codeBlock'==_0x19dfb1['name'];}class J extends _0xccd55c{['afterInit'](){const _0x3f82ee=this['editor'];if(!_0x3f82ee['plugins']['has']('CommentsEditing'))return;_0x3f82ee['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3b1bf8,_0x49e7a4,_0x2e656c){const _0x33f307=[];for(const _0x3af8c4 of _0x49e7a4['getItems']())_0x3af8c4['hasAttribute'](_0x3b1bf8)&&_0x33f307['push'](_0x2e656c['createRangeOn'](_0x3af8c4));return _0x33f307;}function De(_0x4d8740,_0xff1297,{showActiveMarker:_0x55e57d=!0x0}={}){const _0x182dee=_0x4d8740['plugins']['get']('TrackChangesEditing');return(_0x179ba8,_0x51dc6b,_0x2ffe2f)=>{if(!_0x2ffe2f['consumable']['test'](_0x51dc6b['markerRange'],_0x179ba8['name']))return;const _0x56101c=_0x51dc6b['markerRange']['getWalker'](),_0x2f6784=_0x51dc6b['markerRange']['start'],_0x1e9ed6=_0x4d8740['model']['schema'];let _0x52584=null,_0x247212=null,_0x3a9ef7=!0x1,_0x19c5fa=!0x1;for(const _0x538c84 of _0x56101c){const _0x547b37=_0x538c84['item'];_0x3a9ef7=_0x3a9ef7||_0x1e9ed6['isContent'](_0x547b37);const _0x1c3646=_0x2ffe2f['mapper']['toViewElement'](_0x547b37);if(_0x1c3646&&_0x1c3646['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x538c84['type']&&(_0x1e9ed6['isBlock'](_0x547b37)&&!_0x1e9ed6['isLimit'](_0x547b37)&&(_0x547b37['nextSibling']||_0x2f6784['isAtEnd']?_0x52584&&_0x52584['parent']==_0x547b37||(_0x52584=_0x547b37,_0x581ff6(_0x538c84['previousPosition']),_0x19c5fa=!0x0):_0x247212=_0x247212||_0x538c84['previousPosition']));}function _0x581ff6(_0x46fa4a){const {id:_0x1c6287,authorId:_0x4aa2f2}=_0x182dee['_splitMarkerName'](_0x51dc6b['markerName']),_0x8e51b0=_0x2ffe2f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xff1297,'data-suggestion':_0x1c6287,'data-author-id':_0x4aa2f2}),_0x1215b9=_0x2ffe2f['mapper']['toViewPosition'](_0x46fa4a);_0x55e57d&&_0x182dee['activeMarkers']['includes'](_0x51dc6b['markerName'])&&_0x2ffe2f['writer']['addClass']('ck-suggestion-marker--active',_0x8e51b0),_0x2ffe2f['writer']['insert'](_0x1215b9,_0x8e51b0),_0x2ffe2f['mapper']['bindElementToMarker'](_0x8e51b0,_0x51dc6b['markerName']);}_0x3a9ef7||_0x19c5fa||!_0x247212||_0x581ff6(_0x247212);};}class K extends _0xccd55c{static get['requires'](){return[_0x202975];}['init'](){const _0x27b082=this['editor'],_0x217f04=_0x27b082['plugins']['get']('TrackChangesEditing');_0x217f04['enableCommand']('delete');const _0x2e52ac=_0x27b082['commands']['get']('deleteForward');_0x217f04['enableCommand']('deleteForward',(_0x408eae,_0x277824={})=>{const _0x1495e0=_0x27b082['model']['createSelection'](_0x27b082['model']['document']['selection']);_0x1495e0['isCollapsed']&&_0x27b082['model']['modifySelection'](_0x1495e0,{'direction':'forward','unit':_0x277824['unit']});const _0x168c35=_0x1495e0['getFirstRange'](),_0x3f3b24=_0x20b456['fromRange'](_0x168c35);let _0x5aeedc;_0x408eae(_0x277824),_0x5aeedc='$graveyard'==_0x3f3b24['root']['rootName']?_0x27b082['model']['createRange'](_0x168c35['start']):_0x27b082['model']['createRange'](_0x3f3b24['start'],_0x3f3b24['end']),_0x3f3b24['detach'](),_0x27b082['model']['enqueueChange'](_0x2e52ac['buffer']['batch'],_0x13f802=>{_0x2e52ac['buffer']['lock'](),_0x13f802['setSelection'](_0x13f802['createRange'](_0x5aeedc['end'])),_0x2e52ac['buffer']['unlock']();});}),_0x27b082['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x27b082,'merge'),{'priority':'high'}),_0x27b082['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x51832d,_0x5f0504,_0x33b597)=>{_0x33b597['options']['showSuggestionHighlights']&&De(_0x27b082,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x51832d,_0x5f0504,_0x33b597);},{'priority':'high'}),_0x27b082['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1ec6d9,_0x1d6da5,_0x1d6e30)=>{const _0x4208df=_0x1d6e30['mapper']['markerNameToElements'](_0x1d6da5['markerName']);if(_0x4208df){for(const _0x15387e of _0x4208df)_0x15387e['is']('uiElement')&&(_0x1d6e30['mapper']['unbindElementFromMarkerName'](_0x15387e,_0x1d6da5['markerName']),_0x1d6e30['writer']['remove'](_0x15387e));}},{'priority':'high'});}}class H extends _0xccd55c{['afterInit'](){const _0x408be1=this['editor'];if(!_0x408be1['plugins']['has']('ListEditing'))return;const _0x4a8700=_0x408be1['locale'],_0x57284c=_0x408be1['plugins']['get']('TrackChangesEditing'),_0xb1e3be=_0x408be1['plugins']['has']('TodoListEditing'),_0x3b72de=!!_0x408be1['config']['get']('list.multiBlock');function _0x781bb8(_0x24e5bc){return{'type':'format','content':''+o(_0x4a8700,'*Set\x20format:*\x20%0',_0x24e5bc)};}function _0x19c0bb(_0x51e3e8){return{'type':'format','content':''+o(_0x4a8700,'*Remove\x20format:*\x20%0',_0x51e3e8)};}_0x57284c['enableDefaultAttributesIntegration']('numberedList'),_0x57284c['enableDefaultAttributesIntegration']('bulletedList'),_0x57284c['enableDefaultAttributesIntegration']('customNumberedList'),_0x57284c['enableDefaultAttributesIntegration']('customBulletedList'),_0x57284c['enableDefaultAttributesIntegration']('indentList'),_0x57284c['enableDefaultAttributesIntegration']('outdentList'),_0x57284c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x57284c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x57284c['registerBlockAttribute']('listItemId'),_0x57284c['registerBlockAttribute']('listType'),_0x57284c['registerBlockAttribute']('listIndent'),_0x3b72de&&(_0x57284c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x57284c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xb1e3be&&(_0x57284c['enableDefaultAttributesIntegration']('todoList'),_0x57284c['enableDefaultAttributesIntegration']('checkTodoList'),_0x57284c['registerBlockAttribute']('todoListChecked'),_0x57284c['descriptionFactory']['registerDescriptionCallback'](_0x533983=>{const {data:_0x4253ac}=_0x533983;if(_0x4253ac&&'todoListChecked'==_0x4253ac['key'])return{'type':'format','content':_0x4253ac['newValue']?o(_0x4a8700,'*Check\x20item*'):o(_0x4a8700,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x225159=>{if(_0x225159['batch']['isUndo'])return!0x1;let _0x469b58=!0x1;const _0x2dcf4c=_0x57284c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13ed22=>'todoListChecked'===_0x57284c['_getAttributeKey'](_0x13ed22));for(const _0x1c0cec of _0x2dcf4c){'todo'!=_0x1c0cec['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x57284c['_findSuggestions'](_0x1c0cec['getFirstRange'](),'attribute')['find'](_0x5c6634=>'listType'===_0x57284c['_getAttributeKey'](_0x5c6634['suggestion']))||(_0x225159['removeMarker'](_0x1c0cec['getFirstMarker']()),_0x469b58=!0x0));}return _0x469b58;})),_0x57284c['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4a8700,'FORMAT_INDENT'));const _0x47bc34={'type':'format','content':''};_0x57284c['descriptionFactory']['registerDescriptionCallback'](_0xd50f81=>{const {data:_0x12e945}=_0xd50f81;if(!_0x12e945||'listType'!=_0x12e945['key'])return;let _0x490c9f=_0xd50f81['head'];for(;_0x490c9f;){if(_0x490c9f['data']&&(('listStyle'==_0x490c9f['data']['key']||'listMarkerStyle'==_0x490c9f['data']['key'])&&(_0x490c9f['data']['newValue']&&'default'!=_0x490c9f['data']['newValue']||'default'!=_0x490c9f['data']['oldValue']&&!_0x12e945['newValue'])||!_0x3b72de&&_0x490c9f['data']['key']==m))return _0x47bc34;_0x490c9f=_0x490c9f['next'];}if(null==_0x12e945['newValue'])switch(_0x12e945['oldValue']){case'bulleted':return _0x19c0bb(o(_0x4a8700,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19c0bb(o(_0x4a8700,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19c0bb(o(_0x4a8700,'ELEMENT_TODO_LIST'));}switch(_0x12e945['newValue']){case'bulleted':return _0x781bb8(o(_0x4a8700,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x781bb8(o(_0x4a8700,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x781bb8(o(_0x4a8700,'ELEMENT_TODO_LIST'));}}),_0x57284c['descriptionFactory']['registerDescriptionCallback'](_0x40891c=>{const {data:_0x4feb1c}=_0x40891c;if(_0x4feb1c&&'listIndent'==_0x4feb1c['key'])return null==_0x4feb1c['newValue']||null==_0x4feb1c['oldValue']&&0x0==_0x4feb1c['newValue']?_0x47bc34:void 0x0;}),_0x57284c['descriptionFactory']['registerDescriptionCallback'](_0x4fe9a2=>{if('attribute'!=_0x4fe9a2['type'])return;const {data:_0x5b4797}=_0x4fe9a2;if(!_0x5b4797||'listItemId'!=_0x5b4797['key'])return;const _0x54668c=Te(_0x4fe9a2);return'newValue'==_0x54668c?{'type':'format','content':o(_0x4a8700,'*Merge:*\x20list\x20item')}:'oldValue'==_0x54668c?{'type':'format','content':o(_0x4a8700,'*Split:*\x20list\x20item')}:_0x47bc34;}),_0x408be1['model']['document']['registerPostFixer'](_0x3581e9=>this['listItemIdFixer'](_0x3581e9)),_0x408be1['model']['document']['registerPostFixer'](_0x6f13da=>this['noTrackChangesFixer'](_0x6f13da)),_0x408be1['model']['document']['on']('change:data',(_0x42b59c,_0x348b3f)=>{if(_0x348b3f['isUndo']||!_0x348b3f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x58e6e7){if(_0x58e6e7['batch']['isUndo']||!_0x58e6e7['batch']['isLocal'])return!0x1;let _0xa8bc3b=!0x1;const _0x2c2a80=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2992cb=>_0x2992cb['data']&&'listItemId'==_0x2992cb['data']['key'])['filter'](_0x1a1fc6=>_0x1a1fc6['data']['newValue']&&_0x1a1fc6['data']['oldValue']);for(const _0x645e95 of _0x2c2a80)Te(_0x645e95)||(_0x58e6e7['removeMarker'](_0x645e95['getFirstMarker']()),_0xa8bc3b=!0x0);return _0xa8bc3b;}['noTrackChangesFixer'](_0x13afb7){if(_0x13afb7['batch']['isUndo']||!_0x13afb7['batch']['isLocal'])return!0x1;const _0x30a072=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x30a072['trackChangesCommand']['value'])return!0x1;let _0x13e8af=!0x1;const _0x44caa9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x473859=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2c3e20=>'attribute'==_0x2c3e20['type'])['filter'](_0x5c833c=>_0x44caa9['includes'](_0x5c833c['attributeKey']));if(0x0==_0x473859['length'])return _0x13e8af;for(const _0x5411a6 of _0x473859){const _0x5c2cee=_0x30a072['_findSuggestions'](_0x5411a6['range'],'attribute')['filter'](_0x289af6=>!_0x289af6['meta']['isNextTo'])['map'](_0x3ea849=>_0x3ea849['suggestion'])['filter'](_0x263095=>{const _0x4510e0=_0x30a072['_getAttributeKey'](_0x263095);return _0x44caa9['includes'](_0x4510e0);});if(_0x5c2cee['length']){for(const _0x593930 of _0x5c2cee)_0x13afb7['removeMarker'](_0x593930['getFirstMarker']());_0x13e8af=!0x0;}}return _0x13e8af;}['assureChains'](){const _0x4bb39=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27f8a1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xfb9ac3;const _0x52a03d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4f8dbf=>{if(_0x4f8dbf['data']['oldRange']||!_0x4f8dbf['data']['newRange'])return null;if(!_0x4f8dbf['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5ae766}=_0x4bb39['_splitMarkerName'](_0x4f8dbf['name']);if(!_0x4bb39['hasSuggestion'](_0x5ae766))return null;const _0x141c00=_0x4bb39['getSuggestion'](_0x5ae766);return _0x27f8a1['includes'](_0x141c00['data']['key']);})['map'](_0x97f286=>{const {id:_0x36d708}=_0x4bb39['_splitMarkerName'](_0x97f286['name']),_0x159f4a=_0x4bb39['getSuggestion'](_0x36d708);return _0xfb9ac3=_0x159f4a['attributes']['groupId'],_0x159f4a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x52a03d['size'])return;const _0x58b922=_0x4bb39['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a06cd=>'attribute'==_0x3a06cd['type']&&_0x3a06cd['data']&&_0x27f8a1['includes'](_0x3a06cd['data']['key'])&&_0x3a06cd['attributes']['groupId']!=_0xfb9ac3)['map'](_0x576d81=>({'listItem':_0x576d81['getFirstRange']()['start']['nodeAfter'],'groupId':_0x576d81['attributes']['groupId']})),_0x2bab86=new Set();for(const {groupId:_0x45504b,listItem:_0x2e7f84}of _0x58b922)_0x52a03d['has'](_0x2e7f84)&&_0x2bab86['add'](_0x45504b);for(const _0x36e05c of _0x4bb39['getSuggestions']())_0x2bab86['has'](_0x36e05c['attributes']['groupId'])&&_0x36e05c['setAttribute']('groupId',_0xfb9ac3);}['_supportLegacySuggestions'](){const _0x525614=this['editor'],_0x5d797d=_0x525614['locale'],_0x4b87bb=_0x525614['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4b87bb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x32557d,_0x4b8196){const _0xd7c3f6=[];for(let _0x543e55 of _0x32557d)_0x543e55['start']['nodeAfter']===_0x543e55['end']['parent']&&(_0x543e55=_0x525614['model']['createRange'](_0x525614['model']['createPositionAt'](_0x543e55['start']['nodeAfter'],0x0))),_0xd7c3f6['push'](_0x543e55);_0x525614['model']['change'](_0x54107a=>{const _0x441bce=_0x525614['model']['document']['selection'],_0xf58306=Array['from'](_0x441bce['getRanges']())['map'](_0x10a6de=>_0x20b456['fromRange'](_0x10a6de));_0x54107a['setSelection'](_0xd7c3f6),_0x525614['commands']['get'](_0x4b8196['commandName'])['refresh'](),_0x4b8196['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x525614['execute'](_0x4b8196['commandName'],..._0x4b8196['commandParams']),_0x54107a['setSelection'](_0xf58306);for(const _0x2cb6c8 of _0xf58306)_0x2cb6c8['detach']();});}),_0x4b87bb['descriptionFactory']['registerElementLabel'](function(_0x5cee76){const _0x3c877c=!_0x525614['model']['schema']['isObject'](_0x5cee76),_0x572039=_0x5cee76['previousSibling'],_0x22e340=_0x5cee76['nextSibling'],_0x4370b2=_0x5cee76['getAttribute']('listItemId'),_0x51366b=!_0x572039||_0x572039['getAttribute']('listItemId')!==_0x4370b2,_0x5e744f=!_0x22e340||_0x22e340['getAttribute']('listItemId')!==_0x4370b2;return _0x3c877c&&Boolean(_0x4370b2)&&_0x51366b&&_0x5e744f;},_0x1da664=>o(_0x5d797d,'ELEMENT_LIST_ITEM',_0x1da664));}['_registerLegacyDescription'](){const _0x2861d5=this['editor'],_0x293471=_0x2861d5['locale'];function _0xa9c197(_0x4ee490){const _0x5def60=_0x2861d5['commands']['get']('bulletedList')['value'],_0x168154=_0x2861d5['commands']['get']('numberedList')['value'];return'numberedList'===_0x4ee490?_0x5def60:_0x168154;}_0x2861d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1d7e4b){if('formatBlock'!=_0x1d7e4b['type'])return;const {data:_0x27a45a}=_0x1d7e4b;if(!_0x27a45a)return;let _0x1c2543,_0x318660,_0x92e914,_0x5397ea;switch(_0x27a45a['commandName']){case'bulletedList':_0x92e914=_0x27a45a['commandParams'][0x0]['forceValue'],_0x5397ea=_0xa9c197(_0x27a45a['commandName']),_0x1c2543=_0x92e914?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5397ea&&_0x2861d5['config']['get']('list.multiBlock')||(_0x1c2543='*Change\x20to:*\x20%0'),_0x318660={'type':'format','content':o(_0x293471,_0x1c2543,o(_0x293471,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x92e914=_0x27a45a['commandParams'][0x0]['forceValue'],_0x5397ea=_0xa9c197(_0x27a45a['commandName']),_0x1c2543=_0x92e914?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5397ea&&_0x2861d5['config']['get']('list.multiBlock')||(_0x1c2543='*Change\x20to:*\x20%0'),_0x318660={'type':'format','content':o(_0x293471,_0x1c2543,o(_0x293471,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1c2543='*Indent:*\x20%0',_0x318660={'type':'format','content':o(_0x293471,_0x1c2543,o(_0x293471,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1c2543=function(_0x527de1){const _0x523878=_0x527de1['getFirstRange']();let _0x421611=_0x523878['start']['nodeAfter'];for(;_0x421611&&_0x523878['containsItem'](_0x421611);){if(_0x421611['getAttribute']('listIndent')>0x0)return!0x1;_0x421611=_0x421611['nextSibling'];}return!0x0;}(_0x1d7e4b)?o(_0x293471,'*Format:*\x20remove\x20from\x20%0',o(_0x293471,function(_0x3ef2b3){return'ELEMENT_'+_0x3ef2b3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1d7e4b))):o(_0x293471,'*Outdent:*\x20%0',o(_0x293471,'ELEMENT_LIST_ITEM')),_0x318660={'type':'format','content':_0x1c2543};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x27a45a['multipleBlocks']&&(_0x1c2543='*Merge:*\x20%0',_0x318660={'type':'deletion','content':o(_0x293471,_0x1c2543,o(_0x293471,'ELEMENT_LIST_ITEM'))});}return _0x318660;});}}function Te(_0x267813){let _0x5dafcf=_0x267813['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5dafcf;){const _0x3affaa=_0x5dafcf['getAttribute']('listItemId');if(!_0x3affaa)return!0x1;if(_0x3affaa==_0x267813['data']['newValue'])return'newValue';if(_0x3affaa==_0x267813['data']['oldValue'])return'oldValue';_0x5dafcf=_0x5dafcf['previousSibling'];}return!0x1;}class q extends _0xccd55c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4a00b1=this['editor']['config']['get']('list.properties'),_0x38326b=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a00b1['styles']&&(_0x38326b['enableDefaultAttributesIntegration']('listStyle'),_0x38326b['registerBlockAttribute']('listStyle')),_0x4a00b1['reversed']&&(_0x38326b['enableDefaultAttributesIntegration']('listReversed'),_0x38326b['registerBlockAttribute']('listReversed')),_0x4a00b1['startIndex']&&(_0x38326b['enableDefaultAttributesIntegration']('listStart'),_0x38326b['registerBlockAttribute']('listStart'));const _0x4c0a26={'type':'format','content':''};_0x38326b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x262221=this['editor']['locale'];_0x38326b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x262221,'FORMAT_LIST_REVERSED')),_0x38326b['descriptionFactory']['registerDescriptionCallback'](_0x54ab7e=>{const {data:_0x2fffec}=_0x54ab7e;if(_0x2fffec&&'listReversed'==_0x2fffec['key'])return null==_0x2fffec['newValue']||0x0==_0x2fffec['newValue']&&null==_0x2fffec['oldValue']?_0x4c0a26:void 0x0;}),_0x38326b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x262221,'FORMAT_LIST_START')),_0x38326b['descriptionFactory']['registerDescriptionCallback'](_0x24db16=>{const {data:_0x347286}=_0x24db16;if(_0x347286&&'listStart'==_0x347286['key'])return null==_0x347286['newValue']||0x1==_0x347286['newValue']&&null==_0x347286['oldValue']?_0x4c0a26:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4bb68b=>{if(_0x4bb68b['batch']['isUndo'])return!0x1;let _0x3281ec=!0x1;const _0x338dd1=_0x38326b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4171e9=>{const _0x3eadc3=_0x38326b['_getAttributeKey'](_0x4171e9);return'listStart'==_0x3eadc3||'listReversed'==_0x3eadc3;});for(const _0x11caad of _0x338dd1){const _0x56c5c6=_0x11caad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x56c5c6||'customNumbered'==_0x56c5c6)continue;_0x38326b['_findSuggestions'](_0x11caad['getFirstRange'](),'attribute')['find'](_0x1a4086=>'listType'==_0x38326b['_getAttributeKey'](_0x1a4086['suggestion']))||(_0x4bb68b['removeMarker'](_0x11caad['getFirstMarker']()),_0x3281ec=!0x0);}return _0x3281ec;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x54bfcb){const _0xfdae30=this['editor']['locale'],{data:_0xcbca20}=_0x54bfcb,_0x2836ad={'type':'format','content':''};if(!_0xcbca20||'listStyle'!=_0xcbca20['key'])return;if(!_0xcbca20['oldValue'])return'default'==_0xcbca20['newValue']?_0x2836ad:{'type':'format','content':''+o(_0xfdae30,'*Set\x20format:*\x20%0',o(_0xfdae30,this['_getTranslationKeyForListStyle'](_0xcbca20['newValue'])))};if(!_0xcbca20['newValue']){if('default'==_0xcbca20['oldValue'])return _0x2836ad;let _0x5f18c6=_0x54bfcb['head'];for(;_0x5f18c6;){if(_0x5f18c6['data']&&'listType'==_0x5f18c6['data']['key']&&_0x5f18c6['data']['newValue'])return _0x2836ad;_0x5f18c6=_0x5f18c6['next'];}return{'type':'format','content':''+o(_0xfdae30,'*Remove\x20format:*\x20%0',o(_0xfdae30,this['_getTranslationKeyForListStyle'](_0xcbca20['oldValue'])))};}if('default'!=_0xcbca20['newValue'])return{'type':'format','content':''+o(_0xfdae30,'*Set\x20format:*\x20%0',o(_0xfdae30,this['_getTranslationKeyForListStyle'](_0xcbca20['newValue'])))};let _0x5aae80=_0x54bfcb['head'];for(;_0x5aae80;){if(_0x5aae80['data']&&'listType'==_0x5aae80['data']['key']&&_0x5aae80['data']['newValue']&&_0x5aae80['data']['oldValue'])return _0x2836ad;_0x5aae80=_0x5aae80['next'];}return{'type':'format','content':o(_0xfdae30,'*Set\x20format:*\x20%0',o(_0xfdae30,'ELEMENT_'+_0x54bfcb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4a9697=this['editor'],_0x319b35=_0x4a9697['locale'];_0x4a9697['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32e90b=>{if('formatBlock'!=_0x32e90b['type'])return;const {data:_0x1f8057}=_0x32e90b;if(!_0x1f8057)return;let _0x1cbc8b,_0x3eab06;switch(_0x1f8057['commandName']){case'listStyle':_0x1cbc8b='*Change\x20to:*\x20%0',_0x3eab06={'type':'format','content':o(_0x319b35,_0x1cbc8b,o(_0x319b35,this['_getTranslationKeyForListStyle'](_0x1f8057['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1cbc8b=_0x1f8057['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3eab06={'type':'format','content':o(_0x319b35,_0x1cbc8b)};break;case'listStart':_0x1cbc8b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3eab06={'type':'format','content':o(_0x319b35,_0x1cbc8b,_0x1f8057['commandParams'][0x0]['startIndex'])};}return _0x3eab06;});}['_getTranslationKeyForListStyle'](_0x21f677){return'ELEMENT_'+function(_0x72613d){if(Se['includes'](_0x72613d))return'bulleted';if(_e['includes'](_0x72613d))return'numbered';return null;}(_0x21f677)['toUpperCase']()+'_LIST_'+_0x21f677['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xccd55c{['afterInit'](){const _0x5bee76=this['editor'];_0x5bee76['commands']['get']('emoji')&&_0x5bee76['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xccd55c{static get['requires'](){return[_0x3d2f33];}['init'](){const _0x27b268=this['editor'],_0x3d238e=_0x27b268['plugins']['get']('TrackChangesEditing'),_0xd15ade=_0x27b268['commands']['get']('enter');_0x3d238e['enableCommand']('enter',()=>{_0x27b268['model']['change'](_0x4ae807=>{const _0xc8ab57=_0x27b268['model']['document']['selection'],_0x5f26a4=_0xc8ab57['getFirstPosition'](),_0x4d7928=_0x20b456['fromRange'](_0xc8ab57['getFirstRange']());if(_0xd15ade['enterBlock'](_0x4ae807)){const _0x35ce88=_0x27b268['model']['createPositionAt'](_0x5f26a4['parent']['nextSibling'],0x0),_0x2fecaf=_0x4ae807['createRange'](_0x5f26a4,_0x35ce88);_0x3d238e['markInsertion'](_0x2fecaf);}else _0x4ae807['setSelection'](_0x4ae807['createRange'](_0x4d7928['end']));_0x4d7928['detach'](),_0xd15ade['fire']('afterExecute',{'writer':_0x4ae807});});}),_0x27b268['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x27b268,'split'),{'priority':'high'}),_0x27b268['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2df25a,_0x51d8f2,_0x3e6136)=>{const _0x45ec9a=_0x3e6136['mapper']['markerNameToElements'](_0x51d8f2['markerName']);if(_0x45ec9a){for(const _0x190c3d of _0x45ec9a)_0x190c3d['hasClass']('ck-suggestion-marker-split')&&(_0x3e6136['mapper']['unbindElementFromMarkerName'](_0x190c3d,_0x51d8f2['markerName']),_0x3e6136['writer']['remove'](_0x190c3d));}},{'priority':'high'}),_0x27b268['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x40f999,_0x24a004,_0x43c0c1)=>{_0x43c0c1['options']['showSuggestionHighlights']&&De(_0x27b268,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x40f999,_0x24a004,_0x43c0c1);},{'priority':'high'});}}class Q extends _0xccd55c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3d7391=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d7391['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3d7391['enableCommand']('findNext'),_0x3d7391['enableCommand']('findPrevious'),_0x3d7391['enableCommand']('replace'),_0x3d7391['enableCommand']('replaceAll');}['handleFindCommand'](_0x34e6d2,_0x756ce1,_0x48a891={}){const _0x3aa309=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x34e6d2(_0x374be3=>{let _0x42c507=('string'==typeof _0x756ce1?_0x3aa309['findByTextCallback'](_0x756ce1,_0x48a891):_0x756ce1)(_0x374be3);Array['isArray'](_0x42c507)&&(_0x42c507={'results':_0x42c507,'searchText':'string'==typeof _0x756ce1?_0x756ce1:''});const _0x109d2f=_0x42c507['results']['filter'](_0x4ff628=>!0x1===this['_isInDeletionRange'](_0x4ff628,_0x374be3['item']));return{..._0x42c507,'results':_0x109d2f};},_0x48a891);}['_isInDeletionRange'](_0x50dfae,_0x5baacc){const _0x1553ab=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5baacc,_0x50dfae['start']),this['editor']['model']['createPositionAt'](_0x5baacc,_0x50dfae['end']));for(const _0x445382 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1553ab['getIntersection'](_0x445382['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xccd55c{['afterInit'](){const _0x575731=this['editor']['locale'],_0x2c76fb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4782f8,commandName:_0x26c394}of eo)this['editor']['plugins']['has'](_0x4782f8)&&(_0x2c76fb['enableDefaultAttributesIntegration'](_0x26c394),_0x2c76fb['registerInlineAttribute'](_0x26c394));_0x2c76fb['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x575731,'FORMAT_FONT_SIZE')),_0x2c76fb['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x575731,'FORMAT_FONT_FAMILY')),_0x2c76fb['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x575731,'FORMAT_FONT_COLOR')),_0x2c76fb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x575731,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb8f761=this['editor'],_0x2bfe49=_0xb8f761['locale'];_0xb8f761['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1abfca=>{const _0x270f0f=_0x2bfe49['t'];if('formatInline'!=_0x1abfca['type'])return;const {data:_0x44d0d1}=_0x1abfca;if(null!=_0x44d0d1){if('fontSize'==_0x44d0d1['commandName']){const _0x1b69d6=_0x44d0d1['commandParams'][0x0]['value'];if(_0x1b69d6){const _0x4b1ead=_0x270f0f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x332d7f=>_0x332d7f['model']==_0x1b69d6)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2bfe49,'*Set\x20font\x20size:*\x20%0',_0x4b1ead)};}return{'type':'format','content':o(_0x2bfe49,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x44d0d1['commandName']){const _0x54b651=_0x44d0d1['commandParams'][0x0]['value'];return _0x54b651?{'type':'format','content':o(_0x2bfe49,'*Set\x20font\x20family:*\x20%0',_0x54b651)}:{'type':'format','content':o(_0x2bfe49,'*Reset\x20font\x20family*')};}if('fontColor'==_0x44d0d1['commandName']){const _0x537afb=_0x44d0d1['commandParams'][0x0]['value'];if(_0x537afb){const _0x56022f=_0x514438(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5d146e=>_0x5d146e['model']==_0x537afb);let _0x164519=_0x537afb,_0x3ca556='';return _0x56022f&&(_0x164519=_0x56022f['label'],_0x3ca556=_0x270f0f(_0x164519)['toLowerCase']()),{'type':'format','content':o(_0x2bfe49,'*Set\x20font\x20color:*\x20%0',_0x3ca556)['trim'](),'color':{'value':_0x537afb,'title':_0x3ca556||_0x164519}};}return{'type':'format','content':o(_0x2bfe49,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x44d0d1['commandName']){const _0x5e0471=_0x44d0d1['commandParams'][0x0]['value'];if(_0x5e0471){const _0x3cd9f0=_0x514438(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x48c2e5=>_0x48c2e5['model']==_0x5e0471);let _0x5e2747=_0x5e0471,_0x2ee3a8='';return _0x3cd9f0&&(_0x5e2747=_0x3cd9f0['label'],_0x2ee3a8=_0x270f0f(_0x5e2747)['toLowerCase']()),{'type':'format','content':o(_0x2bfe49,'*Set\x20font\x20background\x20color:*\x20%0',_0x2ee3a8)['trim'](),'color':{'value':_0x5e0471,'title':_0x2ee3a8||_0x5e2747}};}return{'type':'format','content':o(_0x2bfe49,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xccd55c{['afterInit'](){const _0x7b35dd=this['editor'],_0x237107=_0x7b35dd['plugins']['get']('TrackChangesEditing'),_0x29d842=_0x7b35dd['commands']['get']('copyFormat'),_0x2e9bde=_0x7b35dd['commands']['get']('pasteFormat');_0x29d842&&_0x2e9bde&&(_0x237107['enableDefaultAttributesIntegration']('pasteFormat'),_0x237107['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2e8f85=this['editor'],_0x1f7141=_0x2e8f85['locale'];_0x2e8f85['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b2f70=>{if('formatBlock'!=_0x3b2f70['type']&&'formatInline'!=_0x3b2f70['type'])return;const {data:_0x227257}=_0x3b2f70;if(_0x227257&&'pasteFormat'===_0x227257['commandName']){const _0x4c240f=[],_0x183bca=_0x227257['commandParams'][0x0];for(const [_0x4b7c44,_0xc3cb24]of Object['entries'](_0x183bca))_0x4c240f['push'](ro(_0x2e8f85,_0x4b7c44,_0xc3cb24));return _0x4c240f['length']?{'type':'format','content':o(_0x1f7141,'*Set\x20format\x20to:*\x20%0',_0x4c240f['join'](',\x20'))}:{'type':'format','content':o(_0x1f7141,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x344f20,_0x3c49a7,_0x423806){const _0x6814df=_0x344f20['locale']['t'],_0x72c152=_0x3c49a7['split'](/(?=[A-Z])/)['join']('\x20'),_0xbb81c5=_0x6814df(_0x72c152['charAt'](0x0)['toUpperCase']()+_0x72c152['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x423806)return _0xbb81c5;if('fontColor'===_0x3c49a7||'fontBackgroundColor'===_0x3c49a7){const _0x1a1100=_0x514438(_0x344f20['config']['get']('fontColor.colors'))['find'](_0x5a7550=>_0x5a7550['model']==_0x423806);return _0xbb81c5+'\x20('+(_0x1a1100?_0x6814df(_0x1a1100['label'])['toLowerCase']():_0x423806)+')';}if('fontSize'===_0x3c49a7&&isNaN(parseFloat(_0x423806))){const _0x23a8d3=_0x344f20['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x344f20['config']['get']('fontSize.options'))['find'](_0xa8ee11=>_0xa8ee11['model']==_0x423806);return _0xbb81c5+'\x20('+(_0x23a8d3?_0x6814df(_0x23a8d3['title'])['toLowerCase']():_0x423806)+')';}return _0xbb81c5+'\x20('+_0x423806+')';}class Z extends _0xccd55c{['_headingOptions'];['afterInit'](){const _0x1e6cac=this['editor'];if(!_0x1e6cac['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1e6cac['config']['get']('heading.options');const _0x1d5e75=_0x1e6cac['locale'],_0x518955=_0x1e6cac['plugins']['get']('TrackChangesEditing');_0x518955['enableDefaultAttributesIntegration']('heading');for(const _0x403bc5 of this['_headingOptions'])'paragraph'!=_0x403bc5['model']&&_0x518955['descriptionFactory']['registerElementLabel'](_0x403bc5['model'],_0x17ed1a=>{const _0x3a3a1e=this['_getHeadingLevel'](_0x403bc5['model']);return null!==_0x3a3a1e?_0x2d014d(_0x17ed1a,_0x3a3a1e):_0x55a1d8(_0x17ed1a,_0x403bc5['title']);});function _0x2d014d(_0x3fd294,_0x4de926){return o(_0x1d5e75,'ELEMENT_HEADING',[_0x3fd294,_0x4de926]);}function _0x55a1d8(_0x255b74,_0x513a67){return o(_0x1d5e75,'ELEMENT_HEADING_CUSTOM',[_0x255b74,_0x513a67]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11d05d=this['editor'],_0x5a9eee=_0x11d05d['locale'];function _0x1750cf(_0x21e044,_0x295f86){return o(_0x5a9eee,'ELEMENT_HEADING_CUSTOM',[_0x21e044,_0x295f86]);}_0x11d05d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x247369=>{if('formatBlock'!=_0x247369['type'])return;const {data:_0x35d8d7}=_0x247369;if(_0x35d8d7&&'heading'==_0x35d8d7['commandName']){const _0x5532dc=_0x35d8d7['commandParams'][0x0]['value'],_0x452b10=this['_getHeadingLevel'](_0x5532dc);if(null!==_0x452b10)return{'type':'format','content':o(_0x5a9eee,'*Change\x20to:*\x20%0',(_0x2ecb34=0x1,_0x146c1a=_0x452b10,o(_0x5a9eee,'ELEMENT_HEADING',[_0x2ecb34,_0x146c1a])))};const _0x4f14a1=this['_headingOptions']['find'](_0x441238=>_0x441238['model']===_0x5532dc)['title'];return{'type':'format','content':o(_0x5a9eee,'*Change\x20to:*\x20%0',_0x1750cf(0x1,_0x4f14a1))};}var _0x2ecb34,_0x146c1a;});}['_getHeadingLevel'](_0x5c9345){const _0x5e85f6=_0x5c9345['match'](/^heading(\d+)/);if(_0x5e85f6)return _0x5e85f6[0x1];const _0x3bff3b=this['_headingOptions']?.['find'](_0x1e6507=>_0x1e6507['model']==_0x5c9345);if(_0x3bff3b&&_0x3bff3b['view']){const _0x30477c=_0x3bff3b['view'],_0x5aa033=(_0x30477c['name']??_0x30477c)['match'](/^h(\d+)/);if(_0x5aa033)return _0x5aa033[0x1];}return null;}}class tt extends _0xccd55c{['afterInit'](){const _0x419e8f=this['editor'];if(!_0x419e8f['plugins']['has']('HighlightEditing'))return;const _0x4e04cf=_0x419e8f['plugins']['get']('TrackChangesEditing'),_0x29f1b9=_0x419e8f['locale'];_0x4e04cf['enableDefaultAttributesIntegration']('highlight'),_0x4e04cf['registerInlineAttribute']('highlight'),_0x4e04cf['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x29f1b9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dd034=this['editor'],_0x2fb304=_0x1dd034['locale'];_0x1dd034['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x202b98=>{if('formatInline'!=_0x202b98['type'])return;const {data:_0x3d8654}=_0x202b98;if(_0x3d8654&&'highlight'==_0x3d8654['commandName']){const _0xa358c4=_0x2fb304['t'],_0x267175=_0x3d8654['commandParams'][0x0]['value'];if(_0x267175){const _0x4bfdf8=_0x1dd034['config']['get']('highlight.options')['find'](_0x3a6b04=>_0x3a6b04['model']==_0x267175),_0x20b728=_0xa358c4(_0x4bfdf8['title'])['toLowerCase']();return{'type':'format','content':o(_0x2fb304,'*Set\x20highlight:*\x20%0',_0x20b728),'color':{'value':_0x4bfdf8['color'],'title':_0x4bfdf8['title']}};}return{'type':'format','content':o(_0x2fb304,'*Remove\x20highlight*',o(_0x2fb304,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xccd55c{['afterInit'](){const _0xd2149c=this['editor'];if(!_0xd2149c['plugins']['has']('HorizontalLineEditing'))return;_0xd2149c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x420234=_0xd2149c['plugins']['get']('TrackChangesEditing'),_0x36d8e5=_0xd2149c['locale'];_0x420234['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5e8be8=>o(_0x36d8e5,'ELEMENT_HORIZONTAL_LINE',_0x5e8be8)),_0xd2149c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3a6a8f,{writer:_0x5c9cbb,options:_0x2950f2})=>{if(!_0x2950f2['showSuggestionHighlights'])return null;const _0x48a7fb=_0x5c9cbb['createContainerElement']('div'),_0x5d889d=_0x5c9cbb['createEmptyElement']('hr');return _0x5c9cbb['addClass']('ck-horizontal-line',_0x48a7fb),_0x5c9cbb['insert'](_0x5c9cbb['createPositionAt'](_0x48a7fb,0x0),_0x5d889d),_0x48a7fb;},'converterPriority':'high'});}}class nt extends _0xccd55c{['afterInit'](){const _0x1b3cad=this['editor'];if(!_0x1b3cad['plugins']['has']('HtmlEmbed'))return;const _0xa30bbe=_0x1b3cad['plugins']['get']('TrackChangesEditing'),_0x180347=_0x1b3cad['locale'];_0xa30bbe['descriptionFactory']['registerElementLabel']('rawHtml',_0xd82d5d=>o(_0x180347,'ELEMENT_HTML_EMBED',_0xd82d5d)),_0xa30bbe['enableDefaultAttributesIntegration']('htmlEmbed'),_0xa30bbe['registerBlockAttribute']('value'),_0xa30bbe['descriptionFactory']['registerDescriptionCallback'](_0x44a491=>{if('attribute'!=_0x44a491['type'])return;const {data:_0x2136a5}=_0x44a491;if(_0x2136a5&&'value'==_0x2136a5['key']&&_0x44a491['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3934d4=o(_0x180347,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x180347,'*Change\x20%0\x20content*',_0x3934d4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x250078=this['editor'],_0x2a006d=_0x250078['locale'];_0x250078['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf96f8f=>{if('formatBlock'!=_0xf96f8f['type'])return;const {data:_0x5e4755}=_0xf96f8f;if(_0x5e4755&&'htmlEmbed'==_0x5e4755['commandName']){const _0x5d8bf6=o(_0x2a006d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2a006d,'*Change\x20%0\x20content*',_0x5d8bf6)};}});}}class et extends _0xccd55c{['afterInit'](){const _0x1e0138=this['editor'];if(!_0x1e0138['plugins']['has']('ImageEditing'))return;const _0x5e4100=_0x1e0138['plugins']['get']('TrackChangesEditing'),_0x3e43c1=_0x1e0138['plugins']['get']('ImageUtils'),_0x273294=_0x1e0138['locale'];_0x5e4100['enableCommand']('insertImage'),_0x5e4100['descriptionFactory']['registerElementLabel']('imageBlock',_0xeafc2c=>o(_0x273294,'ELEMENT_IMAGE',_0xeafc2c)),_0x5e4100['descriptionFactory']['registerElementLabel']('imageInline',_0x5612f9=>o(_0x273294,'ELEMENT_INLINE_IMAGE',_0x5612f9)),_0x5e4100['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x273294,'ELEMENT_CAPTION')),_0x1e0138['plugins']['has']('ImageUploadEditing')&&_0x5e4100['enableCommand']('uploadImage'),_0x1e0138['plugins']['has']('ImageBlockEditing')&&_0x1e0138['plugins']['has']('ImageInlineEditing')&&(_0x5e4100['enableCommand']('imageTypeInline',(_0x35e9be,_0x879ce4)=>{const _0x45ce03=_0x3e43c1['getClosestSelectedImageElement'](_0x1e0138['model']['document']['selection']);_0x1e0138['model']['change'](()=>{_0x5e4100['markBlockFormat'](_0x45ce03,{'commandName':'imageTypeInline','commandParams':[_0x879ce4]},[],'convertBlockImageToInline');});}),_0x5e4100['enableCommand']('imageTypeBlock',(_0x44c51a,_0x2c3b8b)=>{_0x1e0138['model']['change'](_0x3c0f86=>{let _0x1e6002=_0x3e43c1['getClosestSelectedImageElement'](_0x1e0138['model']['document']['selection']),_0x482056=_0x3c0f86['createRangeOn'](_0x1e6002);const _0x32360c=_0x26ff4e['fromPosition'](_0x482056['start'],'toPrevious'),_0x3396ad=_0x26ff4e['fromPosition'](_0x482056['end'],'toNext');_0x5e4100['forceDefaultExecution'](()=>_0x44c51a(_0x2c3b8b)),_0x1e6002=_0x3e43c1['getClosestSelectedImageElement'](_0x1e0138['model']['document']['selection']),_0x482056=_0x3c0f86['createRangeOn'](_0x1e6002);const _0x4349ce=_0x3c0f86['createRange'](_0x32360c,_0x3396ad);_0x32360c['detach'](),_0x3396ad['detach'](),_0x5e4100['markBlockFormat'](_0x1e6002,{'commandName':'imageTypeInline','commandParams':[_0x2c3b8b]},[],'convertInlineImageToBlock'),_0x4349ce['start']['isBefore'](_0x482056['start'])&&_0x5e4100['markInsertion'](_0x3c0f86['createRange'](_0x4349ce['start'],_0x482056['start']),'convertInlineImageToBlock'),_0x482056['end']['isBefore'](_0x4349ce['end'])&&_0x5e4100['markInsertion'](_0x3c0f86['createRange'](_0x482056['end'],_0x4349ce['end']),'convertInlineImageToBlock');});}),_0x5e4100['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5e4100['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5e4100['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5e4100['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5e4100['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5e4100['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x40d5b5])=>{const _0xf50a32=_0x5e4100['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x32c067=_0x40d5b5['start'],_0x2d80da=_0x40d5b5['end'];const _0x44bcd8=_0x1e0138['model']['schema']['getNearestSelectionRange'](_0x32c067,'backward'),_0x21400e=_0x1e0138['model']['schema']['getNearestSelectionRange'](_0x2d80da,'forward');_0x44bcd8['isCollapsed']&&(_0x32c067=_0x44bcd8['start']),_0x21400e['isCollapsed']&&(_0x2d80da=_0x21400e['end']),_0xf50a32([_0x1e0138['model']['createRange'](_0x32c067,_0x2d80da)]);}),_0x5e4100['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x15c4f2),_0x5e4100['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x15c4f2)),_0x1e0138['plugins']['has']('ImageCaptionEditing')&&(_0x5e4100['enableCommand']('toggleImageCaption',(_0x40885f,_0x1508a7)=>{const _0x1a6d03=_0x1e0138['plugins']['get']('ImageCaptionUtils');let _0x41377c=_0x3e43c1['getClosestSelectedImageElement'](_0x1e0138['model']['document']['selection']),_0x3ebfbd=_0x1a6d03['getCaptionFromImageModelElement'](_0x41377c);_0x1e0138['model']['change'](()=>{if(_0x3ebfbd)return void _0x5e4100['markDeletion'](_0x1e0138['model']['createRangeOn'](_0x3ebfbd));const _0x441319=_0x3e43c1['isBlockImage'](_0x41377c);_0x40885f(_0x1508a7),_0x41377c=_0x3e43c1['getClosestSelectedImageElement'](_0x1e0138['model']['document']['selection']),_0x3ebfbd=_0x1a6d03['getCaptionFromImageModelElement'](_0x41377c),_0x5e4100['markInsertion'](_0x1e0138['model']['createRangeOn'](_0x3ebfbd),_0x441319?null:'imageCaption');});}),_0x5e4100['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x15c4f2));const _0x15ba66=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xcdc3a6(_0x3a94a8,_0x1257b5){const _0x5df363=_0x15ba66['findIndex'](({type:_0x2f4c3f,subType:_0x20fc20})=>_0x3a94a8['type']==_0x2f4c3f&&_0x3a94a8['subType']==_0x20fc20),_0x280d58=_0x15ba66['findIndex'](({type:_0x341b97,subType:_0x5438a5})=>_0x1257b5['type']==_0x341b97&&_0x1257b5['subType']==_0x5438a5);if(_0x5df363<0x0||_0x280d58<0x0)return!0x1;const _0x27cf33=_0x3a94a8['getFirstRange'](),_0x38bae3=_0x1257b5['getFirstRange']();if((0x0==_0x5df363||0x1==_0x5df363)&&0x2==_0x280d58&&_0x27cf33['isIntersecting'](_0x38bae3))return!0x0;if(0x2==_0x5df363&&0x3==_0x280d58){const _0x4bed51=_0x5e4100['_findSuggestions'](_0x27cf33,'insertion')['filter'](({suggestion:_0x9c0f47,meta:_0x59968a})=>_0x59968a['isOwn']&&'convertInlineImageToBlock'==_0x9c0f47['subType']);if(_0x4bed51['length']>0x1&&_0x38bae3['end']['isEqual'](_0x27cf33['start']))return!0x0;if(0x1==_0x4bed51['length']&&(_0x27cf33['start']['isEqual'](_0x38bae3['end'])||_0x27cf33['end']['isEqual'](_0x38bae3['start'])))return!0x0;}if(0x3==_0x5df363&&0x3==_0x280d58&&_0x27cf33['start']['isBefore'](_0x38bae3['start'])){const _0x3f481e=_0x27cf33['end']['nodeAfter'],_0x219f50=_0x38bae3['start']['nodeBefore'];return _0x3e43c1['isBlockImage'](_0x3f481e)&&_0x3f481e===_0x219f50;}return!0x1;}function _0x15c4f2(_0x5b2e11,_0x5a9691){return _0xcdc3a6(_0x5b2e11,_0x5a9691)?[_0x5b2e11,_0x5a9691]:_0xcdc3a6(_0x5a9691,_0x5b2e11)?[_0x5a9691,_0x5b2e11]:null;}_0x1e0138['plugins']['has']('ImageResize')&&(_0x5e4100['enableDefaultAttributesIntegration']('resizeImage'),_0x5e4100['registerBlockAttribute']('resizedWidth'),_0x5e4100['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x273294,'FORMAT_IMAGE_SIZE'))),_0x1e0138['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5e4100['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5e4100['registerBlockAttribute']('alt')),_0x1e0138['plugins']['has']('PictureEditing')&&(_0x5e4100['registerBlockAttribute']('sources'),_0x5e4100['descriptionFactory']['registerDescriptionCallback'](_0x51063b=>{if('attribute'!=_0x51063b['type'])return;const {data:_0x3038ff}=_0x51063b;return _0x3038ff&&'sources'==_0x3038ff['key']?{'type':'format','content':''}:void 0x0;})),_0x1e0138['plugins']['has']('ImageSizeAttributes')&&(_0x5e4100['registerBlockAttribute']('width'),_0x5e4100['registerBlockAttribute']('height'),_0x5e4100['descriptionFactory']['registerDescriptionCallback'](_0x3ae469=>{if('attribute'!=_0x3ae469['type'])return;const {data:_0x14696e}=_0x3ae469;return!_0x14696e||'width'!=_0x14696e['key']&&'height'!=_0x14696e['key']?void 0x0:{'type':'format','content':''};})),_0x5e4100['descriptionFactory']['registerDescriptionCallback'](_0x475905=>{if(!!_0x15ba66['find'](({type:_0x1d49f5,subType:_0x2bf5ea})=>_0x475905['type']==_0x1d49f5&&_0x475905['subType']==_0x2bf5ea))return _0x475905['previous']?{}:void 0x0;}),_0x5e4100['descriptionFactory']['registerDescriptionCallback'](_0x5a4298=>{if('insertion'==_0x5a4298['type']||'deletion'==_0x5a4298['type']){const _0x5673fa=_0x5a4298['getContainedElement']();if(_0x5673fa&&_0x5673fa['is']('element','caption'))return{'type':'insertion'==_0x5a4298['type']?'addObject':'removeObject','element':_0x5673fa,'quantity':0x1};}}),_0x5e4100['descriptionFactory']['registerDescriptionCallback'](_0x429aec=>'formatBlock'==_0x429aec['type']&&'convertInlineImageToBlock'==_0x429aec['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x429aec['type']&&'convertBlockImageToInline'==_0x429aec['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5e4100['descriptionFactory']['registerDescriptionCallback'](_0x5c8a7c=>{if('attribute'!=_0x5c8a7c['type'])return;const {data:_0x24efb3}=_0x5c8a7c;if(!_0x24efb3||'alt'!=_0x24efb3['key'])return;const _0x103720=_0x24efb3['newValue'];return _0x103720?{'type':'format','content':o(_0x273294,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x103720+'\x22')}:{'type':'format','content':o(_0x273294,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15bc64=this['editor'],_0xd17b72=_0x15bc64['locale'];_0x15bc64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fb166=>{if('formatBlock'!=_0x2fb166['type']&&'formatInline'!=_0x2fb166['type'])return;const {data:_0x1a80e2}=_0x2fb166;if(_0x1a80e2){if('imageTextAlternative'==_0x1a80e2['commandName']){const _0x24a43b=_0x1a80e2['commandParams'][0x0]['newValue'];return _0x24a43b?{'type':'format','content':o(_0xd17b72,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x24a43b+'\x22')}:{'type':'format','content':o(_0xd17b72,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1a80e2['commandName']){const _0x3ad958=_0x1a80e2['commandParams'][0x0]['width'];return _0x3ad958?{'type':'format','content':o(_0xd17b72,'*Set\x20image\x20width:*\x20%0',_0x3ad958)}:{'type':'format','content':o(_0xd17b72,'*Reset\x20image\x20width*')};}}});}}class st extends _0xccd55c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x347ad3=this['editor']['locale'],_0x5bd262=this['editor']['plugins']['get']('TrackChangesEditing');_0x5bd262['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5bd262['registerBlockAttribute']('src'),_0x5bd262['descriptionFactory']['registerDescriptionCallback'](_0x5337c9=>{if('attribute'!=_0x5337c9['type'])return;const {data:_0xd636b}=_0x5337c9;return _0xd636b&&'src'==_0xd636b['key']?_0xd636b['newValue']&&_0xd636b['oldValue']?{'type':'format','content':o(_0x347ad3,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x145f2b=this['editor']['plugins']['get']('TrackChangesEditing');_0x145f2b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x145f2b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x145f2b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x145f2b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f328=this['editor'],_0x26921c=_0x2f328['locale'];_0x2f328['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cd84d=>{if('formatBlock'!=_0x3cd84d['type']&&'formatInline'!=_0x3cd84d['type'])return;const {data:_0x2298d0}=_0x3cd84d;if(!_0x2298d0||'replaceImageSource'!=_0x2298d0['commandName'])return;return{'type':'format','content':o(_0x26921c,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xccd55c{['afterInit'](){const _0x1c26f3=this['editor'];if(!_0x1c26f3['plugins']['has']('ImageStyleEditing'))return;const _0x2aa3a4=_0x1c26f3['plugins']['get']('TrackChangesEditing'),_0x2c2662=_0x1c26f3['plugins']['get']('ImageUtils'),_0x408660={};_0x2aa3a4['enableCommand']('imageStyle',(_0x4a2ad8,_0x5e7c47)=>{const _0x4ade59=_0x1c26f3['plugins']['get']('Users')['me'],_0x2fcb51=_0x1c26f3['commands']['get']('imageStyle');let _0x30f212=_0x2c2662['getClosestSelectedImageElement'](_0x1c26f3['model']['document']['selection']),_0x3c41ec=_0x1c26f3['model']['createRangeOn'](_0x30f212),_0x2a6e84=_0x2fcb51['value'];if(_0x2a6e84==_0x5e7c47['value'])return;const _0x47a4a3={'commandName':'imageStyle','commandParams':[_0x5e7c47],'formatGroupId':_0x427844()};_0x1c26f3['model']['change'](()=>{if(_0x2aa3a4['getSuggestions']()['filter'](_0x5a7083=>_0x5a7083['isInContent']&&_0x4ade59==_0x5a7083['author']&&('formatBlock'==_0x5a7083['type']||'formatInline'==_0x5a7083['type'])&&('imageStylePreApply'==_0x5a7083['subType']||'imageStylePostApply'==_0x5a7083['subType'])&&_0x5a7083['getFirstRange']()['isEqual'](_0x3c41ec))['forEach'](_0x47f2fb=>_0x2aa3a4['discardSuggestion'](_0x47f2fb['head'])),_0x30f212=_0x2c2662['getClosestSelectedImageElement'](_0x1c26f3['model']['document']['selection']),_0x3c41ec=_0x1c26f3['model']['createRangeOn'](_0x30f212),_0x2fcb51['refresh'](),_0x1c26f3['commands']['get']('imageTypeInline')['refresh'](),_0x1c26f3['commands']['get']('imageTypeBlock')['refresh'](),_0x2a6e84=_0x2fcb51['value'],_0x2a6e84!=_0x5e7c47['value'])return _0x2c2662['isInlineImage'](_0x30f212)&&_0x2fcb51['shouldConvertImageType'](_0x5e7c47['value'],_0x30f212)?(_0x4a2ad8({..._0x5e7c47,'setImageSizes':!0x1}),_0x30f212=_0x2c2662['getClosestSelectedImageElement'](_0x1c26f3['model']['document']['selection']),void _0x2aa3a4['markBlockFormat'](_0x30f212,{..._0x47a4a3,'commandReversedParams':[{'value':_0x2a6e84||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c2662['isBlockImage'](_0x30f212)?_0x2aa3a4['markBlockFormat'](_0x30f212,_0x47a4a3,[],'imageStylePostApply'):_0x2aa3a4['markInlineFormat'](_0x3c41ec,_0x47a4a3,'imageStylePostApply'));});});for(const _0x17f4a6 of _0x1c26f3['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x408660[_0x17f4a6['name']]=_0x17f4a6['title']['toLowerCase']();_0x2aa3a4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2aa3a4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2aa3a4['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2aa3a4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3865f3])=>{_0x2c2662['setImageNaturalSizeAttributes'](_0x3865f3['getContainedElement']());}),_0x2aa3a4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x15cfac,_0x2dfebf)=>{_0x2aa3a4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x15cfac,{'commandName':_0x2dfebf['commandName'],'commandParams':_0x2dfebf['commandReversedParams']});}),_0x2aa3a4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x58e424,_0x35a947){if(_0x5883d2(_0x58e424,_0x35a947))return[_0x58e424,_0x35a947];if(_0x5883d2(_0x35a947,_0x58e424))return[_0x35a947,_0x58e424];return null;});const _0xc38196=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5883d2(_0x4aa3be,_0x16b173){const _0x149b2f=_0xc38196['findIndex'](({type:_0x3742d0,subType:_0x4d1681})=>_0x4aa3be['type']==_0x3742d0&&_0x4aa3be['subType']==_0x4d1681),_0x275627=_0xc38196['findIndex'](({type:_0x69a758,subType:_0x12bcab})=>_0x16b173['type']==_0x69a758&&_0x16b173['subType']==_0x12bcab);if(_0x149b2f<0x0||_0x275627<0x0)return!0x1;const _0x25d0f2=_0x4aa3be['getFirstRange'](),_0x3340a3=_0x16b173['getFirstRange']();if((0x0==_0x149b2f||0x1==_0x149b2f)&&0x2==_0x275627&&_0x25d0f2['isIntersecting'](_0x3340a3))return!0x0;if(0x2==_0x149b2f&&0x3==_0x275627){const _0x32d4fa=_0x2aa3a4['_findSuggestions'](_0x25d0f2,'insertion')['filter'](({suggestion:_0x4e4e77,meta:_0x1393d7})=>_0x1393d7['isOwn']&&'convertInlineImageToBlock'==_0x4e4e77['subType']);if(_0x32d4fa['length']>0x1&&_0x3340a3['end']['isEqual'](_0x25d0f2['start']))return!0x0;if(0x1==_0x32d4fa['length']&&(_0x25d0f2['start']['isEqual'](_0x3340a3['end'])||_0x25d0f2['end']['isEqual'](_0x3340a3['start'])))return!0x0;}if(0x3==_0x149b2f&&0x3==_0x275627&&_0x25d0f2['start']['isBefore'](_0x3340a3['start'])){const _0x3f8e19=_0x25d0f2['end']['nodeAfter'],_0xb3bd8b=_0x3340a3['start']['nodeBefore'];return _0x2c2662['isBlockImage'](_0x3f8e19)&&_0x3f8e19===_0xb3bd8b;}return!0x1;}_0x1c26f3['model']['document']['registerPostFixer'](()=>{let _0x55bc18=!0x1;const _0x609fbb=Array['from'](_0x1c26f3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13e0a4,data:_0x356cb7}of _0x609fbb){const {group:_0x3f4743,type:_0x21c3f2,subType:_0x44b35f,id:_0x455ac7}=_0x2aa3a4['_splitMarkerName'](_0x13e0a4);if('suggestion'==_0x3f4743&&_0x2aa3a4['hasSuggestion'](_0x455ac7)){if('formatBlock'==_0x21c3f2&&('imageStylePreApply'==_0x44b35f||'imageStylePostApply'==_0x44b35f)){const _0x20d973=_0x2aa3a4['getSuggestion'](_0x455ac7);if(_0x356cb7['newRange']){const _0x536da1=_0x20d973['getFirstRange']()['getContainedElement']();if(_0x2c2662['isBlockImage'](_0x536da1))continue;_0x2aa3a4['discardSuggestion'](_0x20d973),_0x55bc18=!0x0;}}if('insertion'==_0x21c3f2&&'imageCaption'==_0x44b35f&&!_0x356cb7['newRange']){const _0x5786c4=_0x2aa3a4['getSuggestion'](_0x455ac7);_0x5786c4['next']&&_0x5786c4['next']['isInContent']&&(_0x2aa3a4['discardSuggestion'](_0x5786c4['next']),_0x55bc18=!0x0);}}}return _0x55bc18;}),this['_registerLegacyDescription'](_0x408660);}['_registerLegacyDescription'](_0x1adaf4){const _0x107a17=this['editor'],_0x3ed002=_0x107a17['locale'];_0x107a17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6600cd=>{if('formatBlock'!=_0x6600cd['type']&&'formatInline'!=_0x6600cd['type'])return;const {data:_0x4beaf2}=_0x6600cd;if(!_0x4beaf2||'imageStyle'!=_0x4beaf2['commandName'])return;const _0x1a9933=_0x4beaf2['commandParams'][0x0]['value'];return _0x24f63d('side'===_0x1a9933?o(_0x3ed002,'FORMAT_SIDE_IMAGE'):_0x1adaf4[_0x1a9933]||_0x1a9933);function _0x24f63d(_0x1dcada){return{'type':'format','content':o(_0x3ed002,'*Format:*\x20%0',_0x1dcada)};}});}}class rt extends _0xccd55c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5e0d5d){super(_0x5e0d5d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3f6c0e=this['editor'],_0x1a40f6=_0x3f6c0e['commands']['get']('importWord'),_0x9ce28e=_0x3f6c0e['commands']['get']('trackChanges');_0x1a40f6&&(_0x1a40f6['on']('execute',(_0x4dc8ff,[,_0x3031aa])=>{this['_trackChangesValueDuringImport']=_0x9ce28e['value'],_0x3031aa['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1a40f6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1a40f6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x9ce28e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3f6c0e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1cf512,_0x27437e){const {suggestions:_0x3f1edd}=_0x27437e,_0x58db6a=this['editor']['commands']['get']('trackChanges'),_0x53bce6=_0x58db6a['value'];this['_trackChangesValueDuringImport']!==_0x53bce6&&(_0x58db6a['execute'](),this['_trackChangesExecuted']=!0x0),_0x3f1edd&&_0x3f1edd['forEach'](({id:_0xa2de78,type:_0x3c648b,author:_0x2da383,created_at:_0x4eac44})=>{const _0x7583b5={'id':_0xa2de78,'type':_0x3c648b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2da383,'createdAt':_0x4eac44?new Date(_0x4eac44):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x7583b5);});}}class at extends _0xccd55c{['afterInit'](){const _0x4a69df=this['editor'],_0x479708=_0x4a69df['plugins']['get']('TrackChangesEditing');if(_0x4a69df['plugins']['has']('IndentEditing')&&(_0x479708['enableCommand']('indent'),_0x479708['enableCommand']('outdent')),_0x4a69df['plugins']['has']('IndentBlock')){for(const _0x38d7ed of['indentBlock','outdentBlock'])_0x479708['enableDefaultAttributesIntegration'](_0x38d7ed);}const _0x2d515d=_0x4a69df['locale'];_0x479708['registerBlockAttribute']('blockIndent'),_0x479708['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2d515d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20b18c=this['editor'],_0x57c6d0=_0x20b18c['locale'],_0x1ef728=_0x20b18c['plugins']['get']('TrackChangesEditing');_0x1ef728['descriptionFactory']['registerDescriptionCallback'](_0x1262b1=>{if('formatBlock'!=_0x1262b1['type'])return;const {data:_0x4b005e}=_0x1262b1;if(!_0x4b005e)return;if('indentBlock'!=_0x4b005e['commandName']&&'outdentBlock'!=_0x4b005e['commandName'])return;const _0x41bb01=_0x1262b1['getItems']()[0x0],_0x1c3d16=_0x1ef728['descriptionFactory']['getItemLabel'](_0x41bb01);return'indentBlock'==_0x4b005e['commandName']?{'type':'format','content':o(_0x57c6d0,'*Indent:*\x20%0',_0x1c3d16)}:'outdentBlock'==_0x4b005e['commandName']?{'type':'format','content':o(_0x57c6d0,'*Outdent:*\x20%0',_0x1c3d16)}:void 0x0;});}}class ct extends _0xccd55c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xccd55c{['afterInit'](){const _0x4b4cdc=this['editor'];if(!_0x4b4cdc['plugins']['has']('LinkEditing'))return;const _0xb70d91=_0x4b4cdc['plugins']['get']('TrackChangesEditing'),_0x203f60=_0x4b4cdc['commands']['get']('link');_0xb70d91['enableDefaultAttributesIntegration']('link'),_0xb70d91['enableDefaultAttributesIntegration']('unlink'),_0xb70d91['registerInlineAttribute']('linkHref');for(const _0x263655 of _0x203f60['manualDecorators'])_0xb70d91['registerInlineAttribute'](_0x263655['id']),_0xb70d91['descriptionFactory']['registerAttributeLabel'](_0x263655['id'],'link\x20('+_0x263655['label']['toLowerCase']()+')');_0xb70d91['descriptionFactory']['registerDescriptionCallback'](_0x51ab8c=>{if('attribute'!=_0x51ab8c['type'])return;const {data:_0x2b5431}=_0x51ab8c;if(!_0x2b5431||'linkHref'!=_0x2b5431['key'])return;const _0x46a52f=_0x2b5431['newValue'],_0x190830=_0x4b4cdc['locale'];return{'type':'format','content':null==_0x46a52f?o(_0x190830,'*Remove\x20link*'):o(_0x190830,'*Set\x20link:*\x20%0','\x22'+_0x46a52f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4695e2=this['editor'],_0x26a488=_0x4695e2['locale'];_0x4695e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f68fa=>{if('formatInline'!=_0x1f68fa['type'])return;const {data:_0x331cf2}=_0x1f68fa;if(_0x331cf2){if('link'==_0x331cf2['commandName']){const _0x4c4765=_0x331cf2['commandParams'][0x0];return{'type':'format','content':o(_0x26a488,'*Set\x20link:*\x20%0','\x22'+_0x4c4765+'\x22')};}return'unlink'==_0x331cf2['commandName']?{'type':'format','content':o(_0x26a488,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xccd55c{['afterInit'](){const _0x4a3897=this['editor'],_0x9bc8d9=_0x4a3897['locale'];if(!_0x4a3897['plugins']['has']('LegacyListEditing'))return;const _0x1d92f3=_0x4a3897['plugins']['get']('TrackChangesEditing'),_0x15b58f=_0x4a3897['plugins']['has']('LegacyTodoListEditing');function _0x1ff1dc(_0xfbd0c7){return()=>{const _0x175fda=_0x4a3897['model']['document']['selection'],_0x34ecb1=_0x4a3897['commands']['get'](_0xfbd0c7);if(_0x34ecb1['value'])return void _0x4a3897['execute']('paragraph',{});const _0xb7561e=_0xfbd0c7['slice'](0x0,-0x4),_0x14cfa5=function(_0x16494e,_0xaf4c4f,_0x440a2e){let _0x104236=Array['from'](_0x16494e)['filter'](_0x76bbe9=>function(_0x17748d,_0xf32583){return _0xf32583['checkChild'](_0x17748d['parent'],'listItem')&&!_0xf32583['isObject'](_0x17748d);}(_0x76bbe9,_0x440a2e));_0x104236=_0x104236['filter'](_0x5bb4ff=>!_0x5bb4ff['is']('element','listItem')||_0x5bb4ff['getAttribute']('listType')!=_0xaf4c4f);const _0x455435=new Set();for(const _0x230b50 of _0x104236)_0x230b50['is']('element','listItem')?_0x455435['add'](Le(_0x230b50)):_0x455435['add'](_0x230b50);return Array['from'](_0x455435);}(_0x175fda['getSelectedBlocks'](),_0xb7561e,_0x4a3897['model']['schema']);_0x4a3897['model']['change'](()=>{for(const _0x421323 of _0x14cfa5)_0x1d92f3['markBlockFormat'](_0x421323,{'commandName':_0xfbd0c7,'commandParams':[{'forceValue':!_0x34ecb1['value']}],'formatGroupId':'blockName'},Ee(_0x421323));});};}function _0x54cce8(_0x546273){return()=>{const _0x4a42a5=function(_0x2f4068){let _0x2e7b15=Array['from'](_0x2f4068);const _0x45c75b=_0x2e7b15['findIndex'](_0x526108=>'listItem'!=_0x526108['name']);return _0x45c75b>-0x1&&(_0x2e7b15=_0x2e7b15['slice'](0x0,_0x45c75b)),_0x2e7b15;}(_0x4a3897['model']['document']['selection']['getSelectedBlocks']()),_0x4ef77e=_0x4a3897['model']['createRange'](_0x4a3897['model']['createPositionAt'](_0x4a42a5[0x0],'before'),_0x4a3897['model']['createPositionAt'](_0x4a42a5[_0x4a42a5['length']-0x1],'end'));_0x4a3897['model']['change'](()=>{_0x1d92f3['markBlockFormat'](_0x4ef77e,{'commandName':_0x546273,'commandParams':[],'formatGroupId':'listIndent'},function(_0x12c764){const _0x3b9345=new Set();for(const _0x36f3c3 of _0x12c764){let _0x161a2d=_0x36f3c3['nextSibling'];for(;_0x161a2d&&_0x161a2d['getAttribute']('listIndent')>_0x36f3c3['getAttribute']('listIndent');)_0x3b9345['add'](_0x161a2d),_0x161a2d=_0x161a2d['nextSibling'];}return Array['from'](_0x3b9345);}(_0x4a42a5));});};}_0x1d92f3['enableCommand']('numberedList',_0x1ff1dc('numberedList')),_0x1d92f3['enableCommand']('bulletedList',_0x1ff1dc('bulletedList')),_0x15b58f&&_0x1d92f3['enableCommand']('todoList',_0x1ff1dc('todoList')),_0x1d92f3['enableCommand']('indentList',_0x54cce8('indentList')),_0x1d92f3['enableCommand']('outdentList',_0x54cce8('outdentList')),_0x15b58f&&_0x1d92f3['enableCommand']('checkTodoList',()=>{const _0x9f9815=_0x4a3897['commands']['get']('checkTodoList'),_0x10433d=Array['from'](_0x9f9815['_selectedElements']);_0x10433d['filter'](_0x581afc=>_0x581afc['getAttribute']('todoListChecked')!=_0x9f9815['value']),_0x4a3897['model']['change'](()=>{for(const _0x238bce of _0x10433d)_0x1d92f3['markBlockFormat'](_0x238bce,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x9f9815['value']}]});});}),_0x1d92f3['descriptionFactory']['registerElementLabel']('listItem',_0x4c44fa=>o(_0x9bc8d9,'ELEMENT_LIST_ITEM',_0x4c44fa)),_0x1d92f3['descriptionFactory']['registerDescriptionCallback'](_0x206827=>{if('formatBlock'!=_0x206827['type']&&'formatInline'!=_0x206827['type'])return;const {data:_0x4cfcc3}=_0x206827;if(_0x4cfcc3){if('numberedList'==_0x4cfcc3['commandName']||'bulletedList'==_0x4cfcc3['commandName']||'todoList'==_0x4cfcc3['commandName'])switch(_0x4cfcc3['commandName']['replace']('List','')){case'bulleted':return _0x211b36(o(_0x9bc8d9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x211b36(o(_0x9bc8d9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x211b36(o(_0x9bc8d9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4cfcc3['commandName'])return{'type':'format','content':o(_0x9bc8d9,'*Indent:*\x20%0',o(_0x9bc8d9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4cfcc3['commandName'])return{'type':'format','content':o(_0x9bc8d9,'*Outdent:*\x20%0',o(_0x9bc8d9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4cfcc3['commandName'])return _0x4cfcc3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x9bc8d9,'*Check\x20item*')}:{'type':'format','content':o(_0x9bc8d9,'*Uncheck\x20item*')};}function _0x211b36(_0xd2f27e){return{'type':'format','content':o(_0x9bc8d9,'*Change\x20to:*\x20%0',_0xd2f27e)};}});}}function Le(_0x34297b){const _0x5836ee=_0x34297b['getAttribute']('listIndent');if(0x0==_0x5836ee)return _0x34297b;let _0x245385=_0x34297b;for(;_0x34297b['previousSibling']&&_0x34297b['previousSibling']['is']('element','listItem');){const _0x487545=_0x34297b['previousSibling']['getAttribute']('listIndent');if(_0x487545==_0x5836ee)_0x245385=_0x34297b['previousSibling'];else{if(_0x487545<_0x5836ee)break;}_0x34297b=_0x34297b['previousSibling'];}return _0x245385;}function Ee(_0x22027f){const _0x384c3=[];if(_0x22027f['is']('element','listItem')&&_0x22027f['getAttribute']('listIndent')>0x0){let _0x220af4=_0x22027f['nextSibling'];for(;_0x220af4&&'listItem'==_0x220af4['name']&&_0x220af4['getAttribute']('listIndent')==_0x22027f['getAttribute']('listIndent');)_0x384c3['push'](_0x220af4),_0x220af4=_0x220af4['nextSibling'];}return _0x384c3;}class ht extends _0xccd55c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xcdd520=this['editor']['config']['get']('list.properties'),_0x4d82e7=this['editor']['plugins']['get']('TrackChangesEditing');_0xcdd520['styles']&&_0x4d82e7['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xcdd520['reversed']&&_0x4d82e7['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xcdd520['startIndex']&&_0x4d82e7['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4d82e7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x17e576,_0x79c84c={}){const _0x598558=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22b0d4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x598558['markMultiRangeBlockFormat'](_0x22b0d4,{'commandName':'listStyle','commandParams':[{'type':_0x79c84c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x180f20,_0x3fd7a9={}){const _0x4a9cb7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13bdad=this['_getSuggestionBlocks'](_0x30000f=>_0x30000f['is']('element','listItem')&&'numbered'===_0x30000f['getAttribute']('listType'));if(_0x13bdad['length']<0x1)return;const _0x16d740=_0x13bdad['map'](_0x10111a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x10111a,'before'),this['editor']['model']['createPositionAt'](_0x10111a,0x0)));this['editor']['model']['change'](()=>{_0x4a9cb7['markMultiRangeBlockFormat'](_0x16d740,{'commandName':'listReversed','commandParams':[{'reversed':_0x3fd7a9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x501a63,_0x33f938={}){const _0x38e598=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59c98f=this['_getSuggestionBlocks'](_0x48985e=>_0x48985e['is']('element','listItem')&&'numbered'===_0x48985e['getAttribute']('listType'));if(_0x59c98f['length']<0x1)return;const _0x36ae65=_0x59c98f['map'](_0x39cee1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x39cee1,'before'),this['editor']['model']['createPositionAt'](_0x39cee1,0x0)));this['editor']['model']['change'](()=>{_0x38e598['markMultiRangeBlockFormat'](_0x36ae65,{'commandName':'listStart','commandParams':[{'startIndex':_0x33f938['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x529038){if('formatBlock'!=_0x529038['type']&&'formatInline'!=_0x529038['type'])return;const _0x718d3d=this['editor']['locale'],{data:_0x37936f}=_0x529038;if(!_0x37936f)return;let _0x486809,_0x17e2d1;switch(_0x37936f['commandName']){case'listStyle':_0x486809='*Change\x20to:*\x20%0',_0x17e2d1={'type':'format','content':o(_0x718d3d,_0x486809,o(_0x718d3d,this['_getTranslationKeyForListStyle'](_0x37936f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x486809=_0x37936f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x17e2d1={'type':'format','content':o(_0x718d3d,_0x486809)};break;case'listStart':_0x486809='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x17e2d1={'type':'format','content':o(_0x718d3d,_0x486809,_0x37936f['commandParams'][0x0]['startIndex'])};}return _0x17e2d1;}['_getSuggestionBlocksForListStyle'](){const _0x56bc28=this['editor']['plugins']['get']('LegacyListUtils');let _0x3fbf17=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3fbf17[0x0]?.['is']('element','listItem')&&_0x3fbf17['unshift'](..._0x56bc28['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3fbf17[_0x3fbf17['length']-0x1]?.['is']('element','listItem')&&_0x3fbf17['push'](..._0x56bc28['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3fbf17=[...new Set(_0x3fbf17)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3fbf17=_0x3fbf17['filter'](_0x3fdfcd=>_0x3fdfcd['is']('element','listItem'))),_0x3fbf17;}['_getSuggestionBlocks'](_0x37f564){const _0x5afdbe=this['editor']['plugins']['get']('LegacyListUtils');let _0x41ea6a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x37f564)['map'](_0x2e6922=>{const _0x9b8460=this['editor']['model']['createPositionAt'](_0x2e6922,0x0);return[..._0x5afdbe['getSiblingNodes'](_0x9b8460,'backward'),..._0x5afdbe['getSiblingNodes'](_0x9b8460,'forward')];})['flat']();return _0x41ea6a=[...new Set(_0x41ea6a)],_0x41ea6a;}['_getTranslationKeyForListStyle'](_0x17d4cd){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x17d4cd)||'default')['toUpperCase']()+'_LIST_'+_0x17d4cd['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xccd55c{['afterInit'](){const _0x5f3519=this['editor'];if(!_0x5f3519['plugins']['has']('MediaEmbedEditing'))return;const _0x44d6ce=_0x5f3519['plugins']['get']('TrackChangesEditing'),_0x1f20a9=_0x5f3519['locale'];_0x44d6ce['enableCommand']('mediaEmbed'),_0x44d6ce['descriptionFactory']['registerElementLabel']('media',_0x302a45=>o(_0x1f20a9,'ELEMENT_MEDIA',_0x302a45)),_0x5f3519['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x859b36,{writer:_0x36d672,options:_0x2bc38b})=>{if(_0x2bc38b['showSuggestionHighlights'])return _0x36d672['createEmptyElement']('div');},'converterPriority':'high'}),_0x5f3519['data']['downcastDispatcher']['on']('attribute:url:media',(_0x196fb4,_0x552228,_0x51ee19)=>{_0x51ee19['options']['showSuggestionHighlights']&&_0x196fb4['stop']();},{'priority':'high'});}}class lt extends _0xccd55c{['afterInit'](){const _0x18ddd9=this['editor'];_0x18ddd9['plugins']['has']('MentionEditing')&&_0x18ddd9['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xccd55c{['afterInit'](){const _0x592b3b=this['editor'];if(!_0x592b3b['plugins']['has']('MergeFieldsEditing'))return;const _0x2ae2e5=_0x592b3b['plugins']['get']('TrackChangesEditing'),_0x48d8eb=_0x592b3b['locale'];_0x2ae2e5['enableCommand']('insertMergeField'),_0x2ae2e5['enableCommand']('insertMergeFieldBlock'),_0x2ae2e5['enableCommand']('insertMergeFieldImage'),_0x2ae2e5['descriptionFactory']['registerElementLabel']('mergeField',_0x147f51=>o(_0x48d8eb,'ELEMENT_MERGE_FIELD',_0x147f51)),_0x2ae2e5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x12e490=>o(_0x48d8eb,'ELEMENT_MERGE_FIELD',_0x12e490)),_0x2ae2e5['descriptionFactory']['registerDescriptionCallback'](_0x4a0565=>{if('insertion'!=_0x4a0565['type']&&'deletion'!=_0x4a0565['type'])return;const _0x2d1fa2=_0x4a0565['getContainedElement']();if(null==_0x2d1fa2)return;const _0x2e9f32=_0x592b3b['plugins']['get']('MergeFieldsEditing');let _0x13e0a8;switch(_0x2e9f32['getMergeFieldType'](_0x2d1fa2)){case null:return;case'image':{const _0x5507ca=_0x2e9f32['unwrapAffixes'](_0x2d1fa2['getAttribute']('src'));_0x13e0a8=_0x2e9f32['getLabel'](_0x5507ca)||_0x5507ca;break;}default:{const _0x42f0b0=_0x2d1fa2['getAttribute']('id');_0x13e0a8=_0x2e9f32['getLabel'](_0x42f0b0)||_0x42f0b0;break;}}return'insertion'==_0x4a0565['type']?{'type':'insertion','content':o(_0x48d8eb,'*Insert:*\x20%0','\x22'+_0x13e0a8+'\x22\x20'+o(_0x48d8eb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x48d8eb,'*Remove:*\x20%0','\x22'+_0x13e0a8+'\x22\x20'+o(_0x48d8eb,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xccd55c{['afterInit'](){const _0x16a661=this['editor'],_0x5ea1aa=_0x16a661['plugins']['get']('TrackChangesEditing');_0x16a661['plugins']['has']('MultiLevelList')&&(_0x5ea1aa['enableDefaultAttributesIntegration']('multiLevelList'),_0x5ea1aa['registerBlockAttribute']('listMarkerStyle'),_0x5ea1aa['descriptionFactory']['registerDescriptionCallback'](_0x558189=>this['handleDescriptions'](_0x558189)));}['handleDescriptions'](_0x337e38){const _0x9b23ae=this['editor']['locale'],{data:_0xfc7652}=_0x337e38,_0x57c812={'type':'format','content':''};if(_0xfc7652&&'listMarkerStyle'==_0xfc7652['key']){if(!_0xfc7652['oldValue'])return{'type':'format','content':o(_0x9b23ae,'*Set\x20format:*\x20%0',o(_0x9b23ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xfc7652['newValue']+')'};if(!_0xfc7652['newValue']){let _0x8e5d07=_0x337e38['head'];for(;_0x8e5d07;){if(_0x8e5d07['data']&&'listType'==_0x8e5d07['data']['key']&&_0x8e5d07['data']['newValue'])return _0x57c812;_0x8e5d07=_0x8e5d07['next'];}return{'type':'format','content':o(_0x9b23ae,'*Remove\x20format:*\x20%0',o(_0x9b23ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xfc7652['oldValue']+')'};}}}}class pt extends _0xccd55c{['afterInit'](){const _0x2a02d1=this['editor'];if(!_0x2a02d1['plugins']['has']('PageBreakEditing'))return;_0x2a02d1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4219b9=_0x2a02d1['plugins']['get']('TrackChangesEditing'),_0x110113=_0x2a02d1['locale'];_0x4219b9['descriptionFactory']['registerElementLabel']('pageBreak',_0x482605=>o(_0x110113,'ELEMENT_PAGE_BREAK',_0x482605));}}class kt extends _0xccd55c{['afterInit'](){const _0x22c155=this['editor'];if(!_0x22c155['plugins']['has']('Paragraph'))return;const _0x2e6455=_0x22c155['locale'],_0x3ffaa6=_0x22c155['plugins']['get']('TrackChangesEditing');_0x3ffaa6['descriptionFactory']['registerElementLabel']('paragraph',_0x361a45=>o(_0x2e6455,'ELEMENT_PARAGRAPH',_0x361a45)),_0x3ffaa6['enableDefaultAttributesIntegration']('paragraph'),_0x3ffaa6['enableCommand']('insertParagraph'),_0x22c155['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x22c155),{'priority':'highest'}),_0x22c155['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x16a888,_0x4fa534,_0xb1bb00)=>{_0xb1bb00['options']['showSuggestionHighlights']&&nr(_0x22c155,{'showActiveMarker':!0x1})(_0x16a888,_0x4fa534,_0xb1bb00);},{'priority':'highest'});const _0x4f0ff1=_0x3ffaa6['descriptionFactory'];_0x4f0ff1['registerDescriptionCallback'](_0x232c0c=>{if('insertion'!==_0x232c0c['type'])return;const {start:_0x522714,end:_0x24ab7}=_0x232c0c['getFirstRange']();if(!_0x522714['isTouching'](_0x24ab7)||!_0x522714['nodeAfter'])return;const _0x43770d=_0x22c155['model']['schema'],_0x434b23=_0x522714['nodeAfter'];return _0x43770d['isBlock'](_0x434b23)&&!_0x43770d['isLimit'](_0x434b23)&&_0x43770d['checkChild'](_0x434b23,'$text')?{'type':'insertion','content':o(_0x2e6455,'*Insert:*\x20%0',_0x4f0ff1['getItemLabel'](_0x434b23,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a4c75=this['editor'],_0x59e8e4=_0x5a4c75['locale'];_0x5a4c75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d80ec=>{if('formatBlock'!=_0x3d80ec['type'])return;const {data:_0x3c6fde}=_0x3d80ec;return _0x3c6fde&&'paragraph'==_0x3c6fde['commandName']?{'type':'format','content':o(_0x59e8e4,'*Change\x20to:*\x20%0',o(_0x59e8e4,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x36ed47,{showActiveMarker:_0x52b2b5=!0x0}={}){return(_0x54d2f0,_0xfc5239,_0x41f915)=>{const _0x10a2ec=_0x36ed47['plugins']['get']('TrackChangesEditing'),_0x1b45ba=_0xfc5239['markerRange']['start'],_0x1abe8c=_0xfc5239['markerRange']['end'],_0xa61cce=_0x36ed47['model']['schema'];if(!_0x1b45ba['isTouching'](_0x1abe8c)||!_0x1b45ba['nodeAfter'])return;const _0x43d52b=_0x1b45ba['nodeAfter'];if(_0xa61cce['isBlock'](_0x43d52b)&&!_0xa61cce['isLimit'](_0x43d52b)&&_0xa61cce['checkChild'](_0x43d52b,'$text')){if(!_0x41f915['consumable']['consume'](_0xfc5239['markerRange'],_0x54d2f0['name']))return;const {id:_0x3a0dcc,authorId:_0x562d3a}=_0x10a2ec['_splitMarkerName'](_0xfc5239['markerName']),_0x108a27=_0x41f915['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x3a0dcc,'data-author-id':_0x562d3a}),_0x18624b=_0x41f915['mapper']['toViewPosition'](_0x1abe8c);_0x52b2b5&&_0x10a2ec['activeMarkers']['includes'](_0xfc5239['markerName'])&&_0x41f915['writer']['addClass']('ck-suggestion-marker--active',_0x108a27),_0x41f915['writer']['insert'](_0x18624b,_0x108a27),_0x41f915['mapper']['bindElementToMarker'](_0x108a27,_0xfc5239['markerName']);}};}class wt extends _0xccd55c{['afterInit'](){const _0x36345e=this['editor'];_0x36345e['commands']['get']('replaceSource')&&_0x36345e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xccd55c{['afterInit'](){const _0x8d0775=this['editor'];if(!_0x8d0775['plugins']['has']('RemoveFormatEditing'))return;_0x8d0775['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b476e=this['editor'];_0x1b476e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a2165=>{if('formatBlock'!=_0x4a2165['type']&&'formatInline'!=_0x4a2165['type'])return;const {data:_0x5628b8}=_0x4a2165;return _0x5628b8&&'removeFormat'==_0x5628b8['commandName']?{'type':'format','content':o(_0x1b476e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xccd55c{['afterInit'](){const _0x51efbf=this['editor'];if(!_0x51efbf['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x8a413d=_0x51efbf['plugins']['get']('TrackChangesEditing');_0x8a413d['enableCommand']('goToPreviousRestrictedEditingException'),_0x8a413d['enableCommand']('goToNextRestrictedEditingException');const _0x559692=_0x51efbf['plugins']['get']('RestrictedEditingModeEditing');_0x559692['enableCommand']('trackChanges'),_0x559692['enableCommand']('acceptSuggestion'),_0x559692['enableCommand']('discardSuggestion'),_0x559692['enableCommand']('acceptAllSuggestions'),_0x559692['enableCommand']('discardAllSuggestions'),_0x559692['enableCommand']('acceptSelectedSuggestions'),_0x559692['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xccd55c{['afterInit'](){const _0xd6cdd1=this['editor'];if(!_0xd6cdd1['plugins']['has']('ShiftEnter'))return;const _0x419c60=_0xd6cdd1['plugins']['get']('TrackChangesEditing');_0x419c60['enableCommand']('shiftEnter'),_0xd6cdd1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0xd6cdd1),{'priority':'high'}),_0xd6cdd1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0xd6cdd1),{'priority':'high'}),_0xd6cdd1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f576b,_0x1e21bf,_0x3b2534)=>{_0x3b2534['options']['showSuggestionHighlights']&&je(_0xd6cdd1,{'showActiveMarker':!0x1})(_0x4f576b,_0x1e21bf,_0x3b2534);}),_0x419c60['descriptionFactory']['registerElementLabel']('softBreak',_0x2b1c61=>o(_0xd6cdd1['locale'],'ELEMENT_LINE_BREAK',_0x2b1c61));}}function je(_0x2bb9b5,{showActiveMarker:_0x1abdaf=!0x0}={}){return(_0x249ddc,_0x5ef69f,_0x1c2931)=>{const _0x3547f6=_0x2bb9b5['plugins']['get']('TrackChangesEditing');if(!_0x1c2931['consumable']['test'](_0x5ef69f['markerRange'],_0x249ddc['name']))return;const _0x4001d9=_0x2bb9b5['model'];for(const _0xcc8a7b of _0x5ef69f['markerRange']['getItems']()){if(!_0xcc8a7b['is']('element','softBreak'))continue;const _0x24852f='deletion'==_0x5ef69f['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x554d5c,authorId:_0x1766df}=_0x3547f6['_splitMarkerName'](_0x5ef69f['markerName']),_0x2dbdbd=_0x1c2931['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x24852f,'data-suggestion':_0x554d5c,'data-author-id':_0x1766df}),_0x4e7275=_0x1c2931['mapper']['toViewPosition'](_0x4001d9['createPositionBefore'](_0xcc8a7b));_0x1abdaf&&_0x3547f6['activeMarkers']['includes'](_0x5ef69f['markerName'])&&_0x1c2931['writer']['addClass']('ck-suggestion-marker--active',_0x2dbdbd),_0x1c2931['writer']['insert'](_0x4e7275,_0x2dbdbd),_0x1c2931['mapper']['bindElementToMarker'](_0x2dbdbd,_0x5ef69f['markerName']);}};}class St extends _0xccd55c{['afterInit'](){const _0x1d1d5c=this['editor'],_0x292462=_0x1d1d5c['model'],_0x32aba3=_0x1d1d5c['locale'];if(!_0x1d1d5c['plugins']['has']('StandardEditingModeEditing'))return;const _0x26ec40=_0x1d1d5c['plugins']['get']('TrackChangesEditing'),_0x1abe97='restrictedEditingException',_0xef54dd=_0x1d1d5c['commands']['get'](_0x1abe97);_0x26ec40['enableCommand'](_0x1abe97,(_0x54a678,_0xada6af={})=>{const _0x5f062a=_0x292462['document']['selection'];if(_0x5f062a['isCollapsed'])return void _0x54a678(_0xada6af);const _0x482408=void 0x0!==_0xada6af['forceValue']?_0xada6af['forceValue']:!_0xef54dd['value'];_0x292462['change'](()=>{const _0x343f1d=Array['from'](_0x5f062a['getRanges']());for(const _0x12c618 of _0x343f1d){const _0x43709e=_0x482408?[_0x12c618]:io(_0x1abe97,_0x12c618,_0x292462);for(const _0x55ad27 of _0x43709e)_0x26ec40['markInlineFormat'](_0x55ad27,{'commandName':_0x1abe97,'commandParams':[{'forceValue':_0x482408}]});}});}),_0x26ec40['descriptionFactory']['registerDescriptionCallback'](_0x268787=>{if('formatBlock'!=_0x268787['type']&&'formatInline'!=_0x268787['type'])return;const {data:_0x240661}=_0x268787;return _0x240661&&_0x240661['commandName']==_0x1abe97?_0x240661['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32aba3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x32aba3,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xccd55c{['afterInit'](){const _0x34fcb0=this['editor'];if(!_0x34fcb0['plugins']['has']('Style')||!_0x34fcb0['plugins']['has']('DataSchema'))return;const _0x5cd059=_0x34fcb0['plugins']['get']('TrackChangesEditing'),_0x3b3a26=_0x34fcb0['locale'],_0x4052ee=_0x34fcb0['config']['get']('style')||{},_0x5333ad=_0x34fcb0['plugins']['get']('GeneralHtmlSupport'),_0x1aad79=_0x34fcb0['plugins']['get']('StyleUtils')['normalizeConfig'](_0x34fcb0['plugins']['get']('DataSchema'),_0x4052ee['definitions']);_0x5cd059['enableDefaultAttributesIntegration']('style');const _0x3f29e3=new Set();for(const _0x381a28 of _0x1aad79['block']){const _0x4170d2=_0x5333ad['getGhsAttributeNameForElement'](_0x381a28['element']);_0x3f29e3['add'](_0x4170d2);}const _0xaafc1e=new Set();for(const _0x236f93 of _0x1aad79['inline']){const _0x332de1=_0x5333ad['getGhsAttributeNameForElement'](_0x236f93['element']);_0xaafc1e['add'](_0x332de1);for(const _0x3a6438 of _0x236f93['ghsAttributes'])_0xaafc1e['add'](_0x3a6438);}for(const _0x1521c3 of _0x3f29e3)_0x5cd059['registerBlockAttribute'](_0x1521c3),_0x5cd059['descriptionFactory']['registerAttributeLabel'](_0x1521c3,o(_0x3b3a26,'FORMAT_STYLE'));for(const _0x526774 of _0xaafc1e)_0x5cd059['registerInlineAttribute'](_0x526774),_0x5cd059['descriptionFactory']['registerAttributeLabel'](_0x526774,o(_0x3b3a26,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x88977b=this['editor'],_0x1ad310=_0x88977b['locale'];_0x88977b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b3144=>{if('formatBlock'!=_0x3b3144['type']&&'formatInline'!=_0x3b3144['type'])return;const {data:_0x3c1760}=_0x3b3144;return _0x3c1760&&'style'===_0x3c1760['commandName']?_0x3c1760['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ad310,'*Set\x20format:*\x20%0',_0x3c1760['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1ad310,'*Remove\x20format:*\x20%0',_0x3c1760['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xccd55c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3b3949){super(_0x3b3949),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5b762d=this['editor'],_0x5a937b=_0x5b762d['model']['document']['selection'];if(!_0x5b762d['plugins']['has']('TableEditing'))return;const _0x2d3acc=_0x5b762d['locale'],_0x36343a=_0x5b762d['plugins']['get']('TrackChangesEditing'),_0x50d772=_0x5b762d['plugins']['get']('TableUtils');_0x36343a['descriptionFactory']['registerElementLabel']('table',_0x253b9c=>o(_0x2d3acc,'ELEMENT_TABLE',_0x253b9c)),this['_setupColumnsRowsFixing'](),_0x36343a['enableCommand']('insertTable'),_0x36343a['enableCommand']('selectTableRow'),_0x36343a['enableCommand']('selectTableColumn');for(const _0x5350f0 of['insertTableRowAbove','insertTableRowBelow']){const _0xb2965d=_0x5b762d['commands']['get'](_0x5350f0);_0x36343a['enableCommand'](_0x5350f0,_0x591a77=>{_0x5b762d['model']['change'](_0x1ddfea=>{_0x591a77();const _0x4e36b5='above'===_0xb2965d['order'],_0x264179=_0x50d772['getSelectionAffectedTableCells'](_0x5a937b),_0x1799cc=_0x50d772['getRowIndexes'](_0x264179),_0x9ba8f0=_0x4e36b5?_0x1799cc['first']-0x1:_0x1799cc['last']+0x1,_0x232cbb=_0x264179[0x0]['findAncestor']('table'),_0x3ec7eb=_0x50d772['createTableWalker'](_0x232cbb,{'startRow':_0x9ba8f0,'endRow':_0x9ba8f0}),_0xd442eb=Array['from'](_0x3ec7eb)['map'](_0x29994c=>_0x1ddfea['createRangeOn'](_0x29994c['cell']));_0x36343a['markMultiRangeInsertion'](_0xd442eb,'tableRow');});});}for(const _0x1c74b6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1d9a4f=_0x5b762d['commands']['get'](_0x1c74b6);_0x36343a['enableCommand'](_0x1c74b6,_0x39acb1=>{_0x5b762d['model']['change'](_0x300564=>{_0x39acb1();const _0x37c5d2='left'===_0x1d9a4f['order'],_0x2cffc2=_0x50d772['getSelectionAffectedTableCells'](_0x5a937b),_0x2f4b7b=_0x50d772['getColumnIndexes'](_0x2cffc2),_0x40dbde=_0x37c5d2?_0x2f4b7b['first']-0x1:_0x2f4b7b['last']+0x1,_0x475605=_0x2cffc2[0x0]['findAncestor']('table'),_0x46d2d6=_0x50d772['createTableWalker'](_0x475605,{'startRow':0x0,'column':_0x40dbde,'includeAllSlots':!0x1}),_0x1f53ce=Array['from'](_0x46d2d6)['map'](_0x3da829=>_0x300564['createRangeOn'](_0x3da829['cell']));_0x36343a['markMultiRangeInsertion'](_0x1f53ce,'tableColumn');});});}for(const _0x5e68e8 of['removeTableRow','removeTableColumn']){const _0x24e56e=_0x5e68e8['substr'](0xb),_0x2508ce=_0x24e56e['toLowerCase'](),_0xf895cd=_0x2508ce['substr'](0x0,0x3)+'span',_0x511551='table'+_0x24e56e,_0x2c5ea0='min'+_0x24e56e,_0x1ba88e='max'+_0x24e56e;_0x36343a['enableCommand'](_0x5e68e8,()=>{_0x5b762d['model']['change'](_0x4b0bf3=>{const _0x5e9318=_0x50d772['getSelectionAffectedTableCells'](_0x5a937b),_0x116740=_0x5e9318[0x0]['findAncestor']('table');let _0x4af3b2;if('removeTableRow'==_0x5e68e8){const _0x26d31c=_0x50d772['getRowIndexes'](_0x5e9318);_0x4af3b2={'startRow':_0x26d31c['first'],'endRow':_0x26d31c['last'],'includeAllSlots':!0x0};}else{const _0x136fe2=_0x50d772['getColumnIndexes'](_0x5e9318);_0x4af3b2={'startColumn':_0x136fe2['first'],'endColumn':_0x136fe2['last'],'includeAllSlots':!0x0};}const _0x1d4a62=_0x50d772['createTableWalker'](_0x116740,_0x4af3b2),_0x2b5b51=Array['from'](_0x1d4a62)['map'](({cell:_0x56d01d})=>_0x56d01d),_0x5a60bb=Ne(_0x2b5b51['filter'](_0x4e8ca2=>_0x4e8ca2['hasAttribute'](_0xf895cd))),_0x3960ee=Ne(_0x2b5b51['filter'](_0x40d1fb=>!_0x40d1fb['hasAttribute'](_0xf895cd)))['map'](_0x22ee49=>_0x4b0bf3['createRangeOn'](_0x22ee49)),_0x25e31b=_0x36343a['markMultiRangeDeletion'](_0x3960ee,_0x511551);if(_0x25e31b&&('tableRow'==_0x25e31b['subType']||'tableColumn'==_0x25e31b['subType'])){const _0x5041e5=this['_getSuggestionCoords'](_0x25e31b);for(const _0x4ab7b3 of _0x5a60bb){const _0xfb9173=_0x4b0bf3['createRangeOn'](_0x4ab7b3),_0x127b11=_0x50d772['getCellLocation'](_0x4ab7b3),_0x81d0de=_0x4ab7b3['getAttribute'](_0xf895cd)-0x1,_0x58c252=_0x5041e5[_0x2c5ea0],_0x22e2e4=_0x5041e5[_0x1ba88e];_0x58c252<=_0x127b11[_0x2508ce]&&_0x127b11[_0x2508ce]+_0x81d0de<=_0x22e2e4&&_0x25e31b['addRange'](_0xfb9173);}}});});}function _0x8452c4(_0x4cffea){const _0x615c19=Array['from'](_0x5a937b['getRanges']())['map'](_0x4e2406=>_0x20b456['fromRange'](_0x4e2406));_0x5b762d['model']['change'](_0x1bf57e=>{const _0x304c82=_0x1bf57e['batch'];_0x4cffea=_0x4cffea['filter'](_0x3b4a71=>'$graveyard'!=_0x3b4a71['root']['rootName']),_0x1bf57e['setSelection'](_0x4cffea),_0x5b762d['commands']['get']('removeTableRow')['refresh'](),_0x5b762d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5b762d['model']['enqueueChange'](()=>{_0x5b762d['model']['enqueueChange'](_0x304c82,_0x391453=>{const _0x5efd11=_0x615c19['filter'](_0x4188ec=>'$graveyard'!=_0x4188ec['root']['rootName']);_0x5efd11['length']>0x0&&_0x391453['setSelection'](_0x5efd11);for(const _0x29372c of _0x615c19)_0x29372c['detach']();});});});}function _0x225a3e(_0x5e3697){_0x5b762d['model']['change'](_0x114eef=>{const _0x553a79=Array['from'](_0x5a937b['getRanges']())['map'](_0x2f55bf=>_0x20b456['fromRange'](_0x2f55bf)),_0x5ccc5a=[];for(const _0xc30dbc of _0x5e3697)for(const _0x3bce1b of _0xc30dbc['getItems']({'shallow':!0x0}))_0x5ccc5a['push'](_0x3bce1b);for(const _0x11a659 of _0x5ccc5a)'$graveyard'!=_0x11a659['root']['rootName']&&(_0x114eef['setSelection'](_0x114eef['createPositionAt'](_0x11a659,0x0)),_0x5b762d['commands']['get']('removeTableColumn')['refresh'](),_0x5b762d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x8a82b6=_0x553a79['filter'](_0x5b7dff=>'$graveyard'!=_0x5b7dff['root']['rootName']);_0x8a82b6['length']>0x0&&_0x114eef['setSelection'](_0x8a82b6);for(const _0x2de009 of _0x553a79)_0x2de009['detach']();});}function _0x33c1a4(_0x377048,_0x594449){return _0x594449['every'](_0x5aee56=>_0x377048['some'](_0x3f1291=>_0x3f1291['end']['isEqual'](_0x5aee56['start'])||_0x5aee56['end']['isEqual'](_0x3f1291['start'])));}function _0x14aa31(_0x493120,_0x3a6a6f){return!_0x493120['some'](_0x1a84eb=>_0x3a6a6f['some'](_0x5319f1=>_0x1a84eb['isIntersecting'](_0x5319f1)))&&_0x493120['some'](_0x5ac9f6=>_0x3a6a6f['some'](_0x5c51f8=>_0x5ac9f6['end']['isTouching'](_0x5c51f8['start'])));}_0x5b762d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5d4c0d,_0x3cc62d,_0x574f6a)=>{if(!_0x574f6a['options']['showSuggestionHighlights'])return;const _0x35a994=_0x3cc62d['item'];if(!_0x35a994||!_0x35a994['is']('element','tableCell'))return;const _0x397873=_0x574f6a['mapper']['toViewElement'](_0x35a994);if(_0x397873){const {id:_0xe71cf4,authorId:_0x5d8479}=_0x36343a['_splitMarkerName'](_0x3cc62d['markerName']);_0x117925(_0x397873,_0x574f6a['writer'],(_0xf9cc77,_0x466577,_0x1d4593)=>{_0x1d4593['addClass'](_0x1c6e8b(_0x466577['classes']),_0xf9cc77),_0x1d4593['setAttribute']('data-suggestion-id',_0xe71cf4,_0xf9cc77),_0x1d4593['setAttribute']('data-author-id',_0x5d8479,_0xf9cc77);},(_0x29f46d,_0x2c7927,_0x445a2b)=>{_0x445a2b['removeClass'](_0x1c6e8b(_0x2c7927['classes']),_0x29f46d),_0x445a2b['removeAttribute']('data-suggestion-id',_0x29f46d),_0x445a2b['removeAttribute']('data-author-id',_0x29f46d);});}},{'priority':'highest'}),_0x36343a['descriptionFactory']['registerDescriptionCallback'](_0x278ad4=>{if('insertion'!=_0x278ad4['type']&&'deletion'!=_0x278ad4['type'])return;const _0x25f55b=_0x278ad4['getContainedElement']();if(null!=_0x25f55b&&_0x25f55b['is']('element','table')){if('insertion'==_0x278ad4['type']){const _0x46e9c9=_0x278ad4['getItems']()['filter'](_0x3bc03a=>_0x3bc03a['is']('$textProxy'))['map'](_0x22ed57=>_0x22ed57['data']);if(_0x46e9c9['length'])return{'type':'insertion','content':o(_0x2d3acc,'*Insert:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x46e9c9['join']('\x20')+'\x22'))};}if('deletion'==_0x278ad4['type']){const _0x4e7e2b=_0x278ad4['getItems']()['filter'](_0x27afc0=>_0x27afc0['is']('$textProxy'))['map'](_0x2ac062=>_0x2ac062['data']);if(_0x4e7e2b['length'])return{'type':'deletion','content':o(_0x2d3acc,'*Remove:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4e7e2b['join']('\x20')+'\x22'))};}}}),_0x36343a['descriptionFactory']['registerDescriptionCallback'](_0x57282a=>{if('tableRow'==_0x57282a['subType']){const _0x2bc6bd=_0x57282a['getItems']()['filter'](_0x7e0c0d=>_0x7e0c0d['is']('$textProxy'))['map'](_0x40b80d=>_0x40b80d['data']),_0x4807b8=this['_getSuggestionCoords'](_0x57282a),_0xf78afb=_0x4807b8['maxRow']-_0x4807b8['minRow']+0x1;if('insertion'==_0x57282a['type'])return _0x2bc6bd['length']?{'type':'insertion','content':o(_0x2d3acc,'*Insert:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xf78afb,'\x22'+_0x2bc6bd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2d3acc,'*Insert:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_ROW',_0xf78afb))};if('deletion'==_0x57282a['type'])return _0x2bc6bd['length']?{'type':'deletion','content':o(_0x2d3acc,'*Remove:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xf78afb,'\x22'+_0x2bc6bd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2d3acc,'*Remove:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_ROW',_0xf78afb))};}if('tableColumn'==_0x57282a['subType']){const _0x46b11b=_0x57282a['getItems']()['filter'](_0xda0a5=>_0xda0a5['is']('$textProxy'))['map'](_0x429f90=>_0x429f90['data']),_0x52ed13=this['_getSuggestionCoords'](_0x57282a),_0x419259=_0x52ed13['maxColumn']-_0x52ed13['minColumn']+0x1;if('insertion'==_0x57282a['type'])return _0x46b11b['length']?{'type':'insertion','content':o(_0x2d3acc,'*Insert:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x419259,'\x22'+_0x46b11b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2d3acc,'*Insert:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_COLUMN',_0x419259))};if('deletion'==_0x57282a['type'])return _0x46b11b['length']?{'type':'deletion','content':o(_0x2d3acc,'*Remove:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x419259,'\x22'+_0x46b11b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2d3acc,'*Remove:*\x20%0',o(_0x2d3acc,'ELEMENT_TABLE_COLUMN',_0x419259))};}}),_0x36343a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x8452c4),_0x36343a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x8452c4),_0x36343a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x225a3e),_0x36343a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x225a3e),_0x36343a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x33c1a4),_0x36343a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x33c1a4),_0x36343a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x14aa31),_0x36343a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x14aa31);}['_acceptFormatSuggestionCallbackFactory'](){const _0x6ed1b6=this['editor'],_0x448d5c=_0x6ed1b6['model']['document']['selection'];return(_0x209de8,_0x346751)=>{_0x6ed1b6['model']['change'](_0x4e9345=>{const {commandName:_0x43fff1,commandParams:_0x1cb230}=_0x346751;let _0x26e04e=_0x209de8[0x0]['end']['nodeBefore'];_0x1cb230&&_0x1cb230[0x0]&&!0x1===_0x1cb230[0x0]['forceValue']&&(_0x26e04e=_0x209de8[0x0]['start']['nodeAfter']);const _0x4f170e=_0x4e9345['createRangeIn'](_0x26e04e);if('$graveyard'==_0x4f170e['root']['rootName'])return;const _0x172929=Array['from'](_0x448d5c['getRanges']())['map'](_0x3f0447=>_0x20b456['fromRange'](_0x3f0447));_0x4e9345['setSelection'](_0x4f170e),_0x6ed1b6['commands']['get'](_0x43fff1)['refresh'](),_0x1cb230['push']({'forceDefaultExecution':!0x0}),_0x6ed1b6['execute'](_0x43fff1,..._0x1cb230);const _0x389e2e=_0x172929['filter'](_0x239410=>'$graveyard'!=_0x239410['root']['rootName']);_0x389e2e['length']>0x0&&_0x4e9345['setSelection'](_0x389e2e);for(const _0x369637 of _0x172929)_0x369637['detach']();});};}['_getCoordsForCells'](_0x5f383f){const _0x530358=this['editor']['plugins']['get']('TableUtils');let _0x202196=Number['MAX_SAFE_INTEGER'],_0x114ced=Number['MIN_SAFE_INTEGER'],_0x43d77d=Number['MAX_SAFE_INTEGER'],_0x3fb18e=Number['MIN_SAFE_INTEGER'];for(const _0x5c4946 of _0x5f383f){if('$graveyard'==_0x5c4946['root']['rootName'])continue;const {row:_0x420591,column:_0x151622}=_0x530358['getCellLocation'](_0x5c4946),_0x148253=_0x5c4946['hasAttribute']('rowspan')?_0x5c4946['getAttribute']('rowspan')-0x1:0x0,_0x51c475=_0x5c4946['hasAttribute']('colspan')?_0x5c4946['getAttribute']('colspan')-0x1:0x0;_0x202196=_0x420591<_0x202196?_0x420591:_0x202196,_0x114ced=_0x420591+_0x148253>_0x114ced?_0x420591+_0x148253:_0x114ced,_0x43d77d=_0x151622<_0x43d77d?_0x151622:_0x43d77d,_0x3fb18e=_0x151622+_0x51c475>_0x3fb18e?_0x151622+_0x51c475:_0x3fb18e;}return{'minRow':_0x202196,'maxRow':_0x114ced,'minColumn':_0x43d77d,'maxColumn':_0x3fb18e};}['_setupColumnsRowsFixing'](){const _0x5c0919=this['editor'],_0x58f209=_0x5c0919['plugins']['get']('TrackChangesEditing'),_0x39e323=_0x5c0919['plugins']['get']('TableUtils');_0x5c0919['model']['document']['on']('change:data',()=>{const _0x2b2917=Array['from'](_0x5c0919['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x99bc64,data:_0x369dae}of _0x2b2917){const {group:_0x2a9e7a,id:_0x37ee46,subType:_0x37f8e7}=_0x58f209['_splitMarkerName'](_0x99bc64);if('suggestion'!=_0x2a9e7a)continue;if(null!=_0x369dae['oldRange'])continue;const _0x515ec8=_0x58f209['getSuggestion'](_0x37ee46);this['_tablePostFixingSubtypes']['includes'](_0x37f8e7)&&this['_tableSuggestions']['add'](_0x515ec8);}},{'priority':'low'});const _0x191db5=(_0x3e1a97,_0x2b643c)=>{let _0x4049a2=!0x1;const _0x1c01df=_0x2b643c['createRangeOn'](_0x3e1a97),_0x399801=_0x3e1a97['findAncestor']('table'),_0x35a93c=_0x39e323['getCellLocation'](_0x3e1a97);for(const _0x51d772 of this['_tableSuggestions']){const _0x5108bc=_0x51d772['subType'],_0x25b882=_0x5108bc['startsWith']('tablePaste'),_0x2c64f8=_0x5108bc['substr'](_0x25b882?0xa:0x5),_0x80c21c=_0x2c64f8['toLowerCase'](),_0x5d9680=_0x80c21c['substr'](0x0,0x3)+'span',_0x1ea047='min'+_0x2c64f8,_0x240675='max'+_0x2c64f8;if(!_0x51d772['isInContent'])continue;if(_0x399801!=_0x51d772['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x51d772['isIntersectingWithRange'](_0x1c01df))continue;const _0x96a8b2=_0x3e1a97['hasAttribute'](_0x5d9680)?_0x3e1a97['getAttribute'](_0x5d9680)-0x1:0x0,_0x5a2a46=this['_getSuggestionCoords'](_0x51d772),_0x3b465=_0x5a2a46[_0x1ea047],_0x469867=_0x5a2a46[_0x240675];_0x3b465<=_0x35a93c[_0x80c21c]&&_0x35a93c[_0x80c21c]+_0x96a8b2<=_0x469867&&(_0x51d772['addRange'](_0x1c01df),_0x4049a2=!0x0);}return _0x4049a2;};_0x5c0919['model']['document']['registerPostFixer'](_0x341ce3=>{let _0x1a21f5=!0x1;for(const _0x5a537a of _0x5c0919['model']['document']['differ']['getChanges']())if('insert'==_0x5a537a['type']){if('tableRow'==_0x5a537a['name']){for(const _0x367cf8 of _0x5a537a['position']['nodeAfter']['getChildren']())_0x1a21f5=_0x1a21f5||_0x191db5(_0x367cf8,_0x341ce3);}else'tableCell'==_0x5a537a['name']&&(_0x1a21f5=_0x1a21f5||_0x191db5(_0x5a537a['position']['nodeAfter'],_0x341ce3));}return _0x1a21f5;});}['_getSuggestionCoords'](_0x50c3c9){return this['_getCoordsForCells'](_0x50c3c9['getRanges']()['map'](_0xd81a5d=>_0xd81a5d['start']['nodeAfter']));}}function Ne(_0x1ea1bc){return Array['from'](new Set(_0x1ea1bc)['values']());}class _t extends _0xccd55c{static get['requires'](){return[At];}['afterInit'](){const _0x34dac2=this['editor'],_0x3e90cb=_0x34dac2['model']['document']['selection'],_0x364f34=_0x34dac2['locale'];if(!_0x34dac2['plugins']['has']('TableEditing'))return;const _0x1b85ef=_0x34dac2['plugins']['get']('TrackChangesEditing'),_0x18d226=_0x34dac2['plugins']['get']('TableUtils'),_0x1ed2eb=_0x34dac2['plugins']['get'](At);_0x1ed2eb['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1b85ef['enableCommand']('mergeTableCells',()=>{const _0x27a398=_0x18d226['getSelectionAffectedTableCells'](_0x34dac2['model']['document']['selection']);_0x34dac2['model']['change'](()=>{_0x1b85ef['markMultiRangeBlockFormat'](_0x27a398,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x34dac2['commands']['get']('mergeTableCells')['on']('execute',(_0x1b95ef,_0x4e0aa9)=>{_0x34dac2['commands']['get']('trackChanges')['value']&&(_0x4e0aa9['length']>0x0&&_0x4e0aa9[_0x4e0aa9['length']-0x1]&&_0x4e0aa9[_0x4e0aa9['length']-0x1]['forceDefaultExecution']||_0x1b85ef['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1b95ef['stop']());},{'priority':'highest'});for(const _0x1a2afb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3e5b8d=_0x34dac2['commands']['get'](_0x1a2afb);_0x1b85ef['enableCommand'](_0x1a2afb,()=>{const _0x3d0836=_0x34dac2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x33224d=>_0x33224d['is']('element','tableCell')),_0xbceeb2=_0x3e5b8d['value'];_0x34dac2['model']['change'](()=>{_0x1b85ef['markMultiRangeBlockFormat']([_0x3d0836,_0xbceeb2],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x421930 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x17f3cb=_0x34dac2['commands']['get'](_0x421930);_0x1b85ef['enableCommand'](_0x421930,()=>{const _0x4f8d06=_0x18d226['getSelectionAffectedTableCells'](_0x34dac2['model']['document']['selection'])[0x0],_0x426fdd=_0x4f8d06['findAncestor']('table'),{column:_0x3cd23b,row:_0x1514cc}=_0x18d226['getCellLocation'](_0x4f8d06);let _0x458407=[];if('horizontally'==_0x17f3cb['direction']){const _0x290081=_0x18d226['createTableWalker'](_0x426fdd,{'startRow':_0x1514cc,'endRow':_0x1514cc,'includeAllSlots':!0x0});_0x458407=Array['from'](_0x290081)['map'](_0x3f35ee=>_0x3f35ee['cell']);}else{const _0x84082d=_0x18d226['createTableWalker'](_0x426fdd,{'column':_0x3cd23b,'includeAllSlots':!0x0});_0x458407=Array['from'](_0x84082d)['map'](_0x4e3969=>_0x4e3969['cell']);}_0x34dac2['model']['change'](_0x2b4f9a=>{_0x1b85ef['markBlockFormat'](_0x2b4f9a['createRangeOn'](_0x4f8d06),{'commandName':_0x421930,'commandParams':[]},_0x458407,_0x421930);});});}_0x1b85ef['descriptionFactory']['registerDescriptionCallback'](_0x44681c=>{if('formatBlock'!=_0x44681c['type']&&'formatInline'!=_0x44681c['type'])return;const {data:_0x19a715}=_0x44681c;return _0x19a715&&'mergeTableCells'==_0x19a715['commandName']?{'type':'format','content':o(_0x364f34,'*Merge\x20cells*')}:void 0x0;}),_0x1b85ef['descriptionFactory']['registerDescriptionCallback'](_0x3d7313=>{if('formatBlock'!=_0x3d7313['type']&&'formatInline'!=_0x3d7313['type'])return;const {data:_0x598ea4}=_0x3d7313;return _0x598ea4?'splitTableCellVertically'==_0x598ea4['commandName']?{'type':'format','content':o(_0x364f34,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x598ea4['commandName']?{'type':'format','content':o(_0x364f34,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x328204=_0x1ed2eb['_acceptFormatSuggestionCallbackFactory']();for(const _0x2736ff of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1b85ef['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2736ff,'accept',_0x328204);for(const _0xa1bb6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1b85ef['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa1bb6,'accept',_0x328204);_0x1b85ef['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x888d1d=>{_0x34dac2['model']['change'](_0x21c55c=>{const _0xbb0322=Array['from'](_0x3e90cb['getRanges']())['map'](_0x3d3f57=>_0x20b456['fromRange'](_0x3d3f57));_0x21c55c['setSelection'](_0x888d1d),_0x34dac2['commands']['get']('mergeTableCells')['refresh'](),_0x34dac2['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3a8609=_0xbb0322['filter'](_0x288be3=>'$graveyard'!=_0x288be3['root']['rootName']);_0x3a8609['length']>0x0&&_0x21c55c['setSelection'](_0x3a8609);for(const _0x1d5b53 of _0xbb0322)_0x1d5b53['detach']();});});for(const _0x5d59ad of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x56995c=_0x34dac2['commands']['get'](_0x5d59ad);_0x56995c['on']('set:isEnabled',(_0x246d71,_0x144424,_0x3b0a29)=>{if(_0x3b0a29){const _0x239fb8=_0x34dac2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2b6edb=>_0x2b6edb['is']('element','tableCell'));this['_areMergableCells'](_0x56995c['value'],_0x239fb8)||(_0x246d71['return']=!0x1,_0x246d71['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5653cd=this['editor']['commands']['get']('mergeTableCells'),_0x123ac8=this['editor']['plugins']['get']('TableUtils');if(!_0x5653cd['isEnabled'])return!0x1;const _0xbc1793=_0x123ac8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x184c57 of _0xbc1793)for(const _0x17daee of _0xbc1793)if(_0x184c57!=_0x17daee&&!this['_areMergableCells'](_0x184c57,_0x17daee))return!0x1;return!0x0;}['_areMergableCells'](_0x5ee01e,_0x4db436){const _0x198e08=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cedbe=this['editor']['model']['createRangeOn'](_0x5ee01e),_0x30d122=this['editor']['model']['createRangeOn'](_0x4db436),_0x4f9d9b=new Set(),_0x56e172=new Set();for(const _0x244415 of _0x198e08['getSuggestions']())if(('insertion'==_0x244415['type']||'deletion'==_0x244415['type']||'mergeTableCells'==_0x244415['subType'])&&_0x244415['isInContent']){for(const _0x374152 of _0x244415['getRanges']())_0x374152['containsRange'](_0x3cedbe,!0x0)&&_0x4f9d9b['add'](_0x244415['type']+':'+_0x244415['author']['id']),_0x374152['containsRange'](_0x30d122,!0x0)&&_0x56e172['add'](_0x244415['type']+':'+_0x244415['author']['id']);}if(_0x4f9d9b['size']!=_0x56e172['size'])return!0x1;for(const _0x2a2d7f of _0x4f9d9b)if(!_0x56e172['has'](_0x2a2d7f))return!0x1;return!0x0;}}class Ct extends _0xccd55c{static get['requires'](){return[At];}['afterInit'](){const _0x484fd9=this['editor'];if(!_0x484fd9['plugins']['has']('TableEditing'))return;const _0x4dc352=_0x484fd9['locale'],_0x12da2d=_0x484fd9['plugins']['get']('TrackChangesEditing');_0x12da2d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x12da2d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x12da2d['registerBlockAttribute']('headingRows'),_0x12da2d['registerBlockAttribute']('headingColumns'),_0x12da2d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4dc352,'FORMAT_HEADER_ROW')),_0x12da2d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4dc352,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x562504=this['editor']['plugins']['get']('TrackChangesEditing'),_0x149141=this['editor']['plugins']['get']('TableUtils'),_0x329472=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x10b37e({showActiveMarker:_0x44746a=!0x0,setDataAttribute:_0x468273=!0x0}={}){return(_0x40cb2e,_0x407c48,_0x14f14d)=>{const {type:_0x2201c0,id:_0x106c36}=_0x562504['_splitMarkerName'](_0x407c48['markerName']),_0x59d832=_0x562504['getSuggestion'](_0x106c36),_0x2829dd=_0x59d832['data'];if('formatBlock'!=_0x59d832['type']||!_0x2829dd||'setTableColumnHeader'!=_0x2829dd['commandName'])return;if(_0x407c48['item'])return void _0x40cb2e['stop']();if(!_0x14f14d['consumable']['consume'](_0x407c48['markerRange'],_0x40cb2e['name']))return;const _0x1d8681=_0x407c48['markerRange']['start']['nodeAfter'],_0x2bcb24=_0x407c48['markerRange']['end']['nodeBefore'],_0x133536=_0x1d8681['parent']['parent'],{column:_0x58e96e}=_0x149141['getCellLocation'](_0x1d8681),{column:_0x582379}=_0x149141['getCellLocation'](_0x2bcb24);for(let _0x267255=_0x58e96e;_0x267255<=_0x582379;_0x267255++){const _0xe29ef9=_0x149141['createTableWalker'](_0x133536,{'column':_0x267255,'includeAllSlots':!0x1});for(const _0x3e7c9e of _0xe29ef9){const _0x54f121=_0x3e7c9e['cell'],_0x3ac1e0=_0x14f14d['mapper']['toViewElement'](_0x54f121);_0x14f14d['writer']['addClass']('ck-suggestion-marker-'+_0x2201c0,_0x3ac1e0),_0x468273&&_0x14f14d['writer']['setAttribute']('data-suggestion',_0x106c36,_0x3ac1e0),_0x14f14d['mapper']['bindElementToMarker'](_0x3ac1e0,_0x407c48['markerName']),_0x44746a&&(_0x562504['activeMarkers']['includes'](_0x407c48['markerName'])?_0x14f14d['writer']['addClass']('ck-suggestion-marker--active',_0x3ac1e0):_0x14f14d['writer']['removeClass']('ck-suggestion-marker--active',_0x3ac1e0));}}};}_0x562504['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x329472),_0x562504['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x329472),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x10b37e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x348a67,_0x3d157a,_0x3eae7c)=>{_0x3eae7c['options']['showSuggestionHighlights']&&_0x10b37e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x348a67,_0x3d157a,_0x3eae7c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2c2264,_0x3562d8,_0x45eb1b)=>{const {type:_0x57de2d,id:_0x2914f9}=_0x562504['_splitMarkerName'](_0x3562d8['markerName']),_0xcb6c9b=_0x562504['getSuggestion'](_0x2914f9),_0x421f64=_0xcb6c9b['data'];if('formatBlock'!=_0xcb6c9b['type']||!_0x421f64||'setTableColumnHeader'!=_0x421f64['commandName'])return;const _0x28c05d=_0x45eb1b['mapper']['markerNameToElements'](_0x3562d8['markerName']);if(_0x28c05d){for(const _0x3b83ef of _0x28c05d)_0x45eb1b['writer']['removeClass']('ck-suggestion-marker-'+_0x57de2d,_0x3b83ef),_0x45eb1b['writer']['removeClass']('ck-suggestion-marker--active',_0x3b83ef),_0x45eb1b['writer']['removeAttribute']('data-suggestion',_0x3b83ef),_0x45eb1b['mapper']['unbindElementFromMarkerName'](_0x3b83ef,_0x3562d8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a4cbe=this['editor'],_0x367f93=_0x3a4cbe['locale'];function _0x2a99a4(_0x273335){return{'type':'format','content':o(_0x367f93,'*Format:*\x20%0',_0x273335)};}_0x3a4cbe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12a438=>{if('formatBlock'!=_0x12a438['type'])return;const {data:_0x45e55e}=_0x12a438;if(_0x45e55e){if('setTableRowHeader'==_0x45e55e['commandName']){const _0x4f21d1=_0x45e55e['commandParams'][0x0]['forceValue'];return _0x2a99a4(o(_0x367f93,_0x4f21d1?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x45e55e['commandName']){const _0x29ea3e=_0x45e55e['commandParams'][0x0]['forceValue'];return _0x2a99a4(o(_0x367f93,_0x29ea3e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xccd55c{['afterInit'](){const _0x5b4139=this['editor'],_0x3b1e7a=_0x5b4139['locale'],_0x2d563b=_0x5b4139['plugins']['get']('TrackChangesEditing');function _0x281be7(_0x4c6f23){return{'type':'format','content':''+o(_0x3b1e7a,'*Set\x20table\x20type:*\x20%0',_0x4c6f23)};}_0x5b4139['plugins']['has']('TableLayout')&&(_0x2d563b['enableCommand']('insertTableLayout'),_0x2d563b['enableDefaultAttributesIntegration']('tableType'),_0x2d563b['registerBlockAttribute']('tableType'),_0x2d563b['descriptionFactory']['registerElementLabel'](_0x6225ca=>_0x6225ca['is']('element','table')&&'layout'===_0x6225ca['getAttribute']('tableType'),_0x1f46d2=>o(_0x3b1e7a,'ELEMENT_LAYOUT_TABLE',_0x1f46d2)),_0x2d563b['descriptionFactory']['registerDescriptionCallback'](_0x23e9e6=>{const {data:_0x482ae8}=_0x23e9e6;if(_0x482ae8&&'tableType'==_0x482ae8['key'])switch(_0x482ae8['newValue']){case'layout':return _0x281be7(o(_0x3b1e7a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x281be7(o(_0x3b1e7a,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x18186d=>[_0x18186d,null]));class Nt extends _0xccd55c{static get['requires'](){return[At];}['afterInit'](){const _0x26ea85=this['editor'];if(!_0x26ea85['plugins']['has']('TableClipboard'))return;const _0x3ed86c=_0x26ea85['plugins']['get']('TrackChangesEditing'),_0x2000f9=_0x26ea85['plugins']['get']('TableUtils'),_0x1554e2=_0x26ea85['plugins']['get'](At),_0x1cbab3=_0x26ea85['plugins']['get']('TableClipboard'),_0x184b43=_0x26ea85['plugins']['get']('TableSelection'),_0x3f35de=_0x26ea85['plugins']['get'](_0x6b813f);_0x1554e2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x26ea85['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x26ea85['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4f9f11=null,_0x3935cd=!0x1;_0x3f35de['on']('contentInsertion',(_0x580c28,_0x8283f4)=>{_0x3935cd='paste'===_0x8283f4['method'];}),_0x26ea85['model']['on']('insertContent',(_0x100aee,_0x1495a1)=>{if(!_0x3935cd&&null===_0x184b43['getSelectedTableCells']())return;const [_0x20f5dd,_0x408c4b]=_0x1495a1,_0x17f34f=_0x1495a1[_0x1495a1['length']-0x1];_0x17f34f&&_0x17f34f['forceDefaultExecution']||_0x3ed86c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1a9bcf,_0x57f5c6,_0x3d537a,_0x59a976,_0x15ae51){if(_0x57f5c6&&!_0x57f5c6['is']('documentSelection'))return!0x1;const _0x363a5e=_0x15ae51['getTableIfOnlyTableInContent'](_0x1a9bcf,_0x3d537a);if(!_0x363a5e||!Ue(_0x363a5e,void 0x0,_0x59a976))return!0x1;const _0x42f957=_0x59a976['getSelectionAffectedTableCells'](_0x3d537a['document']['selection']);if(!_0x42f957['length'])return!0x1;const _0x2becce=_0x42f957[0x0]['findAncestor']('table'),_0x2ecb63=_0x59a976['getRowIndexes'](_0x42f957),_0x4804a3=_0x59a976['getColumnIndexes'](_0x42f957),_0x2f7e84={'startRow':_0x2ecb63['first'],'endRow':_0x2ecb63['last'],'startColumn':_0x4804a3['first'],'endColumn':_0x4804a3['last']};return 0x1==_0x42f957['length']&&(_0x2f7e84['endRow']+=_0x59a976['getRows'](_0x363a5e)-0x1,_0x2f7e84['endColumn']+=_0x59a976['getColumns'](_0x363a5e)-0x1),Ue(_0x2becce,_0x2f7e84,_0x59a976);}(_0x20f5dd,_0x408c4b,_0x26ea85['model'],_0x2000f9,_0x1cbab3)&&(_0x100aee['stop'](),_0x4f9f11={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x26ea85['model']['change'](()=>{_0x26ea85['model']['insertContent'](_0x1495a1[0x0],_0x1495a1[0x1],_0x1495a1[0x2],{'forceDefaultExecution':!0x0});const _0x518f60=_0x427844(),{rowInsertionRanges:_0xcf67cb,columnInsertionRanges:_0xb4a573,insertionRanges:_0x2fab7f,deletionRanges:_0x5b80c4,cells:_0x5e346b}=_0x4f9f11;_0xcf67cb['length']&&_0x3ed86c['markMultiRangeInsertion'](_0xcf67cb,'tablePasteRow',{'tablePasteChainId':_0x518f60}),_0xb4a573['length']&&_0x3ed86c['markMultiRangeInsertion'](_0xb4a573,'tablePasteColumn',{'tablePasteChainId':_0x518f60}),_0x2fab7f['length']&&(_0x3ed86c['markMultiRangeInsertion'](_0x2fab7f,'tablePaste',{'tablePasteChainId':_0x518f60,'skipNestingCheck':!0x0}),_0x2fab7f['forEach'](_0x19a4ff=>_0x19a4ff['detach']?.())),_0x5b80c4['length']&&(_0x3ed86c['markMultiRangeDeletion'](_0x5b80c4,'tablePaste',{'tablePasteChainId':_0x518f60,'skipNestingCheck':!0x0}),_0x5b80c4['forEach'](_0x35e3cd=>_0x35e3cd['detach']?.()));const _0x4035a9=_0x3ed86c['markMultiRangeBlockFormat'](_0x5e346b['map'](({element:_0x18d3f4})=>_0x18d3f4),{'formatGroupId':_0x427844()},[],'tablePasteCell',{'tablePasteChainId':_0x518f60});if(_0x4035a9){const _0x4dc100=_0x4035a9['getMarkers'](),_0x3943aa=[];for(const {element:_0x59c655,attributes:_0x20b3eb}of _0x5e346b){if(!_0x20b3eb)continue;const _0xd8c73b=_0x26ea85['model']['createRangeOn'](_0x59c655),_0x4706e0=_0x4dc100['find'](_0x16e87f=>_0x16e87f['getRange']()['isEqual'](_0xd8c73b));_0x4706e0&&_0x3943aa['push']([_0x4706e0['name'],_0x20b3eb]);}_0x3943aa['length']&&_0x4035a9['setAttribute']('markerAttributes',Object['fromEntries'](_0x3943aa));}_0x4f9f11=null;}));},{'priority':_0x850491['high']+0xa}),_0x3f35de['on']('contentInsertion',()=>{_0x3935cd=!0x1;},{'priority':'lowest'}),_0x26ea85['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x238aaf,_0x5ceba4)=>{const [_0x4f62ab,_0x47966a,,_0x2a5960]=_0x5ceba4;if(!_0x4f9f11)return;_0x238aaf['stop']();const _0x503be6=_0x4f62ab['cell'],_0x16b615=_0x47966a,_0x33c8d7=Oe(_0x503be6),_0x3e5eb1=Oe(_0x16b615);_0x238aaf['return']=_0x503be6;let _0xb2f0d9=null,_0x2299eb=null;if(_0x3e5eb1||_0x33c8d7){if(_0x33c8d7&&!_0x3e5eb1){_0x2a5960['remove'](_0x503be6['getChild'](0x0));for(const _0x33a0f0 of Array['from'](_0x16b615['getChildren']()))_0x2a5960['insert'](_0x33a0f0,_0x503be6,'end');const _0x1494fe=_0x4f9f11['rowInsertionIndexes']['includes'](_0x4f62ab['row']),_0x2a4c9e=_0x4f9f11['columnInsertionIndexes']['includes'](_0x4f62ab['column']);_0x1494fe||_0x2a4c9e||(_0xb2f0d9=_0x20b456['fromRange'](_0x2a5960['createRangeIn'](_0x503be6)));}else _0x3e5eb1&&!_0x33c8d7&&(_0x2299eb=_0x2a5960['createRangeIn'](_0x503be6));}else{const _0x7509b5=_0x2a5960['createElement']('tableCellSuggestion'),_0x44e03a=_0x2a5960['createElement']('tableCellSuggestion');_0x2a5960['wrap'](_0x2a5960['createRangeIn'](_0x503be6),_0x44e03a),_0x2a5960['insert'](_0x7509b5,_0x503be6,0x0);for(const _0x6ceda6 of Array['from'](_0x16b615['getChildren']()))_0x2a5960['insert'](_0x6ceda6,_0x7509b5,'end');_0xb2f0d9=_0x20b456['fromRange'](_0x2a5960['createRangeOn'](_0x7509b5)),_0x2299eb=_0x20b456['fromRange'](_0x2a5960['createRangeOn'](_0x44e03a));}const _0x1fd80a=Array['from'](_0x16b615['getAttributes']())['filter'](([_0x40657f])=>Be['includes'](_0x40657f));_0x4f9f11['cells']['push']({'element':_0x503be6,'attributes':_0x1fd80a['length']?Object['fromEntries'](_0x1fd80a):null}),_0xb2f0d9&&_0x4f9f11['insertionRanges']['push'](_0xb2f0d9),_0x2299eb&&_0x4f9f11['deletionRanges']['push'](_0x2299eb);},{'priority':'high'}),_0x2000f9['on']('insertColumns',(_0x37afeb,_0x28d7d4)=>{const [_0x426ea6,_0x2cc6cf={}]=_0x28d7d4;if(!_0x4f9f11)return;const _0x1c81b7=_0x2cc6cf['at']||0x0,_0x12ee8f=_0x2cc6cf['columns']||0x1;_0x4f9f11['columnInsertionIndexes']=new Array(_0x12ee8f)['fill'](_0x1c81b7)['map']((_0x3aa0e7,_0x1e70aa)=>_0x3aa0e7+_0x1e70aa);for(const {cell:_0x179357}of _0x2000f9['createTableWalker'](_0x426ea6,{'startColumn':_0x1c81b7,'endColumn':_0x1c81b7+_0x12ee8f-0x1}))_0x4f9f11['columnInsertionRanges']['push'](_0x26ea85['model']['createRangeOn'](_0x179357));},{'priority':'low'}),_0x2000f9['on']('insertRows',(_0x4c9422,_0x62847e)=>{const [_0x4c7cc8,_0x4e5890={}]=_0x62847e;if(!_0x4f9f11)return;const _0x3ae346=_0x4e5890['at']||0x0,_0x3f67ad=_0x4e5890['rows']||0x1;_0x4f9f11['rowInsertionIndexes']=new Array(_0x3f67ad)['fill'](_0x3ae346)['map']((_0x1f1499,_0x56b47d)=>_0x1f1499+_0x56b47d);for(const {cell:_0x33491f}of _0x2000f9['createTableWalker'](_0x4c7cc8,{'startRow':_0x3ae346,'endRow':_0x3ae346+_0x3f67ad-0x1}))_0x4f9f11['rowInsertionRanges']['push'](_0x26ea85['model']['createRangeOn'](_0x33491f));},{'priority':'low'}),_0x3ed86c['descriptionFactory']['registerDescriptionCallback'](_0xd511a8=>{if(_0xd511a8['subType']&&_0xd511a8['subType']['startsWith']('tablePaste'))return _0xd511a8['previous']?{}:{'type':'insertion','content':o(_0x26ea85['locale'],'*Replace\x20table\x20cells*')};});const _0x4036e2=()=>!0x1;for(const _0x32cd62 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3ed86c['_suggestionFactory']['registerCustomCallback']('insertion',_0x32cd62,'join',_0x4036e2),_0x3ed86c['_suggestionFactory']['registerCustomCallback']('deletion',_0x32cd62,'join',_0x4036e2),_0x3ed86c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x32cd62,'join',_0x4036e2);_0x3ed86c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4036e2),_0x3ed86c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x13e10b,_0x414446,_0x44ceb4)=>{const _0x326ada=_0x13e10b['map'](_0x3783d0=>_0x3783d0['getContainedElement']())['filter'](_0x298e9b=>_0x298e9b),_0x3cb4aa=new Map(_0x326ada['map'](_0x485330=>[_0x485330,null]));if(_0x4f9f11){for(const {element:_0x4808b8,attributes:_0x208a86}of _0x4f9f11['cells'])_0x208a86&&_0x3cb4aa['set'](_0x4808b8,_0x208a86);}else{if(_0x44ceb4&&_0x44ceb4['markerAttributes'])for(const [_0x560fe5,_0xa89c72]of Object['entries'](_0x44ceb4['markerAttributes'])){const _0x13b2ea=_0x26ea85['model']['markers']['get'](_0x560fe5),_0x813cdf=_0x13b2ea?_0x13b2ea['getRange']()['getContainedElement']():null;_0x813cdf&&_0x3cb4aa['set'](_0x813cdf,_0xa89c72);}}_0x26ea85['model']['change'](_0xed16a6=>{for(const [_0x220cc9,_0x4e2066]of _0x3cb4aa)_0xed16a6['setAttributes']({...xe,..._0x4e2066},_0x220cc9);});});const _0x3769ab=(_0x4ff79f,_0x484e9a)=>{_0x3ed86c['_suggestionFactory']['registerCustomCallback'](_0x4ff79f,'tablePaste',_0x484e9a,(_0x69441d,_0x57102e,_0x4960bd)=>{_0x26ea85['model']['change'](_0x26c2eb=>{const _0x3950f8=[];for(const _0x414bb5 of _0x69441d){const _0x233e59=_0x414bb5['start']['nodeAfter'];_0x233e59['is']('element','tableCellSuggestion')&&_0x3950f8['push'](_0x233e59);}_0x3ed86c['_suggestionFactory']['getSuggestionCallback'](_0x4ff79f,null,_0x484e9a)(_0x69441d,_0x57102e,_0x4960bd);for(const _0x4fc71c of _0x3950f8)'$graveyard'!=_0x4fc71c['root']['rootName']&&_0x26c2eb['unwrap'](_0x4fc71c);});});};_0x3769ab('insertion','accept'),_0x3769ab('insertion','discard'),_0x3769ab('deletion','accept'),_0x3769ab('deletion','discard'),_0x3ed86c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4ad176=>{const _0x27dcc1=_0x4ad176['map'](_0x2679cd=>_0x2679cd['getContainedElement']()),_0x3f7788=_0x27dcc1[0x0]['findAncestor']('table'),{minRow:_0x5eb9b4,maxRow:_0x1ae917}=_0x1554e2['_getCoordsForCells'](_0x27dcc1);_0x2000f9['removeRows'](_0x3f7788,{'at':_0x5eb9b4,'rows':_0x1ae917-_0x5eb9b4+0x1});}),_0x3ed86c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x408099=>{const _0x424d1b=_0x408099['map'](_0x39d4ec=>_0x39d4ec['getContainedElement']()),_0x5f9edc=_0x424d1b[0x0]['findAncestor']('table'),{minColumn:_0x4f8e44,maxColumn:_0x306bc7}=_0x1554e2['_getCoordsForCells'](_0x424d1b);_0x2000f9['removeColumns'](_0x5f9edc,{'at':_0x4f8e44,'columns':_0x306bc7-_0x4f8e44+0x1});});const _0x4df38c=(_0x41b6ab,_0x39123a)=>{if(!_0x39123a['subType']||!_0x39123a['subType']['startsWith']('tablePaste'))return;const _0x5af8f0=_0x39123a['attributes']['tablePasteChainId'],_0x116d40=_0x3ed86c['getSuggestions']()['filter'](_0x3b1217=>_0x3b1217['isInContent']&&_0x3b1217['attributes']&&_0x3b1217['attributes']['tablePasteChainId']==_0x5af8f0);_0x116d40['length']&&_0x39123a['getAllAdjacentSuggestions']()['length']!=_0x116d40['length']&&_0x116d40['reduce']((_0x365ef2,_0x4cb34a)=>(_0x365ef2['next']=_0x4cb34a,_0x4cb34a['previous']=_0x365ef2,_0x4cb34a));};function _0x3d1b7d(_0x3ec34e,_0x40955e=!0x0){const {id:_0x41d05a,authorId:_0x82f522}=_0x3ed86c['_splitMarkerName'](_0x3ec34e['markerName']),_0x26af44=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3790e4=_0x3ed86c['activeMarkers']['includes'](_0x3ec34e['markerName']);return _0x3790e4&&_0x26af44['push']('ck-suggestion-marker--active'),{'classes':_0x26af44,'attributes':{'data-suggestion':_0x41d05a,'data-author-id':_0x82f522},'priority':_0x3790e4&&_0x40955e?0xbc2:0xbb8};}_0x3ed86c['on']('suggestionLoaded',_0x4df38c,{'priority':'high'}),_0x3ed86c['on']('suggestionUnloaded',_0x4df38c,{'priority':'high'}),_0x26ea85['model']['document']['registerPostFixer'](()=>{let _0x33de2e=!0x1;const _0x15be7a=Array['from'](_0x26ea85['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bd159,data:_0x50d014}of _0x15be7a){const {group:_0x5a881e,type:_0x3cb6a8,id:_0xfb589f}=_0x3ed86c['_splitMarkerName'](_0x2bd159);if('suggestion'!=_0x5a881e||'deletion'!=_0x3cb6a8||_0x50d014['oldRange'])continue;if(!_0x3ed86c['hasSuggestion'](_0xfb589f))continue;const _0x588665=_0x3ed86c['getSuggestion'](_0xfb589f)['getRanges'](),_0x232843=_0x26ea85['plugins']['get']('Users')['me'];for(const _0x38569c of _0x3ed86c['getSuggestions']()){if(!_0x38569c['isInContent']||_0x38569c['author']!=_0x232843)continue;if('formatBlock'!=_0x38569c['type']||'tablePasteCell'!=_0x38569c['subType'])continue;if(_0x38569c['getRanges']()['every'](_0x553080=>_0x588665['some'](_0xd6ba98=>_0xd6ba98['containsRange'](_0x553080,!0x0)))){for(const _0x2b64f9 of _0x38569c['getAllAdjacentSuggestions']())_0x2b64f9['isInContent']&&(_0x2b64f9['discard'](),_0x33de2e=!0x0);}}}return _0x33de2e;}),_0x26ea85['model']['document']['registerPostFixer'](_0x1d75ea=>{const _0x41ef6c=_0x26ea85['commands']['get']('redo');if(!_0x41ef6c||!_0x41ef6c['_createdBatches']['has'](_0x1d75ea['batch']))return!0x1;let _0x3fcb4d=!0x1;const _0x4e0958=_0x26ea85['plugins']['get']('Users')['me'],_0x4fbffa=_0x26ea85['model']['document']['differ']['getChanges'](),_0x26a54a=Array['from'](_0x26ea85['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x533df9,data:_0x4aa73c})=>{const {group:_0x42474b,subType:_0x23f50d,authorId:_0x4edb49}=_0x3ed86c['_splitMarkerName'](_0x533df9);return'suggestion'==_0x42474b&&'tablePaste'==_0x23f50d&&_0x4edb49==_0x4e0958['id']&&!_0x4aa73c['oldRange'];});for(const _0x58dce5 of _0x4fbffa){if('insert'!=_0x58dce5['type']||'tableCellSuggestion'!=_0x58dce5['name']||0x1!=_0x58dce5['length'])continue;const _0x304fd0=_0x1d75ea['createRange'](_0x58dce5['position'],_0x58dce5['position']['getShiftedBy'](0x1));if(!_0x26a54a['find'](({data:_0x2f61ad})=>_0x2f61ad['newRange']['isEqual'](_0x304fd0))){for(const {name:_0x3c342e,data:_0x4c5374}of _0x26a54a)if(_0x304fd0['containsRange'](_0x4c5374['newRange'])){_0x1d75ea['updateMarker'](_0x3c342e,{'range':_0x304fd0}),_0x3fcb4d=!0x0;break;}}}return _0x3fcb4d;}),_0x26ea85['model']['document']['registerPostFixer'](_0x995b01=>{let _0x30de04=!0x1;const _0x292d76=_0x26ea85['plugins']['get']('Users')['me'],_0x2c95c6=_0x3ed86c['getSuggestions']()['filter'](_0xd29c06=>_0xd29c06['isInContent']&&_0xd29c06['author']==_0x292d76),_0x4a866e=new Set(),_0x328cb6=new Set();for(const _0x34c999 of _0x2c95c6)if('tablePaste'==_0x34c999['subType'])for(const _0x5b4ef9 of _0x34c999['getMarkers']()){const _0x2a9986=_0x5b4ef9['getRange']()['getContainedElement']();if(_0x2a9986){if(_0x2a9986['is']('element','tableCellSuggestion')&&Oe(_0x2a9986)){_0x34c999['removeMarker'](_0x5b4ef9['name']),_0x4a866e['add'](_0x2a9986),_0x30de04=!0x0;const _0x5b3f6c=_0x2a9986['nextSibling'],_0x176c3d=_0x2a9986['previousSibling'],_0x16bd10=_0x5b3f6c&&_0x5b3f6c['is']('element','tableCellSuggestion'),_0xdb1940=_0x176c3d&&_0x176c3d['is']('element','tableCellSuggestion');_0x16bd10&&!_0x4a866e['has'](_0x5b3f6c)&&_0x328cb6['add'](_0x5b3f6c),_0xdb1940&&!_0x4a866e['has'](_0x176c3d)&&_0x328cb6['add'](_0x176c3d);}else _0x2a9986['is']('element','paragraph')&&_0x2a9986['isEmpty']&&(_0x34c999['removeMarker'](_0x5b4ef9['name']),_0x30de04=!0x0);}}else{if('tablePasteCell'==_0x34c999['subType']){if(!_0x34c999['attributes']||!_0x34c999['attributes']['tablePasteChainId'])continue;const _0x1577a1=_0x34c999['attributes']['markerAttributes'];if(_0x1577a1&&Object['keys'](_0x1577a1)['length'])continue;const _0x1c4f99=_0x34c999['attributes']['tablePasteChainId'];let _0x5432d9=!0x0,_0x146137=!0x0;for(const _0x12a2a7 of _0x2c95c6)if(_0x12a2a7['subType']&&_0x12a2a7['subType']['startsWith']('tablePaste')){if(!_0x12a2a7['attributes']['tablePasteChainId']){_0x146137=!0x1;break;}if(_0x12a2a7['id']!=_0x34c999['id']&&_0x12a2a7['attributes']['tablePasteChainId']==_0x1c4f99){_0x5432d9=!0x1;break;}}_0x146137&&_0x5432d9&&(_0x34c999['removeMarkers'](),_0x30de04=!0x0);}}for(const _0x23ea2e of _0x4a866e)_0x995b01['remove'](_0x23ea2e);for(const _0x46a9aa of _0x328cb6)_0x995b01['unwrap'](_0x46a9aa);return _0x30de04;}),_0x26ea85['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x134c92=>_0x3d1b7d(_0x134c92),'converterPriority':'high'}),_0x26ea85['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x183c25,_0x26a273)=>_0x26a273['options']['showSuggestionHighlights']?_0x3d1b7d(_0x183c25,!0x1):null,'converterPriority':'high'});const _0xea5ab0=_0x26ea85['editing']['view'];this['listenTo'](_0xea5ab0['document'],'clipboardOutput',(_0x452942,_0x1234ed)=>{const _0x578be0=[];for(const _0x21e699 of _0xea5ab0['createRangeIn'](_0x1234ed['content'])['getItems']())_0x21e699['is']('element','suggestion-td')&&_0x578be0['push'](_0x21e699);_0xea5ab0['change'](_0xb2622a=>{for(const _0x24b21c of _0x578be0)_0xb2622a['move'](_0xb2622a['createRangeIn'](_0x24b21c),_0xb2622a['createPositionBefore'](_0x24b21c)),_0xb2622a['remove'](_0x24b21c);});});}}function Oe(_0x444aa0){if(_0x444aa0['isEmpty'])return!0x0;const _0x1a307f=_0x444aa0['getChild'](0x0);return _0x1a307f['is']('element','paragraph')&&_0x1a307f['isEmpty'];}function Ue(_0xc9d39d,_0x257c1a={},_0x137b4e){for(const {isAnchor:_0x8575ac,cellHeight:_0x5b89c0,cellWidth:_0x19c309}of _0x137b4e['createTableWalker'](_0xc9d39d,{'includeAllSlots':!0x0,..._0x257c1a}))if(!_0x8575ac||0x1!=_0x5b89c0||0x1!=_0x19c309)return!0x1;return!0x0;}class Dt extends _0xccd55c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1d1e41=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d1e41['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1d1e41['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1d1e41['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d1e41['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1d1e41['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1d1e41['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xda1d68,_0x127af3){const _0x5502ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4850a1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x8e208=_0x127af3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x12e229=_0x4850a1['getColumnGroupElement'](_0x8e208);let _0x5bc6f4=_0x12e229?_0x4850a1['getTableColumnsWidths'](_0x12e229):null,_0x414e92=_0x8e208['getAttribute']('tableWidth')||null;const _0x2d6b01=_0x127af3['tableWidth']||_0x414e92,_0x54fa0f=_0x127af3['columnWidths']||_0x5bc6f4,_0x56962d=this['editor']['plugins']['get']('Users')['me'];for(const _0x17bf47 of _0x5502ca['getSuggestions']()){const _0xa8013a=_0x17bf47['getContainedElement']();if('resizeTable'===_0x17bf47['subType']&&_0xa8013a===_0x8e208){_0x17bf47['author']!==_0x56962d&&_0x17bf47['discard']();const _0x364696=_0x17bf47['data']['commandParams'];_0x414e92=_0x364696[0x0]['tableWidth'],_0x5bc6f4=_0x364696[0x0]['columnWidths'];break;}}_0xda1d68({'table':_0x8e208,'tableWidth':_0x2d6b01,'columnWidths':_0x54fa0f}),_0x5502ca['markBlockFormat'](_0x8e208,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x414e92,'columnWidths':_0x5bc6f4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1d22cc){if('formatBlock'!=_0x1d22cc['type']&&'formatInline'!=_0x1d22cc['type'])return;const {data:_0x5dee17}=_0x1d22cc;if(_0x5dee17&&'resizeTable'===_0x5dee17['formatGroupId']){const _0xe6f469='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xe6f469)};}}}class Mt extends _0xccd55c{['afterInit'](){const _0x3e0b3e=this['editor'];_0x3e0b3e['plugins']['has']('Template')&&_0x3e0b3e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0xccd55c{['afterInit'](){const _0x3afcb0=this['editor'];if(!_0x3afcb0['commands']['get']('insertTableOfContents'))return;_0x3afcb0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5855cd=_0x3afcb0['plugins']['get']('TrackChangesEditing'),_0xfcd76a=_0x3afcb0['locale'];_0x5855cd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1a4f0c=>o(_0xfcd76a,'ELEMENT_TABLE_OF_CONTENTS',_0x1a4f0c));}}class Bt extends _0xccd55c{['afterInit'](){const _0x393697=this['editor'];if(!_0x393697['plugins']['has']('Title'))return;const _0x55665c=_0x393697['plugins']['get']('TrackChangesEditing');_0x55665c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x393697['locale'],'ELEMENT_TITLE')),_0x393697['model']['document']['registerPostFixer'](_0x5190f5=>{let _0x342314=!0x1;const _0xccd604=Array['from'](_0x393697['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x428700,data:_0x270add}of _0xccd604){const {group:_0x23eb95}=_0x55665c['_splitMarkerName'](_0x428700);if('suggestion'!==_0x23eb95||!_0x270add['newRange'])continue;const _0x3997de=_0x270add['newRange'],_0x382d99=_0x3997de['end']['nodeBefore'];if(!_0x382d99||!_0x382d99['is']('element','title-content'))continue;if(!_0x3997de['start']['isTouching'](_0x3997de['end']))continue;const _0x382daa=_0x393697['model']['schema']['getNearestSelectionRange'](_0x3997de['end'],'forward');if(_0x382daa&&_0x382daa['isCollapsed']){const _0x2ffa5a=_0x5190f5['createRange'](_0x3997de['start'],_0x382daa['start']);_0x2ffa5a['isEqual'](_0x3997de)||(_0x5190f5['updateMarker'](_0x428700,{'range':_0x2ffa5a}),_0x342314=!0x0);}_0x342314||(_0x5190f5['removeMarker'](_0x428700),_0x342314=!0x0);}return _0x342314;});}}class Tt extends _0xccd55c{['afterInit'](){const _0x48526d=this['editor'],_0x5bd51a=_0x48526d['plugins']['get']('TrackChangesEditing');_0x48526d['plugins']['has']('Uploadcare')&&(_0x5bd51a['enableCommand']('uploadcare'),_0x48526d['plugins']['has']('UploadcareImageEdit')&&(_0x5bd51a['enableCommand']('uploadcareImageEdit'),_0x5bd51a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5bd51a['registerBlockAttribute']('uploadcareImageId'),_0x5bd51a['descriptionFactory']['registerDescriptionCallback'](_0xc9f70a=>{if('attribute'!=_0xc9f70a['type'])return;const {data:_0x10037f}=_0xc9f70a;return _0x10037f&&'uploadcareImageId'==_0x10037f['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xccd55c{['afterInit'](){const _0x58912f=this['editor'],_0x59ca0e=_0x58912f['plugins']['get']('TrackChangesEditing');_0x58912f['plugins']['has']('UndoEditing')&&(_0x59ca0e['enableCommand']('undo'),_0x59ca0e['enableCommand']('redo'));}}class Ot extends _0xccd55c{static get['requires'](){return[At];}['afterInit'](){const _0x2a8c8c=this['editor'];if(!_0x2a8c8c['plugins']['has']('TableCaptionEditing'))return;_0x2a8c8c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xccd55c{['tableProperties'];['tableCellProperties'];constructor(_0x56e5aa){super(_0x56e5aa),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1ddac3=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x528528 of this['tableProperties'])_0x1ddac3['enableCommand'](_0x528528,(_0x2834ce,_0x512d35)=>{const _0x1d5f45=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x528528,[_0x1d5f45],this['tableProperties'],'tableProperties',_0x2834ce,_0x512d35);});_0x1ddac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1ddac3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ddac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2cc8d0,_0x3bfc61)=>this['handleDiscardAction'](this['tableProperties'],_0x2cc8d0,_0x3bfc61)),_0x1ddac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5125c3 of this['tableCellProperties'])_0x1ddac3['enableCommand'](_0x5125c3,(_0xa51bdf,_0x4e9f56)=>{const _0xdb6f29=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5125c3,_0xdb6f29,this['tableCellProperties'],'tableCellProperties',_0xa51bdf,_0x4e9f56);});_0x1ddac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1ddac3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ddac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5087de,_0x2ea797)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5087de,_0x2ea797)),_0x1ddac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1ddac3['descriptionFactory']['registerDescriptionCallback'](_0x1169dc=>this['handleSuggestionDescription'](_0x1169dc)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1f2bc0,_0x380bb2,_0x16a2bf,_0x3a1d92,_0xa02314,_0x27bc01){const _0x55c234=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x27bc01['batch'],()=>{for(const _0x14883f of _0x380bb2){if(this['_getSuggestion'](_0x14883f,_0x3a1d92))_0xa02314(_0x27bc01);else{const _0x4afb11={};for(const _0x390b81 of _0x16a2bf){const _0x533de8=_0x14883f['getAttribute'](_0x390b81);void 0x0!==_0x533de8&&(_0x4afb11[_0x390b81]=_0x533de8);}_0xa02314(_0x27bc01),_0x55c234['markBlockFormat'](_0x14883f,{'commandParams':[_0x4afb11]},[],_0x3a1d92);}}});}['handleDiscardAction'](_0x2840c5,_0x1c83bd,_0x35e433){const _0x5945dd=_0x1c83bd[0x0]['start']['nodeAfter'],_0x505d5b=_0x35e433['commandParams'][0x0];this['editor']['model']['change'](_0x18ab1b=>{for(const _0xf22e5 of _0x2840c5)void 0x0!==_0x505d5b[_0xf22e5]?_0x18ab1b['setAttribute'](_0xf22e5,_0x505d5b[_0xf22e5],_0x5945dd):_0x18ab1b['removeAttribute'](_0xf22e5,_0x5945dd);});}['handleSuggestionDescription'](_0x2390a3){if(_0x2390a3['data'])switch(_0x2390a3['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'](_0x595275,_0x2a5298){const _0x348a87=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3c2732 of _0x348a87['getSuggestions']({'skipNotAttached':!0x0})){const _0x1ebe35=_0x3c2732['getContainedElement']();if(_0x3c2732['subType']===_0x2a5298&&_0x1ebe35===_0x595275)return _0x3c2732;}return null;}['_registerTablePropertiesAttributes'](){const _0x4d2954=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37d50a=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x48d4f9 of _0x37d50a){const _0x323cc9=_0x48d4f9['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4d2954['registerBlockAttribute'](_0x48d4f9),_0x4d2954['descriptionFactory']['registerAttributeLabel'](_0x48d4f9,o(this['editor']['locale'],'FORMAT_'+_0x323cc9));}}}class Rt extends _0xccd55c{['afterInit'](){const _0x2d4d0c=this['editor'];if(!_0x2d4d0c['plugins']['has']('LineHeight'))return;const _0x405f9b=_0x2d4d0c['plugins']['get']('TrackChangesEditing'),_0x218b52=_0x2d4d0c['locale'];_0x405f9b['enableDefaultAttributesIntegration']('lineHeight'),_0x405f9b['registerBlockAttribute']('lineHeight'),_0x405f9b['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x218b52,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xccd55c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x1c60de,_0x3bc0b2,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4881d9){super(_0x4881d9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x54f101,_0x4217c8,_0x3c25f2,_0x2c616d)=>{this['_model']['change'](()=>{for(const _0x1a8c47 of[..._0x2c616d,..._0x3c25f2])this['_model']['markers']['has'](_0x1a8c47)&&_0x4881d9['editing']['reconvertMarker'](_0x1a8c47);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4881d9['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(),_0x4881d9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4881d9['config']['get']('trackChanges.trackFormatChanges'),_0x4881d9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4881d9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x4881d9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xa46894=this['editor'],_0x2d1068=(_0x4cbb20,_0x294d56)=>{if('attribute'!=_0x4cbb20)return'ck-suggestion-marker-'+_0x4cbb20;const _0x298a0c=_0x294d56['split']('|')[0x0];return this['_isBlockAttribute'](_0x298a0c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xa46894['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1194a4=>{const {id:_0x3a7a38,authorId:_0x43faf6,type:_0x449026,subType:_0x167cbb}=this['_splitMarkerName'](_0x1194a4['markerName']),_0x1f467b=['ck-suggestion-marker',_0x2d1068(_0x449026,_0x167cbb)];let _0xc5b771=0xbb8;return this['activeMarkers']['includes'](_0x1194a4['markerName'])&&(_0x1f467b['push']('ck-suggestion-marker--active'),_0xc5b771=0xbc2),'deletion'==_0x449026&&(_0xc5b771+=0x5),{'classes':_0x1f467b,'attributes':{'data-suggestion':_0x3a7a38,'data-author-id':_0x43faf6},'priority':_0xc5b771};}}),_0xa46894['conversion']['for']('dataDowncast')['add'](_0x31f36f=>{_0x31f36f['on']('addMarker:suggestion',(_0x4f8fd0,_0x4666ba,_0x572fe7)=>{if(!_0x572fe7['options']['showSuggestionHighlights'])return;const _0x580c63=_0x4666ba['item'];if(!_0x580c63)return;const _0x33cbcd=_0x572fe7['mapper']['toViewElement'](_0x580c63);_0xa46894['model']['schema']['isObject'](_0x580c63)&&_0x33cbcd&&!_0x33cbcd['getCustomProperty']('widget')&&_0x33cbcd['is']('containerElement')&&_0xc4712e(_0x33cbcd,_0x572fe7['writer']);},{'priority':'high'});}),_0xa46894['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x288b92,_0x3ed205)=>{if(!_0x3ed205['options']['showSuggestionHighlights'])return null;const {id:_0x5dacbd,authorId:_0x20cf2d,type:_0x1539a6,subType:_0x298200}=this['_splitMarkerName'](_0x288b92['markerName']);return{'classes':['ck-suggestion-marker',_0x2d1068(_0x1539a6,_0x298200)],'priority':0xbb8,'attributes':{'data-suggestion':_0x5dacbd,'data-author-id':_0x20cf2d}};}});const _0x2b0bbd=({showActiveMarkers:_0x24f42d=!0x0,isAttributeSuggestion:_0x5cc811=!0x1}={})=>(_0x569d55,_0x22fa7a,_0x1e848c)=>{if(!_0x22fa7a['item'])return;const {id:_0x7ead43,authorId:_0x47c6c8}=this['_splitMarkerName'](_0x22fa7a['markerName']);if(_0x5cc811){const _0x2fd0a7=this['_suggestions']['get'](_0x7ead43),_0x5f03a8=this['_getAttributeKey'](_0x2fd0a7);if(!this['_isBlockAttribute'](_0x5f03a8))return;}if(_0x22fa7a['item']['is']('selection'))return void _0x1e848c['consumable']['consume'](_0x22fa7a['item'],_0x569d55['name']);const _0x4b6534=_0x1e848c['mapper']['toViewElement'](_0x22fa7a['item']);if(_0x22fa7a['item']['is']('element')&&_0xa46894['model']['schema']['isBlock'](_0x22fa7a['item'])&&!_0x4b6534['getCustomProperty']('addHighlight')){_0x1e848c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4b6534),_0x1e848c['writer']['setAttribute']('data-suggestion',_0x7ead43,_0x4b6534),_0x1e848c['writer']['setAttribute']('data-author-id',_0x47c6c8,_0x4b6534),_0x1e848c['mapper']['bindElementToMarker'](_0x4b6534,_0x22fa7a['markerName']),_0x24f42d&&(this['activeMarkers']['includes'](_0x22fa7a['markerName'])?_0x1e848c['writer']['addClass']('ck-suggestion-marker--active',_0x4b6534):_0x1e848c['writer']['removeClass']('ck-suggestion-marker--active',_0x4b6534));for(const _0x45c4cf of _0xa46894['model']['createRangeIn'](_0x22fa7a['item'])['getItems']())_0x1e848c['consumable']['consume'](_0x45c4cf,_0x569d55['name']);_0x1e848c['consumable']['consume'](_0x22fa7a['item'],_0x569d55['name']);}};_0xa46894['conversion']['for']('dataDowncast')['add'](_0x290c44=>{_0x290c44['on']('addMarker:suggestion:formatBlock',(_0x56a043,_0x7553d9,_0x603492)=>{_0x603492['options']['showSuggestionHighlights']&&_0x2b0bbd({'showActiveMarkers':!0x1})(_0x56a043,_0x7553d9,_0x603492);},{'priority':'highest'});}),_0xa46894['conversion']['for']('dataDowncast')['add'](_0x263445=>{_0x263445['on']('addMarker:suggestion:attribute',(_0x372f9b,_0x3ba9bc,_0x57726a)=>{_0x57726a['options']['showSuggestionHighlights']&&_0x2b0bbd({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x372f9b,_0x3ba9bc,_0x57726a);},{'priority':'highest'});}),_0xa46894['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x7133c7,_0x40aecf)=>{if(_0x40aecf['options']['showSuggestionHighlights']){const {id:_0x1b4a86,authorId:_0x2e784d}=this['_splitMarkerName'](_0x7133c7);return _0x7133c7['includes'](':split')||_0x7133c7['includes'](':merge')?{'group':'suggestion','name':_0x7133c7['substr'](0xb),'attributes':{'data-suggestion':_0x1b4a86,'data-author-id':_0x2e784d}}:null;}return{'group':'suggestion','name':_0x7133c7['substr'](0xb)};}}),_0xa46894['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5568fe,{writer:_0x5c62be})=>{let _0x4342c7='suggestion:'+_0x5568fe['getAttribute']('suggestion-type')+':'+_0x5568fe['getAttribute']('id');return _0x5568fe['getAttribute']('marker-count')&&(_0x4342c7+=':'+_0x5568fe['getAttribute']('marker-count')),_0x5c62be['createElement']('$marker',{'data-name':_0x4342c7});}}),_0xa46894['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xa46894['conversion']['for']('editingDowncast')['add'](_0x45fdcf=>{_0x45fdcf['on']('addMarker:suggestion:formatBlock',_0x2b0bbd(),{'priority':'high'});}),_0xa46894['conversion']['for']('editingDowncast')['add'](_0x29007e=>{_0x29007e['on']('addMarker:suggestion:attribute',_0x2b0bbd({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xa46894['conversion']['for']('editingDowncast')['add'](_0x4807ac=>{_0x4807ac['on']('removeMarker:suggestion:formatBlock',(_0x20d0f8,_0x217833,_0x5c4887)=>{const _0x2f9848=_0x5c4887['mapper']['markerNameToElements'](_0x217833['markerName']);if(_0x2f9848){for(const _0x4d6cda of _0x2f9848)_0x4d6cda['getCustomProperty']('addHighlight')||(_0x5c4887['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4d6cda),_0x5c4887['writer']['removeAttribute']('data-suggestion',_0x4d6cda),_0x5c4887['writer']['removeAttribute']('data-author-id',_0x4d6cda),_0x5c4887['mapper']['unbindElementFromMarkerName'](_0x4d6cda,_0x217833['markerName']));}},{'priority':'high'});}),_0xa46894['conversion']['for']('editingDowncast')['add'](_0x40699d=>{_0x40699d['on']('removeMarker:suggestion:attribute',(_0x5e3e38,_0x52902c,_0x2d3b18)=>{const _0x451120=_0x2d3b18['mapper']['markerNameToElements'](_0x52902c['markerName']);if(!_0x451120)return;const {id:_0x8ca5a5}=this['_splitMarkerName'](_0x52902c['markerName']),_0x4b3613=this['_suggestions']['get'](_0x8ca5a5),_0x38f65b=this['_getAttributeKey'](_0x4b3613);if(this['_isBlockAttribute'](_0x38f65b)){for(const _0x362d52 of _0x451120)_0x362d52['getCustomProperty']('addHighlight')||(_0x2d3b18['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x362d52),_0x2d3b18['writer']['removeAttribute']('data-suggestion',_0x362d52),_0x2d3b18['writer']['removeAttribute']('data-author-id',_0x362d52),_0x2d3b18['mapper']['unbindElementFromMarkerName'](_0x362d52,_0x52902c['markerName']));}},{'priority':'high'});}),_0xa46894['model']['document']['registerPostFixer'](_0x4fb545=>{let _0x3aa184=!0x1;const _0x36806b=Array['from'](_0xa46894['model']['document']['differ']['getChangedMarkers']()),_0x54b81d=new Set();for(const {name:_0x5e266c,data:_0x3eb5cc}of _0x36806b){const {group:_0x67e938,type:_0x393fd8,subType:_0x4a2409,id:_0x537889}=this['_splitMarkerName'](_0x5e266c);if('suggestion'!==_0x67e938)continue;const _0x426d81=this['_suggestions']['get'](_0x537889);if(null!=_0x3eb5cc['newRange']){'formatInline'==_0x393fd8&&(_0x3aa184=_0x3aa184||Gt(_0x3eb5cc['newRange'],_0x5e266c,_0x4fb545,_0xa46894['model']['schema']));const _0x183e2c='attribute'==_0x393fd8&&this['_isBlockAttribute'](_0x4a2409['split']('|')[0x0]);if(_0x3eb5cc['newRange']['isCollapsed']||'$graveyard'==_0x3eb5cc['newRange']['root']['rootName']||'formatBlock'==_0x393fd8&&!Jt(_0x3eb5cc['newRange'])||_0x183e2c&&!Jt(_0x3eb5cc['newRange'])||'deletion'==_0x393fd8&&!Kt(_0x3eb5cc['newRange']))_0x4fb545['removeMarker'](_0x5e266c),_0x3aa184=!0x0;else{if(!_0x426d81||!_0x426d81['isInContent'])continue;if(_0x3eb5cc['newRange']&&_0x3eb5cc['oldRange']&&_0x3eb5cc['newRange']['isEqual'](_0x3eb5cc['oldRange']))continue;_0x54b81d['add'](_0x426d81);}}}return _0x54b81d['size']>0x0&&(_0x3aa184=!!this['_joinWithAdjacentSuggestions'](_0x54b81d)||_0x3aa184),_0x3aa184;}),_0xa46894['model']['document']['registerPostFixer'](_0x9323ce=>{let _0x551441=!0x1;for(const _0x19a768 of _0xa46894['model']['document']['differ']['getChanges']())if('insert'==_0x19a768['type'])for(const _0x391745 of this['_suggestions']['values']()){if(_0x391745['isMultiRange']||!_0x391745['isInContent'])continue;const _0x3ef803='formatBlock'==_0x391745['type'],_0x1d5a6d=this['_getAttributeKey'](_0x391745),_0x9ad2=_0x1d5a6d&&this['_isBlockAttribute'](_0x1d5a6d);if(!_0x3ef803&&!_0x9ad2)continue;const _0x3b7936=_0x391745['getFirstRange']();if(_0x3b7936['start']['parent']!=_0x3b7936['end']['parent']&&!_0x3b7936['end']['isAtEnd']){const _0x154530=_0xa46894['model']['createPositionAt'](_0x3b7936['start']['nodeAfter'],'end'),_0x3312d7=_0xa46894['model']['createRange'](_0x3b7936['start'],_0x154530);_0x9323ce['updateMarker'](_0x391745['getFirstMarker'](),{'range':_0x3312d7}),_0x551441=!0x0;}}return _0x551441;}),_0xa46894['model']['document']['registerPostFixer'](_0x2c9329=>this['_processAttributeChanges'](_0x2c9329)),_0xa46894['model']['document']['registerPostFixer'](_0x42ea7a=>!_0x42ea7a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x42ea7a)),_0xa46894['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xa46894['model']['document']['on']('change:data',(_0x190d30,_0x2af8a5)=>{if(!_0x2af8a5['isLocal']||_0x2af8a5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2f63d8=_0xa46894['model']['document']['differ']['getChanges']();if(0x0==_0x2f63d8['length'])return;const _0x36a262=[],_0x5a04a0=_0x2f63d8['filter'](_0x3b4af3=>'attribute'==_0x3b4af3['type']),_0x3d5b79=_0x2f63d8['filter'](_0x2dcb2d=>'insert'==_0x2dcb2d['type']&&'$text'!=_0x2dcb2d['name']);for(const _0x206dac of _0x5a04a0)this['_isRegisteredAttribute'](_0x206dac['attributeKey'])&&_0x36a262['push']({'key':_0x206dac['attributeKey'],'newValue':_0x206dac['attributeNewValue'],'oldValue':_0x206dac['attributeOldValue'],'range':Ht(_0x206dac['range'],_0xa46894['model'])});for(const _0x4e7d06 of _0x3d5b79){if('rename'!=_0x4e7d06['action']&&'refresh'!=_0x4e7d06['action'])continue;const _0x40a946=qt(_0x4e7d06['position']['nodeAfter'],_0xa46894['model']),_0x618f0b=_0x4e7d06['before'];'rename'==_0x4e7d06['action']&&_0x36a262['push']({'key':m,'newValue':_0x4e7d06['name'],'oldValue':_0x618f0b['name'],'range':_0x40a946});for(const [_0x381b98,_0x8eb814]of _0x618f0b['attributes']){if(!this['_isRegisteredAttribute'](_0x381b98))continue;const _0x124c93=_0x4e7d06['attributes']['get'](_0x381b98);_0x8eb814!==_0x124c93&&_0x36a262['push']({'key':_0x381b98,'newValue':_0x124c93,'oldValue':_0x8eb814,'range':_0x40a946});}for(const [_0x49c3b0,_0x1ac1a2]of _0x4e7d06['attributes'])this['_isRegisteredAttribute'](_0x49c3b0)&&(_0x618f0b['attributes']['has'](_0x49c3b0)||_0x36a262['push']({'key':_0x49c3b0,'newValue':_0x1ac1a2,'oldValue':null,'range':_0x40a946}));}0x0!=_0x36a262['length']&&_0xa46894['model']['enqueueChange'](_0x2af8a5,_0x462ea7=>{const _0x594965=_0x427844();for(const {range:_0x4bfb29,key:_0x203ddc,oldValue:_0x424337,newValue:_0x8174c6}of _0x36a262)this['markAttributeChange'](_0x4bfb29,_0x203ddc,_0x424337,_0x8174c6,{'groupId':_0x594965});this['_reduceExistingSuggestions'](_0x462ea7,_0x36a262);});},{'priority':'lowest'}),_0xa46894['model']['markers']['on']('update:suggestion',(_0x271679,_0x2e8280,_0x5d671d)=>{if(null==_0x5d671d){const {id:_0x5094be}=this['_splitMarkerName'](_0x2e8280['name']),_0x557e3d=this['_suggestions']['get'](_0x5094be);_0x557e3d&&_0x557e3d['addMarkerName'](_0x2e8280['name']);}}),_0xa46894['model']['document']['on']('change:data',()=>{const _0x55598f=Array['from'](_0xa46894['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4f0ba5=>'suggestion'===this['_splitMarkerName'](_0x4f0ba5['name'])['group']);if(0x0===_0x55598f['length'])return;_0x55598f['sort']((_0x329c59,_0x59e2d9)=>{const _0x4ea2ae=_0x329c59['data']['oldRange'],_0xe016e6=_0x59e2d9['data']['oldRange'];return null===_0x4ea2ae&&null===_0xe016e6?0x0:null===_0x4ea2ae&&null!==_0xe016e6?-0x1:null!==_0x4ea2ae&&null===_0xe016e6?0x1:_0x4ea2ae['start']['isBefore'](_0xe016e6['start'])?-0x1:0x1;});const _0xe9bfd7=new Set(),_0x1111c6=new Set();for(const {name:_0x1117af,data:_0x1d9e35}of _0x55598f){const {id:_0x5c40bb}=this['_splitMarkerName'](_0x1117af);if(null===_0x1d9e35['oldRange']){const _0x1c285d=this['_handleNewSuggestionMarker'](_0x1117af);_0x1111c6['add'](_0x1c285d);}else{const _0x39f918=this['_suggestions']['get'](_0x5c40bb);null!==_0x1d9e35['newRange']||_0x39f918['isInContent']?(_0xe9bfd7['add'](_0x39f918['head']),_0x1111c6['add'](_0x39f918)):this['_removeSuggestion'](_0x39f918);}}_0x1111c6['size']>0x0&&this['_refreshSuggestionsChain'](_0x1111c6);for(const _0x7e4e79 of _0xe9bfd7)this['fire']('suggestionChanged',_0x7e4e79);}),_0xa46894['model']['on']('applyOperation',(_0x17ef6f,_0x1627ed)=>{const _0x4f7f55=_0x1627ed[0x0];if(!this['_suggestions']['size'])return;if(!_0x4f7f55['isDocumentOperation'])return;if(_0x4f7f55['batch']['isUndo']||!_0x4f7f55['batch']['isLocal'])return;let _0x774b74,_0x384101;switch(_0x4f7f55['type']){case'insert':_0x774b74=_0xa46894['model']['createPositionAt'](_0x4f7f55['position']),_0x384101=_0x774b74['getShiftedBy'](_0x4f7f55['howMany']);break;case'split':_0x774b74=_0xa46894['model']['createPositionAt'](_0x4f7f55['splitPosition']),_0x384101=_0xa46894['model']['createPositionAt'](_0x4f7f55['moveTargetPosition']);break;case'move':_0x774b74=_0xa46894['model']['createPositionAt'](_0x4f7f55['targetPosition']),_0x384101=_0x774b74['getShiftedBy'](_0x4f7f55['howMany']);break;default:return;}const _0x2945c0=_0xa46894['model']['createRange'](_0x774b74,_0x384101);_0xa46894['model']['change'](()=>{for(const {suggestion:_0x4f911d,meta:_0x3feab3}of this['_findSuggestions'](_0x2945c0)){if(_0x4f911d['isMultiRange'])continue;if('formatInline'==_0x4f911d['type'])continue;const _0x1b7adc=this['_getAttributeKey'](_0x4f911d);if(_0x1b7adc&&this['_isBlockAttribute'](_0x1b7adc)&&'split'!=_0x4f7f55['type'])continue;const _0x16b926=_0x4f911d['data']&&_0x4f911d['data']['multipleBlocks'];('formatBlock'!=_0x4f911d['type']||'split'==_0x4f7f55['type']&&!_0x16b926)&&(_0x3feab3['containsRangeInObject']||'insertion'==_0x4f911d['type']&&_0x3feab3['isOwn']||_0x4f911d['getFirstRange']()['containsRange'](_0x2945c0)&&this['_breakSuggestionMarker'](_0x4f911d,_0x774b74,_0x384101));}});},{'priority':'lowest'}),_0xa46894['model']['on']('deleteContent',(_0x2b3893,_0x5ae73a)=>{const _0x2fc9d2=_0x5ae73a[0x0],_0x1f4966=_0x5ae73a[0x1];if(_0x1f4966&&_0x1f4966['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2fc9d2['isCollapsed'])return;const _0x4491b8=_0xa46894['model']['schema'],{start:_0x47bee7,end:_0x4497eb}=_0x2fc9d2['getFirstRange'](),_0x5dbdfe=_0x47bee7['nodeAfter']&&_0x4491b8['isLimit'](_0x47bee7['nodeAfter'])?null:_0x4491b8['getNearestSelectionRange'](_0x47bee7,'forward'),_0x56ea50=_0x4497eb['nodeBefore']&&_0x4491b8['isLimit'](_0x4497eb['nodeBefore'])?null:_0x4491b8['getNearestSelectionRange'](_0x4497eb,'backward'),_0xd8781f=_0xa46894['model']['createRange'](_0x5dbdfe?_0x5dbdfe['start']:_0x47bee7,_0x56ea50?_0x56ea50['end']:_0x4497eb);_0xa46894['model']['change'](_0x26716a=>{this['markDeletion'](_0xd8781f);const _0x15058b=_0xa46894['model']['schema']['getNearestSelectionRange'](_0xd8781f['start']);_0x2fc9d2['is']('documentSelection')?_0x26716a['setSelection'](_0x15058b):_0x2fc9d2['setTo'](_0x15058b);}),_0x2b3893['stop']();},{'priority':_0x850491['normal']+0xa}),_0xa46894['model']['on']('insertContent',(_0xf8e3e4,_0x372801)=>{const _0x351353=_0x372801[_0x372801['length']-0x1];_0x351353&&_0x351353['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xa46894['model']['change'](()=>{let _0x669ef8=_0xa46894['model']['insertContent'](_0x372801[0x0],_0x372801[0x1],_0x372801[0x2],{'forceDefaultExecution':!0x0});if(!_0x669ef8)return;_0xf8e3e4['return']=_0x669ef8['clone']();const _0x1523b8=_0x669ef8['end']['nodeBefore'],_0x28025b=_0xa46894['model']['schema'];_0x1523b8&&_0x28025b['isBlock'](_0x1523b8)&&!_0x28025b['isObject'](_0x1523b8)&&(_0x669ef8=_0xa46894['model']['createRange'](_0x669ef8['start'],_0xa46894['model']['createPositionAt'](_0x1523b8,'end'))),this['markInsertion'](_0x669ef8);}),_0xf8e3e4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x36e49c=new D(_0xa46894,this['_suggestions']);_0xa46894['commands']['add']('acceptSuggestion',_0x36e49c),this['enableCommand']('acceptSuggestion');const _0x3ffb9d=new M(_0xa46894,this['_suggestions']);_0xa46894['commands']['add']('discardSuggestion',_0x3ffb9d),this['enableCommand']('discardSuggestion'),_0xa46894['commands']['add']('acceptAllSuggestions',new $(_0xa46894,_0x36e49c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xa46894['commands']['add']('discardAllSuggestions',new $(_0xa46894,_0x3ffb9d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xa46894['commands']['add']('acceptSelectedSuggestions',new B(_0xa46894,_0x36e49c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xa46894['commands']['add']('discardSelectedSuggestions',new B(_0xa46894,_0x3ffb9d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x20f4bf=_0xa46894['plugins']['get']('CommentsRepository');this['listenTo'](_0x20f4bf,'addComment',(_0x1f15f7,{threadId:_0x31dd27})=>{const _0xf25c72=this['_suggestions']['get'](_0x31dd27);_0xf25c72&&_0xf25c72['commentThread']&&0x1===_0xf25c72['commentThread']['length']&&this['_updateSuggestionData'](_0x31dd27,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x20f4bf,'removeComment',(_0x2521df,{threadId:_0x3adfcc})=>{const _0x5e6ff0=this['_suggestions']['get'](_0x3adfcc);_0x5e6ff0&&_0x5e6ff0['commentThread']&&!_0x5e6ff0['commentThread']['length']&&this['_updateSuggestionData'](_0x3adfcc,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x39966b){const _0x3b1585=_0x490000([0x4a,0x79,0x51,0x44,0x74,0x35,0x56,0x58,0x6b,0x49,0x57,0x30,0x6f,0x6c,0x63,0x33,0x53,0x32,0x6e,0x65,0x52,0x37,0x4e,0x42,0x62,0x39,0x41,0x6a,0x46,0x55,0x69,0x76,0x48,0x54,0x4b,0x59,0x73,0x31,0x68,0x77,0x75,0x4c,0x4d,0x61,0x64,0x45,0x50,0x72,0x71,0x34,0x7a,0x43,0x47,0x66,0x38,0x78,0x5a,0x67,0x70,0x6d,0x36,0x4f]),_0x2a4779=0x20d32aad,_0x4a0a8c=0x20d4461d^_0x2a4779,_0x362a8f=window[_0x490000([0x44,0x61,0x74,0x65])][_0x490000([0x6e,0x6f,0x77])](),_0x2aef16=_0x39966b[_0x490000([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3cc430=new window[(_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5220ca=>{_0x2aef16[_0x490000([0x6f,0x6e,0x63,0x65])](_0x490000([0x72,0x65,0x61,0x64,0x79]),_0x5220ca);}),_0x5b1219={[_0x490000([0x6b,0x74,0x79])]:_0x490000([0x45,0x43]),[_0x490000([0x75,0x73,0x65])]:_0x490000([0x73,0x69,0x67]),[_0x490000([0x63,0x72,0x76])]:_0x490000([0x50,0x2d,0x32,0x35,0x36]),[_0x490000([0x78])]:_0x490000([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x490000([0x79])]:_0x490000([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x490000([0x61,0x6c,0x67])]:_0x490000([0x45,0x53,0x32,0x35,0x36])},_0xfba685=_0x2aef16[_0x490000([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x490000([0x67,0x65,0x74])](_0x490000([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3969ea(){let _0x283bff,_0x4600e4=null,_0x5f30fc=null;try{if(_0xfba685==_0x490000([0x47,0x50,0x4c]))return _0x490000([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x283bff=_0x45ad5b(),!_0x283bff)return _0x490000([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x283bff[_0x490000([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5f30fc=_0x57901e(_0x283bff[_0x490000([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x283bff[_0x490000([0x6a,0x74,0x69])])),await _0x4a1e8d()?_0x52e3d0()?_0x5214bc()?_0x490000([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x308d24()?(_0x283bff[_0x490000([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x490000([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4600e4=_0x3a5ff5(_0x490000([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x283bff[_0x490000([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x490000([0x74,0x72,0x69,0x61,0x6c])&&(_0x4600e4=_0x3a5ff5(_0x490000([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5b6edd()):_0x490000([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x490000([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x490000([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x490000([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5214bc(){const _0x3a50a3=[_0x490000([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x490000([0x74,0x72,0x69,0x61,0x6c])][_0x490000([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x283bff[_0x490000([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x362a8f/0x3e8:0xe10*_0x4a0a8c;return _0x283bff[_0x490000([0x65,0x78,0x70])]<_0x3a50a3;}function _0x52e3d0(){const _0x3ac7fe=_0x283bff[_0x490000([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3ac7fe)return!0x1;if(_0x3ac7fe[_0x490000([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x490000([0x2a])))return!0x0;if(_0x3ac7fe[_0x490000([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x490000([0x54,0x43])))return!0x0;if(_0x3ac7fe[_0x490000([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x490000([0x52,0x54,0x43]))){if(_0x48ead5())return!0x0;if(_0xa5db03()||_0x4cc811())return!0x0;}return!0x1;}function _0x308d24(){const _0x47a35e=_0x283bff[_0x490000([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47a35e||0x0==_0x47a35e[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4f30e2}=new URL(window[_0x490000([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x47a35e[_0x490000([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f30e2))return!0x0;const _0x14c2cd=_0x4f30e2[_0x490000([0x73,0x70,0x6c,0x69,0x74])](_0x490000([0x2e]));return _0x47a35e[_0x490000([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x437b87=>_0x437b87[_0x490000([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x490000([0x2a])))[_0x490000([0x6d,0x61,0x70])](_0x5cfe77=>_0x5cfe77[_0x490000([0x73,0x70,0x6c,0x69,0x74])](_0x490000([0x2e])))[_0x490000([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x483023=>_0x483023[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x14c2cd[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x490000([0x6d,0x61,0x70])](_0xa4f096=>Array(_0x14c2cd[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xa4f096[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x490000([0x66,0x69,0x6c,0x6c])](_0xa4f096[0x0]===_0x490000([0x2a])?_0x490000([0x2a]):'')[_0x490000([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xa4f096))[_0x490000([0x73,0x6f,0x6d,0x65])](_0x40cd9f=>_0x14c2cd[_0x490000([0x65,0x76,0x65,0x72,0x79])]((_0xbb4310,_0x4b3960)=>_0x40cd9f[_0x4b3960]===_0xbb4310||_0x40cd9f[_0x4b3960]===_0x490000([0x2a])));}function _0x5b6edd(){return _0x4600e4&&_0x5f30fc?new window[(_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x407222,_0x43cbe5)=>{_0x4600e4[_0x490000([0x74,0x68,0x65,0x6e])](_0x407222,_0x43cbe5),_0x5f30fc[_0x490000([0x74,0x68,0x65,0x6e])](_0xa8aad5=>{_0xa8aad5!=_0x490000([0x56,0x61,0x6c,0x69,0x64])&&_0x407222(_0xa8aad5);},_0x43cbe5);}):_0x4600e4||_0x5f30fc||_0x490000([0x56,0x61,0x6c,0x69,0x64]);}}function _0x57901e(_0x428ca1,_0xd6823e){return new window[(_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cc81d=>{if(_0x33beb9())return _0x1cc81d(_0x490000([0x56,0x61,0x6c,0x69,0x64]));_0x1c1dda(),_0x2aef16[_0x490000([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x490000([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c5693=!0x1;const _0x7828f8=_0x427844();function _0x47e3bc(_0x2c4312){return!!_0x2c4312&&(typeof _0x2c4312===_0x490000([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2c4312===_0x490000([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2c4312[_0x490000([0x74,0x68,0x65,0x6e])]===_0x490000([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2c4312[_0x490000([0x63,0x61,0x74,0x63,0x68])]===_0x490000([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x177f5e(_0x1bec76){_0x17b204(_0x1bec76)[_0x490000([0x74,0x68,0x65,0x6e])](_0x559cd4=>{if(!_0x559cd4||_0x559cd4[_0x490000([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x490000([0x6f,0x6b]))return _0x490000([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x516357(_0x42f9d8(_0x7828f8+_0xd6823e))!=_0x559cd4[_0x490000([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x490000([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x490000([0x56,0x61,0x6c,0x69,0x64]);})[_0x490000([0x74,0x68,0x65,0x6e])](_0x4f32c1=>(_0x3bdf63(),_0x4f32c1),()=>{const _0x3e5768=_0x323146();return null==_0x3e5768?(_0x3bdf63(),_0x490000([0x56,0x61,0x6c,0x69,0x64])):_0x490000(_0x362a8f-_0x3e5768>(0x4dfaead^_0x2a4779)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x490000([0x74,0x68,0x65,0x6e])](_0x1cc81d)[_0x490000([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1cc81d(_0x490000([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5f225f=0x20e5c42d^_0x2a4779;function _0x3bdf63(){const _0x4b3dc4=_0x490000([0x6c,0x6c,0x63,0x74,0x2d])+_0x516357(_0x42f9d8(_0x428ca1)),_0x1f8164=_0x260fab(_0x516357(window[_0x490000([0x4d,0x61,0x74,0x68])][_0x490000([0x63,0x65,0x69,0x6c])](_0x362a8f/_0x5f225f)));window[_0x490000([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x490000([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b3dc4,_0x1f8164);}function _0x323146(){const _0x18668d=_0x490000([0x6c,0x6c,0x63,0x74,0x2d])+_0x516357(_0x42f9d8(_0x428ca1)),_0x5e286a=window[_0x490000([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x490000([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18668d);return _0x5e286a?window[_0x490000([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x260fab(_0x5e286a),0x10)*_0x5f225f:null;}function _0x17b204(_0x125a4b){return new window[(_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x349b54,_0x2fb5a6)=>{_0x125a4b[_0x490000([0x74,0x68,0x65,0x6e])](_0x349b54,_0x2fb5a6),window[_0x490000([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2fb5a6,0x20d2fe6d^_0x2a4779);});}}_0x2aef16[_0x490000([0x6f,0x6e])](_0x490000([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x47d7b5,_0x5cdc38)=>{if(_0x5cdc38[0x0]!=_0x428ca1)return _0x1cc81d(_0x490000([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5cdc38[0x1]={..._0x5cdc38[0x1],[_0x490000([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x7828f8};},{[_0x490000([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x490000([0x68,0x69,0x67,0x68])}),_0x2aef16[_0x490000([0x6f,0x6e])](_0x490000([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3249cc=>{_0x47e3bc(_0x3249cc[_0x490000([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c5693=!0x0,_0x177f5e(_0x3249cc[_0x490000([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x490000([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x490000([0x6c,0x6f,0x77])}),_0x3cc430[_0x490000([0x74,0x68,0x65,0x6e])](()=>{_0x5c5693||_0x1cc81d(_0x490000([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x33beb9(){return _0x2aef16[_0x490000([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x490000([0x76,0x69,0x65,0x77])][_0x490000([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x490000([0x61,0x75,0x74,0x6f]);}function _0x1c1dda(){_0x2aef16[_0x490000([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x490000([0x76,0x69,0x65,0x77])][_0x490000([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x490000([0x61,0x75,0x74,0x6f]);}}function _0x3a5ff5(_0xd96578){const _0x535956=[new window[(_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x505877=>setTimeout(_0x505877,0x20da1461^_0x2a4779)),_0x3cc430[_0x490000([0x74,0x68,0x65,0x6e])](()=>new window[(_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11365a=>{let _0xc92c53=0x0;_0x2aef16[_0x490000([0x6d,0x6f,0x64,0x65,0x6c])][_0x490000([0x6f,0x6e])](_0x490000([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x132c53,_0x3b1484)=>{_0x3b1484[0x0][_0x490000([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc92c53++,_0xc92c53==(0x20d32b55^_0x2a4779)&&(_0x11365a(),_0x132c53[_0x490000([0x6f,0x66,0x66])]());});}))];return window[_0x490000([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x490000([0x72,0x61,0x63,0x65])](_0x535956)[_0x490000([0x74,0x68,0x65,0x6e])](()=>_0xd96578);}async function _0x3db60b(){await _0x3cc430,_0x2aef16[_0x490000([0x6d,0x6f,0x64,0x65,0x6c])][_0x490000([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x44eebe,_0x2aef16[_0x490000([0x6d,0x6f,0x64,0x65,0x6c])][_0x490000([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x44eebe,_0x2aef16[_0x490000([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x490000([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x48ead5(){return _0x18040d(_0x490000([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x52f77e(_0x490000([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x490000([0x73,0x74,0x61,0x74,0x65])]==_0x490000([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xa5db03(){return _0x18040d(_0x490000([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x4cc811(){return _0x18040d(_0x490000([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x411b3e(_0x58c951){const _0x4bcf83=_0x3c185d();_0x2aef16[_0x4bcf83]=_0x490000([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x58c951,_0x58c951!=_0x490000([0x56,0x61,0x6c,0x69,0x64])&&_0x3db60b();}function _0x3c185d(){const _0x230a4f=window[_0x490000([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x490000([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x490000([0x6e,0x6f,0x77])]())[_0x490000([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x490000([0x2e]),'');let _0x32f346=_0x490000([0x4a]);for(let _0xf9a101=0x0;_0xf9a101<_0x230a4f[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf9a101+=0x2){let _0x4b1b47=window[_0x490000([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x230a4f[_0x490000([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf9a101,_0xf9a101+0x2));_0x4b1b47>=_0x3b1585[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4b1b47-=_0x3b1585[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x32f346+=_0x3b1585[_0x4b1b47];}return _0x32f346;}function _0x45ad5b(){const _0x2406b0=_0xfba685[_0x490000([0x73,0x70,0x6c,0x69,0x74])](_0x490000([0x2e]));if(0x3!=_0x2406b0[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4d39e9(_0x2406b0[0x1]);function _0x4d39e9(_0x21c16a){const _0x32de7f=_0x478190(_0x21c16a);return _0x32de7f&&_0x5b7eba()?_0x32de7f:null;function _0x5b7eba(){const _0x5bdb58=_0x32de7f[_0x490000([0x6a,0x74,0x69])],_0x311593=window[_0x490000([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bdb58[_0x490000([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bdb58[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x202e4d={..._0x32de7f,[_0x490000([0x6a,0x74,0x69])]:_0x5bdb58[_0x490000([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5bdb58[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x202e4d[_0x490000([0x76,0x63])],_0x42f9d8(_0x202e4d)==_0x311593;}}}async function _0x4a1e8d(){let _0x3449f7=!0x0;try{const _0x3c37b0=_0xfba685[_0x490000([0x73,0x70,0x6c,0x69,0x74])](_0x490000([0x2e])),[_0x59d9fe,_0xbf8aeb,_0x16b44c]=_0x3c37b0;return _0x3842dc(_0x59d9fe),await _0x4706ab(_0x59d9fe,_0xbf8aeb,_0x16b44c),_0x3449f7;}catch{return!0x1;}function _0x3842dc(_0x28438c){const _0x171f24=_0x478190(_0x28438c);_0x171f24&&_0x171f24[_0x490000([0x61,0x6c,0x67])]==_0x490000([0x45,0x53,0x32,0x35,0x36])||(_0x3449f7=!0x1);}async function _0x4706ab(_0x2f0389,_0xf12f52,_0x1f411f){const _0x41d8a7=window[_0x490000([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x490000([0x66,0x72,0x6f,0x6d])](_0x28e483(_0x1f411f),_0x315dd1=>_0x315dd1[_0x490000([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x13a7c6=new window[(_0x490000([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x490000([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f0389+_0x490000([0x2e])+_0xf12f52),_0x4365d2=window[_0x490000([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x490000([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4365d2)return;const _0x37ee40=await _0x4365d2[_0x490000([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x490000([0x6a,0x77,0x6b]),_0x5b1219,{[_0x490000([0x6e,0x61,0x6d,0x65])]:_0x490000([0x45,0x43,0x44,0x53,0x41]),[_0x490000([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x490000([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x490000([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4365d2[_0x490000([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x490000([0x6e,0x61,0x6d,0x65])]:_0x490000([0x45,0x43,0x44,0x53,0x41]),[_0x490000([0x68,0x61,0x73,0x68])]:{[_0x490000([0x6e,0x61,0x6d,0x65])]:_0x490000([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x37ee40,_0x41d8a7,_0x13a7c6)||(_0x3449f7=!0x1);}}function _0x478190(_0xa29aae){return _0xa29aae[_0x490000([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x490000([0x65,0x79]))?JSON[_0x490000([0x70,0x61,0x72,0x73,0x65])](_0x28e483(_0xa29aae)):null;}function _0x28e483(_0x34f463){return window[_0x490000([0x61,0x74,0x6f,0x62])](_0x34f463[_0x490000([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x490000([0x2b]))[_0x490000([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x490000([0x2f])));}function _0x42f9d8(_0x28096d){let _0x415607=0x1505;function _0x4f7599(_0xeab788){for(let _0x351be9=0x0;_0x351be9<_0xeab788[_0x490000([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x351be9++){const _0x4bb656=_0xeab788[_0x490000([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x351be9);_0x415607=(_0x415607<<0x5)+_0x415607+_0x4bb656,_0x415607&=_0x415607;}}function _0xe566ed(_0x1558b6){Array[_0x490000([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1558b6)?_0x1558b6[_0x490000([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xe566ed):_0x1558b6&&typeof _0x1558b6==_0x490000([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x490000([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1558b6)[_0x490000([0x73,0x6f,0x72,0x74])]()[_0x490000([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b682d,_0xa3a3e2])=>{_0x4f7599(_0x5b682d),_0xe566ed(_0xa3a3e2);}):_0x4f7599(window[_0x490000([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1558b6));}return _0xe566ed(_0x28096d),_0x415607>>>0x0;}function _0x516357(_0x4623ba){return _0x4623ba[_0x490000([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x490000([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x490000([0x30]));}function _0x260fab(_0x1c0c8a){return _0x1c0c8a[_0x490000([0x73,0x70,0x6c,0x69,0x74])]('')[_0x490000([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x490000([0x6a,0x6f,0x69,0x6e])]('');}function _0x18040d(_0x224a6b){return _0x2aef16[_0x490000([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x490000([0x68,0x61,0x73])](_0x224a6b);}function _0x52f77e(_0x1398b6){return _0x2aef16[_0x490000([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x490000([0x67,0x65,0x74])](_0x1398b6);}function _0x44eebe(){}function _0x490000(_0x452a6d){return _0x452a6d['map'](_0x125c75=>String['fromCharCode'](_0x125c75))['join']('');}_0x411b3e(await _0x3969ea());}(this);}set['adapter'](_0x211d83){if(this['_adapter'])throw new _0x59d332('track-changes-adapter-already-set',this);this['_adapter']=_0x211d83;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x18521c=!0x1,toJSON:_0x3616ac=!0x1}={}){const _0xe35d74=[];for(const _0x443c01 of this['_suggestions']['values']())_0x18521c&&!_0x443c01['isInContent']||_0xe35d74['push'](_0x443c01);return _0x3616ac?_0xe35d74['map'](_0x411f44=>_0x411f44['toJSON']()):_0xe35d74;}['getSuggestion'](_0x4a9206){const _0x57d6a4=this['_suggestions']['get'](_0x4a9206);if(!_0x57d6a4)throw new _0x59d332('track-changes-suggestion-not-found',this);return _0x57d6a4;}['hasSuggestion'](_0x1e220b){return this['_suggestions']['has'](_0x1e220b);}['addSuggestionData'](_0x5bd114){const {authorId:_0x2ea59c,id:_0x1ca493,originalSuggestionId:_0x5958e3,attributes:_0x15281e}=_0x5bd114,[_0x1c8685,_0x12e550]=_0x5bd114['type']['split'](':'),_0x2848cf=this['_suggestions']['get'](_0x1ca493)||this['_createSuggestion'](_0x1c8685,_0x12e550,_0x1ca493,_0x2ea59c,_0x15281e,_0x5958e3);if(this['_addThreadToSuggestion'](_0x2848cf),this['_checkSuggestionCorrectness'](_0x2848cf,_0x1c8685,_0x12e550||null,_0x2ea59c),_0x2848cf['createdAt']=_0x5bd114['createdAt'],_0x2848cf['_isDataLoaded']=!0x0,_0x15281e&&_0x15281e['@external']){const _0x47a6ec=_0x15281e['@external'],_0x175682=this['_getExternalAuthor'](_0x47a6ec['authorName']);_0x2848cf['authoredAt']=_0x47a6ec['createdAt'],_0x2848cf['author']=_0x175682,_0x2848cf['isExternal']=!0x0;}else _0x2848cf['authoredAt']=_0x5bd114['createdAt'];switch(_0x5bd114['data']&&(_0x2848cf['data']=_0x5bd114['data']),_0x5bd114['attributes']&&(_0x2848cf['attributes']=_0x5bd114['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2848cf['_saved']=!0x0),this['_suggestionState']['get'](_0x2848cf)){case'notReady':this['_suggestionState']['set'](_0x2848cf,'dataReady');break;case'markerReady':_0x2848cf['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2848cf])),this['_refreshSuggestionsChain'](new Set([_0x2848cf])),this['_suggestionState']['set'](_0x2848cf,'ready'),this['fire']('suggestionLoaded',_0x2848cf)):this['_suggestionState']['set'](_0x2848cf,'removed');}return _0x2848cf;}['acceptSuggestion'](_0x2a3b97){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x26f8bd of _0x2a3b97['getAllAdjacentSuggestions']())_0x26f8bd['accept']();});});}['discardSuggestion'](_0x2aaef5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x56ec88 of _0x2aaef5['getAllAdjacentSuggestions']())_0x56ec88['discard']();});});}['enableCommand'](_0x46ec26,_0x64cdb1){const _0x283c31=this['editor']['commands']['get'](_0x46ec26);if(!_0x283c31)throw new _0x59d332('track-changes-command-not-found',this,{'commandName':_0x46ec26});if(this['_enabledCommands']['has'](_0x283c31))throw new _0x59d332('track-changes-enable-command-twice',this,{'commandName':_0x46ec26});this['_enabledCommands']['add'](_0x283c31),_0x64cdb1&&_0x283c31['on']('execute',(_0x3c3c4b,_0x5ae015)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5ae015['length']>0x0&&_0x5ae015[_0x5ae015['length']-0x1]&&_0x5ae015[_0x5ae015['length']-0x1]['forceDefaultExecution']?_0x5ae015['pop']():(_0x3c3c4b['return']=_0x64cdb1((..._0x3686c8)=>_0x283c31['execute'](..._0x3686c8,{'forceDefaultExecution':!0x0}),..._0x5ae015),_0x3c3c4b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4099c1){let _0x4c495a,_0x4f4c84;const _0xd294b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4c495a=_0x4099c1();}catch(_0x16ecfd){_0x4f4c84=_0x16ecfd;}return _0xd294b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4f4c84&&_0x59d332['rethrowUnexpectedError'](_0x4f4c84,this),_0x4c495a;}['markInsertion'](_0x145e26,_0x303c3c=null,_0x5edade={}){if(_0x145e26['isCollapsed'])return null;const _0x4180b8=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5edade['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1e5347,meta:_0xa1185a}of this['_findSuggestions'](_0x145e26,'insertion'))if(_0xa1185a['isOwn']){if(!_0xa1185a['isNextTo']){if(_0xa1185a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x1e5347,_0x5edade))continue;return _0x1e5347;}if(Qt(_0x1e5347,_0x5edade))return _0x1e5347;this['_breakSuggestionMarker'](_0x1e5347,_0x145e26['start'],_0x145e26['end']);break;}if(_0x303c3c==_0x1e5347['subType']&&Qt(_0x1e5347,_0x5edade)){const _0x368ba9=_0x1e5347['getFirstRange']();return _0x368ba9['start']['isEqual'](_0x145e26['end'])?this['_setSuggestionRange'](_0x1e5347,this['_model']['createRange'](_0x145e26['start'],_0x368ba9['end'])):this['_setSuggestionRange'](_0x1e5347,this['_model']['createRange'](_0x368ba9['start'],_0x145e26['end'])),_0x1e5347;}}const _0x483846=_0x427844(),_0xc25c57=_0x4180b8['id'],_0x4908a4=_0x303c3c?'insertion:'+_0x303c3c:'insertion',_0x60b720=this['_setSuggestionData']({'id':_0x483846,'type':_0x4908a4,'createdAt':new Date(),'authorId':_0xc25c57,'attributes':_0x5edade});return this['_addSuggestionMarker'](_0x4908a4,_0x483846,_0xc25c57,_0x145e26),_0x60b720;}['markMultiRangeInsertion'](_0x32544e,_0x426770='multi',_0x268aca={}){const _0x1ffb71=this['editor']['plugins']['get']('Users')['me'],_0x282727=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x426770,'join');this['_trackingSessionId']&&(_0x268aca['trackingSessionId']=this['_trackingSessionId']);for(const _0x4ae562 of this['getSuggestions']())if(_0x4ae562['author']['id']==_0x1ffb71['id']&&'insertion'==_0x4ae562['type']&&_0x4ae562['subType']==_0x426770&&Qt(_0x4ae562,_0x268aca)&&(_0x282727(_0x4ae562['getRanges'](),_0x32544e)||_0x282727(_0x32544e,_0x4ae562['getRanges']()))){for(const _0xb76fe5 of _0x32544e)_0x4ae562['addRange'](_0xb76fe5);return _0x4ae562;}for(const {suggestion:_0x3856b6,meta:_0x148baa}of this['_findSuggestions'](_0x32544e,'insertion')){if(!_0x148baa['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x148baa['containsRangeInObject'])continue;if(!Qt(_0x3856b6,_0x268aca))continue;let _0xcfbe12=!0x0;for(const _0x5a56f5 of _0x3856b6['getRanges']())for(const _0x33b48c of _0x32544e)if(!_0x5a56f5['containsRange'](_0x33b48c)){_0xcfbe12=!0x1;break;}if(_0xcfbe12)return _0x3856b6;}const _0x277b0b=_0x427844(),_0x3c8359=_0x1ffb71['id'],_0x41a43f='insertion:'+_0x426770,_0x50e551=this['_setSuggestionData']({'id':_0x277b0b,'type':_0x41a43f,'createdAt':new Date(),'authorId':_0x3c8359,'attributes':_0x268aca});for(const _0x459e54 of _0x32544e)this['_addSuggestionMarker'](_0x41a43f,_0x277b0b,_0x3c8359,_0x459e54,T['getMultiRangeId']());return _0x50e551;}['markInlineFormat'](_0x1a42c2,_0x154260,_0x24f4cb=null,_0x5db114={}){if(_0x24f4cb=_0x24f4cb||Lt(_0x154260),_0x1a42c2['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5db114['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3088aa=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x24f4cb,'accept');return this['forceDefaultExecution'](()=>_0x3088aa([_0x1a42c2],_0x154260,_0x5db114)),null;}const _0x156508=this['editor']['plugins']['get']('Users')['me'],_0x14e029=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1e04fe,meta:_0x146a34}of this['_findSuggestions'](_0x1a42c2,'insertion'))_0x146a34['isOwn']&&!_0x146a34['isInsideObject']&&_0x14e029['push'](..._0x1e04fe['getRanges']());}const _0x462b25=function(_0x2d9ac7,_0x56aee2){const _0x3fe0a4=[];for(const _0x39327d of _0x56aee2){const _0x303dea=_0x2d9ac7['getIntersection'](_0x39327d);_0x303dea&&_0x3fe0a4['push'](_0x303dea);}return _0x3fe0a4;}(_0x1a42c2,_0x14e029),_0x4dbaa4=function(_0x175ca4,_0x5eb3e6){const _0x36c3df=[_0x175ca4];for(const _0x2df915 of _0x5eb3e6){let _0x588f49=0x0;for(;_0x588f49<_0x36c3df['length'];){const _0x207cdf=_0x36c3df[_0x588f49]['getDifference'](_0x2df915);_0x36c3df['splice'](_0x588f49,0x1,..._0x207cdf),_0x588f49+=_0x207cdf['length'];}}return _0x36c3df;}(_0x1a42c2,_0x14e029);_0x462b25['length']&&this['_model']['change'](()=>{for(const _0x27ae7c of _0x462b25){const _0x456b6e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x24f4cb,'accept');this['forceDefaultExecution'](()=>_0x456b6e([_0x27ae7c],_0x154260,_0x5db114));}});for(const _0x137b49 of _0x4dbaa4){let _0x19951f=null,_0x55a2f8=_0x137b49['start'],_0x7ff54e=_0x137b49['end'];for(const {suggestion:_0x105ea4,meta:_0x1bea1d}of this['_findSuggestions'](_0x137b49,'formatInline')){if(!_0x1bea1d['isOwn'])continue;if(_0x105ea4['subType']!=_0x24f4cb)continue;if(!Qt(_0x105ea4,_0x5db114))continue;const _0x179996=_0x105ea4['getFirstRange']();if(_0x179996['containsRange'](_0x137b49,!0x0))return null;_0x55a2f8=_0x55a2f8['isBefore'](_0x179996['start'])?_0x55a2f8:_0x179996['start'],_0x7ff54e=_0x7ff54e['isAfter'](_0x179996['end'])?_0x7ff54e:_0x179996['end'],_0x19951f?_0x179996['start']['isBefore'](_0x19951f['getFirstRange']()['start'])?(_0x19951f['removeMarkers'](),_0x19951f=_0x105ea4):_0x105ea4['removeMarkers']():_0x19951f=_0x105ea4;}const _0x171424=this['_model']['createRange'](_0x55a2f8,_0x7ff54e);if(_0x19951f)this['_setSuggestionRange'](_0x19951f,_0x171424);else{const _0x16f48c=_0x427844(),_0x42d6ac=_0x156508['id'];this['_setSuggestionData']({'id':_0x16f48c,'type':'formatInline:'+_0x24f4cb,'data':_0x154260,'createdAt':new Date(),'authorId':_0x42d6ac,'attributes':_0x5db114}),this['_addSuggestionMarker']('formatInline:'+_0x24f4cb,_0x16f48c,_0x42d6ac,_0x171424);}}return null;}['markBlockFormat'](_0x1ad1ef,_0x4d158f,_0x111e81=[],_0x57913f=null,_0x334781={}){_0x4d158f['formatGroupId']||(_0x4d158f['formatGroupId']=_0x4d158f['commandName']),_0x4d158f['multipleBlocks']=_0x1ad1ef['is']('range'),_0x57913f=_0x57913f||Lt(_0x4d158f);const _0x373dfe=_0x111e81['map'](_0x4e92ff=>qt(_0x4e92ff,this['_model'])),_0x48bff1=_0x1ad1ef['is']('range')?_0x1ad1ef:qt(_0x1ad1ef,this['_model']);if(this['_trackingSessionId']&&(_0x334781['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3f84e5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57913f,'accept');return this['forceDefaultExecution'](()=>_0x3f84e5([_0x48bff1],_0x4d158f,_0x334781)),null;}_0x373dfe['push'](_0x48bff1);let _0x2549ce=!0x0;for(const _0x22ce71 of _0x373dfe)if(!this['_rangeIsInLocalUserInsertion'](_0x22ce71)){_0x2549ce=!0x1;break;}if(_0x2549ce&&'always'!==this['_trackFormatChanges']){const _0x1fb8da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57913f,'accept');return this['forceDefaultExecution'](()=>_0x1fb8da([_0x48bff1],_0x4d158f,_0x334781)),null;}let _0x30c9df=null,_0x5cdf8e=_0x48bff1['start'],_0x59c7d9=_0x48bff1['end'];for(const {suggestion:_0x1225d7,meta:_0x103d01}of this['_findSuggestions'](_0x48bff1,'formatBlock')){if(!_0x103d01['isOwn'])continue;if(_0x103d01['isNextTo']||_0x103d01['containsRangeInObject']||_0x103d01['isInsideObject'])continue;if(_0x1225d7['data']['formatGroupId']!=_0x4d158f['formatGroupId'])continue;if(!Qt(_0x1225d7,_0x334781))continue;const _0x45a924=_0x1225d7['getFirstRange']();if(_0x1225d7['subType']==_0x57913f){if(_0x45a924['containsRange'](_0x48bff1,!0x0))return null;_0x5cdf8e=_0x5cdf8e['isBefore'](_0x45a924['start'])?_0x5cdf8e:_0x45a924['start'],_0x59c7d9=_0x59c7d9['isAfter'](_0x45a924['end'])?_0x59c7d9:_0x45a924['end'],_0x30c9df?_0x45a924['start']['isBefore'](_0x30c9df['getFirstRange']()['start'])?(_0x30c9df['removeMarkers'](),_0x30c9df=_0x1225d7):_0x1225d7['removeMarkers']():_0x30c9df=_0x1225d7;}else{const _0x5c1293=_0x48bff1['getIntersection'](_0x45a924);this['_cutOutSuggestionMarker'](_0x1225d7,_0x5c1293);}}const _0x12ef75=this['editor']['plugins']['get']('Users')['me'],_0x2fccd6=_0x427844(),_0x266076=_0x12ef75['id'];if(_0x30c9df)return this['_setSuggestionRange'](_0x30c9df,this['_model']['createRange'](_0x5cdf8e,_0x59c7d9)),_0x30c9df;{const _0x16882a=this['_setSuggestionData']({'id':_0x2fccd6,'type':'formatBlock:'+_0x57913f,'data':_0x4d158f,'createdAt':new Date(),'authorId':_0x266076,'attributes':_0x334781});return this['_addSuggestionMarker']('formatBlock:'+_0x57913f,_0x2fccd6,_0x266076,this['_model']['createRange'](_0x5cdf8e,_0x59c7d9)),_0x16882a;}}['markMultiRangeBlockFormat'](_0x190fb7,_0x235513,_0x283145=[],_0x270835=null,_0x126a14={}){_0x235513['formatGroupId']||(_0x235513['formatGroupId']=_0x235513['commandName']);const _0x5d84d6=_0x190fb7[0x0];_0x235513['multipleBlocks']=_0x5d84d6['is']('range'),_0x270835=_0x270835||Lt(_0x235513);const _0x19b9f4=_0x283145['map'](_0x107931=>qt(_0x107931,this['_model'])),_0x1f0d7b=_0x5d84d6['is']('range')?_0x190fb7:_0x190fb7['map'](_0x4b23d9=>qt(_0x4b23d9,this['_model']));if(this['_trackingSessionId']&&(_0x126a14['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4880fb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x270835,'accept');return this['forceDefaultExecution'](()=>_0x4880fb(_0x1f0d7b,_0x235513,_0x126a14)),null;}_0x19b9f4['push'](..._0x1f0d7b);let _0x342cd9=!0x0;for(const _0x2170c0 of _0x19b9f4)if(!this['_rangeIsInLocalUserInsertion'](_0x2170c0)){_0x342cd9=!0x1;break;}if(_0x342cd9&&'always'!==this['_trackFormatChanges']){const _0x10ff1c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x270835,'accept');return this['forceDefaultExecution'](()=>_0x10ff1c(_0x1f0d7b,_0x235513,_0x126a14)),null;}const _0x8274a5=this['editor']['plugins']['get']('Users')['me'];for(const _0x4a330a of this['getSuggestions']()){const _0x1b53c8=_0x4a330a['data'];if(_0x4a330a['author']['id']!=_0x8274a5['id'])continue;if('formatBlock'!=_0x4a330a['type']||_0x1b53c8['formatGroupId']!=_0x235513['formatGroupId'])continue;if(!Qt(_0x4a330a,_0x126a14))continue;const _0x2c76b0=_0x4a330a['subType']==_0x270835;for(let _0x3b81d9=0x0;_0x3b81d9<_0x1f0d7b['length'];_0x3b81d9++){const _0x583444=_0x1f0d7b[_0x3b81d9];for(const _0x731c7c of _0x4a330a['getMarkers']()){const _0x260b40=_0x731c7c['getRange']();if(_0x583444['isEqual'](_0x260b40)){_0x2c76b0?(_0x1f0d7b['splice'](_0x3b81d9,0x1),_0x3b81d9--):_0x4a330a['removeMarker'](_0x731c7c['name']);break;}}}}if(0x0==_0x1f0d7b['length'])return null;const _0x2dc749=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x270835,'join');for(const _0x3d6b00 of this['getSuggestions']()){const _0x21ab98=_0x3d6b00['data'];if(_0x3d6b00['author']['id']==_0x8274a5['id']&&('formatBlock'==_0x3d6b00['type']&&_0x21ab98['formatGroupId']==_0x235513['formatGroupId']&&_0x3d6b00['subType']==_0x270835&&Qt(_0x3d6b00,_0x126a14)&&(_0x2dc749(_0x3d6b00['getRanges'](),_0x1f0d7b)||_0x2dc749(_0x1f0d7b,_0x3d6b00['getRanges']())))){for(const _0x312b38 of _0x1f0d7b)_0x3d6b00['addRange'](_0x312b38);return _0x3d6b00;}}const _0x9b23cd=_0x427844(),_0x26fd33=_0x8274a5['id'],_0x53fb79='formatBlock:'+_0x270835,_0x1294cb=this['_setSuggestionData']({'id':_0x9b23cd,'type':_0x53fb79,'data':_0x235513,'createdAt':new Date(),'authorId':_0x26fd33,'attributes':_0x126a14});for(const _0x151f91 of _0x1f0d7b)this['_addSuggestionMarker'](_0x53fb79,_0x9b23cd,_0x26fd33,_0x151f91,T['getMultiRangeId']());return _0x1294cb;}['markDeletion'](_0x5b7b3f,_0x2f24d6=null,_0x2cab79={}){if(_0x5b7b3f['isCollapsed'])return null;const _0x236faa=this['editor']['plugins']['get']('Users')['me'],_0x5ad32a=new _0x20b456(_0x5b7b3f['start'],_0x5b7b3f['end']);this['_trackingSessionId']&&(_0x2cab79['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4d2bef,meta:_0x520085}of this['_findSuggestions'](_0x5ad32a,'insertion'))if(_0x520085['isOwn']&&!_0x520085['isNextTo']){if(_0x4d2bef['isMultiRange']){const _0x18487c=_0x4d2bef['getRanges']()['filter'](_0x32bf40=>'$graveyard'!=_0x32bf40['root']['rootName']);_0x18487c['every'](_0x52a77c=>_0x5ad32a['containsRange'](_0x52a77c,!0x0))&&_0x4d2bef['discard']();if(_0x18487c['some'](_0xf9f08a=>_0xf9f08a['containsRange'](_0x5ad32a,!0x0))){const _0x2865d5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2f24d6,'accept');return this['forceDefaultExecution'](()=>_0x2865d5([_0x5ad32a],null,_0x2cab79)),null;}}else{const _0x1d337d=_0x5ad32a['getIntersection'](_0x4d2bef['getFirstRange']());null!==_0x1d337d&&_0x4d2bef['_onDiscard']([_0x1d337d],null,_0x2cab79);}}if(_0x5ad32a['detach'](),_0x5ad32a['isCollapsed']||'$graveyard'==_0x5ad32a['root']['rootName'])return null;let _0x31253f=null,_0x5662b1=_0x5ad32a['start'],_0xb91a9b=_0x5ad32a['end'];const _0x575446=this['_findSuggestions'](_0x5ad32a,'deletion');for(const {suggestion:_0x531ef6,meta:_0xc87558}of _0x575446){const _0x3be59f=this['_model']['createRange'](_0x5662b1,_0xb91a9b);if(_0xc87558['isOwn']&&(this['_mergeNestedSuggestions']||!_0xc87558['containsRangeInObject']&&!_0xc87558['isInsideObject'])){if(_0x531ef6['isMultiRange']){if(!Qt(_0x531ef6,_0x2cab79))continue;let _0x3c5fe7=!0x0;for(const _0x439970 of _0x531ef6['getRanges']()){if(_0x439970['containsRange'](_0x3be59f,!0x0))return _0x531ef6;_0x3be59f['containsRange'](_0x439970)||(_0x3c5fe7=!0x1);}_0x3c5fe7&&_0x531ef6['discard']();}else{const _0x5badf2=_0x531ef6['getFirstRange']();if(_0x5badf2['containsRange'](_0x3be59f,!0x0))return _0x531ef6;if(!Qt(_0x531ef6,_0x2cab79)){_0x3be59f['containsRange'](_0x5badf2)?_0x531ef6['removeMarkers']():_0x5badf2['containsPosition'](_0x5662b1)?_0x5662b1=_0x5badf2['end']:_0x5badf2['containsPosition'](_0xb91a9b)&&(_0xb91a9b=_0x5badf2['start']);continue;}_0x5662b1=_0x5662b1['isBefore'](_0x5badf2['start'])?_0x5662b1:_0x5badf2['start'],_0xb91a9b=_0xb91a9b['isAfter'](_0x5badf2['end'])?_0xb91a9b:_0x5badf2['end'],_0x2cab79=Object['assign']({},_0x531ef6['attributes']),_0x31253f?_0x5badf2['start']['isBefore'](_0x31253f['getFirstRange']()['start'])?(_0x31253f['removeMarkers'](),_0x31253f=_0x531ef6):_0x531ef6['removeMarkers']():_0x31253f=_0x531ef6;}}}if(_0x31253f)return this['_setSuggestionRange'](_0x31253f,this['_model']['createRange'](_0x5662b1,_0xb91a9b)),_0x31253f;{const _0x4f7299=_0x427844(),_0x1d63d4=this['_model']['createRange'](_0x5662b1,_0xb91a9b),_0x4992ac=_0x236faa['id'],_0x1a1eb4=_0x2f24d6?'deletion:'+_0x2f24d6:'deletion',_0x4e08a6=this['_setSuggestionData']({'id':_0x4f7299,'type':_0x1a1eb4,'createdAt':new Date(),'authorId':_0x4992ac,'attributes':_0x2cab79});return this['_addSuggestionMarker'](_0x1a1eb4,_0x4f7299,_0x4992ac,_0x1d63d4),_0x4e08a6;}}['markMultiRangeDeletion'](_0x2c7a04,_0x244c9b='multi',_0x4007c5={}){const _0x3766c3=this['editor']['plugins']['get']('Users')['me'],_0x4d3aa3=_0x2c7a04['map'](_0x1dd3a0=>new _0x20b456(_0x1dd3a0['start'],_0x1dd3a0['end'])),_0x44c4bd=new Set();this['_trackingSessionId']&&(_0x4007c5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xe93da,meta:_0x4b248b}of this['_findSuggestions'](_0x4d3aa3,'insertion'))_0x4b248b['isOwn']&&!_0x4b248b['isNextTo']&&_0x44c4bd['add'](_0xe93da);for(const _0x219ea1 of _0x44c4bd)if(_0x219ea1['isMultiRange']){const _0xc18ec2=_0x219ea1['getRanges']();(!_0x219ea1['attributes']||!_0x219ea1['attributes']['skipNestingCheck'])&&(_0xc18ec2['every'](_0x22bb41=>_0x4d3aa3['some'](_0x5b90f6=>_0x5b90f6['containsRange'](_0x22bb41,!0x0)))&&_0x219ea1['discard']());if(_0x4d3aa3['every'](_0x117cd0=>_0xc18ec2['some'](_0x59a380=>_0x59a380['containsRange'](_0x117cd0,!0x0)))){const _0x436dd8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x244c9b,'accept');return this['forceDefaultExecution'](()=>_0x436dd8(_0x2c7a04,null,_0x4007c5)),null;}}else{const _0x281d05=_0x219ea1['getFirstRange']();_0x4d3aa3['some'](_0x8feb49=>_0x8feb49['containsRange'](_0x281d05,!0x0))&&_0x219ea1['discard']();if(_0x4d3aa3['every'](_0x261abd=>_0x281d05['containsRange'](_0x261abd,!0x0))){const _0x479950=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x244c9b,'accept');return this['forceDefaultExecution'](()=>_0x479950(_0x4d3aa3,null,_0x4007c5)),null;}}const _0x37143e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x244c9b,'join');let _0x28fd18=null;for(const _0x4fea56 of this['getSuggestions']())if(_0x4fea56['author']['id']==_0x3766c3['id']&&_0x4fea56['isInContent']&&'deletion'==_0x4fea56['type']&&_0x4fea56['subType']==_0x244c9b&&Qt(_0x4fea56,_0x4007c5)&&(_0x37143e(_0x4fea56['getRanges'](),_0x4d3aa3)||_0x37143e(_0x4d3aa3,_0x4fea56['getRanges']()))){if(_0x28fd18){if(_0x4fea56['commentThread']&&_0x4fea56['commentThread']['length'])continue;for(const _0x38e2ff of _0x4fea56['getRanges']())_0x28fd18['isIntersectingWithRange'](_0x38e2ff)||_0x28fd18['addRange'](_0x38e2ff);_0x4fea56['removeMarkers']();}else{_0x28fd18=_0x4fea56;for(const _0x4ca386 of _0x4d3aa3)_0x4fea56['isIntersectingWithRange'](_0x4ca386)||_0x4fea56['addRange'](_0x4ca386);}}if(_0x28fd18)return _0x28fd18;_0x44c4bd['clear']();for(const {suggestion:_0x2fbdd9,meta:_0x1b794a}of this['_findSuggestions'](_0x4d3aa3,'deletion'))_0x1b794a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1b794a['containsRangeInObject']&&!_0x1b794a['isInsideObject'])&&Qt(_0x2fbdd9,_0x4007c5)&&_0x44c4bd['add'](_0x2fbdd9);for(const _0x17e2d2 of _0x44c4bd){const _0x29befe=_0x17e2d2['getRanges']();if(!_0x4007c5||!_0x4007c5['skipNestingCheck']){if(_0x4d3aa3['every'](_0x5763f7=>_0x29befe['some'](_0x1316b2=>_0x1316b2['containsRange'](_0x5763f7,!0x0))))return _0x17e2d2;}(!_0x17e2d2['attributes']||!_0x17e2d2['attributes']['skipNestingCheck'])&&(_0x29befe['every'](_0x2e45e9=>_0x4d3aa3['some'](_0x89d9ee=>_0x89d9ee['containsRange'](_0x2e45e9,!0x0)))&&_0x17e2d2['discard']());}const _0x548e70=_0x427844(),_0x234fb5=_0x3766c3['id'],_0x33eba='deletion:'+_0x244c9b,_0x2ed518=this['_setSuggestionData']({'id':_0x548e70,'type':_0x33eba,'createdAt':new Date(),'authorId':_0x234fb5,'attributes':_0x4007c5});for(const _0x33180a of _0x4d3aa3)_0x33180a['detach'](),_0x33180a['isCollapsed']||'$graveyard'==_0x33180a['root']['rootName']||this['_addSuggestionMarker'](_0x33eba,_0x548e70,_0x234fb5,_0x33180a,T['getMultiRangeId']());return _0x2ed518;}['markAttributeChange'](_0x1f08ef,_0x12857b,_0xf3d088,_0x2b2378,_0x2044a2){if(_0x1f08ef['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x45c163=this['editor']['plugins']['get']('Users')['me']['id'],_0x576138=Array['from'](this['_suggestions']['values']())['filter'](_0xb09f2e=>'attribute'==_0xb09f2e['type']&&_0xb09f2e['data']['key']==_0x12857b&&_0xb09f2e['isIntersectingWithRange'](_0x1f08ef));if(this['_trackingSessionId']&&(_0x2044a2['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x38308d=this['_findSuggestions'](_0x1f08ef,'insertion')['filter'](({meta:_0x52adde})=>_0x52adde['isOwn']&&!_0x52adde['isInsideObject']&&!_0x52adde['isNextTo'])['map'](({suggestion:_0x114b0a})=>_0x114b0a);_0x576138['unshift'](..._0x38308d);}const _0x422879=new Map([[_0x1f08ef,_0xf3d088]]);for(const _0x314313 of _0x576138){const _0x36cd6b='attribute'==_0x314313['type']?_0x314313['data']['oldValue']:void 0x0,_0x59141e=_0x314313['getFirstRange'](),_0x59e36b=Array['from'](_0x422879['keys']())['find'](_0x4c409d=>_0x4c409d['isIntersecting'](_0x59141e));if(!_0x59e36b)continue;const _0x26b213=_0x59e36b['getDifference'](_0x59141e);this['_isBlockAttribute'](_0x12857b)&&'insertion'==_0x314313['type']&&0x0!=_0x26b213['length']||(_0x422879['delete'](_0x59e36b),_0x26b213['forEach'](_0x1ab3d7=>{_0x422879['set'](_0x1ab3d7,_0xf3d088);}),'insertion'!=_0x314313['type']&&_0x36cd6b!=_0x2b2378&&_0x422879['set'](_0x59e36b['getIntersection'](_0x59141e),_0x36cd6b));}const _0x29f3aa=[];for(const [_0x27daf7,_0x480a93]of _0x422879){const _0x4cbacf=_0x427844(),_0x235927={'key':_0x12857b,'oldValue':_0x480a93,'newValue':_0x2b2378};_0x12857b['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':_0x12857b});const _0x207607=('attribute:'+(_0x12857b+'|'+Lt({'newValue':_0x2b2378})))['substring'](0x0,0x3c),_0x2bb07f=this['_setSuggestionData']({'id':_0x4cbacf,'type':_0x207607,'data':_0x235927,'createdAt':new Date(),'authorId':_0x45c163,'attributes':_0x2044a2});_0x29f3aa['push'](_0x2bb07f),this['_addSuggestionMarker'](_0x207607,_0x4cbacf,_0x45c163,_0x27daf7);}return _0x29f3aa;}['enableDefaultAttributesIntegration'](_0x5e2b6b){this['enableCommand'](_0x5e2b6b,(_0x11ce69,..._0x2b4b27)=>{this['recordAttributeChanges'](()=>{_0x11ce69(..._0x2b4b27);});});}['registerBlockAttribute'](_0x2adad5){this['_blockAttributeKeys']['add'](_0x2adad5);}['registerInlineAttribute'](_0x44c782){this['_inlineAttributeKeys']['add'](_0x44c782);}['startTrackingSession'](_0x1dc907){return this['_trackingSessionId']=void 0x0!==_0x1dc907?_0x1dc907:_0x427844(),this['_trackingSessionId'];}['_getAttributeKey'](_0x455b9e){return'attribute'==_0x455b9e['type']?_0x455b9e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x166d33,_0x2a6c59){const _0x18d9f4=_0x166d33['getFirstMarker']();this['_model']['change'](_0x198cb6=>{_0x198cb6['updateMarker'](_0x18d9f4,{'range':_0x2a6c59});});}['_addThreadToSuggestion'](_0x173e19){const _0x316834=_0x173e19['id'],_0xb6b7cc=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x316834)||this['_commentsRepository']['addCommentThread']({'channelId':_0xb6b7cc,'threadId':_0x316834,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3f3501=this['_commentsRepository']['getCommentThread'](_0x316834);_0x3f3501['unbind']('isRemovable'),_0x3f3501['isRemovable']=!0x1,_0x173e19['commentThread']=_0x3f3501;}['_checkSuggestionCorrectness'](_0x22f718,_0x53689d,_0x3cd338,_0x19d24b){if(_0x22f718['type']!=_0x53689d||_0x22f718['subType']!=_0x3cd338||_0x22f718['creator']['id']!=_0x19d24b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x59d332('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x54bc81,_0x596d23){const _0x4653ce=_0x54bc81['getFirstRange']();if(_0x596d23['isEqual'](_0x4653ce))_0x54bc81['removeMarkers']();else{if(_0x4653ce['containsRange'](_0x596d23)){const _0x5ee093=this['_model']['createPositionAt'](_0x596d23['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x54bc81,this['_model']['createRange'](_0x4653ce['start'],_0x5ee093));const _0x3e3d10=_0x427844(),_0x67b27=_0x54bc81['creator']['id'],_0x919526=_0x54bc81['type']+':'+_0x54bc81['subType'];this['_setSuggestionData']({'id':_0x3e3d10,'type':_0x919526,'createdAt':new Date(),'authorId':_0x67b27,'data':_0x54bc81['data'],'attributes':_0x54bc81['attributes']});const _0x43a96e=this['_model']['createPositionAt'](_0x596d23['end']['parent'],'after'),_0x1323d9=this['_model']['createRange'](_0x43a96e,_0x4653ce['end']);this['_addSuggestionMarker'](_0x919526,_0x3e3d10,_0x67b27,_0x1323d9);}else{if(_0x4653ce['containsPosition'](_0x596d23['start'])){const _0x566efd=this['_model']['createPositionAt'](_0x596d23['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x54bc81,this['_model']['createRange'](_0x4653ce['start'],_0x566efd));}else{const _0x3a4222=this['_model']['createPositionAt'](_0x596d23['end']['parent'],'after');this['_setSuggestionRange'](_0x54bc81,this['_model']['createRange'](_0x3a4222,_0x4653ce['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x506a31){for(const {suggestion:_0x497d24,meta:_0x42ca2e}of this['_findSuggestions'](_0x506a31,'insertion')){if(!_0x42ca2e['isOwn'])continue;const _0x3545bc=_0x497d24['getRanges']();for(const _0x378a14 of _0x3545bc)if(!_0x506a31['getDifference'](_0x378a14)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2987db){const _0x3d1fa0=this['editor']['plugins']['get']('Users')['getUser'](_0x2987db);if(!_0x3d1fa0)throw new _0x59d332('track-changes-user-not-found',this);return _0x3d1fa0;}['_getExternalAuthor'](_0x350e0e){const _0x52e0b8=this['editor']['plugins']['get']('Users'),_0x155c52=_0x17437d('external:'+_0x350e0e),_0x55b88e=_0x52e0b8['getUser'](_0x155c52);return _0x55b88e||_0x52e0b8['addUser']({'id':_0x155c52,'name':_0x350e0e});}['_createSuggestion'](_0x35ac81,_0x1bd56a,_0x4cf8b7,_0x497b04,_0x5b6ecb,_0x505c8a){const _0x50a206=this['_getAuthorFromId'](_0x497b04),_0x2d070e=this['_suggestionFactory']['buildSuggestion'](_0x35ac81,_0x1bd56a,_0x4cf8b7,_0x50a206,_0x5b6ecb,_0x43c93f=>{this['_updateSuggestionData'](_0x4cf8b7,{'attributes':_0x43c93f});const _0x246f90=this['getSuggestion'](_0x4cf8b7);this['_joinWithAdjacentSuggestions'](new Set([_0x246f90])),this['_refreshSuggestionsChain'](new Set([_0x246f90]));},_0x505c8a);return this['listenTo'](_0x2d070e,'accept',()=>{this['_updateSuggestionData'](_0x4cf8b7,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2d070e,'discard',()=>{this['_updateSuggestionData'](_0x4cf8b7,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4cf8b7,_0x2d070e),this['_suggestionState']['set'](_0x2d070e,'notReady'),_0x2d070e;}['_splitMarkerName'](_0x484cce){const _0x3245da=_0x484cce['split'](':');return{'group':_0x3245da[0x0],'type':_0x3245da[0x1],'subType':_0x3245da['length']>=0x5?_0x3245da[0x2]:null,'id':_0x3245da['length']<0x5?_0x3245da[0x2]:_0x3245da[0x3],'authorId':_0x3245da['length']<0x5?_0x3245da[0x3]:_0x3245da[0x4],'markerCount':0x6==_0x3245da['length']?_0x3245da[0x5]:null};}['_breakSuggestionMarker'](_0x496efd,_0x3339d8,_0xd7447a){const _0x4aba52=_0x496efd['getFirstRange'](),_0x5d2ed5=_0x4aba52['start'],_0x23cf03=_0x4aba52['end'];this['_setSuggestionRange'](_0x496efd,this['_model']['createRange'](_0x5d2ed5,_0x3339d8));const _0x29cea8=_0x427844(),_0x2cf7bf=_0x496efd['creator']['id'],_0x1c9cc7=_0x496efd['type']+(_0x496efd['subType']?':'+_0x496efd['subType']:'');this['_setSuggestionData']({'id':_0x29cea8,'type':_0x1c9cc7,'createdAt':new Date(),'authorId':_0x2cf7bf,'originalSuggestionId':_0x496efd['_originalSuggestionId']||_0x496efd['id'],'attributes':_0x496efd['attributes'],'data':_0x496efd['data']});const _0x49df18=this['_getAttributeKey'](_0x496efd);('formatBlock'==_0x496efd['type']||_0x49df18&&this['_isBlockAttribute'](_0x49df18))&&(_0xd7447a=this['_model']['createPositionBefore'](_0xd7447a['parent'])),this['_addSuggestionMarker'](_0x1c9cc7,_0x29cea8,_0x2cf7bf,this['_model']['createRange'](_0xd7447a,_0x23cf03));}['_findSuggestions'](_0xde3c16,_0x34c245=null){const _0x27e0bc=[],_0x52defb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xde3c16)||(_0xde3c16=[_0xde3c16]);for(const _0xd3e582 of this['getSuggestions']()){if(!_0xd3e582['isInContent'])continue;if(_0x34c245&&_0xd3e582['type']!=_0x34c245)continue;let _0x4cdb2f=!0x1;for(const _0x38cd56 of _0xd3e582['getRanges']()){for(const _0xa41cf of _0xde3c16){const _0xe70eb4=_0xa41cf['start']['isEqual'](_0x38cd56['end'])||_0xa41cf['end']['isEqual'](_0x38cd56['start']);if(_0xe70eb4||_0xa41cf['getIntersection'](_0x38cd56)){const _0x5ab920=_0xa41cf['containsRange'](_0x38cd56)&&Ft(this['_model']['schema'],_0x38cd56['start'],_0xa41cf),_0x37905e=_0x38cd56['containsRange'](_0xa41cf)&&Ft(this['_model']['schema'],_0xa41cf['start'],_0x38cd56);_0x27e0bc['push']({'suggestion':_0xd3e582,'meta':{'isOwn':_0x52defb==_0xd3e582['author'],'isNextTo':_0xe70eb4,'isInsideObject':_0x5ab920,'containsRangeInObject':_0x37905e}}),_0x4cdb2f=!0x0;break;}}if(_0x4cdb2f)break;}}return _0x27e0bc;}['_addSuggestionMarker'](_0x70f780,_0x14c457,_0x275502,_0x3f3f4e,_0x55b915){this['_model']['change'](_0x89f79a=>{let _0x26679a='suggestion:'+_0x70f780+':'+_0x14c457+':'+_0x275502;_0x55b915&&(_0x26679a=_0x26679a+':'+_0x55b915),_0x89f79a['addMarker'](_0x26679a,{'range':_0x3f3f4e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4eedcb){const _0x54eb2a=_0x4eedcb['previous'],_0xe4be8=_0x4eedcb['next'];_0x4eedcb['previous']=null,_0x4eedcb['next']=null,null!=_0x54eb2a&&_0x54eb2a['next']==_0x4eedcb&&(_0x54eb2a['next']=_0xe4be8),null!=_0xe4be8&&_0xe4be8['previous']==_0x4eedcb&&(_0xe4be8['previous']=_0x54eb2a),'ready'==this['_suggestionState']['get'](_0x4eedcb)&&(this['_suggestionState']['set'](_0x4eedcb,'removed'),this['fire']('suggestionUnloaded',_0x4eedcb,_0x54eb2a,_0xe4be8));}['_setSuggestionData'](_0x21abfb){const _0x213272=_0x21abfb['id'],_0x2d9b72=this['addSuggestionData'](_0x21abfb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1b0bbc=this['editor']['plugins']['get']('PendingActions'),_0x7845bf=_0x2d9b72['hasComments'],_0x56dd8f=_0x2d9b72['subType']?_0x2d9b72['type']+':'+_0x2d9b72['subType']:_0x2d9b72['type'],_0x121186=this['editor']['locale'],_0x5dda89=_0x1b0bbc['add'](o(_0x121186,'PENDING_ACTION_SUGGESTION')),_0xd9670={'id':_0x213272,'type':_0x56dd8f,'hasComments':_0x7845bf,'data':_0x21abfb['data']||null,'originalSuggestionId':_0x21abfb['originalSuggestionId']||null,'attributes':_0x2d9b72['attributes']};this['_adapter']['addSuggestion'](_0xd9670)['then'](_0x22f2a6=>{_0x2d9b72['_saved']=!0x0,_0x1b0bbc['remove'](_0x5dda89),_0x22f2a6&&_0x22f2a6['createdAt']&&(this['_suggestions']['get'](_0x213272)['createdAt']=_0x22f2a6['createdAt']);})['catch'](_0x196b77=>{throw _0x14c28e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2d9b72['discard']();}),_0x2d9b72['stopListening'](),this['_suggestions']['delete'](_0x2d9b72['id']),this['_suggestionState']['delete'](_0x2d9b72),_0x196b77;});}return _0x2d9b72;}['_isBlockAttribute'](_0x44e6bc){return this['_blockAttributeKeys']['has'](_0x44e6bc);}['_updateSuggestionData'](_0x3b4f6f,_0x2320d0){const _0x232872=this['editor']['plugins']['get']('PendingActions'),_0x1471cb=this['getSuggestion'](_0x3b4f6f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1471cb['_saved']){const _0x429701=_0x232872['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3b4f6f,_0x2320d0)['then'](()=>{_0x232872['remove'](_0x429701);});}else _0x1471cb['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3b4f6f,_0x2320d0);});}}['_getSuggestionData'](_0x22545a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x59d332('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x22545a);}['_handleNewSuggestionMarker'](_0x2cee23){const {id:_0xcf674f,type:_0x4804da,subType:_0x266f56,authorId:_0x33e5a4}=this['_splitMarkerName'](_0x2cee23),_0x1af3ad=this['_suggestions']['get'](_0xcf674f)||this['_createSuggestion'](_0x4804da,_0x266f56,_0xcf674f,_0x33e5a4,{});switch(this['_checkSuggestionCorrectness'](_0x1af3ad,_0x4804da,_0x266f56,_0x33e5a4),this['_suggestionState']['get'](_0x1af3ad)){case'notReady':this['_getSuggestionData'](_0xcf674f)['then'](_0x263989=>{let _0xe73b2f=Promise['resolve']();_0x263989['hasComments']&&(_0xe73b2f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xcf674f})),_0xe73b2f['then'](()=>{this['addSuggestionData'](_0x263989)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1af3ad,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xcf674f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1af3ad,'ready'),this['fire']('suggestionLoaded',_0x1af3ad);break;case'ready':this['fire']('suggestionChanged',_0x1af3ad);}return _0x1af3ad['addMarkerName'](_0x2cee23),_0x1af3ad;}['_refreshSuggestionsChain'](_0x2d0fb6){const _0x497d29=Array['from'](_0x2d0fb6),_0x12df11=_0x497d29['filter'](_0x464b1a=>'attribute'==_0x464b1a['type']);this['_refreshAttributeSuggestionsChain'](_0x12df11);const _0x1037ab=_0x497d29['filter'](_0x44ba7c=>!_0x44ba7c['isMultiRange']&&'attribute'!=_0x44ba7c['type']),_0x3fcfb8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44d5e3=>!_0x44d5e3['isMultiRange']&&'attribute'!=_0x44d5e3['type']),_0x213f74=_0x3fcfb8['filter'](_0x5b6d94=>!_0x2d0fb6['has'](_0x5b6d94)),_0x112a41=new Map(_0x3fcfb8['map'](_0x183ffe=>[_0x183ffe,this['_suggestionFactory']['getSuggestionCallback'](_0x183ffe['type'],_0x183ffe['subType'],'chain')])),_0x23e40f=new Map(_0x3fcfb8['map'](_0x5aa84a=>[_0x5aa84a,_0x5aa84a['getFirstRange']()])),_0x17ec66=new Set(),_0x4fafba=new Set();for(let _0x547f95=0x0;_0x547f95<_0x1037ab['length'];_0x547f95++)_0x44da66(_0x1037ab[_0x547f95],_0x1037ab,_0x547f95+0x1);for(let _0x19ffe4=0x0;_0x19ffe4<_0x1037ab['length'];_0x19ffe4++)_0x44da66(_0x1037ab[_0x19ffe4],_0x213f74,0x0);const _0x1cc9ef=new Set();for(let _0x4e2543=0x0;_0x4e2543<_0x1037ab['length'];_0x4e2543++){const _0x236d5c=_0x1037ab[_0x4e2543];!_0x4fafba['has'](_0x236d5c)&&_0x236d5c['previous']&&(_0x1cc9ef['add'](_0x236d5c['previous']),_0x236d5c['previous']['next']===_0x236d5c&&(_0x236d5c['previous']['next']=null),_0x236d5c['previous']=null),!_0x17ec66['has'](_0x236d5c)&&_0x236d5c['next']&&(_0x1cc9ef['add'](_0x236d5c['next']),_0x236d5c['next']['previous']===_0x236d5c&&(_0x236d5c['next']['previous']=null),_0x236d5c['next']=null);}function _0x44da66(_0x96996,_0x517771,_0x1fcd72){for(let _0x49f1ba=_0x1fcd72;_0x49f1ba<_0x517771['length'];_0x49f1ba++){const _0xb6083d=_0x624875(_0x96996,_0x517771[_0x49f1ba]);_0xb6083d&&(_0xb6083d[0x0]['next']=_0xb6083d[0x1],_0xb6083d[0x1]['previous']=_0xb6083d[0x0],_0x17ec66['add'](_0xb6083d[0x0]),_0x4fafba['add'](_0xb6083d[0x1]));}}function _0x624875(_0x19c196,_0x558047){if(_0x19c196['author']['id']!==_0x558047['author']['id'])return null;const _0x5a1bd4=_0x112a41['get'](_0x19c196)(_0x19c196,_0x558047,_0x23e40f['get'](_0x19c196),_0x23e40f['get'](_0x558047));if(!_0x5a1bd4)return null;return _0x112a41['get'](_0x558047)(_0x19c196,_0x558047,_0x23e40f['get'](_0x19c196),_0x23e40f['get'](_0x558047))?_0x5a1bd4[0x1]['commentThread']&&_0x5a1bd4[0x1]['commentThread']['length']?null:_0x5a1bd4:null;}_0x1cc9ef['size']&&this['_refreshSuggestionsChain'](_0x1cc9ef);}['_refreshAttributeSuggestionsChain'](_0x374886){if(0x0==_0x374886['length'])return;const _0x1a57cd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x179c82=>'attribute'==_0x179c82['type']&&_0x179c82['_isDataLoaded']),_0x3a2f1c=[],_0x4655ac=new Map();for(const _0x3c6ac3 of _0x1a57cd){const _0xf60cc7=_0x17437d(_0x3c6ac3['attributes']);_0x4655ac['has'](_0xf60cc7)||(_0x4655ac['set'](_0xf60cc7,_0x3a2f1c['length']),_0x3a2f1c['push']([]));const _0x3280d4=_0x4655ac['get'](_0xf60cc7);_0x3a2f1c[_0x3280d4]['push'](_0x3c6ac3);}!(function(){_0x3a2f1c['sort']((_0x41247e,_0x426ba0)=>{const _0x2dd398=_0x41247e[0x0]['createdAt'],_0x179f3b=_0x426ba0[0x0]['createdAt'];return _0x2dd398==_0x179f3b?_0x41247e[0x0]['attributes']['groupId']<_0x426ba0[0x0]['attributes']['groupId']?-0x1:0x1:_0x2dd398<_0x179f3b?-0x1:0x1;});for(const _0x142675 of _0x3a2f1c)_0x142675['sort']((_0xdea70f,_0x4bc75e)=>_0xdea70f['id']<_0x4bc75e['id']?-0x1:0x1);}());for(let _0x4a8ae2=0x0;_0x4a8ae2<_0x3a2f1c['length'];_0x4a8ae2++){if(0x0==_0x3a2f1c[_0x4a8ae2]['length'])continue;const _0x503ce8=[];for(let _0x5cdfd2=_0x4a8ae2+0x1;_0x5cdfd2<_0x3a2f1c['length'];_0x5cdfd2++)0x0!=_0x3a2f1c[_0x5cdfd2]['length']&&_0x5b780e(_0x3a2f1c[_0x4a8ae2],_0x3a2f1c[_0x5cdfd2])&&_0x503ce8['push'](_0x5cdfd2);for(const _0x32aa9a of _0x503ce8)_0x3a2f1c[_0x4a8ae2]=_0x3a2f1c[_0x4a8ae2]['concat'](_0x3a2f1c[_0x32aa9a]),_0x3a2f1c[_0x32aa9a]=[];}for(const _0x3ae529 of _0x3a2f1c)for(let _0x45eb4e=0x0;_0x45eb4e<_0x3ae529['length'];_0x45eb4e++){const _0x21f91d=_0x3ae529[_0x45eb4e+0x1]||null;_0x3ae529[_0x45eb4e]['next']!==_0x21f91d&&(_0x3ae529[_0x45eb4e]['next']=_0x21f91d);}for(const _0x47126e of _0x3a2f1c)for(let _0x3a4105=0x0;_0x3a4105<_0x47126e['length'];_0x3a4105++){const _0x19b7c6=_0x47126e[_0x3a4105-0x1]||null;_0x47126e[_0x3a4105]['previous']!==_0x19b7c6&&(_0x47126e[_0x3a4105]['previous']=_0x19b7c6);}function _0x5b780e(_0x1f1970,_0x27267c){if(_0x1f1970[0x0]['attributes']['groupId']!==_0x27267c[0x0]['attributes']['groupId']&&_0x1f1970[0x0]['author']!==_0x27267c[0x0]['author'])return!0x1;if(!function(_0x4b67e3,_0x5c1eb2){if(!_0x4b67e3['hasComments']&&!_0x5c1eb2['hasComments'])return!0x0;if(_0x4b67e3['hasComments']&&_0x5c1eb2['hasComments'])return!0x1;if(_0x4b67e3['hasComments']&&_0x5c1eb2['createdAt']<_0x4b67e3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5c1eb2['hasComments']&&_0x4b67e3['createdAt']<_0x5c1eb2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1f1970[0x0],_0x27267c[0x0]))return!0x1;const _0x298714=Ut(_0x1f1970[0x0]['attributes'],['groupId','trackingSessionId']),_0x39ba05=Ut(_0x27267c[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x23cad6(_0x298714,_0x39ba05))return!0x1;if(_0x1f1970[0x0]['attributes']['groupId']==_0x27267c[0x0]['attributes']['groupId'])return!0x0;if(_0x1f1970[0x0]['attributes']['trackingSessionId']!==_0x27267c[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1f1970['every'](_0x82c462=>_0x27267c['some'](_0x53f8d9=>_0x82c462['getFirstRange']()['isEqual'](_0x53f8d9['getFirstRange']())))&&_0x27267c['every'](_0x1f27f9=>_0x1f1970['some'](_0x199a40=>_0x1f27f9['getFirstRange']()['isEqual'](_0x199a40['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2fc010){const _0x449de8=Array['from'](_0x2fc010),_0x1abbd7=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5a6875=_0x1abbd7['filter'](_0x2d506f=>!_0x2fc010['has'](_0x2d506f)),_0x110364=new Map(_0x449de8['map'](_0x1b184a=>[_0x1b184a,this['_suggestionFactory']['getSuggestionCallback'](_0x1b184a['type'],_0x1b184a['subType'],'join')])),_0x520480=new Map(_0x1abbd7['map'](_0x1b7b64=>[_0x1b7b64,_0x1b7b64['getRanges']()]));for(let _0x377160=0x0;_0x377160<_0x449de8['length'];_0x377160++){if(_0xaaa7bb(this,_0x449de8[_0x377160],_0x449de8,_0x377160+0x1))return!0x0;}for(let _0x58d600=0x0;_0x58d600<_0x449de8['length'];_0x58d600++){if(_0xaaa7bb(this,_0x449de8[_0x58d600],_0x5a6875,0x0))return!0x0;}return!0x1;function _0xaaa7bb(_0x55e467,_0xfb02fc,_0x365701,_0x406bbf){for(let _0x31a497=_0x406bbf;_0x31a497<_0x365701['length'];_0x31a497++){const _0x40a676=_0x365701[_0x31a497];if(_0x40a676['type']!==_0xfb02fc['type']||_0x40a676['author']['id']!==_0xfb02fc['author']['id']||_0x40a676['subType']!==_0xfb02fc['subType'])continue;if(!Wt(_0xfb02fc,_0x40a676))continue;if('attribute'==_0xfb02fc['type']&&_0xfb02fc['data']['oldValue']!=_0x40a676['data']['oldValue'])continue;if('attribute'==_0xfb02fc['type']&&_0x55e467['_isBlockAttribute'](_0xfb02fc['data']['key']))continue;if('formatBlock'==_0xfb02fc['type']){const _0x3b3bc8=_0x55e467['editor']['model'],_0x5e83b5=_0xfb02fc['getContainedElement']();if(_0x5e83b5&&(_0x3b3bc8['schema']['isObject'](_0x5e83b5)||_0x3b3bc8['schema']['isLimit'](_0x5e83b5)))continue;}const _0x29295f=_0x110364['get'](_0xfb02fc),_0x48433d=_0x520480['get'](_0xfb02fc),_0x2e478f=_0x520480['get'](_0x40a676),_0x3d3760=_0xfb02fc['commentThread']&&_0xfb02fc['commentThread']['length'],_0x3aabf8=_0x40a676['commentThread']&&_0x40a676['commentThread']['length'];if(!_0x3d3760&&_0x29295f(_0x2e478f,_0x48433d))return _0x55e467['_joinSuggestions'](_0x40a676,_0xfb02fc),_0x520480['delete'](_0xfb02fc),!0x0;if(!_0x3aabf8&&_0x29295f(_0x48433d,_0x2e478f))return _0x55e467['_joinSuggestions'](_0xfb02fc,_0x40a676),_0x520480['delete'](_0x40a676),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5d26fc,_0x8c01e3){if(_0x5d26fc['isMultiRange']){for(const _0x5815ba of _0x8c01e3['getRanges']())_0x5d26fc['addRange'](_0x5815ba);}else{const _0x3a1d7d=_0x8c01e3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5d26fc,this['_model']['createRange'](_0x5d26fc['getFirstRange']()['start'],_0x3a1d7d));}_0x8c01e3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5a0453,_0x3ba922,_0xc3e110){const _0x2f1512=_0x5a0453['startsWith']('format')||_0x5a0453['startsWith']('attribute')?'FORMATTING':_0x5a0453['toUpperCase']();return o(this['editor']['locale'],_0x3ba922+'_'+_0x2f1512+'_SUGGESTION_ANNOUNCEMENT',_0xc3e110);}['_initAriaMarkerChangeAnnouncements'](){const _0x74457d=this['editor'];if(!_0x74457d['ui'])return;const {ariaLiveAnnouncer:_0x3a2bd0}=_0x74457d['ui'];_0xfb66d9(this['_model'],({left:_0x395195,entered:_0x49c023})=>{for(const _0x1e70fc of _0x395195){const {group:_0x2cf402,type:_0x5d0e20}=this['_splitMarkerName'](_0x1e70fc['name']);if('suggestion'===_0x2cf402){_0x3a2bd0['announce'](this['_getMarkerAnnouncementText'](_0x5d0e20,'LEAVE'));break;}}for(const _0x2d49c1 of _0x49c023){const {group:_0x10e95d,type:_0x2cd2ba}=this['_splitMarkerName'](_0x2d49c1['name']);if('suggestion'===_0x10e95d){_0x3a2bd0['announce'](this['_getMarkerAnnouncementText'](_0x2cd2ba,'ENTER',_0x2a60c2(_0x59a850)));break;}}});}['_processAttributeChanges'](_0x3d544f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x495e29=this['editor'],_0x37eb02=_0x495e29['model']['document']['differ']['getChanges']();if(0x0==_0x37eb02['length'])return!0x1;const _0x14bb14=[],_0x5d7674=_0x37eb02['filter'](_0x86fceb=>'attribute'==_0x86fceb['type']),_0x330f0a=_0x37eb02['filter'](_0x11a052=>'insert'==_0x11a052['type']&&'$text'!=_0x11a052['name']),_0x213f6b=_0x37eb02['filter'](_0x5ba0ac=>'remove'==_0x5ba0ac['type']&&'$text'!=_0x5ba0ac['name']);for(const _0x5a5148 of _0x5d7674)_0x14bb14['push']({'key':_0x5a5148['attributeKey'],'newValue':_0x5a5148['attributeNewValue'],'oldValue':_0x5a5148['attributeOldValue'],'range':Ht(_0x5a5148['range'],_0x495e29['model'])});for(const _0x209c01 of _0x330f0a){const _0x2d1e3c=_0x213f6b['find'](_0x542186=>_0x542186['position']['isEqual'](_0x209c01['position']));_0x2d1e3c&&_0x14bb14['push']({'key':m,'newValue':_0x209c01['name'],'oldValue':_0x2d1e3c['name'],'range':_0x495e29['model']['createRangeOn'](_0x209c01['position']['nodeAfter'])});}return 0x0!=_0x14bb14['length']&&this['_reduceExistingSuggestions'](_0x3d544f,_0x14bb14);}['_processAttributeSuggestions'](_0x5973e7){let _0x1254fa=!0x1;const _0x32c72e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x43db44=>_0x43db44['data']['newRange']&&_0x43db44['name']['startsWith']('suggestion:attribute:'));for(const _0x2730ad of _0x32c72e){const {subType:_0x313803,id:_0x2bfebc}=this['_splitMarkerName'](_0x2730ad['name']),_0x31ac3f=_0x313803['split']('|')[0x0];for(const _0x233fa5 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x233fa5['id']!=_0x2bfebc&&'attribute'==_0x233fa5['type']&&_0x233fa5['data']&&_0x233fa5['data']['key']==_0x31ac3f&&_0x233fa5['getFirstRange']()['isIntersecting'](_0x2730ad['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x233fa5,_0x2730ad['data']['newRange'],_0x5973e7),_0x1254fa=!0x0);}return _0x1254fa;}['recordAttributeChanges'](_0x517950){this['_recordAttributeSuggestions']=!0x0,_0x517950();}['_isRegisteredAttribute'](_0x13d94e){const _0x5cac63=this['_isBlockAttribute'](_0x13d94e),_0x4758b8=this['_inlineAttributeKeys']['has'](_0x13d94e);return _0x5cac63||_0x4758b8;}['_reduceExistingSuggestions'](_0x4b5228,_0x7a6b5f){if(0x0==_0x7a6b5f['length'])return!0x1;let _0x1344b2=!0x1;for(const _0x5c5914 of _0x7a6b5f){const _0x44a921=this['_findSuggestions'](_0x5c5914['range'],'attribute')['filter'](_0x479f53=>!_0x479f53['meta']['isNextTo'])['map'](_0x16a7aa=>_0x16a7aa['suggestion']),_0x56b2e7=_0x17437d({'newValue':_0x5c5914['newValue']});_0x44a921['filter'](_0xc7d7d4=>{const [_0x438917,_0x2cc353]=_0xc7d7d4['subType']['split']('|');return _0x438917==_0x5c5914['key']&&_0x2cc353!=_0x56b2e7;})['forEach'](_0x5b1033=>{this['_reduceSuggestionAttributeRange'](_0x5b1033,_0x5c5914['range'],_0x4b5228),_0x1344b2=!0x0;});}return _0x1344b2;}['_reduceSuggestionAttributeRange'](_0x1076e2,_0x764eaf,_0x2f7e67){const _0xa8d701=_0x1076e2['getFirstRange']()['getDifference'](_0x764eaf);0x0!==_0xa8d701['length']?0x1!==_0xa8d701['length']?this['_breakSuggestionMarker'](_0x1076e2,_0x764eaf['start'],_0x764eaf['end']):this['_setSuggestionRange'](_0x1076e2,_0xa8d701[0x0]):_0x2f7e67['removeMarker'](_0x1076e2['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1a8d44){this['_editor']=_0x1a8d44,this['_model']=_0x1a8d44['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1606e5,_0x22936b,_0x25bca3,_0x43f9d9,_0x3b8b69,_0x1b0e85,_0x218403){return new T(this['_model'],{'type':_0x1606e5,'subType':_0x22936b,'id':_0x25bca3,'originalSuggestionId':_0x218403,'author':_0x43f9d9,'creator':_0x43f9d9,'attributes':_0x3b8b69,'onAttributesChange':_0x1b0e85,'onAccept':(..._0x66453)=>this['getSuggestionCallback'](_0x1606e5,_0x22936b,'accept')(..._0x66453),'onDiscard':(..._0x23eea9)=>this['getSuggestionCallback'](_0x1606e5,_0x22936b,'discard')(..._0x23eea9)});}['registerCustomCallback'](_0x51086c,_0x3cc3ed,_0x387ae3,_0x1a53ef){const _0xee4cb8=_0x51086c+':'+_0x3cc3ed+':'+_0x387ae3;this['_customCallbacks']['set'](_0xee4cb8,_0x1a53ef);}['getSuggestionCallback'](_0x3b3427,_0x43c445,_0xb41d6d){const _0x16ff26=_0x3b3427+':'+_0x43c445+':'+_0xb41d6d;return this['_customCallbacks']['get'](_0x16ff26)||this['_defaultCallbacks']['get'](_0x3b3427+':'+_0xb41d6d);}['_registerDefaultCallbacks'](){const _0x25aeb7=()=>!0x1,_0x490875=_0x440a3b=>{_0x440a3b['sort']((_0x360268,_0x5ef1d3)=>_0x360268['start']['isBefore'](_0x5ef1d3['start'])?0x1:-0x1),this['_model']['change'](_0x10543b=>{for(const _0x394732 of _0x440a3b){let _0x157d91;_0x157d91=_0x394732['end']['isAtEnd']&&_0x394732['end']['parent']==_0x394732['start']['nodeAfter']?_0x10543b['createSelection'](_0x394732['start']['nodeAfter'],'on'):_0x10543b['createSelection'](_0x394732),this['_model']['deleteContent'](_0x157d91,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1327ec=(_0x45b247,_0x2a34ad)=>{_0x2a34ad&&this['_model']['change'](_0x544f31=>{const {commandName:_0x422cb7,commandParams:_0x3377ab=[]}=_0x2a34ad,_0x7ffe5=_0x45b247['map'](_0x436776=>(Pt(_0x436776)&&(_0x436776=this['_model']['createRange'](_0x436776['end'])),_0x436776))['filter'](_0x271892=>'$graveyard'!==_0x271892['root']['rootName']);if(_0x7ffe5['length']<0x1)return;const _0x411f39=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3f6e16=>_0x20b456['fromRange'](_0x3f6e16));_0x544f31['setSelection'](_0x7ffe5);for(const _0x1cf6db of this['_editor']['commands']['commands']())_0x1cf6db['refresh']();_0x3377ab['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x422cb7,..._0x3377ab);const _0x28e8be=_0x411f39['filter'](_0x1a7ed4=>'$graveyard'!=_0x1a7ed4['root']['rootName']);_0x28e8be['length']>0x0&&_0x544f31['setSelection'](_0x28e8be);for(const _0x5b8f11 of _0x411f39)_0x5b8f11['detach']();});},_0x40baa4=(_0x8d7dc8,_0x43cf1f)=>0x1==_0x8d7dc8['length']&&0x1==_0x43cf1f['length']&&_0x8d7dc8[0x0]['end']['isEqual'](_0x43cf1f[0x0]['start']),_0x1a091b=(_0x15d81b,_0x68431a,_0x3ef8e9,_0x41a5b9)=>zt(_0x15d81b,_0x68431a,_0x3ef8e9,_0x41a5b9)?[_0x15d81b,_0x68431a]:zt(_0x68431a,_0x15d81b,_0x41a5b9,_0x3ef8e9)?[_0x68431a,_0x15d81b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x25aeb7),this['_defaultCallbacks']['set']('insertion:discard',_0x490875),this['_defaultCallbacks']['set']('insertion:join',_0x40baa4),this['_defaultCallbacks']['set']('insertion:chain',_0x1a091b),this['_defaultCallbacks']['set']('deletion:accept',_0x490875),this['_defaultCallbacks']['set']('deletion:discard',_0x25aeb7),this['_defaultCallbacks']['set']('deletion:join',_0x40baa4),this['_defaultCallbacks']['set']('deletion:chain',_0x1a091b),this['_defaultCallbacks']['set']('formatInline:accept',_0x1327ec),this['_defaultCallbacks']['set']('formatInline:discard',_0x25aeb7),this['_defaultCallbacks']['set']('formatInline:join',_0x40baa4),this['_defaultCallbacks']['set']('formatInline:chain',_0x25aeb7),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1327ec),this['_defaultCallbacks']['set']('formatBlock:discard',_0x25aeb7),this['_defaultCallbacks']['set']('formatBlock:join',_0x40baa4),this['_defaultCallbacks']['set']('formatBlock:chain',_0x25aeb7),this['_defaultCallbacks']['set']('attribute:accept',_0x25aeb7),this['_defaultCallbacks']['set']('attribute:discard',(_0x12d61e,_0x540697)=>{if(!_0x540697)return;const _0x5ec0e5=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x18491b=>{if(_0x540697['key']==m)for(const _0x3114c1 of _0x12d61e){const _0x51b064=_0x3114c1['start']['nodeAfter'],_0x3ef773=_0x540697['oldValue'];_0x18491b['rename'](_0x51b064,_0x3ef773);}else{if(_0x5ec0e5['_isBlockAttribute'](_0x540697['key'])){for(const _0x3f4a35 of _0x12d61e)void 0x0!==_0x540697['oldValue']?_0x18491b['setAttribute'](_0x540697['key'],_0x540697['oldValue'],_0x3f4a35['start']['nodeAfter']):_0x18491b['removeAttribute'](_0x540697['key'],_0x3f4a35['start']['nodeAfter']);}else{for(const _0x48f413 of _0x12d61e)_0x540697['oldValue']?_0x18491b['setAttribute'](_0x540697['key'],_0x540697['oldValue'],_0x48f413):_0x18491b['removeAttribute'](_0x540697['key'],_0x48f413);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x40baa4);}}function Ft(_0x30ff4b,_0xc89c6d,_0x119a6a){for(const _0x28fe19 of _0xc89c6d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x28fe19['root']==_0x28fe19)return!0x1;if(!_0x119a6a['containsItem'](_0x28fe19))return!0x1;if(_0x30ff4b['isObject'](_0x28fe19)||_0x30ff4b['isLimit'](_0x28fe19))return!0x0;}return!0x1;}function Pt(_0x5d8ab9){return _0x5d8ab9['end']['parent']==_0x5d8ab9['start']['nodeAfter']&&_0x5d8ab9['end']['isAtStart'];}function Gt(_0x79a8e,_0x118fe4,_0x52308b,_0x3a5b92){const _0x44a107=_0x324a17=>!_0x324a17['item']['is']('$textProxy')&&!_0x3a5b92['isObject'](_0x324a17['item']),_0x306faf=_0x79a8e['start']['getLastMatchingPosition'](_0x44a107),_0xbfc081=_0x79a8e['end']['getLastMatchingPosition'](_0x44a107,{'direction':'backward'});return(!_0x79a8e['start']['isEqual'](_0x306faf)||!_0x79a8e['end']['isEqual'](_0xbfc081))&&(_0x306faf['isBefore'](_0xbfc081)?_0x52308b['updateMarker'](_0x118fe4,{'range':_0x52308b['createRange'](_0x306faf,_0xbfc081)}):_0x52308b['removeMarker'](_0x118fe4),!0x0);}function Lt(_0x41b5c9){return _0x17437d(_0x41b5c9);}function Jt(_0xb6cfa){const _0xeea4d9=_0xb6cfa['start']['nodeAfter'];return _0xeea4d9&&_0xeea4d9['is']('element');}function Kt(_0x2c5cab){return!Pt(_0x2c5cab)&&!function(_0x5187eb){return _0x5187eb['start']['parent']==_0x5187eb['end']['nodeBefore']&&_0x5187eb['start']['isAtEnd'];}(_0x2c5cab);}function Ht(_0x17ac8c,_0x98addb){return null==_0x17ac8c['end']['nodeBefore']&&_0x17ac8c['end']['parent']==_0x17ac8c['start']['nodeAfter']?qt(_0x17ac8c['start']['nodeAfter'],_0x98addb):_0x17ac8c;}function qt(_0x182f63,_0x34d9c5){const _0xe01cde=_0x34d9c5['schema']['isObject'](_0x182f63)||_0x34d9c5['schema']['isSelectable'](_0x182f63);return _0x34d9c5['createRange'](_0x34d9c5['createPositionAt'](_0x182f63,'before'),_0xe01cde?_0x34d9c5['createPositionAfter'](_0x182f63):_0x34d9c5['createPositionAt'](_0x182f63,'end'));}function zt(_0x42a1bc,_0x549b22,_0xa714c4,_0x4ebf9d){return!!Wt(_0x42a1bc,_0x549b22)&&_0xa714c4['end']['isEqual'](_0x4ebf9d['start']);}function Wt(_0x36b930,_0x5aa9ef){if(!_0x36b930['_isDataLoaded']||!_0x5aa9ef['_isDataLoaded'])return!0x1;const _0xd7d62b=new Set(Object['keys'](_0x36b930['attributes'])),_0x13953c=new Set(Object['keys'](_0x5aa9ef['attributes']));if(_0xd7d62b['delete']('groupId'),_0x13953c['delete']('groupId'),0x0==_0xd7d62b['size']&&0x0==_0x13953c['size'])return!0x0;if(_0xd7d62b['size']!=_0x13953c['size'])return!0x1;const _0x1232c7={..._0x36b930['attributes']},_0x4c92ca={..._0x5aa9ef['attributes']};return delete _0x1232c7['groupId'],delete _0x4c92ca['groupId'],JSON['stringify'](_0x1232c7)==JSON['stringify'](_0x4c92ca);}function Qt(_0x5a86a7,_0x200bb7){const _0x38ff34=Xt(_0x5a86a7['attributes']),_0x7bfc9d=Xt(_0x200bb7);if(!_0x5a86a7['_isDataLoaded'])return!0x1;for(const _0x2ca6f8 of Object['keys'](_0x7bfc9d))if(!_0x23cad6(_0x38ff34[_0x2ca6f8],_0x7bfc9d[_0x2ca6f8]))return!0x1;return!0x0;}function Xt(_0x6b77ff){const _0xcecd20=Object['assign']({},_0x6b77ff);return delete _0xcecd20['skipNestingCheck'],delete _0xcecd20['tablePasteChainId'],_0xcecd20;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x389d9b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x12a5a0,_0x127a7d,_0x2864c5,_0x2bd4da){super(),this['model']=_0x127a7d,this['view']=_0x2864c5,this['commentThreadController']=_0x2bd4da,this['_editor']=_0x12a5a0,this['_acceptCommand']=_0x12a5a0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x12a5a0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2b08f8,_0x3badb3)=>_0x2b08f8||_0x3badb3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2da56a=>_0x2da56a&&this['_editor']['model']['canEditAt'](_0x127a7d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x520b91=>_0x520b91&&this['_editor']['model']['canEditAt'](_0x127a7d['getRanges']())),this['_pendingAction']=null,_0x2864c5['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2864c5,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2864c5,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2864c5,'change:isDirty',()=>{_0x2864c5['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 _0x55e4ef=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x55e4ef);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x390189{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5877ef,_0x2338ec,_0x51c87d,_0xbf7293){super(_0x5877ef),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2805ed(_0x5877ef,o(_0x5877ef,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2338ec['authoredAt']),this['bind']('authoredAt')['to'](_0x2338ec),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',_0x2338ec,'authoredAt',this,'descriptionParts',(_0x101771,_0x39ed5a,_0x557dc1)=>{const _0x222cd0=_0x557dc1['map'](_0x4d8989=>ls(_0x4d8989['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x101771-0x1,_0x2338ec['author']['name'],_0x39ed5a?_0xbf7293['formatDateTime'](_0x39ed5a):'',new DOMParser()['parseFromString'](_0x222cd0,'text/html')['body']['textContent']]);}),this['focusables']=new _0x164c10(),this['focusTracker']=new _0x336cee(),this['keystrokes']=new _0x1db80e(),this['focusCycler']=new _0x435308({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x54890b=>_0x54890b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2338ec,this['_localUser']=_0x51c87d,this['_config']=_0xbf7293,_0xbf7293['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4d2696(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x82802}=this['_config'];this['commentsListView']=new _0x82802(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',_0x218a6d=>_0x218a6d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xbefecc,_0x124b78)=>_0xbefecc||!!_0x124b78);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x207300}=this['_config'],_0x18a9a2=new _0x207300(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4765d5=_0x18a9a2['commentInputView'];return _0x18a9a2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4765d5,'value',(_0x13891c,_0x7223da,_0x596cff)=>!!_0x596cff||_0x13891c&&!_0x7223da),_0x4765d5['on']('submit',(_0x2cc791,_0x374007)=>{this['fire']('addComment',_0x374007),_0x4765d5['editor']['setData']('');}),_0x4765d5['on']('cancel',()=>this['focus']()),_0x4765d5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x18a9a2;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x29eb26,_0x504462,_0x2bbb34,_0x27f517){super(_0x29eb26,_0x504462,_0x2bbb34,_0x27f517),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x10042b=>_0x10042b&&_0x10042b[0x0]?_0x10042b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x15e69a,_0x37df0c)=>{let _0x249431='';for(const _0x23afc0 of _0x15e69a)_0x249431+='<p>'+ls(_0x23afc0['content'],_0x23afc0['color'])+'</p>';return _0x37df0c?_0x249431:_0x33cbe5(_0x249431,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x27f517['SuggestionView'](_0x29eb26,_0x504462,{'formatDateTime':_0x27f517['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 _0x2f00a3=this['bindTemplate'],_0x1cf872=[this['suggestionView']];return this['commentsListView']&&_0x1cf872['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1cf872['push'](this['commentThreadInputView']),_0x1cf872['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2f00a3['if']('isActive','ck-suggestion-wrapper--active'),_0x2f00a3['to']('type',_0x349339=>'ck-suggestion-'+_0x349339),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':_0x2f00a3['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1cf872};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x390189{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x27e1fe,_0x34399c,_0x120c15){super(_0x27e1fe),this['_model']=_0x34399c,this['_config']=_0x120c15,this['set']('description',''),this['bind']('authoredAt')['to'](_0x34399c),this['acceptButton']=this['_createButton'](o(_0x27e1fe,'Accept\x20suggestion'),_0x4d3828,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x27e1fe,'Discard\x20suggestion'),_0x220b2c,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x924866(_0x27e1fe,_0x34399c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x164c10([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x336cee(),this['keystrokes']=new _0x1db80e(),this['focusCycler']=new _0x435308({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4b6557=>_0x4b6557['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1aa4b5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1aa4b5['innerHTML']=this['description'],this['on']('change:description',(_0x1244bd,_0x1c1bb8,_0x21a6a1)=>{_0x1aa4b5['innerHTML']=_0x21a6a1;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x110142=this['bindTemplate'],_0x1e8f34=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x110142['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x110142['to']('authoredAt',_0x22de38=>this['_config']['formatDateTime'](_0x22de38))}]}]},{'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']&&_0x1e8f34['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':_0x1e8f34}]};}['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'](_0x34604c,_0x2b7fcb,_0x28ed24,_0x594900,_0x55bce2){const _0x5f5085=new _0x5dfb91(this['locale']);return _0x5f5085['set']({'label':_0x34604c,'icon':_0x2b7fcb,'tooltip':!0x0,'tooltipPosition':_0x55bce2}),_0x5f5085['extendTemplate']({'attributes':{'class':_0x28ed24}}),_0x5f5085['on']('execute',()=>{this['fire'](_0x594900,this['_model']['id']);}),_0x5f5085;}['_setupKeyboardNavigation'](){const _0xf438ad=this['element'];this['keystrokes']['listenTo'](_0xf438ad);for(const _0x3e3d3b of this['focusables'])this['focusTracker']['add'](_0x3e3d3b['element']),this['keystrokes']['listenTo'](_0x3e3d3b['element']);this['keystrokes']['set']('enter',(_0x44217b,_0x228693)=>{_0xf438ad===_0x44217b['target']&&(this['focusCycler']['focusFirst'](),_0x228693());}),this['keystrokes']['set']('esc',(_0x2eda01,_0x68026f)=>{_0xf438ad!==_0x2eda01['target']&&(this['focus'](),_0x68026f());});}}class u extends _0xccd55c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x1c60de,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25988a){super(_0x25988a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5cbf44=this['editor']['config'];_0x5cbf44['define']('trackChanges.SuggestionThreadView',fe),_0x5cbf44['define']('trackChanges.SuggestionView',we),_0x5cbf44['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5cbf44['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x401545,_0x26bda2){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x510e46,_0x40751d]of this['_handleControllerBuffer']){const _0x14d822=this['_suggestionToController']['has'](_0x510e46);_0x14d822||_0x40751d?_0x14d822&&_0x40751d&&this['_destroyController'](_0x510e46):this['_initializeController'](_0x510e46);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x401545,_0x26bda2);}['init'](){const _0x3bc827=this['editor'],_0x5e418d=_0x3bc827['plugins']['get']('TrackChangesEditing'),_0x378569=_0x3bc827['plugins']['get']('Annotations'),_0x18c763=_0x3bc827['plugins']['get']('EditorAnnotations'),_0x30256b=_0x3bc827['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x18c763['addSourceCollector'](()=>{const _0x1bcf94=[];for(const [_0x22d648,_0x40bd3c]of Array['from'](this['_suggestionToController'])){const _0x271f24=_0x22d648['getAllAdjacentSuggestions'](),_0x317d10=[];for(const _0x2d8a7f of _0x271f24){if(!_0x2d8a7f['isInContent'])continue;if(_0x2d8a7f['isMultiRange']){_0x317d10['push'](..._0x2d8a7f['getRanges']());continue;}const _0x3c2ecd=_0x2d8a7f['getFirstRange']();if(_0x317d10['length']>0x0){const _0x6e824d=_0x317d10[0x0]['getJoined'](_0x3c2ecd);if(_0x6e824d){_0x317d10[0x0]=_0x6e824d;continue;}}_0x317d10['push'](_0x3c2ecd);}_0x1bcf94['push']([_0x40bd3c['view'],_0x317d10]);}return _0x1bcf94;}),this['listenTo'](_0x5e418d,'suggestionLoaded',(_0x50b806,_0x4b0df4)=>{this['listenTo'](_0x4b0df4,'change:previous',(_0x23c051,_0x54d3a5,_0x11022d,_0x3c61a4)=>{_0x4b0df4['isInContent']&&(null==_0x11022d?(this['_updateController'](_0x3c61a4['head']),this['_handleSuggestionControllerDelayed'](_0x4b0df4,!0x1)):(this['_updateController'](_0x11022d['head']),null==_0x3c61a4&&this['_handleSuggestionControllerDelayed'](_0x4b0df4,!0x0)));}),null!==_0x4b0df4['previous']?this['_updateController'](_0x4b0df4['head']):this['_handleSuggestionControllerDelayed'](_0x4b0df4,!0x1);}),this['listenTo'](_0x5e418d,'suggestionUnloaded',(_0x3c867d,_0x528769,_0x1837ac)=>{this['stopListening'](_0x528769,'change:previous'),this['_handleControllerBuffer']['delete'](_0x528769),this['_suggestionToController']['has'](_0x528769)&&this['_destroyController'](_0x528769),_0x1837ac&&this['_updateController'](_0x1837ac['head']);}),this['listenTo'](_0x5e418d,'suggestionChanged',(_0x3dba96,_0x19390d)=>{this['_updateController'](_0x19390d);}),this['listenTo'](_0x378569,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x30256b,'addComment',(_0x5cd89b,{threadId:_0x38910e,isFromAdapter:_0xb9cdef})=>{if(_0xb9cdef||!_0x5e418d['hasSuggestion'](_0x38910e))return;const _0x5be12e=_0x5e418d['getSuggestion'](_0x38910e);this['_suggestionToController']['get'](_0x5be12e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x8bf601=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x10b2ed;for(const _0x318ae8 in _0x8bf601){const _0x35a87d=_0x318ae8,_0x5cf0cc=_0x8bf601[_0x35a87d];if('trackChangesLicenseKeyValid'==_0x5cf0cc||'trackChangesLicenseKeyInvalid'==_0x5cf0cc||'trackChangesLicenseKeyExpired'==_0x5cf0cc||'trackChangesLicenseKeyDomainLimit'==_0x5cf0cc||'trackChangesLicenseKeyNotAllowed'==_0x5cf0cc||'trackChangesLicenseKeyEvaluationLimit'==_0x5cf0cc||'trackChangesLicenseKeyTrialLimit'==_0x5cf0cc||'trackChangesLicenseKeyUsageLimit'==_0x5cf0cc){delete _0x8bf601[_0x35a87d],_0x10b2ed=_0x5cf0cc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x10b2ed&&_0x8bf601['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x10b2ed&&_0x8bf601['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x10b2ed&&_0x8bf601['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x10b2ed&&_0x8bf601['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x10b2ed&&_0x8bf601['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x10b2ed&&_0x8bf601['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x10b2ed&&_0x8bf601['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1046b5){const _0xaadbac=this['_suggestionToController']['get'](_0x1046b5);if(!_0xaadbac)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0xaadbac['view'])||null;}['getSuggestionForAnnotation'](_0x4b7dd7){const _0x27942b=this['_viewToController']['get'](_0x4b7dd7['innerView']);return _0x27942b?_0x27942b['model']:null;}['_refreshActiveMarkers'](){const _0x2cc3f4=this['editor']['plugins']['get']('Annotations'),_0x2e5041=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fad77=Array['from'](_0x2cc3f4['activeAnnotations'],_0x587ce7=>_0x587ce7['innerView'])['filter'](_0x534057=>this['_viewToController']['has'](_0x534057)),_0x1129e1=[];for(const _0x231f84 of _0x2fad77){const _0x465326=this['_viewToController']['get'](_0x231f84)['model']['getAllAdjacentSuggestions']();_0x1129e1['push'](..._0x465326['reduce']((_0x5868f2,_0x12b85d)=>[..._0x5868f2,..._0x12b85d['getMarkerNames']()],[]));}_0x2e5041['activeMarkers']=_0x1129e1;}['_addUIComponentsToFactory'](){const _0x54e97f=this['editor'],_0x4ff1d2=_0x54e97f['locale'],_0x1a6e73=o(_0x4ff1d2,'Track\x20changes'),_0x221a5e=new _0x52b0e2([{'type':'switchbutton','model':new _0xe74fc0({'withText':!0x0,'isToggleable':!0x0,'label':_0x1a6e73,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xe74fc0({'withText':!0x0,'label':o(_0x4ff1d2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe74fc0({'withText':!0x0,'label':o(_0x4ff1d2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe74fc0({'withText':!0x0,'label':o(_0x4ff1d2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe74fc0({'withText':!0x0,'label':o(_0x4ff1d2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x54e97f['plugins']['has']('TrackChangesPreview')&&_0x221a5e['addMany']([{'type':'separator'},{'type':'button','model':new _0xe74fc0({'withText':!0x0,'label':o(_0x4ff1d2,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2f6976 of _0x221a5e)if(ke(_0x2f6976)){const _0x19072e=_0x54e97f['commands']['get'](_0x2f6976['model']['commandName']);_0x2f6976['model']['bind']('isOn','isEnabled')['to'](_0x19072e,'value','isEnabled');}_0x54e97f['ui']['componentFactory']['add']('trackChanges',_0x1d815a=>this['_createToolbarButton'](_0x1d815a,_0x221a5e,_0x1a6e73)),_0x54e97f['ui']['componentFactory']['add']('menuBar:trackChanges',_0xcafe4f=>this['_createMenuBarMenu'](_0xcafe4f,_0x221a5e,_0x1a6e73));}['_createToolbarButton'](_0x3afbae,_0x204fa4,_0x35cd0c){const _0x256994=_0x3ec213(_0x3afbae,_0x23a6b0),_0x24a55a=this['editor']['commands']['get']('trackChanges');_0x256994['buttonView']['set']({'tooltip':_0x35cd0c,'label':_0x35cd0c,'icon':_0x2a8276}),_0x256994['buttonView']['bind']('isOn')['to'](_0x24a55a,'value'),_0x256994['buttonView']['on']('execute',()=>{_0x24a55a['execute'](),this['editor']['editing']['view']['focus']();}),_0x1ac0a4(_0x256994,_0x204fa4,{'role':'menu'});const _0x2debc5=[];for(const _0x5c1c13 of _0x204fa4)ke(_0x5c1c13)&&_0x2debc5['push'](this['editor']['commands']['get'](_0x5c1c13['model']['commandName']));const _0x19f852=_0x256994['buttonView'];return _0x19f852['actionView']['unbind']('isEnabled'),_0x19f852['arrowView']['unbind']('isEnabled'),_0x19f852['actionView']['bind']('isEnabled')['to'](_0x24a55a,'isEnabled'),_0x19f852['arrowView']['bind']('isEnabled')['toMany'](_0x2debc5,'isEnabled',(..._0x2860c9)=>_0x2860c9['some'](_0x3c2cfb=>_0x3c2cfb)),_0x256994['on']('execute',_0x2e270a=>{this['editor']['execute'](_0x2e270a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x256994;}['_createMenuBarMenu'](_0x5c2998,_0x3fee90,_0x42c1be){const _0x1c51be=new _0x52984c(_0x5c2998),_0x35f8ad=this['editor']['commands']['get']('trackChanges');_0x1c51be['buttonView']['set']({'label':_0x42c1be,'icon':_0x2a8276});const _0x3492ed=new _0x42add5(_0x5c2998);for(const _0x58feea of _0x3fee90){if('separator'==_0x58feea['type']){_0x3492ed['items']['add'](new _0x6bdc90(_0x5c2998));continue;}const _0x28875e=new _0x3d5b90(_0x5c2998,_0x1c51be),_0x5d479d=new _0x51bfc9(_0x5c2998),_0x3d871e=_0x58feea['model'];_0x5d479d['bind'](...Object['keys'](_0x3d871e))['to'](_0x3d871e),_0x5d479d['delegate']('execute')['to'](_0x1c51be),_0x5d479d['on']('execute',()=>{this['editor']['execute'](_0x3d871e['commandName']),this['editor']['editing']['view']['focus']();}),_0x28875e['children']['add'](_0x5d479d),_0x3492ed['items']['add'](_0x28875e);}return _0x1c51be['bind']('isEnabled')['to'](_0x35f8ad,'isEnabled'),_0x1c51be['panelView']['children']['add'](_0x3492ed),_0x1c51be;}['_initializeController'](_0x35ad3d){const _0x2f0fc4=this['editor'],_0x24544c=_0x2f0fc4['config'],_0x3a7ebc=_0x2f0fc4['plugins']['get']('Annotations'),_0x190bce=_0x2f0fc4['plugins']['get']('CommentsRepository'),_0x50128f=_0x2f0fc4['plugins']['get']('EditorAnnotations'),_0xc02bc4=_0x2f0fc4['plugins']['get'](_0x1c60de)['me'],_0xc02bb2=_0x24544c['get']('trackChanges')['SuggestionThreadView'],_0x20860a=_0x24544c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x24d4c2,CommentThreadInputView:_0x27355c}=_0x2f0fc4['plugins']['get']('CommentsUI');let _0x4c00db,_0x51b1f1,_0x18f6df;this['_annotationViews']['has'](_0x35ad3d['id'])?(_0x51b1f1=this['_annotationViews']['get'](_0x35ad3d['id']),_0x4c00db=_0x51b1f1['mainView']):(_0x4c00db=new _0xc02bb2(_0x2f0fc4['locale'],_0x35ad3d,_0xc02bc4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x24544c['get']('comments.editorConfig'),'licenseKey':_0x24544c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x24544c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x24544c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x24544c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x142fa3(_0x24544c['get']('locale'),_0x2f0fc4['locale']),'CommentView':_0x24544c['get']('comments')['CommentView'],'CommentsListView':_0x24d4c2,'CommentThreadInputView':_0x27355c,'SuggestionView':_0x20860a}),_0x4c00db['suggestionView']['acceptButton']['on']('execute',()=>{_0x2f0fc4['editing']['view']['focus']();}),_0x4c00db['suggestionView']['discardButton']['on']('execute',()=>{_0x2f0fc4['editing']['view']['focus']();}),_0x51b1f1=_0x3a7ebc['createAnnotationView'](this['editor']['locale'],_0x4c00db),_0x51b1f1['bind']('isDirty')['to'](_0x4c00db,'isDirty'),_0x51b1f1['bind']('length')['to'](_0x4c00db),_0x51b1f1['bind']('type')['to'](_0x4c00db,'type',_0x47d14e=>'suggestion-'+_0x47d14e),_0x4c00db['on']('escape',()=>{_0x18f6df['fire']('escape');}),this['_annotationViews']['set'](_0x35ad3d['id'],_0x51b1f1));const _0x2b3af0=_0x190bce['createCommentThreadController'](_0x35ad3d['commentThread'],_0x4c00db),_0x3f5899=new pe(_0x2f0fc4,_0x35ad3d,_0x4c00db,_0x2b3af0),_0x1a3963=_0x35ad3d['getAllAdjacentSuggestions']()['filter'](_0xdd64a3=>_0xdd64a3['isInContent']);_0x4c00db['descriptionParts']=_0x2f0fc4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1a3963),this['_suggestionToController']['set'](_0x35ad3d,_0x3f5899),this['_viewToController']['set'](_0x4c00db,_0x3f5899),_0x18f6df=_0x3a7ebc['createAnnotation']({'view':_0x51b1f1,'target':()=>{const _0x21cbf5=[],_0x1abfa5=_0x35ad3d['getAllAdjacentSuggestions']()['filter'](_0x2896bc=>_0x2896bc['isInContent']);for(const _0xfd0eff of _0x1abfa5)_0x21cbf5['push'](..._0xfd0eff['getMarkers']());return _0x17848e(_0x2f0fc4['editing'],_0x21cbf5);},'type':()=>'suggestion-'+_0x3f5899['view']['type']}),_0x190bce['_bindAnnotationToEditors'](_0x4c00db,_0x18f6df),_0x3a7ebc['add'](_0x18f6df),_0x50128f['registerAnnotation'](_0x18f6df);}['_destroyController'](_0x263f67){const _0x433e4d=this['editor']['plugins']['get']('CommentsRepository'),_0x1a7e73=this['editor']['plugins']['get']('Annotations'),_0xa19b5e=this['_suggestionToController']['get'](_0x263f67),_0x1724c0=_0xa19b5e['view'],_0x1cc646=_0x1a7e73['getByInnerView'](_0x1724c0);_0x433e4d['_unbindEditors'](_0x1724c0),_0x1cc646&&_0x1a7e73['remove'](_0x1cc646),this['_suggestionToController']['delete'](_0x263f67),this['_viewToController']['delete'](_0x1724c0),_0xa19b5e['destroy']();}['_updateController'](_0x1a5fcc){if(!_0x1a5fcc['isInContent']||!this['_suggestionToController']['has'](_0x1a5fcc))return;const _0x35ecaa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x106659=this['_suggestionToController']['get'](_0x1a5fcc),_0x2340f8=_0x1a5fcc['getAllAdjacentSuggestions']();_0x106659['view']['descriptionParts']=_0x35ecaa['descriptionFactory']['getDescriptions'](_0x2340f8);}['destroy'](){for(const _0xa50d5c of this['_suggestionToController']['keys']())this['_destroyController'](_0xa50d5c);for(const _0x490185 of this['_annotationViews']['values']())_0x490185['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5533a2){return'model'in _0x5533a2;}class Fe extends _0xccd55c{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x261a57){this['editor']['plugins']['get'](d)['adapter']=_0x261a57;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1c7324){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1c7324);}['getSuggestions']({skipNotAttached:_0x5bde25=!0x1,toJSON:_0x59710b=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5bde25,'toJSON':_0x59710b});}['getSuggestion'](_0x56af69){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x56af69);}}const p=['Pagination'];class re extends _0xccd55c{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x498d2d=this['editor'];if(_0x498d2d['config']['define']('trackChangesData.editorCreator',_0x372a7b=>{const _0x51e393=_0x498d2d['model']['document']['getRootNames']()['reduce']((_0x1ad061,_0x2c7d1d)=>(_0x1ad061[_0x2c7d1d]='',_0x1ad061),{});return _0x498d2d['constructor']['create'](_0x51e393,_0x372a7b);}),'function'!=typeof _0x498d2d['config']['get']('trackChangesData')['editorCreator'])throw new _0x59d332('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x387c69){return P(this['editor'],!0x0,_0x387c69);}['getDataWithDiscardedSuggestions'](_0x54e8e6){return P(this['editor'],!0x1,_0x54e8e6);}}class Ge extends _0xccd55c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c447a){function _0x469f64(_0x36689d){return _0x36689d['map'](_0x68a9e7=>String['fromCharCode'](_0x68a9e7))['join']('');}super(_0x5c447a),this['result']='end',_0x5c447a[_0x469f64([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x469f64([0x76,0x69,0x65,0x77])][_0x469f64([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x469f64([0x61,0x75,0x74,0x6f]),_0x5c447a[_0x469f64([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x469f64([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x469f64([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x469f64([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x469f64([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function He(_0x1ebc51){return void 0x0!==_0x1ebc51['getRootsAttributes'];}async function P(_0x1a3ca5,_0xd86b14,_0x2e38c8){const _0x2ef92f=_0x423a1d(_0x1a3ca5,p);_0x2ef92f['plugins']['push'](d,Ge),_0x2ef92f['rootsAttributes']=He(_0x1a3ca5)?_0x1a3ca5['getRootsAttributes']():void 0x0;const _0x2d9eac=document['createDocumentFragment'](),_0x45261d=_0x1a3ca5['config']['get']('trackChangesData')['editorCreator'],_0x1c0eb7=await _0x45261d(_0x2ef92f,()=>function(_0x4a83b3){const _0x26226d=document['createElement']('div');return _0x4a83b3['appendChild'](_0x26226d),_0x26226d;}(_0x2d9eac));!function(_0x2ec068,_0x794988){const _0x2695b4=_0x2ec068['model']['document']['getRootNames']()['reduce']((_0x164f01,_0x252a0c)=>(_0x164f01[_0x252a0c]=_0x2ec068['data']['get']({'rootName':_0x252a0c}),_0x164f01),{}),_0x4d698f=_0x2ec068['plugins']['get']('Users')['users']['map'](_0xb25a41=>({'id':_0xb25a41['id'],'name':_0xb25a41['name']})),_0x44d95d=_0x2ec068['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1f38be=_0x2ec068['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2214a7=_0x794988['plugins']['get']('Users'),_0x830c81=_0x794988['plugins']['get']('TrackChangesEditing'),_0x52fac6=_0x794988['plugins']['get']('CommentsRepository');for(const _0x327a7a of _0x52fac6['getCommentThreads']())_0x327a7a['remove']();for(const _0x5ee1d7 of _0x4d698f)_0x2214a7['getUser'](_0x5ee1d7['id'])||_0x2214a7['addUser'](_0x5ee1d7);_0x2214a7['me']||_0x2214a7['useAnonymousUser']();for(const _0x4cc1f7 of _0x1f38be)_0x52fac6['addCommentThread'](_0x4cc1f7);for(const _0x443230 of _0x44d95d)_0x830c81['addSuggestionData'](_0x443230);_0x794988['data']['set'](_0x2695b4);}(_0x1a3ca5,_0x1c0eb7),_0x1c0eb7['execute'](_0xd86b14?'acceptAllSuggestions':'discardAllSuggestions');const _0x5adcb9=He(_0x1c0eb7)?_0x1c0eb7['getFullData'](_0x2e38c8):_0x1c0eb7['data']['get'](_0x2e38c8);return await _0x1c0eb7['destroy'](),_0x5adcb9;}class Me extends _0x390189{['options'];constructor(_0x111590,_0x3afff8){super(_0x111590),this['options']=_0x3afff8,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x332f0d,_0xff6f5a){if(!this['element'])return;const _0x227b19=[];for(const [_0x217d45,_0x39e40c]of _0x332f0d){const _0x4bab1d=document['createElement']('div');_0x4bab1d['setAttribute']('data-ck-root-name',_0x217d45),_0x4bab1d['className']=_0x39e40c['classes']+'\x20ck-track-changes-preview__root-container',_0x4bab1d['innerHTML']=_0x39e40c['content'],_0x227b19['push'](_0x4bab1d);}_0xff6f5a(this['element'],_0x227b19),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x1ae931{constructor(_0x30ffea){super(_0x30ffea),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x58a9b2=this['editor'],_0x31f06e=_0x58a9b2['locale'],_0x82eb5a=_0x58a9b2['plugins']['get']('Dialog');let _0x169bc4;const _0xd7925a=function(_0x1f3418){const _0x5e4a21={};if('editables'in _0x1f3418['ui']['view']){for(const [_0x119f74,_0x4d5c0e]of Object['entries'](_0x1f3418['ui']['view']['editables']))_0x5e4a21[_0x119f74]=_0x4d5c0e['element'];}else _0x5e4a21[_0x1f3418['model']['document']['getRootNames']()[0x0]]=_0x1f3418['ui']['view']['editable']['element'];return _0x5e4a21;}(_0x58a9b2),_0x2f242f=function(_0x35cf19){let _0x4e5ab3=0x0;for(const _0x48164c of Object['values'](_0x35cf19))_0x4e5ab3=Math['max'](_0x4e5ab3,_0x48164c['getBoundingClientRect']()['width']);let _0xbc59f=0x0;for(const _0x1870e1 of Object['values'](_0x35cf19))_0xbc59f+=_0x1870e1['getBoundingClientRect']()['height'];const _0x520f7f=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2343d8=Math['min'](_0xbc59f,_0x520f7f);return{'width':_0x4e5ab3,'height':_0x2343d8};}(_0xd7925a);_0x82eb5a['show']({'id':'finalContentPreview','title':o(_0x31f06e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x31f06e,{'dialogRects':_0x2f242f}),'onHide':()=>{_0x169bc4['detachFromDom']();},'onShow':()=>{_0x58a9b2['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x53e52a=>{const _0x108c5b=this['_standarizeRootsData'](_0x53e52a,_0x58a9b2,_0xd7925a);_0x82eb5a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x108c5b,_0x58a9b2['config']['get']('trackChanges.preview.renderFunction'));}),_0x169bc4=new _0x49dc14(_0x31f06e,[_0x82eb5a['view']]),_0x169bc4['attachToDom'](),_0x169bc4['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x58a9b2['once']('destroy',()=>{_0x169bc4['detachFromDom']();});const _0x1b1d26=_0x82eb5a['view']['headerView']['class'];_0x82eb5a['view']['headerView']['class']=_0x1b1d26?_0x1b1d26+'\x20ck-reset_all':'ck-reset_all',_0x82eb5a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x82eb5a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3a1336=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x389ed9=_0x3a1336['previewMode'],_0x36c6bd={};if('$labels'===_0x389ed9){for(const _0x407ef6 of _0x3a1336['getMergeFieldsIds']())_0x36c6bd[_0x407ef6]=_0x3a1336['getLabel'](_0x407ef6)||_0x407ef6;}else{const _0x1f3e1d='$defaultValues'===_0x389ed9?_0x3a1336['getDefaultValues']():_0x3a1336['getDataSetValues'](_0x389ed9,!0x0);for(const _0x3a3b39 of Object['entries'](_0x1f3e1d)){const [_0x2af69f,_0x552cfb]=_0x3a3b39;_0x36c6bd[_0x2af69f]=null!==_0x552cfb?_0x552cfb:_0x3a1336['getLabel'](_0x2af69f)||_0x2af69f;}}return{'mergeFieldsData':_0x36c6bd};}['_standarizeRootsData'](_0x249a43,_0x459a2d,_0x30c8c3){let _0x43519c;if('string'==typeof _0x249a43){const _0xe73120=_0x459a2d['model']['document']['getRootNames']()[0x0];_0x43519c={[_0xe73120]:_0x249a43};}else _0x43519c=_0x249a43;const _0x3e5cfa=this['_fixMediaEmbeds'](_0x43519c,_0x459a2d),_0x3c16c6=function(_0x5c8d80,_0x206941){for(const [_0x269881,_0x437ff5]of _0x5c8d80)_0x437ff5['classes']=_0x206941[_0x269881]['classList']['value']['replace']('ck-focused','');return _0x5c8d80;}(this['_sortRoots'](_0x459a2d)['reduce']((_0x5f57e1,_0x29aef4)=>(_0x5f57e1['push']([_0x29aef4,{'content':_0x3e5cfa[_0x29aef4],'classes':''}]),_0x5f57e1),[]),_0x30c8c3);return _0x3c16c6;}['_fixMediaEmbeds'](_0xf5912,_0x2f45c6){if(!_0x2f45c6['plugins']['has']('MediaEmbedEditing'))return _0xf5912;const _0x932a2a=_0x2f45c6['plugins']['get']('MediaEmbedEditing');for(const [_0x401dd0,_0x42a170]of Object['entries'](_0xf5912)){const _0x121fe8=document['createElement']('div');_0x121fe8['innerHTML']=_0x42a170,(_0x121fe8['querySelectorAll']('figure.media')['forEach'](_0x1e7fd0=>{const _0x4f02a0=_0x1e7fd0['querySelector']('oembed');if(_0x4f02a0){const _0x34b58b=_0x4f02a0['getAttribute']('url');if(_0x34b58b){const _0x448734=_0x932a2a['registry']['getMediaViewElement'](new _0x278fb4(_0x2f45c6['editing']['view']['document']),_0x34b58b,{'elementName':'','renderForEditingView':!0x0}),_0x553333=document['createElement']('div');_0x553333['classList']['add']('ck-media__wrapper'),_0x448734['render'](_0x553333,_0x2f45c6['editing']['view']['domConverter']),_0x4f02a0['replaceWith'](_0x553333);}}}),_0xf5912[_0x401dd0]=_0x121fe8['innerHTML']);}return _0xf5912;}['_sortRoots'](_0x247db4){if(!function(_0x3a3f9e){return void 0x0!==_0x3a3f9e['getRootsAttributes'];}(_0x247db4))return _0x247db4['model']['document']['getRootNames']();const _0x58ecf2=[],_0x323930=new Map();for(const _0x27652b of _0x247db4['model']['document']['getRootNames']()){const _0x2dad6e=_0x247db4['editing']['view']['getDomRoot'](_0x27652b)['getClientRects']()['item'](0x0);_0x58ecf2['push'](_0x27652b),_0x323930['set'](_0x27652b,_0x2dad6e);}return _0x58ecf2['sort']((_0x3b56c8,_0x15dda9)=>{const _0x33bd82=_0x323930['get'](_0x3b56c8),_0x550b15=_0x323930['get'](_0x15dda9);return _0x33bd82['y']-_0x550b15['y']||_0x33bd82['x']-_0x550b15['x'];}),_0x58ecf2;}}class $e extends _0xccd55c{static get['requires'](){return[re,_0xb00e44];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28a2cc){super(_0x28a2cc),_0x28a2cc['commands']['add']('previewFinalContent',new te(this['editor'])),_0x28a2cc['config']['define']('trackChanges.preview.renderFunction',(_0x4e3cd8,_0x17d63a)=>{for(const _0x5ccfcd of _0x17d63a)_0x4e3cd8['appendChild'](_0x5ccfcd);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
23
+ import{Command as _0x201f08,Plugin as _0x13e452,PendingActions as _0x377dde}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x19b862,ObservableMixin as _0x4af2b4,uid as _0x22223a,priorities as _0x17dc3a,insertToPriorityArray as _0x4770ea,toArray as _0x2e0ed6,logWarning as _0x5ac787,getEnvKeystrokeText as _0x4b4623,FocusTracker as _0x49dfd9,KeystrokeHandler as _0x47fd75,Collection as _0x5bf0cc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x317a1a,IconCancel as _0x1efdbd,IconTrackChanges as _0x13883d}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1d2800,View as _0x2d8d59,ViewCollection as _0xc8541d,FocusCycler as _0x4ac438,UIModel as _0x518378,createDropdown as _0x366dc0,SplitButtonView as _0x2253af,addListToDropdown as _0x6d9994,MenuBarMenuView as _0x1f0be0,MenuBarMenuListView as _0x2849be,ListSeparatorView as _0x43929d,MenuBarMenuListItemView as _0x1fb5d9,MenuBarMenuListItemButtonView as _0x4d739d,BodyCollection as _0x3bc5c1,Dialog as _0x5cbeab}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x56d1a,hashObject as _0x51d884,surroundingMarkersDetector as _0x4124c9,FOCUS_ANNOTATION_KEYSTROKE as _0x50d6b0,AriaDescriptionView as _0x5e3ac9,setupThreadKeyboardNavigation as _0x32d9f5,trimHtml as _0x27347b,UserView as _0x241076,LateFocusButtonView as _0x55ec27,getDateTimeFormatter as _0x45f341,getAllMarkersDomElementsSorted as _0x1dfa67,sanitizeEditorConfig as _0x79006e}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x7e4058,ModelLiveRange as _0x158d49,ModelLivePosition as _0x488dc6,ViewDowncastWriter as _0x242596}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5b6e86,toWidget as _0xb90220}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xc94e0f,set as _0x1b70ab,isEqual as _0x1ced7c,unset as _0x1250ae,omit as Ut}from'es-toolkit/compat';import{Delete as _0xc472a0,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3e1d1a}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x283213}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x201f08{['_enabledCommands'];constructor(_0x3609b8,_0x5f24f6){super(_0x3609b8),this['_enabledCommands']=_0x5f24f6,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 _0x2620bf of this['editor']['commands']['commands']())_0x2620bf['affectsData']&&!this['_enabledCommands']['has'](_0x2620bf)&&_0x2620bf['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xe75ebd of this['editor']['commands']['commands']())_0xe75ebd['affectsData']&&!this['_enabledCommands']['has'](_0xe75ebd)&&_0xe75ebd['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x201f08{['_suggestions'];constructor(_0xd1d9e1,_0x48c075){super(_0xd1d9e1),this['_suggestions']=_0x48c075,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1bf26f){const _0x6e5b8e=this['_suggestions']['get'](_0x1bf26f);if(!_0x6e5b8e)throw new _0x19b862('track-changes-accept-suggestion-not-found',this);const _0x2a434b=_0x6e5b8e['getRanges']();this['editor']['model']['canEditAt'](_0x2a434b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x6e5b8e);}}class M extends _0x201f08{['_suggestions'];constructor(_0xab34c0,_0x1050ed){super(_0xab34c0),this['_suggestions']=_0x1050ed,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x24dc22){const _0x2659fa=this['_suggestions']['get'](_0x24dc22);if(!_0x2659fa)throw new _0x19b862('track-changes-discard-suggestion-not-found',this);const _0x1ef323=_0x2659fa['getRanges']();this['editor']['model']['canEditAt'](_0x1ef323)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2659fa);}}function ls(_0x51ad80,_0x58f9bc){let _0x584cb8='';return _0x584cb8+=_0x51ad80['split']('*')['map']((_0x412f6a,_0x590c3e)=>_0x590c3e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x412f6a)+'</span>':Yt(_0x412f6a))['join'](''),_0x58f9bc&&(_0x584cb8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x58f9bc['value']+'\x22\x20title=\x22'+_0x58f9bc['title']+'\x22></span>'),_0x584cb8;}function Yt(_0x1c9f1f){const _0x1c105c=document['createElement']('span');return _0x1c105c['innerText']=_0x1c9f1f,_0x1c105c['innerHTML'];}function ts(_0x759029){return _0x759029['sort']((_0x218a77,_0x3a27d0)=>'attribute'===_0x218a77['type']&&'attribute'!==_0x3a27d0['type']?-0x1:'attribute'!==_0x218a77['type']&&'attribute'===_0x3a27d0['type']?0x1:'deletion'==_0x218a77['type']&&'deletion'!=_0x3a27d0['type']?-0x1:'deletion'!=_0x218a77['type']&&'deletion'==_0x3a27d0['type']?0x1:0x0);}function to(_0xa15c9a,_0x2c082c){let _0x6a99cf,_0x41ac06=0x0;const _0x4e1919=[],_0xe65e84=_0x2c082c['schema'];for(;_0x41ac06<_0xa15c9a['length'];){const _0x40a07c=_0xa15c9a[_0x41ac06],_0x3d9e6f=_0xa15c9a[_0x41ac06+0x1];_0x6a99cf||(_0x6a99cf=_0x2c082c['createPositionBefore'](_0x40a07c)),Zt(_0x2c082c,_0x40a07c,_0x3d9e6f)||(_0x4e1919['push'](_0x2c082c['createRange'](_0x6a99cf,_0xe65e84['isObject'](_0x40a07c)?_0x2c082c['createPositionAfter'](_0x40a07c):_0x2c082c['createPositionAt'](_0x40a07c,'end'))),_0x6a99cf=null),_0x41ac06++;}return _0x4e1919;}function Zt(_0x4dc841,_0x2a5fde,_0x4b8bf0){if(!_0x4b8bf0)return!0x1;const _0x1f3cab=_0x4dc841['createPositionAfter'](_0x2a5fde),_0x3f75d9=_0x4dc841['createPositionBefore'](_0x4b8bf0);return _0x1f3cab['isTouching'](_0x3f75d9);}function rs(_0x113fb8,_0x2b01d0,_0x41d132){for(;_0x41d132['length'];){const _0x28d26e=_0x41d132['splice'](0x0,0x64);_0x113fb8['change'](()=>{for(const _0x296a3c of _0x28d26e)_0x296a3c['isInContent']&&_0x2b01d0['execute'](_0x296a3c['id']);});}}class $ extends _0x201f08{['_command'];['_suggestions'];constructor(_0x49a2f0,_0x5ed29b,_0x1e5604){super(_0x49a2f0),this['_command']=_0x5ed29b,this['_suggestions']=_0x1e5604,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x28e90d=Array['from'](this['_suggestions']['values']())['some'](_0x3e1d3f=>_0x3e1d3f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x28e90d;}['execute'](){const _0x1516a2=ts(Array['from'](this['_suggestions']['values']()));for(const _0x499e4b of _0x1516a2){const _0x1c3651=_0x499e4b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1c3651))return;}rs(this['editor']['model'],this['_command'],_0x1516a2);}}class B extends _0x201f08{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x184842,_0x40d481,_0x3e09ec){super(_0x184842),this['_command']=_0x40d481,this['_suggestions']=_0x3e09ec,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2a98e2=this['editor']['model']['document']['selection'],_0x2cd1c0=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x196b54,_0xf59fce){const _0xb19696=Array['from'](_0x196b54['getRanges']()),_0x27d7c6=new Set();for(const _0x38bca6 of _0xf59fce)if(_0x38bca6['isInContent']){for(const _0x1a0256 of _0xb19696)for(const _0x146382 of _0x38bca6['getRanges']())(_0x1a0256['isIntersecting'](_0x146382)||_0x196b54['isCollapsed']&&!_0x38bca6['isMultiRange']&&_0x38bca6['next']&&_0x146382['end']['isTouching'](_0x1a0256['start']))&&_0x27d7c6['add'](_0x38bca6);}return _0x27d7c6;}(_0x2a98e2,_0x2cd1c0),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4f7127=ts(Array['from'](this['_selectedSuggestions']));for(const _0xaf8ba7 of _0x4f7127){const _0x5c29d2=_0xaf8ba7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5c29d2))return;}rs(this['editor']['model'],this['_command'],_0x4f7127);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x4af2b4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x421a31,_0x575572){super(),this['id']=_0x575572['id'],this['type']=_0x575572['type'],this['subType']=_0x575572['subType']||null,this['author']=_0x575572['author'],this['creator']=_0x575572['creator']||_0x575572['author'],this['isExternal']=Boolean(_0x575572['attributes']&&_0x575572['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x575572['originalSuggestionId']||null,this['_model']=_0x421a31,this['_onAccept']=_0x575572['onAccept'],this['_onDiscard']=_0x575572['onDiscard'],this['_onAttributesChange']=_0x575572['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x575572['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 _0x24986a=this;for(;_0x24986a['previous'];)_0x24986a=_0x24986a['previous'];return _0x24986a;}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'](_0x58f270){this['_markerNames']['add'](_0x58f270);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x31f157=>this['_model']['markers']['get'](_0x31f157))['filter'](_0xb16336=>_0xb16336);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3ae3fd=>{for(const _0x5545f0 of this['getMarkers']())_0x3ae3fd['removeMarker'](_0x5545f0);}),this['_markerNames']['clear']();}['removeMarker'](_0x4acbce){this['_model']['change'](_0x107454=>{_0x107454['removeMarker'](_0x4acbce);}),this['_markerNames']['delete'](_0x4acbce);}['addRange'](_0x454bb8){const _0x1eb543='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x1eb543),this['_model']['change'](_0x8414af=>{_0x8414af['addMarker'](_0x1eb543,{'range':_0x454bb8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1c6fdd){for(const _0x15c007 of this['getRanges']())if(_0x15c007['isIntersecting'](_0x1c6fdd))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5b7d06=>_0x5b7d06['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3063ca,_0x4007a7)=>[..._0x3063ca,..._0x4007a7['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x52b5d6=this['getRanges']();if(0x1!=_0x52b5d6['length'])return null;const _0x43b343=_0x52b5d6[0x0],_0x114dd2=_0x43b343['start']['nodeAfter'],_0xe8343a=_0x43b343['end']['nodeBefore'];return _0x114dd2 instanceof _0x7e4058?_0x114dd2!=_0xe8343a?null:_0x114dd2: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 _0x39c087=[];let _0x10f8f5=this['head'];for(;_0x10f8f5;)_0x39c087['push'](_0x10f8f5),_0x10f8f5=_0x10f8f5['next'];return _0x39c087;}['setAttribute'](_0x1fadfa,_0x191b71){const _0x387a71=_0xc94e0f(this['attributes']);_0x1b70ab(_0x387a71,_0x1fadfa,_0x191b71),_0x1ced7c(_0x387a71,this['attributes'])||(this['attributes']=_0x387a71,this['_onAttributesChange'](_0x387a71));}['removeAttribute'](_0x529220){const _0x51673c=_0xc94e0f(this['attributes']);_0x1250ae(_0x51673c,_0x529220),_0x1ced7c(_0x51673c,this['attributes'])||(this['attributes']=_0x51673c,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 _0x22223a()['substr'](0x1,0x5);}}function o(_0x295321,_0x3d24f1,_0x4b8d49){const _0x63fa84=_0x295321['t'],t=_0x295321['t'];switch(_0x3d24f1){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x4b8d49);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4b8d49);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4b8d49);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4b8d49);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4b8d49);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',_0x4b8d49);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4b8d49);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4b8d49);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4b8d49);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4b8d49);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4b8d49);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4b8d49);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4b8d49);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4b8d49);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4b8d49);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4b8d49);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4b8d49);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4b8d49);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4b8d49);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4b8d49);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4b8d49);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4b8d49);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4b8d49);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4b8d49);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4b8d49);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'},_0x4b8d49);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4b8d49);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4b8d49);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4b8d49);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4b8d49);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4b8d49);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4b8d49);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4b8d49);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'},_0x4b8d49);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4b8d49);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4b8d49);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4b8d49);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4b8d49);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'},_0x4b8d49);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4b8d49);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'},_0x4b8d49);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x4b8d49);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4b8d49);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'},_0x4b8d49);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4b8d49);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'},_0x4b8d49);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4b8d49);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4b8d49);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'},_0x4b8d49);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4b8d49);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 _0x63fa84({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4b8d49);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x63fa84({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4b8d49);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4b8d49);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'},_0x4b8d49);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'},_0x4b8d49);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'},_0x4b8d49);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3d24f1;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x234bab,_0x6dd382){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x234bab,this['_locale']=_0x6dd382;}['getDescriptions'](_0x199588){const _0x41a156=[],_0x5bf7e1=new Set(),_0x24cf3d=new Set();for(let _0x50a904=0x0;_0x50a904<_0x199588['length'];_0x50a904++){const _0x5ecc55=_0x199588[_0x50a904];if(!_0x5ecc55['isInContent'])continue;const _0x346872=this['_handleCustomCallbackDescription'](_0x5ecc55);if(_0x346872){if(null!=_0x5ecc55['subType']){if(_0x5bf7e1['has'](_0x5ecc55['subType']))continue;_0x5bf7e1['add'](_0x5ecc55['subType']);}_0x41a156['push'](_0x346872);}else{if('attribute'==_0x5ecc55['type']){const _0x54b6ef=_0x5ecc55['data']['key'];if(_0x24cf3d['has'](_0x54b6ef))continue;_0x24cf3d['add'](_0x5ecc55['data']['key']),_0x54b6ef==m?this['_handleRenameSuggestionDescription'](_0x41a156,_0x5ecc55):this['_handleAttributeSuggestionDescription'](_0x41a156,_0x5ecc55);continue;}'insertion'!=_0x5ecc55['type']&&'deletion'!=_0x5ecc55['type']||this['_handleInsertRemoveSuggestionDescription'](_0x41a156,_0x5ecc55,_0x199588[_0x50a904+0x1]);}}return this['_resolveDescriptionItems'](_0x41a156);}['registerDescriptionCallback'](_0x586b66){this['_customCallbacks']['push'](_0x586b66);}['registerElementLabel'](_0x49d0fd,_0x22228e,_0x467382=_0x17dc3a['normal']){'function'==typeof _0x49d0fd?_0x4770ea(this['_itemLabelsCallbacks'],{'matchingCallback':_0x49d0fd,'label':_0x22228e,'priority':_0x467382}):this['_itemLabels']['set'](_0x49d0fd,_0x22228e);}['registerAttributeLabel'](_0x56b479,_0x5013d1){this['_attributeLabels']['set'](_0x56b479,_0x5013d1);}['getItemLabel'](_0x5b24bf,_0x110894=0x1){let _0x66c12;for(const _0x469b21 of this['_itemLabelsCallbacks'])if(_0x469b21['matchingCallback'](_0x5b24bf)){_0x66c12=_0x469b21['label'];break;}return _0x66c12||(_0x66c12=this['_itemLabels']['get'](_0x5b24bf['name'])),_0x66c12?_0x66c12(_0x110894):0x1!==_0x110894?_0x110894+'\x20'+_0x5b24bf['name']+'s':''+_0x5b24bf['name'];}['_addDescriptionItems'](_0x44d5d8,_0x310ed9){const _0x3db904=_0x310ed9['getFirstRange']()['getWalker'](),_0x567f36='insertion'==_0x310ed9['type']?'add':'remove';for(const _0x291f5a of _0x3db904){const _0xfed165=_0x291f5a['item'],_0x4b8707=_0x44d5d8[_0x44d5d8['length']-0x1];if(_0xfed165['is']('$textProxy'))_0x4b8707&&_0x4b8707['type']['indexOf']('Container')>-0x1&&_0x44d5d8['pop'](),_0x4b8707&&'text'==_0x4b8707['type']?_0x4b8707[_0x567f36]+=_0xfed165['data']:_0x44d5d8['push']({'type':'text','add':'add'==_0x567f36?_0xfed165['data']:'','remove':'remove'==_0x567f36?_0xfed165['data']:''});else{if(this['_schema']['isObject'](_0xfed165)){const _0x37fab5=_0xfed165;if(_0x4b8707&&_0x4b8707['type']['indexOf']('Container')>-0x1&&_0x44d5d8['pop'](),'elementEnd'==_0x291f5a['type'])continue;_0x4b8707&&_0x4b8707['type']==_0x567f36+'Object'&&_0x4b8707['element']['name']==_0x37fab5['name']?_0x4b8707['quantity']++:_0x44d5d8['push']({'type':_0x567f36+'Object','element':_0x37fab5,'quantity':0x1}),_0x3db904['skip'](_0x4a3b01=>!('elementEnd'==_0x4a3b01['type']&&_0x4a3b01['item']==_0xfed165));}else{if(this['_schema']['checkChild'](_0xfed165,'$text')||_0xfed165['is']('element','softBreak')){const _0x4d57a3=_0xfed165;if('add'==_0x567f36&&'elementStart'==_0x291f5a['type']||'remove'==_0x567f36&&'elementEnd'==_0x291f5a['type'])continue;if(_0x4b8707&&-0x1==_0x4b8707['type']['indexOf']('Container')){'text'==_0x4b8707['type']&&(_0x4b8707[_0x567f36]+='\x0a');continue;}let _0x396f3a;if(_0x396f3a='add'==_0x567f36?_0x4d57a3['nextSibling']&&!this['_schema']['isObject'](_0x4d57a3['nextSibling'])?_0x4d57a3['nextSibling']:null:_0x4d57a3['previousSibling']&&!this['_schema']['isObject'](_0x4d57a3['previousSibling'])?_0x4d57a3['previousSibling']:null,_0x4d57a3['isEmpty']||_0x396f3a&&_0x396f3a['isEmpty']){const _0x20372f=_0x396f3a&&_0x396f3a['isEmpty']?_0x396f3a:_0x4d57a3;_0x4b8707&&_0x4b8707['type']==_0x567f36+'EmptyContainer'&&_0x4b8707['element']['name']==_0x20372f['name']?_0x4b8707['quantity']++:_0x44d5d8['push']({'type':_0x567f36+'EmptyContainer','element':_0x20372f,'quantity':0x1});}else _0x44d5d8['push']({'type':_0x567f36+'Container','element':_0x4d57a3});}}}}}['_resolveDescriptionItems'](_0x103020){const _0x277012=this['_locale'],_0x1df3fc=[],_0x5db9cf=[],_0x53f054=[];for(const _0x18025c of _0x103020)switch(_0x18025c['type']){case'text':if(_0x18025c['add']=_0x18025c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x18025c['remove']=_0x18025c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x18025c['add']&&''!=_0x18025c['remove']){_0x1df3fc['push']({'type':'replace','content':o(_0x277012,'REPLACE_TEXT',['\x22'+_0x18025c['remove']+'\x22','\x22'+_0x18025c['add']+'\x22'])});continue;}if(null!=_0x18025c['add']['match'](/^ +$/)){_0x1df3fc['push']({'type':'insertion','content':o(_0x277012,'*Insert:*\x20%0',o(_0x277012,'ELEMENT_SPACE',_0x18025c['add']['length']))});continue;}if(null!=_0x18025c['remove']['match'](/^ +$/)){_0x1df3fc['push']({'type':'deletion','content':o(_0x277012,'*Remove:*\x20%0',o(_0x277012,'ELEMENT_SPACE',_0x18025c['remove']['length']))});continue;}if(''!=_0x18025c['add']){_0x1df3fc['push']({'type':'insertion','content':o(_0x277012,'*Insert:*\x20%0','\x22'+_0x18025c['add']+'\x22')});continue;}_0x1df3fc['push']({'type':'deletion','content':o(_0x277012,'*Remove:*\x20%0','\x22'+_0x18025c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1df3fc['push']({'type':'insertion','content':o(_0x277012,'*Insert:*\x20%0',this['getItemLabel'](_0x18025c['element'],_0x18025c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1df3fc['push']({'type':'deletion','content':o(_0x277012,'*Remove:*\x20%0',this['getItemLabel'](_0x18025c['element'],_0x18025c['quantity']))});continue;case'addContainer':_0x1df3fc['push']({'type':'insertion','content':o(_0x277012,'*Split:*\x20%0',this['getItemLabel'](_0x18025c['element'],_0x18025c['quantity']))});continue;case'removeContainer':_0x1df3fc['push']({'type':'deletion','content':o(_0x277012,'*Merge:*\x20%0',this['getItemLabel'](_0x18025c['element'],_0x18025c['quantity']))});continue;case'addFormat':_0x5db9cf['push'](_0x18025c['key']);continue;case'removeFormat':_0x53f054['push'](_0x18025c['key']);continue;default:_0x1df3fc['push'](_0x18025c);}if(_0x5db9cf['length']){const _0x464444=_0x5db9cf['map'](_0x2a38a0=>this['_attributeLabels']['has'](_0x2a38a0)?this['_attributeLabels']['get'](_0x2a38a0):_0x2a38a0)['join'](',\x20');_0x1df3fc['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x464444)});}if(_0x53f054['length']){const _0x4a62da=_0x53f054['map'](_0x1aabff=>this['_attributeLabels']['has'](_0x1aabff)?this['_attributeLabels']['get'](_0x1aabff):_0x1aabff)['join'](',\x20');_0x1df3fc['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4a62da)});}return _0x1df3fc;}['_handleCustomCallbackDescription'](_0xdea11f){for(const _0x560707 of this['_customCallbacks']){const _0x48fc37=_0x560707(_0xdea11f);if(_0x48fc37&&'type'in _0x48fc37)return _0x48fc37;}}['_handleAttributeSuggestionDescription'](_0x124387,_0x38ac42){const _0x4d9b09=_0x38ac42['data'],_0x46d822=void 0x0===_0x4d9b09['newValue']?'removeFormat':'addFormat';_0x124387['push']({'type':_0x46d822,'key':_0x4d9b09['key']});}['_handleRenameSuggestionDescription'](_0x5034e7,_0x52644c){_0x5034e7['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x52644c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5a6142,_0x1c911d,_0x27b620){if(this['_addDescriptionItems'](_0x5a6142,_0x1c911d),_0x27b620&&_0x27b620['getFirstRange']()&&!_0x1c911d['getFirstRange']()['end']['isEqual'](_0x27b620['getFirstRange']()['start'])){const _0x5bb732=_0x5a6142[_0x5a6142['length']-0x1],_0x166ae7='insertion'==_0x1c911d['type']?'add':'remove';_0x5bb732&&'text'==_0x5bb732['type']&&(_0x5bb732[_0x166ae7]+='\x0a');}}}class O extends _0x13e452{['afterInit'](){const _0x36f91d=this['editor'],_0x27747c=_0x36f91d['plugins']['get']('TrackChangesEditing');_0x36f91d['commands']['get']('showAIAssistant')&&_0x27747c['enableCommand']('showAIAssistant');}}class E extends _0x13e452{['afterInit'](){const _0x16ee13=this['editor'],_0x70cd1b=_0x16ee13['locale'];if(!_0x16ee13['plugins']['has']('AlignmentEditing'))return;const _0x2373da=_0x16ee13['plugins']['get']('TrackChangesEditing');_0x2373da['enableDefaultAttributesIntegration']('alignment'),_0x2373da['registerBlockAttribute']('alignment'),_0x2373da['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x70cd1b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49bb92=this['editor'],_0xfbc58b=_0x49bb92['locale'];_0x49bb92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1893df=>{if('formatBlock'!=_0x1893df['type'])return;const {data:_0x246644}=_0x1893df;if(_0x246644&&'alignment'==_0x246644['commandName']){const _0x40d4f2=_0x246644['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xfbc58b,'*Format:*\x20%0',function(_0x539ffe){switch(_0x539ffe){case'left':return o(_0xfbc58b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xfbc58b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xfbc58b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xfbc58b,'FORMAT_JUSTIFY_TEXT');}}(_0x40d4f2))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x13e452{['afterInit'](){const _0x1547e0=this['editor'],_0x59493c=_0x1547e0['plugins']['get']('TrackChangesEditing'),_0x1ccd0d=_0x1547e0['locale'];for(const _0x323a1c of ti){if(!_0x1547e0['plugins']['has'](_0x323a1c))continue;const _0x10fa46=_0x323a1c['slice'](0x0,-0x7)['toLowerCase'](),_0x4e6af0='FORMAT_'+_0x10fa46['toUpperCase']();_0x59493c['enableDefaultAttributesIntegration'](_0x10fa46),_0x59493c['registerInlineAttribute'](_0x10fa46),_0x59493c['descriptionFactory']['registerAttributeLabel'](_0x10fa46,o(_0x1ccd0d,_0x4e6af0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4df4c6=this['editor'],_0x15eba7=_0x4df4c6['locale'],_0x82934a=_0x4df4c6['plugins']['get']('TrackChangesEditing');function _0xbd042f(_0x149ebc,_0x370c15){_0x82934a['descriptionFactory']['registerDescriptionCallback'](_0xbe1492=>{if('formatInline'!=_0xbe1492['type'])return;const {data:_0x115e97}=_0xbe1492;return _0x115e97&&_0x115e97['commandName']===_0x149ebc?_0x115e97['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x15eba7,'*Format:*\x20%0',_0x370c15)}:{'type':'format','content':o(_0x15eba7,'*Remove\x20format:*\x20%0',_0x370c15)}:void 0x0;});}_0xbd042f('bold',o(_0x15eba7,'FORMAT_BOLD')),_0xbd042f('italic',o(_0x15eba7,'FORMAT_ITALIC')),_0xbd042f('underline',o(_0x15eba7,'FORMAT_UNDERLINE')),_0xbd042f('code',o(_0x15eba7,'FORMAT_CODE')),_0xbd042f('strikethrough',o(_0x15eba7,'FORMAT_STRIKETHROUGH')),_0xbd042f('subscript',o(_0x15eba7,'FORMAT_SUBSCRIPT')),_0xbd042f('superscript',o(_0x15eba7,'FORMAT_SUPERSCRIPT'));}}class U extends _0x13e452{['afterInit'](){const _0x434135=this['editor'],_0x492dbc=_0x434135['locale'];if(!_0x434135['plugins']['has']('BlockQuoteEditing'))return;const _0x458f1d=_0x434135['plugins']['get']('TrackChangesEditing'),_0xbb785a=this['editor']['commands']['get']('blockQuote');_0x458f1d['enableCommand']('blockQuote',(_0x865f01,_0x24879c={})=>{const _0x182d13=this['editor']['model']['document']['selection'],_0x5c7657=_0x24879c&&void 0x0!==_0x24879c['forceValue']?_0x24879c['forceValue']:!_0xbb785a['value'];let _0x6995f=[];if(_0x5c7657){const _0x830a39=Array['from'](_0x182d13['getSelectedBlocks']())['filter'](_0x3534f7=>oo(_0x3534f7)||function(_0x5d32da,_0x54ac73){const _0x471c14=_0x54ac73['checkChild'](_0x5d32da['parent'],'blockQuote'),_0x3ed61a=_0x54ac73['checkChild'](['$root','blockQuote'],_0x5d32da);return _0x471c14&&_0x3ed61a;}(_0x3534f7,this['editor']['model']['schema']));_0x6995f=to(_0x830a39,_0x434135['model']);}else{const _0x47f408=Array['from'](_0x182d13['getSelectedBlocks']())['filter'](_0x2a33cf=>oo(_0x2a33cf));_0x6995f=to(_0x47f408,_0x434135['model']);}_0x434135['model']['change'](()=>{for(const _0x34053b of _0x6995f)_0x458f1d['markBlockFormat'](_0x34053b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5c7657}]});});}),_0x458f1d['descriptionFactory']['registerDescriptionCallback'](_0xfbd97d=>{const {data:_0x39030a}=_0xfbd97d;if(_0x39030a&&'blockQuote'==_0x39030a['commandName']){const _0x58b241=o(_0x492dbc,'ELEMENT_BLOCK_QUOTE');return _0x39030a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x492dbc,'*Set\x20format:*\x20%0',_0x58b241)}:{'type':'format','content':o(_0x492dbc,'*Remove\x20format:*\x20%0',_0x58b241)};}});}}function oo(_0x1bc125){return'blockQuote'==_0x1bc125['parent']['name'];}class V extends _0x13e452{['afterInit'](){const _0x46113c=this['editor'],_0x55b887=_0x46113c['locale'],_0x1838a0=_0x46113c['plugins']['get']('TrackChangesEditing');_0x46113c['plugins']['has']('BookmarkEditing')&&(_0x1838a0['enableCommand']('insertBookmark'),_0x1838a0['enableDefaultAttributesIntegration']('updateBookmark'),_0x1838a0['registerBlockAttribute']('bookmarkId'),_0x1838a0['descriptionFactory']['registerDescriptionCallback'](_0x460b49=>{if('insertion'!=_0x460b49['type']&&'deletion'!=_0x460b49['type']&&'attribute'!=_0x460b49['type'])return;const _0x508f76=_0x460b49['getContainedElement']();if(null==_0x508f76)return;if(!_0x508f76['is']('element','bookmark'))return;const _0x2b8d7a=_0x508f76['getAttribute']('bookmarkId');if('insertion'==_0x460b49['type'])return{'type':'insertion','content':o(_0x55b887,'*Insert:*\x20%0','\x22'+_0x2b8d7a+'\x22\x20'+o(_0x55b887,'ELEMENT_BOOKMARK'))};if('deletion'==_0x460b49['type'])return{'type':'deletion','content':o(_0x55b887,'*Remove:*\x20%0','\x22'+_0x2b8d7a+'\x22\x20'+o(_0x55b887,'ELEMENT_BOOKMARK'))};const {data:_0x4c9a46}=_0x460b49;if(!_0x4c9a46||'bookmarkId'!=_0x4c9a46['key'])return;return{'type':'format','content':o(_0x55b887,'*Set\x20bookmark:*\x20%0','\x22'+_0x4c9a46['newValue']+'\x22')};}));}}class F extends _0x13e452{['afterInit'](){const _0x36fd7c=this['editor'];_0x36fd7c['plugins']['has']('CaseChange')&&(_0x36fd7c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x36fd7c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x36fd7c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x13e452{['afterInit'](){const _0x45fe04=this['editor'];_0x45fe04['commands']['get']('ckbox')&&_0x45fe04['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x13e452{['afterInit'](){const _0x5533d1=this['editor'];if(!_0x5533d1['plugins']['has']('CodeBlock'))return;const _0xe2d473=_0x5533d1['plugins']['get']('TrackChangesEditing'),_0x5e074e=_0x5533d1['locale'],_0x2a16bd=_0x5533d1['config']['get']('codeBlock')['languages'],_0x26405f=_0x5533d1['commands']['get']('codeBlock');_0xe2d473['enableCommand']('indentCodeBlock'),_0xe2d473['enableCommand']('outdentCodeBlock'),_0xe2d473['enableCommand']('codeBlock',(_0x5b3889,_0x23d744={})=>{const _0x4090a4=_0x5533d1['model'],_0x48b344=_0x5533d1['model']['document']['selection'],_0x2d8622=_0x23d744&&void 0x0!==_0x23d744['forceValue']?_0x23d744['forceValue']:!_0x26405f['value'];let _0x278012;_0x23d744['language']||(_0x23d744['language']=_0x2a16bd[0x0]['language']),_0x278012=_0x2d8622?Array['from'](_0x48b344['getSelectedBlocks']())['filter'](_0x340586=>co(_0x340586)||function(_0x5f050d,_0x23902c){if(_0x5f050d['is']('rootElement')||_0x23902c['isLimit'](_0x5f050d))return!0x1;return _0x23902c['checkChild'](_0x5f050d['parent'],'codeBlock');}(_0x340586,_0x4090a4['schema'])):Array['from'](_0x48b344['getSelectedBlocks']())['filter'](_0x4221f3=>co(_0x4221f3));const _0x7f0e39=to(_0x278012,_0x4090a4);_0x4090a4['change'](()=>{for(const _0xbb6f0b of _0x7f0e39)_0xe2d473['markBlockFormat'](_0xbb6f0b,{'commandName':'codeBlock','commandParams':[{..._0x23d744,'forceValue':_0x2d8622}],'formatGroupId':'blockName'});});}),(_0xe2d473['descriptionFactory']['registerElementLabel']('codeBlock',_0x51aaf7=>o(_0x5e074e,'ELEMENT_CODE_BLOCK',_0x51aaf7)),_0xe2d473['descriptionFactory']['registerDescriptionCallback'](_0x118e7a=>{if('formatBlock'!=_0x118e7a['type'])return;const _0x5d7dfb=_0x5e074e['t'],{data:_0x48b5c8}=_0x118e7a;if(!_0x48b5c8||'codeBlock'!=_0x48b5c8['commandName'])return;const _0x13498c=_0x48b5c8['commandParams'][0x0]['language'],_0x304c75=_0x5d7dfb(_0x2a16bd['find'](_0x232003=>_0x232003['language']===_0x13498c)['label'])['toLowerCase']();return _0x48b5c8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e074e,'*Set\x20format:*\x20%0',o(_0x5e074e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x304c75+')')}:{'type':'format','content':o(_0x5e074e,'*Remove\x20format:*\x20%0',o(_0x5e074e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x444e31){return'codeBlock'==_0x444e31['name'];}class J extends _0x13e452{['afterInit'](){const _0x2f049c=this['editor'];if(!_0x2f049c['plugins']['has']('CommentsEditing'))return;_0x2f049c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x29e7ba,_0x47747c,_0xfdb34){const _0x13a0a1=[];for(const _0x3dabf8 of _0x47747c['getItems']())_0x3dabf8['hasAttribute'](_0x29e7ba)&&_0x13a0a1['push'](_0xfdb34['createRangeOn'](_0x3dabf8));return _0x13a0a1;}function De(_0x34eae3,_0xff288e,{showActiveMarker:_0x2095c6=!0x0}={}){const _0x41e3bf=_0x34eae3['plugins']['get']('TrackChangesEditing');return(_0x5c38da,_0x2d2ff2,_0x5241ed)=>{if(!_0x5241ed['consumable']['test'](_0x2d2ff2['markerRange'],_0x5c38da['name']))return;const _0x3ea53f=_0x2d2ff2['markerRange']['getWalker'](),_0x3ed0f8=_0x2d2ff2['markerRange']['start'],_0x2ed189=_0x34eae3['model']['schema'];let _0x3572f6=null,_0x8f119a=null,_0x11accb=!0x1,_0x319f8c=!0x1;for(const _0x532e2d of _0x3ea53f){const _0x4a4fff=_0x532e2d['item'];_0x11accb=_0x11accb||_0x2ed189['isContent'](_0x4a4fff);const _0x578da1=_0x5241ed['mapper']['toViewElement'](_0x4a4fff);if(_0x578da1&&_0x578da1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x532e2d['type']&&(_0x2ed189['isBlock'](_0x4a4fff)&&!_0x2ed189['isLimit'](_0x4a4fff)&&(_0x4a4fff['nextSibling']||_0x3ed0f8['isAtEnd']?_0x3572f6&&_0x3572f6['parent']==_0x4a4fff||(_0x3572f6=_0x4a4fff,_0x1825df(_0x532e2d['previousPosition']),_0x319f8c=!0x0):_0x8f119a=_0x8f119a||_0x532e2d['previousPosition']));}function _0x1825df(_0x8a2ea){const {id:_0x861cd8,authorId:_0x37a5cd}=_0x41e3bf['_splitMarkerName'](_0x2d2ff2['markerName']),_0x4fa3e4=_0x5241ed['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xff288e,'data-suggestion':_0x861cd8,'data-author-id':_0x37a5cd}),_0x405354=_0x5241ed['mapper']['toViewPosition'](_0x8a2ea);_0x2095c6&&_0x41e3bf['activeMarkers']['includes'](_0x2d2ff2['markerName'])&&_0x5241ed['writer']['addClass']('ck-suggestion-marker--active',_0x4fa3e4),_0x5241ed['writer']['insert'](_0x405354,_0x4fa3e4),_0x5241ed['mapper']['bindElementToMarker'](_0x4fa3e4,_0x2d2ff2['markerName']);}_0x11accb||_0x319f8c||!_0x8f119a||_0x1825df(_0x8f119a);};}class K extends _0x13e452{static get['requires'](){return[_0xc472a0];}['init'](){const _0x29d743=this['editor'],_0x29e195=_0x29d743['plugins']['get']('TrackChangesEditing');_0x29e195['enableCommand']('delete');const _0x433757=_0x29d743['commands']['get']('deleteForward');_0x29e195['enableCommand']('deleteForward',(_0x326543,_0x4c5b6a={})=>{const _0x516d6f=_0x29d743['model']['createSelection'](_0x29d743['model']['document']['selection']);_0x516d6f['isCollapsed']&&_0x29d743['model']['modifySelection'](_0x516d6f,{'direction':'forward','unit':_0x4c5b6a['unit']});const _0x490a01=_0x516d6f['getFirstRange'](),_0x17656b=_0x158d49['fromRange'](_0x490a01);let _0x1aaa2a;_0x326543(_0x4c5b6a),_0x1aaa2a='$graveyard'==_0x17656b['root']['rootName']?_0x29d743['model']['createRange'](_0x490a01['start']):_0x29d743['model']['createRange'](_0x17656b['start'],_0x17656b['end']),_0x17656b['detach'](),_0x29d743['model']['enqueueChange'](_0x433757['buffer']['batch'],_0x3fc159=>{_0x433757['buffer']['lock'](),_0x3fc159['setSelection'](_0x3fc159['createRange'](_0x1aaa2a['end'])),_0x433757['buffer']['unlock']();});}),_0x29d743['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x29d743,'merge'),{'priority':'high'}),_0x29d743['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x242949,_0xa47e01,_0x49c939)=>{_0x49c939['options']['showSuggestionHighlights']&&De(_0x29d743,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x242949,_0xa47e01,_0x49c939);},{'priority':'high'}),_0x29d743['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3e97b9,_0x1e06f6,_0x2e9046)=>{const _0x4bc8a8=_0x2e9046['mapper']['markerNameToElements'](_0x1e06f6['markerName']);if(_0x4bc8a8){for(const _0x419deb of _0x4bc8a8)_0x419deb['is']('uiElement')&&(_0x2e9046['mapper']['unbindElementFromMarkerName'](_0x419deb,_0x1e06f6['markerName']),_0x2e9046['writer']['remove'](_0x419deb));}},{'priority':'high'});}}class H extends _0x13e452{['afterInit'](){const _0x5e6de9=this['editor'];if(!_0x5e6de9['plugins']['has']('ListEditing'))return;const _0x963106=_0x5e6de9['locale'],_0xcee423=_0x5e6de9['plugins']['get']('TrackChangesEditing'),_0x15b21c=_0x5e6de9['plugins']['has']('TodoListEditing'),_0x2cbbd2=!!_0x5e6de9['config']['get']('list.multiBlock');function _0x3e7a56(_0x35f64e){return{'type':'format','content':''+o(_0x963106,'*Set\x20format:*\x20%0',_0x35f64e)};}function _0x368336(_0x4126ce){return{'type':'format','content':''+o(_0x963106,'*Remove\x20format:*\x20%0',_0x4126ce)};}_0xcee423['enableDefaultAttributesIntegration']('numberedList'),_0xcee423['enableDefaultAttributesIntegration']('bulletedList'),_0xcee423['enableDefaultAttributesIntegration']('customNumberedList'),_0xcee423['enableDefaultAttributesIntegration']('customBulletedList'),_0xcee423['enableDefaultAttributesIntegration']('indentList'),_0xcee423['enableDefaultAttributesIntegration']('outdentList'),_0xcee423['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xcee423['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xcee423['registerBlockAttribute']('listItemId'),_0xcee423['registerBlockAttribute']('listType'),_0xcee423['registerBlockAttribute']('listIndent'),_0x2cbbd2&&(_0xcee423['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xcee423['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x15b21c&&(_0xcee423['enableDefaultAttributesIntegration']('todoList'),_0xcee423['enableDefaultAttributesIntegration']('checkTodoList'),_0xcee423['registerBlockAttribute']('todoListChecked'),_0xcee423['descriptionFactory']['registerDescriptionCallback'](_0x5174df=>{const {data:_0x4ea2d6}=_0x5174df;if(_0x4ea2d6&&'todoListChecked'==_0x4ea2d6['key'])return{'type':'format','content':_0x4ea2d6['newValue']?o(_0x963106,'*Check\x20item*'):o(_0x963106,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3dc6b1=>{if(_0x3dc6b1['batch']['isUndo'])return!0x1;let _0x3a8f38=!0x1;const _0x15a49d=_0xcee423['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b5b1b=>'todoListChecked'===_0xcee423['_getAttributeKey'](_0x4b5b1b));for(const _0x31ba61 of _0x15a49d){'todo'!=_0x31ba61['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xcee423['_findSuggestions'](_0x31ba61['getFirstRange'](),'attribute')['find'](_0x17b5ce=>'listType'===_0xcee423['_getAttributeKey'](_0x17b5ce['suggestion']))||(_0x3dc6b1['removeMarker'](_0x31ba61['getFirstMarker']()),_0x3a8f38=!0x0));}return _0x3a8f38;})),_0xcee423['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x963106,'FORMAT_INDENT'));const _0x1275dc={'type':'format','content':''};_0xcee423['descriptionFactory']['registerDescriptionCallback'](_0x34865a=>{const {data:_0x5eed91}=_0x34865a;if(!_0x5eed91||'listType'!=_0x5eed91['key'])return;let _0x1121bc=_0x34865a['head'];for(;_0x1121bc;){if(_0x1121bc['data']&&(('listStyle'==_0x1121bc['data']['key']||'listMarkerStyle'==_0x1121bc['data']['key'])&&(_0x1121bc['data']['newValue']&&'default'!=_0x1121bc['data']['newValue']||'default'!=_0x1121bc['data']['oldValue']&&!_0x5eed91['newValue'])||!_0x2cbbd2&&_0x1121bc['data']['key']==m))return _0x1275dc;_0x1121bc=_0x1121bc['next'];}if(null==_0x5eed91['newValue'])switch(_0x5eed91['oldValue']){case'bulleted':return _0x368336(o(_0x963106,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x368336(o(_0x963106,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x368336(o(_0x963106,'ELEMENT_TODO_LIST'));}switch(_0x5eed91['newValue']){case'bulleted':return _0x3e7a56(o(_0x963106,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3e7a56(o(_0x963106,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3e7a56(o(_0x963106,'ELEMENT_TODO_LIST'));}}),_0xcee423['descriptionFactory']['registerDescriptionCallback'](_0x21f4cb=>{const {data:_0x2b863f}=_0x21f4cb;if(_0x2b863f&&'listIndent'==_0x2b863f['key'])return null==_0x2b863f['newValue']||null==_0x2b863f['oldValue']&&0x0==_0x2b863f['newValue']?_0x1275dc:void 0x0;}),_0xcee423['descriptionFactory']['registerDescriptionCallback'](_0x4a6406=>{if('attribute'!=_0x4a6406['type'])return;const {data:_0x119e80}=_0x4a6406;if(!_0x119e80||'listItemId'!=_0x119e80['key'])return;const _0x392364=Te(_0x4a6406);return'newValue'==_0x392364?{'type':'format','content':o(_0x963106,'*Merge:*\x20list\x20item')}:'oldValue'==_0x392364?{'type':'format','content':o(_0x963106,'*Split:*\x20list\x20item')}:_0x1275dc;}),_0x5e6de9['model']['document']['registerPostFixer'](_0x47da25=>this['listItemIdFixer'](_0x47da25)),_0x5e6de9['model']['document']['registerPostFixer'](_0x53eb8f=>this['noTrackChangesFixer'](_0x53eb8f)),_0x5e6de9['model']['document']['on']('change:data',(_0x126233,_0x310ed0)=>{if(_0x310ed0['isUndo']||!_0x310ed0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x15115a){if(_0x15115a['batch']['isUndo']||!_0x15115a['batch']['isLocal'])return!0x1;let _0x258613=!0x1;const _0x3f1bf8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x190bd6=>_0x190bd6['data']&&'listItemId'==_0x190bd6['data']['key'])['filter'](_0x41317d=>_0x41317d['data']['newValue']&&_0x41317d['data']['oldValue']);for(const _0x1e8415 of _0x3f1bf8)Te(_0x1e8415)||(_0x15115a['removeMarker'](_0x1e8415['getFirstMarker']()),_0x258613=!0x0);return _0x258613;}['noTrackChangesFixer'](_0x131178){if(_0x131178['batch']['isUndo']||!_0x131178['batch']['isLocal'])return!0x1;const _0x100bfd=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x100bfd['trackChangesCommand']['value'])return!0x1;let _0x2d17ab=!0x1;const _0x5bcd85=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x454867=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x561b29=>'attribute'==_0x561b29['type'])['filter'](_0x280b16=>_0x5bcd85['includes'](_0x280b16['attributeKey']));if(0x0==_0x454867['length'])return _0x2d17ab;for(const _0x41c445 of _0x454867){const _0x1ed3e9=_0x100bfd['_findSuggestions'](_0x41c445['range'],'attribute')['filter'](_0x4a934d=>!_0x4a934d['meta']['isNextTo'])['map'](_0x84ff67=>_0x84ff67['suggestion'])['filter'](_0x1e9ad7=>{const _0x53f57d=_0x100bfd['_getAttributeKey'](_0x1e9ad7);return _0x5bcd85['includes'](_0x53f57d);});if(_0x1ed3e9['length']){for(const _0x231138 of _0x1ed3e9)_0x131178['removeMarker'](_0x231138['getFirstMarker']());_0x2d17ab=!0x0;}}return _0x2d17ab;}['assureChains'](){const _0x476313=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c7807=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xdab00c;const _0x58f344=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x6500be=>{if(_0x6500be['data']['oldRange']||!_0x6500be['data']['newRange'])return null;if(!_0x6500be['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3e84c6}=_0x476313['_splitMarkerName'](_0x6500be['name']);if(!_0x476313['hasSuggestion'](_0x3e84c6))return null;const _0x1760d6=_0x476313['getSuggestion'](_0x3e84c6);return _0x5c7807['includes'](_0x1760d6['data']['key']);})['map'](_0x62e8a9=>{const {id:_0xd8f4b5}=_0x476313['_splitMarkerName'](_0x62e8a9['name']),_0x22cb10=_0x476313['getSuggestion'](_0xd8f4b5);return _0xdab00c=_0x22cb10['attributes']['groupId'],_0x22cb10['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x58f344['size'])return;const _0x20a4ab=_0x476313['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4edfcb=>'attribute'==_0x4edfcb['type']&&_0x4edfcb['data']&&_0x5c7807['includes'](_0x4edfcb['data']['key'])&&_0x4edfcb['attributes']['groupId']!=_0xdab00c)['map'](_0x51c587=>({'listItem':_0x51c587['getFirstRange']()['start']['nodeAfter'],'groupId':_0x51c587['attributes']['groupId']})),_0x5be331=new Set();for(const {groupId:_0x22aad0,listItem:_0x1315cc}of _0x20a4ab)_0x58f344['has'](_0x1315cc)&&_0x5be331['add'](_0x22aad0);for(const _0x552acb of _0x476313['getSuggestions']())_0x5be331['has'](_0x552acb['attributes']['groupId'])&&_0x552acb['setAttribute']('groupId',_0xdab00c);}['_supportLegacySuggestions'](){const _0x5d1ca4=this['editor'],_0x22fee3=_0x5d1ca4['locale'],_0x168c57=_0x5d1ca4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x168c57['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2ac8b2,_0x468cbe){const _0x5795ac=[];for(let _0x5da0ea of _0x2ac8b2)_0x5da0ea['start']['nodeAfter']===_0x5da0ea['end']['parent']&&(_0x5da0ea=_0x5d1ca4['model']['createRange'](_0x5d1ca4['model']['createPositionAt'](_0x5da0ea['start']['nodeAfter'],0x0))),_0x5795ac['push'](_0x5da0ea);_0x5d1ca4['model']['change'](_0x1dfed8=>{const _0x515eed=_0x5d1ca4['model']['document']['selection'],_0x3abc92=Array['from'](_0x515eed['getRanges']())['map'](_0x573abb=>_0x158d49['fromRange'](_0x573abb));_0x1dfed8['setSelection'](_0x5795ac),_0x5d1ca4['commands']['get'](_0x468cbe['commandName'])['refresh'](),_0x468cbe['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5d1ca4['execute'](_0x468cbe['commandName'],..._0x468cbe['commandParams']),_0x1dfed8['setSelection'](_0x3abc92);for(const _0x4578c1 of _0x3abc92)_0x4578c1['detach']();});}),_0x168c57['descriptionFactory']['registerElementLabel'](function(_0x41e198){const _0x61092a=!_0x5d1ca4['model']['schema']['isObject'](_0x41e198),_0x54dbf4=_0x41e198['previousSibling'],_0x24944f=_0x41e198['nextSibling'],_0x383771=_0x41e198['getAttribute']('listItemId'),_0x3c0a40=!_0x54dbf4||_0x54dbf4['getAttribute']('listItemId')!==_0x383771,_0x2bfc11=!_0x24944f||_0x24944f['getAttribute']('listItemId')!==_0x383771;return _0x61092a&&Boolean(_0x383771)&&_0x3c0a40&&_0x2bfc11;},_0x713c24=>o(_0x22fee3,'ELEMENT_LIST_ITEM',_0x713c24));}['_registerLegacyDescription'](){const _0x336e35=this['editor'],_0x24aa9d=_0x336e35['locale'];function _0x48767f(_0x2d6c12){const _0x5832f9=_0x336e35['commands']['get']('bulletedList')['value'],_0x5ee708=_0x336e35['commands']['get']('numberedList')['value'];return'numberedList'===_0x2d6c12?_0x5832f9:_0x5ee708;}_0x336e35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x42aef0){if('formatBlock'!=_0x42aef0['type'])return;const {data:_0x58fdb1}=_0x42aef0;if(!_0x58fdb1)return;let _0x4c3c4d,_0x39fe1b,_0xd74c94,_0x3af6a4;switch(_0x58fdb1['commandName']){case'bulletedList':_0xd74c94=_0x58fdb1['commandParams'][0x0]['forceValue'],_0x3af6a4=_0x48767f(_0x58fdb1['commandName']),_0x4c3c4d=_0xd74c94?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3af6a4&&_0x336e35['config']['get']('list.multiBlock')||(_0x4c3c4d='*Change\x20to:*\x20%0'),_0x39fe1b={'type':'format','content':o(_0x24aa9d,_0x4c3c4d,o(_0x24aa9d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xd74c94=_0x58fdb1['commandParams'][0x0]['forceValue'],_0x3af6a4=_0x48767f(_0x58fdb1['commandName']),_0x4c3c4d=_0xd74c94?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3af6a4&&_0x336e35['config']['get']('list.multiBlock')||(_0x4c3c4d='*Change\x20to:*\x20%0'),_0x39fe1b={'type':'format','content':o(_0x24aa9d,_0x4c3c4d,o(_0x24aa9d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4c3c4d='*Indent:*\x20%0',_0x39fe1b={'type':'format','content':o(_0x24aa9d,_0x4c3c4d,o(_0x24aa9d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4c3c4d=function(_0x4cac16){const _0x441dcb=_0x4cac16['getFirstRange']();let _0x3cbec3=_0x441dcb['start']['nodeAfter'];for(;_0x3cbec3&&_0x441dcb['containsItem'](_0x3cbec3);){if(_0x3cbec3['getAttribute']('listIndent')>0x0)return!0x1;_0x3cbec3=_0x3cbec3['nextSibling'];}return!0x0;}(_0x42aef0)?o(_0x24aa9d,'*Format:*\x20remove\x20from\x20%0',o(_0x24aa9d,function(_0x327bf1){return'ELEMENT_'+_0x327bf1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x42aef0))):o(_0x24aa9d,'*Outdent:*\x20%0',o(_0x24aa9d,'ELEMENT_LIST_ITEM')),_0x39fe1b={'type':'format','content':_0x4c3c4d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x58fdb1['multipleBlocks']&&(_0x4c3c4d='*Merge:*\x20%0',_0x39fe1b={'type':'deletion','content':o(_0x24aa9d,_0x4c3c4d,o(_0x24aa9d,'ELEMENT_LIST_ITEM'))});}return _0x39fe1b;});}}function Te(_0x505bbf){let _0x53f007=_0x505bbf['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x53f007;){const _0xe8cc31=_0x53f007['getAttribute']('listItemId');if(!_0xe8cc31)return!0x1;if(_0xe8cc31==_0x505bbf['data']['newValue'])return'newValue';if(_0xe8cc31==_0x505bbf['data']['oldValue'])return'oldValue';_0x53f007=_0x53f007['previousSibling'];}return!0x1;}class q extends _0x13e452{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5241e5=this['editor']['config']['get']('list.properties'),_0x2a98fe=this['editor']['plugins']['get']('TrackChangesEditing');_0x5241e5['styles']&&(_0x2a98fe['enableDefaultAttributesIntegration']('listStyle'),_0x2a98fe['registerBlockAttribute']('listStyle')),_0x5241e5['reversed']&&(_0x2a98fe['enableDefaultAttributesIntegration']('listReversed'),_0x2a98fe['registerBlockAttribute']('listReversed')),_0x5241e5['startIndex']&&(_0x2a98fe['enableDefaultAttributesIntegration']('listStart'),_0x2a98fe['registerBlockAttribute']('listStart'));const _0x44558c={'type':'format','content':''};_0x2a98fe['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3b8dae=this['editor']['locale'];_0x2a98fe['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3b8dae,'FORMAT_LIST_REVERSED')),_0x2a98fe['descriptionFactory']['registerDescriptionCallback'](_0x39f9b9=>{const {data:_0x2cb8ed}=_0x39f9b9;if(_0x2cb8ed&&'listReversed'==_0x2cb8ed['key'])return null==_0x2cb8ed['newValue']||0x0==_0x2cb8ed['newValue']&&null==_0x2cb8ed['oldValue']?_0x44558c:void 0x0;}),_0x2a98fe['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3b8dae,'FORMAT_LIST_START')),_0x2a98fe['descriptionFactory']['registerDescriptionCallback'](_0x455268=>{const {data:_0x4cdfce}=_0x455268;if(_0x4cdfce&&'listStart'==_0x4cdfce['key'])return null==_0x4cdfce['newValue']||0x1==_0x4cdfce['newValue']&&null==_0x4cdfce['oldValue']?_0x44558c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3019b5=>{if(_0x3019b5['batch']['isUndo'])return!0x1;let _0x102360=!0x1;const _0x405d5b=_0x2a98fe['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50ba73=>{const _0x5cbd20=_0x2a98fe['_getAttributeKey'](_0x50ba73);return'listStart'==_0x5cbd20||'listReversed'==_0x5cbd20;});for(const _0x2933a1 of _0x405d5b){const _0x8e4ff0=_0x2933a1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x8e4ff0||'customNumbered'==_0x8e4ff0)continue;_0x2a98fe['_findSuggestions'](_0x2933a1['getFirstRange'](),'attribute')['find'](_0x1528fe=>'listType'==_0x2a98fe['_getAttributeKey'](_0x1528fe['suggestion']))||(_0x3019b5['removeMarker'](_0x2933a1['getFirstMarker']()),_0x102360=!0x0);}return _0x102360;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1aa33f){const _0x46b82b=this['editor']['locale'],{data:_0x58a582}=_0x1aa33f,_0x443b41={'type':'format','content':''};if(!_0x58a582||'listStyle'!=_0x58a582['key'])return;if(!_0x58a582['oldValue'])return'default'==_0x58a582['newValue']?_0x443b41:{'type':'format','content':''+o(_0x46b82b,'*Set\x20format:*\x20%0',o(_0x46b82b,this['_getTranslationKeyForListStyle'](_0x58a582['newValue'])))};if(!_0x58a582['newValue']){if('default'==_0x58a582['oldValue'])return _0x443b41;let _0x28f799=_0x1aa33f['head'];for(;_0x28f799;){if(_0x28f799['data']&&'listType'==_0x28f799['data']['key']&&_0x28f799['data']['newValue'])return _0x443b41;_0x28f799=_0x28f799['next'];}return{'type':'format','content':''+o(_0x46b82b,'*Remove\x20format:*\x20%0',o(_0x46b82b,this['_getTranslationKeyForListStyle'](_0x58a582['oldValue'])))};}if('default'!=_0x58a582['newValue'])return{'type':'format','content':''+o(_0x46b82b,'*Set\x20format:*\x20%0',o(_0x46b82b,this['_getTranslationKeyForListStyle'](_0x58a582['newValue'])))};let _0x287bbb=_0x1aa33f['head'];for(;_0x287bbb;){if(_0x287bbb['data']&&'listType'==_0x287bbb['data']['key']&&_0x287bbb['data']['newValue']&&_0x287bbb['data']['oldValue'])return _0x443b41;_0x287bbb=_0x287bbb['next'];}return{'type':'format','content':o(_0x46b82b,'*Set\x20format:*\x20%0',o(_0x46b82b,'ELEMENT_'+_0x1aa33f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x25df69=this['editor'],_0x403187=_0x25df69['locale'];_0x25df69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27f39b=>{if('formatBlock'!=_0x27f39b['type'])return;const {data:_0x459af8}=_0x27f39b;if(!_0x459af8)return;let _0x47bf6f,_0x286b0f;switch(_0x459af8['commandName']){case'listStyle':_0x47bf6f='*Change\x20to:*\x20%0',_0x286b0f={'type':'format','content':o(_0x403187,_0x47bf6f,o(_0x403187,this['_getTranslationKeyForListStyle'](_0x459af8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47bf6f=_0x459af8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x286b0f={'type':'format','content':o(_0x403187,_0x47bf6f)};break;case'listStart':_0x47bf6f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x286b0f={'type':'format','content':o(_0x403187,_0x47bf6f,_0x459af8['commandParams'][0x0]['startIndex'])};}return _0x286b0f;});}['_getTranslationKeyForListStyle'](_0x2073cd){return'ELEMENT_'+function(_0x15ec7f){if(Se['includes'](_0x15ec7f))return'bulleted';if(_e['includes'](_0x15ec7f))return'numbered';return null;}(_0x2073cd)['toUpperCase']()+'_LIST_'+_0x2073cd['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x13e452{['afterInit'](){const _0x4c4c86=this['editor'];_0x4c4c86['commands']['get']('emoji')&&_0x4c4c86['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x13e452{static get['requires'](){return[_0x3e1d1a];}['init'](){const _0x32a208=this['editor'],_0x53a669=_0x32a208['plugins']['get']('TrackChangesEditing'),_0x31bda4=_0x32a208['commands']['get']('enter');_0x53a669['enableCommand']('enter',()=>{_0x32a208['model']['change'](_0x28b041=>{const _0x15e70d=_0x32a208['model']['document']['selection'],_0xf4020a=_0x15e70d['getFirstPosition'](),_0x5445bf=_0x158d49['fromRange'](_0x15e70d['getFirstRange']());if(_0x31bda4['enterBlock'](_0x28b041)){const _0x5da2bd=_0x32a208['model']['createPositionAt'](_0xf4020a['parent']['nextSibling'],0x0),_0x22e931=_0x28b041['createRange'](_0xf4020a,_0x5da2bd);_0x53a669['markInsertion'](_0x22e931);}else _0x28b041['setSelection'](_0x28b041['createRange'](_0x5445bf['end']));_0x5445bf['detach'](),_0x31bda4['fire']('afterExecute',{'writer':_0x28b041});});}),_0x32a208['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x32a208,'split'),{'priority':'high'}),_0x32a208['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xe4ffe0,_0x14ce75,_0x37174f)=>{const _0x1eff62=_0x37174f['mapper']['markerNameToElements'](_0x14ce75['markerName']);if(_0x1eff62){for(const _0x144379 of _0x1eff62)_0x144379['hasClass']('ck-suggestion-marker-split')&&(_0x37174f['mapper']['unbindElementFromMarkerName'](_0x144379,_0x14ce75['markerName']),_0x37174f['writer']['remove'](_0x144379));}},{'priority':'high'}),_0x32a208['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x42113b,_0x177f2c,_0x17052e)=>{_0x17052e['options']['showSuggestionHighlights']&&De(_0x32a208,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x42113b,_0x177f2c,_0x17052e);},{'priority':'high'});}}class Q extends _0x13e452{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x532ee8=this['editor']['plugins']['get']('TrackChangesEditing');_0x532ee8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x532ee8['enableCommand']('findNext'),_0x532ee8['enableCommand']('findPrevious'),_0x532ee8['enableCommand']('replace'),_0x532ee8['enableCommand']('replaceAll');}['handleFindCommand'](_0x4af7ff,_0x3d78f,_0x206453={}){const _0x202c2b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4af7ff(_0x5f1d44=>{let _0x4a1c88=('string'==typeof _0x3d78f?_0x202c2b['findByTextCallback'](_0x3d78f,_0x206453):_0x3d78f)(_0x5f1d44);Array['isArray'](_0x4a1c88)&&(_0x4a1c88={'results':_0x4a1c88,'searchText':'string'==typeof _0x3d78f?_0x3d78f:''});const _0x4f93c=_0x4a1c88['results']['filter'](_0x4c4695=>!0x1===this['_isInDeletionRange'](_0x4c4695,_0x5f1d44['item']));return{..._0x4a1c88,'results':_0x4f93c};},_0x206453);}['_isInDeletionRange'](_0x5ae141,_0x451fb3){const _0x54a201=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x451fb3,_0x5ae141['start']),this['editor']['model']['createPositionAt'](_0x451fb3,_0x5ae141['end']));for(const _0x384168 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x54a201['getIntersection'](_0x384168['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x13e452{['afterInit'](){const _0x13037f=this['editor']['locale'],_0x172228=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xf6c9ef,commandName:_0x50b778}of eo)this['editor']['plugins']['has'](_0xf6c9ef)&&(_0x172228['enableDefaultAttributesIntegration'](_0x50b778),_0x172228['registerInlineAttribute'](_0x50b778));_0x172228['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x13037f,'FORMAT_FONT_SIZE')),_0x172228['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x13037f,'FORMAT_FONT_FAMILY')),_0x172228['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x13037f,'FORMAT_FONT_COLOR')),_0x172228['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x13037f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b002b=this['editor'],_0x39b5c0=_0x4b002b['locale'];_0x4b002b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40dda3=>{const _0x3d933c=_0x39b5c0['t'];if('formatInline'!=_0x40dda3['type'])return;const {data:_0x1ec455}=_0x40dda3;if(null!=_0x1ec455){if('fontSize'==_0x1ec455['commandName']){const _0xaeea1a=_0x1ec455['commandParams'][0x0]['value'];if(_0xaeea1a){const _0xc98009=_0x3d933c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x58f12c=>_0x58f12c['model']==_0xaeea1a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x39b5c0,'*Set\x20font\x20size:*\x20%0',_0xc98009)};}return{'type':'format','content':o(_0x39b5c0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1ec455['commandName']){const _0x5937db=_0x1ec455['commandParams'][0x0]['value'];return _0x5937db?{'type':'format','content':o(_0x39b5c0,'*Set\x20font\x20family:*\x20%0',_0x5937db)}:{'type':'format','content':o(_0x39b5c0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1ec455['commandName']){const _0x58b2e0=_0x1ec455['commandParams'][0x0]['value'];if(_0x58b2e0){const _0xd4ba8=_0x1d2800(this['editor']['config']['get']('fontColor.colors'))['find'](_0x34a154=>_0x34a154['model']==_0x58b2e0);let _0x3ce7e4=_0x58b2e0,_0x1868b7='';return _0xd4ba8&&(_0x3ce7e4=_0xd4ba8['label'],_0x1868b7=_0x3d933c(_0x3ce7e4)['toLowerCase']()),{'type':'format','content':o(_0x39b5c0,'*Set\x20font\x20color:*\x20%0',_0x1868b7)['trim'](),'color':{'value':_0x58b2e0,'title':_0x1868b7||_0x3ce7e4}};}return{'type':'format','content':o(_0x39b5c0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1ec455['commandName']){const _0x219279=_0x1ec455['commandParams'][0x0]['value'];if(_0x219279){const _0x22134f=_0x1d2800(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4f5209=>_0x4f5209['model']==_0x219279);let _0x506463=_0x219279,_0x49d8de='';return _0x22134f&&(_0x506463=_0x22134f['label'],_0x49d8de=_0x3d933c(_0x506463)['toLowerCase']()),{'type':'format','content':o(_0x39b5c0,'*Set\x20font\x20background\x20color:*\x20%0',_0x49d8de)['trim'](),'color':{'value':_0x219279,'title':_0x49d8de||_0x506463}};}return{'type':'format','content':o(_0x39b5c0,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x13e452{['afterInit'](){const _0x2a3870=this['editor'],_0x3dc58e=_0x2a3870['plugins']['get']('TrackChangesEditing'),_0x4b3172=_0x2a3870['commands']['get']('copyFormat'),_0x2f5d03=_0x2a3870['commands']['get']('pasteFormat');_0x4b3172&&_0x2f5d03&&(_0x3dc58e['enableDefaultAttributesIntegration']('pasteFormat'),_0x3dc58e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x76eac2=this['editor'],_0x597da3=_0x76eac2['locale'];_0x76eac2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf99766=>{if('formatBlock'!=_0xf99766['type']&&'formatInline'!=_0xf99766['type'])return;const {data:_0x440bf8}=_0xf99766;if(_0x440bf8&&'pasteFormat'===_0x440bf8['commandName']){const _0x156eb4=[],_0x33637f=_0x440bf8['commandParams'][0x0];for(const [_0x39a877,_0x4706a2]of Object['entries'](_0x33637f))_0x156eb4['push'](ro(_0x76eac2,_0x39a877,_0x4706a2));return _0x156eb4['length']?{'type':'format','content':o(_0x597da3,'*Set\x20format\x20to:*\x20%0',_0x156eb4['join'](',\x20'))}:{'type':'format','content':o(_0x597da3,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x407cc0,_0x3cd10a,_0x1eba09){const _0x4f369b=_0x407cc0['locale']['t'],_0x177d58=_0x3cd10a['split'](/(?=[A-Z])/)['join']('\x20'),_0x4ee4e9=_0x4f369b(_0x177d58['charAt'](0x0)['toUpperCase']()+_0x177d58['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1eba09)return _0x4ee4e9;if('fontColor'===_0x3cd10a||'fontBackgroundColor'===_0x3cd10a){const _0x1b2e38=_0x1d2800(_0x407cc0['config']['get']('fontColor.colors'))['find'](_0x3a6505=>_0x3a6505['model']==_0x1eba09);return _0x4ee4e9+'\x20('+(_0x1b2e38?_0x4f369b(_0x1b2e38['label'])['toLowerCase']():_0x1eba09)+')';}if('fontSize'===_0x3cd10a&&isNaN(parseFloat(_0x1eba09))){const _0x448cc6=_0x407cc0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x407cc0['config']['get']('fontSize.options'))['find'](_0x5d3647=>_0x5d3647['model']==_0x1eba09);return _0x4ee4e9+'\x20('+(_0x448cc6?_0x4f369b(_0x448cc6['title'])['toLowerCase']():_0x1eba09)+')';}return _0x4ee4e9+'\x20('+_0x1eba09+')';}class Z extends _0x13e452{['_headingOptions'];['afterInit'](){const _0x3c7245=this['editor'];if(!_0x3c7245['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3c7245['config']['get']('heading.options');const _0x1d7b3f=_0x3c7245['locale'],_0x3b5433=_0x3c7245['plugins']['get']('TrackChangesEditing');_0x3b5433['enableDefaultAttributesIntegration']('heading');for(const _0x11e6ce of this['_headingOptions'])'paragraph'!=_0x11e6ce['model']&&_0x3b5433['descriptionFactory']['registerElementLabel'](_0x11e6ce['model'],_0x13cb3d=>{const _0x340d5e=this['_getHeadingLevel'](_0x11e6ce['model']);return null!==_0x340d5e?_0x3c3cfa(_0x13cb3d,_0x340d5e):_0x887661(_0x13cb3d,_0x11e6ce['title']);});function _0x3c3cfa(_0x488d0e,_0x568623){return o(_0x1d7b3f,'ELEMENT_HEADING',[_0x488d0e,_0x568623]);}function _0x887661(_0x3b2caf,_0x59158d){return o(_0x1d7b3f,'ELEMENT_HEADING_CUSTOM',[_0x3b2caf,_0x59158d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12f505=this['editor'],_0xd3c34a=_0x12f505['locale'];function _0x3bfb99(_0x1696e6,_0x29c9fb){return o(_0xd3c34a,'ELEMENT_HEADING_CUSTOM',[_0x1696e6,_0x29c9fb]);}_0x12f505['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24fe7f=>{if('formatBlock'!=_0x24fe7f['type'])return;const {data:_0xca69e9}=_0x24fe7f;if(_0xca69e9&&'heading'==_0xca69e9['commandName']){const _0x35392d=_0xca69e9['commandParams'][0x0]['value'],_0x5b1701=this['_getHeadingLevel'](_0x35392d);if(null!==_0x5b1701)return{'type':'format','content':o(_0xd3c34a,'*Change\x20to:*\x20%0',(_0x1b858b=0x1,_0x542686=_0x5b1701,o(_0xd3c34a,'ELEMENT_HEADING',[_0x1b858b,_0x542686])))};const _0x5b2f78=this['_headingOptions']['find'](_0x52d312=>_0x52d312['model']===_0x35392d)['title'];return{'type':'format','content':o(_0xd3c34a,'*Change\x20to:*\x20%0',_0x3bfb99(0x1,_0x5b2f78))};}var _0x1b858b,_0x542686;});}['_getHeadingLevel'](_0x33642d){const _0x1fb4cc=_0x33642d['match'](/^heading(\d+)/);if(_0x1fb4cc)return _0x1fb4cc[0x1];const _0x22a315=this['_headingOptions']?.['find'](_0x29e123=>_0x29e123['model']==_0x33642d);if(_0x22a315&&_0x22a315['view']){const _0x6213c8=_0x22a315['view'],_0x15fb5f=(_0x6213c8['name']??_0x6213c8)['match'](/^h(\d+)/);if(_0x15fb5f)return _0x15fb5f[0x1];}return null;}}class tt extends _0x13e452{['afterInit'](){const _0x11c000=this['editor'];if(!_0x11c000['plugins']['has']('HighlightEditing'))return;const _0x286ea5=_0x11c000['plugins']['get']('TrackChangesEditing'),_0xe07e3b=_0x11c000['locale'];_0x286ea5['enableDefaultAttributesIntegration']('highlight'),_0x286ea5['registerInlineAttribute']('highlight'),_0x286ea5['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xe07e3b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x409b5c=this['editor'],_0x2557e1=_0x409b5c['locale'];_0x409b5c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52e383=>{if('formatInline'!=_0x52e383['type'])return;const {data:_0xf01b70}=_0x52e383;if(_0xf01b70&&'highlight'==_0xf01b70['commandName']){const _0xf198be=_0x2557e1['t'],_0x426855=_0xf01b70['commandParams'][0x0]['value'];if(_0x426855){const _0x50f423=_0x409b5c['config']['get']('highlight.options')['find'](_0x28e47d=>_0x28e47d['model']==_0x426855),_0x5a3749=_0xf198be(_0x50f423['title'])['toLowerCase']();return{'type':'format','content':o(_0x2557e1,'*Set\x20highlight:*\x20%0',_0x5a3749),'color':{'value':_0x50f423['color'],'title':_0x50f423['title']}};}return{'type':'format','content':o(_0x2557e1,'*Remove\x20highlight*',o(_0x2557e1,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x13e452{['afterInit'](){const _0x41414d=this['editor'];if(!_0x41414d['plugins']['has']('HorizontalLineEditing'))return;_0x41414d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x357029=_0x41414d['plugins']['get']('TrackChangesEditing'),_0x2c9584=_0x41414d['locale'];_0x357029['descriptionFactory']['registerElementLabel']('horizontalLine',_0x553237=>o(_0x2c9584,'ELEMENT_HORIZONTAL_LINE',_0x553237)),_0x41414d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1b6b57,{writer:_0xe50b02,options:_0x457553})=>{if(!_0x457553['showSuggestionHighlights'])return null;const _0x1764d7=_0xe50b02['createContainerElement']('div'),_0x149c12=_0xe50b02['createEmptyElement']('hr');return _0xe50b02['addClass']('ck-horizontal-line',_0x1764d7),_0xe50b02['insert'](_0xe50b02['createPositionAt'](_0x1764d7,0x0),_0x149c12),_0x1764d7;},'converterPriority':'high'});}}class nt extends _0x13e452{['afterInit'](){const _0x19bd75=this['editor'];if(!_0x19bd75['plugins']['has']('HtmlEmbed'))return;const _0x58f932=_0x19bd75['plugins']['get']('TrackChangesEditing'),_0x123dda=_0x19bd75['locale'];_0x58f932['descriptionFactory']['registerElementLabel']('rawHtml',_0x53ecc5=>o(_0x123dda,'ELEMENT_HTML_EMBED',_0x53ecc5)),_0x58f932['enableDefaultAttributesIntegration']('htmlEmbed'),_0x58f932['registerBlockAttribute']('value'),_0x58f932['descriptionFactory']['registerDescriptionCallback'](_0x440867=>{if('attribute'!=_0x440867['type'])return;const {data:_0x350a06}=_0x440867;if(_0x350a06&&'value'==_0x350a06['key']&&_0x440867['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x37fb4f=o(_0x123dda,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x123dda,'*Change\x20%0\x20content*',_0x37fb4f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51f18c=this['editor'],_0x5557a3=_0x51f18c['locale'];_0x51f18c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x401adb=>{if('formatBlock'!=_0x401adb['type'])return;const {data:_0x41a4ea}=_0x401adb;if(_0x41a4ea&&'htmlEmbed'==_0x41a4ea['commandName']){const _0x5257a2=o(_0x5557a3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5557a3,'*Change\x20%0\x20content*',_0x5257a2)};}});}}class et extends _0x13e452{['afterInit'](){const _0x11381b=this['editor'];if(!_0x11381b['plugins']['has']('ImageEditing'))return;const _0x1c69f3=_0x11381b['plugins']['get']('TrackChangesEditing'),_0x11f7e3=_0x11381b['plugins']['get']('ImageUtils'),_0x46dced=_0x11381b['locale'];_0x1c69f3['enableCommand']('insertImage'),_0x1c69f3['descriptionFactory']['registerElementLabel']('imageBlock',_0x52037d=>o(_0x46dced,'ELEMENT_IMAGE',_0x52037d)),_0x1c69f3['descriptionFactory']['registerElementLabel']('imageInline',_0x466ab2=>o(_0x46dced,'ELEMENT_INLINE_IMAGE',_0x466ab2)),_0x1c69f3['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x46dced,'ELEMENT_CAPTION')),_0x11381b['plugins']['has']('ImageUploadEditing')&&_0x1c69f3['enableCommand']('uploadImage'),_0x11381b['plugins']['has']('ImageBlockEditing')&&_0x11381b['plugins']['has']('ImageInlineEditing')&&(_0x1c69f3['enableCommand']('imageTypeInline',(_0x41a1f4,_0x169da7)=>{const _0x159e23=_0x11f7e3['getClosestSelectedImageElement'](_0x11381b['model']['document']['selection']);_0x11381b['model']['change'](()=>{_0x1c69f3['markBlockFormat'](_0x159e23,{'commandName':'imageTypeInline','commandParams':[_0x169da7]},[],'convertBlockImageToInline');});}),_0x1c69f3['enableCommand']('imageTypeBlock',(_0x94e5f3,_0x4cb06f)=>{_0x11381b['model']['change'](_0x571121=>{let _0x5e6668=_0x11f7e3['getClosestSelectedImageElement'](_0x11381b['model']['document']['selection']),_0x4e1bad=_0x571121['createRangeOn'](_0x5e6668);const _0x3889b9=_0x488dc6['fromPosition'](_0x4e1bad['start'],'toPrevious'),_0x3bafa8=_0x488dc6['fromPosition'](_0x4e1bad['end'],'toNext');_0x1c69f3['forceDefaultExecution'](()=>_0x94e5f3(_0x4cb06f)),_0x5e6668=_0x11f7e3['getClosestSelectedImageElement'](_0x11381b['model']['document']['selection']),_0x4e1bad=_0x571121['createRangeOn'](_0x5e6668);const _0x40139c=_0x571121['createRange'](_0x3889b9,_0x3bafa8);_0x3889b9['detach'](),_0x3bafa8['detach'](),_0x1c69f3['markBlockFormat'](_0x5e6668,{'commandName':'imageTypeInline','commandParams':[_0x4cb06f]},[],'convertInlineImageToBlock'),_0x40139c['start']['isBefore'](_0x4e1bad['start'])&&_0x1c69f3['markInsertion'](_0x571121['createRange'](_0x40139c['start'],_0x4e1bad['start']),'convertInlineImageToBlock'),_0x4e1bad['end']['isBefore'](_0x40139c['end'])&&_0x1c69f3['markInsertion'](_0x571121['createRange'](_0x4e1bad['end'],_0x40139c['end']),'convertInlineImageToBlock');});}),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1c69f3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x348dc6])=>{const _0x1feae5=_0x1c69f3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1b0baf=_0x348dc6['start'],_0x4e7692=_0x348dc6['end'];const _0x5b781b=_0x11381b['model']['schema']['getNearestSelectionRange'](_0x1b0baf,'backward'),_0xe35259=_0x11381b['model']['schema']['getNearestSelectionRange'](_0x4e7692,'forward');_0x5b781b['isCollapsed']&&(_0x1b0baf=_0x5b781b['start']),_0xe35259['isCollapsed']&&(_0x4e7692=_0xe35259['end']),_0x1feae5([_0x11381b['model']['createRange'](_0x1b0baf,_0x4e7692)]);}),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xa81911),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xa81911)),_0x11381b['plugins']['has']('ImageCaptionEditing')&&(_0x1c69f3['enableCommand']('toggleImageCaption',(_0x1ec58c,_0xd82105)=>{const _0x5289e9=_0x11381b['plugins']['get']('ImageCaptionUtils');let _0x55115a=_0x11f7e3['getClosestSelectedImageElement'](_0x11381b['model']['document']['selection']),_0x2b5479=_0x5289e9['getCaptionFromImageModelElement'](_0x55115a);_0x11381b['model']['change'](()=>{if(_0x2b5479)return void _0x1c69f3['markDeletion'](_0x11381b['model']['createRangeOn'](_0x2b5479));const _0x1ff2f7=_0x11f7e3['isBlockImage'](_0x55115a);_0x1ec58c(_0xd82105),_0x55115a=_0x11f7e3['getClosestSelectedImageElement'](_0x11381b['model']['document']['selection']),_0x2b5479=_0x5289e9['getCaptionFromImageModelElement'](_0x55115a),_0x1c69f3['markInsertion'](_0x11381b['model']['createRangeOn'](_0x2b5479),_0x1ff2f7?null:'imageCaption');});}),_0x1c69f3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xa81911));const _0x540e37=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x10b9b2(_0x404e58,_0x496f7f){const _0x20b971=_0x540e37['findIndex'](({type:_0x2973bf,subType:_0x30fe96})=>_0x404e58['type']==_0x2973bf&&_0x404e58['subType']==_0x30fe96),_0x5e551f=_0x540e37['findIndex'](({type:_0x260f4e,subType:_0x3896c4})=>_0x496f7f['type']==_0x260f4e&&_0x496f7f['subType']==_0x3896c4);if(_0x20b971<0x0||_0x5e551f<0x0)return!0x1;const _0x11ef4d=_0x404e58['getFirstRange'](),_0x56ffdb=_0x496f7f['getFirstRange']();if((0x0==_0x20b971||0x1==_0x20b971)&&0x2==_0x5e551f&&_0x11ef4d['isIntersecting'](_0x56ffdb))return!0x0;if(0x2==_0x20b971&&0x3==_0x5e551f){const _0x5a32ed=_0x1c69f3['_findSuggestions'](_0x11ef4d,'insertion')['filter'](({suggestion:_0x3dc81d,meta:_0x25566e})=>_0x25566e['isOwn']&&'convertInlineImageToBlock'==_0x3dc81d['subType']);if(_0x5a32ed['length']>0x1&&_0x56ffdb['end']['isEqual'](_0x11ef4d['start']))return!0x0;if(0x1==_0x5a32ed['length']&&(_0x11ef4d['start']['isEqual'](_0x56ffdb['end'])||_0x11ef4d['end']['isEqual'](_0x56ffdb['start'])))return!0x0;}if(0x3==_0x20b971&&0x3==_0x5e551f&&_0x11ef4d['start']['isBefore'](_0x56ffdb['start'])){const _0x36b7d6=_0x11ef4d['end']['nodeAfter'],_0x57437e=_0x56ffdb['start']['nodeBefore'];return _0x11f7e3['isBlockImage'](_0x36b7d6)&&_0x36b7d6===_0x57437e;}return!0x1;}function _0xa81911(_0x294d9d,_0x23e8bb){return _0x10b9b2(_0x294d9d,_0x23e8bb)?[_0x294d9d,_0x23e8bb]:_0x10b9b2(_0x23e8bb,_0x294d9d)?[_0x23e8bb,_0x294d9d]:null;}_0x11381b['plugins']['has']('ImageResize')&&(_0x1c69f3['enableDefaultAttributesIntegration']('resizeImage'),_0x1c69f3['registerBlockAttribute']('resizedWidth'),_0x1c69f3['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x46dced,'FORMAT_IMAGE_SIZE'))),_0x11381b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1c69f3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1c69f3['registerBlockAttribute']('alt')),_0x11381b['plugins']['has']('PictureEditing')&&(_0x1c69f3['registerBlockAttribute']('sources'),_0x1c69f3['descriptionFactory']['registerDescriptionCallback'](_0xe40826=>{if('attribute'!=_0xe40826['type'])return;const {data:_0x1b9171}=_0xe40826;return _0x1b9171&&'sources'==_0x1b9171['key']?{'type':'format','content':''}:void 0x0;})),_0x11381b['plugins']['has']('ImageSizeAttributes')&&(_0x1c69f3['registerBlockAttribute']('width'),_0x1c69f3['registerBlockAttribute']('height'),_0x1c69f3['descriptionFactory']['registerDescriptionCallback'](_0x14db52=>{if('attribute'!=_0x14db52['type'])return;const {data:_0x496969}=_0x14db52;return!_0x496969||'width'!=_0x496969['key']&&'height'!=_0x496969['key']?void 0x0:{'type':'format','content':''};})),_0x1c69f3['descriptionFactory']['registerDescriptionCallback'](_0x2b8645=>{if(!!_0x540e37['find'](({type:_0x1b45a3,subType:_0x5b4f41})=>_0x2b8645['type']==_0x1b45a3&&_0x2b8645['subType']==_0x5b4f41))return _0x2b8645['previous']?{}:void 0x0;}),_0x1c69f3['descriptionFactory']['registerDescriptionCallback'](_0x37de6f=>{if('insertion'==_0x37de6f['type']||'deletion'==_0x37de6f['type']){const _0x5783ba=_0x37de6f['getContainedElement']();if(_0x5783ba&&_0x5783ba['is']('element','caption'))return{'type':'insertion'==_0x37de6f['type']?'addObject':'removeObject','element':_0x5783ba,'quantity':0x1};}}),_0x1c69f3['descriptionFactory']['registerDescriptionCallback'](_0x22d1d7=>'formatBlock'==_0x22d1d7['type']&&'convertInlineImageToBlock'==_0x22d1d7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x22d1d7['type']&&'convertBlockImageToInline'==_0x22d1d7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1c69f3['descriptionFactory']['registerDescriptionCallback'](_0x19a150=>{if('attribute'!=_0x19a150['type'])return;const {data:_0x28190f}=_0x19a150;if(!_0x28190f||'alt'!=_0x28190f['key'])return;const _0x5a5fd8=_0x28190f['newValue'];return _0x5a5fd8?{'type':'format','content':o(_0x46dced,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a5fd8+'\x22')}:{'type':'format','content':o(_0x46dced,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13ace4=this['editor'],_0x16ce4e=_0x13ace4['locale'];_0x13ace4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3db944=>{if('formatBlock'!=_0x3db944['type']&&'formatInline'!=_0x3db944['type'])return;const {data:_0x2441a5}=_0x3db944;if(_0x2441a5){if('imageTextAlternative'==_0x2441a5['commandName']){const _0x293e7d=_0x2441a5['commandParams'][0x0]['newValue'];return _0x293e7d?{'type':'format','content':o(_0x16ce4e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x293e7d+'\x22')}:{'type':'format','content':o(_0x16ce4e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2441a5['commandName']){const _0x5c665f=_0x2441a5['commandParams'][0x0]['width'];return _0x5c665f?{'type':'format','content':o(_0x16ce4e,'*Set\x20image\x20width:*\x20%0',_0x5c665f)}:{'type':'format','content':o(_0x16ce4e,'*Reset\x20image\x20width*')};}}});}}class st extends _0x13e452{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1d7787=this['editor']['locale'],_0x109690=this['editor']['plugins']['get']('TrackChangesEditing');_0x109690['enableDefaultAttributesIntegration']('replaceImageSource'),_0x109690['registerBlockAttribute']('src'),_0x109690['descriptionFactory']['registerDescriptionCallback'](_0x3ce29c=>{if('attribute'!=_0x3ce29c['type'])return;const {data:_0x3f33ba}=_0x3ce29c;return _0x3f33ba&&'src'==_0x3f33ba['key']?_0x3f33ba['newValue']&&_0x3f33ba['oldValue']?{'type':'format','content':o(_0x1d7787,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4fc2bf=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fc2bf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4fc2bf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fc2bf['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4fc2bf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x381b72=this['editor'],_0x10a242=_0x381b72['locale'];_0x381b72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x517c7d=>{if('formatBlock'!=_0x517c7d['type']&&'formatInline'!=_0x517c7d['type'])return;const {data:_0x5ea905}=_0x517c7d;if(!_0x5ea905||'replaceImageSource'!=_0x5ea905['commandName'])return;return{'type':'format','content':o(_0x10a242,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x13e452{['afterInit'](){const _0x392ef9=this['editor'];if(!_0x392ef9['plugins']['has']('ImageStyleEditing'))return;const _0x1658b3=_0x392ef9['plugins']['get']('TrackChangesEditing'),_0x3ce559=_0x392ef9['plugins']['get']('ImageUtils'),_0x479f87={};_0x1658b3['enableCommand']('imageStyle',(_0x38c206,_0x33f0db)=>{const _0x1ac35d=_0x392ef9['plugins']['get']('Users')['me'],_0x363d42=_0x392ef9['commands']['get']('imageStyle');let _0x3d6506=_0x3ce559['getClosestSelectedImageElement'](_0x392ef9['model']['document']['selection']),_0x22f2be=_0x392ef9['model']['createRangeOn'](_0x3d6506),_0x48d7c3=_0x363d42['value'];if(_0x48d7c3==_0x33f0db['value'])return;const _0x395fb0={'commandName':'imageStyle','commandParams':[_0x33f0db],'formatGroupId':_0x22223a()};_0x392ef9['model']['change'](()=>{if(_0x1658b3['getSuggestions']()['filter'](_0x561c76=>_0x561c76['isInContent']&&_0x1ac35d==_0x561c76['author']&&('formatBlock'==_0x561c76['type']||'formatInline'==_0x561c76['type'])&&('imageStylePreApply'==_0x561c76['subType']||'imageStylePostApply'==_0x561c76['subType'])&&_0x561c76['getFirstRange']()['isEqual'](_0x22f2be))['forEach'](_0x345ea3=>_0x1658b3['discardSuggestion'](_0x345ea3['head'])),_0x3d6506=_0x3ce559['getClosestSelectedImageElement'](_0x392ef9['model']['document']['selection']),_0x22f2be=_0x392ef9['model']['createRangeOn'](_0x3d6506),_0x363d42['refresh'](),_0x392ef9['commands']['get']('imageTypeInline')['refresh'](),_0x392ef9['commands']['get']('imageTypeBlock')['refresh'](),_0x48d7c3=_0x363d42['value'],_0x48d7c3!=_0x33f0db['value'])return _0x3ce559['isInlineImage'](_0x3d6506)&&_0x363d42['shouldConvertImageType'](_0x33f0db['value'],_0x3d6506)?(_0x38c206({..._0x33f0db,'setImageSizes':!0x1}),_0x3d6506=_0x3ce559['getClosestSelectedImageElement'](_0x392ef9['model']['document']['selection']),void _0x1658b3['markBlockFormat'](_0x3d6506,{..._0x395fb0,'commandReversedParams':[{'value':_0x48d7c3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3ce559['isBlockImage'](_0x3d6506)?_0x1658b3['markBlockFormat'](_0x3d6506,_0x395fb0,[],'imageStylePostApply'):_0x1658b3['markInlineFormat'](_0x22f2be,_0x395fb0,'imageStylePostApply'));});});for(const _0x6cf4bd of _0x392ef9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x479f87[_0x6cf4bd['name']]=_0x6cf4bd['title']['toLowerCase']();_0x1658b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1658b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1658b3['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1658b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x487dde])=>{_0x3ce559['setImageNaturalSizeAttributes'](_0x487dde['getContainedElement']());}),_0x1658b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2a455a,_0x40f6c6)=>{_0x1658b3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2a455a,{'commandName':_0x40f6c6['commandName'],'commandParams':_0x40f6c6['commandReversedParams']});}),_0x1658b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x339406,_0x22e4fe){if(_0x49ac77(_0x339406,_0x22e4fe))return[_0x339406,_0x22e4fe];if(_0x49ac77(_0x22e4fe,_0x339406))return[_0x22e4fe,_0x339406];return null;});const _0x3af73e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x49ac77(_0x3e59d2,_0xf9d85c){const _0x1fe4dc=_0x3af73e['findIndex'](({type:_0x2a610f,subType:_0x1a6cf1})=>_0x3e59d2['type']==_0x2a610f&&_0x3e59d2['subType']==_0x1a6cf1),_0x3602f3=_0x3af73e['findIndex'](({type:_0x35054d,subType:_0x40df29})=>_0xf9d85c['type']==_0x35054d&&_0xf9d85c['subType']==_0x40df29);if(_0x1fe4dc<0x0||_0x3602f3<0x0)return!0x1;const _0xf99737=_0x3e59d2['getFirstRange'](),_0x2dab70=_0xf9d85c['getFirstRange']();if((0x0==_0x1fe4dc||0x1==_0x1fe4dc)&&0x2==_0x3602f3&&_0xf99737['isIntersecting'](_0x2dab70))return!0x0;if(0x2==_0x1fe4dc&&0x3==_0x3602f3){const _0x5c2663=_0x1658b3['_findSuggestions'](_0xf99737,'insertion')['filter'](({suggestion:_0x4d0123,meta:_0x2ad9a1})=>_0x2ad9a1['isOwn']&&'convertInlineImageToBlock'==_0x4d0123['subType']);if(_0x5c2663['length']>0x1&&_0x2dab70['end']['isEqual'](_0xf99737['start']))return!0x0;if(0x1==_0x5c2663['length']&&(_0xf99737['start']['isEqual'](_0x2dab70['end'])||_0xf99737['end']['isEqual'](_0x2dab70['start'])))return!0x0;}if(0x3==_0x1fe4dc&&0x3==_0x3602f3&&_0xf99737['start']['isBefore'](_0x2dab70['start'])){const _0x880434=_0xf99737['end']['nodeAfter'],_0x4e768d=_0x2dab70['start']['nodeBefore'];return _0x3ce559['isBlockImage'](_0x880434)&&_0x880434===_0x4e768d;}return!0x1;}_0x392ef9['model']['document']['registerPostFixer'](()=>{let _0x10c7ed=!0x1;const _0x93446=Array['from'](_0x392ef9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bd5b1,data:_0x987769}of _0x93446){const {group:_0x231893,type:_0x1001ea,subType:_0x45110c,id:_0x122fd2}=_0x1658b3['_splitMarkerName'](_0x1bd5b1);if('suggestion'==_0x231893&&_0x1658b3['hasSuggestion'](_0x122fd2)){if('formatBlock'==_0x1001ea&&('imageStylePreApply'==_0x45110c||'imageStylePostApply'==_0x45110c)){const _0x36d2ee=_0x1658b3['getSuggestion'](_0x122fd2);if(_0x987769['newRange']){const _0xdfa59f=_0x36d2ee['getFirstRange']()['getContainedElement']();if(_0x3ce559['isBlockImage'](_0xdfa59f))continue;_0x1658b3['discardSuggestion'](_0x36d2ee),_0x10c7ed=!0x0;}}if('insertion'==_0x1001ea&&'imageCaption'==_0x45110c&&!_0x987769['newRange']){const _0x1ea1d2=_0x1658b3['getSuggestion'](_0x122fd2);_0x1ea1d2['next']&&_0x1ea1d2['next']['isInContent']&&(_0x1658b3['discardSuggestion'](_0x1ea1d2['next']),_0x10c7ed=!0x0);}}}return _0x10c7ed;}),this['_registerLegacyDescription'](_0x479f87);}['_registerLegacyDescription'](_0x326ab0){const _0xc7ad5f=this['editor'],_0x3bc7c0=_0xc7ad5f['locale'];_0xc7ad5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36d835=>{if('formatBlock'!=_0x36d835['type']&&'formatInline'!=_0x36d835['type'])return;const {data:_0x44ef45}=_0x36d835;if(!_0x44ef45||'imageStyle'!=_0x44ef45['commandName'])return;const _0x207b0b=_0x44ef45['commandParams'][0x0]['value'];return _0x31d1da('side'===_0x207b0b?o(_0x3bc7c0,'FORMAT_SIDE_IMAGE'):_0x326ab0[_0x207b0b]||_0x207b0b);function _0x31d1da(_0x287aff){return{'type':'format','content':o(_0x3bc7c0,'*Format:*\x20%0',_0x287aff)};}});}}class rt extends _0x13e452{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x48b062){super(_0x48b062),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2eca17=this['editor'],_0x44bd77=_0x2eca17['commands']['get']('importWord'),_0x4e8c80=_0x2eca17['commands']['get']('trackChanges');_0x44bd77&&(_0x44bd77['on']('execute',(_0x57c54b,[,_0xb11b53])=>{this['_trackChangesValueDuringImport']=_0x4e8c80['value'],_0xb11b53['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x44bd77,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x44bd77,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4e8c80['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2eca17['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x15c5e8,_0x39250f){const {suggestions:_0x378962}=_0x39250f,_0x57a4bb=this['editor']['commands']['get']('trackChanges'),_0x36bc45=_0x57a4bb['value'];this['_trackChangesValueDuringImport']!==_0x36bc45&&(_0x57a4bb['execute'](),this['_trackChangesExecuted']=!0x0),_0x378962&&_0x378962['forEach'](({id:_0x2f5cf1,type:_0x1f047c,author:_0x56e05d,created_at:_0x1ab9e8})=>{const _0x358fa3={'id':_0x2f5cf1,'type':_0x1f047c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x56e05d,'createdAt':_0x1ab9e8?new Date(_0x1ab9e8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x358fa3);});}}class at extends _0x13e452{['afterInit'](){const _0x835b6a=this['editor'],_0x47845e=_0x835b6a['plugins']['get']('TrackChangesEditing');if(_0x835b6a['plugins']['has']('IndentEditing')&&(_0x47845e['enableCommand']('indent'),_0x47845e['enableCommand']('outdent')),_0x835b6a['plugins']['has']('IndentBlock')){for(const _0x55636f of['indentBlock','outdentBlock'])_0x47845e['enableDefaultAttributesIntegration'](_0x55636f);}const _0x55fe50=_0x835b6a['locale'];_0x47845e['registerBlockAttribute']('blockIndent'),_0x47845e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x55fe50,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8f4550=this['editor'],_0x405e0f=_0x8f4550['locale'],_0x3a5554=_0x8f4550['plugins']['get']('TrackChangesEditing');_0x3a5554['descriptionFactory']['registerDescriptionCallback'](_0x15261c=>{if('formatBlock'!=_0x15261c['type'])return;const {data:_0x110553}=_0x15261c;if(!_0x110553)return;if('indentBlock'!=_0x110553['commandName']&&'outdentBlock'!=_0x110553['commandName'])return;const _0x2aba2e=_0x15261c['getItems']()[0x0],_0x2dc276=_0x3a5554['descriptionFactory']['getItemLabel'](_0x2aba2e);return'indentBlock'==_0x110553['commandName']?{'type':'format','content':o(_0x405e0f,'*Indent:*\x20%0',_0x2dc276)}:'outdentBlock'==_0x110553['commandName']?{'type':'format','content':o(_0x405e0f,'*Outdent:*\x20%0',_0x2dc276)}:void 0x0;});}}class ct extends _0x13e452{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x13e452{['afterInit'](){const _0x19be13=this['editor'];if(!_0x19be13['plugins']['has']('LinkEditing'))return;const _0x482c8f=_0x19be13['plugins']['get']('TrackChangesEditing'),_0x35a92c=_0x19be13['commands']['get']('link');_0x482c8f['enableDefaultAttributesIntegration']('link'),_0x482c8f['enableDefaultAttributesIntegration']('unlink'),_0x482c8f['registerInlineAttribute']('linkHref');for(const _0x1b308c of _0x35a92c['manualDecorators'])_0x482c8f['registerInlineAttribute'](_0x1b308c['id']),_0x482c8f['descriptionFactory']['registerAttributeLabel'](_0x1b308c['id'],'link\x20('+_0x1b308c['label']['toLowerCase']()+')');_0x482c8f['descriptionFactory']['registerDescriptionCallback'](_0x4732bd=>{if('attribute'!=_0x4732bd['type'])return;const {data:_0x5d956a}=_0x4732bd;if(!_0x5d956a||'linkHref'!=_0x5d956a['key'])return;const _0x42735b=_0x5d956a['newValue'],_0x483a02=_0x19be13['locale'];return{'type':'format','content':null==_0x42735b?o(_0x483a02,'*Remove\x20link*'):o(_0x483a02,'*Set\x20link:*\x20%0','\x22'+_0x42735b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b9b7b=this['editor'],_0x55b41b=_0x4b9b7b['locale'];_0x4b9b7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x111388=>{if('formatInline'!=_0x111388['type'])return;const {data:_0x5dbc84}=_0x111388;if(_0x5dbc84){if('link'==_0x5dbc84['commandName']){const _0x5f37ed=_0x5dbc84['commandParams'][0x0];return{'type':'format','content':o(_0x55b41b,'*Set\x20link:*\x20%0','\x22'+_0x5f37ed+'\x22')};}return'unlink'==_0x5dbc84['commandName']?{'type':'format','content':o(_0x55b41b,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x13e452{['afterInit'](){const _0x4fa5d4=this['editor'],_0x278321=_0x4fa5d4['locale'];if(!_0x4fa5d4['plugins']['has']('LegacyListEditing'))return;const _0x19618f=_0x4fa5d4['plugins']['get']('TrackChangesEditing'),_0x5ab760=_0x4fa5d4['plugins']['has']('LegacyTodoListEditing');function _0x225094(_0x2cb9b5){return()=>{const _0x39dcea=_0x4fa5d4['model']['document']['selection'],_0x3d7a9e=_0x4fa5d4['commands']['get'](_0x2cb9b5);if(_0x3d7a9e['value'])return void _0x4fa5d4['execute']('paragraph',{});const _0x323548=_0x2cb9b5['slice'](0x0,-0x4),_0x1a34f5=function(_0xb0a981,_0x7d7d2c,_0x583d32){let _0x2b4c4f=Array['from'](_0xb0a981)['filter'](_0x4dc543=>function(_0x4ccc6d,_0x2c25f3){return _0x2c25f3['checkChild'](_0x4ccc6d['parent'],'listItem')&&!_0x2c25f3['isObject'](_0x4ccc6d);}(_0x4dc543,_0x583d32));_0x2b4c4f=_0x2b4c4f['filter'](_0x3c8eb9=>!_0x3c8eb9['is']('element','listItem')||_0x3c8eb9['getAttribute']('listType')!=_0x7d7d2c);const _0x19ad39=new Set();for(const _0x55ed0f of _0x2b4c4f)_0x55ed0f['is']('element','listItem')?_0x19ad39['add'](Le(_0x55ed0f)):_0x19ad39['add'](_0x55ed0f);return Array['from'](_0x19ad39);}(_0x39dcea['getSelectedBlocks'](),_0x323548,_0x4fa5d4['model']['schema']);_0x4fa5d4['model']['change'](()=>{for(const _0x450b5b of _0x1a34f5)_0x19618f['markBlockFormat'](_0x450b5b,{'commandName':_0x2cb9b5,'commandParams':[{'forceValue':!_0x3d7a9e['value']}],'formatGroupId':'blockName'},Ee(_0x450b5b));});};}function _0x12688a(_0x46599e){return()=>{const _0x4dd34e=function(_0x4c459d){let _0x108fad=Array['from'](_0x4c459d);const _0x15a854=_0x108fad['findIndex'](_0x106a92=>'listItem'!=_0x106a92['name']);return _0x15a854>-0x1&&(_0x108fad=_0x108fad['slice'](0x0,_0x15a854)),_0x108fad;}(_0x4fa5d4['model']['document']['selection']['getSelectedBlocks']()),_0x68dd61=_0x4fa5d4['model']['createRange'](_0x4fa5d4['model']['createPositionAt'](_0x4dd34e[0x0],'before'),_0x4fa5d4['model']['createPositionAt'](_0x4dd34e[_0x4dd34e['length']-0x1],'end'));_0x4fa5d4['model']['change'](()=>{_0x19618f['markBlockFormat'](_0x68dd61,{'commandName':_0x46599e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1b6e74){const _0x5dbf6d=new Set();for(const _0x1b467e of _0x1b6e74){let _0x12daec=_0x1b467e['nextSibling'];for(;_0x12daec&&_0x12daec['getAttribute']('listIndent')>_0x1b467e['getAttribute']('listIndent');)_0x5dbf6d['add'](_0x12daec),_0x12daec=_0x12daec['nextSibling'];}return Array['from'](_0x5dbf6d);}(_0x4dd34e));});};}_0x19618f['enableCommand']('numberedList',_0x225094('numberedList')),_0x19618f['enableCommand']('bulletedList',_0x225094('bulletedList')),_0x5ab760&&_0x19618f['enableCommand']('todoList',_0x225094('todoList')),_0x19618f['enableCommand']('indentList',_0x12688a('indentList')),_0x19618f['enableCommand']('outdentList',_0x12688a('outdentList')),_0x5ab760&&_0x19618f['enableCommand']('checkTodoList',()=>{const _0xe0c69d=_0x4fa5d4['commands']['get']('checkTodoList'),_0x9c9d5b=Array['from'](_0xe0c69d['_selectedElements']);_0x9c9d5b['filter'](_0xccbc1b=>_0xccbc1b['getAttribute']('todoListChecked')!=_0xe0c69d['value']),_0x4fa5d4['model']['change'](()=>{for(const _0x2bc691 of _0x9c9d5b)_0x19618f['markBlockFormat'](_0x2bc691,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xe0c69d['value']}]});});}),_0x19618f['descriptionFactory']['registerElementLabel']('listItem',_0x509706=>o(_0x278321,'ELEMENT_LIST_ITEM',_0x509706)),_0x19618f['descriptionFactory']['registerDescriptionCallback'](_0x82fb8f=>{if('formatBlock'!=_0x82fb8f['type']&&'formatInline'!=_0x82fb8f['type'])return;const {data:_0x30b252}=_0x82fb8f;if(_0x30b252){if('numberedList'==_0x30b252['commandName']||'bulletedList'==_0x30b252['commandName']||'todoList'==_0x30b252['commandName'])switch(_0x30b252['commandName']['replace']('List','')){case'bulleted':return _0x58da99(o(_0x278321,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58da99(o(_0x278321,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58da99(o(_0x278321,'ELEMENT_TODO_LIST'));}if('indentList'==_0x30b252['commandName'])return{'type':'format','content':o(_0x278321,'*Indent:*\x20%0',o(_0x278321,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x30b252['commandName'])return{'type':'format','content':o(_0x278321,'*Outdent:*\x20%0',o(_0x278321,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x30b252['commandName'])return _0x30b252['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x278321,'*Check\x20item*')}:{'type':'format','content':o(_0x278321,'*Uncheck\x20item*')};}function _0x58da99(_0x4caa1e){return{'type':'format','content':o(_0x278321,'*Change\x20to:*\x20%0',_0x4caa1e)};}});}}function Le(_0x405239){const _0x4f1b69=_0x405239['getAttribute']('listIndent');if(0x0==_0x4f1b69)return _0x405239;let _0x54b84b=_0x405239;for(;_0x405239['previousSibling']&&_0x405239['previousSibling']['is']('element','listItem');){const _0x10791a=_0x405239['previousSibling']['getAttribute']('listIndent');if(_0x10791a==_0x4f1b69)_0x54b84b=_0x405239['previousSibling'];else{if(_0x10791a<_0x4f1b69)break;}_0x405239=_0x405239['previousSibling'];}return _0x54b84b;}function Ee(_0x4381f2){const _0x5ddce0=[];if(_0x4381f2['is']('element','listItem')&&_0x4381f2['getAttribute']('listIndent')>0x0){let _0x139110=_0x4381f2['nextSibling'];for(;_0x139110&&'listItem'==_0x139110['name']&&_0x139110['getAttribute']('listIndent')==_0x4381f2['getAttribute']('listIndent');)_0x5ddce0['push'](_0x139110),_0x139110=_0x139110['nextSibling'];}return _0x5ddce0;}class ht extends _0x13e452{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x7dc726=this['editor']['config']['get']('list.properties'),_0x5152e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x7dc726['styles']&&_0x5152e3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x7dc726['reversed']&&_0x5152e3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x7dc726['startIndex']&&_0x5152e3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5152e3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x382ddd,_0x4a4854={}){const _0x2bf6c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45f3b1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2bf6c8['markMultiRangeBlockFormat'](_0x45f3b1,{'commandName':'listStyle','commandParams':[{'type':_0x4a4854['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5c1efb,_0x270e5e={}){const _0x3e648c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x553cdc=this['_getSuggestionBlocks'](_0xf1f494=>_0xf1f494['is']('element','listItem')&&'numbered'===_0xf1f494['getAttribute']('listType'));if(_0x553cdc['length']<0x1)return;const _0x514984=_0x553cdc['map'](_0xd1d3f2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xd1d3f2,'before'),this['editor']['model']['createPositionAt'](_0xd1d3f2,0x0)));this['editor']['model']['change'](()=>{_0x3e648c['markMultiRangeBlockFormat'](_0x514984,{'commandName':'listReversed','commandParams':[{'reversed':_0x270e5e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xcb3b7c,_0x276f65={}){const _0x29e734=this['editor']['plugins']['get']('TrackChangesEditing'),_0x269016=this['_getSuggestionBlocks'](_0x2e3da8=>_0x2e3da8['is']('element','listItem')&&'numbered'===_0x2e3da8['getAttribute']('listType'));if(_0x269016['length']<0x1)return;const _0x69d716=_0x269016['map'](_0x32a595=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x32a595,'before'),this['editor']['model']['createPositionAt'](_0x32a595,0x0)));this['editor']['model']['change'](()=>{_0x29e734['markMultiRangeBlockFormat'](_0x69d716,{'commandName':'listStart','commandParams':[{'startIndex':_0x276f65['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x59f48c){if('formatBlock'!=_0x59f48c['type']&&'formatInline'!=_0x59f48c['type'])return;const _0x1b1447=this['editor']['locale'],{data:_0xaf94d0}=_0x59f48c;if(!_0xaf94d0)return;let _0x1c1aed,_0x56108;switch(_0xaf94d0['commandName']){case'listStyle':_0x1c1aed='*Change\x20to:*\x20%0',_0x56108={'type':'format','content':o(_0x1b1447,_0x1c1aed,o(_0x1b1447,this['_getTranslationKeyForListStyle'](_0xaf94d0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1c1aed=_0xaf94d0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56108={'type':'format','content':o(_0x1b1447,_0x1c1aed)};break;case'listStart':_0x1c1aed='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56108={'type':'format','content':o(_0x1b1447,_0x1c1aed,_0xaf94d0['commandParams'][0x0]['startIndex'])};}return _0x56108;}['_getSuggestionBlocksForListStyle'](){const _0xfae71f=this['editor']['plugins']['get']('LegacyListUtils');let _0x3bc004=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3bc004[0x0]?.['is']('element','listItem')&&_0x3bc004['unshift'](..._0xfae71f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3bc004[_0x3bc004['length']-0x1]?.['is']('element','listItem')&&_0x3bc004['push'](..._0xfae71f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3bc004=[...new Set(_0x3bc004)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3bc004=_0x3bc004['filter'](_0x2fd4b8=>_0x2fd4b8['is']('element','listItem'))),_0x3bc004;}['_getSuggestionBlocks'](_0x18ede8){const _0x1dd945=this['editor']['plugins']['get']('LegacyListUtils');let _0x54b4e1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x18ede8)['map'](_0x3b8cae=>{const _0x4b4ada=this['editor']['model']['createPositionAt'](_0x3b8cae,0x0);return[..._0x1dd945['getSiblingNodes'](_0x4b4ada,'backward'),..._0x1dd945['getSiblingNodes'](_0x4b4ada,'forward')];})['flat']();return _0x54b4e1=[...new Set(_0x54b4e1)],_0x54b4e1;}['_getTranslationKeyForListStyle'](_0x27773b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x27773b)||'default')['toUpperCase']()+'_LIST_'+_0x27773b['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x13e452{['afterInit'](){const _0xca1d5b=this['editor'];if(!_0xca1d5b['plugins']['has']('MediaEmbedEditing'))return;const _0x595b3a=_0xca1d5b['plugins']['get']('TrackChangesEditing'),_0x6817a0=_0xca1d5b['locale'];_0x595b3a['enableCommand']('mediaEmbed'),_0x595b3a['descriptionFactory']['registerElementLabel']('media',_0x2380dd=>o(_0x6817a0,'ELEMENT_MEDIA',_0x2380dd)),_0xca1d5b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2671f9,{writer:_0x49f69c,options:_0x5774e5})=>{if(_0x5774e5['showSuggestionHighlights'])return _0x49f69c['createEmptyElement']('div');},'converterPriority':'high'}),_0xca1d5b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1b2ad9,_0x54d9e0,_0x1e539b)=>{_0x1e539b['options']['showSuggestionHighlights']&&_0x1b2ad9['stop']();},{'priority':'high'});}}class lt extends _0x13e452{['afterInit'](){const _0x23967d=this['editor'];_0x23967d['plugins']['has']('MentionEditing')&&_0x23967d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x13e452{['afterInit'](){const _0x56b972=this['editor'];if(!_0x56b972['plugins']['has']('MergeFieldsEditing'))return;const _0x3f3286=_0x56b972['plugins']['get']('TrackChangesEditing'),_0x577af6=_0x56b972['locale'];_0x3f3286['enableCommand']('insertMergeField'),_0x3f3286['enableCommand']('insertMergeFieldBlock'),_0x3f3286['enableCommand']('insertMergeFieldImage'),_0x3f3286['descriptionFactory']['registerElementLabel']('mergeField',_0x27b878=>o(_0x577af6,'ELEMENT_MERGE_FIELD',_0x27b878)),_0x3f3286['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x11cbc7=>o(_0x577af6,'ELEMENT_MERGE_FIELD',_0x11cbc7)),_0x3f3286['descriptionFactory']['registerDescriptionCallback'](_0x1eade2=>{if('insertion'!=_0x1eade2['type']&&'deletion'!=_0x1eade2['type'])return;const _0x315524=_0x1eade2['getContainedElement']();if(null==_0x315524)return;const _0x9e29f8=_0x56b972['plugins']['get']('MergeFieldsEditing');let _0x1ffef5;switch(_0x9e29f8['getMergeFieldType'](_0x315524)){case null:return;case'image':{const _0x3b3eaf=_0x9e29f8['unwrapAffixes'](_0x315524['getAttribute']('src'));_0x1ffef5=_0x9e29f8['getLabel'](_0x3b3eaf)||_0x3b3eaf;break;}default:{const _0x4dd003=_0x315524['getAttribute']('id');_0x1ffef5=_0x9e29f8['getLabel'](_0x4dd003)||_0x4dd003;break;}}return'insertion'==_0x1eade2['type']?{'type':'insertion','content':o(_0x577af6,'*Insert:*\x20%0','\x22'+_0x1ffef5+'\x22\x20'+o(_0x577af6,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x577af6,'*Remove:*\x20%0','\x22'+_0x1ffef5+'\x22\x20'+o(_0x577af6,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x13e452{['afterInit'](){const _0xd7c830=this['editor'],_0x2e159f=_0xd7c830['plugins']['get']('TrackChangesEditing');_0xd7c830['plugins']['has']('MultiLevelList')&&(_0x2e159f['enableDefaultAttributesIntegration']('multiLevelList'),_0x2e159f['registerBlockAttribute']('listMarkerStyle'),_0x2e159f['descriptionFactory']['registerDescriptionCallback'](_0x215f2a=>this['handleDescriptions'](_0x215f2a)));}['handleDescriptions'](_0x4e3a62){const _0x28a67e=this['editor']['locale'],{data:_0x4e1a81}=_0x4e3a62,_0x37148b={'type':'format','content':''};if(_0x4e1a81&&'listMarkerStyle'==_0x4e1a81['key']){if(!_0x4e1a81['oldValue'])return{'type':'format','content':o(_0x28a67e,'*Set\x20format:*\x20%0',o(_0x28a67e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4e1a81['newValue']+')'};if(!_0x4e1a81['newValue']){let _0x289aa8=_0x4e3a62['head'];for(;_0x289aa8;){if(_0x289aa8['data']&&'listType'==_0x289aa8['data']['key']&&_0x289aa8['data']['newValue'])return _0x37148b;_0x289aa8=_0x289aa8['next'];}return{'type':'format','content':o(_0x28a67e,'*Remove\x20format:*\x20%0',o(_0x28a67e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4e1a81['oldValue']+')'};}}}}class pt extends _0x13e452{['afterInit'](){const _0x5f42e8=this['editor'];if(!_0x5f42e8['plugins']['has']('PageBreakEditing'))return;_0x5f42e8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xddc39=_0x5f42e8['plugins']['get']('TrackChangesEditing'),_0x181c2d=_0x5f42e8['locale'];_0xddc39['descriptionFactory']['registerElementLabel']('pageBreak',_0x48d951=>o(_0x181c2d,'ELEMENT_PAGE_BREAK',_0x48d951));}}class kt extends _0x13e452{['afterInit'](){const _0x1c2676=this['editor'];if(!_0x1c2676['plugins']['has']('Paragraph'))return;const _0x7fd735=_0x1c2676['locale'],_0x54c2c8=_0x1c2676['plugins']['get']('TrackChangesEditing');_0x54c2c8['descriptionFactory']['registerElementLabel']('paragraph',_0x5cb78c=>o(_0x7fd735,'ELEMENT_PARAGRAPH',_0x5cb78c)),_0x54c2c8['enableDefaultAttributesIntegration']('paragraph'),_0x54c2c8['enableCommand']('insertParagraph'),_0x1c2676['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1c2676),{'priority':'highest'}),_0x1c2676['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4b41ee,_0x34da63,_0x2be256)=>{_0x2be256['options']['showSuggestionHighlights']&&nr(_0x1c2676,{'showActiveMarker':!0x1})(_0x4b41ee,_0x34da63,_0x2be256);},{'priority':'highest'});const _0x4e6403=_0x54c2c8['descriptionFactory'];_0x4e6403['registerDescriptionCallback'](_0x280413=>{if('insertion'!==_0x280413['type'])return;const {start:_0x2b1131,end:_0x3c594a}=_0x280413['getFirstRange']();if(!_0x2b1131['isTouching'](_0x3c594a)||!_0x2b1131['nodeAfter'])return;const _0xe1193c=_0x1c2676['model']['schema'],_0x5a6e22=_0x2b1131['nodeAfter'];return _0xe1193c['isBlock'](_0x5a6e22)&&!_0xe1193c['isLimit'](_0x5a6e22)&&_0xe1193c['checkChild'](_0x5a6e22,'$text')?{'type':'insertion','content':o(_0x7fd735,'*Insert:*\x20%0',_0x4e6403['getItemLabel'](_0x5a6e22,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29dd2f=this['editor'],_0x28efbc=_0x29dd2f['locale'];_0x29dd2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xba20a=>{if('formatBlock'!=_0xba20a['type'])return;const {data:_0x314667}=_0xba20a;return _0x314667&&'paragraph'==_0x314667['commandName']?{'type':'format','content':o(_0x28efbc,'*Change\x20to:*\x20%0',o(_0x28efbc,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x530f34,{showActiveMarker:_0x3095d1=!0x0}={}){return(_0x18189d,_0x22a0ad,_0x2a35f8)=>{const _0x1f3b14=_0x530f34['plugins']['get']('TrackChangesEditing'),_0x3feb33=_0x22a0ad['markerRange']['start'],_0x316fd5=_0x22a0ad['markerRange']['end'],_0x1d93c5=_0x530f34['model']['schema'];if(!_0x3feb33['isTouching'](_0x316fd5)||!_0x3feb33['nodeAfter'])return;const _0x5bc58c=_0x3feb33['nodeAfter'];if(_0x1d93c5['isBlock'](_0x5bc58c)&&!_0x1d93c5['isLimit'](_0x5bc58c)&&_0x1d93c5['checkChild'](_0x5bc58c,'$text')){if(!_0x2a35f8['consumable']['consume'](_0x22a0ad['markerRange'],_0x18189d['name']))return;const {id:_0x4234f2,authorId:_0xbb1ed4}=_0x1f3b14['_splitMarkerName'](_0x22a0ad['markerName']),_0xd7e933=_0x2a35f8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x4234f2,'data-author-id':_0xbb1ed4}),_0x532486=_0x2a35f8['mapper']['toViewPosition'](_0x316fd5);_0x3095d1&&_0x1f3b14['activeMarkers']['includes'](_0x22a0ad['markerName'])&&_0x2a35f8['writer']['addClass']('ck-suggestion-marker--active',_0xd7e933),_0x2a35f8['writer']['insert'](_0x532486,_0xd7e933),_0x2a35f8['mapper']['bindElementToMarker'](_0xd7e933,_0x22a0ad['markerName']);}};}class wt extends _0x13e452{['afterInit'](){const _0x5c03fe=this['editor'];_0x5c03fe['commands']['get']('replaceSource')&&_0x5c03fe['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x13e452{['afterInit'](){const _0x13756a=this['editor'];if(!_0x13756a['plugins']['has']('RemoveFormatEditing'))return;_0x13756a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dce21=this['editor'];_0x1dce21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c2f10=>{if('formatBlock'!=_0x4c2f10['type']&&'formatInline'!=_0x4c2f10['type'])return;const {data:_0x2a8fbb}=_0x4c2f10;return _0x2a8fbb&&'removeFormat'==_0x2a8fbb['commandName']?{'type':'format','content':o(_0x1dce21['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x13e452{['afterInit'](){const _0x12570b=this['editor'];if(!_0x12570b['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x56da9e=_0x12570b['plugins']['get']('TrackChangesEditing');_0x56da9e['enableCommand']('goToPreviousRestrictedEditingException'),_0x56da9e['enableCommand']('goToNextRestrictedEditingException');const _0x2805c5=_0x12570b['plugins']['get']('RestrictedEditingModeEditing');_0x2805c5['enableCommand']('trackChanges'),_0x2805c5['enableCommand']('acceptSuggestion'),_0x2805c5['enableCommand']('discardSuggestion'),_0x2805c5['enableCommand']('acceptAllSuggestions'),_0x2805c5['enableCommand']('discardAllSuggestions'),_0x2805c5['enableCommand']('acceptSelectedSuggestions'),_0x2805c5['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x13e452{['afterInit'](){const _0x2f8990=this['editor'];if(!_0x2f8990['plugins']['has']('ShiftEnter'))return;const _0x253788=_0x2f8990['plugins']['get']('TrackChangesEditing');_0x253788['enableCommand']('shiftEnter'),_0x2f8990['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2f8990),{'priority':'high'}),_0x2f8990['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2f8990),{'priority':'high'}),_0x2f8990['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a36e3,_0x1c819c,_0x129d34)=>{_0x129d34['options']['showSuggestionHighlights']&&je(_0x2f8990,{'showActiveMarker':!0x1})(_0x5a36e3,_0x1c819c,_0x129d34);}),_0x253788['descriptionFactory']['registerElementLabel']('softBreak',_0x534ad1=>o(_0x2f8990['locale'],'ELEMENT_LINE_BREAK',_0x534ad1));}}function je(_0x31df68,{showActiveMarker:_0x26c53d=!0x0}={}){return(_0x5222df,_0x50437a,_0x106882)=>{const _0x5d3191=_0x31df68['plugins']['get']('TrackChangesEditing');if(!_0x106882['consumable']['test'](_0x50437a['markerRange'],_0x5222df['name']))return;const _0x23feeb=_0x31df68['model'];for(const _0xe4dcd6 of _0x50437a['markerRange']['getItems']()){if(!_0xe4dcd6['is']('element','softBreak'))continue;const _0x388235='deletion'==_0x50437a['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x35e3ee,authorId:_0x5ba624}=_0x5d3191['_splitMarkerName'](_0x50437a['markerName']),_0x2b62a4=_0x106882['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x388235,'data-suggestion':_0x35e3ee,'data-author-id':_0x5ba624}),_0x24422b=_0x106882['mapper']['toViewPosition'](_0x23feeb['createPositionBefore'](_0xe4dcd6));_0x26c53d&&_0x5d3191['activeMarkers']['includes'](_0x50437a['markerName'])&&_0x106882['writer']['addClass']('ck-suggestion-marker--active',_0x2b62a4),_0x106882['writer']['insert'](_0x24422b,_0x2b62a4),_0x106882['mapper']['bindElementToMarker'](_0x2b62a4,_0x50437a['markerName']);}};}class St extends _0x13e452{['afterInit'](){const _0x501163=this['editor'],_0x38ab3c=_0x501163['model'],_0x2213cc=_0x501163['locale'];if(!_0x501163['plugins']['has']('StandardEditingModeEditing'))return;const _0x175537=_0x501163['plugins']['get']('TrackChangesEditing'),_0x121227='restrictedEditingException',_0x35aacd=_0x501163['commands']['get'](_0x121227);_0x175537['enableCommand'](_0x121227,(_0x504432,_0x437ddf={})=>{const _0x1cb527=_0x38ab3c['document']['selection'];if(_0x1cb527['isCollapsed'])return void _0x504432(_0x437ddf);const _0x535c85=void 0x0!==_0x437ddf['forceValue']?_0x437ddf['forceValue']:!_0x35aacd['value'];_0x38ab3c['change'](()=>{const _0x898ace=Array['from'](_0x1cb527['getRanges']());for(const _0x179f38 of _0x898ace){const _0xf3f68c=_0x535c85?[_0x179f38]:io(_0x121227,_0x179f38,_0x38ab3c);for(const _0x411353 of _0xf3f68c)_0x175537['markInlineFormat'](_0x411353,{'commandName':_0x121227,'commandParams':[{'forceValue':_0x535c85}]});}});}),_0x175537['descriptionFactory']['registerDescriptionCallback'](_0x54eee9=>{if('formatBlock'!=_0x54eee9['type']&&'formatInline'!=_0x54eee9['type'])return;const {data:_0x139658}=_0x54eee9;return _0x139658&&_0x139658['commandName']==_0x121227?_0x139658['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2213cc,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2213cc,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x13e452{['afterInit'](){const _0x324b3a=this['editor'];if(!_0x324b3a['plugins']['has']('Style')||!_0x324b3a['plugins']['has']('DataSchema'))return;const _0x538a8b=_0x324b3a['plugins']['get']('TrackChangesEditing'),_0x4001df=_0x324b3a['locale'],_0x3a4cff=_0x324b3a['config']['get']('style')||{},_0x5b6d17=_0x324b3a['plugins']['get']('GeneralHtmlSupport'),_0x59ba46=_0x324b3a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x324b3a['plugins']['get']('DataSchema'),_0x3a4cff['definitions']);_0x538a8b['enableDefaultAttributesIntegration']('style');const _0x16f6bf=new Set();for(const _0x131c6d of _0x59ba46['block']){const _0x26c3b5=_0x5b6d17['getGhsAttributeNameForElement'](_0x131c6d['element']);_0x16f6bf['add'](_0x26c3b5);}const _0x254228=new Set();for(const _0x3b1fff of _0x59ba46['inline']){const _0x7ba5a8=_0x5b6d17['getGhsAttributeNameForElement'](_0x3b1fff['element']);_0x254228['add'](_0x7ba5a8);for(const _0xef2b3d of _0x3b1fff['ghsAttributes'])_0x254228['add'](_0xef2b3d);}for(const _0x472cc6 of _0x16f6bf)_0x538a8b['registerBlockAttribute'](_0x472cc6),_0x538a8b['descriptionFactory']['registerAttributeLabel'](_0x472cc6,o(_0x4001df,'FORMAT_STYLE'));for(const _0x1b81d9 of _0x254228)_0x538a8b['registerInlineAttribute'](_0x1b81d9),_0x538a8b['descriptionFactory']['registerAttributeLabel'](_0x1b81d9,o(_0x4001df,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c2ba9=this['editor'],_0x51eda5=_0x2c2ba9['locale'];_0x2c2ba9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f9321=>{if('formatBlock'!=_0x4f9321['type']&&'formatInline'!=_0x4f9321['type'])return;const {data:_0x477f3c}=_0x4f9321;return _0x477f3c&&'style'===_0x477f3c['commandName']?_0x477f3c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51eda5,'*Set\x20format:*\x20%0',_0x477f3c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x51eda5,'*Remove\x20format:*\x20%0',_0x477f3c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x13e452{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x54ab7e){super(_0x54ab7e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x37d68c=this['editor'],_0x5d392e=_0x37d68c['model']['document']['selection'];if(!_0x37d68c['plugins']['has']('TableEditing'))return;const _0x24a1c4=_0x37d68c['locale'],_0x3d6df4=_0x37d68c['plugins']['get']('TrackChangesEditing'),_0x48ba31=_0x37d68c['plugins']['get']('TableUtils');_0x3d6df4['descriptionFactory']['registerElementLabel']('table',_0x5a5fdb=>o(_0x24a1c4,'ELEMENT_TABLE',_0x5a5fdb)),this['_setupColumnsRowsFixing'](),_0x3d6df4['enableCommand']('insertTable'),_0x3d6df4['enableCommand']('selectTableRow'),_0x3d6df4['enableCommand']('selectTableColumn');for(const _0x222591 of['insertTableRowAbove','insertTableRowBelow']){const _0x316d19=_0x37d68c['commands']['get'](_0x222591);_0x3d6df4['enableCommand'](_0x222591,_0x31d2be=>{_0x37d68c['model']['change'](_0x2975bc=>{_0x31d2be();const _0x56524c='above'===_0x316d19['order'],_0x58fe30=_0x48ba31['getSelectionAffectedTableCells'](_0x5d392e),_0x1627cf=_0x48ba31['getRowIndexes'](_0x58fe30),_0x5a0045=_0x56524c?_0x1627cf['first']-0x1:_0x1627cf['last']+0x1,_0x2b6ff9=_0x58fe30[0x0]['findAncestor']('table'),_0x442356=_0x48ba31['createTableWalker'](_0x2b6ff9,{'startRow':_0x5a0045,'endRow':_0x5a0045}),_0x5e98a0=Array['from'](_0x442356)['map'](_0x52d8f7=>_0x2975bc['createRangeOn'](_0x52d8f7['cell']));_0x3d6df4['markMultiRangeInsertion'](_0x5e98a0,'tableRow');});});}for(const _0x1c178b of['insertTableColumnLeft','insertTableColumnRight']){const _0x5f5c3c=_0x37d68c['commands']['get'](_0x1c178b);_0x3d6df4['enableCommand'](_0x1c178b,_0x4a29cc=>{_0x37d68c['model']['change'](_0x441fb1=>{_0x4a29cc();const _0x280be0='left'===_0x5f5c3c['order'],_0x4ed390=_0x48ba31['getSelectionAffectedTableCells'](_0x5d392e),_0x53fb2c=_0x48ba31['getColumnIndexes'](_0x4ed390),_0x335bc0=_0x280be0?_0x53fb2c['first']-0x1:_0x53fb2c['last']+0x1,_0x25de65=_0x4ed390[0x0]['findAncestor']('table'),_0x50b1b6=_0x48ba31['createTableWalker'](_0x25de65,{'startRow':0x0,'column':_0x335bc0,'includeAllSlots':!0x1}),_0x21562b=Array['from'](_0x50b1b6)['map'](_0xf4980=>_0x441fb1['createRangeOn'](_0xf4980['cell']));_0x3d6df4['markMultiRangeInsertion'](_0x21562b,'tableColumn');});});}for(const _0x1bae36 of['removeTableRow','removeTableColumn']){const _0x66dfcf=_0x1bae36['substr'](0xb),_0x1e7c2f=_0x66dfcf['toLowerCase'](),_0x28967b=_0x1e7c2f['substr'](0x0,0x3)+'span',_0x2fec81='table'+_0x66dfcf,_0x311097='min'+_0x66dfcf,_0x1128c2='max'+_0x66dfcf;_0x3d6df4['enableCommand'](_0x1bae36,()=>{_0x37d68c['model']['change'](_0x565477=>{const _0x1b5c2f=_0x48ba31['getSelectionAffectedTableCells'](_0x5d392e),_0x2e56f5=_0x1b5c2f[0x0]['findAncestor']('table');let _0x75442d;if('removeTableRow'==_0x1bae36){const _0x10609b=_0x48ba31['getRowIndexes'](_0x1b5c2f);_0x75442d={'startRow':_0x10609b['first'],'endRow':_0x10609b['last'],'includeAllSlots':!0x0};}else{const _0x4143d2=_0x48ba31['getColumnIndexes'](_0x1b5c2f);_0x75442d={'startColumn':_0x4143d2['first'],'endColumn':_0x4143d2['last'],'includeAllSlots':!0x0};}const _0x2c4526=_0x48ba31['createTableWalker'](_0x2e56f5,_0x75442d),_0x1a2976=Array['from'](_0x2c4526)['map'](({cell:_0x1d4f8c})=>_0x1d4f8c),_0x549ef5=Ne(_0x1a2976['filter'](_0x4855ab=>_0x4855ab['hasAttribute'](_0x28967b))),_0x34f7fe=Ne(_0x1a2976['filter'](_0x915fe2=>!_0x915fe2['hasAttribute'](_0x28967b)))['map'](_0x431fbb=>_0x565477['createRangeOn'](_0x431fbb)),_0x48ecf5=_0x3d6df4['markMultiRangeDeletion'](_0x34f7fe,_0x2fec81);if(_0x48ecf5&&('tableRow'==_0x48ecf5['subType']||'tableColumn'==_0x48ecf5['subType'])){const _0x5a3c18=this['_getSuggestionCoords'](_0x48ecf5);for(const _0x1524d0 of _0x549ef5){const _0x49276e=_0x565477['createRangeOn'](_0x1524d0),_0x57f9cc=_0x48ba31['getCellLocation'](_0x1524d0),_0x339db0=_0x1524d0['getAttribute'](_0x28967b)-0x1,_0x389514=_0x5a3c18[_0x311097],_0x28b214=_0x5a3c18[_0x1128c2];_0x389514<=_0x57f9cc[_0x1e7c2f]&&_0x57f9cc[_0x1e7c2f]+_0x339db0<=_0x28b214&&_0x48ecf5['addRange'](_0x49276e);}}});});}function _0xb564af(_0x6906bc){const _0x1d3785=Array['from'](_0x5d392e['getRanges']())['map'](_0x497932=>_0x158d49['fromRange'](_0x497932));_0x37d68c['model']['change'](_0x5278f7=>{const _0x53bcfb=_0x5278f7['batch'];_0x6906bc=_0x6906bc['filter'](_0x35821d=>'$graveyard'!=_0x35821d['root']['rootName']),_0x5278f7['setSelection'](_0x6906bc),_0x37d68c['commands']['get']('removeTableRow')['refresh'](),_0x37d68c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x37d68c['model']['enqueueChange'](()=>{_0x37d68c['model']['enqueueChange'](_0x53bcfb,_0x1b75d6=>{const _0x313eea=_0x1d3785['filter'](_0x44f787=>'$graveyard'!=_0x44f787['root']['rootName']);_0x313eea['length']>0x0&&_0x1b75d6['setSelection'](_0x313eea);for(const _0x4e0ee9 of _0x1d3785)_0x4e0ee9['detach']();});});});}function _0x42706b(_0x4c030a){_0x37d68c['model']['change'](_0x2328c2=>{const _0xc521f8=Array['from'](_0x5d392e['getRanges']())['map'](_0x3bc61e=>_0x158d49['fromRange'](_0x3bc61e)),_0x2d0e4c=[];for(const _0x2d5da2 of _0x4c030a)for(const _0x321bb6 of _0x2d5da2['getItems']({'shallow':!0x0}))_0x2d0e4c['push'](_0x321bb6);for(const _0x275838 of _0x2d0e4c)'$graveyard'!=_0x275838['root']['rootName']&&(_0x2328c2['setSelection'](_0x2328c2['createPositionAt'](_0x275838,0x0)),_0x37d68c['commands']['get']('removeTableColumn')['refresh'](),_0x37d68c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1e14d0=_0xc521f8['filter'](_0x11a0b7=>'$graveyard'!=_0x11a0b7['root']['rootName']);_0x1e14d0['length']>0x0&&_0x2328c2['setSelection'](_0x1e14d0);for(const _0x3e7b33 of _0xc521f8)_0x3e7b33['detach']();});}function _0x5d139e(_0x3d67e7,_0x394950){return _0x394950['every'](_0x1eeb7c=>_0x3d67e7['some'](_0x229144=>_0x229144['end']['isEqual'](_0x1eeb7c['start'])||_0x1eeb7c['end']['isEqual'](_0x229144['start'])));}function _0x45e203(_0x1aabe2,_0x274504){return!_0x1aabe2['some'](_0x5d0272=>_0x274504['some'](_0x3c0f50=>_0x5d0272['isIntersecting'](_0x3c0f50)))&&_0x1aabe2['some'](_0x6a7035=>_0x274504['some'](_0x4b94b3=>_0x6a7035['end']['isTouching'](_0x4b94b3['start'])));}_0x37d68c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x113e37,_0x2b5dbc,_0x34c31a)=>{if(!_0x34c31a['options']['showSuggestionHighlights'])return;const _0x2f560c=_0x2b5dbc['item'];if(!_0x2f560c||!_0x2f560c['is']('element','tableCell'))return;const _0x29ac3b=_0x34c31a['mapper']['toViewElement'](_0x2f560c);if(_0x29ac3b){const {id:_0x35afca,authorId:_0x42e453}=_0x3d6df4['_splitMarkerName'](_0x2b5dbc['markerName']);_0x5b6e86(_0x29ac3b,_0x34c31a['writer'],(_0x43da26,_0x106c12,_0x1c2d18)=>{_0x1c2d18['addClass'](_0x2e0ed6(_0x106c12['classes']),_0x43da26),_0x1c2d18['setAttribute']('data-suggestion-id',_0x35afca,_0x43da26),_0x1c2d18['setAttribute']('data-author-id',_0x42e453,_0x43da26);},(_0x18dac0,_0x5e679a,_0x13185a)=>{_0x13185a['removeClass'](_0x2e0ed6(_0x5e679a['classes']),_0x18dac0),_0x13185a['removeAttribute']('data-suggestion-id',_0x18dac0),_0x13185a['removeAttribute']('data-author-id',_0x18dac0);});}},{'priority':'highest'}),_0x3d6df4['descriptionFactory']['registerDescriptionCallback'](_0x4fef25=>{if('insertion'!=_0x4fef25['type']&&'deletion'!=_0x4fef25['type'])return;const _0x317a1c=_0x4fef25['getContainedElement']();if(null!=_0x317a1c&&_0x317a1c['is']('element','table')){if('insertion'==_0x4fef25['type']){const _0x30df61=_0x4fef25['getItems']()['filter'](_0x3cc64f=>_0x3cc64f['is']('$textProxy'))['map'](_0x1f917e=>_0x1f917e['data']);if(_0x30df61['length'])return{'type':'insertion','content':o(_0x24a1c4,'*Insert:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x30df61['join']('\x20')+'\x22'))};}if('deletion'==_0x4fef25['type']){const _0xdd6635=_0x4fef25['getItems']()['filter'](_0x130817=>_0x130817['is']('$textProxy'))['map'](_0x9def4e=>_0x9def4e['data']);if(_0xdd6635['length'])return{'type':'deletion','content':o(_0x24a1c4,'*Remove:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xdd6635['join']('\x20')+'\x22'))};}}}),_0x3d6df4['descriptionFactory']['registerDescriptionCallback'](_0x13dc09=>{if('tableRow'==_0x13dc09['subType']){const _0x525a1f=_0x13dc09['getItems']()['filter'](_0x307b41=>_0x307b41['is']('$textProxy'))['map'](_0x9f48ce=>_0x9f48ce['data']),_0x288e18=this['_getSuggestionCoords'](_0x13dc09),_0x1f8439=_0x288e18['maxRow']-_0x288e18['minRow']+0x1;if('insertion'==_0x13dc09['type'])return _0x525a1f['length']?{'type':'insertion','content':o(_0x24a1c4,'*Insert:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f8439,'\x22'+_0x525a1f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x24a1c4,'*Insert:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_ROW',_0x1f8439))};if('deletion'==_0x13dc09['type'])return _0x525a1f['length']?{'type':'deletion','content':o(_0x24a1c4,'*Remove:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f8439,'\x22'+_0x525a1f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x24a1c4,'*Remove:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_ROW',_0x1f8439))};}if('tableColumn'==_0x13dc09['subType']){const _0x34c836=_0x13dc09['getItems']()['filter'](_0x201af4=>_0x201af4['is']('$textProxy'))['map'](_0x1f1424=>_0x1f1424['data']),_0x56898f=this['_getSuggestionCoords'](_0x13dc09),_0x3b9d5d=_0x56898f['maxColumn']-_0x56898f['minColumn']+0x1;if('insertion'==_0x13dc09['type'])return _0x34c836['length']?{'type':'insertion','content':o(_0x24a1c4,'*Insert:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b9d5d,'\x22'+_0x34c836['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x24a1c4,'*Insert:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_COLUMN',_0x3b9d5d))};if('deletion'==_0x13dc09['type'])return _0x34c836['length']?{'type':'deletion','content':o(_0x24a1c4,'*Remove:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b9d5d,'\x22'+_0x34c836['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x24a1c4,'*Remove:*\x20%0',o(_0x24a1c4,'ELEMENT_TABLE_COLUMN',_0x3b9d5d))};}}),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xb564af),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xb564af),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x42706b),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x42706b),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5d139e),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5d139e),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x45e203),_0x3d6df4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x45e203);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4ce729=this['editor'],_0x3dbc1c=_0x4ce729['model']['document']['selection'];return(_0x4bfdc0,_0x54993c)=>{_0x4ce729['model']['change'](_0x3927b3=>{const {commandName:_0x35e457,commandParams:_0x4dac5a}=_0x54993c;let _0x3e31ff=_0x4bfdc0[0x0]['end']['nodeBefore'];_0x4dac5a&&_0x4dac5a[0x0]&&!0x1===_0x4dac5a[0x0]['forceValue']&&(_0x3e31ff=_0x4bfdc0[0x0]['start']['nodeAfter']);const _0x5c0542=_0x3927b3['createRangeIn'](_0x3e31ff);if('$graveyard'==_0x5c0542['root']['rootName'])return;const _0x6b1f61=Array['from'](_0x3dbc1c['getRanges']())['map'](_0x5b3661=>_0x158d49['fromRange'](_0x5b3661));_0x3927b3['setSelection'](_0x5c0542),_0x4ce729['commands']['get'](_0x35e457)['refresh'](),_0x4dac5a['push']({'forceDefaultExecution':!0x0}),_0x4ce729['execute'](_0x35e457,..._0x4dac5a);const _0x5d48e4=_0x6b1f61['filter'](_0x1ec0f1=>'$graveyard'!=_0x1ec0f1['root']['rootName']);_0x5d48e4['length']>0x0&&_0x3927b3['setSelection'](_0x5d48e4);for(const _0xd70d6f of _0x6b1f61)_0xd70d6f['detach']();});};}['_getCoordsForCells'](_0x246ce7){const _0x412c26=this['editor']['plugins']['get']('TableUtils');let _0x1a31df=Number['MAX_SAFE_INTEGER'],_0x4c83c6=Number['MIN_SAFE_INTEGER'],_0xb4f1ec=Number['MAX_SAFE_INTEGER'],_0x211434=Number['MIN_SAFE_INTEGER'];for(const _0x4692ae of _0x246ce7){if('$graveyard'==_0x4692ae['root']['rootName'])continue;const {row:_0x46eaf2,column:_0x263fba}=_0x412c26['getCellLocation'](_0x4692ae),_0x5c399c=_0x4692ae['hasAttribute']('rowspan')?_0x4692ae['getAttribute']('rowspan')-0x1:0x0,_0x456e7a=_0x4692ae['hasAttribute']('colspan')?_0x4692ae['getAttribute']('colspan')-0x1:0x0;_0x1a31df=_0x46eaf2<_0x1a31df?_0x46eaf2:_0x1a31df,_0x4c83c6=_0x46eaf2+_0x5c399c>_0x4c83c6?_0x46eaf2+_0x5c399c:_0x4c83c6,_0xb4f1ec=_0x263fba<_0xb4f1ec?_0x263fba:_0xb4f1ec,_0x211434=_0x263fba+_0x456e7a>_0x211434?_0x263fba+_0x456e7a:_0x211434;}return{'minRow':_0x1a31df,'maxRow':_0x4c83c6,'minColumn':_0xb4f1ec,'maxColumn':_0x211434};}['_setupColumnsRowsFixing'](){const _0x368158=this['editor'],_0x281a4d=_0x368158['plugins']['get']('TrackChangesEditing'),_0x59076e=_0x368158['plugins']['get']('TableUtils');_0x368158['model']['document']['on']('change:data',()=>{const _0x375ea8=Array['from'](_0x368158['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x133693,data:_0x295c6d}of _0x375ea8){const {group:_0x1397ce,id:_0x1907a3,subType:_0x47162d}=_0x281a4d['_splitMarkerName'](_0x133693);if('suggestion'!=_0x1397ce)continue;if(null!=_0x295c6d['oldRange'])continue;const _0x24dd72=_0x281a4d['getSuggestion'](_0x1907a3);this['_tablePostFixingSubtypes']['includes'](_0x47162d)&&this['_tableSuggestions']['add'](_0x24dd72);}},{'priority':'low'});const _0x35d515=(_0x14fe2b,_0x3756b3)=>{let _0x6bf67e=!0x1;const _0x4a1df5=_0x3756b3['createRangeOn'](_0x14fe2b),_0x4f2bae=_0x14fe2b['findAncestor']('table'),_0x183ed8=_0x59076e['getCellLocation'](_0x14fe2b);for(const _0x1914bb of this['_tableSuggestions']){const _0x53c9e8=_0x1914bb['subType'],_0x3a8e7f=_0x53c9e8['startsWith']('tablePaste'),_0x4dc630=_0x53c9e8['substr'](_0x3a8e7f?0xa:0x5),_0x37f494=_0x4dc630['toLowerCase'](),_0xcef3f0=_0x37f494['substr'](0x0,0x3)+'span',_0x533cb='min'+_0x4dc630,_0x578278='max'+_0x4dc630;if(!_0x1914bb['isInContent'])continue;if(_0x4f2bae!=_0x1914bb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1914bb['isIntersectingWithRange'](_0x4a1df5))continue;const _0xf56858=_0x14fe2b['hasAttribute'](_0xcef3f0)?_0x14fe2b['getAttribute'](_0xcef3f0)-0x1:0x0,_0x3339d9=this['_getSuggestionCoords'](_0x1914bb),_0x507b97=_0x3339d9[_0x533cb],_0x2bb44f=_0x3339d9[_0x578278];_0x507b97<=_0x183ed8[_0x37f494]&&_0x183ed8[_0x37f494]+_0xf56858<=_0x2bb44f&&(_0x1914bb['addRange'](_0x4a1df5),_0x6bf67e=!0x0);}return _0x6bf67e;};_0x368158['model']['document']['registerPostFixer'](_0x307900=>{let _0x10df92=!0x1;for(const _0x566ff4 of _0x368158['model']['document']['differ']['getChanges']())if('insert'==_0x566ff4['type']){if('tableRow'==_0x566ff4['name']){for(const _0x2c592e of _0x566ff4['position']['nodeAfter']['getChildren']())_0x10df92=_0x10df92||_0x35d515(_0x2c592e,_0x307900);}else'tableCell'==_0x566ff4['name']&&(_0x10df92=_0x10df92||_0x35d515(_0x566ff4['position']['nodeAfter'],_0x307900));}return _0x10df92;});}['_getSuggestionCoords'](_0x5d8829){return this['_getCoordsForCells'](_0x5d8829['getRanges']()['map'](_0x4dd1d0=>_0x4dd1d0['start']['nodeAfter']));}}function Ne(_0x5759a6){return Array['from'](new Set(_0x5759a6)['values']());}class _t extends _0x13e452{static get['requires'](){return[At];}['afterInit'](){const _0x5a7cde=this['editor'],_0x436220=_0x5a7cde['model']['document']['selection'],_0x23a718=_0x5a7cde['locale'];if(!_0x5a7cde['plugins']['has']('TableEditing'))return;const _0x4efef1=_0x5a7cde['plugins']['get']('TrackChangesEditing'),_0x18e462=_0x5a7cde['plugins']['get']('TableUtils'),_0x233aa3=_0x5a7cde['plugins']['get'](At);_0x233aa3['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4efef1['enableCommand']('mergeTableCells',()=>{const _0xe21e06=_0x18e462['getSelectionAffectedTableCells'](_0x5a7cde['model']['document']['selection']);_0x5a7cde['model']['change'](()=>{_0x4efef1['markMultiRangeBlockFormat'](_0xe21e06,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5a7cde['commands']['get']('mergeTableCells')['on']('execute',(_0x4dd288,_0x31157f)=>{_0x5a7cde['commands']['get']('trackChanges')['value']&&(_0x31157f['length']>0x0&&_0x31157f[_0x31157f['length']-0x1]&&_0x31157f[_0x31157f['length']-0x1]['forceDefaultExecution']||_0x4efef1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4dd288['stop']());},{'priority':'highest'});for(const _0x52d49d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xf1b0ca=_0x5a7cde['commands']['get'](_0x52d49d);_0x4efef1['enableCommand'](_0x52d49d,()=>{const _0x393a2c=_0x5a7cde['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x40bd2a=>_0x40bd2a['is']('element','tableCell')),_0x535a25=_0xf1b0ca['value'];_0x5a7cde['model']['change'](()=>{_0x4efef1['markMultiRangeBlockFormat']([_0x393a2c,_0x535a25],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4ef742 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3318cd=_0x5a7cde['commands']['get'](_0x4ef742);_0x4efef1['enableCommand'](_0x4ef742,()=>{const _0x46b6d8=_0x18e462['getSelectionAffectedTableCells'](_0x5a7cde['model']['document']['selection'])[0x0],_0x4ab7f7=_0x46b6d8['findAncestor']('table'),{column:_0x20d427,row:_0x3ce5fe}=_0x18e462['getCellLocation'](_0x46b6d8);let _0x3a6157=[];if('horizontally'==_0x3318cd['direction']){const _0x7526b1=_0x18e462['createTableWalker'](_0x4ab7f7,{'startRow':_0x3ce5fe,'endRow':_0x3ce5fe,'includeAllSlots':!0x0});_0x3a6157=Array['from'](_0x7526b1)['map'](_0x578728=>_0x578728['cell']);}else{const _0x389fbe=_0x18e462['createTableWalker'](_0x4ab7f7,{'column':_0x20d427,'includeAllSlots':!0x0});_0x3a6157=Array['from'](_0x389fbe)['map'](_0x3de2d0=>_0x3de2d0['cell']);}_0x5a7cde['model']['change'](_0x8a0ed1=>{_0x4efef1['markBlockFormat'](_0x8a0ed1['createRangeOn'](_0x46b6d8),{'commandName':_0x4ef742,'commandParams':[]},_0x3a6157,_0x4ef742);});});}_0x4efef1['descriptionFactory']['registerDescriptionCallback'](_0xe9fd04=>{if('formatBlock'!=_0xe9fd04['type']&&'formatInline'!=_0xe9fd04['type'])return;const {data:_0x2e07bd}=_0xe9fd04;return _0x2e07bd&&'mergeTableCells'==_0x2e07bd['commandName']?{'type':'format','content':o(_0x23a718,'*Merge\x20cells*')}:void 0x0;}),_0x4efef1['descriptionFactory']['registerDescriptionCallback'](_0x40f912=>{if('formatBlock'!=_0x40f912['type']&&'formatInline'!=_0x40f912['type'])return;const {data:_0x2b09ac}=_0x40f912;return _0x2b09ac?'splitTableCellVertically'==_0x2b09ac['commandName']?{'type':'format','content':o(_0x23a718,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2b09ac['commandName']?{'type':'format','content':o(_0x23a718,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x59172f=_0x233aa3['_acceptFormatSuggestionCallbackFactory']();for(const _0x246f13 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4efef1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x246f13,'accept',_0x59172f);for(const _0x562504 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4efef1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x562504,'accept',_0x59172f);_0x4efef1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3dac1d=>{_0x5a7cde['model']['change'](_0x4b56f0=>{const _0xdd6387=Array['from'](_0x436220['getRanges']())['map'](_0x548ea5=>_0x158d49['fromRange'](_0x548ea5));_0x4b56f0['setSelection'](_0x3dac1d),_0x5a7cde['commands']['get']('mergeTableCells')['refresh'](),_0x5a7cde['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x12bb63=_0xdd6387['filter'](_0x5d7f4e=>'$graveyard'!=_0x5d7f4e['root']['rootName']);_0x12bb63['length']>0x0&&_0x4b56f0['setSelection'](_0x12bb63);for(const _0x1a817a of _0xdd6387)_0x1a817a['detach']();});});for(const _0x37c22d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x231a69=_0x5a7cde['commands']['get'](_0x37c22d);_0x231a69['on']('set:isEnabled',(_0x59dd80,_0x40a04a,_0x5d9315)=>{if(_0x5d9315){const _0x18458e=_0x5a7cde['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1580fd=>_0x1580fd['is']('element','tableCell'));this['_areMergableCells'](_0x231a69['value'],_0x18458e)||(_0x59dd80['return']=!0x1,_0x59dd80['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x33d88c=this['editor']['commands']['get']('mergeTableCells'),_0x24b0d2=this['editor']['plugins']['get']('TableUtils');if(!_0x33d88c['isEnabled'])return!0x1;const _0x4254e0=_0x24b0d2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x58958b of _0x4254e0)for(const _0x512921 of _0x4254e0)if(_0x58958b!=_0x512921&&!this['_areMergableCells'](_0x58958b,_0x512921))return!0x1;return!0x0;}['_areMergableCells'](_0x4e34ae,_0x12b827){const _0x43d691=this['editor']['plugins']['get']('TrackChangesEditing'),_0x107f38=this['editor']['model']['createRangeOn'](_0x4e34ae),_0x20c32b=this['editor']['model']['createRangeOn'](_0x12b827),_0x382156=new Set(),_0x38acf1=new Set();for(const _0x2d6ffb of _0x43d691['getSuggestions']())if(('insertion'==_0x2d6ffb['type']||'deletion'==_0x2d6ffb['type']||'mergeTableCells'==_0x2d6ffb['subType'])&&_0x2d6ffb['isInContent']){for(const _0x41c254 of _0x2d6ffb['getRanges']())_0x41c254['containsRange'](_0x107f38,!0x0)&&_0x382156['add'](_0x2d6ffb['type']+':'+_0x2d6ffb['author']['id']),_0x41c254['containsRange'](_0x20c32b,!0x0)&&_0x38acf1['add'](_0x2d6ffb['type']+':'+_0x2d6ffb['author']['id']);}if(_0x382156['size']!=_0x38acf1['size'])return!0x1;for(const _0x5dee68 of _0x382156)if(!_0x38acf1['has'](_0x5dee68))return!0x1;return!0x0;}}class Ct extends _0x13e452{static get['requires'](){return[At];}['afterInit'](){const _0x16148a=this['editor'];if(!_0x16148a['plugins']['has']('TableEditing'))return;const _0x338ad2=_0x16148a['locale'],_0x181ea7=_0x16148a['plugins']['get']('TrackChangesEditing');_0x181ea7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x181ea7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x181ea7['registerBlockAttribute']('headingRows'),_0x181ea7['registerBlockAttribute']('headingColumns'),_0x181ea7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x338ad2,'FORMAT_HEADER_ROW')),_0x181ea7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x338ad2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2f78c6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20b205=this['editor']['plugins']['get']('TableUtils'),_0x33fa0e=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x58dd97({showActiveMarker:_0xcf01a1=!0x0,setDataAttribute:_0x2ff413=!0x0}={}){return(_0x581983,_0x3a8de3,_0x4ecb8e)=>{const {type:_0x50abd1,id:_0x5b19a8}=_0x2f78c6['_splitMarkerName'](_0x3a8de3['markerName']),_0x2f8477=_0x2f78c6['getSuggestion'](_0x5b19a8),_0x4ff5da=_0x2f8477['data'];if('formatBlock'!=_0x2f8477['type']||!_0x4ff5da||'setTableColumnHeader'!=_0x4ff5da['commandName'])return;if(_0x3a8de3['item'])return void _0x581983['stop']();if(!_0x4ecb8e['consumable']['consume'](_0x3a8de3['markerRange'],_0x581983['name']))return;const _0x10f784=_0x3a8de3['markerRange']['start']['nodeAfter'],_0x297f29=_0x3a8de3['markerRange']['end']['nodeBefore'],_0x33fa75=_0x10f784['parent']['parent'],{column:_0x23902f}=_0x20b205['getCellLocation'](_0x10f784),{column:_0x45e8db}=_0x20b205['getCellLocation'](_0x297f29);for(let _0x2fcc4f=_0x23902f;_0x2fcc4f<=_0x45e8db;_0x2fcc4f++){const _0x7b7ee3=_0x20b205['createTableWalker'](_0x33fa75,{'column':_0x2fcc4f,'includeAllSlots':!0x1});for(const _0x409712 of _0x7b7ee3){const _0x45c01d=_0x409712['cell'],_0x42a2f9=_0x4ecb8e['mapper']['toViewElement'](_0x45c01d);_0x4ecb8e['writer']['addClass']('ck-suggestion-marker-'+_0x50abd1,_0x42a2f9),_0x2ff413&&_0x4ecb8e['writer']['setAttribute']('data-suggestion',_0x5b19a8,_0x42a2f9),_0x4ecb8e['mapper']['bindElementToMarker'](_0x42a2f9,_0x3a8de3['markerName']),_0xcf01a1&&(_0x2f78c6['activeMarkers']['includes'](_0x3a8de3['markerName'])?_0x4ecb8e['writer']['addClass']('ck-suggestion-marker--active',_0x42a2f9):_0x4ecb8e['writer']['removeClass']('ck-suggestion-marker--active',_0x42a2f9));}}};}_0x2f78c6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x33fa0e),_0x2f78c6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x33fa0e),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x58dd97(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5bb99e,_0x376a90,_0x374ef8)=>{_0x374ef8['options']['showSuggestionHighlights']&&_0x58dd97({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5bb99e,_0x376a90,_0x374ef8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x372817,_0x2fdde3,_0x4bdd12)=>{const {type:_0x913c8d,id:_0x496037}=_0x2f78c6['_splitMarkerName'](_0x2fdde3['markerName']),_0x747276=_0x2f78c6['getSuggestion'](_0x496037),_0x4af9fe=_0x747276['data'];if('formatBlock'!=_0x747276['type']||!_0x4af9fe||'setTableColumnHeader'!=_0x4af9fe['commandName'])return;const _0x1c8ad9=_0x4bdd12['mapper']['markerNameToElements'](_0x2fdde3['markerName']);if(_0x1c8ad9){for(const _0x3a11fd of _0x1c8ad9)_0x4bdd12['writer']['removeClass']('ck-suggestion-marker-'+_0x913c8d,_0x3a11fd),_0x4bdd12['writer']['removeClass']('ck-suggestion-marker--active',_0x3a11fd),_0x4bdd12['writer']['removeAttribute']('data-suggestion',_0x3a11fd),_0x4bdd12['mapper']['unbindElementFromMarkerName'](_0x3a11fd,_0x2fdde3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13a7d4=this['editor'],_0x4270be=_0x13a7d4['locale'];function _0xdece43(_0x1d3756){return{'type':'format','content':o(_0x4270be,'*Format:*\x20%0',_0x1d3756)};}_0x13a7d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d52e8=>{if('formatBlock'!=_0x1d52e8['type'])return;const {data:_0x5ac6f0}=_0x1d52e8;if(_0x5ac6f0){if('setTableRowHeader'==_0x5ac6f0['commandName']){const _0x55aae3=_0x5ac6f0['commandParams'][0x0]['forceValue'];return _0xdece43(o(_0x4270be,_0x55aae3?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5ac6f0['commandName']){const _0xccd4fd=_0x5ac6f0['commandParams'][0x0]['forceValue'];return _0xdece43(o(_0x4270be,_0xccd4fd?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x13e452{['afterInit'](){const _0x111dfb=this['editor'],_0x588811=_0x111dfb['locale'],_0x2fde60=_0x111dfb['plugins']['get']('TrackChangesEditing');function _0x50d6da(_0x29e203){return{'type':'format','content':''+o(_0x588811,'*Set\x20table\x20type:*\x20%0',_0x29e203)};}_0x111dfb['plugins']['has']('TableLayout')&&(_0x2fde60['enableCommand']('insertTableLayout'),_0x2fde60['enableDefaultAttributesIntegration']('tableType'),_0x2fde60['registerBlockAttribute']('tableType'),_0x2fde60['descriptionFactory']['registerElementLabel'](_0x1ed74f=>_0x1ed74f['is']('element','table')&&'layout'===_0x1ed74f['getAttribute']('tableType'),_0x51e0fc=>o(_0x588811,'ELEMENT_LAYOUT_TABLE',_0x51e0fc)),_0x2fde60['descriptionFactory']['registerDescriptionCallback'](_0x4dc2ab=>{const {data:_0xc6305d}=_0x4dc2ab;if(_0xc6305d&&'tableType'==_0xc6305d['key'])switch(_0xc6305d['newValue']){case'layout':return _0x50d6da(o(_0x588811,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x50d6da(o(_0x588811,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x17b1b7=>[_0x17b1b7,null]));class Nt extends _0x13e452{static get['requires'](){return[At];}['afterInit'](){const _0x58017c=this['editor'];if(!_0x58017c['plugins']['has']('TableClipboard'))return;const _0x447e07=_0x58017c['plugins']['get']('TrackChangesEditing'),_0x59bb2a=_0x58017c['plugins']['get']('TableUtils'),_0x168536=_0x58017c['plugins']['get'](At),_0x2defda=_0x58017c['plugins']['get']('TableClipboard'),_0x58535d=_0x58017c['plugins']['get']('TableSelection'),_0x3e32f2=_0x58017c['plugins']['get'](_0x283213);_0x168536['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x58017c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x58017c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x496c2b=null,_0x39b665=!0x1;_0x3e32f2['on']('contentInsertion',(_0x5cbc90,_0x38e0b3)=>{_0x39b665='paste'===_0x38e0b3['method'];}),_0x58017c['model']['on']('insertContent',(_0x3c2efb,_0x5b1c46)=>{if(!_0x39b665&&null===_0x58535d['getSelectedTableCells']())return;const [_0x5eb20d,_0x5011b0]=_0x5b1c46,_0x378945=_0x5b1c46[_0x5b1c46['length']-0x1];_0x378945&&_0x378945['forceDefaultExecution']||_0x447e07['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x6048ba,_0x1d3e1b,_0x4378b2,_0x5b9de9,_0x52be0e){if(_0x1d3e1b&&!_0x1d3e1b['is']('documentSelection'))return!0x1;const _0x4d3630=_0x52be0e['getTableIfOnlyTableInContent'](_0x6048ba,_0x4378b2);if(!_0x4d3630||!Ue(_0x4d3630,void 0x0,_0x5b9de9))return!0x1;const _0x4c37d3=_0x5b9de9['getSelectionAffectedTableCells'](_0x4378b2['document']['selection']);if(!_0x4c37d3['length'])return!0x1;const _0x3c5270=_0x4c37d3[0x0]['findAncestor']('table'),_0x2f68ca=_0x5b9de9['getRowIndexes'](_0x4c37d3),_0x2b4f52=_0x5b9de9['getColumnIndexes'](_0x4c37d3),_0x3617b1={'startRow':_0x2f68ca['first'],'endRow':_0x2f68ca['last'],'startColumn':_0x2b4f52['first'],'endColumn':_0x2b4f52['last']};return 0x1==_0x4c37d3['length']&&(_0x3617b1['endRow']+=_0x5b9de9['getRows'](_0x4d3630)-0x1,_0x3617b1['endColumn']+=_0x5b9de9['getColumns'](_0x4d3630)-0x1),Ue(_0x3c5270,_0x3617b1,_0x5b9de9);}(_0x5eb20d,_0x5011b0,_0x58017c['model'],_0x59bb2a,_0x2defda)&&(_0x3c2efb['stop'](),_0x496c2b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x58017c['model']['change'](()=>{_0x58017c['model']['insertContent'](_0x5b1c46[0x0],_0x5b1c46[0x1],_0x5b1c46[0x2],{'forceDefaultExecution':!0x0});const _0x2c7162=_0x22223a(),{rowInsertionRanges:_0x18c432,columnInsertionRanges:_0x131f36,insertionRanges:_0x1f2662,deletionRanges:_0x2f70ed,cells:_0x12f8f3}=_0x496c2b;_0x18c432['length']&&_0x447e07['markMultiRangeInsertion'](_0x18c432,'tablePasteRow',{'tablePasteChainId':_0x2c7162}),_0x131f36['length']&&_0x447e07['markMultiRangeInsertion'](_0x131f36,'tablePasteColumn',{'tablePasteChainId':_0x2c7162}),_0x1f2662['length']&&(_0x447e07['markMultiRangeInsertion'](_0x1f2662,'tablePaste',{'tablePasteChainId':_0x2c7162,'skipNestingCheck':!0x0}),_0x1f2662['forEach'](_0xcec987=>_0xcec987['detach']?.())),_0x2f70ed['length']&&(_0x447e07['markMultiRangeDeletion'](_0x2f70ed,'tablePaste',{'tablePasteChainId':_0x2c7162,'skipNestingCheck':!0x0}),_0x2f70ed['forEach'](_0x3d26e0=>_0x3d26e0['detach']?.()));const _0x780e60=_0x447e07['markMultiRangeBlockFormat'](_0x12f8f3['map'](({element:_0x2b655b})=>_0x2b655b),{'formatGroupId':_0x22223a()},[],'tablePasteCell',{'tablePasteChainId':_0x2c7162});if(_0x780e60){const _0x52d285=_0x780e60['getMarkers'](),_0x44ad02=[];for(const {element:_0x53e7b2,attributes:_0x1737d2}of _0x12f8f3){if(!_0x1737d2)continue;const _0x2410a7=_0x58017c['model']['createRangeOn'](_0x53e7b2),_0x53fed6=_0x52d285['find'](_0x47c358=>_0x47c358['getRange']()['isEqual'](_0x2410a7));_0x53fed6&&_0x44ad02['push']([_0x53fed6['name'],_0x1737d2]);}_0x44ad02['length']&&_0x780e60['setAttribute']('markerAttributes',Object['fromEntries'](_0x44ad02));}_0x496c2b=null;}));},{'priority':_0x17dc3a['high']+0xa}),_0x3e32f2['on']('contentInsertion',()=>{_0x39b665=!0x1;},{'priority':'lowest'}),_0x58017c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5a24fe,_0x3bd29e)=>{const [_0x1d0ca6,_0x5a8f4c,,_0x346045]=_0x3bd29e;if(!_0x496c2b)return;_0x5a24fe['stop']();const _0x4d5763=_0x1d0ca6['cell'],_0x3b761a=_0x5a8f4c,_0x54b95d=Oe(_0x4d5763),_0x2a49b2=Oe(_0x3b761a);_0x5a24fe['return']=_0x4d5763;let _0x536345=null,_0x27e0fc=null;if(_0x2a49b2||_0x54b95d){if(_0x54b95d&&!_0x2a49b2){_0x346045['remove'](_0x4d5763['getChild'](0x0));for(const _0xb8c4e1 of Array['from'](_0x3b761a['getChildren']()))_0x346045['insert'](_0xb8c4e1,_0x4d5763,'end');const _0x5a36e1=_0x496c2b['rowInsertionIndexes']['includes'](_0x1d0ca6['row']),_0x2ef6ad=_0x496c2b['columnInsertionIndexes']['includes'](_0x1d0ca6['column']);_0x5a36e1||_0x2ef6ad||(_0x536345=_0x158d49['fromRange'](_0x346045['createRangeIn'](_0x4d5763)));}else _0x2a49b2&&!_0x54b95d&&(_0x27e0fc=_0x346045['createRangeIn'](_0x4d5763));}else{const _0x574d77=_0x346045['createElement']('tableCellSuggestion'),_0x59bc29=_0x346045['createElement']('tableCellSuggestion');_0x346045['wrap'](_0x346045['createRangeIn'](_0x4d5763),_0x59bc29),_0x346045['insert'](_0x574d77,_0x4d5763,0x0);for(const _0x59a6e1 of Array['from'](_0x3b761a['getChildren']()))_0x346045['insert'](_0x59a6e1,_0x574d77,'end');_0x536345=_0x158d49['fromRange'](_0x346045['createRangeOn'](_0x574d77)),_0x27e0fc=_0x158d49['fromRange'](_0x346045['createRangeOn'](_0x59bc29));}const _0x304c0e=Array['from'](_0x3b761a['getAttributes']())['filter'](([_0x51793b])=>Be['includes'](_0x51793b));_0x496c2b['cells']['push']({'element':_0x4d5763,'attributes':_0x304c0e['length']?Object['fromEntries'](_0x304c0e):null}),_0x536345&&_0x496c2b['insertionRanges']['push'](_0x536345),_0x27e0fc&&_0x496c2b['deletionRanges']['push'](_0x27e0fc);},{'priority':'high'}),_0x59bb2a['on']('insertColumns',(_0x237ddb,_0x491366)=>{const [_0x20dfbf,_0x3dede3={}]=_0x491366;if(!_0x496c2b)return;const _0x30cd9f=_0x3dede3['at']||0x0,_0x53a19a=_0x3dede3['columns']||0x1;_0x496c2b['columnInsertionIndexes']=new Array(_0x53a19a)['fill'](_0x30cd9f)['map']((_0x260e81,_0x5cc34a)=>_0x260e81+_0x5cc34a);for(const {cell:_0x1f1d4b}of _0x59bb2a['createTableWalker'](_0x20dfbf,{'startColumn':_0x30cd9f,'endColumn':_0x30cd9f+_0x53a19a-0x1}))_0x496c2b['columnInsertionRanges']['push'](_0x58017c['model']['createRangeOn'](_0x1f1d4b));},{'priority':'low'}),_0x59bb2a['on']('insertRows',(_0x472996,_0xb6c10a)=>{const [_0x693c2d,_0x344db5={}]=_0xb6c10a;if(!_0x496c2b)return;const _0x420a65=_0x344db5['at']||0x0,_0x4d05d5=_0x344db5['rows']||0x1;_0x496c2b['rowInsertionIndexes']=new Array(_0x4d05d5)['fill'](_0x420a65)['map']((_0x27ebbc,_0x26b793)=>_0x27ebbc+_0x26b793);for(const {cell:_0x2fb197}of _0x59bb2a['createTableWalker'](_0x693c2d,{'startRow':_0x420a65,'endRow':_0x420a65+_0x4d05d5-0x1}))_0x496c2b['rowInsertionRanges']['push'](_0x58017c['model']['createRangeOn'](_0x2fb197));},{'priority':'low'}),_0x447e07['descriptionFactory']['registerDescriptionCallback'](_0x416ca2=>{if(_0x416ca2['subType']&&_0x416ca2['subType']['startsWith']('tablePaste'))return _0x416ca2['previous']?{}:{'type':'insertion','content':o(_0x58017c['locale'],'*Replace\x20table\x20cells*')};});const _0x563dff=()=>!0x1;for(const _0x3b08d9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x447e07['_suggestionFactory']['registerCustomCallback']('insertion',_0x3b08d9,'join',_0x563dff),_0x447e07['_suggestionFactory']['registerCustomCallback']('deletion',_0x3b08d9,'join',_0x563dff),_0x447e07['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3b08d9,'join',_0x563dff);_0x447e07['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x563dff),_0x447e07['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x438356,_0x971b23,_0x576cce)=>{const _0x1b41a5=_0x438356['map'](_0x30a14d=>_0x30a14d['getContainedElement']())['filter'](_0x399249=>_0x399249),_0x124a5b=new Map(_0x1b41a5['map'](_0x2e1571=>[_0x2e1571,null]));if(_0x496c2b){for(const {element:_0x4b4a81,attributes:_0x3e0e52}of _0x496c2b['cells'])_0x3e0e52&&_0x124a5b['set'](_0x4b4a81,_0x3e0e52);}else{if(_0x576cce&&_0x576cce['markerAttributes'])for(const [_0x8ce41f,_0x4ac3ea]of Object['entries'](_0x576cce['markerAttributes'])){const _0x4a3b26=_0x58017c['model']['markers']['get'](_0x8ce41f),_0x4454d7=_0x4a3b26?_0x4a3b26['getRange']()['getContainedElement']():null;_0x4454d7&&_0x124a5b['set'](_0x4454d7,_0x4ac3ea);}}_0x58017c['model']['change'](_0x5cd129=>{for(const [_0x319f12,_0x31c275]of _0x124a5b)_0x5cd129['setAttributes']({...xe,..._0x31c275},_0x319f12);});});const _0x29e944=(_0x522687,_0x9c6b07)=>{_0x447e07['_suggestionFactory']['registerCustomCallback'](_0x522687,'tablePaste',_0x9c6b07,(_0x226372,_0x2ee454,_0x17ec8a)=>{_0x58017c['model']['change'](_0x158ed0=>{const _0x363a5d=[];for(const _0x229cba of _0x226372){const _0x49e265=_0x229cba['start']['nodeAfter'];_0x49e265['is']('element','tableCellSuggestion')&&_0x363a5d['push'](_0x49e265);}_0x447e07['_suggestionFactory']['getSuggestionCallback'](_0x522687,null,_0x9c6b07)(_0x226372,_0x2ee454,_0x17ec8a);for(const _0x111b1c of _0x363a5d)'$graveyard'!=_0x111b1c['root']['rootName']&&_0x158ed0['unwrap'](_0x111b1c);});});};_0x29e944('insertion','accept'),_0x29e944('insertion','discard'),_0x29e944('deletion','accept'),_0x29e944('deletion','discard'),_0x447e07['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x22d11c=>{const _0x5e8113=_0x22d11c['map'](_0x1b2ac3=>_0x1b2ac3['getContainedElement']()),_0x2eca03=_0x5e8113[0x0]['findAncestor']('table'),{minRow:_0x3fa74d,maxRow:_0x127cff}=_0x168536['_getCoordsForCells'](_0x5e8113);_0x59bb2a['removeRows'](_0x2eca03,{'at':_0x3fa74d,'rows':_0x127cff-_0x3fa74d+0x1});}),_0x447e07['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x581607=>{const _0x563c99=_0x581607['map'](_0x38eb34=>_0x38eb34['getContainedElement']()),_0x3d1d98=_0x563c99[0x0]['findAncestor']('table'),{minColumn:_0x583299,maxColumn:_0x4a4dcb}=_0x168536['_getCoordsForCells'](_0x563c99);_0x59bb2a['removeColumns'](_0x3d1d98,{'at':_0x583299,'columns':_0x4a4dcb-_0x583299+0x1});});const _0x8d8bc7=(_0x4cfb23,_0x5c4129)=>{if(!_0x5c4129['subType']||!_0x5c4129['subType']['startsWith']('tablePaste'))return;const _0x1061f1=_0x5c4129['attributes']['tablePasteChainId'],_0x180f1a=_0x447e07['getSuggestions']()['filter'](_0x34e01b=>_0x34e01b['isInContent']&&_0x34e01b['attributes']&&_0x34e01b['attributes']['tablePasteChainId']==_0x1061f1);_0x180f1a['length']&&_0x5c4129['getAllAdjacentSuggestions']()['length']!=_0x180f1a['length']&&_0x180f1a['reduce']((_0x190d62,_0x401242)=>(_0x190d62['next']=_0x401242,_0x401242['previous']=_0x190d62,_0x401242));};function _0x5e23b8(_0xd99bc4,_0x57a4b7=!0x0){const {id:_0x4cd0cf,authorId:_0x19dbf8}=_0x447e07['_splitMarkerName'](_0xd99bc4['markerName']),_0x5b6523=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1838a6=_0x447e07['activeMarkers']['includes'](_0xd99bc4['markerName']);return _0x1838a6&&_0x5b6523['push']('ck-suggestion-marker--active'),{'classes':_0x5b6523,'attributes':{'data-suggestion':_0x4cd0cf,'data-author-id':_0x19dbf8},'priority':_0x1838a6&&_0x57a4b7?0xbc2:0xbb8};}_0x447e07['on']('suggestionLoaded',_0x8d8bc7,{'priority':'high'}),_0x447e07['on']('suggestionUnloaded',_0x8d8bc7,{'priority':'high'}),_0x58017c['model']['document']['registerPostFixer'](()=>{let _0x46de6b=!0x1;const _0x44a3cf=Array['from'](_0x58017c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x597b1b,data:_0x37b3d2}of _0x44a3cf){const {group:_0x4d8ce6,type:_0x19f898,id:_0x18a1cb}=_0x447e07['_splitMarkerName'](_0x597b1b);if('suggestion'!=_0x4d8ce6||'deletion'!=_0x19f898||_0x37b3d2['oldRange'])continue;if(!_0x447e07['hasSuggestion'](_0x18a1cb))continue;const _0x4639bc=_0x447e07['getSuggestion'](_0x18a1cb)['getRanges'](),_0x393c38=_0x58017c['plugins']['get']('Users')['me'];for(const _0x1c3f6 of _0x447e07['getSuggestions']()){if(!_0x1c3f6['isInContent']||_0x1c3f6['author']!=_0x393c38)continue;if('formatBlock'!=_0x1c3f6['type']||'tablePasteCell'!=_0x1c3f6['subType'])continue;if(_0x1c3f6['getRanges']()['every'](_0x3b64cc=>_0x4639bc['some'](_0x208f56=>_0x208f56['containsRange'](_0x3b64cc,!0x0)))){for(const _0x452bb0 of _0x1c3f6['getAllAdjacentSuggestions']())_0x452bb0['isInContent']&&(_0x452bb0['discard'](),_0x46de6b=!0x0);}}}return _0x46de6b;}),_0x58017c['model']['document']['registerPostFixer'](_0x3e7e8e=>{const _0x1521a6=_0x58017c['commands']['get']('redo');if(!_0x1521a6||!_0x1521a6['_createdBatches']['has'](_0x3e7e8e['batch']))return!0x1;let _0x2d051f=!0x1;const _0x5ced5f=_0x58017c['plugins']['get']('Users')['me'],_0x4ce15f=_0x58017c['model']['document']['differ']['getChanges'](),_0x224872=Array['from'](_0x58017c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x38efdc,data:_0x405e90})=>{const {group:_0x1e0e2b,subType:_0x27e420,authorId:_0xd2f231}=_0x447e07['_splitMarkerName'](_0x38efdc);return'suggestion'==_0x1e0e2b&&'tablePaste'==_0x27e420&&_0xd2f231==_0x5ced5f['id']&&!_0x405e90['oldRange'];});for(const _0x15f8d2 of _0x4ce15f){if('insert'!=_0x15f8d2['type']||'tableCellSuggestion'!=_0x15f8d2['name']||0x1!=_0x15f8d2['length'])continue;const _0x2571e8=_0x3e7e8e['createRange'](_0x15f8d2['position'],_0x15f8d2['position']['getShiftedBy'](0x1));if(!_0x224872['find'](({data:_0x4c7adb})=>_0x4c7adb['newRange']['isEqual'](_0x2571e8))){for(const {name:_0x2709cc,data:_0x56e3ed}of _0x224872)if(_0x2571e8['containsRange'](_0x56e3ed['newRange'])){_0x3e7e8e['updateMarker'](_0x2709cc,{'range':_0x2571e8}),_0x2d051f=!0x0;break;}}}return _0x2d051f;}),_0x58017c['model']['document']['registerPostFixer'](_0x37983f=>{let _0x4b69cb=!0x1;const _0x387f8b=_0x58017c['plugins']['get']('Users')['me'],_0x2f03f4=_0x447e07['getSuggestions']()['filter'](_0x2f2abd=>_0x2f2abd['isInContent']&&_0x2f2abd['author']==_0x387f8b),_0x15970f=new Set(),_0x2b7478=new Set();for(const _0x241739 of _0x2f03f4)if('tablePaste'==_0x241739['subType'])for(const _0x445079 of _0x241739['getMarkers']()){const _0x194a0b=_0x445079['getRange']()['getContainedElement']();if(_0x194a0b){if(_0x194a0b['is']('element','tableCellSuggestion')&&Oe(_0x194a0b)){_0x241739['removeMarker'](_0x445079['name']),_0x15970f['add'](_0x194a0b),_0x4b69cb=!0x0;const _0x45ef20=_0x194a0b['nextSibling'],_0x190313=_0x194a0b['previousSibling'],_0x27cf19=_0x45ef20&&_0x45ef20['is']('element','tableCellSuggestion'),_0x28e1f0=_0x190313&&_0x190313['is']('element','tableCellSuggestion');_0x27cf19&&!_0x15970f['has'](_0x45ef20)&&_0x2b7478['add'](_0x45ef20),_0x28e1f0&&!_0x15970f['has'](_0x190313)&&_0x2b7478['add'](_0x190313);}else _0x194a0b['is']('element','paragraph')&&_0x194a0b['isEmpty']&&(_0x241739['removeMarker'](_0x445079['name']),_0x4b69cb=!0x0);}}else{if('tablePasteCell'==_0x241739['subType']){if(!_0x241739['attributes']||!_0x241739['attributes']['tablePasteChainId'])continue;const _0x10a908=_0x241739['attributes']['markerAttributes'];if(_0x10a908&&Object['keys'](_0x10a908)['length'])continue;const _0x12566b=_0x241739['attributes']['tablePasteChainId'];let _0x110c06=!0x0,_0x579d6a=!0x0;for(const _0x20b49b of _0x2f03f4)if(_0x20b49b['subType']&&_0x20b49b['subType']['startsWith']('tablePaste')){if(!_0x20b49b['attributes']['tablePasteChainId']){_0x579d6a=!0x1;break;}if(_0x20b49b['id']!=_0x241739['id']&&_0x20b49b['attributes']['tablePasteChainId']==_0x12566b){_0x110c06=!0x1;break;}}_0x579d6a&&_0x110c06&&(_0x241739['removeMarkers'](),_0x4b69cb=!0x0);}}for(const _0x443f19 of _0x15970f)_0x37983f['remove'](_0x443f19);for(const _0x3e5c8c of _0x2b7478)_0x37983f['unwrap'](_0x3e5c8c);return _0x4b69cb;}),_0x58017c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x33d5a5=>_0x5e23b8(_0x33d5a5),'converterPriority':'high'}),_0x58017c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x331874,_0x4717e9)=>_0x4717e9['options']['showSuggestionHighlights']?_0x5e23b8(_0x331874,!0x1):null,'converterPriority':'high'});const _0x2b2c1b=_0x58017c['editing']['view'];this['listenTo'](_0x2b2c1b['document'],'clipboardOutput',(_0x38e7a5,_0x431b9a)=>{const _0x235aaa=[];for(const _0x24a30d of _0x2b2c1b['createRangeIn'](_0x431b9a['content'])['getItems']())_0x24a30d['is']('element','suggestion-td')&&_0x235aaa['push'](_0x24a30d);_0x2b2c1b['change'](_0x3f6533=>{for(const _0x244638 of _0x235aaa)_0x3f6533['move'](_0x3f6533['createRangeIn'](_0x244638),_0x3f6533['createPositionBefore'](_0x244638)),_0x3f6533['remove'](_0x244638);});});}}function Oe(_0xf42be9){if(_0xf42be9['isEmpty'])return!0x0;const _0x225e7a=_0xf42be9['getChild'](0x0);return _0x225e7a['is']('element','paragraph')&&_0x225e7a['isEmpty'];}function Ue(_0x5aa429,_0x43da73={},_0x520aab){for(const {isAnchor:_0x5df827,cellHeight:_0x4f2e69,cellWidth:_0x1b0cf3}of _0x520aab['createTableWalker'](_0x5aa429,{'includeAllSlots':!0x0,..._0x43da73}))if(!_0x5df827||0x1!=_0x4f2e69||0x1!=_0x1b0cf3)return!0x1;return!0x0;}class Dt extends _0x13e452{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1a655c=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a655c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1a655c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1a655c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a655c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1a655c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1a655c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x292b75,_0x3d65d0){const _0x53601b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3217e6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x57c9f1=_0x3d65d0['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2a1b29=_0x3217e6['getColumnGroupElement'](_0x57c9f1);let _0x5d8cdb=_0x2a1b29?_0x3217e6['getTableColumnsWidths'](_0x2a1b29):null,_0x554627=_0x57c9f1['getAttribute']('tableWidth')||null;const _0x426653=_0x3d65d0['tableWidth']||_0x554627,_0x3103b3=_0x3d65d0['columnWidths']||_0x5d8cdb,_0x52a9dd=this['editor']['plugins']['get']('Users')['me'];for(const _0x146708 of _0x53601b['getSuggestions']()){const _0x48838d=_0x146708['getContainedElement']();if('resizeTable'===_0x146708['subType']&&_0x48838d===_0x57c9f1){_0x146708['author']!==_0x52a9dd&&_0x146708['discard']();const _0x45ea0a=_0x146708['data']['commandParams'];_0x554627=_0x45ea0a[0x0]['tableWidth'],_0x5d8cdb=_0x45ea0a[0x0]['columnWidths'];break;}}_0x292b75({'table':_0x57c9f1,'tableWidth':_0x426653,'columnWidths':_0x3103b3}),_0x53601b['markBlockFormat'](_0x57c9f1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x554627,'columnWidths':_0x5d8cdb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x110a92){if('formatBlock'!=_0x110a92['type']&&'formatInline'!=_0x110a92['type'])return;const {data:_0x28a662}=_0x110a92;if(_0x28a662&&'resizeTable'===_0x28a662['formatGroupId']){const _0x6cc2b6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x6cc2b6)};}}}class Mt extends _0x13e452{['afterInit'](){const _0x61a05a=this['editor'];_0x61a05a['plugins']['has']('Template')&&_0x61a05a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x13e452{['afterInit'](){const _0x5ce780=this['editor'];if(!_0x5ce780['commands']['get']('insertTableOfContents'))return;_0x5ce780['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4cbad3=_0x5ce780['plugins']['get']('TrackChangesEditing'),_0x3f20b5=_0x5ce780['locale'];_0x4cbad3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4fd963=>o(_0x3f20b5,'ELEMENT_TABLE_OF_CONTENTS',_0x4fd963));}}class Bt extends _0x13e452{['afterInit'](){const _0x2ac982=this['editor'];if(!_0x2ac982['plugins']['has']('Title'))return;const _0x2d3cb0=_0x2ac982['plugins']['get']('TrackChangesEditing');_0x2d3cb0['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2ac982['locale'],'ELEMENT_TITLE')),_0x2ac982['model']['document']['registerPostFixer'](_0x56939c=>{let _0x25ecd9=!0x1;const _0x5cd7fa=Array['from'](_0x2ac982['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24d118,data:_0x31b688}of _0x5cd7fa){const {group:_0x196b02}=_0x2d3cb0['_splitMarkerName'](_0x24d118);if('suggestion'!==_0x196b02||!_0x31b688['newRange'])continue;const _0x218f73=_0x31b688['newRange'],_0x35a498=_0x218f73['end']['nodeBefore'];if(!_0x35a498||!_0x35a498['is']('element','title-content'))continue;if(!_0x218f73['start']['isTouching'](_0x218f73['end']))continue;const _0x30833f=_0x2ac982['model']['schema']['getNearestSelectionRange'](_0x218f73['end'],'forward');if(_0x30833f&&_0x30833f['isCollapsed']){const _0x3f7340=_0x56939c['createRange'](_0x218f73['start'],_0x30833f['start']);_0x3f7340['isEqual'](_0x218f73)||(_0x56939c['updateMarker'](_0x24d118,{'range':_0x3f7340}),_0x25ecd9=!0x0);}_0x25ecd9||(_0x56939c['removeMarker'](_0x24d118),_0x25ecd9=!0x0);}return _0x25ecd9;});}}class Tt extends _0x13e452{['afterInit'](){const _0x4b800f=this['editor'],_0x5dc800=_0x4b800f['plugins']['get']('TrackChangesEditing');_0x4b800f['plugins']['has']('Uploadcare')&&(_0x5dc800['enableCommand']('uploadcare'),_0x4b800f['plugins']['has']('UploadcareImageEdit')&&(_0x5dc800['enableCommand']('uploadcareImageEdit'),_0x5dc800['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5dc800['registerBlockAttribute']('uploadcareImageId'),_0x5dc800['descriptionFactory']['registerDescriptionCallback'](_0x4f3b91=>{if('attribute'!=_0x4f3b91['type'])return;const {data:_0x1de1e9}=_0x4f3b91;return _0x1de1e9&&'uploadcareImageId'==_0x1de1e9['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x13e452{['afterInit'](){const _0x512102=this['editor'],_0x2322ef=_0x512102['plugins']['get']('TrackChangesEditing');_0x512102['plugins']['has']('UndoEditing')&&(_0x2322ef['enableCommand']('undo'),_0x2322ef['enableCommand']('redo'));}}class Ot extends _0x13e452{static get['requires'](){return[At];}['afterInit'](){const _0x1b6b92=this['editor'];if(!_0x1b6b92['plugins']['has']('TableCaptionEditing'))return;_0x1b6b92['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x13e452{['tableProperties'];['tableCellProperties'];constructor(_0x7c4ef4){super(_0x7c4ef4),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x142df1=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1d8d23 of this['tableProperties'])_0x142df1['enableCommand'](_0x1d8d23,(_0x1015ec,_0x3da41a)=>{const _0x534772=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1d8d23,[_0x534772],this['tableProperties'],'tableProperties',_0x1015ec,_0x3da41a);});_0x142df1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x142df1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x142df1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2fddf0,_0xe285d)=>this['handleDiscardAction'](this['tableProperties'],_0x2fddf0,_0xe285d)),_0x142df1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5081da of this['tableCellProperties'])_0x142df1['enableCommand'](_0x5081da,(_0x14d38c,_0x5958ef)=>{const _0x23da8d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5081da,_0x23da8d,this['tableCellProperties'],'tableCellProperties',_0x14d38c,_0x5958ef);});_0x142df1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x142df1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x142df1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x21e084,_0x424651)=>this['handleDiscardAction'](this['tableCellProperties'],_0x21e084,_0x424651)),_0x142df1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x142df1['descriptionFactory']['registerDescriptionCallback'](_0x11b4eb=>this['handleSuggestionDescription'](_0x11b4eb)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1ae053,_0x3b7b6d,_0x1f7474,_0x390e2e,_0x59e3dc,_0x3b5097){const _0x5b495c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3b5097['batch'],()=>{for(const _0x403c34 of _0x3b7b6d){if(this['_getSuggestion'](_0x403c34,_0x390e2e))_0x59e3dc(_0x3b5097);else{const _0x12b4e9={};for(const _0x56a2cf of _0x1f7474){const _0x290693=_0x403c34['getAttribute'](_0x56a2cf);void 0x0!==_0x290693&&(_0x12b4e9[_0x56a2cf]=_0x290693);}_0x59e3dc(_0x3b5097),_0x5b495c['markBlockFormat'](_0x403c34,{'commandParams':[_0x12b4e9]},[],_0x390e2e);}}});}['handleDiscardAction'](_0x56052a,_0x6c3c9f,_0x5849fa){const _0x3e6735=_0x6c3c9f[0x0]['start']['nodeAfter'],_0x141bb4=_0x5849fa['commandParams'][0x0];this['editor']['model']['change'](_0x3f582d=>{for(const _0x1c3961 of _0x56052a)void 0x0!==_0x141bb4[_0x1c3961]?_0x3f582d['setAttribute'](_0x1c3961,_0x141bb4[_0x1c3961],_0x3e6735):_0x3f582d['removeAttribute'](_0x1c3961,_0x3e6735);});}['handleSuggestionDescription'](_0x1e810f){if(_0x1e810f['data'])switch(_0x1e810f['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'](_0x316fd8,_0xf0a357){const _0x4c007f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x97133e of _0x4c007f['getSuggestions']({'skipNotAttached':!0x0})){const _0x591002=_0x97133e['getContainedElement']();if(_0x97133e['subType']===_0xf0a357&&_0x591002===_0x316fd8)return _0x97133e;}return null;}['_registerTablePropertiesAttributes'](){const _0x184332=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f749b=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5e5a84 of _0x1f749b){const _0x197c7e=_0x5e5a84['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x184332['registerBlockAttribute'](_0x5e5a84),_0x184332['descriptionFactory']['registerAttributeLabel'](_0x5e5a84,o(this['editor']['locale'],'FORMAT_'+_0x197c7e));}}}class Rt extends _0x13e452{['afterInit'](){const _0x229c07=this['editor'];if(!_0x229c07['plugins']['has']('LineHeight'))return;const _0x5e282a=_0x229c07['plugins']['get']('TrackChangesEditing'),_0x1b7e21=_0x229c07['locale'];_0x5e282a['enableDefaultAttributesIntegration']('lineHeight'),_0x5e282a['registerBlockAttribute']('lineHeight'),_0x5e282a['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1b7e21,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x13e452{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x56d1a,_0x377dde,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1da6b5){super(_0x1da6b5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5897f3,_0x241e6f,_0x95e2ae,_0x79dd1b)=>{this['_model']['change'](()=>{for(const _0x5c1000 of[..._0x79dd1b,..._0x95e2ae])this['_model']['markers']['has'](_0x5c1000)&&_0x1da6b5['editing']['reconvertMarker'](_0x5c1000);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1da6b5['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(),_0x1da6b5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1da6b5['config']['get']('trackChanges.trackFormatChanges'),_0x1da6b5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1da6b5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x1da6b5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1f2920=this['editor'],_0x20246f=(_0x30a732,_0x2170dc)=>{if('attribute'!=_0x30a732)return'ck-suggestion-marker-'+_0x30a732;const _0x10acb0=_0x2170dc['split']('|')[0x0];return this['_isBlockAttribute'](_0x10acb0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1f2920['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x768154=>{const {id:_0xcc34cf,authorId:_0x4dac25,type:_0x5d58fb,subType:_0x2f2407}=this['_splitMarkerName'](_0x768154['markerName']),_0x35e0c1=['ck-suggestion-marker',_0x20246f(_0x5d58fb,_0x2f2407)];let _0x55860b=0xbb8;return this['activeMarkers']['includes'](_0x768154['markerName'])&&(_0x35e0c1['push']('ck-suggestion-marker--active'),_0x55860b=0xbc2),'deletion'==_0x5d58fb&&(_0x55860b+=0x5),{'classes':_0x35e0c1,'attributes':{'data-suggestion':_0xcc34cf,'data-author-id':_0x4dac25},'priority':_0x55860b};}}),_0x1f2920['conversion']['for']('dataDowncast')['add'](_0x220349=>{_0x220349['on']('addMarker:suggestion',(_0x34e930,_0x3c4fe4,_0x508661)=>{if(!_0x508661['options']['showSuggestionHighlights'])return;const _0x271165=_0x3c4fe4['item'];if(!_0x271165)return;const _0x4725e0=_0x508661['mapper']['toViewElement'](_0x271165);_0x1f2920['model']['schema']['isObject'](_0x271165)&&_0x4725e0&&!_0x4725e0['getCustomProperty']('widget')&&_0x4725e0['is']('containerElement')&&_0xb90220(_0x4725e0,_0x508661['writer']);},{'priority':'high'});}),_0x1f2920['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x555965,_0x43db29)=>{if(!_0x43db29['options']['showSuggestionHighlights'])return null;const {id:_0x4bac54,authorId:_0x5c6db3,type:_0xe9371c,subType:_0x2fb173}=this['_splitMarkerName'](_0x555965['markerName']);return{'classes':['ck-suggestion-marker',_0x20246f(_0xe9371c,_0x2fb173)],'priority':0xbb8,'attributes':{'data-suggestion':_0x4bac54,'data-author-id':_0x5c6db3}};}});const _0x2bbe45=({showActiveMarkers:_0x58e107=!0x0,isAttributeSuggestion:_0x49d997=!0x1}={})=>(_0x238819,_0x1873c0,_0x4f49d0)=>{if(!_0x1873c0['item'])return;const {id:_0xbe5102,authorId:_0x3fa2d3}=this['_splitMarkerName'](_0x1873c0['markerName']);if(_0x49d997){const _0xbf810e=this['_suggestions']['get'](_0xbe5102),_0x5cd3f2=this['_getAttributeKey'](_0xbf810e);if(!this['_isBlockAttribute'](_0x5cd3f2))return;}if(_0x1873c0['item']['is']('selection'))return void _0x4f49d0['consumable']['consume'](_0x1873c0['item'],_0x238819['name']);const _0x59b732=_0x4f49d0['mapper']['toViewElement'](_0x1873c0['item']);if(_0x1873c0['item']['is']('element')&&_0x1f2920['model']['schema']['isBlock'](_0x1873c0['item'])&&!_0x59b732['getCustomProperty']('addHighlight')){_0x4f49d0['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x59b732),_0x4f49d0['writer']['setAttribute']('data-suggestion',_0xbe5102,_0x59b732),_0x4f49d0['writer']['setAttribute']('data-author-id',_0x3fa2d3,_0x59b732),_0x4f49d0['mapper']['bindElementToMarker'](_0x59b732,_0x1873c0['markerName']),_0x58e107&&(this['activeMarkers']['includes'](_0x1873c0['markerName'])?_0x4f49d0['writer']['addClass']('ck-suggestion-marker--active',_0x59b732):_0x4f49d0['writer']['removeClass']('ck-suggestion-marker--active',_0x59b732));for(const _0xae9572 of _0x1f2920['model']['createRangeIn'](_0x1873c0['item'])['getItems']())_0x4f49d0['consumable']['consume'](_0xae9572,_0x238819['name']);_0x4f49d0['consumable']['consume'](_0x1873c0['item'],_0x238819['name']);}};_0x1f2920['conversion']['for']('dataDowncast')['add'](_0x128443=>{_0x128443['on']('addMarker:suggestion:formatBlock',(_0x3e5d82,_0x396e1d,_0x404d98)=>{_0x404d98['options']['showSuggestionHighlights']&&_0x2bbe45({'showActiveMarkers':!0x1})(_0x3e5d82,_0x396e1d,_0x404d98);},{'priority':'highest'});}),_0x1f2920['conversion']['for']('dataDowncast')['add'](_0x2bb098=>{_0x2bb098['on']('addMarker:suggestion:attribute',(_0x3d0902,_0x31511f,_0x5f38d6)=>{_0x5f38d6['options']['showSuggestionHighlights']&&_0x2bbe45({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3d0902,_0x31511f,_0x5f38d6);},{'priority':'highest'});}),_0x1f2920['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x508604,_0x5ac2ee)=>{if(_0x5ac2ee['options']['showSuggestionHighlights']){const {id:_0x4ded8b,authorId:_0x6440af}=this['_splitMarkerName'](_0x508604);return _0x508604['includes'](':split')||_0x508604['includes'](':merge')?{'group':'suggestion','name':_0x508604['substr'](0xb),'attributes':{'data-suggestion':_0x4ded8b,'data-author-id':_0x6440af}}:null;}return{'group':'suggestion','name':_0x508604['substr'](0xb)};}}),_0x1f2920['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2f092e,{writer:_0x18d9b1})=>{let _0x59d80c='suggestion:'+_0x2f092e['getAttribute']('suggestion-type')+':'+_0x2f092e['getAttribute']('id');return _0x2f092e['getAttribute']('marker-count')&&(_0x59d80c+=':'+_0x2f092e['getAttribute']('marker-count')),_0x18d9b1['createElement']('$marker',{'data-name':_0x59d80c});}}),_0x1f2920['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1f2920['conversion']['for']('editingDowncast')['add'](_0x4cf59a=>{_0x4cf59a['on']('addMarker:suggestion:formatBlock',_0x2bbe45(),{'priority':'high'});}),_0x1f2920['conversion']['for']('editingDowncast')['add'](_0x3c566a=>{_0x3c566a['on']('addMarker:suggestion:attribute',_0x2bbe45({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1f2920['conversion']['for']('editingDowncast')['add'](_0x50ae8e=>{_0x50ae8e['on']('removeMarker:suggestion:formatBlock',(_0x2c7408,_0xb956cd,_0x36de69)=>{const _0xf85911=_0x36de69['mapper']['markerNameToElements'](_0xb956cd['markerName']);if(_0xf85911){for(const _0x54c7e5 of _0xf85911)_0x54c7e5['getCustomProperty']('addHighlight')||(_0x36de69['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x54c7e5),_0x36de69['writer']['removeAttribute']('data-suggestion',_0x54c7e5),_0x36de69['writer']['removeAttribute']('data-author-id',_0x54c7e5),_0x36de69['mapper']['unbindElementFromMarkerName'](_0x54c7e5,_0xb956cd['markerName']));}},{'priority':'high'});}),_0x1f2920['conversion']['for']('editingDowncast')['add'](_0x3d7da7=>{_0x3d7da7['on']('removeMarker:suggestion:attribute',(_0xffc550,_0x3bcc26,_0x45391f)=>{const _0x120981=_0x45391f['mapper']['markerNameToElements'](_0x3bcc26['markerName']);if(!_0x120981)return;const {id:_0x5ec6db}=this['_splitMarkerName'](_0x3bcc26['markerName']),_0x1ab85e=this['_suggestions']['get'](_0x5ec6db),_0x5c7400=this['_getAttributeKey'](_0x1ab85e);if(this['_isBlockAttribute'](_0x5c7400)){for(const _0x239ba1 of _0x120981)_0x239ba1['getCustomProperty']('addHighlight')||(_0x45391f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x239ba1),_0x45391f['writer']['removeAttribute']('data-suggestion',_0x239ba1),_0x45391f['writer']['removeAttribute']('data-author-id',_0x239ba1),_0x45391f['mapper']['unbindElementFromMarkerName'](_0x239ba1,_0x3bcc26['markerName']));}},{'priority':'high'});}),_0x1f2920['model']['document']['registerPostFixer'](_0x1d64ba=>{let _0x5cfa88=!0x1;const _0x56d0fb=Array['from'](_0x1f2920['model']['document']['differ']['getChangedMarkers']()),_0x31147f=new Set();for(const {name:_0x32393c,data:_0x49c6e1}of _0x56d0fb){const {group:_0x5052a6,type:_0x2a934b,subType:_0x1eade9,id:_0x4ca70d}=this['_splitMarkerName'](_0x32393c);if('suggestion'!==_0x5052a6)continue;const _0x5a3c15=this['_suggestions']['get'](_0x4ca70d);if(null!=_0x49c6e1['newRange']){'formatInline'==_0x2a934b&&(_0x5cfa88=_0x5cfa88||Gt(_0x49c6e1['newRange'],_0x32393c,_0x1d64ba,_0x1f2920['model']['schema']));const _0x4a38fc='attribute'==_0x2a934b&&this['_isBlockAttribute'](_0x1eade9['split']('|')[0x0]);if(_0x49c6e1['newRange']['isCollapsed']||'$graveyard'==_0x49c6e1['newRange']['root']['rootName']||'formatBlock'==_0x2a934b&&!Jt(_0x49c6e1['newRange'])||_0x4a38fc&&!Jt(_0x49c6e1['newRange'])||'deletion'==_0x2a934b&&!Kt(_0x49c6e1['newRange']))_0x1d64ba['removeMarker'](_0x32393c),_0x5cfa88=!0x0;else{if(!_0x5a3c15||!_0x5a3c15['isInContent'])continue;if(_0x49c6e1['newRange']&&_0x49c6e1['oldRange']&&_0x49c6e1['newRange']['isEqual'](_0x49c6e1['oldRange']))continue;_0x31147f['add'](_0x5a3c15);}}}return _0x31147f['size']>0x0&&(_0x5cfa88=!!this['_joinWithAdjacentSuggestions'](_0x31147f)||_0x5cfa88),_0x5cfa88;}),_0x1f2920['model']['document']['registerPostFixer'](_0x4f56c2=>{let _0x556e89=!0x1;for(const _0xf5a6dc of _0x1f2920['model']['document']['differ']['getChanges']())if('insert'==_0xf5a6dc['type'])for(const _0x1dcca4 of this['_suggestions']['values']()){if(_0x1dcca4['isMultiRange']||!_0x1dcca4['isInContent'])continue;const _0x41581e='formatBlock'==_0x1dcca4['type'],_0x5d3af2=this['_getAttributeKey'](_0x1dcca4),_0x1c81d1=_0x5d3af2&&this['_isBlockAttribute'](_0x5d3af2);if(!_0x41581e&&!_0x1c81d1)continue;const _0x2c6958=_0x1dcca4['getFirstRange']();if(_0x2c6958['start']['parent']!=_0x2c6958['end']['parent']&&!_0x2c6958['end']['isAtEnd']){const _0x276663=_0x1f2920['model']['createPositionAt'](_0x2c6958['start']['nodeAfter'],'end'),_0x37969a=_0x1f2920['model']['createRange'](_0x2c6958['start'],_0x276663);_0x4f56c2['updateMarker'](_0x1dcca4['getFirstMarker'](),{'range':_0x37969a}),_0x556e89=!0x0;}}return _0x556e89;}),_0x1f2920['model']['document']['registerPostFixer'](_0x242dd9=>this['_processAttributeChanges'](_0x242dd9)),_0x1f2920['model']['document']['registerPostFixer'](_0x3dd0ff=>!_0x3dd0ff['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3dd0ff)),_0x1f2920['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1f2920['model']['document']['on']('change:data',(_0x2df026,_0x396974)=>{if(!_0x396974['isLocal']||_0x396974['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x289679=_0x1f2920['model']['document']['differ']['getChanges']();if(0x0==_0x289679['length'])return;const _0x41ee81=[],_0x5a7613=_0x289679['filter'](_0x7b184f=>'attribute'==_0x7b184f['type']),_0x421290=_0x289679['filter'](_0x40e399=>'insert'==_0x40e399['type']&&'$text'!=_0x40e399['name']);for(const _0x3de79d of _0x5a7613)this['_isRegisteredAttribute'](_0x3de79d['attributeKey'])&&_0x41ee81['push']({'key':_0x3de79d['attributeKey'],'newValue':_0x3de79d['attributeNewValue'],'oldValue':_0x3de79d['attributeOldValue'],'range':Ht(_0x3de79d['range'],_0x1f2920['model'])});for(const _0x1198a8 of _0x421290){if('rename'!=_0x1198a8['action']&&'refresh'!=_0x1198a8['action'])continue;const _0x544c60=qt(_0x1198a8['position']['nodeAfter'],_0x1f2920['model']),_0x3b0436=_0x1198a8['before'];'rename'==_0x1198a8['action']&&_0x41ee81['push']({'key':m,'newValue':_0x1198a8['name'],'oldValue':_0x3b0436['name'],'range':_0x544c60});for(const [_0x40e52f,_0x329098]of _0x3b0436['attributes']){if(!this['_isRegisteredAttribute'](_0x40e52f))continue;const _0x45bc89=_0x1198a8['attributes']['get'](_0x40e52f);_0x329098!==_0x45bc89&&_0x41ee81['push']({'key':_0x40e52f,'newValue':_0x45bc89,'oldValue':_0x329098,'range':_0x544c60});}for(const [_0x3bb02b,_0x1e5017]of _0x1198a8['attributes'])this['_isRegisteredAttribute'](_0x3bb02b)&&(_0x3b0436['attributes']['has'](_0x3bb02b)||_0x41ee81['push']({'key':_0x3bb02b,'newValue':_0x1e5017,'oldValue':null,'range':_0x544c60}));}0x0!=_0x41ee81['length']&&_0x1f2920['model']['enqueueChange'](_0x396974,_0x2818d3=>{const _0x140ac6=_0x22223a();for(const {range:_0x4326b0,key:_0x3245cb,oldValue:_0x40aadf,newValue:_0x3d4785}of _0x41ee81)this['markAttributeChange'](_0x4326b0,_0x3245cb,_0x40aadf,_0x3d4785,{'groupId':_0x140ac6});this['_reduceExistingSuggestions'](_0x2818d3,_0x41ee81);});},{'priority':'lowest'}),_0x1f2920['model']['markers']['on']('update:suggestion',(_0x2ec6f8,_0x350fd9,_0x261396)=>{if(null==_0x261396){const {id:_0x16f02e}=this['_splitMarkerName'](_0x350fd9['name']),_0x48e4a0=this['_suggestions']['get'](_0x16f02e);_0x48e4a0&&_0x48e4a0['addMarkerName'](_0x350fd9['name']);}}),_0x1f2920['model']['document']['on']('change:data',()=>{const _0x355a62=Array['from'](_0x1f2920['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5234d4=>'suggestion'===this['_splitMarkerName'](_0x5234d4['name'])['group']);if(0x0===_0x355a62['length'])return;_0x355a62['sort']((_0x422261,_0xf50d2c)=>{const _0x15fade=_0x422261['data']['oldRange'],_0x3447f1=_0xf50d2c['data']['oldRange'];return null===_0x15fade&&null===_0x3447f1?0x0:null===_0x15fade&&null!==_0x3447f1?-0x1:null!==_0x15fade&&null===_0x3447f1?0x1:_0x15fade['start']['isBefore'](_0x3447f1['start'])?-0x1:0x1;});const _0x2adf2a=new Set(),_0x488c6f=new Set();for(const {name:_0x416349,data:_0x47023c}of _0x355a62){const {id:_0x3141c3}=this['_splitMarkerName'](_0x416349);if(null===_0x47023c['oldRange']){const _0x937a79=this['_handleNewSuggestionMarker'](_0x416349);_0x488c6f['add'](_0x937a79);}else{const _0x1703b6=this['_suggestions']['get'](_0x3141c3);null!==_0x47023c['newRange']||_0x1703b6['isInContent']?(_0x2adf2a['add'](_0x1703b6['head']),_0x488c6f['add'](_0x1703b6)):this['_removeSuggestion'](_0x1703b6);}}_0x488c6f['size']>0x0&&this['_refreshSuggestionsChain'](_0x488c6f);for(const _0x3e345a of _0x2adf2a)this['fire']('suggestionChanged',_0x3e345a);}),_0x1f2920['model']['on']('applyOperation',(_0x147daa,_0x4636be)=>{const _0xa5d0ee=_0x4636be[0x0];if(!this['_suggestions']['size'])return;if(!_0xa5d0ee['isDocumentOperation'])return;if(_0xa5d0ee['batch']['isUndo']||!_0xa5d0ee['batch']['isLocal'])return;let _0x3d227d,_0x102ca2;switch(_0xa5d0ee['type']){case'insert':_0x3d227d=_0x1f2920['model']['createPositionAt'](_0xa5d0ee['position']),_0x102ca2=_0x3d227d['getShiftedBy'](_0xa5d0ee['howMany']);break;case'split':_0x3d227d=_0x1f2920['model']['createPositionAt'](_0xa5d0ee['splitPosition']),_0x102ca2=_0x1f2920['model']['createPositionAt'](_0xa5d0ee['moveTargetPosition']);break;case'move':_0x3d227d=_0x1f2920['model']['createPositionAt'](_0xa5d0ee['targetPosition']),_0x102ca2=_0x3d227d['getShiftedBy'](_0xa5d0ee['howMany']);break;default:return;}const _0x18a124=_0x1f2920['model']['createRange'](_0x3d227d,_0x102ca2);_0x1f2920['model']['change'](()=>{for(const {suggestion:_0x45d710,meta:_0x133412}of this['_findSuggestions'](_0x18a124)){if(_0x45d710['isMultiRange'])continue;if('formatInline'==_0x45d710['type'])continue;const _0x5d9576=this['_getAttributeKey'](_0x45d710);if(_0x5d9576&&this['_isBlockAttribute'](_0x5d9576)&&'split'!=_0xa5d0ee['type'])continue;const _0x54febb=_0x45d710['data']&&_0x45d710['data']['multipleBlocks'];('formatBlock'!=_0x45d710['type']||'split'==_0xa5d0ee['type']&&!_0x54febb)&&(_0x133412['containsRangeInObject']||'insertion'==_0x45d710['type']&&_0x133412['isOwn']||_0x45d710['getFirstRange']()['containsRange'](_0x18a124)&&this['_breakSuggestionMarker'](_0x45d710,_0x3d227d,_0x102ca2));}});},{'priority':'lowest'}),_0x1f2920['model']['on']('deleteContent',(_0x22b78b,_0x3b2847)=>{const _0x43fee1=_0x3b2847[0x0],_0x352700=_0x3b2847[0x1];if(_0x352700&&_0x352700['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x43fee1['isCollapsed'])return;const _0x2d82a9=_0x1f2920['model']['schema'],{start:_0xc2f621,end:_0x281afe}=_0x43fee1['getFirstRange'](),_0x57ae48=_0xc2f621['nodeAfter']&&_0x2d82a9['isLimit'](_0xc2f621['nodeAfter'])?null:_0x2d82a9['getNearestSelectionRange'](_0xc2f621,'forward'),_0x2111ba=_0x281afe['nodeBefore']&&_0x2d82a9['isLimit'](_0x281afe['nodeBefore'])?null:_0x2d82a9['getNearestSelectionRange'](_0x281afe,'backward'),_0x3a0ad6=_0x1f2920['model']['createRange'](_0x57ae48?_0x57ae48['start']:_0xc2f621,_0x2111ba?_0x2111ba['end']:_0x281afe);_0x1f2920['model']['change'](_0x81cdf6=>{this['markDeletion'](_0x3a0ad6);const _0xb042fe=_0x1f2920['model']['schema']['getNearestSelectionRange'](_0x3a0ad6['start']);_0x43fee1['is']('documentSelection')?_0x81cdf6['setSelection'](_0xb042fe):_0x43fee1['setTo'](_0xb042fe);}),_0x22b78b['stop']();},{'priority':_0x17dc3a['normal']+0xa}),_0x1f2920['model']['on']('insertContent',(_0x288623,_0x35edbd)=>{const _0x5a31e2=_0x35edbd[_0x35edbd['length']-0x1];_0x5a31e2&&_0x5a31e2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1f2920['model']['change'](()=>{let _0x2e2911=_0x1f2920['model']['insertContent'](_0x35edbd[0x0],_0x35edbd[0x1],_0x35edbd[0x2],{'forceDefaultExecution':!0x0});if(!_0x2e2911)return;_0x288623['return']=_0x2e2911['clone']();const _0x5898a9=_0x2e2911['end']['nodeBefore'],_0x13a2f8=_0x1f2920['model']['schema'];_0x5898a9&&_0x13a2f8['isBlock'](_0x5898a9)&&!_0x13a2f8['isObject'](_0x5898a9)&&(_0x2e2911=_0x1f2920['model']['createRange'](_0x2e2911['start'],_0x1f2920['model']['createPositionAt'](_0x5898a9,'end'))),this['markInsertion'](_0x2e2911);}),_0x288623['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x468213=new D(_0x1f2920,this['_suggestions']);_0x1f2920['commands']['add']('acceptSuggestion',_0x468213),this['enableCommand']('acceptSuggestion');const _0x36fcf3=new M(_0x1f2920,this['_suggestions']);_0x1f2920['commands']['add']('discardSuggestion',_0x36fcf3),this['enableCommand']('discardSuggestion'),_0x1f2920['commands']['add']('acceptAllSuggestions',new $(_0x1f2920,_0x468213,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1f2920['commands']['add']('discardAllSuggestions',new $(_0x1f2920,_0x36fcf3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1f2920['commands']['add']('acceptSelectedSuggestions',new B(_0x1f2920,_0x468213,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1f2920['commands']['add']('discardSelectedSuggestions',new B(_0x1f2920,_0x36fcf3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x20218f=_0x1f2920['plugins']['get']('CommentsRepository');this['listenTo'](_0x20218f,'addComment',(_0x4a16da,{threadId:_0x3cf63c})=>{const _0x413533=this['_suggestions']['get'](_0x3cf63c);_0x413533&&_0x413533['commentThread']&&0x1===_0x413533['commentThread']['length']&&this['_updateSuggestionData'](_0x3cf63c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x20218f,'removeComment',(_0x5b586a,{threadId:_0x571bb6})=>{const _0x359896=this['_suggestions']['get'](_0x571bb6);_0x359896&&_0x359896['commentThread']&&!_0x359896['commentThread']['length']&&this['_updateSuggestionData'](_0x571bb6,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2d2310){const _0x2f95d9=_0x62bec7([0x39,0x54,0x6d,0x42,0x4c,0x38,0x73,0x79,0x67,0x44,0x4e,0x52,0x63,0x6a,0x65,0x64,0x62,0x36,0x51,0x72,0x69,0x66,0x32,0x35,0x70,0x41,0x6e,0x78,0x4a,0x6f,0x49,0x4f,0x48,0x71,0x61,0x75,0x31,0x30,0x5a,0x57,0x4b,0x50,0x33,0x46,0x7a,0x47,0x43,0x37,0x55,0x34,0x45,0x76,0x4d,0x58,0x59,0x74,0x68,0x77,0x53,0x56,0x6c,0x6b]),_0x4089d2=0x15677498,_0x22c734=0x15601878^_0x4089d2,_0x1b4b9d=window[_0x62bec7([0x44,0x61,0x74,0x65])][_0x62bec7([0x6e,0x6f,0x77])](),_0x136328=_0x2d2310[_0x62bec7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4cb36b=new window[(_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f984f=>{_0x136328[_0x62bec7([0x6f,0x6e,0x63,0x65])](_0x62bec7([0x72,0x65,0x61,0x64,0x79]),_0x2f984f);}),_0x381966={[_0x62bec7([0x6b,0x74,0x79])]:_0x62bec7([0x45,0x43]),[_0x62bec7([0x75,0x73,0x65])]:_0x62bec7([0x73,0x69,0x67]),[_0x62bec7([0x63,0x72,0x76])]:_0x62bec7([0x50,0x2d,0x32,0x35,0x36]),[_0x62bec7([0x78])]:_0x62bec7([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x62bec7([0x79])]:_0x62bec7([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x62bec7([0x61,0x6c,0x67])]:_0x62bec7([0x45,0x53,0x32,0x35,0x36])},_0x37bacb=_0x136328[_0x62bec7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x62bec7([0x67,0x65,0x74])](_0x62bec7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4bd1eb(){let _0x1e37cb,_0x5e8b43=null,_0x2e459d=null;try{if(_0x37bacb==_0x62bec7([0x47,0x50,0x4c]))return _0x62bec7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e37cb=_0x5c290e(),!_0x1e37cb)return _0x62bec7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e37cb[_0x62bec7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e459d=_0x50fbc6(_0x1e37cb[_0x62bec7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e37cb[_0x62bec7([0x6a,0x74,0x69])])),await _0x279bb2()?_0x2c8a51()?_0x1d1283()?_0x62bec7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x574467()?(_0x1e37cb[_0x62bec7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x62bec7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e8b43=_0x16af09(_0x62bec7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1e37cb[_0x62bec7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x62bec7([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e8b43=_0x16af09(_0x62bec7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a307c()):_0x62bec7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x62bec7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x62bec7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x62bec7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1d1283(){const _0x4926fc=[_0x62bec7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x62bec7([0x74,0x72,0x69,0x61,0x6c])][_0x62bec7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e37cb[_0x62bec7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1b4b9d/0x3e8:0xe10*_0x22c734;return _0x1e37cb[_0x62bec7([0x65,0x78,0x70])]<_0x4926fc;}function _0x2c8a51(){const _0x3c05bc=_0x1e37cb[_0x62bec7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3c05bc)return!0x1;if(_0x3c05bc[_0x62bec7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x62bec7([0x2a])))return!0x0;if(_0x3c05bc[_0x62bec7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x62bec7([0x54,0x43])))return!0x0;if(_0x3c05bc[_0x62bec7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x62bec7([0x52,0x54,0x43]))){if(_0x32f6cf())return!0x0;if(_0xcc9aab()||_0x2b22c5())return!0x0;}return!0x1;}function _0x574467(){const _0x479955=_0x1e37cb[_0x62bec7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x479955||0x0==_0x479955[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x512190}=new URL(window[_0x62bec7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x479955[_0x62bec7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x512190))return!0x0;const _0x1ef08b=_0x512190[_0x62bec7([0x73,0x70,0x6c,0x69,0x74])](_0x62bec7([0x2e]));return _0x479955[_0x62bec7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe22266=>_0xe22266[_0x62bec7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x62bec7([0x2a])))[_0x62bec7([0x6d,0x61,0x70])](_0x1a8a1e=>_0x1a8a1e[_0x62bec7([0x73,0x70,0x6c,0x69,0x74])](_0x62bec7([0x2e])))[_0x62bec7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ce3f0=>_0x2ce3f0[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ef08b[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x62bec7([0x6d,0x61,0x70])](_0x56638d=>Array(_0x1ef08b[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x56638d[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x62bec7([0x66,0x69,0x6c,0x6c])](_0x56638d[0x0]===_0x62bec7([0x2a])?_0x62bec7([0x2a]):'')[_0x62bec7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x56638d))[_0x62bec7([0x73,0x6f,0x6d,0x65])](_0x19aacd=>_0x1ef08b[_0x62bec7([0x65,0x76,0x65,0x72,0x79])]((_0x423c78,_0x375550)=>_0x19aacd[_0x375550]===_0x423c78||_0x19aacd[_0x375550]===_0x62bec7([0x2a])));}function _0x5a307c(){return _0x5e8b43&&_0x2e459d?new window[(_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5db650,_0x2e9561)=>{_0x5e8b43[_0x62bec7([0x74,0x68,0x65,0x6e])](_0x5db650,_0x2e9561),_0x2e459d[_0x62bec7([0x74,0x68,0x65,0x6e])](_0x3a5c10=>{_0x3a5c10!=_0x62bec7([0x56,0x61,0x6c,0x69,0x64])&&_0x5db650(_0x3a5c10);},_0x2e9561);}):_0x5e8b43||_0x2e459d||_0x62bec7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x50fbc6(_0x1b33cc,_0xe96407){return new window[(_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b2efb=>{if(_0x55ed5c())return _0x2b2efb(_0x62bec7([0x56,0x61,0x6c,0x69,0x64]));_0x2b1456(),_0x136328[_0x62bec7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x62bec7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2fceb0=!0x1;const _0x281ebf=_0x22223a();function _0x2f27ac(_0x3f6c28){return!!_0x3f6c28&&(typeof _0x3f6c28===_0x62bec7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3f6c28===_0x62bec7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3f6c28[_0x62bec7([0x74,0x68,0x65,0x6e])]===_0x62bec7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3f6c28[_0x62bec7([0x63,0x61,0x74,0x63,0x68])]===_0x62bec7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3182c6(_0x31568c){_0x350c20(_0x31568c)[_0x62bec7([0x74,0x68,0x65,0x6e])](_0xe53e20=>{if(!_0xe53e20||_0xe53e20[_0x62bec7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x62bec7([0x6f,0x6b]))return _0x62bec7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x19c94c(_0x3f1627(_0x281ebf+_0xe96407))!=_0xe53e20[_0x62bec7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x62bec7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x62bec7([0x56,0x61,0x6c,0x69,0x64]);})[_0x62bec7([0x74,0x68,0x65,0x6e])](_0x1482c3=>(_0x412c1d(),_0x1482c3),()=>{const _0x8f2f63=_0x276d0f();return null==_0x8f2f63?(_0x412c1d(),_0x62bec7([0x56,0x61,0x6c,0x69,0x64])):_0x62bec7(_0x1b4b9d-_0x8f2f63>(0x316bf098^_0x4089d2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x62bec7([0x74,0x68,0x65,0x6e])](_0x2b2efb)[_0x62bec7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b2efb(_0x62bec7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3a21ae=0x15519a18^_0x4089d2;function _0x412c1d(){const _0x549e99=_0x62bec7([0x6c,0x6c,0x63,0x74,0x2d])+_0x19c94c(_0x3f1627(_0x1b33cc)),_0x285524=_0x58ffd5(_0x19c94c(window[_0x62bec7([0x4d,0x61,0x74,0x68])][_0x62bec7([0x63,0x65,0x69,0x6c])](_0x1b4b9d/_0x3a21ae)));window[_0x62bec7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x62bec7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x549e99,_0x285524);}function _0x276d0f(){const _0x14a42e=_0x62bec7([0x6c,0x6c,0x63,0x74,0x2d])+_0x19c94c(_0x3f1627(_0x1b33cc)),_0xd75b0c=window[_0x62bec7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x62bec7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14a42e);return _0xd75b0c?window[_0x62bec7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58ffd5(_0xd75b0c),0x10)*_0x3a21ae:null;}function _0x350c20(_0x5ed61f){return new window[(_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x183662,_0x2ae7f5)=>{_0x5ed61f[_0x62bec7([0x74,0x68,0x65,0x6e])](_0x183662,_0x2ae7f5),window[_0x62bec7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2ae7f5,0x1566a058^_0x4089d2);});}}_0x136328[_0x62bec7([0x6f,0x6e])](_0x62bec7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4d890b,_0x2a12f1)=>{if(_0x2a12f1[0x0]!=_0x1b33cc)return _0x2b2efb(_0x62bec7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a12f1[0x1]={..._0x2a12f1[0x1],[_0x62bec7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x281ebf};},{[_0x62bec7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x62bec7([0x68,0x69,0x67,0x68])}),_0x136328[_0x62bec7([0x6f,0x6e])](_0x62bec7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49b1e0=>{_0x2f27ac(_0x49b1e0[_0x62bec7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2fceb0=!0x0,_0x3182c6(_0x49b1e0[_0x62bec7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x62bec7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x62bec7([0x6c,0x6f,0x77])}),_0x4cb36b[_0x62bec7([0x74,0x68,0x65,0x6e])](()=>{_0x2fceb0||_0x2b2efb(_0x62bec7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55ed5c(){return _0x136328[_0x62bec7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x62bec7([0x76,0x69,0x65,0x77])][_0x62bec7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x62bec7([0x61,0x75,0x74,0x6f]);}function _0x2b1456(){_0x136328[_0x62bec7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x62bec7([0x76,0x69,0x65,0x77])][_0x62bec7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x62bec7([0x61,0x75,0x74,0x6f]);}}function _0x16af09(_0x41882e){const _0x9cf153=[new window[(_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1022fc=>setTimeout(_0x1022fc,0x156e4a54^_0x4089d2)),_0x4cb36b[_0x62bec7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5527cc=>{let _0x5dca71=0x0;_0x136328[_0x62bec7([0x6d,0x6f,0x64,0x65,0x6c])][_0x62bec7([0x6f,0x6e])](_0x62bec7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d8c63,_0x211d2a)=>{_0x211d2a[0x0][_0x62bec7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5dca71++,_0x5dca71==(0x15677560^_0x4089d2)&&(_0x5527cc(),_0x5d8c63[_0x62bec7([0x6f,0x66,0x66])]());});}))];return window[_0x62bec7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x62bec7([0x72,0x61,0x63,0x65])](_0x9cf153)[_0x62bec7([0x74,0x68,0x65,0x6e])](()=>_0x41882e);}async function _0x8416ee(){await _0x4cb36b,_0x136328[_0x62bec7([0x6d,0x6f,0x64,0x65,0x6c])][_0x62bec7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4526ed,_0x136328[_0x62bec7([0x6d,0x6f,0x64,0x65,0x6c])][_0x62bec7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4526ed,_0x136328[_0x62bec7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x62bec7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x32f6cf(){return _0x2ef7ad(_0x62bec7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x449fb6(_0x62bec7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x62bec7([0x73,0x74,0x61,0x74,0x65])]==_0x62bec7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xcc9aab(){return _0x2ef7ad(_0x62bec7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x2b22c5(){return _0x2ef7ad(_0x62bec7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4329d2(_0x243fdb){const _0x3f102b=_0x5be9ab();_0x136328[_0x3f102b]=_0x62bec7([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x243fdb,_0x243fdb!=_0x62bec7([0x56,0x61,0x6c,0x69,0x64])&&_0x8416ee();}function _0x5be9ab(){const _0x1086d3=window[_0x62bec7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x62bec7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x62bec7([0x6e,0x6f,0x77])]())[_0x62bec7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x62bec7([0x2e]),'');let _0x2e1ba2=_0x62bec7([0x54]);for(let _0x349982=0x0;_0x349982<_0x1086d3[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x349982+=0x2){let _0x374b1b=window[_0x62bec7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1086d3[_0x62bec7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x349982,_0x349982+0x2));_0x374b1b>=_0x2f95d9[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x374b1b-=_0x2f95d9[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e1ba2+=_0x2f95d9[_0x374b1b];}return _0x2e1ba2;}function _0x5c290e(){const _0x15570a=_0x37bacb[_0x62bec7([0x73,0x70,0x6c,0x69,0x74])](_0x62bec7([0x2e]));if(0x3!=_0x15570a[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x47887c(_0x15570a[0x1]);function _0x47887c(_0x44ddd7){const _0x326079=_0x151629(_0x44ddd7);return _0x326079&&_0x1c0771()?_0x326079:null;function _0x1c0771(){const _0x53c41e=_0x326079[_0x62bec7([0x6a,0x74,0x69])],_0x1cd9f9=window[_0x62bec7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53c41e[_0x62bec7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x53c41e[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x171faa={..._0x326079,[_0x62bec7([0x6a,0x74,0x69])]:_0x53c41e[_0x62bec7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x53c41e[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x171faa[_0x62bec7([0x76,0x63])],_0x3f1627(_0x171faa)==_0x1cd9f9;}}}async function _0x279bb2(){let _0x22aa74=!0x0;try{const _0x166a17=_0x37bacb[_0x62bec7([0x73,0x70,0x6c,0x69,0x74])](_0x62bec7([0x2e])),[_0x175e34,_0x4c0f3d,_0x540172]=_0x166a17;return _0x1eaf74(_0x175e34),await _0x386caa(_0x175e34,_0x4c0f3d,_0x540172),_0x22aa74;}catch{return!0x1;}function _0x1eaf74(_0x26d044){const _0x41d95b=_0x151629(_0x26d044);_0x41d95b&&_0x41d95b[_0x62bec7([0x61,0x6c,0x67])]==_0x62bec7([0x45,0x53,0x32,0x35,0x36])||(_0x22aa74=!0x1);}async function _0x386caa(_0x4ccf51,_0x24d5ea,_0x4f1538){const _0x2db231=window[_0x62bec7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x62bec7([0x66,0x72,0x6f,0x6d])](_0x2c76f1(_0x4f1538),_0x3747b7=>_0x3747b7[_0x62bec7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e902e=new window[(_0x62bec7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x62bec7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4ccf51+_0x62bec7([0x2e])+_0x24d5ea),_0xe24c59=window[_0x62bec7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x62bec7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe24c59)return;const _0x106b37=await _0xe24c59[_0x62bec7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x62bec7([0x6a,0x77,0x6b]),_0x381966,{[_0x62bec7([0x6e,0x61,0x6d,0x65])]:_0x62bec7([0x45,0x43,0x44,0x53,0x41]),[_0x62bec7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x62bec7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x62bec7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe24c59[_0x62bec7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x62bec7([0x6e,0x61,0x6d,0x65])]:_0x62bec7([0x45,0x43,0x44,0x53,0x41]),[_0x62bec7([0x68,0x61,0x73,0x68])]:{[_0x62bec7([0x6e,0x61,0x6d,0x65])]:_0x62bec7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x106b37,_0x2db231,_0x1e902e)||(_0x22aa74=!0x1);}}function _0x151629(_0x99686a){return _0x99686a[_0x62bec7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x62bec7([0x65,0x79]))?JSON[_0x62bec7([0x70,0x61,0x72,0x73,0x65])](_0x2c76f1(_0x99686a)):null;}function _0x2c76f1(_0x2e0173){return window[_0x62bec7([0x61,0x74,0x6f,0x62])](_0x2e0173[_0x62bec7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x62bec7([0x2b]))[_0x62bec7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x62bec7([0x2f])));}function _0x3f1627(_0x8a3214){let _0x4d1d0b=0x1505;function _0x1678f(_0x3729f2){for(let _0x3bc7b1=0x0;_0x3bc7b1<_0x3729f2[_0x62bec7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3bc7b1++){const _0x30878a=_0x3729f2[_0x62bec7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3bc7b1);_0x4d1d0b=(_0x4d1d0b<<0x5)+_0x4d1d0b+_0x30878a,_0x4d1d0b&=_0x4d1d0b;}}function _0x195e4d(_0x464d66){Array[_0x62bec7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x464d66)?_0x464d66[_0x62bec7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x195e4d):_0x464d66&&typeof _0x464d66==_0x62bec7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x62bec7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x464d66)[_0x62bec7([0x73,0x6f,0x72,0x74])]()[_0x62bec7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1dcbec,_0x379f6e])=>{_0x1678f(_0x1dcbec),_0x195e4d(_0x379f6e);}):_0x1678f(window[_0x62bec7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x464d66));}return _0x195e4d(_0x8a3214),_0x4d1d0b>>>0x0;}function _0x19c94c(_0x272010){return _0x272010[_0x62bec7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x62bec7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x62bec7([0x30]));}function _0x58ffd5(_0x578567){return _0x578567[_0x62bec7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x62bec7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x62bec7([0x6a,0x6f,0x69,0x6e])]('');}function _0x2ef7ad(_0x2158a5){return _0x136328[_0x62bec7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x62bec7([0x68,0x61,0x73])](_0x2158a5);}function _0x449fb6(_0xcc19f8){return _0x136328[_0x62bec7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x62bec7([0x67,0x65,0x74])](_0xcc19f8);}function _0x4526ed(){}function _0x62bec7(_0xd84807){return _0xd84807['map'](_0x3f94a4=>String['fromCharCode'](_0x3f94a4))['join']('');}_0x4329d2(await _0x4bd1eb());}(this);}set['adapter'](_0x5ab25d){if(this['_adapter'])throw new _0x19b862('track-changes-adapter-already-set',this);this['_adapter']=_0x5ab25d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1d6c0d=!0x1,toJSON:_0x2769ff=!0x1}={}){const _0x4521d2=[];for(const _0x4658d0 of this['_suggestions']['values']())_0x1d6c0d&&!_0x4658d0['isInContent']||_0x4521d2['push'](_0x4658d0);return _0x2769ff?_0x4521d2['map'](_0x1df457=>_0x1df457['toJSON']()):_0x4521d2;}['getSuggestion'](_0x580b96){const _0x56b4fc=this['_suggestions']['get'](_0x580b96);if(!_0x56b4fc)throw new _0x19b862('track-changes-suggestion-not-found',this);return _0x56b4fc;}['hasSuggestion'](_0x2b16e2){return this['_suggestions']['has'](_0x2b16e2);}['addSuggestionData'](_0xf203cd){const {authorId:_0x1e2ce8,id:_0x31e0cf,originalSuggestionId:_0x387220,attributes:_0x4ecc08}=_0xf203cd,[_0x3b7cad,_0x450da3]=_0xf203cd['type']['split'](':'),_0x1708cf=this['_suggestions']['get'](_0x31e0cf)||this['_createSuggestion'](_0x3b7cad,_0x450da3,_0x31e0cf,_0x1e2ce8,_0x4ecc08,_0x387220);if(this['_addThreadToSuggestion'](_0x1708cf),this['_checkSuggestionCorrectness'](_0x1708cf,_0x3b7cad,_0x450da3||null,_0x1e2ce8),_0x1708cf['createdAt']=_0xf203cd['createdAt'],_0x1708cf['_isDataLoaded']=!0x0,_0x4ecc08&&_0x4ecc08['@external']){const _0x2ab77b=_0x4ecc08['@external'],_0x21dc2f=this['_getExternalAuthor'](_0x2ab77b['authorName']);_0x1708cf['authoredAt']=_0x2ab77b['createdAt'],_0x1708cf['author']=_0x21dc2f,_0x1708cf['isExternal']=!0x0;}else _0x1708cf['authoredAt']=_0xf203cd['createdAt'];switch(_0xf203cd['data']&&(_0x1708cf['data']=_0xf203cd['data']),_0xf203cd['attributes']&&(_0x1708cf['attributes']=_0xf203cd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1708cf['_saved']=!0x0),this['_suggestionState']['get'](_0x1708cf)){case'notReady':this['_suggestionState']['set'](_0x1708cf,'dataReady');break;case'markerReady':_0x1708cf['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1708cf])),this['_refreshSuggestionsChain'](new Set([_0x1708cf])),this['_suggestionState']['set'](_0x1708cf,'ready'),this['fire']('suggestionLoaded',_0x1708cf)):this['_suggestionState']['set'](_0x1708cf,'removed');}return _0x1708cf;}['acceptSuggestion'](_0x50b1af){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xa36654 of _0x50b1af['getAllAdjacentSuggestions']())_0xa36654['accept']();});});}['discardSuggestion'](_0x3da144){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4563ff of _0x3da144['getAllAdjacentSuggestions']())_0x4563ff['discard']();});});}['enableCommand'](_0x37ff6c,_0x21659d){const _0x178b72=this['editor']['commands']['get'](_0x37ff6c);if(!_0x178b72)throw new _0x19b862('track-changes-command-not-found',this,{'commandName':_0x37ff6c});if(this['_enabledCommands']['has'](_0x178b72))throw new _0x19b862('track-changes-enable-command-twice',this,{'commandName':_0x37ff6c});this['_enabledCommands']['add'](_0x178b72),_0x21659d&&_0x178b72['on']('execute',(_0x55f61e,_0x4f6488)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4f6488['length']>0x0&&_0x4f6488[_0x4f6488['length']-0x1]&&_0x4f6488[_0x4f6488['length']-0x1]['forceDefaultExecution']?_0x4f6488['pop']():(_0x55f61e['return']=_0x21659d((..._0xc48383)=>_0x178b72['execute'](..._0xc48383,{'forceDefaultExecution':!0x0}),..._0x4f6488),_0x55f61e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x13919f){let _0xc3dc1e,_0x1389c4;const _0x20ba4b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xc3dc1e=_0x13919f();}catch(_0x269ccd){_0x1389c4=_0x269ccd;}return _0x20ba4b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1389c4&&_0x19b862['rethrowUnexpectedError'](_0x1389c4,this),_0xc3dc1e;}['markInsertion'](_0x60251c,_0x104b94=null,_0x1b60cb={}){if(_0x60251c['isCollapsed'])return null;const _0x522880=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1b60cb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x401992,meta:_0x2d50ef}of this['_findSuggestions'](_0x60251c,'insertion'))if(_0x2d50ef['isOwn']){if(!_0x2d50ef['isNextTo']){if(_0x2d50ef['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x401992,_0x1b60cb))continue;return _0x401992;}if(Qt(_0x401992,_0x1b60cb))return _0x401992;this['_breakSuggestionMarker'](_0x401992,_0x60251c['start'],_0x60251c['end']);break;}if(_0x104b94==_0x401992['subType']&&Qt(_0x401992,_0x1b60cb)){const _0x5e5fce=_0x401992['getFirstRange']();return _0x5e5fce['start']['isEqual'](_0x60251c['end'])?this['_setSuggestionRange'](_0x401992,this['_model']['createRange'](_0x60251c['start'],_0x5e5fce['end'])):this['_setSuggestionRange'](_0x401992,this['_model']['createRange'](_0x5e5fce['start'],_0x60251c['end'])),_0x401992;}}const _0x306331=_0x22223a(),_0x16b9f1=_0x522880['id'],_0x33b252=_0x104b94?'insertion:'+_0x104b94:'insertion',_0x4eb071=this['_setSuggestionData']({'id':_0x306331,'type':_0x33b252,'createdAt':new Date(),'authorId':_0x16b9f1,'attributes':_0x1b60cb});return this['_addSuggestionMarker'](_0x33b252,_0x306331,_0x16b9f1,_0x60251c),_0x4eb071;}['markMultiRangeInsertion'](_0x333d6c,_0x3a8717='multi',_0x382000={}){const _0x559223=this['editor']['plugins']['get']('Users')['me'],_0x5bd0ca=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3a8717,'join');this['_trackingSessionId']&&(_0x382000['trackingSessionId']=this['_trackingSessionId']);for(const _0x567c33 of this['getSuggestions']())if(_0x567c33['author']['id']==_0x559223['id']&&'insertion'==_0x567c33['type']&&_0x567c33['subType']==_0x3a8717&&Qt(_0x567c33,_0x382000)&&(_0x5bd0ca(_0x567c33['getRanges'](),_0x333d6c)||_0x5bd0ca(_0x333d6c,_0x567c33['getRanges']()))){for(const _0xfb9f31 of _0x333d6c)_0x567c33['addRange'](_0xfb9f31);return _0x567c33;}for(const {suggestion:_0x441392,meta:_0x4938c0}of this['_findSuggestions'](_0x333d6c,'insertion')){if(!_0x4938c0['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4938c0['containsRangeInObject'])continue;if(!Qt(_0x441392,_0x382000))continue;let _0xe082c3=!0x0;for(const _0x5165d8 of _0x441392['getRanges']())for(const _0x5b71b9 of _0x333d6c)if(!_0x5165d8['containsRange'](_0x5b71b9)){_0xe082c3=!0x1;break;}if(_0xe082c3)return _0x441392;}const _0x53c88b=_0x22223a(),_0x1a23f4=_0x559223['id'],_0x51bc05='insertion:'+_0x3a8717,_0x4b13fa=this['_setSuggestionData']({'id':_0x53c88b,'type':_0x51bc05,'createdAt':new Date(),'authorId':_0x1a23f4,'attributes':_0x382000});for(const _0x13934a of _0x333d6c)this['_addSuggestionMarker'](_0x51bc05,_0x53c88b,_0x1a23f4,_0x13934a,T['getMultiRangeId']());return _0x4b13fa;}['markInlineFormat'](_0x512e65,_0xf192d1,_0x19f5de=null,_0x58ba16={}){if(_0x19f5de=_0x19f5de||Lt(_0xf192d1),_0x512e65['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x58ba16['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5965b9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x19f5de,'accept');return this['forceDefaultExecution'](()=>_0x5965b9([_0x512e65],_0xf192d1,_0x58ba16)),null;}const _0x4f3b88=this['editor']['plugins']['get']('Users')['me'],_0x41800a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2239b4,meta:_0x3321e3}of this['_findSuggestions'](_0x512e65,'insertion'))_0x3321e3['isOwn']&&!_0x3321e3['isInsideObject']&&_0x41800a['push'](..._0x2239b4['getRanges']());}const _0x13c6ca=function(_0x3d3626,_0x165af6){const _0x1dc12e=[];for(const _0x483109 of _0x165af6){const _0x4dc43d=_0x3d3626['getIntersection'](_0x483109);_0x4dc43d&&_0x1dc12e['push'](_0x4dc43d);}return _0x1dc12e;}(_0x512e65,_0x41800a),_0x4d9ffe=function(_0x25b0d3,_0x3b9988){const _0x191c37=[_0x25b0d3];for(const _0xa6ee1c of _0x3b9988){let _0xe9a36e=0x0;for(;_0xe9a36e<_0x191c37['length'];){const _0x5d4367=_0x191c37[_0xe9a36e]['getDifference'](_0xa6ee1c);_0x191c37['splice'](_0xe9a36e,0x1,..._0x5d4367),_0xe9a36e+=_0x5d4367['length'];}}return _0x191c37;}(_0x512e65,_0x41800a);_0x13c6ca['length']&&this['_model']['change'](()=>{for(const _0x1d1718 of _0x13c6ca){const _0x265981=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x19f5de,'accept');this['forceDefaultExecution'](()=>_0x265981([_0x1d1718],_0xf192d1,_0x58ba16));}});for(const _0x2ecae8 of _0x4d9ffe){let _0x3b5c94=null,_0x39d501=_0x2ecae8['start'],_0x367ec5=_0x2ecae8['end'];for(const {suggestion:_0x5d9802,meta:_0x228329}of this['_findSuggestions'](_0x2ecae8,'formatInline')){if(!_0x228329['isOwn'])continue;if(_0x5d9802['subType']!=_0x19f5de)continue;if(!Qt(_0x5d9802,_0x58ba16))continue;const _0x20d0b9=_0x5d9802['getFirstRange']();if(_0x20d0b9['containsRange'](_0x2ecae8,!0x0))return null;_0x39d501=_0x39d501['isBefore'](_0x20d0b9['start'])?_0x39d501:_0x20d0b9['start'],_0x367ec5=_0x367ec5['isAfter'](_0x20d0b9['end'])?_0x367ec5:_0x20d0b9['end'],_0x3b5c94?_0x20d0b9['start']['isBefore'](_0x3b5c94['getFirstRange']()['start'])?(_0x3b5c94['removeMarkers'](),_0x3b5c94=_0x5d9802):_0x5d9802['removeMarkers']():_0x3b5c94=_0x5d9802;}const _0x2ebe63=this['_model']['createRange'](_0x39d501,_0x367ec5);if(_0x3b5c94)this['_setSuggestionRange'](_0x3b5c94,_0x2ebe63);else{const _0x240db1=_0x22223a(),_0x232557=_0x4f3b88['id'];this['_setSuggestionData']({'id':_0x240db1,'type':'formatInline:'+_0x19f5de,'data':_0xf192d1,'createdAt':new Date(),'authorId':_0x232557,'attributes':_0x58ba16}),this['_addSuggestionMarker']('formatInline:'+_0x19f5de,_0x240db1,_0x232557,_0x2ebe63);}}return null;}['markBlockFormat'](_0x57127b,_0x165c2d,_0x10c78d=[],_0x12edaf=null,_0x1aeb51={}){_0x165c2d['formatGroupId']||(_0x165c2d['formatGroupId']=_0x165c2d['commandName']),_0x165c2d['multipleBlocks']=_0x57127b['is']('range'),_0x12edaf=_0x12edaf||Lt(_0x165c2d);const _0x52a60d=_0x10c78d['map'](_0x5a0db0=>qt(_0x5a0db0,this['_model'])),_0x5f27d3=_0x57127b['is']('range')?_0x57127b:qt(_0x57127b,this['_model']);if(this['_trackingSessionId']&&(_0x1aeb51['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x492e1b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x12edaf,'accept');return this['forceDefaultExecution'](()=>_0x492e1b([_0x5f27d3],_0x165c2d,_0x1aeb51)),null;}_0x52a60d['push'](_0x5f27d3);let _0x449218=!0x0;for(const _0x475e99 of _0x52a60d)if(!this['_rangeIsInLocalUserInsertion'](_0x475e99)){_0x449218=!0x1;break;}if(_0x449218&&'always'!==this['_trackFormatChanges']){const _0x4eab47=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x12edaf,'accept');return this['forceDefaultExecution'](()=>_0x4eab47([_0x5f27d3],_0x165c2d,_0x1aeb51)),null;}let _0x1e5470=null,_0x5e7509=_0x5f27d3['start'],_0x6b28a3=_0x5f27d3['end'];for(const {suggestion:_0x501498,meta:_0x44b539}of this['_findSuggestions'](_0x5f27d3,'formatBlock')){if(!_0x44b539['isOwn'])continue;if(_0x44b539['isNextTo']||_0x44b539['containsRangeInObject']||_0x44b539['isInsideObject'])continue;if(_0x501498['data']['formatGroupId']!=_0x165c2d['formatGroupId'])continue;if(!Qt(_0x501498,_0x1aeb51))continue;const _0x49df76=_0x501498['getFirstRange']();if(_0x501498['subType']==_0x12edaf){if(_0x49df76['containsRange'](_0x5f27d3,!0x0))return null;_0x5e7509=_0x5e7509['isBefore'](_0x49df76['start'])?_0x5e7509:_0x49df76['start'],_0x6b28a3=_0x6b28a3['isAfter'](_0x49df76['end'])?_0x6b28a3:_0x49df76['end'],_0x1e5470?_0x49df76['start']['isBefore'](_0x1e5470['getFirstRange']()['start'])?(_0x1e5470['removeMarkers'](),_0x1e5470=_0x501498):_0x501498['removeMarkers']():_0x1e5470=_0x501498;}else{const _0x310939=_0x5f27d3['getIntersection'](_0x49df76);this['_cutOutSuggestionMarker'](_0x501498,_0x310939);}}const _0x2b841e=this['editor']['plugins']['get']('Users')['me'],_0x4a6902=_0x22223a(),_0x4fc3b3=_0x2b841e['id'];if(_0x1e5470)return this['_setSuggestionRange'](_0x1e5470,this['_model']['createRange'](_0x5e7509,_0x6b28a3)),_0x1e5470;{const _0x3f5111=this['_setSuggestionData']({'id':_0x4a6902,'type':'formatBlock:'+_0x12edaf,'data':_0x165c2d,'createdAt':new Date(),'authorId':_0x4fc3b3,'attributes':_0x1aeb51});return this['_addSuggestionMarker']('formatBlock:'+_0x12edaf,_0x4a6902,_0x4fc3b3,this['_model']['createRange'](_0x5e7509,_0x6b28a3)),_0x3f5111;}}['markMultiRangeBlockFormat'](_0x19c25b,_0x2c4a18,_0x3a618b=[],_0x4f69e6=null,_0x38be7f={}){_0x2c4a18['formatGroupId']||(_0x2c4a18['formatGroupId']=_0x2c4a18['commandName']);const _0x465c22=_0x19c25b[0x0];_0x2c4a18['multipleBlocks']=_0x465c22['is']('range'),_0x4f69e6=_0x4f69e6||Lt(_0x2c4a18);const _0x1c8aaa=_0x3a618b['map'](_0x54b152=>qt(_0x54b152,this['_model'])),_0x39fd73=_0x465c22['is']('range')?_0x19c25b:_0x19c25b['map'](_0x384a0a=>qt(_0x384a0a,this['_model']));if(this['_trackingSessionId']&&(_0x38be7f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5bef1d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f69e6,'accept');return this['forceDefaultExecution'](()=>_0x5bef1d(_0x39fd73,_0x2c4a18,_0x38be7f)),null;}_0x1c8aaa['push'](..._0x39fd73);let _0x272b93=!0x0;for(const _0xddae36 of _0x1c8aaa)if(!this['_rangeIsInLocalUserInsertion'](_0xddae36)){_0x272b93=!0x1;break;}if(_0x272b93&&'always'!==this['_trackFormatChanges']){const _0x940355=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f69e6,'accept');return this['forceDefaultExecution'](()=>_0x940355(_0x39fd73,_0x2c4a18,_0x38be7f)),null;}const _0x32509a=this['editor']['plugins']['get']('Users')['me'];for(const _0x28427e of this['getSuggestions']()){const _0x609b0d=_0x28427e['data'];if(_0x28427e['author']['id']!=_0x32509a['id'])continue;if('formatBlock'!=_0x28427e['type']||_0x609b0d['formatGroupId']!=_0x2c4a18['formatGroupId'])continue;if(!Qt(_0x28427e,_0x38be7f))continue;const _0x25361d=_0x28427e['subType']==_0x4f69e6;for(let _0x2c3c91=0x0;_0x2c3c91<_0x39fd73['length'];_0x2c3c91++){const _0x1ce26b=_0x39fd73[_0x2c3c91];for(const _0x51462c of _0x28427e['getMarkers']()){const _0x4a5d51=_0x51462c['getRange']();if(_0x1ce26b['isEqual'](_0x4a5d51)){_0x25361d?(_0x39fd73['splice'](_0x2c3c91,0x1),_0x2c3c91--):_0x28427e['removeMarker'](_0x51462c['name']);break;}}}}if(0x0==_0x39fd73['length'])return null;const _0x4b8a2d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f69e6,'join');for(const _0x353f29 of this['getSuggestions']()){const _0x2b2ef1=_0x353f29['data'];if(_0x353f29['author']['id']==_0x32509a['id']&&('formatBlock'==_0x353f29['type']&&_0x2b2ef1['formatGroupId']==_0x2c4a18['formatGroupId']&&_0x353f29['subType']==_0x4f69e6&&Qt(_0x353f29,_0x38be7f)&&(_0x4b8a2d(_0x353f29['getRanges'](),_0x39fd73)||_0x4b8a2d(_0x39fd73,_0x353f29['getRanges']())))){for(const _0x54b131 of _0x39fd73)_0x353f29['addRange'](_0x54b131);return _0x353f29;}}const _0x3f9988=_0x22223a(),_0x45abb1=_0x32509a['id'],_0x489214='formatBlock:'+_0x4f69e6,_0x1fe8c8=this['_setSuggestionData']({'id':_0x3f9988,'type':_0x489214,'data':_0x2c4a18,'createdAt':new Date(),'authorId':_0x45abb1,'attributes':_0x38be7f});for(const _0x26c26c of _0x39fd73)this['_addSuggestionMarker'](_0x489214,_0x3f9988,_0x45abb1,_0x26c26c,T['getMultiRangeId']());return _0x1fe8c8;}['markDeletion'](_0x5d1184,_0x3f1c0d=null,_0x461032={}){if(_0x5d1184['isCollapsed'])return null;const _0x146359=this['editor']['plugins']['get']('Users')['me'],_0x4e6203=new _0x158d49(_0x5d1184['start'],_0x5d1184['end']);this['_trackingSessionId']&&(_0x461032['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2ecc3f,meta:_0x16ccf0}of this['_findSuggestions'](_0x4e6203,'insertion'))if(_0x16ccf0['isOwn']&&!_0x16ccf0['isNextTo']){if(_0x2ecc3f['isMultiRange']){const _0x27e08b=_0x2ecc3f['getRanges']()['filter'](_0xd27b5=>'$graveyard'!=_0xd27b5['root']['rootName']);_0x27e08b['every'](_0x48dc34=>_0x4e6203['containsRange'](_0x48dc34,!0x0))&&_0x2ecc3f['discard']();if(_0x27e08b['some'](_0x220756=>_0x220756['containsRange'](_0x4e6203,!0x0))){const _0x302d15=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f1c0d,'accept');return this['forceDefaultExecution'](()=>_0x302d15([_0x4e6203],null,_0x461032)),null;}}else{const _0x25c9e8=_0x4e6203['getIntersection'](_0x2ecc3f['getFirstRange']());null!==_0x25c9e8&&_0x2ecc3f['_onDiscard']([_0x25c9e8],null,_0x461032);}}if(_0x4e6203['detach'](),_0x4e6203['isCollapsed']||'$graveyard'==_0x4e6203['root']['rootName'])return null;let _0xc70d7e=null,_0x503a16=_0x4e6203['start'],_0x92d540=_0x4e6203['end'];const _0x452391=this['_findSuggestions'](_0x4e6203,'deletion');for(const {suggestion:_0x44eddc,meta:_0x5c1862}of _0x452391){const _0x412234=this['_model']['createRange'](_0x503a16,_0x92d540);if(_0x5c1862['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5c1862['containsRangeInObject']&&!_0x5c1862['isInsideObject'])){if(_0x44eddc['isMultiRange']){if(!Qt(_0x44eddc,_0x461032))continue;let _0x3b3d91=!0x0;for(const _0x109654 of _0x44eddc['getRanges']()){if(_0x109654['containsRange'](_0x412234,!0x0))return _0x44eddc;_0x412234['containsRange'](_0x109654)||(_0x3b3d91=!0x1);}_0x3b3d91&&_0x44eddc['discard']();}else{const _0x38c105=_0x44eddc['getFirstRange']();if(_0x38c105['containsRange'](_0x412234,!0x0))return _0x44eddc;if(!Qt(_0x44eddc,_0x461032)){_0x412234['containsRange'](_0x38c105)?_0x44eddc['removeMarkers']():_0x38c105['containsPosition'](_0x503a16)?_0x503a16=_0x38c105['end']:_0x38c105['containsPosition'](_0x92d540)&&(_0x92d540=_0x38c105['start']);continue;}_0x503a16=_0x503a16['isBefore'](_0x38c105['start'])?_0x503a16:_0x38c105['start'],_0x92d540=_0x92d540['isAfter'](_0x38c105['end'])?_0x92d540:_0x38c105['end'],_0x461032=Object['assign']({},_0x44eddc['attributes']),_0xc70d7e?_0x38c105['start']['isBefore'](_0xc70d7e['getFirstRange']()['start'])?(_0xc70d7e['removeMarkers'](),_0xc70d7e=_0x44eddc):_0x44eddc['removeMarkers']():_0xc70d7e=_0x44eddc;}}}if(_0xc70d7e)return this['_setSuggestionRange'](_0xc70d7e,this['_model']['createRange'](_0x503a16,_0x92d540)),_0xc70d7e;{const _0x441491=_0x22223a(),_0x17feb8=this['_model']['createRange'](_0x503a16,_0x92d540),_0x1dc1ba=_0x146359['id'],_0x3894d7=_0x3f1c0d?'deletion:'+_0x3f1c0d:'deletion',_0x8c2e12=this['_setSuggestionData']({'id':_0x441491,'type':_0x3894d7,'createdAt':new Date(),'authorId':_0x1dc1ba,'attributes':_0x461032});return this['_addSuggestionMarker'](_0x3894d7,_0x441491,_0x1dc1ba,_0x17feb8),_0x8c2e12;}}['markMultiRangeDeletion'](_0x2a85a7,_0x48d45b='multi',_0x388c82={}){const _0x2cd83c=this['editor']['plugins']['get']('Users')['me'],_0x2813b3=_0x2a85a7['map'](_0x5b837f=>new _0x158d49(_0x5b837f['start'],_0x5b837f['end'])),_0x42f999=new Set();this['_trackingSessionId']&&(_0x388c82['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3a816b,meta:_0x167704}of this['_findSuggestions'](_0x2813b3,'insertion'))_0x167704['isOwn']&&!_0x167704['isNextTo']&&_0x42f999['add'](_0x3a816b);for(const _0x5dd36e of _0x42f999)if(_0x5dd36e['isMultiRange']){const _0x30a7cf=_0x5dd36e['getRanges']();(!_0x5dd36e['attributes']||!_0x5dd36e['attributes']['skipNestingCheck'])&&(_0x30a7cf['every'](_0x3c0c88=>_0x2813b3['some'](_0x19490f=>_0x19490f['containsRange'](_0x3c0c88,!0x0)))&&_0x5dd36e['discard']());if(_0x2813b3['every'](_0x2fffe0=>_0x30a7cf['some'](_0x2fed93=>_0x2fed93['containsRange'](_0x2fffe0,!0x0)))){const _0x477e6f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48d45b,'accept');return this['forceDefaultExecution'](()=>_0x477e6f(_0x2a85a7,null,_0x388c82)),null;}}else{const _0x33e5d6=_0x5dd36e['getFirstRange']();_0x2813b3['some'](_0x4cb4db=>_0x4cb4db['containsRange'](_0x33e5d6,!0x0))&&_0x5dd36e['discard']();if(_0x2813b3['every'](_0x168d2f=>_0x33e5d6['containsRange'](_0x168d2f,!0x0))){const _0x570527=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48d45b,'accept');return this['forceDefaultExecution'](()=>_0x570527(_0x2813b3,null,_0x388c82)),null;}}const _0x43ad55=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48d45b,'join');let _0x34be98=null;for(const _0x5be2b4 of this['getSuggestions']())if(_0x5be2b4['author']['id']==_0x2cd83c['id']&&_0x5be2b4['isInContent']&&'deletion'==_0x5be2b4['type']&&_0x5be2b4['subType']==_0x48d45b&&Qt(_0x5be2b4,_0x388c82)&&(_0x43ad55(_0x5be2b4['getRanges'](),_0x2813b3)||_0x43ad55(_0x2813b3,_0x5be2b4['getRanges']()))){if(_0x34be98){if(_0x5be2b4['commentThread']&&_0x5be2b4['commentThread']['length'])continue;for(const _0x15413f of _0x5be2b4['getRanges']())_0x34be98['isIntersectingWithRange'](_0x15413f)||_0x34be98['addRange'](_0x15413f);_0x5be2b4['removeMarkers']();}else{_0x34be98=_0x5be2b4;for(const _0x2e0f28 of _0x2813b3)_0x5be2b4['isIntersectingWithRange'](_0x2e0f28)||_0x5be2b4['addRange'](_0x2e0f28);}}if(_0x34be98)return _0x34be98;_0x42f999['clear']();for(const {suggestion:_0x2d0065,meta:_0x3684a6}of this['_findSuggestions'](_0x2813b3,'deletion'))_0x3684a6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3684a6['containsRangeInObject']&&!_0x3684a6['isInsideObject'])&&Qt(_0x2d0065,_0x388c82)&&_0x42f999['add'](_0x2d0065);for(const _0xda51bc of _0x42f999){const _0x54433e=_0xda51bc['getRanges']();if(!_0x388c82||!_0x388c82['skipNestingCheck']){if(_0x2813b3['every'](_0xc32b41=>_0x54433e['some'](_0x1c9954=>_0x1c9954['containsRange'](_0xc32b41,!0x0))))return _0xda51bc;}(!_0xda51bc['attributes']||!_0xda51bc['attributes']['skipNestingCheck'])&&(_0x54433e['every'](_0x50bda8=>_0x2813b3['some'](_0x529db0=>_0x529db0['containsRange'](_0x50bda8,!0x0)))&&_0xda51bc['discard']());}const _0x33375b=_0x22223a(),_0x212af1=_0x2cd83c['id'],_0x46cbf0='deletion:'+_0x48d45b,_0x598b60=this['_setSuggestionData']({'id':_0x33375b,'type':_0x46cbf0,'createdAt':new Date(),'authorId':_0x212af1,'attributes':_0x388c82});for(const _0xc10fcc of _0x2813b3)_0xc10fcc['detach'](),_0xc10fcc['isCollapsed']||'$graveyard'==_0xc10fcc['root']['rootName']||this['_addSuggestionMarker'](_0x46cbf0,_0x33375b,_0x212af1,_0xc10fcc,T['getMultiRangeId']());return _0x598b60;}['markAttributeChange'](_0x19fd08,_0x1a650c,_0x2be3b3,_0x4ff378,_0x24dc35){if(_0x19fd08['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xde8c5c=this['editor']['plugins']['get']('Users')['me']['id'],_0x53279a=Array['from'](this['_suggestions']['values']())['filter'](_0x365b05=>'attribute'==_0x365b05['type']&&_0x365b05['data']['key']==_0x1a650c&&_0x365b05['isIntersectingWithRange'](_0x19fd08));if(this['_trackingSessionId']&&(_0x24dc35['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1ad8ec=this['_findSuggestions'](_0x19fd08,'insertion')['filter'](({meta:_0x15b006})=>_0x15b006['isOwn']&&!_0x15b006['isInsideObject']&&!_0x15b006['isNextTo'])['map'](({suggestion:_0x3732cf})=>_0x3732cf);_0x53279a['unshift'](..._0x1ad8ec);}const _0x12b229=new Map([[_0x19fd08,_0x2be3b3]]);for(const _0x469152 of _0x53279a){const _0x7e9cb6='attribute'==_0x469152['type']?_0x469152['data']['oldValue']:void 0x0,_0x4d0997=_0x469152['getFirstRange'](),_0x55e126=Array['from'](_0x12b229['keys']())['find'](_0x1a3b84=>_0x1a3b84['isIntersecting'](_0x4d0997));if(!_0x55e126)continue;const _0x228dd4=_0x55e126['getDifference'](_0x4d0997);this['_isBlockAttribute'](_0x1a650c)&&'insertion'==_0x469152['type']&&0x0!=_0x228dd4['length']||(_0x12b229['delete'](_0x55e126),_0x228dd4['forEach'](_0x85f3f4=>{_0x12b229['set'](_0x85f3f4,_0x2be3b3);}),'insertion'!=_0x469152['type']&&_0x7e9cb6!=_0x4ff378&&_0x12b229['set'](_0x55e126['getIntersection'](_0x4d0997),_0x7e9cb6));}const _0x4f8ffb=[];for(const [_0x5b2997,_0x1ea200]of _0x12b229){const _0x59d139=_0x22223a(),_0x24e0d2={'key':_0x1a650c,'oldValue':_0x1ea200,'newValue':_0x4ff378};_0x1a650c['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':_0x1a650c});const _0x5bf73e=('attribute:'+(_0x1a650c+'|'+Lt({'newValue':_0x4ff378})))['substring'](0x0,0x3c),_0x2e4014=this['_setSuggestionData']({'id':_0x59d139,'type':_0x5bf73e,'data':_0x24e0d2,'createdAt':new Date(),'authorId':_0xde8c5c,'attributes':_0x24dc35});_0x4f8ffb['push'](_0x2e4014),this['_addSuggestionMarker'](_0x5bf73e,_0x59d139,_0xde8c5c,_0x5b2997);}return _0x4f8ffb;}['enableDefaultAttributesIntegration'](_0x1bb1ba){this['enableCommand'](_0x1bb1ba,(_0x3ee12e,..._0x3bbda2)=>{this['recordAttributeChanges'](()=>{_0x3ee12e(..._0x3bbda2);});});}['registerBlockAttribute'](_0x27181e){this['_blockAttributeKeys']['add'](_0x27181e);}['registerInlineAttribute'](_0x48943d){this['_inlineAttributeKeys']['add'](_0x48943d);}['startTrackingSession'](_0x4db8fe){return this['_trackingSessionId']=void 0x0!==_0x4db8fe?_0x4db8fe:_0x22223a(),this['_trackingSessionId'];}['_getAttributeKey'](_0x480646){return'attribute'==_0x480646['type']?_0x480646['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x552be2,_0x3bb23f){const _0x2529b3=_0x552be2['getFirstMarker']();this['_model']['change'](_0x174a93=>{_0x174a93['updateMarker'](_0x2529b3,{'range':_0x3bb23f});});}['_addThreadToSuggestion'](_0x49df7a){const _0xc66bfb=_0x49df7a['id'],_0x2c8e9f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xc66bfb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2c8e9f,'threadId':_0xc66bfb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x15b506=this['_commentsRepository']['getCommentThread'](_0xc66bfb);_0x15b506['unbind']('isRemovable'),_0x15b506['isRemovable']=!0x1,_0x49df7a['commentThread']=_0x15b506;}['_checkSuggestionCorrectness'](_0x15c441,_0x5d9407,_0x40636e,_0x43e34c){if(_0x15c441['type']!=_0x5d9407||_0x15c441['subType']!=_0x40636e||_0x15c441['creator']['id']!=_0x43e34c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x19b862('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1766e9,_0x215a85){const _0x2239c6=_0x1766e9['getFirstRange']();if(_0x215a85['isEqual'](_0x2239c6))_0x1766e9['removeMarkers']();else{if(_0x2239c6['containsRange'](_0x215a85)){const _0x5a6061=this['_model']['createPositionAt'](_0x215a85['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1766e9,this['_model']['createRange'](_0x2239c6['start'],_0x5a6061));const _0x96819e=_0x22223a(),_0x2fbf00=_0x1766e9['creator']['id'],_0x52c49e=_0x1766e9['type']+':'+_0x1766e9['subType'];this['_setSuggestionData']({'id':_0x96819e,'type':_0x52c49e,'createdAt':new Date(),'authorId':_0x2fbf00,'data':_0x1766e9['data'],'attributes':_0x1766e9['attributes']});const _0x48be62=this['_model']['createPositionAt'](_0x215a85['end']['parent'],'after'),_0x46d1d2=this['_model']['createRange'](_0x48be62,_0x2239c6['end']);this['_addSuggestionMarker'](_0x52c49e,_0x96819e,_0x2fbf00,_0x46d1d2);}else{if(_0x2239c6['containsPosition'](_0x215a85['start'])){const _0x286136=this['_model']['createPositionAt'](_0x215a85['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1766e9,this['_model']['createRange'](_0x2239c6['start'],_0x286136));}else{const _0xc45702=this['_model']['createPositionAt'](_0x215a85['end']['parent'],'after');this['_setSuggestionRange'](_0x1766e9,this['_model']['createRange'](_0xc45702,_0x2239c6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x11a0bd){for(const {suggestion:_0x294585,meta:_0x1c199e}of this['_findSuggestions'](_0x11a0bd,'insertion')){if(!_0x1c199e['isOwn'])continue;const _0x514fdd=_0x294585['getRanges']();for(const _0x586923 of _0x514fdd)if(!_0x11a0bd['getDifference'](_0x586923)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x53bfac){const _0x4fba67=this['editor']['plugins']['get']('Users')['getUser'](_0x53bfac);if(!_0x4fba67)throw new _0x19b862('track-changes-user-not-found',this);return _0x4fba67;}['_getExternalAuthor'](_0x323bcc){const _0x50df3b=this['editor']['plugins']['get']('Users'),_0x28a675=_0x51d884('external:'+_0x323bcc),_0x1cfe91=_0x50df3b['getUser'](_0x28a675);return _0x1cfe91||_0x50df3b['addUser']({'id':_0x28a675,'name':_0x323bcc});}['_createSuggestion'](_0x33fcf8,_0x12b5a1,_0x2565c1,_0x4c9ffa,_0x44d12a,_0x4bfba4){const _0x12ee0b=this['_getAuthorFromId'](_0x4c9ffa),_0x4b822a=this['_suggestionFactory']['buildSuggestion'](_0x33fcf8,_0x12b5a1,_0x2565c1,_0x12ee0b,_0x44d12a,_0x52c0b2=>{this['_updateSuggestionData'](_0x2565c1,{'attributes':_0x52c0b2});const _0x1e255f=this['getSuggestion'](_0x2565c1);this['_joinWithAdjacentSuggestions'](new Set([_0x1e255f])),this['_refreshSuggestionsChain'](new Set([_0x1e255f]));},_0x4bfba4);return this['listenTo'](_0x4b822a,'accept',()=>{this['_updateSuggestionData'](_0x2565c1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4b822a,'discard',()=>{this['_updateSuggestionData'](_0x2565c1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2565c1,_0x4b822a),this['_suggestionState']['set'](_0x4b822a,'notReady'),_0x4b822a;}['_splitMarkerName'](_0x3a2820){const _0x109dda=_0x3a2820['split'](':');return{'group':_0x109dda[0x0],'type':_0x109dda[0x1],'subType':_0x109dda['length']>=0x5?_0x109dda[0x2]:null,'id':_0x109dda['length']<0x5?_0x109dda[0x2]:_0x109dda[0x3],'authorId':_0x109dda['length']<0x5?_0x109dda[0x3]:_0x109dda[0x4],'markerCount':0x6==_0x109dda['length']?_0x109dda[0x5]:null};}['_breakSuggestionMarker'](_0x527620,_0x2ece5e,_0x9b090){const _0x2c3849=_0x527620['getFirstRange'](),_0x5209ad=_0x2c3849['start'],_0x1a21de=_0x2c3849['end'];this['_setSuggestionRange'](_0x527620,this['_model']['createRange'](_0x5209ad,_0x2ece5e));const _0x2aa624=_0x22223a(),_0x589f30=_0x527620['creator']['id'],_0x1316f7=_0x527620['type']+(_0x527620['subType']?':'+_0x527620['subType']:'');this['_setSuggestionData']({'id':_0x2aa624,'type':_0x1316f7,'createdAt':new Date(),'authorId':_0x589f30,'originalSuggestionId':_0x527620['_originalSuggestionId']||_0x527620['id'],'attributes':_0x527620['attributes'],'data':_0x527620['data']});const _0x47051e=this['_getAttributeKey'](_0x527620);('formatBlock'==_0x527620['type']||_0x47051e&&this['_isBlockAttribute'](_0x47051e))&&(_0x9b090=this['_model']['createPositionBefore'](_0x9b090['parent'])),this['_addSuggestionMarker'](_0x1316f7,_0x2aa624,_0x589f30,this['_model']['createRange'](_0x9b090,_0x1a21de));}['_findSuggestions'](_0x405575,_0x25a5bd=null){const _0x35a875=[],_0x426111=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x405575)||(_0x405575=[_0x405575]);for(const _0x139619 of this['getSuggestions']()){if(!_0x139619['isInContent'])continue;if(_0x25a5bd&&_0x139619['type']!=_0x25a5bd)continue;let _0x4a4388=!0x1;for(const _0x3f3289 of _0x139619['getRanges']()){for(const _0x3ed87c of _0x405575){const _0x3d293d=_0x3ed87c['start']['isEqual'](_0x3f3289['end'])||_0x3ed87c['end']['isEqual'](_0x3f3289['start']);if(_0x3d293d||_0x3ed87c['getIntersection'](_0x3f3289)){const _0x1b2db8=_0x3ed87c['containsRange'](_0x3f3289)&&Ft(this['_model']['schema'],_0x3f3289['start'],_0x3ed87c),_0x65cca=_0x3f3289['containsRange'](_0x3ed87c)&&Ft(this['_model']['schema'],_0x3ed87c['start'],_0x3f3289);_0x35a875['push']({'suggestion':_0x139619,'meta':{'isOwn':_0x426111==_0x139619['author'],'isNextTo':_0x3d293d,'isInsideObject':_0x1b2db8,'containsRangeInObject':_0x65cca}}),_0x4a4388=!0x0;break;}}if(_0x4a4388)break;}}return _0x35a875;}['_addSuggestionMarker'](_0x27c56d,_0x2aab2d,_0xe4f818,_0x46d97d,_0x38d1d2){this['_model']['change'](_0x2e0f0d=>{let _0x5c139a='suggestion:'+_0x27c56d+':'+_0x2aab2d+':'+_0xe4f818;_0x38d1d2&&(_0x5c139a=_0x5c139a+':'+_0x38d1d2),_0x2e0f0d['addMarker'](_0x5c139a,{'range':_0x46d97d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5be381){const _0x5504f1=_0x5be381['previous'],_0x2df175=_0x5be381['next'];_0x5be381['previous']=null,_0x5be381['next']=null,null!=_0x5504f1&&_0x5504f1['next']==_0x5be381&&(_0x5504f1['next']=_0x2df175),null!=_0x2df175&&_0x2df175['previous']==_0x5be381&&(_0x2df175['previous']=_0x5504f1),'ready'==this['_suggestionState']['get'](_0x5be381)&&(this['_suggestionState']['set'](_0x5be381,'removed'),this['fire']('suggestionUnloaded',_0x5be381,_0x5504f1,_0x2df175));}['_setSuggestionData'](_0x180006){const _0x4a847c=_0x180006['id'],_0x100352=this['addSuggestionData'](_0x180006);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2139ac=this['editor']['plugins']['get']('PendingActions'),_0x484b1e=_0x100352['hasComments'],_0x4139fd=_0x100352['subType']?_0x100352['type']+':'+_0x100352['subType']:_0x100352['type'],_0x23a253=this['editor']['locale'],_0xcbb2ee=_0x2139ac['add'](o(_0x23a253,'PENDING_ACTION_SUGGESTION')),_0x5731ca={'id':_0x4a847c,'type':_0x4139fd,'hasComments':_0x484b1e,'data':_0x180006['data']||null,'originalSuggestionId':_0x180006['originalSuggestionId']||null,'attributes':_0x100352['attributes']};this['_adapter']['addSuggestion'](_0x5731ca)['then'](_0x53b422=>{_0x100352['_saved']=!0x0,_0x2139ac['remove'](_0xcbb2ee),_0x53b422&&_0x53b422['createdAt']&&(this['_suggestions']['get'](_0x4a847c)['createdAt']=_0x53b422['createdAt']);})['catch'](_0x3d2010=>{throw _0x5ac787('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x100352['discard']();}),_0x100352['stopListening'](),this['_suggestions']['delete'](_0x100352['id']),this['_suggestionState']['delete'](_0x100352),_0x3d2010;});}return _0x100352;}['_isBlockAttribute'](_0x140793){return this['_blockAttributeKeys']['has'](_0x140793);}['_updateSuggestionData'](_0x37541f,_0x46f673){const _0x31bc1f=this['editor']['plugins']['get']('PendingActions'),_0x479fbe=this['getSuggestion'](_0x37541f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x479fbe['_saved']){const _0x48d560=_0x31bc1f['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x37541f,_0x46f673)['then'](()=>{_0x31bc1f['remove'](_0x48d560);});}else _0x479fbe['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x37541f,_0x46f673);});}}['_getSuggestionData'](_0x241213){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x19b862('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x241213);}['_handleNewSuggestionMarker'](_0x2e8faa){const {id:_0x3fefbd,type:_0x437388,subType:_0xdbc7b8,authorId:_0xfcbf7b}=this['_splitMarkerName'](_0x2e8faa),_0x4a3d1f=this['_suggestions']['get'](_0x3fefbd)||this['_createSuggestion'](_0x437388,_0xdbc7b8,_0x3fefbd,_0xfcbf7b,{});switch(this['_checkSuggestionCorrectness'](_0x4a3d1f,_0x437388,_0xdbc7b8,_0xfcbf7b),this['_suggestionState']['get'](_0x4a3d1f)){case'notReady':this['_getSuggestionData'](_0x3fefbd)['then'](_0x3d98db=>{let _0x585f06=Promise['resolve']();_0x3d98db['hasComments']&&(_0x585f06=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3fefbd})),_0x585f06['then'](()=>{this['addSuggestionData'](_0x3d98db)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4a3d1f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3fefbd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4a3d1f,'ready'),this['fire']('suggestionLoaded',_0x4a3d1f);break;case'ready':this['fire']('suggestionChanged',_0x4a3d1f);}return _0x4a3d1f['addMarkerName'](_0x2e8faa),_0x4a3d1f;}['_refreshSuggestionsChain'](_0x27bc59){const _0x3f4f68=Array['from'](_0x27bc59),_0x305e72=_0x3f4f68['filter'](_0x3e7ed1=>'attribute'==_0x3e7ed1['type']);this['_refreshAttributeSuggestionsChain'](_0x305e72);const _0x3c01b8=_0x3f4f68['filter'](_0x5f5027=>!_0x5f5027['isMultiRange']&&'attribute'!=_0x5f5027['type']),_0x148c5a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3494bb=>!_0x3494bb['isMultiRange']&&'attribute'!=_0x3494bb['type']),_0x5cbc41=_0x148c5a['filter'](_0x22a884=>!_0x27bc59['has'](_0x22a884)),_0x396b8a=new Map(_0x148c5a['map'](_0xa513ca=>[_0xa513ca,this['_suggestionFactory']['getSuggestionCallback'](_0xa513ca['type'],_0xa513ca['subType'],'chain')])),_0x34a0bc=new Map(_0x148c5a['map'](_0x154752=>[_0x154752,_0x154752['getFirstRange']()])),_0x12731a=new Set(),_0x1f4297=new Set();for(let _0x1e833e=0x0;_0x1e833e<_0x3c01b8['length'];_0x1e833e++)_0x5b71d5(_0x3c01b8[_0x1e833e],_0x3c01b8,_0x1e833e+0x1);for(let _0x3a307d=0x0;_0x3a307d<_0x3c01b8['length'];_0x3a307d++)_0x5b71d5(_0x3c01b8[_0x3a307d],_0x5cbc41,0x0);const _0x139e1d=new Set();for(let _0xda5da2=0x0;_0xda5da2<_0x3c01b8['length'];_0xda5da2++){const _0x4c9f7d=_0x3c01b8[_0xda5da2];!_0x1f4297['has'](_0x4c9f7d)&&_0x4c9f7d['previous']&&(_0x139e1d['add'](_0x4c9f7d['previous']),_0x4c9f7d['previous']['next']===_0x4c9f7d&&(_0x4c9f7d['previous']['next']=null),_0x4c9f7d['previous']=null),!_0x12731a['has'](_0x4c9f7d)&&_0x4c9f7d['next']&&(_0x139e1d['add'](_0x4c9f7d['next']),_0x4c9f7d['next']['previous']===_0x4c9f7d&&(_0x4c9f7d['next']['previous']=null),_0x4c9f7d['next']=null);}function _0x5b71d5(_0x53cd06,_0x1ab56b,_0x21fa94){for(let _0x5af0f7=_0x21fa94;_0x5af0f7<_0x1ab56b['length'];_0x5af0f7++){const _0xfe2f0a=_0x24f1bc(_0x53cd06,_0x1ab56b[_0x5af0f7]);_0xfe2f0a&&(_0xfe2f0a[0x0]['next']=_0xfe2f0a[0x1],_0xfe2f0a[0x1]['previous']=_0xfe2f0a[0x0],_0x12731a['add'](_0xfe2f0a[0x0]),_0x1f4297['add'](_0xfe2f0a[0x1]));}}function _0x24f1bc(_0x54e41c,_0x5d631f){if(_0x54e41c['author']['id']!==_0x5d631f['author']['id'])return null;const _0x42bdd4=_0x396b8a['get'](_0x54e41c)(_0x54e41c,_0x5d631f,_0x34a0bc['get'](_0x54e41c),_0x34a0bc['get'](_0x5d631f));if(!_0x42bdd4)return null;return _0x396b8a['get'](_0x5d631f)(_0x54e41c,_0x5d631f,_0x34a0bc['get'](_0x54e41c),_0x34a0bc['get'](_0x5d631f))?_0x42bdd4[0x1]['commentThread']&&_0x42bdd4[0x1]['commentThread']['length']?null:_0x42bdd4:null;}_0x139e1d['size']&&this['_refreshSuggestionsChain'](_0x139e1d);}['_refreshAttributeSuggestionsChain'](_0x2b98c2){if(0x0==_0x2b98c2['length'])return;const _0x156a37=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1bd372=>'attribute'==_0x1bd372['type']&&_0x1bd372['_isDataLoaded']),_0x1bf377=[],_0x58cbed=new Map();for(const _0x3f3881 of _0x156a37){const _0x1485c1=_0x51d884(_0x3f3881['attributes']);_0x58cbed['has'](_0x1485c1)||(_0x58cbed['set'](_0x1485c1,_0x1bf377['length']),_0x1bf377['push']([]));const _0x374648=_0x58cbed['get'](_0x1485c1);_0x1bf377[_0x374648]['push'](_0x3f3881);}!(function(){_0x1bf377['sort']((_0x29d8fd,_0x154b8e)=>{const _0x33ea5e=_0x29d8fd[0x0]['createdAt'],_0x35eb54=_0x154b8e[0x0]['createdAt'];return _0x33ea5e==_0x35eb54?_0x29d8fd[0x0]['attributes']['groupId']<_0x154b8e[0x0]['attributes']['groupId']?-0x1:0x1:_0x33ea5e<_0x35eb54?-0x1:0x1;});for(const _0xf430e9 of _0x1bf377)_0xf430e9['sort']((_0x53c134,_0x2af6cf)=>_0x53c134['id']<_0x2af6cf['id']?-0x1:0x1);}());for(let _0x582014=0x0;_0x582014<_0x1bf377['length'];_0x582014++){if(0x0==_0x1bf377[_0x582014]['length'])continue;const _0x37860e=[];for(let _0x2439d5=_0x582014+0x1;_0x2439d5<_0x1bf377['length'];_0x2439d5++)0x0!=_0x1bf377[_0x2439d5]['length']&&_0xfc41fa(_0x1bf377[_0x582014],_0x1bf377[_0x2439d5])&&_0x37860e['push'](_0x2439d5);for(const _0xe1898d of _0x37860e)_0x1bf377[_0x582014]=_0x1bf377[_0x582014]['concat'](_0x1bf377[_0xe1898d]),_0x1bf377[_0xe1898d]=[];}for(const _0x7cd762 of _0x1bf377)for(let _0x108388=0x0;_0x108388<_0x7cd762['length'];_0x108388++){const _0xa6cde4=_0x7cd762[_0x108388+0x1]||null;_0x7cd762[_0x108388]['next']!==_0xa6cde4&&(_0x7cd762[_0x108388]['next']=_0xa6cde4);}for(const _0x308cdd of _0x1bf377)for(let _0x9dffab=0x0;_0x9dffab<_0x308cdd['length'];_0x9dffab++){const _0x119ad0=_0x308cdd[_0x9dffab-0x1]||null;_0x308cdd[_0x9dffab]['previous']!==_0x119ad0&&(_0x308cdd[_0x9dffab]['previous']=_0x119ad0);}function _0xfc41fa(_0x1fd315,_0x11df7e){if(_0x1fd315[0x0]['attributes']['groupId']!==_0x11df7e[0x0]['attributes']['groupId']&&_0x1fd315[0x0]['author']!==_0x11df7e[0x0]['author'])return!0x1;if(!function(_0x230ec0,_0xac32bd){if(!_0x230ec0['hasComments']&&!_0xac32bd['hasComments'])return!0x0;if(_0x230ec0['hasComments']&&_0xac32bd['hasComments'])return!0x1;if(_0x230ec0['hasComments']&&_0xac32bd['createdAt']<_0x230ec0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xac32bd['hasComments']&&_0x230ec0['createdAt']<_0xac32bd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1fd315[0x0],_0x11df7e[0x0]))return!0x1;const _0x1ea7c6=Ut(_0x1fd315[0x0]['attributes'],['groupId','trackingSessionId']),_0x37ddbf=Ut(_0x11df7e[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1ced7c(_0x1ea7c6,_0x37ddbf))return!0x1;if(_0x1fd315[0x0]['attributes']['groupId']==_0x11df7e[0x0]['attributes']['groupId'])return!0x0;if(_0x1fd315[0x0]['attributes']['trackingSessionId']!==_0x11df7e[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1fd315['every'](_0x16cc10=>_0x11df7e['some'](_0x4faecf=>_0x16cc10['getFirstRange']()['isEqual'](_0x4faecf['getFirstRange']())))&&_0x11df7e['every'](_0x28b3d1=>_0x1fd315['some'](_0x18045f=>_0x28b3d1['getFirstRange']()['isEqual'](_0x18045f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5b706f){const _0x2ecf9f=Array['from'](_0x5b706f),_0x2ef2d2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x38d657=_0x2ef2d2['filter'](_0xda3ab2=>!_0x5b706f['has'](_0xda3ab2)),_0x499e62=new Map(_0x2ecf9f['map'](_0x474087=>[_0x474087,this['_suggestionFactory']['getSuggestionCallback'](_0x474087['type'],_0x474087['subType'],'join')])),_0x146a5c=new Map(_0x2ef2d2['map'](_0x17a5ed=>[_0x17a5ed,_0x17a5ed['getRanges']()]));for(let _0x258105=0x0;_0x258105<_0x2ecf9f['length'];_0x258105++){if(_0x28f583(this,_0x2ecf9f[_0x258105],_0x2ecf9f,_0x258105+0x1))return!0x0;}for(let _0x737a0d=0x0;_0x737a0d<_0x2ecf9f['length'];_0x737a0d++){if(_0x28f583(this,_0x2ecf9f[_0x737a0d],_0x38d657,0x0))return!0x0;}return!0x1;function _0x28f583(_0x37352d,_0x145e3f,_0x255bb6,_0x1305a3){for(let _0x20e443=_0x1305a3;_0x20e443<_0x255bb6['length'];_0x20e443++){const _0xdb49f2=_0x255bb6[_0x20e443];if(_0xdb49f2['type']!==_0x145e3f['type']||_0xdb49f2['author']['id']!==_0x145e3f['author']['id']||_0xdb49f2['subType']!==_0x145e3f['subType'])continue;if(!Wt(_0x145e3f,_0xdb49f2))continue;if('attribute'==_0x145e3f['type']&&_0x145e3f['data']['oldValue']!=_0xdb49f2['data']['oldValue'])continue;if('attribute'==_0x145e3f['type']&&_0x37352d['_isBlockAttribute'](_0x145e3f['data']['key']))continue;if('formatBlock'==_0x145e3f['type']){const _0x2068d5=_0x37352d['editor']['model'],_0x62cd0d=_0x145e3f['getContainedElement']();if(_0x62cd0d&&(_0x2068d5['schema']['isObject'](_0x62cd0d)||_0x2068d5['schema']['isLimit'](_0x62cd0d)))continue;}const _0x45627f=_0x499e62['get'](_0x145e3f),_0x353de2=_0x146a5c['get'](_0x145e3f),_0x5e2c47=_0x146a5c['get'](_0xdb49f2),_0x5052bf=_0x145e3f['commentThread']&&_0x145e3f['commentThread']['length'],_0x45e767=_0xdb49f2['commentThread']&&_0xdb49f2['commentThread']['length'];if(!_0x5052bf&&_0x45627f(_0x5e2c47,_0x353de2))return _0x37352d['_joinSuggestions'](_0xdb49f2,_0x145e3f),_0x146a5c['delete'](_0x145e3f),!0x0;if(!_0x45e767&&_0x45627f(_0x353de2,_0x5e2c47))return _0x37352d['_joinSuggestions'](_0x145e3f,_0xdb49f2),_0x146a5c['delete'](_0xdb49f2),!0x0;}return!0x1;}}['_joinSuggestions'](_0x511d30,_0x3c7a6b){if(_0x511d30['isMultiRange']){for(const _0x1b5b8f of _0x3c7a6b['getRanges']())_0x511d30['addRange'](_0x1b5b8f);}else{const _0x2e0ca7=_0x3c7a6b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x511d30,this['_model']['createRange'](_0x511d30['getFirstRange']()['start'],_0x2e0ca7));}_0x3c7a6b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x35a073,_0x3445c4,_0xe89e1d){const _0x36b551=_0x35a073['startsWith']('format')||_0x35a073['startsWith']('attribute')?'FORMATTING':_0x35a073['toUpperCase']();return o(this['editor']['locale'],_0x3445c4+'_'+_0x36b551+'_SUGGESTION_ANNOUNCEMENT',_0xe89e1d);}['_initAriaMarkerChangeAnnouncements'](){const _0x20755f=this['editor'];if(!_0x20755f['ui'])return;const {ariaLiveAnnouncer:_0x597011}=_0x20755f['ui'];_0x4124c9(this['_model'],({left:_0x38be8a,entered:_0x2be4f5})=>{for(const _0x50a49c of _0x38be8a){const {group:_0x4a3424,type:_0x28bf08}=this['_splitMarkerName'](_0x50a49c['name']);if('suggestion'===_0x4a3424){_0x597011['announce'](this['_getMarkerAnnouncementText'](_0x28bf08,'LEAVE'));break;}}for(const _0x58a556 of _0x2be4f5){const {group:_0xecd8f9,type:_0x42e2cc}=this['_splitMarkerName'](_0x58a556['name']);if('suggestion'===_0xecd8f9){_0x597011['announce'](this['_getMarkerAnnouncementText'](_0x42e2cc,'ENTER',_0x4b4623(_0x50d6b0)));break;}}});}['_processAttributeChanges'](_0x51eeb5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x53d241=this['editor'],_0x43d778=_0x53d241['model']['document']['differ']['getChanges']();if(0x0==_0x43d778['length'])return!0x1;const _0x156792=[],_0x2c3c1f=_0x43d778['filter'](_0x399286=>'attribute'==_0x399286['type']),_0x163a66=_0x43d778['filter'](_0x535e20=>'insert'==_0x535e20['type']&&'$text'!=_0x535e20['name']),_0x2fcfc4=_0x43d778['filter'](_0x33401e=>'remove'==_0x33401e['type']&&'$text'!=_0x33401e['name']);for(const _0x5a12c8 of _0x2c3c1f)_0x156792['push']({'key':_0x5a12c8['attributeKey'],'newValue':_0x5a12c8['attributeNewValue'],'oldValue':_0x5a12c8['attributeOldValue'],'range':Ht(_0x5a12c8['range'],_0x53d241['model'])});for(const _0x107f0b of _0x163a66){const _0x13b64a=_0x2fcfc4['find'](_0x3e843d=>_0x3e843d['position']['isEqual'](_0x107f0b['position']));_0x13b64a&&_0x156792['push']({'key':m,'newValue':_0x107f0b['name'],'oldValue':_0x13b64a['name'],'range':_0x53d241['model']['createRangeOn'](_0x107f0b['position']['nodeAfter'])});}return 0x0!=_0x156792['length']&&this['_reduceExistingSuggestions'](_0x51eeb5,_0x156792);}['_processAttributeSuggestions'](_0x2a7700){let _0x53b11a=!0x1;const _0x187d6d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x579e9=>_0x579e9['data']['newRange']&&_0x579e9['name']['startsWith']('suggestion:attribute:'));for(const _0x47b700 of _0x187d6d){const {subType:_0x37ff5c,id:_0x3f5b57}=this['_splitMarkerName'](_0x47b700['name']),_0x505ba7=_0x37ff5c['split']('|')[0x0];for(const _0x932eaa of this['getSuggestions']({'skipNotAttached':!0x0}))_0x932eaa['id']!=_0x3f5b57&&'attribute'==_0x932eaa['type']&&_0x932eaa['data']&&_0x932eaa['data']['key']==_0x505ba7&&_0x932eaa['getFirstRange']()['isIntersecting'](_0x47b700['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x932eaa,_0x47b700['data']['newRange'],_0x2a7700),_0x53b11a=!0x0);}return _0x53b11a;}['recordAttributeChanges'](_0x22276a){this['_recordAttributeSuggestions']=!0x0,_0x22276a();}['_isRegisteredAttribute'](_0x3410a4){const _0x1e028a=this['_isBlockAttribute'](_0x3410a4),_0x1e5a23=this['_inlineAttributeKeys']['has'](_0x3410a4);return _0x1e028a||_0x1e5a23;}['_reduceExistingSuggestions'](_0x20fb62,_0x4cfd14){if(0x0==_0x4cfd14['length'])return!0x1;let _0x455f78=!0x1;for(const _0x4da4f4 of _0x4cfd14){const _0x17203a=this['_findSuggestions'](_0x4da4f4['range'],'attribute')['filter'](_0x4484ff=>!_0x4484ff['meta']['isNextTo'])['map'](_0x5180e7=>_0x5180e7['suggestion']),_0xbee554=_0x51d884({'newValue':_0x4da4f4['newValue']});_0x17203a['filter'](_0x5a9a00=>{const [_0x185371,_0x2016c6]=_0x5a9a00['subType']['split']('|');return _0x185371==_0x4da4f4['key']&&_0x2016c6!=_0xbee554;})['forEach'](_0x10d01c=>{this['_reduceSuggestionAttributeRange'](_0x10d01c,_0x4da4f4['range'],_0x20fb62),_0x455f78=!0x0;});}return _0x455f78;}['_reduceSuggestionAttributeRange'](_0xc998dd,_0x5b6aa4,_0x27f99d){const _0x4b0d27=_0xc998dd['getFirstRange']()['getDifference'](_0x5b6aa4);0x0!==_0x4b0d27['length']?0x1!==_0x4b0d27['length']?this['_breakSuggestionMarker'](_0xc998dd,_0x5b6aa4['start'],_0x5b6aa4['end']):this['_setSuggestionRange'](_0xc998dd,_0x4b0d27[0x0]):_0x27f99d['removeMarker'](_0xc998dd['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3d9371){this['_editor']=_0x3d9371,this['_model']=_0x3d9371['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x35ee34,_0x3af73d,_0x525305,_0x38a0a,_0x359d00,_0x1b84eb,_0xb9cd55){return new T(this['_model'],{'type':_0x35ee34,'subType':_0x3af73d,'id':_0x525305,'originalSuggestionId':_0xb9cd55,'author':_0x38a0a,'creator':_0x38a0a,'attributes':_0x359d00,'onAttributesChange':_0x1b84eb,'onAccept':(..._0x4f3758)=>this['getSuggestionCallback'](_0x35ee34,_0x3af73d,'accept')(..._0x4f3758),'onDiscard':(..._0x4f8e37)=>this['getSuggestionCallback'](_0x35ee34,_0x3af73d,'discard')(..._0x4f8e37)});}['registerCustomCallback'](_0x391845,_0x52a3ce,_0x6f2d7b,_0x46613f){const _0x44df12=_0x391845+':'+_0x52a3ce+':'+_0x6f2d7b;this['_customCallbacks']['set'](_0x44df12,_0x46613f);}['getSuggestionCallback'](_0x26addd,_0x3fb5d1,_0x5b9541){const _0x2d1515=_0x26addd+':'+_0x3fb5d1+':'+_0x5b9541;return this['_customCallbacks']['get'](_0x2d1515)||this['_defaultCallbacks']['get'](_0x26addd+':'+_0x5b9541);}['_registerDefaultCallbacks'](){const _0xf2b55b=()=>!0x1,_0x46ef54=_0x180ad7=>{_0x180ad7['sort']((_0x49955d,_0x2979dc)=>_0x49955d['start']['isBefore'](_0x2979dc['start'])?0x1:-0x1),this['_model']['change'](_0x1bbca9=>{for(const _0x191b1f of _0x180ad7){let _0x1c5026;_0x1c5026=_0x191b1f['end']['isAtEnd']&&_0x191b1f['end']['parent']==_0x191b1f['start']['nodeAfter']?_0x1bbca9['createSelection'](_0x191b1f['start']['nodeAfter'],'on'):_0x1bbca9['createSelection'](_0x191b1f),this['_model']['deleteContent'](_0x1c5026,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3aec4b=(_0x53c6cb,_0x7be6b6)=>{_0x7be6b6&&this['_model']['change'](_0x2bb92c=>{const {commandName:_0x1658d2,commandParams:_0x5c2c05=[]}=_0x7be6b6,_0x40247e=_0x53c6cb['map'](_0x365c3a=>(Pt(_0x365c3a)&&(_0x365c3a=this['_model']['createRange'](_0x365c3a['end'])),_0x365c3a))['filter'](_0x5f45c2=>'$graveyard'!==_0x5f45c2['root']['rootName']);if(_0x40247e['length']<0x1)return;const _0x293730=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x278bc4=>_0x158d49['fromRange'](_0x278bc4));_0x2bb92c['setSelection'](_0x40247e);for(const _0x57a422 of this['_editor']['commands']['commands']())_0x57a422['refresh']();_0x5c2c05['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1658d2,..._0x5c2c05);const _0x31038e=_0x293730['filter'](_0x464327=>'$graveyard'!=_0x464327['root']['rootName']);_0x31038e['length']>0x0&&_0x2bb92c['setSelection'](_0x31038e);for(const _0x2586d6 of _0x293730)_0x2586d6['detach']();});},_0x110294=(_0x3b3e92,_0x3a81d7)=>0x1==_0x3b3e92['length']&&0x1==_0x3a81d7['length']&&_0x3b3e92[0x0]['end']['isEqual'](_0x3a81d7[0x0]['start']),_0x1ce9a1=(_0x37338a,_0x4280de,_0x48ab3b,_0x4e0fa8)=>zt(_0x37338a,_0x4280de,_0x48ab3b,_0x4e0fa8)?[_0x37338a,_0x4280de]:zt(_0x4280de,_0x37338a,_0x4e0fa8,_0x48ab3b)?[_0x4280de,_0x37338a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xf2b55b),this['_defaultCallbacks']['set']('insertion:discard',_0x46ef54),this['_defaultCallbacks']['set']('insertion:join',_0x110294),this['_defaultCallbacks']['set']('insertion:chain',_0x1ce9a1),this['_defaultCallbacks']['set']('deletion:accept',_0x46ef54),this['_defaultCallbacks']['set']('deletion:discard',_0xf2b55b),this['_defaultCallbacks']['set']('deletion:join',_0x110294),this['_defaultCallbacks']['set']('deletion:chain',_0x1ce9a1),this['_defaultCallbacks']['set']('formatInline:accept',_0x3aec4b),this['_defaultCallbacks']['set']('formatInline:discard',_0xf2b55b),this['_defaultCallbacks']['set']('formatInline:join',_0x110294),this['_defaultCallbacks']['set']('formatInline:chain',_0xf2b55b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3aec4b),this['_defaultCallbacks']['set']('formatBlock:discard',_0xf2b55b),this['_defaultCallbacks']['set']('formatBlock:join',_0x110294),this['_defaultCallbacks']['set']('formatBlock:chain',_0xf2b55b),this['_defaultCallbacks']['set']('attribute:accept',_0xf2b55b),this['_defaultCallbacks']['set']('attribute:discard',(_0x52ac6a,_0x478267)=>{if(!_0x478267)return;const _0x2ab868=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x120fbd=>{if(_0x478267['key']==m)for(const _0x147c04 of _0x52ac6a){const _0x4105b6=_0x147c04['start']['nodeAfter'],_0x13e926=_0x478267['oldValue'];_0x120fbd['rename'](_0x4105b6,_0x13e926);}else{if(_0x2ab868['_isBlockAttribute'](_0x478267['key'])){for(const _0x5f5190 of _0x52ac6a)void 0x0!==_0x478267['oldValue']?_0x120fbd['setAttribute'](_0x478267['key'],_0x478267['oldValue'],_0x5f5190['start']['nodeAfter']):_0x120fbd['removeAttribute'](_0x478267['key'],_0x5f5190['start']['nodeAfter']);}else{for(const _0x1f97d1 of _0x52ac6a)_0x478267['oldValue']?_0x120fbd['setAttribute'](_0x478267['key'],_0x478267['oldValue'],_0x1f97d1):_0x120fbd['removeAttribute'](_0x478267['key'],_0x1f97d1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x110294);}}function Ft(_0x18b09b,_0x477859,_0x46c8be){for(const _0x2f64e1 of _0x477859['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2f64e1['root']==_0x2f64e1)return!0x1;if(!_0x46c8be['containsItem'](_0x2f64e1))return!0x1;if(_0x18b09b['isObject'](_0x2f64e1)||_0x18b09b['isLimit'](_0x2f64e1))return!0x0;}return!0x1;}function Pt(_0x4df9aa){return _0x4df9aa['end']['parent']==_0x4df9aa['start']['nodeAfter']&&_0x4df9aa['end']['isAtStart'];}function Gt(_0x42f0ff,_0x216820,_0x24a38d,_0x3559cc){const _0x26fd33=_0x45914b=>!_0x45914b['item']['is']('$textProxy')&&!_0x3559cc['isObject'](_0x45914b['item']),_0x5d2100=_0x42f0ff['start']['getLastMatchingPosition'](_0x26fd33),_0x38a07c=_0x42f0ff['end']['getLastMatchingPosition'](_0x26fd33,{'direction':'backward'});return(!_0x42f0ff['start']['isEqual'](_0x5d2100)||!_0x42f0ff['end']['isEqual'](_0x38a07c))&&(_0x5d2100['isBefore'](_0x38a07c)?_0x24a38d['updateMarker'](_0x216820,{'range':_0x24a38d['createRange'](_0x5d2100,_0x38a07c)}):_0x24a38d['removeMarker'](_0x216820),!0x0);}function Lt(_0x336ad3){return _0x51d884(_0x336ad3);}function Jt(_0x1d0cf2){const _0xb3f5d1=_0x1d0cf2['start']['nodeAfter'];return _0xb3f5d1&&_0xb3f5d1['is']('element');}function Kt(_0xb8dcb5){return!Pt(_0xb8dcb5)&&!function(_0x220691){return _0x220691['start']['parent']==_0x220691['end']['nodeBefore']&&_0x220691['start']['isAtEnd'];}(_0xb8dcb5);}function Ht(_0x1f857b,_0x5dc1ac){return null==_0x1f857b['end']['nodeBefore']&&_0x1f857b['end']['parent']==_0x1f857b['start']['nodeAfter']?qt(_0x1f857b['start']['nodeAfter'],_0x5dc1ac):_0x1f857b;}function qt(_0x3484e4,_0x293f1f){const _0x37fd4e=_0x293f1f['schema']['isObject'](_0x3484e4)||_0x293f1f['schema']['isSelectable'](_0x3484e4);return _0x293f1f['createRange'](_0x293f1f['createPositionAt'](_0x3484e4,'before'),_0x37fd4e?_0x293f1f['createPositionAfter'](_0x3484e4):_0x293f1f['createPositionAt'](_0x3484e4,'end'));}function zt(_0x40b8a3,_0x4dbb80,_0x428bd1,_0x10488f){return!!Wt(_0x40b8a3,_0x4dbb80)&&_0x428bd1['end']['isEqual'](_0x10488f['start']);}function Wt(_0x38df53,_0x5dfcff){if(!_0x38df53['_isDataLoaded']||!_0x5dfcff['_isDataLoaded'])return!0x1;const _0x490d03=new Set(Object['keys'](_0x38df53['attributes'])),_0x6588a9=new Set(Object['keys'](_0x5dfcff['attributes']));if(_0x490d03['delete']('groupId'),_0x6588a9['delete']('groupId'),0x0==_0x490d03['size']&&0x0==_0x6588a9['size'])return!0x0;if(_0x490d03['size']!=_0x6588a9['size'])return!0x1;const _0x1de8c4={..._0x38df53['attributes']},_0x407d28={..._0x5dfcff['attributes']};return delete _0x1de8c4['groupId'],delete _0x407d28['groupId'],JSON['stringify'](_0x1de8c4)==JSON['stringify'](_0x407d28);}function Qt(_0x60b7f4,_0x5576f5){const _0x4805b3=Xt(_0x60b7f4['attributes']),_0x127e68=Xt(_0x5576f5);if(!_0x60b7f4['_isDataLoaded'])return!0x1;for(const _0x1277f5 of Object['keys'](_0x127e68))if(!_0x1ced7c(_0x4805b3[_0x1277f5],_0x127e68[_0x1277f5]))return!0x1;return!0x0;}function Xt(_0x4fe096){const _0x248309=Object['assign']({},_0x4fe096);return delete _0x248309['skipNestingCheck'],delete _0x248309['tablePasteChainId'],_0x248309;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x4af2b4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4b1c30,_0x1e83ef,_0x1a0522,_0x6af54e){super(),this['model']=_0x1e83ef,this['view']=_0x1a0522,this['commentThreadController']=_0x6af54e,this['_editor']=_0x4b1c30,this['_acceptCommand']=_0x4b1c30['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4b1c30['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3a5fc3,_0x4cb505)=>_0x3a5fc3||_0x4cb505),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1c19c3=>_0x1c19c3&&this['_editor']['model']['canEditAt'](_0x1e83ef['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x269443=>_0x269443&&this['_editor']['model']['canEditAt'](_0x1e83ef['getRanges']())),this['_pendingAction']=null,_0x1a0522['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1a0522,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1a0522,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1a0522,'change:isDirty',()=>{_0x1a0522['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 _0x488308=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x488308);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x2d8d59{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x9087ff,_0x5d9c7,_0x30bcaa,_0x154890){super(_0x9087ff),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5e3ac9(_0x9087ff,o(_0x9087ff,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5d9c7['authoredAt']),this['bind']('authoredAt')['to'](_0x5d9c7),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',_0x5d9c7,'authoredAt',this,'descriptionParts',(_0x2856c4,_0x68c236,_0x4a565f)=>{const _0x39cb0f=_0x4a565f['map'](_0x2f38ee=>ls(_0x2f38ee['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2856c4-0x1,_0x5d9c7['author']['name'],_0x68c236?_0x154890['formatDateTime'](_0x68c236):'',new DOMParser()['parseFromString'](_0x39cb0f,'text/html')['body']['textContent']]);}),this['focusables']=new _0xc8541d(),this['focusTracker']=new _0x49dfd9(),this['keystrokes']=new _0x47fd75(),this['focusCycler']=new _0x4ac438({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3ec4e5=>_0x3ec4e5['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5d9c7,this['_localUser']=_0x30bcaa,this['_config']=_0x154890,_0x154890['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x32d9f5(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x8349c4}=this['_config'];this['commentsListView']=new _0x8349c4(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',_0x44fa72=>_0x44fa72+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3f1913,_0x5c5617)=>_0x3f1913||!!_0x5c5617);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x533341}=this['_config'],_0x537fc0=new _0x533341(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x41df03=_0x537fc0['commentInputView'];return _0x537fc0['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x41df03,'value',(_0x26cb98,_0x2908e7,_0x3d754b)=>!!_0x3d754b||_0x26cb98&&!_0x2908e7),_0x41df03['on']('submit',(_0x211104,_0xc737b0)=>{this['fire']('addComment',_0xc737b0),_0x41df03['editor']['setData']('');}),_0x41df03['on']('cancel',()=>this['focus']()),_0x41df03['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x537fc0;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x38b5f9,_0x1c71d5,_0x336ddd,_0x1961c2){super(_0x38b5f9,_0x1c71d5,_0x336ddd,_0x1961c2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xa6580a=>_0xa6580a&&_0xa6580a[0x0]?_0xa6580a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x524d5c,_0x14149d)=>{let _0x2901cb='';for(const _0x1bf9f9 of _0x524d5c)_0x2901cb+='<p>'+ls(_0x1bf9f9['content'],_0x1bf9f9['color'])+'</p>';return _0x14149d?_0x2901cb:_0x27347b(_0x2901cb,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1961c2['SuggestionView'](_0x38b5f9,_0x1c71d5,{'formatDateTime':_0x1961c2['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 _0x5c2dc0=this['bindTemplate'],_0x20c57f=[this['suggestionView']];return this['commentsListView']&&_0x20c57f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x20c57f['push'](this['commentThreadInputView']),_0x20c57f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5c2dc0['if']('isActive','ck-suggestion-wrapper--active'),_0x5c2dc0['to']('type',_0x289147=>'ck-suggestion-'+_0x289147),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':_0x5c2dc0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x20c57f};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x2d8d59{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3e375b,_0x167fb4,_0x4a0fe7){super(_0x3e375b),this['_model']=_0x167fb4,this['_config']=_0x4a0fe7,this['set']('description',''),this['bind']('authoredAt')['to'](_0x167fb4),this['acceptButton']=this['_createButton'](o(_0x3e375b,'Accept\x20suggestion'),_0x317a1a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3e375b,'Discard\x20suggestion'),_0x1efdbd,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x241076(_0x3e375b,_0x167fb4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xc8541d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x49dfd9(),this['keystrokes']=new _0x47fd75(),this['focusCycler']=new _0x4ac438({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x46341b=>_0x46341b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x44d1e4=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x44d1e4['innerHTML']=this['description'],this['on']('change:description',(_0x1c24e7,_0x52d8ca,_0xfbe7fb)=>{_0x44d1e4['innerHTML']=_0xfbe7fb;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5bed82=this['bindTemplate'],_0x2a9fbd=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x5bed82['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5bed82['to']('authoredAt',_0x375f79=>this['_config']['formatDateTime'](_0x375f79))}]}]},{'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']&&_0x2a9fbd['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':_0x2a9fbd}]};}['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'](_0x1f8bcd,_0x3f00a9,_0x2e5985,_0x3a1c4b,_0x1d2400){const _0x2cf10b=new _0x55ec27(this['locale']);return _0x2cf10b['set']({'label':_0x1f8bcd,'icon':_0x3f00a9,'tooltip':!0x0,'tooltipPosition':_0x1d2400}),_0x2cf10b['extendTemplate']({'attributes':{'class':_0x2e5985}}),_0x2cf10b['on']('execute',()=>{this['fire'](_0x3a1c4b,this['_model']['id']);}),_0x2cf10b;}['_setupKeyboardNavigation'](){const _0x2c09bd=this['element'];this['keystrokes']['listenTo'](_0x2c09bd);for(const _0x4cbeda of this['focusables'])this['focusTracker']['add'](_0x4cbeda['element']),this['keystrokes']['listenTo'](_0x4cbeda['element']);this['keystrokes']['set']('enter',(_0x1422f2,_0x10f308)=>{_0x2c09bd===_0x1422f2['target']&&(this['focusCycler']['focusFirst'](),_0x10f308());}),this['keystrokes']['set']('esc',(_0x2a856d,_0x114e81)=>{_0x2c09bd!==_0x2a856d['target']&&(this['focus'](),_0x114e81());});}}class u extends _0x13e452{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x56d1a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31c125){super(_0x31c125),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x40c70d=this['editor']['config'];_0x40c70d['define']('trackChanges.SuggestionThreadView',fe),_0x40c70d['define']('trackChanges.SuggestionView',we),_0x40c70d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x40c70d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x56302a,_0xc6baef){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4379f6,_0x443273]of this['_handleControllerBuffer']){const _0x282309=this['_suggestionToController']['has'](_0x4379f6);_0x282309||_0x443273?_0x282309&&_0x443273&&this['_destroyController'](_0x4379f6):this['_initializeController'](_0x4379f6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x56302a,_0xc6baef);}['init'](){const _0x24d26d=this['editor'],_0x399454=_0x24d26d['plugins']['get']('TrackChangesEditing'),_0x2d5180=_0x24d26d['plugins']['get']('Annotations'),_0x52105e=_0x24d26d['plugins']['get']('EditorAnnotations'),_0x4bea3c=_0x24d26d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x52105e['addSourceCollector'](()=>{const _0x31db03=[];for(const [_0x547d4c,_0x10edfc]of Array['from'](this['_suggestionToController'])){const _0x446a8e=_0x547d4c['getAllAdjacentSuggestions'](),_0x1aaeec=[];for(const _0x324cf2 of _0x446a8e){if(!_0x324cf2['isInContent'])continue;if(_0x324cf2['isMultiRange']){_0x1aaeec['push'](..._0x324cf2['getRanges']());continue;}const _0x55125e=_0x324cf2['getFirstRange']();if(_0x1aaeec['length']>0x0){const _0x1fc97e=_0x1aaeec[0x0]['getJoined'](_0x55125e);if(_0x1fc97e){_0x1aaeec[0x0]=_0x1fc97e;continue;}}_0x1aaeec['push'](_0x55125e);}_0x31db03['push']([_0x10edfc['view'],_0x1aaeec]);}return _0x31db03;}),this['listenTo'](_0x399454,'suggestionLoaded',(_0x22056c,_0x3c1927)=>{this['listenTo'](_0x3c1927,'change:previous',(_0x44a560,_0x26cb00,_0x35d692,_0x1fb5ce)=>{_0x3c1927['isInContent']&&(null==_0x35d692?(this['_updateController'](_0x1fb5ce['head']),this['_handleSuggestionControllerDelayed'](_0x3c1927,!0x1)):(this['_updateController'](_0x35d692['head']),null==_0x1fb5ce&&this['_handleSuggestionControllerDelayed'](_0x3c1927,!0x0)));}),null!==_0x3c1927['previous']?this['_updateController'](_0x3c1927['head']):this['_handleSuggestionControllerDelayed'](_0x3c1927,!0x1);}),this['listenTo'](_0x399454,'suggestionUnloaded',(_0x4ee85d,_0x576a97,_0x13c1dc)=>{this['stopListening'](_0x576a97,'change:previous'),this['_handleControllerBuffer']['delete'](_0x576a97),this['_suggestionToController']['has'](_0x576a97)&&this['_destroyController'](_0x576a97),_0x13c1dc&&this['_updateController'](_0x13c1dc['head']);}),this['listenTo'](_0x399454,'suggestionChanged',(_0x453c1f,_0x3ccada)=>{this['_updateController'](_0x3ccada);}),this['listenTo'](_0x2d5180,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4bea3c,'addComment',(_0x1c9b8a,{threadId:_0xc2493a,isFromAdapter:_0x5cd984})=>{if(_0x5cd984||!_0x399454['hasSuggestion'](_0xc2493a))return;const _0x4ed353=_0x399454['getSuggestion'](_0xc2493a);this['_suggestionToController']['get'](_0x4ed353)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xcfc080=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b3f30;for(const _0x253947 in _0xcfc080){const _0x3ceec1=_0x253947,_0xc5a869=_0xcfc080[_0x3ceec1];if('trackChangesLicenseKeyValid'==_0xc5a869||'trackChangesLicenseKeyInvalid'==_0xc5a869||'trackChangesLicenseKeyExpired'==_0xc5a869||'trackChangesLicenseKeyDomainLimit'==_0xc5a869||'trackChangesLicenseKeyNotAllowed'==_0xc5a869||'trackChangesLicenseKeyEvaluationLimit'==_0xc5a869||'trackChangesLicenseKeyTrialLimit'==_0xc5a869||'trackChangesLicenseKeyUsageLimit'==_0xc5a869){delete _0xcfc080[_0x3ceec1],_0x3b3f30=_0xc5a869,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3b3f30&&_0xcfc080['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3b3f30&&_0xcfc080['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3b3f30&&_0xcfc080['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3b3f30&&_0xcfc080['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3b3f30&&_0xcfc080['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3b3f30&&_0xcfc080['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3b3f30&&_0xcfc080['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x14303c){const _0x477cd4=this['_suggestionToController']['get'](_0x14303c);if(!_0x477cd4)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x477cd4['view'])||null;}['getSuggestionForAnnotation'](_0x5cb68e){const _0xc2dda3=this['_viewToController']['get'](_0x5cb68e['innerView']);return _0xc2dda3?_0xc2dda3['model']:null;}['_refreshActiveMarkers'](){const _0x2ab3b3=this['editor']['plugins']['get']('Annotations'),_0x506e59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31a180=Array['from'](_0x2ab3b3['activeAnnotations'],_0xb23b7f=>_0xb23b7f['innerView'])['filter'](_0x52ef81=>this['_viewToController']['has'](_0x52ef81)),_0x24e990=[];for(const _0x2df2e7 of _0x31a180){const _0x3c45bf=this['_viewToController']['get'](_0x2df2e7)['model']['getAllAdjacentSuggestions']();_0x24e990['push'](..._0x3c45bf['reduce']((_0x116372,_0x377a3f)=>[..._0x116372,..._0x377a3f['getMarkerNames']()],[]));}_0x506e59['activeMarkers']=_0x24e990;}['_addUIComponentsToFactory'](){const _0xfcf04=this['editor'],_0x1839b9=_0xfcf04['locale'],_0x5af520=o(_0x1839b9,'Track\x20changes'),_0x1589b1=new _0x5bf0cc([{'type':'switchbutton','model':new _0x518378({'withText':!0x0,'isToggleable':!0x0,'label':_0x5af520,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x518378({'withText':!0x0,'label':o(_0x1839b9,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x518378({'withText':!0x0,'label':o(_0x1839b9,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x518378({'withText':!0x0,'label':o(_0x1839b9,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x518378({'withText':!0x0,'label':o(_0x1839b9,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xfcf04['plugins']['has']('TrackChangesPreview')&&_0x1589b1['addMany']([{'type':'separator'},{'type':'button','model':new _0x518378({'withText':!0x0,'label':o(_0x1839b9,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xb4d785 of _0x1589b1)if(ke(_0xb4d785)){const _0x368e8b=_0xfcf04['commands']['get'](_0xb4d785['model']['commandName']);_0xb4d785['model']['bind']('isOn','isEnabled')['to'](_0x368e8b,'value','isEnabled');}_0xfcf04['ui']['componentFactory']['add']('trackChanges',_0x3c4922=>this['_createToolbarButton'](_0x3c4922,_0x1589b1,_0x5af520)),_0xfcf04['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5b5258=>this['_createMenuBarMenu'](_0x5b5258,_0x1589b1,_0x5af520));}['_createToolbarButton'](_0x327c0c,_0x5c1fa4,_0x5d2d93){const _0x5869c5=_0x366dc0(_0x327c0c,_0x2253af),_0x1c7e1b=this['editor']['commands']['get']('trackChanges');_0x5869c5['buttonView']['set']({'tooltip':_0x5d2d93,'label':_0x5d2d93,'icon':_0x13883d}),_0x5869c5['buttonView']['bind']('isOn')['to'](_0x1c7e1b,'value'),_0x5869c5['buttonView']['on']('execute',()=>{_0x1c7e1b['execute'](),this['editor']['editing']['view']['focus']();}),_0x6d9994(_0x5869c5,_0x5c1fa4,{'role':'menu'});const _0x4ff3b0=[];for(const _0x1a2e8c of _0x5c1fa4)ke(_0x1a2e8c)&&_0x4ff3b0['push'](this['editor']['commands']['get'](_0x1a2e8c['model']['commandName']));const _0x12703a=_0x5869c5['buttonView'];return _0x12703a['actionView']['unbind']('isEnabled'),_0x12703a['arrowView']['unbind']('isEnabled'),_0x12703a['actionView']['bind']('isEnabled')['to'](_0x1c7e1b,'isEnabled'),_0x12703a['arrowView']['bind']('isEnabled')['toMany'](_0x4ff3b0,'isEnabled',(..._0x13d95f)=>_0x13d95f['some'](_0xe996e6=>_0xe996e6)),_0x5869c5['on']('execute',_0x2d29c7=>{this['editor']['execute'](_0x2d29c7['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5869c5;}['_createMenuBarMenu'](_0x4475cb,_0x1ca724,_0x17fa5e){const _0x191686=new _0x1f0be0(_0x4475cb),_0x2a89b2=this['editor']['commands']['get']('trackChanges');_0x191686['buttonView']['set']({'label':_0x17fa5e,'icon':_0x13883d});const _0x3f90fc=new _0x2849be(_0x4475cb);for(const _0x5f3690 of _0x1ca724){if('separator'==_0x5f3690['type']){_0x3f90fc['items']['add'](new _0x43929d(_0x4475cb));continue;}const _0x2279a9=new _0x1fb5d9(_0x4475cb,_0x191686),_0x5a47e0=new _0x4d739d(_0x4475cb),_0x4964a6=_0x5f3690['model'];_0x5a47e0['bind'](...Object['keys'](_0x4964a6))['to'](_0x4964a6),_0x5a47e0['delegate']('execute')['to'](_0x191686),_0x5a47e0['on']('execute',()=>{this['editor']['execute'](_0x4964a6['commandName']),this['editor']['editing']['view']['focus']();}),_0x2279a9['children']['add'](_0x5a47e0),_0x3f90fc['items']['add'](_0x2279a9);}return _0x191686['bind']('isEnabled')['to'](_0x2a89b2,'isEnabled'),_0x191686['panelView']['children']['add'](_0x3f90fc),_0x191686;}['_initializeController'](_0x58b2b4){const _0x534736=this['editor'],_0x500333=_0x534736['config'],_0x1bc4f5=_0x534736['plugins']['get']('Annotations'),_0x1f0a70=_0x534736['plugins']['get']('CommentsRepository'),_0x37bc21=_0x534736['plugins']['get']('EditorAnnotations'),_0x177507=_0x534736['plugins']['get'](_0x56d1a)['me'],_0x24b90f=_0x500333['get']('trackChanges')['SuggestionThreadView'],_0x45b015=_0x500333['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4eb930,CommentThreadInputView:_0x325c19}=_0x534736['plugins']['get']('CommentsUI');let _0x12aa3c,_0x52edf3,_0x380bdb;this['_annotationViews']['has'](_0x58b2b4['id'])?(_0x52edf3=this['_annotationViews']['get'](_0x58b2b4['id']),_0x12aa3c=_0x52edf3['mainView']):(_0x12aa3c=new _0x24b90f(_0x534736['locale'],_0x58b2b4,_0x177507,{'disableComments':this['_disableComments'],'editorConfig':{..._0x500333['get']('comments.editorConfig'),'licenseKey':_0x500333['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x500333['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x500333['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x500333['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x45f341(_0x500333['get']('locale'),_0x534736['locale']),'CommentView':_0x500333['get']('comments')['CommentView'],'CommentsListView':_0x4eb930,'CommentThreadInputView':_0x325c19,'SuggestionView':_0x45b015}),_0x12aa3c['suggestionView']['acceptButton']['on']('execute',()=>{_0x534736['editing']['view']['focus']();}),_0x12aa3c['suggestionView']['discardButton']['on']('execute',()=>{_0x534736['editing']['view']['focus']();}),_0x52edf3=_0x1bc4f5['createAnnotationView'](this['editor']['locale'],_0x12aa3c),_0x52edf3['bind']('isDirty')['to'](_0x12aa3c,'isDirty'),_0x52edf3['bind']('length')['to'](_0x12aa3c),_0x52edf3['bind']('type')['to'](_0x12aa3c,'type',_0x4d3e7b=>'suggestion-'+_0x4d3e7b),_0x12aa3c['on']('escape',()=>{_0x380bdb['fire']('escape');}),this['_annotationViews']['set'](_0x58b2b4['id'],_0x52edf3));const _0x5d47ba=_0x1f0a70['createCommentThreadController'](_0x58b2b4['commentThread'],_0x12aa3c),_0x23106b=new pe(_0x534736,_0x58b2b4,_0x12aa3c,_0x5d47ba),_0x5b7abf=_0x58b2b4['getAllAdjacentSuggestions']()['filter'](_0x3bcb44=>_0x3bcb44['isInContent']);_0x12aa3c['descriptionParts']=_0x534736['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5b7abf),this['_suggestionToController']['set'](_0x58b2b4,_0x23106b),this['_viewToController']['set'](_0x12aa3c,_0x23106b),_0x380bdb=_0x1bc4f5['createAnnotation']({'view':_0x52edf3,'target':()=>{const _0x3c65d2=[],_0x70bedd=_0x58b2b4['getAllAdjacentSuggestions']()['filter'](_0x5a91dc=>_0x5a91dc['isInContent']);for(const _0x32a929 of _0x70bedd)_0x3c65d2['push'](..._0x32a929['getMarkers']());return _0x1dfa67(_0x534736['editing'],_0x3c65d2);},'type':()=>'suggestion-'+_0x23106b['view']['type']}),_0x1f0a70['_bindAnnotationToEditors'](_0x12aa3c,_0x380bdb),_0x1bc4f5['add'](_0x380bdb),_0x37bc21['registerAnnotation'](_0x380bdb);}['_destroyController'](_0x1bdb21){const _0x195917=this['editor']['plugins']['get']('CommentsRepository'),_0x17cd3a=this['editor']['plugins']['get']('Annotations'),_0x2cb2fa=this['_suggestionToController']['get'](_0x1bdb21),_0x4a754f=_0x2cb2fa['view'],_0x5dfb0d=_0x17cd3a['getByInnerView'](_0x4a754f);_0x195917['_unbindEditors'](_0x4a754f),_0x5dfb0d&&_0x17cd3a['remove'](_0x5dfb0d),this['_suggestionToController']['delete'](_0x1bdb21),this['_viewToController']['delete'](_0x4a754f),_0x2cb2fa['destroy']();}['_updateController'](_0x8c4f77){if(!_0x8c4f77['isInContent']||!this['_suggestionToController']['has'](_0x8c4f77))return;const _0x286913=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a30c1=this['_suggestionToController']['get'](_0x8c4f77),_0x33cd43=_0x8c4f77['getAllAdjacentSuggestions']();_0x4a30c1['view']['descriptionParts']=_0x286913['descriptionFactory']['getDescriptions'](_0x33cd43);}['destroy'](){for(const _0x1e802e of this['_suggestionToController']['keys']())this['_destroyController'](_0x1e802e);for(const _0x4ebf10 of this['_annotationViews']['values']())_0x4ebf10['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xbb3fdf){return'model'in _0xbb3fdf;}class Fe extends _0x13e452{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x9050d4){this['editor']['plugins']['get'](d)['adapter']=_0x9050d4;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x291b52){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x291b52);}['getSuggestions']({skipNotAttached:_0x4876e4=!0x1,toJSON:_0x2f01bd=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x4876e4,'toJSON':_0x2f01bd});}['getSuggestion'](_0x521e2c){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x521e2c);}}const p=['Pagination'];class re extends _0x13e452{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x38a8c8=this['editor'];if(_0x38a8c8['config']['define']('trackChangesData.editorCreator',_0x70c7f1=>{const _0x4f8302=_0x38a8c8['model']['document']['getRootNames']()['reduce']((_0x4644cc,_0x42aad3)=>(_0x4644cc[_0x42aad3]='',_0x4644cc),{});return _0x38a8c8['constructor']['create'](_0x4f8302,_0x70c7f1);}),'function'!=typeof _0x38a8c8['config']['get']('trackChangesData')['editorCreator'])throw new _0x19b862('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x257381){return P(this['editor'],!0x0,_0x257381);}['getDataWithDiscardedSuggestions'](_0x400240){return P(this['editor'],!0x1,_0x400240);}}class Ge extends _0x13e452{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x194316){function _0x515448(_0x1771a4){return _0x1771a4['map'](_0x369b52=>String['fromCharCode'](_0x369b52))['join']('');}super(_0x194316),this['result']='end',_0x194316[_0x515448([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x515448([0x76,0x69,0x65,0x77])][_0x515448([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x515448([0x61,0x75,0x74,0x6f]),_0x194316[_0x515448([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x515448([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x515448([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x515448([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x515448([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function He(_0x57848e){return void 0x0!==_0x57848e['getRootsAttributes'];}async function P(_0x25b448,_0xa9b32e,_0x169c36){const _0x3bbd79=_0x79006e(_0x25b448,p);_0x3bbd79['plugins']['push'](d,Ge),_0x3bbd79['rootsAttributes']=He(_0x25b448)?_0x25b448['getRootsAttributes']():void 0x0;const _0x1c7792=document['createDocumentFragment'](),_0x51251b=_0x25b448['config']['get']('trackChangesData')['editorCreator'],_0x3aceeb=await _0x51251b(_0x3bbd79,()=>function(_0x223209){const _0x131556=document['createElement']('div');return _0x223209['appendChild'](_0x131556),_0x131556;}(_0x1c7792));!function(_0x4da0cf,_0x24cdae){const _0x3b06d6=_0x4da0cf['model']['document']['getRootNames']()['reduce']((_0x2b53e8,_0x454d47)=>(_0x2b53e8[_0x454d47]=_0x4da0cf['data']['get']({'rootName':_0x454d47}),_0x2b53e8),{}),_0xa64a12=_0x4da0cf['plugins']['get']('Users')['users']['map'](_0x30ce6a=>({'id':_0x30ce6a['id'],'name':_0x30ce6a['name']})),_0xe48436=_0x4da0cf['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2dc25d=_0x4da0cf['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x32cd6f=_0x24cdae['plugins']['get']('Users'),_0x4fb9b7=_0x24cdae['plugins']['get']('TrackChangesEditing'),_0x187b3d=_0x24cdae['plugins']['get']('CommentsRepository');for(const _0x3738fb of _0x187b3d['getCommentThreads']())_0x3738fb['remove']();for(const _0x553262 of _0xa64a12)_0x32cd6f['getUser'](_0x553262['id'])||_0x32cd6f['addUser'](_0x553262);_0x32cd6f['me']||_0x32cd6f['useAnonymousUser']();for(const _0x1fbf70 of _0x2dc25d)_0x187b3d['addCommentThread'](_0x1fbf70);for(const _0x896229 of _0xe48436)_0x4fb9b7['addSuggestionData'](_0x896229);_0x24cdae['data']['set'](_0x3b06d6);}(_0x25b448,_0x3aceeb),_0x3aceeb['execute'](_0xa9b32e?'acceptAllSuggestions':'discardAllSuggestions');const _0x4b7c2a=He(_0x3aceeb)?_0x3aceeb['getFullData'](_0x169c36):_0x3aceeb['data']['get'](_0x169c36);return await _0x3aceeb['destroy'](),_0x4b7c2a;}class Me extends _0x2d8d59{['options'];constructor(_0xfd5739,_0x2092cb){super(_0xfd5739),this['options']=_0x2092cb,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x5cfe59,_0x7865f8){if(!this['element'])return;const _0xb567dd=[];for(const [_0x2f5100,_0x55bbed]of _0x5cfe59){const _0x47aea2=document['createElement']('div');_0x47aea2['setAttribute']('data-ck-root-name',_0x2f5100),_0x47aea2['className']=_0x55bbed['classes']+'\x20ck-track-changes-preview__root-container',_0x47aea2['innerHTML']=_0x55bbed['content'],_0xb567dd['push'](_0x47aea2);}_0x7865f8(this['element'],_0xb567dd),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x201f08{constructor(_0x397d0d){super(_0x397d0d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x539092=this['editor'],_0x5397fb=_0x539092['locale'],_0x529a82=_0x539092['plugins']['get']('Dialog');let _0x428845;const _0x8d6657=function(_0x47eba9){const _0x1e2691={};if('editables'in _0x47eba9['ui']['view']){for(const [_0x248edb,_0x37ba8b]of Object['entries'](_0x47eba9['ui']['view']['editables']))_0x1e2691[_0x248edb]=_0x37ba8b['element'];}else _0x1e2691[_0x47eba9['model']['document']['getRootNames']()[0x0]]=_0x47eba9['ui']['view']['editable']['element'];return _0x1e2691;}(_0x539092),_0x21dfe9=function(_0x155c08){let _0x1a91ba=0x0;for(const _0x277fa8 of Object['values'](_0x155c08))_0x1a91ba=Math['max'](_0x1a91ba,_0x277fa8['getBoundingClientRect']()['width']);let _0xef1f65=0x0;for(const _0x2da4b0 of Object['values'](_0x155c08))_0xef1f65+=_0x2da4b0['getBoundingClientRect']()['height'];const _0x50d788=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x245d9a=Math['min'](_0xef1f65,_0x50d788);return{'width':_0x1a91ba,'height':_0x245d9a};}(_0x8d6657);_0x529a82['show']({'id':'finalContentPreview','title':o(_0x5397fb,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5397fb,{'dialogRects':_0x21dfe9}),'onHide':()=>{_0x428845['detachFromDom']();},'onShow':()=>{_0x539092['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4d25d9=>{const _0x179828=this['_standarizeRootsData'](_0x4d25d9,_0x539092,_0x8d6657);_0x529a82['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x179828,_0x539092['config']['get']('trackChanges.preview.renderFunction'));}),_0x428845=new _0x3bc5c1(_0x5397fb,[_0x529a82['view']]),_0x428845['attachToDom'](),_0x428845['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x539092['once']('destroy',()=>{_0x428845['detachFromDom']();});const _0xc9c1d6=_0x529a82['view']['headerView']['class'];_0x529a82['view']['headerView']['class']=_0xc9c1d6?_0xc9c1d6+'\x20ck-reset_all':'ck-reset_all',_0x529a82['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x529a82['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5bf704=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4dbbd5=_0x5bf704['previewMode'],_0x268917={};if('$labels'===_0x4dbbd5){for(const _0x24178a of _0x5bf704['getMergeFieldsIds']())_0x268917[_0x24178a]=_0x5bf704['getLabel'](_0x24178a)||_0x24178a;}else{const _0x224ee9='$defaultValues'===_0x4dbbd5?_0x5bf704['getDefaultValues']():_0x5bf704['getDataSetValues'](_0x4dbbd5,!0x0);for(const _0x19c3ff of Object['entries'](_0x224ee9)){const [_0x36a0e3,_0x1aadb3]=_0x19c3ff;_0x268917[_0x36a0e3]=null!==_0x1aadb3?_0x1aadb3:_0x5bf704['getLabel'](_0x36a0e3)||_0x36a0e3;}}return{'mergeFieldsData':_0x268917};}['_standarizeRootsData'](_0x4c4410,_0x3ae130,_0x1354f1){let _0x2689a1;if('string'==typeof _0x4c4410){const _0x3f9542=_0x3ae130['model']['document']['getRootNames']()[0x0];_0x2689a1={[_0x3f9542]:_0x4c4410};}else _0x2689a1=_0x4c4410;const _0x20b4ca=this['_fixMediaEmbeds'](_0x2689a1,_0x3ae130),_0x40246a=function(_0x31c826,_0x4ceff9){for(const [_0x2c88cc,_0x50bb6f]of _0x31c826)_0x50bb6f['classes']=_0x4ceff9[_0x2c88cc]['classList']['value']['replace']('ck-focused','');return _0x31c826;}(this['_sortRoots'](_0x3ae130)['reduce']((_0x35e9c5,_0x11ae9c)=>(_0x35e9c5['push']([_0x11ae9c,{'content':_0x20b4ca[_0x11ae9c],'classes':''}]),_0x35e9c5),[]),_0x1354f1);return _0x40246a;}['_fixMediaEmbeds'](_0x414457,_0x23f85a){if(!_0x23f85a['plugins']['has']('MediaEmbedEditing'))return _0x414457;const _0x3986fd=_0x23f85a['plugins']['get']('MediaEmbedEditing');for(const [_0x1bc9a2,_0x3b06ef]of Object['entries'](_0x414457)){const _0x49b14c=document['createElement']('div');_0x49b14c['innerHTML']=_0x3b06ef,(_0x49b14c['querySelectorAll']('figure.media')['forEach'](_0x35237a=>{const _0x28db04=_0x35237a['querySelector']('oembed');if(_0x28db04){const _0x2d7639=_0x28db04['getAttribute']('url');if(_0x2d7639){const _0x34cf8c=_0x3986fd['registry']['getMediaViewElement'](new _0x242596(_0x23f85a['editing']['view']['document']),_0x2d7639,{'elementName':'','renderForEditingView':!0x0}),_0x3f1b35=document['createElement']('div');_0x3f1b35['classList']['add']('ck-media__wrapper'),_0x34cf8c['render'](_0x3f1b35,_0x23f85a['editing']['view']['domConverter']),_0x28db04['replaceWith'](_0x3f1b35);}}}),_0x414457[_0x1bc9a2]=_0x49b14c['innerHTML']);}return _0x414457;}['_sortRoots'](_0x16efd1){if(!function(_0x3eda31){return void 0x0!==_0x3eda31['getRootsAttributes'];}(_0x16efd1))return _0x16efd1['model']['document']['getRootNames']();const _0x3fc5d0=[],_0x4377eb=new Map();for(const _0x3d5135 of _0x16efd1['model']['document']['getRootNames']()){const _0x37b107=_0x16efd1['editing']['view']['getDomRoot'](_0x3d5135)['getClientRects']()['item'](0x0);_0x3fc5d0['push'](_0x3d5135),_0x4377eb['set'](_0x3d5135,_0x37b107);}return _0x3fc5d0['sort']((_0x4de6b0,_0x4de905)=>{const _0x2bdb2d=_0x4377eb['get'](_0x4de6b0),_0x130593=_0x4377eb['get'](_0x4de905);return _0x2bdb2d['y']-_0x130593['y']||_0x2bdb2d['x']-_0x130593['x'];}),_0x3fc5d0;}}class $e extends _0x13e452{static get['requires'](){return[re,_0x5cbeab];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e2007){super(_0x5e2007),_0x5e2007['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5e2007['config']['define']('trackChanges.preview.renderFunction',(_0xc08d35,_0x4b8b5e)=>{for(const _0x4ae6c9 of _0x4b8b5e)_0xc08d35['appendChild'](_0x4ae6c9);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};