@ckeditor/ckeditor5-track-changes 46.0.1-alpha.6 → 46.0.1-alpha.7

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 _0xbd1a26,Plugin as _0x27a629,PendingActions as _0x13b1a2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4e6713,ObservableMixin as _0x530e9d,uid as _0x2bc0a0,priorities as _0x5b9fb7,insertToPriorityArray as _0x35bdc4,toArray as _0x5da297,logWarning as _0x296784,getEnvKeystrokeText as _0x424ddc,FocusTracker as _0xdfc9eb,KeystrokeHandler as _0x29f6e0,Collection as _0x48a586}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x44a5cf,IconCancel as _0x14c74f,IconTrackChanges as _0x175c52}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x96e9b0,View as _0x53e7ac,ViewCollection as _0x145631,FocusCycler as _0x785b79,UIModel as _0xbbf8f4,createDropdown as _0x2e1e70,SplitButtonView as _0xab56a9,addListToDropdown as _0xb1da9a,MenuBarMenuView as _0x38cc9a,MenuBarMenuListView as _0x59b737,ListSeparatorView as _0x334b98,MenuBarMenuListItemView as _0x4ee243,MenuBarMenuListItemButtonView as _0xcc1bc7,BodyCollection as _0x531296,Dialog as _0x550df0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xb189ac,hashObject as _0x2d44eb,surroundingMarkersDetector as _0x31587d,FOCUS_ANNOTATION_KEYSTROKE as _0x111eb7,AriaDescriptionView as _0x595acf,setupThreadKeyboardNavigation as _0x270abe,trimHtml as _0x3fe297,UserView as _0x78bced,LateFocusButtonView as _0x4f7835,getDateTimeFormatter as _0xc3aa01,getAllMarkersDomElementsSorted as _0x5d8730,sanitizeEditorConfig as _0x5d7cc3}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x2f26a0,ModelLiveRange as _0x3b6fe0,ModelLivePosition as _0xb3b42b,ViewDowncastWriter as _0x325463}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3ec2e9,toWidget as _0x52bd06}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1b84f3,set as _0x17d9b0,isEqual as _0x31bb86,unset as _0x35f200,omit as Ut}from'es-toolkit/compat';import{Delete as _0x169f0b,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x45884e}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2c5337}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0xbd1a26{['_enabledCommands'];constructor(_0x357826,_0x523643){super(_0x357826),this['_enabledCommands']=_0x523643,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 _0x221f13 of this['editor']['commands']['commands']())_0x221f13['affectsData']&&!this['_enabledCommands']['has'](_0x221f13)&&_0x221f13['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2ab460 of this['editor']['commands']['commands']())_0x2ab460['affectsData']&&!this['_enabledCommands']['has'](_0x2ab460)&&_0x2ab460['clearForceDisabled']('TrackChangesCommand');}}class D extends _0xbd1a26{['_suggestions'];constructor(_0x142fa7,_0x9e0982){super(_0x142fa7),this['_suggestions']=_0x9e0982,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3a1435){const _0x4c7c69=this['_suggestions']['get'](_0x3a1435);if(!_0x4c7c69)throw new _0x4e6713('track-changes-accept-suggestion-not-found',this);const _0x4feef9=_0x4c7c69['getRanges']();this['editor']['model']['canEditAt'](_0x4feef9)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4c7c69);}}class $ extends _0xbd1a26{['_suggestions'];constructor(_0x2341a5,_0x8f6eb9){super(_0x2341a5),this['_suggestions']=_0x8f6eb9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1d1188){const _0x237958=this['_suggestions']['get'](_0x1d1188);if(!_0x237958)throw new _0x4e6713('track-changes-discard-suggestion-not-found',this);const _0x52debd=_0x237958['getRanges']();this['editor']['model']['canEditAt'](_0x52debd)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x237958);}}function ls(_0x2ef0d7,_0x41c8c9){let _0x31b721='';return _0x31b721+=_0x2ef0d7['split']('*')['map']((_0x4844fd,_0x348d31)=>_0x348d31%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x4844fd)+'</span>':Zt(_0x4844fd))['join'](''),_0x41c8c9&&(_0x31b721+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x41c8c9['value']+'\x22\x20title=\x22'+_0x41c8c9['title']+'\x22></span>'),_0x31b721;}function Zt(_0xb5cdfa){const _0x4a9232=document['createElement']('span');return _0x4a9232['innerText']=_0xb5cdfa,_0x4a9232['innerHTML'];}function ts(_0x35b47f){return _0x35b47f['sort']((_0x13f51d,_0x310683)=>'attribute'===_0x13f51d['type']&&'attribute'!==_0x310683['type']?-0x1:'attribute'!==_0x13f51d['type']&&'attribute'===_0x310683['type']?0x1:'deletion'==_0x13f51d['type']&&'deletion'!=_0x310683['type']?-0x1:'deletion'!=_0x13f51d['type']&&'deletion'==_0x310683['type']?0x1:0x0);}function to(_0x4c1274,_0x26567d){let _0x5ef393,_0x5ead0f=0x0;const _0x229f0e=[],_0x9daff2=_0x26567d['schema'];for(;_0x5ead0f<_0x4c1274['length'];){const _0x2af057=_0x4c1274[_0x5ead0f],_0x5a3bcf=_0x4c1274[_0x5ead0f+0x1];_0x5ef393||(_0x5ef393=_0x26567d['createPositionBefore'](_0x2af057)),tn(_0x26567d,_0x2af057,_0x5a3bcf)||(_0x229f0e['push'](_0x26567d['createRange'](_0x5ef393,_0x9daff2['isObject'](_0x2af057)?_0x26567d['createPositionAfter'](_0x2af057):_0x26567d['createPositionAt'](_0x2af057,'end'))),_0x5ef393=null),_0x5ead0f++;}return _0x229f0e;}function tn(_0x4fb639,_0x33b242,_0x4e5bd4){if(!_0x4e5bd4)return!0x1;const _0x410ac4=_0x4fb639['createPositionAfter'](_0x33b242),_0x2acda2=_0x4fb639['createPositionBefore'](_0x4e5bd4);return _0x410ac4['isTouching'](_0x2acda2);}function rs(_0x6aaab6,_0x2451f9,_0x590169){for(;_0x590169['length'];){const _0xd7f26d=_0x590169['splice'](0x0,0x64);_0x6aaab6['change'](()=>{for(const _0x423f11 of _0xd7f26d)_0x423f11['isInContent']&&_0x2451f9['execute'](_0x423f11['id']);});}}class M extends _0xbd1a26{['_command'];['_suggestions'];constructor(_0x574cfd,_0x145be7,_0x32c6a6){super(_0x574cfd),this['_command']=_0x145be7,this['_suggestions']=_0x32c6a6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4e7729=Array['from'](this['_suggestions']['values']())['some'](_0x3f3875=>_0x3f3875['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4e7729;}['execute'](){const _0x837ba2=ts(Array['from'](this['_suggestions']['values']()));for(const _0x55cb0e of _0x837ba2){const _0x12a86a=_0x55cb0e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x12a86a))return;}rs(this['editor']['model'],this['_command'],_0x837ba2);}}class B extends _0xbd1a26{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3fc96f,_0x36fde9,_0x1398b3){super(_0x3fc96f),this['_command']=_0x36fde9,this['_suggestions']=_0x1398b3,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3425b8=this['editor']['model']['document']['selection'],_0x33a278=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x54d0ff,_0x5a16a1){const _0x2bd8aa=Array['from'](_0x54d0ff['getRanges']()),_0xf03a53=new Set();for(const _0x523551 of _0x5a16a1)if(_0x523551['isInContent']){for(const _0x368272 of _0x2bd8aa)for(const _0x13da99 of _0x523551['getRanges']())(_0x368272['isIntersecting'](_0x13da99)||_0x54d0ff['isCollapsed']&&!_0x523551['isMultiRange']&&_0x523551['next']&&_0x13da99['end']['isTouching'](_0x368272['start']))&&_0xf03a53['add'](_0x523551);}return _0xf03a53;}(_0x3425b8,_0x33a278),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x293b0e=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1af2fd of _0x293b0e){const _0x2c3f45=_0x1af2fd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2c3f45))return;}rs(this['editor']['model'],this['_command'],_0x293b0e);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x530e9d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4db2b5,_0x23b3f1){super(),this['id']=_0x23b3f1['id'],this['type']=_0x23b3f1['type'],this['subType']=_0x23b3f1['subType']||null,this['author']=_0x23b3f1['author'],this['creator']=_0x23b3f1['creator']||_0x23b3f1['author'],this['isExternal']=Boolean(_0x23b3f1['attributes']&&_0x23b3f1['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x23b3f1['originalSuggestionId']||null,this['_model']=_0x4db2b5,this['_onAccept']=_0x23b3f1['onAccept'],this['_onDiscard']=_0x23b3f1['onDiscard'],this['_onAttributesChange']=_0x23b3f1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x23b3f1['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 _0x150c2e=this;for(;_0x150c2e['previous'];)_0x150c2e=_0x150c2e['previous'];return _0x150c2e;}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'](_0x5aa3b8){this['_markerNames']['add'](_0x5aa3b8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x131300=>this['_model']['markers']['get'](_0x131300))['filter'](_0x420be4=>_0x420be4);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3b9c7b=>{for(const _0x4be534 of this['getMarkers']())_0x3b9c7b['removeMarker'](_0x4be534);}),this['_markerNames']['clear']();}['removeMarker'](_0x53fb55){this['_model']['change'](_0xac9425=>{_0xac9425['removeMarker'](_0x53fb55);}),this['_markerNames']['delete'](_0x53fb55);}['addRange'](_0xb6c8b9){const _0x4e00bb='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x4e00bb),this['_model']['change'](_0x343314=>{_0x343314['addMarker'](_0x4e00bb,{'range':_0xb6c8b9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x31e068){for(const _0x86b7f3 of this['getRanges']())if(_0x86b7f3['isIntersecting'](_0x31e068))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x7540d=>_0x7540d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4425d9,_0xa50ef5)=>[..._0x4425d9,..._0xa50ef5['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2e464c=this['getRanges']();if(0x1!=_0x2e464c['length'])return null;const _0x35f910=_0x2e464c[0x0],_0x29bf65=_0x35f910['start']['nodeAfter'],_0x34cb4a=_0x35f910['end']['nodeBefore'];return _0x29bf65 instanceof _0x2f26a0?_0x29bf65!=_0x34cb4a?null:_0x29bf65: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 _0x4f86d1=[];let _0x723631=this['head'];for(;_0x723631;)_0x4f86d1['push'](_0x723631),_0x723631=_0x723631['next'];return _0x4f86d1;}['setAttribute'](_0x5aa2ba,_0x352279){const _0x4b5d03=_0x1b84f3(this['attributes']);_0x17d9b0(_0x4b5d03,_0x5aa2ba,_0x352279),_0x31bb86(_0x4b5d03,this['attributes'])||(this['attributes']=_0x4b5d03,this['_onAttributesChange'](_0x4b5d03));}['removeAttribute'](_0x5265fa){const _0x5e8e65=_0x1b84f3(this['attributes']);_0x35f200(_0x5e8e65,_0x5265fa),_0x31bb86(_0x5e8e65,this['attributes'])||(this['attributes']=_0x5e8e65,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 _0x2bc0a0()['substr'](0x1,0x5);}}function o(_0x2f66c9,_0x921180,_0x7e785b){const _0x5c2266=_0x2f66c9['t'],t=_0x2f66c9['t'];switch(_0x921180){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',_0x7e785b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x7e785b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x7e785b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x7e785b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x7e785b);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',_0x7e785b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x7e785b);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',_0x7e785b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x7e785b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x7e785b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x7e785b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x7e785b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x7e785b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x7e785b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x7e785b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x7e785b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x7e785b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x7e785b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x7e785b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x7e785b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x7e785b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x7e785b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x7e785b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x7e785b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x7e785b);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'},_0x7e785b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x7e785b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x7e785b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x7e785b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x7e785b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x7e785b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x7e785b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x7e785b);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'},_0x7e785b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x7e785b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x7e785b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x7e785b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x7e785b);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'},_0x7e785b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x7e785b);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'},_0x7e785b);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'},_0x7e785b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x7e785b);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'},_0x7e785b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x7e785b);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'},_0x7e785b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x7e785b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x7e785b);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'},_0x7e785b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x7e785b);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 _0x5c2266({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x7e785b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5c2266({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x7e785b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x7e785b);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'},_0x7e785b);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'},_0x7e785b);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'},_0x7e785b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x921180;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x37d35a,_0x3a7988){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x37d35a,this['_locale']=_0x3a7988;}['getDescriptions'](_0x3ca513){const _0x1357d3=[],_0xb88d2e=new Set(),_0xb5843f=new Set();for(let _0x41fd8d=0x0;_0x41fd8d<_0x3ca513['length'];_0x41fd8d++){const _0x4c9eaa=_0x3ca513[_0x41fd8d];if(!_0x4c9eaa['isInContent'])continue;const _0x455a31=this['_handleCustomCallbackDescription'](_0x4c9eaa);if(_0x455a31){if(null!=_0x4c9eaa['subType']){if(_0xb88d2e['has'](_0x4c9eaa['subType']))continue;_0xb88d2e['add'](_0x4c9eaa['subType']);}_0x1357d3['push'](_0x455a31);}else{if('attribute'==_0x4c9eaa['type']){const _0x3d1ac8=_0x4c9eaa['data']['key'];if(_0xb5843f['has'](_0x3d1ac8))continue;_0xb5843f['add'](_0x4c9eaa['data']['key']),_0x3d1ac8==m?this['_handleRenameSuggestionDescription'](_0x1357d3,_0x4c9eaa):this['_handleAttributeSuggestionDescription'](_0x1357d3,_0x4c9eaa);continue;}'insertion'!=_0x4c9eaa['type']&&'deletion'!=_0x4c9eaa['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1357d3,_0x4c9eaa,_0x3ca513[_0x41fd8d+0x1]);}}return this['_resolveDescriptionItems'](_0x1357d3);}['registerDescriptionCallback'](_0x48f3f7){this['_customCallbacks']['push'](_0x48f3f7);}['registerElementLabel'](_0x5c2584,_0x105358,_0x51c9be=_0x5b9fb7['normal']){'function'==typeof _0x5c2584?_0x35bdc4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5c2584,'label':_0x105358,'priority':_0x51c9be}):this['_itemLabels']['set'](_0x5c2584,_0x105358);}['registerAttributeLabel'](_0x13b6f3,_0x4ca5b5){this['_attributeLabels']['set'](_0x13b6f3,_0x4ca5b5);}['getItemLabel'](_0x4b975a,_0x18ada3=0x1){let _0x575730;for(const _0x4ea6fe of this['_itemLabelsCallbacks'])if(_0x4ea6fe['matchingCallback'](_0x4b975a)){_0x575730=_0x4ea6fe['label'];break;}return _0x575730||(_0x575730=this['_itemLabels']['get'](_0x4b975a['name'])),_0x575730?_0x575730(_0x18ada3):0x1!==_0x18ada3?_0x18ada3+'\x20'+_0x4b975a['name']+'s':''+_0x4b975a['name'];}['_addDescriptionItems'](_0x272f63,_0x4be82e){const _0x3bbac6=_0x4be82e['getFirstRange']()['getWalker'](),_0x292071='insertion'==_0x4be82e['type']?'add':'remove';for(const _0x3dd806 of _0x3bbac6){const _0x57fa66=_0x3dd806['item'],_0x829b80=_0x272f63[_0x272f63['length']-0x1];if(_0x57fa66['is']('$textProxy'))_0x829b80&&_0x829b80['type']['indexOf']('Container')>-0x1&&_0x272f63['pop'](),_0x829b80&&'text'==_0x829b80['type']?_0x829b80[_0x292071]+=_0x57fa66['data']:_0x272f63['push']({'type':'text','add':'add'==_0x292071?_0x57fa66['data']:'','remove':'remove'==_0x292071?_0x57fa66['data']:''});else{if(this['_schema']['isObject'](_0x57fa66)){const _0x57dac2=_0x57fa66;if(_0x829b80&&_0x829b80['type']['indexOf']('Container')>-0x1&&_0x272f63['pop'](),'elementEnd'==_0x3dd806['type'])continue;_0x829b80&&_0x829b80['type']==_0x292071+'Object'&&_0x829b80['element']['name']==_0x57dac2['name']?_0x829b80['quantity']++:_0x272f63['push']({'type':_0x292071+'Object','element':_0x57dac2,'quantity':0x1}),_0x3bbac6['skip'](_0x52e1aa=>!('elementEnd'==_0x52e1aa['type']&&_0x52e1aa['item']==_0x57fa66));}else{if(this['_schema']['checkChild'](_0x57fa66,'$text')||_0x57fa66['is']('element','softBreak')){const _0x445c19=_0x57fa66;if('add'==_0x292071&&'elementStart'==_0x3dd806['type']||'remove'==_0x292071&&'elementEnd'==_0x3dd806['type'])continue;if(_0x829b80&&-0x1==_0x829b80['type']['indexOf']('Container')){'text'==_0x829b80['type']&&(_0x829b80[_0x292071]+='\x0a');continue;}let _0x47a7dc;if(_0x47a7dc='add'==_0x292071?_0x445c19['nextSibling']&&!this['_schema']['isObject'](_0x445c19['nextSibling'])?_0x445c19['nextSibling']:null:_0x445c19['previousSibling']&&!this['_schema']['isObject'](_0x445c19['previousSibling'])?_0x445c19['previousSibling']:null,_0x445c19['isEmpty']||_0x47a7dc&&_0x47a7dc['isEmpty']){const _0x55ef8f=_0x47a7dc&&_0x47a7dc['isEmpty']?_0x47a7dc:_0x445c19;_0x829b80&&_0x829b80['type']==_0x292071+'EmptyContainer'&&_0x829b80['element']['name']==_0x55ef8f['name']?_0x829b80['quantity']++:_0x272f63['push']({'type':_0x292071+'EmptyContainer','element':_0x55ef8f,'quantity':0x1});}else _0x272f63['push']({'type':_0x292071+'Container','element':_0x445c19});}}}}}['_resolveDescriptionItems'](_0x24c3f){const _0x19310b=this['_locale'],_0x481e28=[],_0x459c57=[],_0x11571a=[];for(const _0x1a01e6 of _0x24c3f)switch(_0x1a01e6['type']){case'text':if(_0x1a01e6['add']=_0x1a01e6['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1a01e6['remove']=_0x1a01e6['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1a01e6['add']&&''!=_0x1a01e6['remove']){_0x481e28['push']({'type':'replace','content':o(_0x19310b,'REPLACE_TEXT',['\x22'+_0x1a01e6['remove']+'\x22','\x22'+_0x1a01e6['add']+'\x22'])});continue;}if(null!=_0x1a01e6['add']['match'](/^ +$/)){_0x481e28['push']({'type':'insertion','content':o(_0x19310b,'*Insert:*\x20%0',o(_0x19310b,'ELEMENT_SPACE',_0x1a01e6['add']['length']))});continue;}if(null!=_0x1a01e6['remove']['match'](/^ +$/)){_0x481e28['push']({'type':'deletion','content':o(_0x19310b,'*Remove:*\x20%0',o(_0x19310b,'ELEMENT_SPACE',_0x1a01e6['remove']['length']))});continue;}if(''!=_0x1a01e6['add']){_0x481e28['push']({'type':'insertion','content':o(_0x19310b,'*Insert:*\x20%0','\x22'+_0x1a01e6['add']+'\x22')});continue;}_0x481e28['push']({'type':'deletion','content':o(_0x19310b,'*Remove:*\x20%0','\x22'+_0x1a01e6['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x481e28['push']({'type':'insertion','content':o(_0x19310b,'*Insert:*\x20%0',this['getItemLabel'](_0x1a01e6['element'],_0x1a01e6['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x481e28['push']({'type':'deletion','content':o(_0x19310b,'*Remove:*\x20%0',this['getItemLabel'](_0x1a01e6['element'],_0x1a01e6['quantity']))});continue;case'addContainer':_0x481e28['push']({'type':'insertion','content':o(_0x19310b,'*Split:*\x20%0',this['getItemLabel'](_0x1a01e6['element'],_0x1a01e6['quantity']))});continue;case'removeContainer':_0x481e28['push']({'type':'deletion','content':o(_0x19310b,'*Merge:*\x20%0',this['getItemLabel'](_0x1a01e6['element'],_0x1a01e6['quantity']))});continue;case'addFormat':_0x459c57['push'](_0x1a01e6['key']);continue;case'removeFormat':_0x11571a['push'](_0x1a01e6['key']);continue;default:_0x481e28['push'](_0x1a01e6);}if(_0x459c57['length']){const _0x4bc03b=_0x459c57['map'](_0x3b145c=>this['_attributeLabels']['has'](_0x3b145c)?this['_attributeLabels']['get'](_0x3b145c):_0x3b145c)['join'](',\x20');_0x481e28['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4bc03b)});}if(_0x11571a['length']){const _0x13b177=_0x11571a['map'](_0x5b4165=>this['_attributeLabels']['has'](_0x5b4165)?this['_attributeLabels']['get'](_0x5b4165):_0x5b4165)['join'](',\x20');_0x481e28['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x13b177)});}return _0x481e28;}['_handleCustomCallbackDescription'](_0x1f43c2){for(const _0x105ce2 of this['_customCallbacks']){const _0xa7f06b=_0x105ce2(_0x1f43c2);if(_0xa7f06b&&'type'in _0xa7f06b)return _0xa7f06b;}}['_handleAttributeSuggestionDescription'](_0x152949,_0x3f485b){const _0x48d3df=_0x3f485b['data'],_0x53df0c=void 0x0===_0x48d3df['newValue']?'removeFormat':'addFormat';_0x152949['push']({'type':_0x53df0c,'key':_0x48d3df['key']});}['_handleRenameSuggestionDescription'](_0x3c7cb7,_0x52cac1){_0x3c7cb7['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x52cac1['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x39a404,_0x32c549,_0x48a0f9){if(this['_addDescriptionItems'](_0x39a404,_0x32c549),_0x48a0f9&&_0x48a0f9['getFirstRange']()&&!_0x32c549['getFirstRange']()['end']['isEqual'](_0x48a0f9['getFirstRange']()['start'])){const _0xf3766e=_0x39a404[_0x39a404['length']-0x1],_0x25f0ec='insertion'==_0x32c549['type']?'add':'remove';_0xf3766e&&'text'==_0xf3766e['type']&&(_0xf3766e[_0x25f0ec]+='\x0a');}}}class O extends _0x27a629{['afterInit'](){const _0x514b8=this['editor'],_0x4d7cc5=_0x514b8['plugins']['get']('TrackChangesEditing');_0x514b8['commands']['get']('showAIAssistant')&&_0x4d7cc5['enableCommand']('showAIAssistant');}}class E extends _0x27a629{['afterInit'](){const _0x1fe068=this['editor'],_0xd8c80c=_0x1fe068['locale'];if(!_0x1fe068['plugins']['has']('AlignmentEditing'))return;const _0x520c66=_0x1fe068['plugins']['get']('TrackChangesEditing');_0x520c66['enableDefaultAttributesIntegration']('alignment'),_0x520c66['registerBlockAttribute']('alignment'),_0x520c66['descriptionFactory']['registerAttributeLabel']('alignment',o(_0xd8c80c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56e719=this['editor'],_0x219755=_0x56e719['locale'];_0x56e719['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11c44d=>{if('formatBlock'!=_0x11c44d['type'])return;const {data:_0x3603c8}=_0x11c44d;if(_0x3603c8&&'alignment'==_0x3603c8['commandName']){const _0x2a273d=_0x3603c8['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x219755,'*Format:*\x20%0',function(_0x9a41a8){switch(_0x9a41a8){case'left':return o(_0x219755,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x219755,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x219755,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x219755,'FORMAT_JUSTIFY_TEXT');}}(_0x2a273d))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x27a629{['afterInit'](){const _0x2ac19e=this['editor'],_0x229b8b=_0x2ac19e['plugins']['get']('TrackChangesEditing'),_0x29e4ea=_0x2ac19e['locale'];for(const _0x4ee368 of ti){if(!_0x2ac19e['plugins']['has'](_0x4ee368))continue;const _0x49acc8=_0x4ee368['slice'](0x0,-0x7)['toLowerCase'](),_0x47362f='FORMAT_'+_0x49acc8['toUpperCase']();_0x229b8b['enableDefaultAttributesIntegration'](_0x49acc8),_0x229b8b['registerInlineAttribute'](_0x49acc8),_0x229b8b['descriptionFactory']['registerAttributeLabel'](_0x49acc8,o(_0x29e4ea,_0x47362f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d9275=this['editor'],_0x3263bb=_0x5d9275['locale'],_0x4c897b=_0x5d9275['plugins']['get']('TrackChangesEditing');function _0x3c8e16(_0x18abad,_0x1cd9f6){_0x4c897b['descriptionFactory']['registerDescriptionCallback'](_0x1862be=>{if('formatInline'!=_0x1862be['type'])return;const {data:_0x4d8fb4}=_0x1862be;return _0x4d8fb4&&_0x4d8fb4['commandName']===_0x18abad?_0x4d8fb4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3263bb,'*Format:*\x20%0',_0x1cd9f6)}:{'type':'format','content':o(_0x3263bb,'*Remove\x20format:*\x20%0',_0x1cd9f6)}:void 0x0;});}_0x3c8e16('bold',o(_0x3263bb,'FORMAT_BOLD')),_0x3c8e16('italic',o(_0x3263bb,'FORMAT_ITALIC')),_0x3c8e16('underline',o(_0x3263bb,'FORMAT_UNDERLINE')),_0x3c8e16('code',o(_0x3263bb,'FORMAT_CODE')),_0x3c8e16('strikethrough',o(_0x3263bb,'FORMAT_STRIKETHROUGH')),_0x3c8e16('subscript',o(_0x3263bb,'FORMAT_SUBSCRIPT')),_0x3c8e16('superscript',o(_0x3263bb,'FORMAT_SUPERSCRIPT'));}}class U extends _0x27a629{['afterInit'](){const _0x4e371a=this['editor'],_0x44f162=_0x4e371a['locale'];if(!_0x4e371a['plugins']['has']('BlockQuoteEditing'))return;const _0x34fa4c=_0x4e371a['plugins']['get']('TrackChangesEditing'),_0x2e0f07=this['editor']['commands']['get']('blockQuote');_0x34fa4c['enableCommand']('blockQuote',(_0x3e33d9,_0x4f1b87={})=>{const _0x12a03b=this['editor']['model']['document']['selection'],_0x5e59a0=_0x4f1b87&&void 0x0!==_0x4f1b87['forceValue']?_0x4f1b87['forceValue']:!_0x2e0f07['value'];let _0x375c88=[];if(_0x5e59a0){const _0x83d8ac=Array['from'](_0x12a03b['getSelectedBlocks']())['filter'](_0x5229ee=>oo(_0x5229ee)||function(_0x57188d,_0x21d4a7){const _0xad92cb=_0x21d4a7['checkChild'](_0x57188d['parent'],'blockQuote'),_0x1b5c06=_0x21d4a7['checkChild'](['$root','blockQuote'],_0x57188d);return _0xad92cb&&_0x1b5c06;}(_0x5229ee,this['editor']['model']['schema']));_0x375c88=to(_0x83d8ac,_0x4e371a['model']);}else{const _0x2167f3=Array['from'](_0x12a03b['getSelectedBlocks']())['filter'](_0x4f9b3b=>oo(_0x4f9b3b));_0x375c88=to(_0x2167f3,_0x4e371a['model']);}_0x4e371a['model']['change'](()=>{for(const _0x3b94aa of _0x375c88)_0x34fa4c['markBlockFormat'](_0x3b94aa,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5e59a0}]});});}),_0x34fa4c['descriptionFactory']['registerDescriptionCallback'](_0xacde0f=>{const {data:_0x3ebfa0}=_0xacde0f;if(_0x3ebfa0&&'blockQuote'==_0x3ebfa0['commandName']){const _0x499b64=o(_0x44f162,'ELEMENT_BLOCK_QUOTE');return _0x3ebfa0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x44f162,'*Set\x20format:*\x20%0',_0x499b64)}:{'type':'format','content':o(_0x44f162,'*Remove\x20format:*\x20%0',_0x499b64)};}});}}function oo(_0x2f411b){return'blockQuote'==_0x2f411b['parent']['name'];}class V extends _0x27a629{['afterInit'](){const _0x2dc019=this['editor'],_0x18c76c=_0x2dc019['locale'],_0x58fc44=_0x2dc019['plugins']['get']('TrackChangesEditing');_0x2dc019['plugins']['has']('BookmarkEditing')&&(_0x58fc44['enableCommand']('insertBookmark'),_0x58fc44['enableDefaultAttributesIntegration']('updateBookmark'),_0x58fc44['registerBlockAttribute']('bookmarkId'),_0x58fc44['descriptionFactory']['registerDescriptionCallback'](_0xbae5a8=>{if('insertion'!=_0xbae5a8['type']&&'deletion'!=_0xbae5a8['type']&&'attribute'!=_0xbae5a8['type'])return;const _0x23c8c5=_0xbae5a8['getContainedElement']();if(null==_0x23c8c5)return;if(!_0x23c8c5['is']('element','bookmark'))return;const _0x29442b=_0x23c8c5['getAttribute']('bookmarkId');if('insertion'==_0xbae5a8['type'])return{'type':'insertion','content':o(_0x18c76c,'*Insert:*\x20%0','\x22'+_0x29442b+'\x22\x20'+o(_0x18c76c,'ELEMENT_BOOKMARK'))};if('deletion'==_0xbae5a8['type'])return{'type':'deletion','content':o(_0x18c76c,'*Remove:*\x20%0','\x22'+_0x29442b+'\x22\x20'+o(_0x18c76c,'ELEMENT_BOOKMARK'))};const {data:_0x27ff92}=_0xbae5a8;if(!_0x27ff92||'bookmarkId'!=_0x27ff92['key'])return;return{'type':'format','content':o(_0x18c76c,'*Set\x20bookmark:*\x20%0','\x22'+_0x27ff92['newValue']+'\x22')};}));}}class F extends _0x27a629{['afterInit'](){const _0x53a656=this['editor'];_0x53a656['plugins']['has']('CaseChange')&&(_0x53a656['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x53a656['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x53a656['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x27a629{['afterInit'](){const _0x18ef38=this['editor'];_0x18ef38['commands']['get']('ckbox')&&_0x18ef38['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x27a629{['afterInit'](){const _0x182428=this['editor'];if(!_0x182428['plugins']['has']('CodeBlock'))return;const _0x4c2612=_0x182428['plugins']['get']('TrackChangesEditing'),_0x487f65=_0x182428['locale'],_0x1a7cd9=_0x182428['config']['get']('codeBlock')['languages'],_0x5481ef=_0x182428['commands']['get']('codeBlock');_0x4c2612['enableCommand']('indentCodeBlock'),_0x4c2612['enableCommand']('outdentCodeBlock'),_0x4c2612['enableCommand']('codeBlock',(_0x39069e,_0x29f68f={})=>{const _0x45003e=_0x182428['model'],_0x131977=_0x182428['model']['document']['selection'],_0x6e2898=_0x29f68f&&void 0x0!==_0x29f68f['forceValue']?_0x29f68f['forceValue']:!_0x5481ef['value'];let _0x3cbab4;_0x29f68f['language']||(_0x29f68f['language']=_0x1a7cd9[0x0]['language']),_0x3cbab4=_0x6e2898?Array['from'](_0x131977['getSelectedBlocks']())['filter'](_0x4847a0=>co(_0x4847a0)||function(_0x3e71a7,_0xbf3a35){if(_0x3e71a7['is']('rootElement')||_0xbf3a35['isLimit'](_0x3e71a7))return!0x1;return _0xbf3a35['checkChild'](_0x3e71a7['parent'],'codeBlock');}(_0x4847a0,_0x45003e['schema'])):Array['from'](_0x131977['getSelectedBlocks']())['filter'](_0x23f8c9=>co(_0x23f8c9));const _0xe56ae0=to(_0x3cbab4,_0x45003e);_0x45003e['change'](()=>{for(const _0x3eb825 of _0xe56ae0)_0x4c2612['markBlockFormat'](_0x3eb825,{'commandName':'codeBlock','commandParams':[{..._0x29f68f,'forceValue':_0x6e2898}],'formatGroupId':'blockName'});});}),(_0x4c2612['descriptionFactory']['registerElementLabel']('codeBlock',_0xd1cd4=>o(_0x487f65,'ELEMENT_CODE_BLOCK',_0xd1cd4)),_0x4c2612['descriptionFactory']['registerDescriptionCallback'](_0x317a9e=>{if('formatBlock'!=_0x317a9e['type'])return;const _0x12b23d=_0x487f65['t'],{data:_0x23df66}=_0x317a9e;if(!_0x23df66||'codeBlock'!=_0x23df66['commandName'])return;const _0x15081d=_0x23df66['commandParams'][0x0]['language'],_0x151b45=_0x12b23d(_0x1a7cd9['find'](_0x33254c=>_0x33254c['language']===_0x15081d)['label'])['toLowerCase']();return _0x23df66['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x487f65,'*Set\x20format:*\x20%0',o(_0x487f65,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x151b45+')')}:{'type':'format','content':o(_0x487f65,'*Remove\x20format:*\x20%0',o(_0x487f65,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x399372){return'codeBlock'==_0x399372['name'];}class J extends _0x27a629{['afterInit'](){const _0x37f868=this['editor'];if(!_0x37f868['plugins']['has']('CommentsEditing'))return;_0x37f868['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x23479c,_0x13e731,_0x64a6be){const _0x4ea03e=[];for(const _0x1385fa of _0x13e731['getItems']())_0x1385fa['hasAttribute'](_0x23479c)&&_0x4ea03e['push'](_0x64a6be['createRangeOn'](_0x1385fa));return _0x4ea03e;}function De(_0x2712eb,_0x271fc6,{showActiveMarker:_0x35a3ff=!0x0}={}){const _0x28481f=_0x2712eb['plugins']['get']('TrackChangesEditing');return(_0x402d05,_0xe21ea7,_0x1e24c4)=>{if(!_0x1e24c4['consumable']['test'](_0xe21ea7['markerRange'],_0x402d05['name']))return;const _0xf70950=_0xe21ea7['markerRange']['getWalker'](),_0xd6acee=_0xe21ea7['markerRange']['start'],_0x4dbc74=_0x2712eb['model']['schema'];let _0x4c83f1=null,_0x5a86dc=null,_0x327be9=!0x1,_0x3bc75b=!0x1;for(const _0x41e1e6 of _0xf70950){const _0x2798eb=_0x41e1e6['item'];_0x327be9=_0x327be9||_0x4dbc74['isContent'](_0x2798eb);const _0x74bc92=_0x1e24c4['mapper']['toViewElement'](_0x2798eb);if(_0x74bc92&&_0x74bc92['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x41e1e6['type']&&(_0x4dbc74['isBlock'](_0x2798eb)&&!_0x4dbc74['isLimit'](_0x2798eb)&&(_0x2798eb['nextSibling']||_0xd6acee['isAtEnd']?_0x4c83f1&&_0x4c83f1['parent']==_0x2798eb||(_0x4c83f1=_0x2798eb,_0x4d3173(_0x41e1e6['previousPosition']),_0x3bc75b=!0x0):_0x5a86dc=_0x5a86dc||_0x41e1e6['previousPosition']));}function _0x4d3173(_0x327c64){const {id:_0xd79c4b,authorId:_0x4502da}=_0x28481f['_splitMarkerName'](_0xe21ea7['markerName']),_0x31f75b=_0x1e24c4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x271fc6,'data-suggestion':_0xd79c4b,'data-author-id':_0x4502da}),_0x23127e=_0x1e24c4['mapper']['toViewPosition'](_0x327c64);_0x35a3ff&&_0x28481f['activeMarkers']['includes'](_0xe21ea7['markerName'])&&_0x1e24c4['writer']['addClass']('ck-suggestion-marker--active',_0x31f75b),_0x1e24c4['writer']['insert'](_0x23127e,_0x31f75b),_0x1e24c4['mapper']['bindElementToMarker'](_0x31f75b,_0xe21ea7['markerName']);}_0x327be9||_0x3bc75b||!_0x5a86dc||_0x4d3173(_0x5a86dc);};}class K extends _0x27a629{static get['requires'](){return[_0x169f0b];}['init'](){const _0x566e07=this['editor'],_0x509d30=_0x566e07['plugins']['get']('TrackChangesEditing');_0x509d30['enableCommand']('delete');const _0x30e928=_0x566e07['commands']['get']('deleteForward');_0x509d30['enableCommand']('deleteForward',(_0x5b0038,_0x24b021={})=>{const _0x3ac6f1=_0x566e07['model']['createSelection'](_0x566e07['model']['document']['selection']);_0x3ac6f1['isCollapsed']&&_0x566e07['model']['modifySelection'](_0x3ac6f1,{'direction':'forward','unit':_0x24b021['unit']});const _0x50be61=_0x3ac6f1['getFirstRange'](),_0x4b3f27=_0x3b6fe0['fromRange'](_0x50be61);let _0x59f8f1;_0x5b0038(_0x24b021),_0x59f8f1='$graveyard'==_0x4b3f27['root']['rootName']?_0x566e07['model']['createRange'](_0x50be61['start']):_0x566e07['model']['createRange'](_0x4b3f27['start'],_0x4b3f27['end']),_0x4b3f27['detach'](),_0x566e07['model']['enqueueChange'](_0x30e928['buffer']['batch'],_0x1e5f2e=>{_0x30e928['buffer']['lock'](),_0x1e5f2e['setSelection'](_0x1e5f2e['createRange'](_0x59f8f1['end'])),_0x30e928['buffer']['unlock']();});}),_0x566e07['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x566e07,'merge'),{'priority':'high'}),_0x566e07['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3517c4,_0x4602f0,_0x2216fd)=>{_0x2216fd['options']['showSuggestionHighlights']&&De(_0x566e07,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3517c4,_0x4602f0,_0x2216fd);},{'priority':'high'}),_0x566e07['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4290c0,_0x5b24fb,_0x5c4675)=>{const _0x544f41=_0x5c4675['mapper']['markerNameToElements'](_0x5b24fb['markerName']);if(_0x544f41){for(const _0x50a4ca of _0x544f41)_0x50a4ca['is']('uiElement')&&(_0x5c4675['mapper']['unbindElementFromMarkerName'](_0x50a4ca,_0x5b24fb['markerName']),_0x5c4675['writer']['remove'](_0x50a4ca));}},{'priority':'high'});}}class H extends _0x27a629{['afterInit'](){const _0x181dab=this['editor'];if(!_0x181dab['plugins']['has']('ListEditing'))return;const _0x58616b=_0x181dab['locale'],_0xaec4ea=_0x181dab['plugins']['get']('TrackChangesEditing'),_0x52431d=_0x181dab['plugins']['has']('TodoListEditing'),_0x49153e=!!_0x181dab['config']['get']('list.multiBlock');function _0x128d07(_0x2a6714){return{'type':'format','content':''+o(_0x58616b,'*Set\x20format:*\x20%0',_0x2a6714)};}function _0x101cc6(_0x9d8538){return{'type':'format','content':''+o(_0x58616b,'*Remove\x20format:*\x20%0',_0x9d8538)};}_0xaec4ea['enableDefaultAttributesIntegration']('numberedList'),_0xaec4ea['enableDefaultAttributesIntegration']('bulletedList'),_0xaec4ea['enableDefaultAttributesIntegration']('customNumberedList'),_0xaec4ea['enableDefaultAttributesIntegration']('customBulletedList'),_0xaec4ea['enableDefaultAttributesIntegration']('indentList'),_0xaec4ea['enableDefaultAttributesIntegration']('outdentList'),_0xaec4ea['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xaec4ea['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xaec4ea['registerBlockAttribute']('listItemId'),_0xaec4ea['registerBlockAttribute']('listType'),_0xaec4ea['registerBlockAttribute']('listIndent'),_0x49153e&&(_0xaec4ea['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xaec4ea['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x52431d&&(_0xaec4ea['enableDefaultAttributesIntegration']('todoList'),_0xaec4ea['enableDefaultAttributesIntegration']('checkTodoList'),_0xaec4ea['registerBlockAttribute']('todoListChecked'),_0xaec4ea['descriptionFactory']['registerDescriptionCallback'](_0x1fd9ff=>{const {data:_0x367244}=_0x1fd9ff;if(_0x367244&&'todoListChecked'==_0x367244['key'])return{'type':'format','content':_0x367244['newValue']?o(_0x58616b,'*Check\x20item*'):o(_0x58616b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x22f445=>{if(_0x22f445['batch']['isUndo'])return!0x1;let _0x5d1315=!0x1;const _0x25ca25=_0xaec4ea['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52f201=>'todoListChecked'===_0xaec4ea['_getAttributeKey'](_0x52f201));for(const _0x38b209 of _0x25ca25){'todo'!=_0x38b209['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xaec4ea['_findSuggestions'](_0x38b209['getFirstRange'](),'attribute')['find'](_0x1bc862=>'listType'===_0xaec4ea['_getAttributeKey'](_0x1bc862['suggestion']))||(_0x22f445['removeMarker'](_0x38b209['getFirstMarker']()),_0x5d1315=!0x0));}return _0x5d1315;})),_0xaec4ea['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x58616b,'FORMAT_INDENT'));const _0xa42b54={'type':'format','content':''};_0xaec4ea['descriptionFactory']['registerDescriptionCallback'](_0xed20df=>{const {data:_0x16890c}=_0xed20df;if(!_0x16890c||'listType'!=_0x16890c['key'])return;let _0x1f25be=_0xed20df['head'];for(;_0x1f25be;){if(_0x1f25be['data']&&(('listStyle'==_0x1f25be['data']['key']||'listMarkerStyle'==_0x1f25be['data']['key'])&&(_0x1f25be['data']['newValue']&&'default'!=_0x1f25be['data']['newValue']||'default'!=_0x1f25be['data']['oldValue']&&!_0x16890c['newValue'])||!_0x49153e&&_0x1f25be['data']['key']==m))return _0xa42b54;_0x1f25be=_0x1f25be['next'];}if(null==_0x16890c['newValue'])switch(_0x16890c['oldValue']){case'bulleted':return _0x101cc6(o(_0x58616b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x101cc6(o(_0x58616b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x101cc6(o(_0x58616b,'ELEMENT_TODO_LIST'));}switch(_0x16890c['newValue']){case'bulleted':return _0x128d07(o(_0x58616b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x128d07(o(_0x58616b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x128d07(o(_0x58616b,'ELEMENT_TODO_LIST'));}}),_0xaec4ea['descriptionFactory']['registerDescriptionCallback'](_0x2e5379=>{const {data:_0x1a24bf}=_0x2e5379;if(_0x1a24bf&&'listIndent'==_0x1a24bf['key'])return null==_0x1a24bf['newValue']||null==_0x1a24bf['oldValue']&&0x0==_0x1a24bf['newValue']?_0xa42b54:void 0x0;}),_0xaec4ea['descriptionFactory']['registerDescriptionCallback'](_0x229fff=>{if('attribute'!=_0x229fff['type'])return;const {data:_0x4d2572}=_0x229fff;if(!_0x4d2572||'listItemId'!=_0x4d2572['key'])return;const _0x11b02a=Te(_0x229fff);return'newValue'==_0x11b02a?{'type':'format','content':o(_0x58616b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x11b02a?{'type':'format','content':o(_0x58616b,'*Split:*\x20list\x20item')}:_0xa42b54;}),_0x181dab['model']['document']['registerPostFixer'](_0x248fa2=>this['listItemIdFixer'](_0x248fa2)),_0x181dab['model']['document']['registerPostFixer'](_0x300bf7=>this['noTrackChangesFixer'](_0x300bf7)),_0x181dab['model']['document']['on']('change:data',(_0x3b9eb0,_0xb0d56c)=>{if(_0xb0d56c['isUndo']||!_0xb0d56c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1b8713){if(_0x1b8713['batch']['isUndo']||!_0x1b8713['batch']['isLocal'])return!0x1;let _0x47d56a=!0x1;const _0x2ef8cf=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5db2bc=>_0x5db2bc['data']&&'listItemId'==_0x5db2bc['data']['key'])['filter'](_0x2ca7a7=>_0x2ca7a7['data']['newValue']&&_0x2ca7a7['data']['oldValue']);for(const _0x254f95 of _0x2ef8cf)Te(_0x254f95)||(_0x1b8713['removeMarker'](_0x254f95['getFirstMarker']()),_0x47d56a=!0x0);return _0x47d56a;}['noTrackChangesFixer'](_0x5cc87f){if(_0x5cc87f['batch']['isUndo']||!_0x5cc87f['batch']['isLocal'])return!0x1;const _0x58547c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x58547c['trackChangesCommand']['value'])return!0x1;let _0x2fc13d=!0x1;const _0x5c4fba=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x497f18=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5f185b=>'attribute'==_0x5f185b['type'])['filter'](_0x3ee0f0=>_0x5c4fba['includes'](_0x3ee0f0['attributeKey']));if(0x0==_0x497f18['length'])return _0x2fc13d;for(const _0x3f511c of _0x497f18){const _0x31de5d=_0x58547c['_findSuggestions'](_0x3f511c['range'],'attribute')['filter'](_0x2fd5a8=>!_0x2fd5a8['meta']['isNextTo'])['map'](_0x5810bb=>_0x5810bb['suggestion'])['filter'](_0x2c6a47=>{const _0x1e1468=_0x58547c['_getAttributeKey'](_0x2c6a47);return _0x5c4fba['includes'](_0x1e1468);});if(_0x31de5d['length']){for(const _0x358100 of _0x31de5d)_0x5cc87f['removeMarker'](_0x358100['getFirstMarker']());_0x2fc13d=!0x0;}}return _0x2fc13d;}['assureChains'](){const _0x43bc55=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34e9d4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2f9703;const _0x8e2ed5=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5bdcc3=>{if(_0x5bdcc3['data']['oldRange']||!_0x5bdcc3['data']['newRange'])return null;if(!_0x5bdcc3['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1afffb}=_0x43bc55['_splitMarkerName'](_0x5bdcc3['name']);if(!_0x43bc55['hasSuggestion'](_0x1afffb))return null;const _0x76fc99=_0x43bc55['getSuggestion'](_0x1afffb);return _0x34e9d4['includes'](_0x76fc99['data']['key']);})['map'](_0x2433c8=>{const {id:_0x3bb83f}=_0x43bc55['_splitMarkerName'](_0x2433c8['name']),_0x59b35b=_0x43bc55['getSuggestion'](_0x3bb83f);return _0x2f9703=_0x59b35b['attributes']['groupId'],_0x59b35b['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x8e2ed5['size'])return;const _0x4d9e02=_0x43bc55['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e01f3=>'attribute'==_0x3e01f3['type']&&_0x3e01f3['data']&&_0x34e9d4['includes'](_0x3e01f3['data']['key'])&&_0x3e01f3['attributes']['groupId']!=_0x2f9703)['map'](_0x1c8f8d=>({'listItem':_0x1c8f8d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1c8f8d['attributes']['groupId']})),_0x554a51=new Set();for(const {groupId:_0x419807,listItem:_0x1a1908}of _0x4d9e02)_0x8e2ed5['has'](_0x1a1908)&&_0x554a51['add'](_0x419807);for(const _0x233c05 of _0x43bc55['getSuggestions']())_0x554a51['has'](_0x233c05['attributes']['groupId'])&&_0x233c05['setAttribute']('groupId',_0x2f9703);}['_supportLegacySuggestions'](){const _0xd40525=this['editor'],_0x5967c8=_0xd40525['locale'],_0x3144e4=_0xd40525['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3144e4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x327e51,_0x4eca8a){const _0xf9548d=[];for(let _0x399dc9 of _0x327e51)_0x399dc9['start']['nodeAfter']===_0x399dc9['end']['parent']&&(_0x399dc9=_0xd40525['model']['createRange'](_0xd40525['model']['createPositionAt'](_0x399dc9['start']['nodeAfter'],0x0))),_0xf9548d['push'](_0x399dc9);_0xd40525['model']['change'](_0x8818dd=>{const _0x1c7159=_0xd40525['model']['document']['selection'],_0x5d7639=Array['from'](_0x1c7159['getRanges']())['map'](_0x2664af=>_0x3b6fe0['fromRange'](_0x2664af));_0x8818dd['setSelection'](_0xf9548d),_0xd40525['commands']['get'](_0x4eca8a['commandName'])['refresh'](),_0x4eca8a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xd40525['execute'](_0x4eca8a['commandName'],..._0x4eca8a['commandParams']),_0x8818dd['setSelection'](_0x5d7639);for(const _0x39d43e of _0x5d7639)_0x39d43e['detach']();});}),_0x3144e4['descriptionFactory']['registerElementLabel'](function(_0x4e5737){const _0x4dfa72=!_0xd40525['model']['schema']['isObject'](_0x4e5737),_0x5cac16=_0x4e5737['previousSibling'],_0x937351=_0x4e5737['nextSibling'],_0x156fbd=_0x4e5737['getAttribute']('listItemId'),_0x12c34b=!_0x5cac16||_0x5cac16['getAttribute']('listItemId')!==_0x156fbd,_0x14a7b3=!_0x937351||_0x937351['getAttribute']('listItemId')!==_0x156fbd;return _0x4dfa72&&Boolean(_0x156fbd)&&_0x12c34b&&_0x14a7b3;},_0x413cf5=>o(_0x5967c8,'ELEMENT_LIST_ITEM',_0x413cf5));}['_registerLegacyDescription'](){const _0x532337=this['editor'],_0x8a40b=_0x532337['locale'];function _0x52e515(_0x2f993e){const _0x426696=_0x532337['commands']['get']('bulletedList')['value'],_0x49604a=_0x532337['commands']['get']('numberedList')['value'];return'numberedList'===_0x2f993e?_0x426696:_0x49604a;}_0x532337['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1608ed){if('formatBlock'!=_0x1608ed['type'])return;const {data:_0x85b4b1}=_0x1608ed;if(!_0x85b4b1)return;let _0x288f6c,_0x1f89e0,_0x2720c7,_0x321709;switch(_0x85b4b1['commandName']){case'bulletedList':_0x2720c7=_0x85b4b1['commandParams'][0x0]['forceValue'],_0x321709=_0x52e515(_0x85b4b1['commandName']),_0x288f6c=_0x2720c7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x321709&&_0x532337['config']['get']('list.multiBlock')||(_0x288f6c='*Change\x20to:*\x20%0'),_0x1f89e0={'type':'format','content':o(_0x8a40b,_0x288f6c,o(_0x8a40b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2720c7=_0x85b4b1['commandParams'][0x0]['forceValue'],_0x321709=_0x52e515(_0x85b4b1['commandName']),_0x288f6c=_0x2720c7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x321709&&_0x532337['config']['get']('list.multiBlock')||(_0x288f6c='*Change\x20to:*\x20%0'),_0x1f89e0={'type':'format','content':o(_0x8a40b,_0x288f6c,o(_0x8a40b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x288f6c='*Indent:*\x20%0',_0x1f89e0={'type':'format','content':o(_0x8a40b,_0x288f6c,o(_0x8a40b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x288f6c=function(_0x2c606f){const _0x5b64c2=_0x2c606f['getFirstRange']();let _0x45d097=_0x5b64c2['start']['nodeAfter'];for(;_0x45d097&&_0x5b64c2['containsItem'](_0x45d097);){if(_0x45d097['getAttribute']('listIndent')>0x0)return!0x1;_0x45d097=_0x45d097['nextSibling'];}return!0x0;}(_0x1608ed)?o(_0x8a40b,'*Format:*\x20remove\x20from\x20%0',o(_0x8a40b,function(_0x4c3a5d){return'ELEMENT_'+_0x4c3a5d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1608ed))):o(_0x8a40b,'*Outdent:*\x20%0',o(_0x8a40b,'ELEMENT_LIST_ITEM')),_0x1f89e0={'type':'format','content':_0x288f6c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x85b4b1['multipleBlocks']&&(_0x288f6c='*Merge:*\x20%0',_0x1f89e0={'type':'deletion','content':o(_0x8a40b,_0x288f6c,o(_0x8a40b,'ELEMENT_LIST_ITEM'))});}return _0x1f89e0;});}}function Te(_0x402a58){let _0x2c94ac=_0x402a58['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2c94ac;){const _0x2f7fc3=_0x2c94ac['getAttribute']('listItemId');if(!_0x2f7fc3)return!0x1;if(_0x2f7fc3==_0x402a58['data']['newValue'])return'newValue';if(_0x2f7fc3==_0x402a58['data']['oldValue'])return'oldValue';_0x2c94ac=_0x2c94ac['previousSibling'];}return!0x1;}class q extends _0x27a629{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x23b41b=this['editor']['config']['get']('list.properties'),_0x5d4d5c=this['editor']['plugins']['get']('TrackChangesEditing');_0x23b41b['styles']&&(_0x5d4d5c['enableDefaultAttributesIntegration']('listStyle'),_0x5d4d5c['registerBlockAttribute']('listStyle')),_0x23b41b['reversed']&&(_0x5d4d5c['enableDefaultAttributesIntegration']('listReversed'),_0x5d4d5c['registerBlockAttribute']('listReversed')),_0x23b41b['startIndex']&&(_0x5d4d5c['enableDefaultAttributesIntegration']('listStart'),_0x5d4d5c['registerBlockAttribute']('listStart'));const _0x5e682c={'type':'format','content':''};_0x5d4d5c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5d8c36=this['editor']['locale'];_0x5d4d5c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5d8c36,'FORMAT_LIST_REVERSED')),_0x5d4d5c['descriptionFactory']['registerDescriptionCallback'](_0x1692f1=>{const {data:_0x4dd6ad}=_0x1692f1;if(_0x4dd6ad&&'listReversed'==_0x4dd6ad['key'])return null==_0x4dd6ad['newValue']||0x0==_0x4dd6ad['newValue']&&null==_0x4dd6ad['oldValue']?_0x5e682c:void 0x0;}),_0x5d4d5c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5d8c36,'FORMAT_LIST_START')),_0x5d4d5c['descriptionFactory']['registerDescriptionCallback'](_0xa3b4a8=>{const {data:_0x55964c}=_0xa3b4a8;if(_0x55964c&&'listStart'==_0x55964c['key'])return null==_0x55964c['newValue']||0x1==_0x55964c['newValue']&&null==_0x55964c['oldValue']?_0x5e682c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x31fdb2=>{if(_0x31fdb2['batch']['isUndo'])return!0x1;let _0x9b74ec=!0x1;const _0x4be330=_0x5d4d5c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2169e8=>{const _0x2045cc=_0x5d4d5c['_getAttributeKey'](_0x2169e8);return'listStart'==_0x2045cc||'listReversed'==_0x2045cc;});for(const _0x564752 of _0x4be330){const _0x5134ff=_0x564752['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5134ff||'customNumbered'==_0x5134ff)continue;_0x5d4d5c['_findSuggestions'](_0x564752['getFirstRange'](),'attribute')['find'](_0x55a4bb=>'listType'==_0x5d4d5c['_getAttributeKey'](_0x55a4bb['suggestion']))||(_0x31fdb2['removeMarker'](_0x564752['getFirstMarker']()),_0x9b74ec=!0x0);}return _0x9b74ec;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2286a6){const _0xf03e84=this['editor']['locale'],{data:_0xa1be97}=_0x2286a6,_0x5df14c={'type':'format','content':''};if(!_0xa1be97||'listStyle'!=_0xa1be97['key'])return;if(!_0xa1be97['oldValue'])return'default'==_0xa1be97['newValue']?_0x5df14c:{'type':'format','content':''+o(_0xf03e84,'*Set\x20format:*\x20%0',o(_0xf03e84,this['_getTranslationKeyForListStyle'](_0xa1be97['newValue'])))};if(!_0xa1be97['newValue']){if('default'==_0xa1be97['oldValue'])return _0x5df14c;let _0x16d391=_0x2286a6['head'];for(;_0x16d391;){if(_0x16d391['data']&&'listType'==_0x16d391['data']['key']&&_0x16d391['data']['newValue'])return _0x5df14c;_0x16d391=_0x16d391['next'];}return{'type':'format','content':''+o(_0xf03e84,'*Remove\x20format:*\x20%0',o(_0xf03e84,this['_getTranslationKeyForListStyle'](_0xa1be97['oldValue'])))};}if('default'!=_0xa1be97['newValue'])return{'type':'format','content':''+o(_0xf03e84,'*Set\x20format:*\x20%0',o(_0xf03e84,this['_getTranslationKeyForListStyle'](_0xa1be97['newValue'])))};let _0x2f555a=_0x2286a6['head'];for(;_0x2f555a;){if(_0x2f555a['data']&&'listType'==_0x2f555a['data']['key']&&_0x2f555a['data']['newValue']&&_0x2f555a['data']['oldValue'])return _0x5df14c;_0x2f555a=_0x2f555a['next'];}return{'type':'format','content':o(_0xf03e84,'*Set\x20format:*\x20%0',o(_0xf03e84,'ELEMENT_'+_0x2286a6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x52ed60=this['editor'],_0x117008=_0x52ed60['locale'];_0x52ed60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46e245=>{if('formatBlock'!=_0x46e245['type'])return;const {data:_0x26d1e0}=_0x46e245;if(!_0x26d1e0)return;let _0x93a128,_0x29e0be;switch(_0x26d1e0['commandName']){case'listStyle':_0x93a128='*Change\x20to:*\x20%0',_0x29e0be={'type':'format','content':o(_0x117008,_0x93a128,o(_0x117008,this['_getTranslationKeyForListStyle'](_0x26d1e0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x93a128=_0x26d1e0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x29e0be={'type':'format','content':o(_0x117008,_0x93a128)};break;case'listStart':_0x93a128='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x29e0be={'type':'format','content':o(_0x117008,_0x93a128,_0x26d1e0['commandParams'][0x0]['startIndex'])};}return _0x29e0be;});}['_getTranslationKeyForListStyle'](_0x9ad54b){return'ELEMENT_'+function(_0x220009){if(Se['includes'](_0x220009))return'bulleted';if(_e['includes'](_0x220009))return'numbered';return null;}(_0x9ad54b)['toUpperCase']()+'_LIST_'+_0x9ad54b['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x27a629{['afterInit'](){const _0x467de6=this['editor'];_0x467de6['commands']['get']('emoji')&&_0x467de6['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x27a629{static get['requires'](){return[_0x45884e];}['init'](){const _0x481c4f=this['editor'],_0x133443=_0x481c4f['plugins']['get']('TrackChangesEditing'),_0x9818e1=_0x481c4f['commands']['get']('enter');_0x133443['enableCommand']('enter',()=>{_0x481c4f['model']['change'](_0x347556=>{const _0x300e4c=_0x481c4f['model']['document']['selection'],_0x105ca7=_0x300e4c['getFirstPosition'](),_0x41d707=_0x3b6fe0['fromRange'](_0x300e4c['getFirstRange']());if(_0x9818e1['enterBlock'](_0x347556)){const _0x3b6d2e=_0x481c4f['model']['createPositionAt'](_0x105ca7['parent']['nextSibling'],0x0),_0x4df7bb=_0x347556['createRange'](_0x105ca7,_0x3b6d2e);_0x133443['markInsertion'](_0x4df7bb);}else _0x347556['setSelection'](_0x347556['createRange'](_0x41d707['end']));_0x41d707['detach'](),_0x9818e1['fire']('afterExecute',{'writer':_0x347556});});}),_0x481c4f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x481c4f,'split'),{'priority':'high'}),_0x481c4f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1cccd9,_0x17087b,_0x4738d7)=>{const _0x33345b=_0x4738d7['mapper']['markerNameToElements'](_0x17087b['markerName']);if(_0x33345b){for(const _0x251092 of _0x33345b)_0x251092['hasClass']('ck-suggestion-marker-split')&&(_0x4738d7['mapper']['unbindElementFromMarkerName'](_0x251092,_0x17087b['markerName']),_0x4738d7['writer']['remove'](_0x251092));}},{'priority':'high'}),_0x481c4f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2332ee,_0x1c886e,_0xc6feef)=>{_0xc6feef['options']['showSuggestionHighlights']&&De(_0x481c4f,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2332ee,_0x1c886e,_0xc6feef);},{'priority':'high'});}}class Q extends _0x27a629{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x325fb4=this['editor']['plugins']['get']('TrackChangesEditing');_0x325fb4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x325fb4['enableCommand']('findNext'),_0x325fb4['enableCommand']('findPrevious'),_0x325fb4['enableCommand']('replace'),_0x325fb4['enableCommand']('replaceAll');}['handleFindCommand'](_0x37a144,_0x255b77,_0x35aceb={}){const _0x10b44f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x37a144(_0x77b2d5=>{let _0x5b6668=('string'==typeof _0x255b77?_0x10b44f['findByTextCallback'](_0x255b77,_0x35aceb):_0x255b77)(_0x77b2d5);Array['isArray'](_0x5b6668)&&(_0x5b6668={'results':_0x5b6668,'searchText':'string'==typeof _0x255b77?_0x255b77:''});const _0x5d023c=_0x5b6668['results']['filter'](_0x4f1d9a=>!0x1===this['_isInDeletionRange'](_0x4f1d9a,_0x77b2d5['item']));return{..._0x5b6668,'results':_0x5d023c};},_0x35aceb);}['_isInDeletionRange'](_0x24a4e9,_0x170a09){const _0x4429a8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x170a09,_0x24a4e9['start']),this['editor']['model']['createPositionAt'](_0x170a09,_0x24a4e9['end']));for(const _0x37330f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4429a8['getIntersection'](_0x37330f['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 _0x27a629{['afterInit'](){const _0x2adb38=this['editor']['locale'],_0x5efc6d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x8edd6c,commandName:_0x1c2f4c}of eo)this['editor']['plugins']['has'](_0x8edd6c)&&(_0x5efc6d['enableDefaultAttributesIntegration'](_0x1c2f4c),_0x5efc6d['registerInlineAttribute'](_0x1c2f4c));_0x5efc6d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2adb38,'FORMAT_FONT_SIZE')),_0x5efc6d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2adb38,'FORMAT_FONT_FAMILY')),_0x5efc6d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2adb38,'FORMAT_FONT_COLOR')),_0x5efc6d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2adb38,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x374780=this['editor'],_0x306bb9=_0x374780['locale'];_0x374780['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2308ed=>{const _0x933915=_0x306bb9['t'];if('formatInline'!=_0x2308ed['type'])return;const {data:_0x2c6408}=_0x2308ed;if(null!=_0x2c6408){if('fontSize'==_0x2c6408['commandName']){const _0x3218ea=_0x2c6408['commandParams'][0x0]['value'];if(_0x3218ea){const _0x4e201a=_0x933915(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3f8efd=>_0x3f8efd['model']==_0x3218ea)['title'])['toLowerCase']();return{'type':'format','content':o(_0x306bb9,'*Set\x20font\x20size:*\x20%0',_0x4e201a)};}return{'type':'format','content':o(_0x306bb9,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2c6408['commandName']){const _0x32aa72=_0x2c6408['commandParams'][0x0]['value'];return _0x32aa72?{'type':'format','content':o(_0x306bb9,'*Set\x20font\x20family:*\x20%0',_0x32aa72)}:{'type':'format','content':o(_0x306bb9,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2c6408['commandName']){const _0x5ddb6c=_0x2c6408['commandParams'][0x0]['value'];if(_0x5ddb6c){const _0x325559=_0x96e9b0(this['editor']['config']['get']('fontColor.colors'))['find'](_0x227329=>_0x227329['model']==_0x5ddb6c);let _0x123c3e=_0x5ddb6c,_0x4933ce='';return _0x325559&&(_0x123c3e=_0x325559['label'],_0x4933ce=_0x933915(_0x123c3e)['toLowerCase']()),{'type':'format','content':o(_0x306bb9,'*Set\x20font\x20color:*\x20%0',_0x4933ce)['trim'](),'color':{'value':_0x5ddb6c,'title':_0x4933ce||_0x123c3e}};}return{'type':'format','content':o(_0x306bb9,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2c6408['commandName']){const _0x1baf71=_0x2c6408['commandParams'][0x0]['value'];if(_0x1baf71){const _0xdb659a=_0x96e9b0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4ade7f=>_0x4ade7f['model']==_0x1baf71);let _0x1909da=_0x1baf71,_0x7eddba='';return _0xdb659a&&(_0x1909da=_0xdb659a['label'],_0x7eddba=_0x933915(_0x1909da)['toLowerCase']()),{'type':'format','content':o(_0x306bb9,'*Set\x20font\x20background\x20color:*\x20%0',_0x7eddba)['trim'](),'color':{'value':_0x1baf71,'title':_0x7eddba||_0x1909da}};}return{'type':'format','content':o(_0x306bb9,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x27a629{['afterInit'](){const _0x405936=this['editor'],_0x26f7d7=_0x405936['plugins']['get']('TrackChangesEditing'),_0x3ded13=_0x405936['commands']['get']('copyFormat'),_0x2980ba=_0x405936['commands']['get']('pasteFormat');_0x3ded13&&_0x2980ba&&(_0x26f7d7['enableDefaultAttributesIntegration']('pasteFormat'),_0x26f7d7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xbfacc5=this['editor'],_0x53ec56=_0xbfacc5['locale'];_0xbfacc5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36f8c7=>{if('formatBlock'!=_0x36f8c7['type']&&'formatInline'!=_0x36f8c7['type'])return;const {data:_0x2aa9ce}=_0x36f8c7;if(_0x2aa9ce&&'pasteFormat'===_0x2aa9ce['commandName']){const _0xc36aab=[],_0x4ba2ad=_0x2aa9ce['commandParams'][0x0];for(const [_0x39feeb,_0x15326d]of Object['entries'](_0x4ba2ad))_0xc36aab['push'](ro(_0xbfacc5,_0x39feeb,_0x15326d));return _0xc36aab['length']?{'type':'format','content':o(_0x53ec56,'*Set\x20format\x20to:*\x20%0',_0xc36aab['join'](',\x20'))}:{'type':'format','content':o(_0x53ec56,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xedb8aa,_0x1cd5ed,_0xf8c1c3){const _0x15e85f=_0xedb8aa['locale']['t'],_0x5df7d4=_0x1cd5ed['split'](/(?=[A-Z])/)['join']('\x20'),_0x192d15=_0x15e85f(_0x5df7d4['charAt'](0x0)['toUpperCase']()+_0x5df7d4['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xf8c1c3)return _0x192d15;if('fontColor'===_0x1cd5ed||'fontBackgroundColor'===_0x1cd5ed){const _0x93d200=_0x96e9b0(_0xedb8aa['config']['get']('fontColor.colors'))['find'](_0x59f339=>_0x59f339['model']==_0xf8c1c3);return _0x192d15+'\x20('+(_0x93d200?_0x15e85f(_0x93d200['label'])['toLowerCase']():_0xf8c1c3)+')';}if('fontSize'===_0x1cd5ed&&isNaN(parseFloat(_0xf8c1c3))){const _0x2d23cc=_0xedb8aa['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xedb8aa['config']['get']('fontSize.options'))['find'](_0x5c9e6d=>_0x5c9e6d['model']==_0xf8c1c3);return _0x192d15+'\x20('+(_0x2d23cc?_0x15e85f(_0x2d23cc['title'])['toLowerCase']():_0xf8c1c3)+')';}return _0x192d15+'\x20('+_0xf8c1c3+')';}class Z extends _0x27a629{['_headingOptions'];['afterInit'](){const _0x14cf3c=this['editor'];if(!_0x14cf3c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x14cf3c['config']['get']('heading.options');const _0x351b0f=_0x14cf3c['locale'],_0x1d0b79=_0x14cf3c['plugins']['get']('TrackChangesEditing');_0x1d0b79['enableDefaultAttributesIntegration']('heading');for(const _0x4c1c0f of this['_headingOptions'])'paragraph'!=_0x4c1c0f['model']&&_0x1d0b79['descriptionFactory']['registerElementLabel'](_0x4c1c0f['model'],_0x709bf1=>{const _0x15bb5f=this['_getHeadingLevel'](_0x4c1c0f['model']);return null!==_0x15bb5f?_0x4de92f(_0x709bf1,_0x15bb5f):_0x430395(_0x709bf1,_0x4c1c0f['title']);});function _0x4de92f(_0x5e8b0b,_0x4778c0){return o(_0x351b0f,'ELEMENT_HEADING',[_0x5e8b0b,_0x4778c0]);}function _0x430395(_0x37bb86,_0x22415a){return o(_0x351b0f,'ELEMENT_HEADING_CUSTOM',[_0x37bb86,_0x22415a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa72324=this['editor'],_0x5be0dd=_0xa72324['locale'];function _0x116c13(_0x26522b,_0x4b8e01){return o(_0x5be0dd,'ELEMENT_HEADING_CUSTOM',[_0x26522b,_0x4b8e01]);}_0xa72324['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13e9fe=>{if('formatBlock'!=_0x13e9fe['type'])return;const {data:_0x3d346b}=_0x13e9fe;if(_0x3d346b&&'heading'==_0x3d346b['commandName']){const _0x3459b7=_0x3d346b['commandParams'][0x0]['value'],_0x1ce99b=this['_getHeadingLevel'](_0x3459b7);if(null!==_0x1ce99b)return{'type':'format','content':o(_0x5be0dd,'*Change\x20to:*\x20%0',(_0x4c4852=0x1,_0x53ebef=_0x1ce99b,o(_0x5be0dd,'ELEMENT_HEADING',[_0x4c4852,_0x53ebef])))};const _0x54622e=this['_headingOptions']['find'](_0x151b87=>_0x151b87['model']===_0x3459b7)['title'];return{'type':'format','content':o(_0x5be0dd,'*Change\x20to:*\x20%0',_0x116c13(0x1,_0x54622e))};}var _0x4c4852,_0x53ebef;});}['_getHeadingLevel'](_0x1c9b48){const _0x3826af=_0x1c9b48['match'](/^heading(\d+)/);if(_0x3826af)return _0x3826af[0x1];const _0x305946=this['_headingOptions']?.['find'](_0x4e8c99=>_0x4e8c99['model']==_0x1c9b48);if(_0x305946&&_0x305946['view']){const _0x116d38=_0x305946['view'],_0x4054ef=(_0x116d38['name']??_0x116d38)['match'](/^h(\d+)/);if(_0x4054ef)return _0x4054ef[0x1];}return null;}}class tt extends _0x27a629{['afterInit'](){const _0x475634=this['editor'];if(!_0x475634['plugins']['has']('HighlightEditing'))return;const _0x50d092=_0x475634['plugins']['get']('TrackChangesEditing'),_0x5c0127=_0x475634['locale'];_0x50d092['enableDefaultAttributesIntegration']('highlight'),_0x50d092['registerInlineAttribute']('highlight'),_0x50d092['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5c0127,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47fd7c=this['editor'],_0x7d9b01=_0x47fd7c['locale'];_0x47fd7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55be76=>{if('formatInline'!=_0x55be76['type'])return;const {data:_0x18e833}=_0x55be76;if(_0x18e833&&'highlight'==_0x18e833['commandName']){const _0x3d0c57=_0x7d9b01['t'],_0x1d04bc=_0x18e833['commandParams'][0x0]['value'];if(_0x1d04bc){const _0x2226f8=_0x47fd7c['config']['get']('highlight.options')['find'](_0x4ce8e1=>_0x4ce8e1['model']==_0x1d04bc),_0x2c30b2=_0x3d0c57(_0x2226f8['title'])['toLowerCase']();return{'type':'format','content':o(_0x7d9b01,'*Set\x20highlight:*\x20%0',_0x2c30b2),'color':{'value':_0x2226f8['color'],'title':_0x2226f8['title']}};}return{'type':'format','content':o(_0x7d9b01,'*Remove\x20highlight*',o(_0x7d9b01,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x27a629{['afterInit'](){const _0x10700a=this['editor'];if(!_0x10700a['plugins']['has']('HorizontalLineEditing'))return;_0x10700a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xe38729=_0x10700a['plugins']['get']('TrackChangesEditing'),_0xcbb94f=_0x10700a['locale'];_0xe38729['descriptionFactory']['registerElementLabel']('horizontalLine',_0x17b082=>o(_0xcbb94f,'ELEMENT_HORIZONTAL_LINE',_0x17b082)),_0x10700a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1d5dc8,{writer:_0x5da575,options:_0x639fee})=>{if(!_0x639fee['showSuggestionHighlights'])return null;const _0x200c89=_0x5da575['createContainerElement']('div'),_0x3f5efd=_0x5da575['createEmptyElement']('hr');return _0x5da575['addClass']('ck-horizontal-line',_0x200c89),_0x5da575['insert'](_0x5da575['createPositionAt'](_0x200c89,0x0),_0x3f5efd),_0x200c89;},'converterPriority':'high'});}}class nt extends _0x27a629{['afterInit'](){const _0x5bf98d=this['editor'];if(!_0x5bf98d['plugins']['has']('HtmlEmbed'))return;const _0x5982f8=_0x5bf98d['plugins']['get']('TrackChangesEditing'),_0x1039b8=_0x5bf98d['locale'];_0x5982f8['descriptionFactory']['registerElementLabel']('rawHtml',_0x396f36=>o(_0x1039b8,'ELEMENT_HTML_EMBED',_0x396f36)),_0x5982f8['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5982f8['registerBlockAttribute']('value'),_0x5982f8['descriptionFactory']['registerDescriptionCallback'](_0x369f76=>{if('attribute'!=_0x369f76['type'])return;const {data:_0x4ccc15}=_0x369f76;if(_0x4ccc15&&'value'==_0x4ccc15['key']&&_0x369f76['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x59cdc8=o(_0x1039b8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1039b8,'*Change\x20%0\x20content*',_0x59cdc8)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6b326d=this['editor'],_0xec82df=_0x6b326d['locale'];_0x6b326d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cb2b2=>{if('formatBlock'!=_0x1cb2b2['type'])return;const {data:_0x9f8385}=_0x1cb2b2;if(_0x9f8385&&'htmlEmbed'==_0x9f8385['commandName']){const _0x3c7196=o(_0xec82df,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xec82df,'*Change\x20%0\x20content*',_0x3c7196)};}});}}class et extends _0x27a629{['afterInit'](){const _0x2f0ef3=this['editor'];if(!_0x2f0ef3['plugins']['has']('ImageEditing'))return;const _0x41080a=_0x2f0ef3['plugins']['get']('TrackChangesEditing'),_0x28f354=_0x2f0ef3['plugins']['get']('ImageUtils'),_0x12c3ef=_0x2f0ef3['locale'];_0x41080a['enableCommand']('insertImage'),_0x41080a['descriptionFactory']['registerElementLabel']('imageBlock',_0x2a1628=>o(_0x12c3ef,'ELEMENT_IMAGE',_0x2a1628)),_0x41080a['descriptionFactory']['registerElementLabel']('imageInline',_0x42e4c5=>o(_0x12c3ef,'ELEMENT_INLINE_IMAGE',_0x42e4c5)),_0x41080a['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x12c3ef,'ELEMENT_CAPTION')),_0x2f0ef3['plugins']['has']('ImageUploadEditing')&&_0x41080a['enableCommand']('uploadImage'),_0x2f0ef3['plugins']['has']('ImageBlockEditing')&&_0x2f0ef3['plugins']['has']('ImageInlineEditing')&&(_0x41080a['enableCommand']('imageTypeInline',(_0x51ec36,_0x3e286e)=>{const _0x50f6c1=_0x28f354['getClosestSelectedImageElement'](_0x2f0ef3['model']['document']['selection']);_0x2f0ef3['model']['change'](()=>{_0x41080a['markBlockFormat'](_0x50f6c1,{'commandName':'imageTypeInline','commandParams':[_0x3e286e]},[],'convertBlockImageToInline');});}),_0x41080a['enableCommand']('imageTypeBlock',(_0x166fb9,_0x2b245a)=>{_0x2f0ef3['model']['change'](_0x2c3d59=>{let _0x5def73=_0x28f354['getClosestSelectedImageElement'](_0x2f0ef3['model']['document']['selection']),_0xa67c13=_0x2c3d59['createRangeOn'](_0x5def73);const _0x1dcacd=_0xb3b42b['fromPosition'](_0xa67c13['start'],'toPrevious'),_0x1ac4cc=_0xb3b42b['fromPosition'](_0xa67c13['end'],'toNext');_0x41080a['forceDefaultExecution'](()=>_0x166fb9(_0x2b245a)),_0x5def73=_0x28f354['getClosestSelectedImageElement'](_0x2f0ef3['model']['document']['selection']),_0xa67c13=_0x2c3d59['createRangeOn'](_0x5def73);const _0x9d1e7a=_0x2c3d59['createRange'](_0x1dcacd,_0x1ac4cc);_0x1dcacd['detach'](),_0x1ac4cc['detach'](),_0x41080a['markBlockFormat'](_0x5def73,{'commandName':'imageTypeInline','commandParams':[_0x2b245a]},[],'convertInlineImageToBlock'),_0x9d1e7a['start']['isBefore'](_0xa67c13['start'])&&_0x41080a['markInsertion'](_0x2c3d59['createRange'](_0x9d1e7a['start'],_0xa67c13['start']),'convertInlineImageToBlock'),_0xa67c13['end']['isBefore'](_0x9d1e7a['end'])&&_0x41080a['markInsertion'](_0x2c3d59['createRange'](_0xa67c13['end'],_0x9d1e7a['end']),'convertInlineImageToBlock');});}),_0x41080a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x41080a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x41080a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x41080a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x41080a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x41080a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2f4fe9])=>{const _0x19b6b6=_0x41080a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4cc833=_0x2f4fe9['start'],_0x292bf6=_0x2f4fe9['end'];const _0xaae56a=_0x2f0ef3['model']['schema']['getNearestSelectionRange'](_0x4cc833,'backward'),_0x544b25=_0x2f0ef3['model']['schema']['getNearestSelectionRange'](_0x292bf6,'forward');_0xaae56a['isCollapsed']&&(_0x4cc833=_0xaae56a['start']),_0x544b25['isCollapsed']&&(_0x292bf6=_0x544b25['end']),_0x19b6b6([_0x2f0ef3['model']['createRange'](_0x4cc833,_0x292bf6)]);}),_0x41080a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3f6fd2),_0x41080a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3f6fd2)),_0x2f0ef3['plugins']['has']('ImageCaptionEditing')&&(_0x41080a['enableCommand']('toggleImageCaption',(_0xc890af,_0x3880ac)=>{const _0x4520ae=_0x2f0ef3['plugins']['get']('ImageCaptionUtils');let _0x57b4de=_0x28f354['getClosestSelectedImageElement'](_0x2f0ef3['model']['document']['selection']),_0x53ecd1=_0x4520ae['getCaptionFromImageModelElement'](_0x57b4de);_0x2f0ef3['model']['change'](()=>{if(_0x53ecd1)return void _0x41080a['markDeletion'](_0x2f0ef3['model']['createRangeOn'](_0x53ecd1));const _0x5a6918=_0x28f354['isBlockImage'](_0x57b4de);_0xc890af(_0x3880ac),_0x57b4de=_0x28f354['getClosestSelectedImageElement'](_0x2f0ef3['model']['document']['selection']),_0x53ecd1=_0x4520ae['getCaptionFromImageModelElement'](_0x57b4de),_0x41080a['markInsertion'](_0x2f0ef3['model']['createRangeOn'](_0x53ecd1),_0x5a6918?null:'imageCaption');});}),_0x41080a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3f6fd2));const _0x562f6b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2fa6b3(_0x577c11,_0x225944){const _0x484f9e=_0x562f6b['findIndex'](({type:_0x5b2397,subType:_0x4fa038})=>_0x577c11['type']==_0x5b2397&&_0x577c11['subType']==_0x4fa038),_0x280d13=_0x562f6b['findIndex'](({type:_0x1237ca,subType:_0x5872c9})=>_0x225944['type']==_0x1237ca&&_0x225944['subType']==_0x5872c9);if(_0x484f9e<0x0||_0x280d13<0x0)return!0x1;const _0x1924a6=_0x577c11['getFirstRange'](),_0x1d8fcc=_0x225944['getFirstRange']();if((0x0==_0x484f9e||0x1==_0x484f9e)&&0x2==_0x280d13&&_0x1924a6['isIntersecting'](_0x1d8fcc))return!0x0;if(0x2==_0x484f9e&&0x3==_0x280d13){const _0xa10cab=_0x41080a['_findSuggestions'](_0x1924a6,'insertion')['filter'](({suggestion:_0x5473ec,meta:_0x4fce3d})=>_0x4fce3d['isOwn']&&'convertInlineImageToBlock'==_0x5473ec['subType']);if(_0xa10cab['length']>0x1&&_0x1d8fcc['end']['isEqual'](_0x1924a6['start']))return!0x0;if(0x1==_0xa10cab['length']&&(_0x1924a6['start']['isEqual'](_0x1d8fcc['end'])||_0x1924a6['end']['isEqual'](_0x1d8fcc['start'])))return!0x0;}if(0x3==_0x484f9e&&0x3==_0x280d13&&_0x1924a6['start']['isBefore'](_0x1d8fcc['start'])){const _0x1042bf=_0x1924a6['end']['nodeAfter'],_0x29f833=_0x1d8fcc['start']['nodeBefore'];return _0x28f354['isBlockImage'](_0x1042bf)&&_0x1042bf===_0x29f833;}return!0x1;}function _0x3f6fd2(_0x3af778,_0x2994e8){return _0x2fa6b3(_0x3af778,_0x2994e8)?[_0x3af778,_0x2994e8]:_0x2fa6b3(_0x2994e8,_0x3af778)?[_0x2994e8,_0x3af778]:null;}_0x2f0ef3['plugins']['has']('ImageResize')&&(_0x41080a['enableDefaultAttributesIntegration']('resizeImage'),_0x41080a['registerBlockAttribute']('resizedWidth'),_0x41080a['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x12c3ef,'FORMAT_IMAGE_SIZE'))),_0x2f0ef3['plugins']['has']('ImageTextAlternativeEditing')&&(_0x41080a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x41080a['registerBlockAttribute']('alt')),_0x2f0ef3['plugins']['has']('PictureEditing')&&(_0x41080a['registerBlockAttribute']('sources'),_0x41080a['descriptionFactory']['registerDescriptionCallback'](_0x3551ad=>{if('attribute'!=_0x3551ad['type'])return;const {data:_0x394df4}=_0x3551ad;return _0x394df4&&'sources'==_0x394df4['key']?{'type':'format','content':''}:void 0x0;})),_0x2f0ef3['plugins']['has']('ImageSizeAttributes')&&(_0x41080a['registerBlockAttribute']('width'),_0x41080a['registerBlockAttribute']('height'),_0x41080a['descriptionFactory']['registerDescriptionCallback'](_0x279388=>{if('attribute'!=_0x279388['type'])return;const {data:_0x507e35}=_0x279388;return!_0x507e35||'width'!=_0x507e35['key']&&'height'!=_0x507e35['key']?void 0x0:{'type':'format','content':''};})),_0x41080a['descriptionFactory']['registerDescriptionCallback'](_0x50c1e6=>{if(!!_0x562f6b['find'](({type:_0x12aef3,subType:_0x4f1bef})=>_0x50c1e6['type']==_0x12aef3&&_0x50c1e6['subType']==_0x4f1bef))return _0x50c1e6['previous']?{}:void 0x0;}),_0x41080a['descriptionFactory']['registerDescriptionCallback'](_0x3d9825=>{if('insertion'==_0x3d9825['type']||'deletion'==_0x3d9825['type']){const _0x1f345c=_0x3d9825['getContainedElement']();if(_0x1f345c&&_0x1f345c['is']('element','caption'))return{'type':'insertion'==_0x3d9825['type']?'addObject':'removeObject','element':_0x1f345c,'quantity':0x1};}}),_0x41080a['descriptionFactory']['registerDescriptionCallback'](_0x338eeb=>'formatBlock'==_0x338eeb['type']&&'convertInlineImageToBlock'==_0x338eeb['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x338eeb['type']&&'convertBlockImageToInline'==_0x338eeb['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x41080a['descriptionFactory']['registerDescriptionCallback'](_0x380680=>{if('attribute'!=_0x380680['type'])return;const {data:_0x3d5e1f}=_0x380680;if(!_0x3d5e1f||'alt'!=_0x3d5e1f['key'])return;const _0x1b3034=_0x3d5e1f['newValue'];return _0x1b3034?{'type':'format','content':o(_0x12c3ef,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1b3034+'\x22')}:{'type':'format','content':o(_0x12c3ef,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x131627=this['editor'],_0x1b27e6=_0x131627['locale'];_0x131627['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2aebd8=>{if('formatBlock'!=_0x2aebd8['type']&&'formatInline'!=_0x2aebd8['type'])return;const {data:_0x1d150f}=_0x2aebd8;if(_0x1d150f){if('imageTextAlternative'==_0x1d150f['commandName']){const _0x54fefb=_0x1d150f['commandParams'][0x0]['newValue'];return _0x54fefb?{'type':'format','content':o(_0x1b27e6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x54fefb+'\x22')}:{'type':'format','content':o(_0x1b27e6,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1d150f['commandName']){const _0x5ec7fe=_0x1d150f['commandParams'][0x0]['width'];return _0x5ec7fe?{'type':'format','content':o(_0x1b27e6,'*Set\x20image\x20width:*\x20%0',_0x5ec7fe)}:{'type':'format','content':o(_0x1b27e6,'*Reset\x20image\x20width*')};}}});}}class st extends _0x27a629{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x48a2cb=this['editor']['locale'],_0x158134=this['editor']['plugins']['get']('TrackChangesEditing');_0x158134['enableDefaultAttributesIntegration']('replaceImageSource'),_0x158134['registerBlockAttribute']('src'),_0x158134['descriptionFactory']['registerDescriptionCallback'](_0x3e2339=>{if('attribute'!=_0x3e2339['type'])return;const {data:_0x3269b4}=_0x3e2339;return _0x3269b4&&'src'==_0x3269b4['key']?_0x3269b4['newValue']&&_0x3269b4['oldValue']?{'type':'format','content':o(_0x48a2cb,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x34604f=this['editor']['plugins']['get']('TrackChangesEditing');_0x34604f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x34604f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34604f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x34604f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x444b85=this['editor'],_0x3e8a0e=_0x444b85['locale'];_0x444b85['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7172ff=>{if('formatBlock'!=_0x7172ff['type']&&'formatInline'!=_0x7172ff['type'])return;const {data:_0x5edc9e}=_0x7172ff;if(!_0x5edc9e||'replaceImageSource'!=_0x5edc9e['commandName'])return;return{'type':'format','content':o(_0x3e8a0e,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x27a629{['afterInit'](){const _0x5d7567=this['editor'];if(!_0x5d7567['plugins']['has']('ImageStyleEditing'))return;const _0x16808f=_0x5d7567['plugins']['get']('TrackChangesEditing'),_0x147a1d=_0x5d7567['plugins']['get']('ImageUtils'),_0x284dfb={};_0x16808f['enableCommand']('imageStyle',(_0x4671d5,_0x143769)=>{const _0x3dff90=_0x5d7567['plugins']['get']('Users')['me'],_0x211c90=_0x5d7567['commands']['get']('imageStyle');let _0x3fa1c3=_0x147a1d['getClosestSelectedImageElement'](_0x5d7567['model']['document']['selection']),_0x404485=_0x5d7567['model']['createRangeOn'](_0x3fa1c3),_0x41db48=_0x211c90['value'];if(_0x41db48==_0x143769['value'])return;const _0x13940c={'commandName':'imageStyle','commandParams':[_0x143769],'formatGroupId':_0x2bc0a0()};_0x5d7567['model']['change'](()=>{if(_0x16808f['getSuggestions']()['filter'](_0x459202=>_0x459202['isInContent']&&_0x3dff90==_0x459202['author']&&('formatBlock'==_0x459202['type']||'formatInline'==_0x459202['type'])&&('imageStylePreApply'==_0x459202['subType']||'imageStylePostApply'==_0x459202['subType'])&&_0x459202['getFirstRange']()['isEqual'](_0x404485))['forEach'](_0x2691e1=>_0x16808f['discardSuggestion'](_0x2691e1['head'])),_0x3fa1c3=_0x147a1d['getClosestSelectedImageElement'](_0x5d7567['model']['document']['selection']),_0x404485=_0x5d7567['model']['createRangeOn'](_0x3fa1c3),_0x211c90['refresh'](),_0x5d7567['commands']['get']('imageTypeInline')['refresh'](),_0x5d7567['commands']['get']('imageTypeBlock')['refresh'](),_0x41db48=_0x211c90['value'],_0x41db48!=_0x143769['value'])return _0x147a1d['isInlineImage'](_0x3fa1c3)&&_0x211c90['shouldConvertImageType'](_0x143769['value'],_0x3fa1c3)?(_0x4671d5({..._0x143769,'setImageSizes':!0x1}),_0x3fa1c3=_0x147a1d['getClosestSelectedImageElement'](_0x5d7567['model']['document']['selection']),void _0x16808f['markBlockFormat'](_0x3fa1c3,{..._0x13940c,'commandReversedParams':[{'value':_0x41db48||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x147a1d['isBlockImage'](_0x3fa1c3)?_0x16808f['markBlockFormat'](_0x3fa1c3,_0x13940c,[],'imageStylePostApply'):_0x16808f['markInlineFormat'](_0x404485,_0x13940c,'imageStylePostApply'));});});for(const _0x26b66b of _0x5d7567['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x284dfb[_0x26b66b['name']]=_0x26b66b['title']['toLowerCase']();_0x16808f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x16808f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x16808f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x16808f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x30959d])=>{_0x147a1d['setImageNaturalSizeAttributes'](_0x30959d['getContainedElement']());}),_0x16808f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3c31d7,_0x38f406)=>{_0x16808f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3c31d7,{'commandName':_0x38f406['commandName'],'commandParams':_0x38f406['commandReversedParams']});}),_0x16808f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2e4476,_0x16dc88){if(_0x876a0d(_0x2e4476,_0x16dc88))return[_0x2e4476,_0x16dc88];if(_0x876a0d(_0x16dc88,_0x2e4476))return[_0x16dc88,_0x2e4476];return null;});const _0x310dcc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x876a0d(_0x29c467,_0x399375){const _0x27e2bf=_0x310dcc['findIndex'](({type:_0x48aada,subType:_0x2e2a98})=>_0x29c467['type']==_0x48aada&&_0x29c467['subType']==_0x2e2a98),_0xdc90c6=_0x310dcc['findIndex'](({type:_0x59568b,subType:_0x1b80ef})=>_0x399375['type']==_0x59568b&&_0x399375['subType']==_0x1b80ef);if(_0x27e2bf<0x0||_0xdc90c6<0x0)return!0x1;const _0x36ac93=_0x29c467['getFirstRange'](),_0x40a364=_0x399375['getFirstRange']();if((0x0==_0x27e2bf||0x1==_0x27e2bf)&&0x2==_0xdc90c6&&_0x36ac93['isIntersecting'](_0x40a364))return!0x0;if(0x2==_0x27e2bf&&0x3==_0xdc90c6){const _0x2cb795=_0x16808f['_findSuggestions'](_0x36ac93,'insertion')['filter'](({suggestion:_0x631410,meta:_0x480ee0})=>_0x480ee0['isOwn']&&'convertInlineImageToBlock'==_0x631410['subType']);if(_0x2cb795['length']>0x1&&_0x40a364['end']['isEqual'](_0x36ac93['start']))return!0x0;if(0x1==_0x2cb795['length']&&(_0x36ac93['start']['isEqual'](_0x40a364['end'])||_0x36ac93['end']['isEqual'](_0x40a364['start'])))return!0x0;}if(0x3==_0x27e2bf&&0x3==_0xdc90c6&&_0x36ac93['start']['isBefore'](_0x40a364['start'])){const _0xf7fca1=_0x36ac93['end']['nodeAfter'],_0x5623a9=_0x40a364['start']['nodeBefore'];return _0x147a1d['isBlockImage'](_0xf7fca1)&&_0xf7fca1===_0x5623a9;}return!0x1;}_0x5d7567['model']['document']['registerPostFixer'](()=>{let _0xf2db2e=!0x1;const _0x8d3548=Array['from'](_0x5d7567['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x511fa9,data:_0x2de554}of _0x8d3548){const {group:_0x390326,type:_0x335353,subType:_0x43f475,id:_0x33d8c2}=_0x16808f['_splitMarkerName'](_0x511fa9);if('suggestion'==_0x390326&&_0x16808f['hasSuggestion'](_0x33d8c2)){if('formatBlock'==_0x335353&&('imageStylePreApply'==_0x43f475||'imageStylePostApply'==_0x43f475)){const _0x409628=_0x16808f['getSuggestion'](_0x33d8c2);if(_0x2de554['newRange']){const _0x851534=_0x409628['getFirstRange']()['getContainedElement']();if(_0x147a1d['isBlockImage'](_0x851534))continue;_0x16808f['discardSuggestion'](_0x409628),_0xf2db2e=!0x0;}}if('insertion'==_0x335353&&'imageCaption'==_0x43f475&&!_0x2de554['newRange']){const _0x5d1d25=_0x16808f['getSuggestion'](_0x33d8c2);_0x5d1d25['next']&&_0x5d1d25['next']['isInContent']&&(_0x16808f['discardSuggestion'](_0x5d1d25['next']),_0xf2db2e=!0x0);}}}return _0xf2db2e;}),this['_registerLegacyDescription'](_0x284dfb);}['_registerLegacyDescription'](_0x566329){const _0x1f5eb9=this['editor'],_0x3307b7=_0x1f5eb9['locale'];_0x1f5eb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x425580=>{if('formatBlock'!=_0x425580['type']&&'formatInline'!=_0x425580['type'])return;const {data:_0x4ab75a}=_0x425580;if(!_0x4ab75a||'imageStyle'!=_0x4ab75a['commandName'])return;const _0x3a27cd=_0x4ab75a['commandParams'][0x0]['value'];return _0x519091('side'===_0x3a27cd?o(_0x3307b7,'FORMAT_SIDE_IMAGE'):_0x566329[_0x3a27cd]||_0x3a27cd);function _0x519091(_0x40c486){return{'type':'format','content':o(_0x3307b7,'*Format:*\x20%0',_0x40c486)};}});}}class rt extends _0x27a629{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4db0bd){super(_0x4db0bd),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x128311=this['editor'],_0x42fccc=_0x128311['commands']['get']('importWord'),_0x260bde=_0x128311['commands']['get']('trackChanges');_0x42fccc&&(_0x42fccc['on']('execute',(_0x2ca076,[,_0x29044c])=>{this['_trackChangesValueDuringImport']=_0x260bde['value'],_0x29044c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x42fccc,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x42fccc,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x260bde['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x128311['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3cab1d,_0x1f8e13){const {suggestions:_0x3ceae8}=_0x1f8e13,_0x1b9593=this['editor']['commands']['get']('trackChanges'),_0x1da370=_0x1b9593['value'];this['_trackChangesValueDuringImport']!==_0x1da370&&(_0x1b9593['execute'](),this['_trackChangesExecuted']=!0x0),_0x3ceae8&&_0x3ceae8['forEach'](({id:_0x5c9cb0,type:_0x550b42,author:_0x294a68,created_at:_0x950969})=>{const _0x5770b3={'id':_0x5c9cb0,'type':_0x550b42,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x294a68,'createdAt':_0x950969?new Date(_0x950969):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5770b3);});}}class at extends _0x27a629{['afterInit'](){const _0x40c6ee=this['editor'],_0x489395=_0x40c6ee['plugins']['get']('TrackChangesEditing');if(_0x40c6ee['plugins']['has']('IndentEditing')&&(_0x489395['enableCommand']('indent'),_0x489395['enableCommand']('outdent')),_0x40c6ee['plugins']['has']('IndentBlock')){for(const _0x4ee838 of['indentBlock','outdentBlock'])_0x489395['enableDefaultAttributesIntegration'](_0x4ee838);}const _0x3e418e=_0x40c6ee['locale'];_0x489395['registerBlockAttribute']('blockIndent'),_0x489395['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3e418e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4186b1=this['editor'],_0xdd9ce0=_0x4186b1['locale'],_0x19412e=_0x4186b1['plugins']['get']('TrackChangesEditing');_0x19412e['descriptionFactory']['registerDescriptionCallback'](_0x4f3c81=>{if('formatBlock'!=_0x4f3c81['type'])return;const {data:_0x27251e}=_0x4f3c81;if(!_0x27251e)return;if('indentBlock'!=_0x27251e['commandName']&&'outdentBlock'!=_0x27251e['commandName'])return;const _0x5b4820=_0x4f3c81['getItems']()[0x0],_0x357e12=_0x19412e['descriptionFactory']['getItemLabel'](_0x5b4820);return'indentBlock'==_0x27251e['commandName']?{'type':'format','content':o(_0xdd9ce0,'*Indent:*\x20%0',_0x357e12)}:'outdentBlock'==_0x27251e['commandName']?{'type':'format','content':o(_0xdd9ce0,'*Outdent:*\x20%0',_0x357e12)}:void 0x0;});}}class ct extends _0x27a629{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x27a629{['afterInit'](){const _0x421829=this['editor'];if(!_0x421829['plugins']['has']('LinkEditing'))return;const _0xff22d0=_0x421829['plugins']['get']('TrackChangesEditing'),_0x30407e=_0x421829['commands']['get']('link');_0xff22d0['enableDefaultAttributesIntegration']('link'),_0xff22d0['enableDefaultAttributesIntegration']('unlink'),_0xff22d0['registerInlineAttribute']('linkHref');for(const _0x3d1fe8 of _0x30407e['manualDecorators'])_0xff22d0['registerInlineAttribute'](_0x3d1fe8['id']),_0xff22d0['descriptionFactory']['registerAttributeLabel'](_0x3d1fe8['id'],'link\x20('+_0x3d1fe8['label']['toLowerCase']()+')');_0xff22d0['descriptionFactory']['registerDescriptionCallback'](_0x5968ed=>{if('attribute'!=_0x5968ed['type'])return;const {data:_0x40dd9c}=_0x5968ed;if(!_0x40dd9c||'linkHref'!=_0x40dd9c['key'])return;const _0x4e64f=_0x40dd9c['newValue'],_0x500ae2=_0x421829['locale'];return{'type':'format','content':null==_0x4e64f?o(_0x500ae2,'*Remove\x20link*'):o(_0x500ae2,'*Set\x20link:*\x20%0','\x22'+_0x4e64f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13889d=this['editor'],_0x4c0086=_0x13889d['locale'];_0x13889d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c7513=>{if('formatInline'!=_0x5c7513['type'])return;const {data:_0x1aa06b}=_0x5c7513;if(_0x1aa06b){if('link'==_0x1aa06b['commandName']){const _0x57c9e5=_0x1aa06b['commandParams'][0x0];return{'type':'format','content':o(_0x4c0086,'*Set\x20link:*\x20%0','\x22'+_0x57c9e5+'\x22')};}return'unlink'==_0x1aa06b['commandName']?{'type':'format','content':o(_0x4c0086,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x27a629{['afterInit'](){const _0x43d7ba=this['editor'],_0x304046=_0x43d7ba['locale'];if(!_0x43d7ba['plugins']['has']('LegacyListEditing'))return;const _0x43a1bf=_0x43d7ba['plugins']['get']('TrackChangesEditing'),_0x252873=_0x43d7ba['plugins']['has']('LegacyTodoListEditing');function _0x314176(_0x34e2f2){return()=>{const _0x3a9122=_0x43d7ba['model']['document']['selection'],_0x5910af=_0x43d7ba['commands']['get'](_0x34e2f2);if(_0x5910af['value'])return void _0x43d7ba['execute']('paragraph',{});const _0x22e273=_0x34e2f2['slice'](0x0,-0x4),_0xd3e40=function(_0x57c38a,_0x31f58e,_0x80d544){let _0x11114d=Array['from'](_0x57c38a)['filter'](_0x4e6f49=>function(_0x27bf33,_0x48554e){return _0x48554e['checkChild'](_0x27bf33['parent'],'listItem')&&!_0x48554e['isObject'](_0x27bf33);}(_0x4e6f49,_0x80d544));_0x11114d=_0x11114d['filter'](_0x472a56=>!_0x472a56['is']('element','listItem')||_0x472a56['getAttribute']('listType')!=_0x31f58e);const _0x593848=new Set();for(const _0x3d8e70 of _0x11114d)_0x3d8e70['is']('element','listItem')?_0x593848['add'](Le(_0x3d8e70)):_0x593848['add'](_0x3d8e70);return Array['from'](_0x593848);}(_0x3a9122['getSelectedBlocks'](),_0x22e273,_0x43d7ba['model']['schema']);_0x43d7ba['model']['change'](()=>{for(const _0x3c71f3 of _0xd3e40)_0x43a1bf['markBlockFormat'](_0x3c71f3,{'commandName':_0x34e2f2,'commandParams':[{'forceValue':!_0x5910af['value']}],'formatGroupId':'blockName'},Ee(_0x3c71f3));});};}function _0x4d40cd(_0x453210){return()=>{const _0x1dfe02=function(_0x3b6b63){let _0x2551d9=Array['from'](_0x3b6b63);const _0x1748d3=_0x2551d9['findIndex'](_0x138788=>'listItem'!=_0x138788['name']);return _0x1748d3>-0x1&&(_0x2551d9=_0x2551d9['slice'](0x0,_0x1748d3)),_0x2551d9;}(_0x43d7ba['model']['document']['selection']['getSelectedBlocks']()),_0xd8f50c=_0x43d7ba['model']['createRange'](_0x43d7ba['model']['createPositionAt'](_0x1dfe02[0x0],'before'),_0x43d7ba['model']['createPositionAt'](_0x1dfe02[_0x1dfe02['length']-0x1],'end'));_0x43d7ba['model']['change'](()=>{_0x43a1bf['markBlockFormat'](_0xd8f50c,{'commandName':_0x453210,'commandParams':[],'formatGroupId':'listIndent'},function(_0x321a4c){const _0x7983d4=new Set();for(const _0x12de6c of _0x321a4c){let _0x3c11f2=_0x12de6c['nextSibling'];for(;_0x3c11f2&&_0x3c11f2['getAttribute']('listIndent')>_0x12de6c['getAttribute']('listIndent');)_0x7983d4['add'](_0x3c11f2),_0x3c11f2=_0x3c11f2['nextSibling'];}return Array['from'](_0x7983d4);}(_0x1dfe02));});};}_0x43a1bf['enableCommand']('numberedList',_0x314176('numberedList')),_0x43a1bf['enableCommand']('bulletedList',_0x314176('bulletedList')),_0x252873&&_0x43a1bf['enableCommand']('todoList',_0x314176('todoList')),_0x43a1bf['enableCommand']('indentList',_0x4d40cd('indentList')),_0x43a1bf['enableCommand']('outdentList',_0x4d40cd('outdentList')),_0x252873&&_0x43a1bf['enableCommand']('checkTodoList',()=>{const _0x2fd6cf=_0x43d7ba['commands']['get']('checkTodoList'),_0x570940=Array['from'](_0x2fd6cf['_selectedElements']);_0x570940['filter'](_0xd2df69=>_0xd2df69['getAttribute']('todoListChecked')!=_0x2fd6cf['value']),_0x43d7ba['model']['change'](()=>{for(const _0x129da3 of _0x570940)_0x43a1bf['markBlockFormat'](_0x129da3,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2fd6cf['value']}]});});}),_0x43a1bf['descriptionFactory']['registerElementLabel']('listItem',_0x4185fc=>o(_0x304046,'ELEMENT_LIST_ITEM',_0x4185fc)),_0x43a1bf['descriptionFactory']['registerDescriptionCallback'](_0x38e628=>{if('formatBlock'!=_0x38e628['type']&&'formatInline'!=_0x38e628['type'])return;const {data:_0x5cff7b}=_0x38e628;if(_0x5cff7b){if('numberedList'==_0x5cff7b['commandName']||'bulletedList'==_0x5cff7b['commandName']||'todoList'==_0x5cff7b['commandName'])switch(_0x5cff7b['commandName']['replace']('List','')){case'bulleted':return _0x40f1b9(o(_0x304046,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x40f1b9(o(_0x304046,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x40f1b9(o(_0x304046,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5cff7b['commandName'])return{'type':'format','content':o(_0x304046,'*Indent:*\x20%0',o(_0x304046,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5cff7b['commandName'])return{'type':'format','content':o(_0x304046,'*Outdent:*\x20%0',o(_0x304046,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5cff7b['commandName'])return _0x5cff7b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x304046,'*Check\x20item*')}:{'type':'format','content':o(_0x304046,'*Uncheck\x20item*')};}function _0x40f1b9(_0x1e863e){return{'type':'format','content':o(_0x304046,'*Change\x20to:*\x20%0',_0x1e863e)};}});}}function Le(_0x1236ad){const _0x51e133=_0x1236ad['getAttribute']('listIndent');if(0x0==_0x51e133)return _0x1236ad;let _0x1f51d6=_0x1236ad;for(;_0x1236ad['previousSibling']&&_0x1236ad['previousSibling']['is']('element','listItem');){const _0x865f2c=_0x1236ad['previousSibling']['getAttribute']('listIndent');if(_0x865f2c==_0x51e133)_0x1f51d6=_0x1236ad['previousSibling'];else{if(_0x865f2c<_0x51e133)break;}_0x1236ad=_0x1236ad['previousSibling'];}return _0x1f51d6;}function Ee(_0x4e6c9e){const _0x5721ca=[];if(_0x4e6c9e['is']('element','listItem')&&_0x4e6c9e['getAttribute']('listIndent')>0x0){let _0x2529e3=_0x4e6c9e['nextSibling'];for(;_0x2529e3&&'listItem'==_0x2529e3['name']&&_0x2529e3['getAttribute']('listIndent')==_0x4e6c9e['getAttribute']('listIndent');)_0x5721ca['push'](_0x2529e3),_0x2529e3=_0x2529e3['nextSibling'];}return _0x5721ca;}class ht extends _0x27a629{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x44b7bf=this['editor']['config']['get']('list.properties'),_0x2315ff=this['editor']['plugins']['get']('TrackChangesEditing');_0x44b7bf['styles']&&_0x2315ff['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x44b7bf['reversed']&&_0x2315ff['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x44b7bf['startIndex']&&_0x2315ff['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2315ff['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x33cdeb,_0xa134d6={}){const _0x58a84c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e1c08=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x58a84c['markMultiRangeBlockFormat'](_0x3e1c08,{'commandName':'listStyle','commandParams':[{'type':_0xa134d6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4138d1,_0xe3c57b={}){const _0x594e5c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3365d2=this['_getSuggestionBlocks'](_0x1b6c70=>_0x1b6c70['is']('element','listItem')&&'numbered'===_0x1b6c70['getAttribute']('listType'));if(_0x3365d2['length']<0x1)return;const _0x530437=_0x3365d2['map'](_0x1fbea4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1fbea4,'before'),this['editor']['model']['createPositionAt'](_0x1fbea4,0x0)));this['editor']['model']['change'](()=>{_0x594e5c['markMultiRangeBlockFormat'](_0x530437,{'commandName':'listReversed','commandParams':[{'reversed':_0xe3c57b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2524a9,_0x5e4c72={}){const _0x4ddd0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57b2b2=this['_getSuggestionBlocks'](_0x485569=>_0x485569['is']('element','listItem')&&'numbered'===_0x485569['getAttribute']('listType'));if(_0x57b2b2['length']<0x1)return;const _0x39b7c8=_0x57b2b2['map'](_0x13348f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x13348f,'before'),this['editor']['model']['createPositionAt'](_0x13348f,0x0)));this['editor']['model']['change'](()=>{_0x4ddd0b['markMultiRangeBlockFormat'](_0x39b7c8,{'commandName':'listStart','commandParams':[{'startIndex':_0x5e4c72['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3a981b){if('formatBlock'!=_0x3a981b['type']&&'formatInline'!=_0x3a981b['type'])return;const _0x218ed7=this['editor']['locale'],{data:_0xcaa8ad}=_0x3a981b;if(!_0xcaa8ad)return;let _0x1e4fcb,_0x5101b9;switch(_0xcaa8ad['commandName']){case'listStyle':_0x1e4fcb='*Change\x20to:*\x20%0',_0x5101b9={'type':'format','content':o(_0x218ed7,_0x1e4fcb,o(_0x218ed7,this['_getTranslationKeyForListStyle'](_0xcaa8ad['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1e4fcb=_0xcaa8ad['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5101b9={'type':'format','content':o(_0x218ed7,_0x1e4fcb)};break;case'listStart':_0x1e4fcb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5101b9={'type':'format','content':o(_0x218ed7,_0x1e4fcb,_0xcaa8ad['commandParams'][0x0]['startIndex'])};}return _0x5101b9;}['_getSuggestionBlocksForListStyle'](){const _0x552590=this['editor']['plugins']['get']('LegacyListUtils');let _0x5d5e40=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5d5e40[0x0]?.['is']('element','listItem')&&_0x5d5e40['unshift'](..._0x552590['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5d5e40[_0x5d5e40['length']-0x1]?.['is']('element','listItem')&&_0x5d5e40['push'](..._0x552590['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5d5e40=[...new Set(_0x5d5e40)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5d5e40=_0x5d5e40['filter'](_0x4adfb4=>_0x4adfb4['is']('element','listItem'))),_0x5d5e40;}['_getSuggestionBlocks'](_0x8ed1d1){const _0x16da56=this['editor']['plugins']['get']('LegacyListUtils');let _0x20e326=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x8ed1d1)['map'](_0x259f51=>{const _0x8c8f8c=this['editor']['model']['createPositionAt'](_0x259f51,0x0);return[..._0x16da56['getSiblingNodes'](_0x8c8f8c,'backward'),..._0x16da56['getSiblingNodes'](_0x8c8f8c,'forward')];})['flat']();return _0x20e326=[...new Set(_0x20e326)],_0x20e326;}['_getTranslationKeyForListStyle'](_0x3f9650){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3f9650)||'default')['toUpperCase']()+'_LIST_'+_0x3f9650['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x27a629{['afterInit'](){const _0x4d80f1=this['editor'];if(!_0x4d80f1['plugins']['has']('MediaEmbedEditing'))return;const _0x996da2=_0x4d80f1['plugins']['get']('TrackChangesEditing'),_0x1a118e=_0x4d80f1['locale'];_0x996da2['enableCommand']('mediaEmbed'),_0x996da2['descriptionFactory']['registerElementLabel']('media',_0x45f691=>o(_0x1a118e,'ELEMENT_MEDIA',_0x45f691)),_0x4d80f1['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x30f61f,{writer:_0x49ef3c,options:_0x447ae3})=>{if(_0x447ae3['showSuggestionHighlights'])return _0x49ef3c['createEmptyElement']('div');},'converterPriority':'high'}),_0x4d80f1['data']['downcastDispatcher']['on']('attribute:url:media',(_0x395a7d,_0x27ce3d,_0x5f2157)=>{_0x5f2157['options']['showSuggestionHighlights']&&_0x395a7d['stop']();},{'priority':'high'});}}class lt extends _0x27a629{['afterInit'](){const _0xd15fde=this['editor'];_0xd15fde['plugins']['has']('MentionEditing')&&_0xd15fde['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x27a629{['afterInit'](){const _0x3c4eba=this['editor'];if(!_0x3c4eba['plugins']['has']('MergeFieldsEditing'))return;const _0x522f1a=_0x3c4eba['plugins']['get']('TrackChangesEditing'),_0x177ceb=_0x3c4eba['locale'];_0x522f1a['enableCommand']('insertMergeField'),_0x522f1a['enableCommand']('insertMergeFieldBlock'),_0x522f1a['enableCommand']('insertMergeFieldImage'),_0x522f1a['descriptionFactory']['registerElementLabel']('mergeField',_0x236fc1=>o(_0x177ceb,'ELEMENT_MERGE_FIELD',_0x236fc1)),_0x522f1a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x307b52=>o(_0x177ceb,'ELEMENT_MERGE_FIELD',_0x307b52)),_0x522f1a['descriptionFactory']['registerDescriptionCallback'](_0x505552=>{if('insertion'!=_0x505552['type']&&'deletion'!=_0x505552['type'])return;const _0xfef71c=_0x505552['getContainedElement']();if(null==_0xfef71c)return;const _0x440d5f=_0x3c4eba['plugins']['get']('MergeFieldsEditing');let _0x131c56;switch(_0x440d5f['getMergeFieldType'](_0xfef71c)){case null:return;case'image':{const _0x40c6f4=_0x440d5f['unwrapAffixes'](_0xfef71c['getAttribute']('src'));_0x131c56=_0x440d5f['getLabel'](_0x40c6f4)||_0x40c6f4;break;}default:{const _0xdd3759=_0xfef71c['getAttribute']('id');_0x131c56=_0x440d5f['getLabel'](_0xdd3759)||_0xdd3759;break;}}return'insertion'==_0x505552['type']?{'type':'insertion','content':o(_0x177ceb,'*Insert:*\x20%0','\x22'+_0x131c56+'\x22\x20'+o(_0x177ceb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x177ceb,'*Remove:*\x20%0','\x22'+_0x131c56+'\x22\x20'+o(_0x177ceb,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x27a629{['afterInit'](){const _0x31bac5=this['editor'],_0x43d3ac=_0x31bac5['plugins']['get']('TrackChangesEditing');_0x31bac5['plugins']['has']('MultiLevelList')&&(_0x43d3ac['enableDefaultAttributesIntegration']('multiLevelList'),_0x43d3ac['registerBlockAttribute']('listMarkerStyle'),_0x43d3ac['descriptionFactory']['registerDescriptionCallback'](_0x22edec=>this['handleDescriptions'](_0x22edec)));}['handleDescriptions'](_0x3fed1b){const _0x56fa27=this['editor']['locale'],{data:_0xf0cebf}=_0x3fed1b,_0x52d3f2={'type':'format','content':''};if(_0xf0cebf&&'listMarkerStyle'==_0xf0cebf['key']){if(!_0xf0cebf['oldValue'])return{'type':'format','content':o(_0x56fa27,'*Set\x20format:*\x20%0',o(_0x56fa27,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xf0cebf['newValue']+')'};if(!_0xf0cebf['newValue']){let _0x50f646=_0x3fed1b['head'];for(;_0x50f646;){if(_0x50f646['data']&&'listType'==_0x50f646['data']['key']&&_0x50f646['data']['newValue'])return _0x52d3f2;_0x50f646=_0x50f646['next'];}return{'type':'format','content':o(_0x56fa27,'*Remove\x20format:*\x20%0',o(_0x56fa27,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xf0cebf['oldValue']+')'};}}}}class pt extends _0x27a629{['afterInit'](){const _0x15e947=this['editor'];if(!_0x15e947['plugins']['has']('PageBreakEditing'))return;_0x15e947['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x16c177=_0x15e947['plugins']['get']('TrackChangesEditing'),_0x176837=_0x15e947['locale'];_0x16c177['descriptionFactory']['registerElementLabel']('pageBreak',_0x34bc83=>o(_0x176837,'ELEMENT_PAGE_BREAK',_0x34bc83));}}class kt extends _0x27a629{['afterInit'](){const _0x32e456=this['editor'];if(!_0x32e456['plugins']['has']('Paragraph'))return;const _0x3d98fe=_0x32e456['locale'],_0x125c80=_0x32e456['plugins']['get']('TrackChangesEditing');_0x125c80['descriptionFactory']['registerElementLabel']('paragraph',_0x4c9370=>o(_0x3d98fe,'ELEMENT_PARAGRAPH',_0x4c9370)),_0x125c80['enableDefaultAttributesIntegration']('paragraph'),_0x125c80['enableCommand']('insertParagraph'),_0x32e456['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x32e456),{'priority':'highest'}),_0x32e456['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3bfe32,_0x5ba3fc,_0x19c3c6)=>{_0x19c3c6['options']['showSuggestionHighlights']&&nr(_0x32e456,{'showActiveMarker':!0x1})(_0x3bfe32,_0x5ba3fc,_0x19c3c6);},{'priority':'highest'});const _0x36bb1c=_0x125c80['descriptionFactory'];_0x36bb1c['registerDescriptionCallback'](_0x25caca=>{if('insertion'!==_0x25caca['type'])return;const {start:_0x2e3b84,end:_0x2cc946}=_0x25caca['getFirstRange']();if(!_0x2e3b84['isTouching'](_0x2cc946)||!_0x2e3b84['nodeAfter'])return;const _0x7e3b40=_0x32e456['model']['schema'],_0x2004c0=_0x2e3b84['nodeAfter'];return _0x7e3b40['isBlock'](_0x2004c0)&&!_0x7e3b40['isLimit'](_0x2004c0)&&_0x7e3b40['checkChild'](_0x2004c0,'$text')?{'type':'insertion','content':o(_0x3d98fe,'*Insert:*\x20%0',_0x36bb1c['getItemLabel'](_0x2004c0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59a820=this['editor'],_0x3ea73e=_0x59a820['locale'];_0x59a820['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x316f6e=>{if('formatBlock'!=_0x316f6e['type'])return;const {data:_0x460a3a}=_0x316f6e;return _0x460a3a&&'paragraph'==_0x460a3a['commandName']?{'type':'format','content':o(_0x3ea73e,'*Change\x20to:*\x20%0',o(_0x3ea73e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xb69938,{showActiveMarker:_0x69c713=!0x0}={}){return(_0x51fede,_0x2e37c4,_0x3c86e9)=>{const _0x44dad4=_0xb69938['plugins']['get']('TrackChangesEditing'),_0x4ed74e=_0x2e37c4['markerRange']['start'],_0x31fd76=_0x2e37c4['markerRange']['end'],_0x3fc416=_0xb69938['model']['schema'];if(!_0x4ed74e['isTouching'](_0x31fd76)||!_0x4ed74e['nodeAfter'])return;const _0x39bc85=_0x4ed74e['nodeAfter'];if(_0x3fc416['isBlock'](_0x39bc85)&&!_0x3fc416['isLimit'](_0x39bc85)&&_0x3fc416['checkChild'](_0x39bc85,'$text')){if(!_0x3c86e9['consumable']['consume'](_0x2e37c4['markerRange'],_0x51fede['name']))return;const {id:_0x1adb6b,authorId:_0xc5d46f}=_0x44dad4['_splitMarkerName'](_0x2e37c4['markerName']),_0x3cb886=_0x3c86e9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1adb6b,'data-author-id':_0xc5d46f}),_0xc6c830=_0x3c86e9['mapper']['toViewPosition'](_0x31fd76);_0x69c713&&_0x44dad4['activeMarkers']['includes'](_0x2e37c4['markerName'])&&_0x3c86e9['writer']['addClass']('ck-suggestion-marker--active',_0x3cb886),_0x3c86e9['writer']['insert'](_0xc6c830,_0x3cb886),_0x3c86e9['mapper']['bindElementToMarker'](_0x3cb886,_0x2e37c4['markerName']);}};}class wt extends _0x27a629{['afterInit'](){const _0x202f51=this['editor'];_0x202f51['commands']['get']('replaceSource')&&_0x202f51['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x27a629{['afterInit'](){const _0x532b85=this['editor'];if(!_0x532b85['plugins']['has']('RemoveFormatEditing'))return;_0x532b85['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2380b5=this['editor'];_0x2380b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1400bd=>{if('formatBlock'!=_0x1400bd['type']&&'formatInline'!=_0x1400bd['type'])return;const {data:_0x563fb6}=_0x1400bd;return _0x563fb6&&'removeFormat'==_0x563fb6['commandName']?{'type':'format','content':o(_0x2380b5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x27a629{['afterInit'](){const _0x1b99aa=this['editor'];if(!_0x1b99aa['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4c53b6=_0x1b99aa['plugins']['get']('TrackChangesEditing');_0x4c53b6['enableCommand']('goToPreviousRestrictedEditingException'),_0x4c53b6['enableCommand']('goToNextRestrictedEditingException');const _0x44c8ae=_0x1b99aa['plugins']['get']('RestrictedEditingModeEditing');_0x44c8ae['enableCommand']('trackChanges'),_0x44c8ae['enableCommand']('acceptSuggestion'),_0x44c8ae['enableCommand']('discardSuggestion'),_0x44c8ae['enableCommand']('acceptAllSuggestions'),_0x44c8ae['enableCommand']('discardAllSuggestions'),_0x44c8ae['enableCommand']('acceptSelectedSuggestions'),_0x44c8ae['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x27a629{['afterInit'](){const _0x3eaf20=this['editor'];if(!_0x3eaf20['plugins']['has']('ShiftEnter'))return;const _0x18cc35=_0x3eaf20['plugins']['get']('TrackChangesEditing');_0x18cc35['enableCommand']('shiftEnter'),_0x3eaf20['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3eaf20),{'priority':'high'}),_0x3eaf20['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3eaf20),{'priority':'high'}),_0x3eaf20['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ce1dd,_0x596237,_0x3b8b0c)=>{_0x3b8b0c['options']['showSuggestionHighlights']&&je(_0x3eaf20,{'showActiveMarker':!0x1})(_0x4ce1dd,_0x596237,_0x3b8b0c);}),_0x18cc35['descriptionFactory']['registerElementLabel']('softBreak',_0x48edf7=>o(_0x3eaf20['locale'],'ELEMENT_LINE_BREAK',_0x48edf7));}}function je(_0x30b561,{showActiveMarker:_0x33c55a=!0x0}={}){return(_0x43fb8f,_0x4c8c68,_0x56d75f)=>{const _0x134296=_0x30b561['plugins']['get']('TrackChangesEditing');if(!_0x56d75f['consumable']['test'](_0x4c8c68['markerRange'],_0x43fb8f['name']))return;const _0x3b4e78=_0x30b561['model'];for(const _0x345770 of _0x4c8c68['markerRange']['getItems']()){if(!_0x345770['is']('element','softBreak'))continue;const _0x2799cf='deletion'==_0x4c8c68['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x479416,authorId:_0x1fc97d}=_0x134296['_splitMarkerName'](_0x4c8c68['markerName']),_0x480b66=_0x56d75f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2799cf,'data-suggestion':_0x479416,'data-author-id':_0x1fc97d}),_0xb20976=_0x56d75f['mapper']['toViewPosition'](_0x3b4e78['createPositionBefore'](_0x345770));_0x33c55a&&_0x134296['activeMarkers']['includes'](_0x4c8c68['markerName'])&&_0x56d75f['writer']['addClass']('ck-suggestion-marker--active',_0x480b66),_0x56d75f['writer']['insert'](_0xb20976,_0x480b66),_0x56d75f['mapper']['bindElementToMarker'](_0x480b66,_0x4c8c68['markerName']);}};}class St extends _0x27a629{['afterInit'](){const _0x528295=this['editor'],_0x195b16=_0x528295['model'],_0x42693c=_0x528295['locale'];if(!_0x528295['plugins']['has']('StandardEditingModeEditing'))return;const _0x4bbbf9=_0x528295['plugins']['get']('TrackChangesEditing'),_0x229bb9='restrictedEditingException',_0xe1def1=_0x528295['commands']['get'](_0x229bb9);_0x4bbbf9['enableCommand'](_0x229bb9,(_0x427ade,_0x5b20a6={})=>{const _0x2a6f8f=_0x195b16['document']['selection'];if(_0x2a6f8f['isCollapsed'])return void _0x427ade(_0x5b20a6);const _0x507379=void 0x0!==_0x5b20a6['forceValue']?_0x5b20a6['forceValue']:!_0xe1def1['value'];_0x195b16['change'](()=>{const _0x5ecc82=Array['from'](_0x2a6f8f['getRanges']());for(const _0x252602 of _0x5ecc82){const _0x128e07=_0x507379?[_0x252602]:io(_0x229bb9,_0x252602,_0x195b16);for(const _0x5a8b4b of _0x128e07)_0x4bbbf9['markInlineFormat'](_0x5a8b4b,{'commandName':_0x229bb9,'commandParams':[{'forceValue':_0x507379}]});}});}),_0x4bbbf9['descriptionFactory']['registerDescriptionCallback'](_0x47c23b=>{if('formatBlock'!=_0x47c23b['type']&&'formatInline'!=_0x47c23b['type'])return;const {data:_0x2d98db}=_0x47c23b;return _0x2d98db&&_0x2d98db['commandName']==_0x229bb9?_0x2d98db['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42693c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x42693c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x27a629{['afterInit'](){const _0x33e594=this['editor'];if(!_0x33e594['plugins']['has']('Style')||!_0x33e594['plugins']['has']('DataSchema'))return;const _0x5c7c40=_0x33e594['plugins']['get']('TrackChangesEditing'),_0x406f46=_0x33e594['locale'],_0x45e766=_0x33e594['config']['get']('style')||{},_0x22696f=_0x33e594['plugins']['get']('GeneralHtmlSupport'),_0x26b703=_0x33e594['plugins']['get']('StyleUtils')['normalizeConfig'](_0x33e594['plugins']['get']('DataSchema'),_0x45e766['definitions']);_0x5c7c40['enableDefaultAttributesIntegration']('style');const _0x173ccc=new Set();for(const _0x42c661 of _0x26b703['block']){const _0x575d09=_0x22696f['getGhsAttributeNameForElement'](_0x42c661['element']);_0x173ccc['add'](_0x575d09);}const _0x154a56=new Set();for(const _0x24c143 of _0x26b703['inline']){const _0x5d4364=_0x22696f['getGhsAttributeNameForElement'](_0x24c143['element']);_0x154a56['add'](_0x5d4364);for(const _0x87940c of _0x24c143['ghsAttributes'])_0x154a56['add'](_0x87940c);}for(const _0x4ba006 of _0x173ccc)_0x5c7c40['registerBlockAttribute'](_0x4ba006),_0x5c7c40['descriptionFactory']['registerAttributeLabel'](_0x4ba006,o(_0x406f46,'FORMAT_STYLE'));for(const _0x4fdc95 of _0x154a56)_0x5c7c40['registerInlineAttribute'](_0x4fdc95),_0x5c7c40['descriptionFactory']['registerAttributeLabel'](_0x4fdc95,o(_0x406f46,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48f69e=this['editor'],_0x2cc8d3=_0x48f69e['locale'];_0x48f69e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50e435=>{if('formatBlock'!=_0x50e435['type']&&'formatInline'!=_0x50e435['type'])return;const {data:_0x3d62b3}=_0x50e435;return _0x3d62b3&&'style'===_0x3d62b3['commandName']?_0x3d62b3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2cc8d3,'*Set\x20format:*\x20%0',_0x3d62b3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2cc8d3,'*Remove\x20format:*\x20%0',_0x3d62b3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x27a629{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x150b25){super(_0x150b25),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x508e16=this['editor'],_0x289fc0=_0x508e16['model']['document']['selection'];if(!_0x508e16['plugins']['has']('TableEditing'))return;const _0x133d37=_0x508e16['locale'],_0x5a29ad=_0x508e16['plugins']['get']('TrackChangesEditing'),_0x4cce28=_0x508e16['plugins']['get']('TableUtils');_0x5a29ad['descriptionFactory']['registerElementLabel']('table',_0x2448ec=>o(_0x133d37,'ELEMENT_TABLE',_0x2448ec)),this['_setupColumnsRowsFixing'](),_0x5a29ad['enableCommand']('insertTable'),_0x5a29ad['enableCommand']('selectTableRow'),_0x5a29ad['enableCommand']('selectTableColumn');for(const _0x528107 of['insertTableRowAbove','insertTableRowBelow']){const _0x3badea=_0x508e16['commands']['get'](_0x528107);_0x5a29ad['enableCommand'](_0x528107,_0x1a1504=>{_0x508e16['model']['change'](_0x51f814=>{_0x1a1504();const _0x209d17='above'===_0x3badea['order'],_0xdc61c4=_0x4cce28['getSelectionAffectedTableCells'](_0x289fc0),_0x35a19e=_0x4cce28['getRowIndexes'](_0xdc61c4),_0x2a240d=_0x209d17?_0x35a19e['first']-0x1:_0x35a19e['last']+0x1,_0x40434f=_0xdc61c4[0x0]['findAncestor']('table'),_0x2988ec=_0x4cce28['createTableWalker'](_0x40434f,{'startRow':_0x2a240d,'endRow':_0x2a240d}),_0x369db9=Array['from'](_0x2988ec)['map'](_0x979349=>_0x51f814['createRangeOn'](_0x979349['cell']));_0x5a29ad['markMultiRangeInsertion'](_0x369db9,'tableRow');});});}for(const _0x5d46ad of['insertTableColumnLeft','insertTableColumnRight']){const _0x1f0277=_0x508e16['commands']['get'](_0x5d46ad);_0x5a29ad['enableCommand'](_0x5d46ad,_0x5f4f12=>{_0x508e16['model']['change'](_0xe2806b=>{_0x5f4f12();const _0x336ac9='left'===_0x1f0277['order'],_0x146065=_0x4cce28['getSelectionAffectedTableCells'](_0x289fc0),_0x2f7faa=_0x4cce28['getColumnIndexes'](_0x146065),_0x35a507=_0x336ac9?_0x2f7faa['first']-0x1:_0x2f7faa['last']+0x1,_0x7a29cc=_0x146065[0x0]['findAncestor']('table'),_0x51d351=_0x4cce28['createTableWalker'](_0x7a29cc,{'startRow':0x0,'column':_0x35a507,'includeAllSlots':!0x1}),_0x5da7b6=Array['from'](_0x51d351)['map'](_0x50d3f4=>_0xe2806b['createRangeOn'](_0x50d3f4['cell']));_0x5a29ad['markMultiRangeInsertion'](_0x5da7b6,'tableColumn');});});}for(const _0x38b494 of['removeTableRow','removeTableColumn']){const _0x4716fa=_0x38b494['substr'](0xb),_0x37bb0e=_0x4716fa['toLowerCase'](),_0x1f65ee=_0x37bb0e['substr'](0x0,0x3)+'span',_0x18234e='table'+_0x4716fa,_0x4b7002='min'+_0x4716fa,_0x504004='max'+_0x4716fa;_0x5a29ad['enableCommand'](_0x38b494,()=>{_0x508e16['model']['change'](_0xe25645=>{const _0x807c7=_0x4cce28['getSelectionAffectedTableCells'](_0x289fc0),_0x3d644b=_0x807c7[0x0]['findAncestor']('table');let _0x3ad975;if('removeTableRow'==_0x38b494){const _0x30b0af=_0x4cce28['getRowIndexes'](_0x807c7);_0x3ad975={'startRow':_0x30b0af['first'],'endRow':_0x30b0af['last'],'includeAllSlots':!0x0};}else{const _0x170867=_0x4cce28['getColumnIndexes'](_0x807c7);_0x3ad975={'startColumn':_0x170867['first'],'endColumn':_0x170867['last'],'includeAllSlots':!0x0};}const _0x208f2b=_0x4cce28['createTableWalker'](_0x3d644b,_0x3ad975),_0x875f12=Array['from'](_0x208f2b)['map'](({cell:_0x1540d6})=>_0x1540d6),_0x2dc988=Ne(_0x875f12['filter'](_0x1c1ef3=>_0x1c1ef3['hasAttribute'](_0x1f65ee))),_0x3fdd16=Ne(_0x875f12['filter'](_0x1ec1fd=>!_0x1ec1fd['hasAttribute'](_0x1f65ee)))['map'](_0x3ab64e=>_0xe25645['createRangeOn'](_0x3ab64e)),_0x563f6c=_0x5a29ad['markMultiRangeDeletion'](_0x3fdd16,_0x18234e);if(_0x563f6c&&('tableRow'==_0x563f6c['subType']||'tableColumn'==_0x563f6c['subType'])){const _0x2fcef8=this['_getSuggestionCoords'](_0x563f6c);for(const _0x1469c0 of _0x2dc988){const _0x551a01=_0xe25645['createRangeOn'](_0x1469c0),_0x2cdc01=_0x4cce28['getCellLocation'](_0x1469c0),_0x91c5ba=_0x1469c0['getAttribute'](_0x1f65ee)-0x1,_0x5e0d76=_0x2fcef8[_0x4b7002],_0x5a85ce=_0x2fcef8[_0x504004];_0x5e0d76<=_0x2cdc01[_0x37bb0e]&&_0x2cdc01[_0x37bb0e]+_0x91c5ba<=_0x5a85ce&&_0x563f6c['addRange'](_0x551a01);}}});});}function _0x170aff(_0x145301){const _0x24c73f=Array['from'](_0x289fc0['getRanges']())['map'](_0x169caf=>_0x3b6fe0['fromRange'](_0x169caf));_0x508e16['model']['change'](_0xc43fb7=>{const _0x549c3d=_0xc43fb7['batch'];_0x145301=_0x145301['filter'](_0x5cc3dd=>'$graveyard'!=_0x5cc3dd['root']['rootName']),_0xc43fb7['setSelection'](_0x145301),_0x508e16['commands']['get']('removeTableRow')['refresh'](),_0x508e16['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x508e16['model']['enqueueChange'](()=>{_0x508e16['model']['enqueueChange'](_0x549c3d,_0x2e503f=>{const _0x363641=_0x24c73f['filter'](_0x5b4909=>'$graveyard'!=_0x5b4909['root']['rootName']);_0x363641['length']>0x0&&_0x2e503f['setSelection'](_0x363641);for(const _0x35f060 of _0x24c73f)_0x35f060['detach']();});});});}function _0xbc2b6e(_0x1cd7b8){_0x508e16['model']['change'](_0x1c306e=>{const _0xd2928c=Array['from'](_0x289fc0['getRanges']())['map'](_0xd44615=>_0x3b6fe0['fromRange'](_0xd44615)),_0x165d11=[];for(const _0x1fb288 of _0x1cd7b8)for(const _0x3bd72e of _0x1fb288['getItems']({'shallow':!0x0}))_0x165d11['push'](_0x3bd72e);for(const _0xf69f5c of _0x165d11)'$graveyard'!=_0xf69f5c['root']['rootName']&&(_0x1c306e['setSelection'](_0x1c306e['createPositionAt'](_0xf69f5c,0x0)),_0x508e16['commands']['get']('removeTableColumn')['refresh'](),_0x508e16['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x574924=_0xd2928c['filter'](_0x1c507c=>'$graveyard'!=_0x1c507c['root']['rootName']);_0x574924['length']>0x0&&_0x1c306e['setSelection'](_0x574924);for(const _0x122e04 of _0xd2928c)_0x122e04['detach']();});}function _0xc51f47(_0x346f8b,_0x577850){return _0x577850['every'](_0xf626f0=>_0x346f8b['some'](_0x16b928=>_0x16b928['end']['isEqual'](_0xf626f0['start'])||_0xf626f0['end']['isEqual'](_0x16b928['start'])));}function _0x5ae0d0(_0x4b89c9,_0x24b512){return!_0x4b89c9['some'](_0x59d16b=>_0x24b512['some'](_0x30c75d=>_0x59d16b['isIntersecting'](_0x30c75d)))&&_0x4b89c9['some'](_0x168877=>_0x24b512['some'](_0x22653b=>_0x168877['end']['isTouching'](_0x22653b['start'])));}_0x508e16['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4e6e23,_0x235a90,_0x5da380)=>{if(!_0x5da380['options']['showSuggestionHighlights'])return;const _0x50d0a6=_0x235a90['item'];if(!_0x50d0a6||!_0x50d0a6['is']('element','tableCell'))return;const _0x3550a2=_0x5da380['mapper']['toViewElement'](_0x50d0a6);if(_0x3550a2){const {id:_0x2f40d7,authorId:_0x392137}=_0x5a29ad['_splitMarkerName'](_0x235a90['markerName']);_0x3ec2e9(_0x3550a2,_0x5da380['writer'],(_0x48bc66,_0x50d15f,_0x427f7c)=>{_0x427f7c['addClass'](_0x5da297(_0x50d15f['classes']),_0x48bc66),_0x427f7c['setAttribute']('data-suggestion-id',_0x2f40d7,_0x48bc66),_0x427f7c['setAttribute']('data-author-id',_0x392137,_0x48bc66);},(_0x4d10bf,_0x175012,_0x1c299a)=>{_0x1c299a['removeClass'](_0x5da297(_0x175012['classes']),_0x4d10bf),_0x1c299a['removeAttribute']('data-suggestion-id',_0x4d10bf),_0x1c299a['removeAttribute']('data-author-id',_0x4d10bf);});}},{'priority':'highest'}),_0x5a29ad['descriptionFactory']['registerDescriptionCallback'](_0x5e413c=>{if('insertion'!=_0x5e413c['type']&&'deletion'!=_0x5e413c['type'])return;const _0x3561b6=_0x5e413c['getContainedElement']();if(null!=_0x3561b6&&_0x3561b6['is']('element','table')){if('insertion'==_0x5e413c['type']){const _0x560853=_0x5e413c['getItems']()['filter'](_0x32a9c9=>_0x32a9c9['is']('$textProxy'))['map'](_0xae119c=>_0xae119c['data']);if(_0x560853['length'])return{'type':'insertion','content':o(_0x133d37,'*Insert:*\x20%0',o(_0x133d37,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x560853['join']('\x20')+'\x22'))};}if('deletion'==_0x5e413c['type']){const _0x26f6b8=_0x5e413c['getItems']()['filter'](_0x576b08=>_0x576b08['is']('$textProxy'))['map'](_0x59d35f=>_0x59d35f['data']);if(_0x26f6b8['length'])return{'type':'deletion','content':o(_0x133d37,'*Remove:*\x20%0',o(_0x133d37,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x26f6b8['join']('\x20')+'\x22'))};}}}),_0x5a29ad['descriptionFactory']['registerDescriptionCallback'](_0x103618=>{if('tableRow'==_0x103618['subType']){const _0x4bb786=_0x103618['getItems']()['filter'](_0xfcb313=>_0xfcb313['is']('$textProxy'))['map'](_0x285c91=>_0x285c91['data']),_0x4dfa04=this['_getSuggestionCoords'](_0x103618),_0x4a17e9=_0x4dfa04['maxRow']-_0x4dfa04['minRow']+0x1;if('insertion'==_0x103618['type'])return _0x4bb786['length']?{'type':'insertion','content':o(_0x133d37,'*Insert:*\x20%0',o(_0x133d37,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4a17e9,'\x22'+_0x4bb786['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x133d37,'*Insert:*\x20%0',o(_0x133d37,'ELEMENT_TABLE_ROW',_0x4a17e9))};if('deletion'==_0x103618['type'])return _0x4bb786['length']?{'type':'deletion','content':o(_0x133d37,'*Remove:*\x20%0',o(_0x133d37,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4a17e9,'\x22'+_0x4bb786['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x133d37,'*Remove:*\x20%0',o(_0x133d37,'ELEMENT_TABLE_ROW',_0x4a17e9))};}if('tableColumn'==_0x103618['subType']){const _0x49f333=_0x103618['getItems']()['filter'](_0x32695d=>_0x32695d['is']('$textProxy'))['map'](_0x2cb11d=>_0x2cb11d['data']),_0x1de201=this['_getSuggestionCoords'](_0x103618),_0x5e5632=_0x1de201['maxColumn']-_0x1de201['minColumn']+0x1;if('insertion'==_0x103618['type'])return _0x49f333['length']?{'type':'insertion','content':o(_0x133d37,'*Insert:*\x20%0',o(_0x133d37,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e5632,'\x22'+_0x49f333['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x133d37,'*Insert:*\x20%0',o(_0x133d37,'ELEMENT_TABLE_COLUMN',_0x5e5632))};if('deletion'==_0x103618['type'])return _0x49f333['length']?{'type':'deletion','content':o(_0x133d37,'*Remove:*\x20%0',o(_0x133d37,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e5632,'\x22'+_0x49f333['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x133d37,'*Remove:*\x20%0',o(_0x133d37,'ELEMENT_TABLE_COLUMN',_0x5e5632))};}}),_0x5a29ad['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x170aff),_0x5a29ad['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x170aff),_0x5a29ad['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xbc2b6e),_0x5a29ad['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xbc2b6e),_0x5a29ad['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xc51f47),_0x5a29ad['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xc51f47),_0x5a29ad['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5ae0d0),_0x5a29ad['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5ae0d0);}['_acceptFormatSuggestionCallbackFactory'](){const _0x26eb20=this['editor'],_0x36df85=_0x26eb20['model']['document']['selection'];return(_0x30f429,_0x1c2a7b)=>{_0x26eb20['model']['change'](_0x5c7ac8=>{const {commandName:_0x58d55a,commandParams:_0x7116d8}=_0x1c2a7b;let _0x440dba=_0x30f429[0x0]['end']['nodeBefore'];_0x7116d8&&_0x7116d8[0x0]&&!0x1===_0x7116d8[0x0]['forceValue']&&(_0x440dba=_0x30f429[0x0]['start']['nodeAfter']);const _0xb579b=_0x5c7ac8['createRangeIn'](_0x440dba);if('$graveyard'==_0xb579b['root']['rootName'])return;const _0x52e97d=Array['from'](_0x36df85['getRanges']())['map'](_0x1046b6=>_0x3b6fe0['fromRange'](_0x1046b6));_0x5c7ac8['setSelection'](_0xb579b),_0x26eb20['commands']['get'](_0x58d55a)['refresh'](),_0x7116d8['push']({'forceDefaultExecution':!0x0}),_0x26eb20['execute'](_0x58d55a,..._0x7116d8);const _0x59e092=_0x52e97d['filter'](_0x374141=>'$graveyard'!=_0x374141['root']['rootName']);_0x59e092['length']>0x0&&_0x5c7ac8['setSelection'](_0x59e092);for(const _0x579f6d of _0x52e97d)_0x579f6d['detach']();});};}['_getCoordsForCells'](_0x56f5a5){const _0x83ec40=this['editor']['plugins']['get']('TableUtils');let _0x2d14af=Number['MAX_SAFE_INTEGER'],_0x5cfecc=Number['MIN_SAFE_INTEGER'],_0x3eced2=Number['MAX_SAFE_INTEGER'],_0x4b3432=Number['MIN_SAFE_INTEGER'];for(const _0xb823d6 of _0x56f5a5){if('$graveyard'==_0xb823d6['root']['rootName'])continue;const {row:_0x30ae1b,column:_0x3e61d1}=_0x83ec40['getCellLocation'](_0xb823d6),_0x306d96=_0xb823d6['hasAttribute']('rowspan')?_0xb823d6['getAttribute']('rowspan')-0x1:0x0,_0x484829=_0xb823d6['hasAttribute']('colspan')?_0xb823d6['getAttribute']('colspan')-0x1:0x0;_0x2d14af=_0x30ae1b<_0x2d14af?_0x30ae1b:_0x2d14af,_0x5cfecc=_0x30ae1b+_0x306d96>_0x5cfecc?_0x30ae1b+_0x306d96:_0x5cfecc,_0x3eced2=_0x3e61d1<_0x3eced2?_0x3e61d1:_0x3eced2,_0x4b3432=_0x3e61d1+_0x484829>_0x4b3432?_0x3e61d1+_0x484829:_0x4b3432;}return{'minRow':_0x2d14af,'maxRow':_0x5cfecc,'minColumn':_0x3eced2,'maxColumn':_0x4b3432};}['_setupColumnsRowsFixing'](){const _0xcd3928=this['editor'],_0x3b4d9a=_0xcd3928['plugins']['get']('TrackChangesEditing'),_0x53d40f=_0xcd3928['plugins']['get']('TableUtils');_0xcd3928['model']['document']['on']('change:data',()=>{const _0x571ea8=Array['from'](_0xcd3928['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x430ae6,data:_0x445544}of _0x571ea8){const {group:_0x5b2df8,id:_0x51add4,subType:_0x269ae8}=_0x3b4d9a['_splitMarkerName'](_0x430ae6);if('suggestion'!=_0x5b2df8)continue;if(null!=_0x445544['oldRange'])continue;const _0x35489c=_0x3b4d9a['getSuggestion'](_0x51add4);this['_tablePostFixingSubtypes']['includes'](_0x269ae8)&&this['_tableSuggestions']['add'](_0x35489c);}},{'priority':'low'});const _0x5c832d=(_0x223aa0,_0x1e1ce1)=>{let _0x53b6a9=!0x1;const _0x3af684=_0x1e1ce1['createRangeOn'](_0x223aa0),_0x52927f=_0x223aa0['findAncestor']('table'),_0x159b4e=_0x53d40f['getCellLocation'](_0x223aa0);for(const _0x467d01 of this['_tableSuggestions']){const _0xab40f5=_0x467d01['subType'],_0x4762d3=_0xab40f5['startsWith']('tablePaste'),_0x596153=_0xab40f5['substr'](_0x4762d3?0xa:0x5),_0x4db863=_0x596153['toLowerCase'](),_0x406ae5=_0x4db863['substr'](0x0,0x3)+'span',_0x3866ec='min'+_0x596153,_0x4bc78c='max'+_0x596153;if(!_0x467d01['isInContent'])continue;if(_0x52927f!=_0x467d01['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x467d01['isIntersectingWithRange'](_0x3af684))continue;const _0x4acf3f=_0x223aa0['hasAttribute'](_0x406ae5)?_0x223aa0['getAttribute'](_0x406ae5)-0x1:0x0,_0x29c28b=this['_getSuggestionCoords'](_0x467d01),_0xe1d5e=_0x29c28b[_0x3866ec],_0x37a110=_0x29c28b[_0x4bc78c];_0xe1d5e<=_0x159b4e[_0x4db863]&&_0x159b4e[_0x4db863]+_0x4acf3f<=_0x37a110&&(_0x467d01['addRange'](_0x3af684),_0x53b6a9=!0x0);}return _0x53b6a9;};_0xcd3928['model']['document']['registerPostFixer'](_0x59edcd=>{let _0x359799=!0x1;for(const _0x15237d of _0xcd3928['model']['document']['differ']['getChanges']())if('insert'==_0x15237d['type']){if('tableRow'==_0x15237d['name']){for(const _0x2019a2 of _0x15237d['position']['nodeAfter']['getChildren']())_0x359799=_0x359799||_0x5c832d(_0x2019a2,_0x59edcd);}else'tableCell'==_0x15237d['name']&&(_0x359799=_0x359799||_0x5c832d(_0x15237d['position']['nodeAfter'],_0x59edcd));}return _0x359799;});}['_getSuggestionCoords'](_0x44e215){return this['_getCoordsForCells'](_0x44e215['getRanges']()['map'](_0x1a6584=>_0x1a6584['start']['nodeAfter']));}}function Ne(_0x869f0b){return Array['from'](new Set(_0x869f0b)['values']());}class _t extends _0x27a629{static get['requires'](){return[At];}['afterInit'](){const _0x2833da=this['editor'],_0x236261=_0x2833da['model']['document']['selection'],_0x11b55b=_0x2833da['locale'];if(!_0x2833da['plugins']['has']('TableEditing'))return;const _0x5af25d=_0x2833da['plugins']['get']('TrackChangesEditing'),_0x2e853b=_0x2833da['plugins']['get']('TableUtils'),_0x3b15e5=_0x2833da['plugins']['get'](At);_0x3b15e5['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5af25d['enableCommand']('mergeTableCells',()=>{const _0x3c1913=_0x2e853b['getSelectionAffectedTableCells'](_0x2833da['model']['document']['selection']);_0x2833da['model']['change'](()=>{_0x5af25d['markMultiRangeBlockFormat'](_0x3c1913,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2833da['commands']['get']('mergeTableCells')['on']('execute',(_0x402cc6,_0x5ea7e7)=>{_0x2833da['commands']['get']('trackChanges')['value']&&(_0x5ea7e7['length']>0x0&&_0x5ea7e7[_0x5ea7e7['length']-0x1]&&_0x5ea7e7[_0x5ea7e7['length']-0x1]['forceDefaultExecution']||_0x5af25d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x402cc6['stop']());},{'priority':'highest'});for(const _0x1cd9d5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4f3e6b=_0x2833da['commands']['get'](_0x1cd9d5);_0x5af25d['enableCommand'](_0x1cd9d5,()=>{const _0xa33f69=_0x2833da['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x27ffae=>_0x27ffae['is']('element','tableCell')),_0x5f0dea=_0x4f3e6b['value'];_0x2833da['model']['change'](()=>{_0x5af25d['markMultiRangeBlockFormat']([_0xa33f69,_0x5f0dea],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5acb7e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x30454c=_0x2833da['commands']['get'](_0x5acb7e);_0x5af25d['enableCommand'](_0x5acb7e,()=>{const _0x59187f=_0x2e853b['getSelectionAffectedTableCells'](_0x2833da['model']['document']['selection'])[0x0],_0x3adc93=_0x59187f['findAncestor']('table'),{column:_0x14fe3f,row:_0x580b5b}=_0x2e853b['getCellLocation'](_0x59187f);let _0x58b54e=[];if('horizontally'==_0x30454c['direction']){const _0x55c048=_0x2e853b['createTableWalker'](_0x3adc93,{'startRow':_0x580b5b,'endRow':_0x580b5b,'includeAllSlots':!0x0});_0x58b54e=Array['from'](_0x55c048)['map'](_0x5b6026=>_0x5b6026['cell']);}else{const _0x3a09e6=_0x2e853b['createTableWalker'](_0x3adc93,{'column':_0x14fe3f,'includeAllSlots':!0x0});_0x58b54e=Array['from'](_0x3a09e6)['map'](_0x1fb5b0=>_0x1fb5b0['cell']);}_0x2833da['model']['change'](_0xe28531=>{_0x5af25d['markBlockFormat'](_0xe28531['createRangeOn'](_0x59187f),{'commandName':_0x5acb7e,'commandParams':[]},_0x58b54e,_0x5acb7e);});});}_0x5af25d['descriptionFactory']['registerDescriptionCallback'](_0x3f9e20=>{if('formatBlock'!=_0x3f9e20['type']&&'formatInline'!=_0x3f9e20['type'])return;const {data:_0x38be02}=_0x3f9e20;return _0x38be02&&'mergeTableCells'==_0x38be02['commandName']?{'type':'format','content':o(_0x11b55b,'*Merge\x20cells*')}:void 0x0;}),_0x5af25d['descriptionFactory']['registerDescriptionCallback'](_0x4682a9=>{if('formatBlock'!=_0x4682a9['type']&&'formatInline'!=_0x4682a9['type'])return;const {data:_0x1c503a}=_0x4682a9;return _0x1c503a?'splitTableCellVertically'==_0x1c503a['commandName']?{'type':'format','content':o(_0x11b55b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1c503a['commandName']?{'type':'format','content':o(_0x11b55b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x36b531=_0x3b15e5['_acceptFormatSuggestionCallbackFactory']();for(const _0xfa74f9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5af25d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xfa74f9,'accept',_0x36b531);for(const _0x5508b0 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5af25d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5508b0,'accept',_0x36b531);_0x5af25d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1b5e93=>{_0x2833da['model']['change'](_0x5cb865=>{const _0x3d11bc=Array['from'](_0x236261['getRanges']())['map'](_0x45c239=>_0x3b6fe0['fromRange'](_0x45c239));_0x5cb865['setSelection'](_0x1b5e93),_0x2833da['commands']['get']('mergeTableCells')['refresh'](),_0x2833da['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2b09bd=_0x3d11bc['filter'](_0x2b917c=>'$graveyard'!=_0x2b917c['root']['rootName']);_0x2b09bd['length']>0x0&&_0x5cb865['setSelection'](_0x2b09bd);for(const _0x50caa9 of _0x3d11bc)_0x50caa9['detach']();});});for(const _0x46a241 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x28a9d5=_0x2833da['commands']['get'](_0x46a241);_0x28a9d5['on']('set:isEnabled',(_0x315cf5,_0x281ad8,_0x32236d)=>{if(_0x32236d){const _0x149bfe=_0x2833da['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x52af08=>_0x52af08['is']('element','tableCell'));this['_areMergableCells'](_0x28a9d5['value'],_0x149bfe)||(_0x315cf5['return']=!0x1,_0x315cf5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x339e08=this['editor']['commands']['get']('mergeTableCells'),_0x41f501=this['editor']['plugins']['get']('TableUtils');if(!_0x339e08['isEnabled'])return!0x1;const _0x52f803=_0x41f501['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4cb7ee of _0x52f803)for(const _0x513113 of _0x52f803)if(_0x4cb7ee!=_0x513113&&!this['_areMergableCells'](_0x4cb7ee,_0x513113))return!0x1;return!0x0;}['_areMergableCells'](_0x17529e,_0x24a89e){const _0x303118=this['editor']['plugins']['get']('TrackChangesEditing'),_0x162985=this['editor']['model']['createRangeOn'](_0x17529e),_0x5075f2=this['editor']['model']['createRangeOn'](_0x24a89e),_0x119394=new Set(),_0x3d12b4=new Set();for(const _0x4ab447 of _0x303118['getSuggestions']())if(('insertion'==_0x4ab447['type']||'deletion'==_0x4ab447['type']||'mergeTableCells'==_0x4ab447['subType'])&&_0x4ab447['isInContent']){for(const _0x1cc099 of _0x4ab447['getRanges']())_0x1cc099['containsRange'](_0x162985,!0x0)&&_0x119394['add'](_0x4ab447['type']+':'+_0x4ab447['author']['id']),_0x1cc099['containsRange'](_0x5075f2,!0x0)&&_0x3d12b4['add'](_0x4ab447['type']+':'+_0x4ab447['author']['id']);}if(_0x119394['size']!=_0x3d12b4['size'])return!0x1;for(const _0x40b149 of _0x119394)if(!_0x3d12b4['has'](_0x40b149))return!0x1;return!0x0;}}class Ct extends _0x27a629{static get['requires'](){return[At];}['afterInit'](){const _0x4e179e=this['editor'];if(!_0x4e179e['plugins']['has']('TableEditing'))return;const _0x2c91ba=_0x4e179e['locale'],_0x5943be=_0x4e179e['plugins']['get']('TrackChangesEditing');_0x5943be['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5943be['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5943be['registerBlockAttribute']('headingRows'),_0x5943be['registerBlockAttribute']('headingColumns'),_0x5943be['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2c91ba,'FORMAT_HEADER_ROW')),_0x5943be['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2c91ba,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1f7b53=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28e388=this['editor']['plugins']['get']('TableUtils'),_0x8d2938=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x56cece({showActiveMarker:_0x30e94b=!0x0,setDataAttribute:_0x25b05f=!0x0}={}){return(_0x399ceb,_0x5d48c4,_0x3f42fc)=>{const {type:_0x9aaa5c,id:_0x102778}=_0x1f7b53['_splitMarkerName'](_0x5d48c4['markerName']),_0x3a41bc=_0x1f7b53['getSuggestion'](_0x102778),_0x2511c3=_0x3a41bc['data'];if('formatBlock'!=_0x3a41bc['type']||!_0x2511c3||'setTableColumnHeader'!=_0x2511c3['commandName'])return;if(_0x5d48c4['item'])return void _0x399ceb['stop']();if(!_0x3f42fc['consumable']['consume'](_0x5d48c4['markerRange'],_0x399ceb['name']))return;const _0xa22340=_0x5d48c4['markerRange']['start']['nodeAfter'],_0x812d42=_0x5d48c4['markerRange']['end']['nodeBefore'],_0x2e0a6c=_0xa22340['parent']['parent'],{column:_0x1883e4}=_0x28e388['getCellLocation'](_0xa22340),{column:_0xe2912d}=_0x28e388['getCellLocation'](_0x812d42);for(let _0x4a0df3=_0x1883e4;_0x4a0df3<=_0xe2912d;_0x4a0df3++){const _0x5bef60=_0x28e388['createTableWalker'](_0x2e0a6c,{'column':_0x4a0df3,'includeAllSlots':!0x1});for(const _0x56d1c2 of _0x5bef60){const _0xd0e98e=_0x56d1c2['cell'],_0x3c7b8c=_0x3f42fc['mapper']['toViewElement'](_0xd0e98e);_0x3f42fc['writer']['addClass']('ck-suggestion-marker-'+_0x9aaa5c,_0x3c7b8c),_0x25b05f&&_0x3f42fc['writer']['setAttribute']('data-suggestion',_0x102778,_0x3c7b8c),_0x3f42fc['mapper']['bindElementToMarker'](_0x3c7b8c,_0x5d48c4['markerName']),_0x30e94b&&(_0x1f7b53['activeMarkers']['includes'](_0x5d48c4['markerName'])?_0x3f42fc['writer']['addClass']('ck-suggestion-marker--active',_0x3c7b8c):_0x3f42fc['writer']['removeClass']('ck-suggestion-marker--active',_0x3c7b8c));}}};}_0x1f7b53['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x8d2938),_0x1f7b53['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x8d2938),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x56cece(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x98f257,_0x269b31,_0x4e5e67)=>{_0x4e5e67['options']['showSuggestionHighlights']&&_0x56cece({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x98f257,_0x269b31,_0x4e5e67);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3c9bc5,_0x53f2e0,_0x49f34c)=>{const {type:_0x34d693,id:_0xf09b14}=_0x1f7b53['_splitMarkerName'](_0x53f2e0['markerName']),_0x3bba45=_0x1f7b53['getSuggestion'](_0xf09b14),_0x347f04=_0x3bba45['data'];if('formatBlock'!=_0x3bba45['type']||!_0x347f04||'setTableColumnHeader'!=_0x347f04['commandName'])return;const _0x355b9e=_0x49f34c['mapper']['markerNameToElements'](_0x53f2e0['markerName']);if(_0x355b9e){for(const _0x5ac864 of _0x355b9e)_0x49f34c['writer']['removeClass']('ck-suggestion-marker-'+_0x34d693,_0x5ac864),_0x49f34c['writer']['removeClass']('ck-suggestion-marker--active',_0x5ac864),_0x49f34c['writer']['removeAttribute']('data-suggestion',_0x5ac864),_0x49f34c['mapper']['unbindElementFromMarkerName'](_0x5ac864,_0x53f2e0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33a4e7=this['editor'],_0x517e55=_0x33a4e7['locale'];function _0x1f3115(_0x41abf1){return{'type':'format','content':o(_0x517e55,'*Format:*\x20%0',_0x41abf1)};}_0x33a4e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ad245=>{if('formatBlock'!=_0x4ad245['type'])return;const {data:_0x350956}=_0x4ad245;if(_0x350956){if('setTableRowHeader'==_0x350956['commandName']){const _0x5292ee=_0x350956['commandParams'][0x0]['forceValue'];return _0x1f3115(o(_0x517e55,_0x5292ee?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x350956['commandName']){const _0x2548b=_0x350956['commandParams'][0x0]['forceValue'];return _0x1f3115(o(_0x517e55,_0x2548b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x27a629{['afterInit'](){const _0x4fadb1=this['editor'],_0x152eba=_0x4fadb1['locale'],_0x3a4f75=_0x4fadb1['plugins']['get']('TrackChangesEditing');function _0x2cdcfb(_0x1d97c9){return{'type':'format','content':''+o(_0x152eba,'*Set\x20table\x20type:*\x20%0',_0x1d97c9)};}_0x4fadb1['plugins']['has']('TableLayout')&&(_0x3a4f75['enableCommand']('insertTableLayout'),_0x3a4f75['enableDefaultAttributesIntegration']('tableType'),_0x3a4f75['registerBlockAttribute']('tableType'),_0x3a4f75['descriptionFactory']['registerElementLabel'](_0x5105c9=>_0x5105c9['is']('element','table')&&'layout'===_0x5105c9['getAttribute']('tableType'),_0x4141e2=>o(_0x152eba,'ELEMENT_LAYOUT_TABLE',_0x4141e2)),_0x3a4f75['descriptionFactory']['registerDescriptionCallback'](_0x14644d=>{const {data:_0x265175}=_0x14644d;if(_0x265175&&'tableType'==_0x265175['key'])switch(_0x265175['newValue']){case'layout':return _0x2cdcfb(o(_0x152eba,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2cdcfb(o(_0x152eba,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x2e5078=>[_0x2e5078,null]));class Nt extends _0x27a629{static get['requires'](){return[At];}['afterInit'](){const _0x2336b0=this['editor'];if(!_0x2336b0['plugins']['has']('TableClipboard'))return;const _0x27ca58=_0x2336b0['plugins']['get']('TrackChangesEditing'),_0x20a125=_0x2336b0['plugins']['get']('TableUtils'),_0x28a393=_0x2336b0['plugins']['get'](At),_0x5258fb=_0x2336b0['plugins']['get']('TableClipboard'),_0x55682f=_0x2336b0['plugins']['get']('TableSelection'),_0x333a21=_0x2336b0['plugins']['get'](_0x2c5337);_0x28a393['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2336b0['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2336b0['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xc316dc=null,_0x443c0e=!0x1;_0x333a21['on']('contentInsertion',(_0x34a3e9,_0x365421)=>{_0x443c0e='paste'===_0x365421['method'];}),_0x2336b0['model']['on']('insertContent',(_0x5c6eb5,_0x36c017)=>{if(!_0x443c0e&&null===_0x55682f['getSelectedTableCells']())return;const [_0x84a217,_0x541220]=_0x36c017,_0x504427=_0x36c017[_0x36c017['length']-0x1];_0x504427&&_0x504427['forceDefaultExecution']||_0x27ca58['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3b2911,_0x510258,_0x4bdfd4,_0x56ec2c,_0x116ff3){if(_0x510258&&!_0x510258['is']('documentSelection'))return!0x1;const _0x52674d=_0x116ff3['getTableIfOnlyTableInContent'](_0x3b2911,_0x4bdfd4);if(!_0x52674d||!Ue(_0x52674d,void 0x0,_0x56ec2c))return!0x1;const _0x2bdcdb=_0x56ec2c['getSelectionAffectedTableCells'](_0x4bdfd4['document']['selection']);if(!_0x2bdcdb['length'])return!0x1;const _0x14af69=_0x2bdcdb[0x0]['findAncestor']('table'),_0x387a61=_0x56ec2c['getRowIndexes'](_0x2bdcdb),_0x495cbf=_0x56ec2c['getColumnIndexes'](_0x2bdcdb),_0xcc15d3={'startRow':_0x387a61['first'],'endRow':_0x387a61['last'],'startColumn':_0x495cbf['first'],'endColumn':_0x495cbf['last']};return 0x1==_0x2bdcdb['length']&&(_0xcc15d3['endRow']+=_0x56ec2c['getRows'](_0x52674d)-0x1,_0xcc15d3['endColumn']+=_0x56ec2c['getColumns'](_0x52674d)-0x1),Ue(_0x14af69,_0xcc15d3,_0x56ec2c);}(_0x84a217,_0x541220,_0x2336b0['model'],_0x20a125,_0x5258fb)&&(_0x5c6eb5['stop'](),_0xc316dc={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2336b0['model']['change'](()=>{_0x2336b0['model']['insertContent'](_0x36c017[0x0],_0x36c017[0x1],_0x36c017[0x2],{'forceDefaultExecution':!0x0});const _0x3ee52f=_0x2bc0a0(),{rowInsertionRanges:_0x209e90,columnInsertionRanges:_0x64bd2f,insertionRanges:_0x107410,deletionRanges:_0xa647ab,cells:_0x91a24d}=_0xc316dc;_0x209e90['length']&&_0x27ca58['markMultiRangeInsertion'](_0x209e90,'tablePasteRow',{'tablePasteChainId':_0x3ee52f}),_0x64bd2f['length']&&_0x27ca58['markMultiRangeInsertion'](_0x64bd2f,'tablePasteColumn',{'tablePasteChainId':_0x3ee52f}),_0x107410['length']&&(_0x27ca58['markMultiRangeInsertion'](_0x107410,'tablePaste',{'tablePasteChainId':_0x3ee52f,'skipNestingCheck':!0x0}),_0x107410['forEach'](_0x298bf0=>_0x298bf0['detach']?.())),_0xa647ab['length']&&(_0x27ca58['markMultiRangeDeletion'](_0xa647ab,'tablePaste',{'tablePasteChainId':_0x3ee52f,'skipNestingCheck':!0x0}),_0xa647ab['forEach'](_0x4f84f1=>_0x4f84f1['detach']?.()));const _0x26abdb=_0x27ca58['markMultiRangeBlockFormat'](_0x91a24d['map'](({element:_0x7a9af3})=>_0x7a9af3),{'formatGroupId':_0x2bc0a0()},[],'tablePasteCell',{'tablePasteChainId':_0x3ee52f});if(_0x26abdb){const _0x2083b9=_0x26abdb['getMarkers'](),_0x57a659=[];for(const {element:_0xac788a,attributes:_0x3be03a}of _0x91a24d){if(!_0x3be03a)continue;const _0x54551b=_0x2336b0['model']['createRangeOn'](_0xac788a),_0x419be3=_0x2083b9['find'](_0x21b691=>_0x21b691['getRange']()['isEqual'](_0x54551b));_0x419be3&&_0x57a659['push']([_0x419be3['name'],_0x3be03a]);}_0x57a659['length']&&_0x26abdb['setAttribute']('markerAttributes',Object['fromEntries'](_0x57a659));}_0xc316dc=null;}));},{'priority':_0x5b9fb7['high']+0xa}),_0x333a21['on']('contentInsertion',()=>{_0x443c0e=!0x1;},{'priority':'lowest'}),_0x2336b0['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3ee067,_0x4c8982)=>{const [_0x29ca0f,_0x344bd8,,_0x5c4f27]=_0x4c8982;if(!_0xc316dc)return;_0x3ee067['stop']();const _0x16b759=_0x29ca0f['cell'],_0x47e651=_0x344bd8,_0x3be38e=Oe(_0x16b759),_0x50bfb8=Oe(_0x47e651);_0x3ee067['return']=_0x16b759;let _0x274159=null,_0x33b1c6=null;if(_0x50bfb8||_0x3be38e){if(_0x3be38e&&!_0x50bfb8){_0x5c4f27['remove'](_0x16b759['getChild'](0x0));for(const _0x221b5e of Array['from'](_0x47e651['getChildren']()))_0x5c4f27['insert'](_0x221b5e,_0x16b759,'end');const _0x23f827=_0xc316dc['rowInsertionIndexes']['includes'](_0x29ca0f['row']),_0x5d97a3=_0xc316dc['columnInsertionIndexes']['includes'](_0x29ca0f['column']);_0x23f827||_0x5d97a3||(_0x274159=_0x3b6fe0['fromRange'](_0x5c4f27['createRangeIn'](_0x16b759)));}else _0x50bfb8&&!_0x3be38e&&(_0x33b1c6=_0x5c4f27['createRangeIn'](_0x16b759));}else{const _0x1c13c4=_0x5c4f27['createElement']('tableCellSuggestion'),_0x531a40=_0x5c4f27['createElement']('tableCellSuggestion');_0x5c4f27['wrap'](_0x5c4f27['createRangeIn'](_0x16b759),_0x531a40),_0x5c4f27['insert'](_0x1c13c4,_0x16b759,0x0);for(const _0x4b75ac of Array['from'](_0x47e651['getChildren']()))_0x5c4f27['insert'](_0x4b75ac,_0x1c13c4,'end');_0x274159=_0x3b6fe0['fromRange'](_0x5c4f27['createRangeOn'](_0x1c13c4)),_0x33b1c6=_0x3b6fe0['fromRange'](_0x5c4f27['createRangeOn'](_0x531a40));}const _0x4527fd=Array['from'](_0x47e651['getAttributes']())['filter'](([_0x12348c])=>Be['includes'](_0x12348c));_0xc316dc['cells']['push']({'element':_0x16b759,'attributes':_0x4527fd['length']?Object['fromEntries'](_0x4527fd):null}),_0x274159&&_0xc316dc['insertionRanges']['push'](_0x274159),_0x33b1c6&&_0xc316dc['deletionRanges']['push'](_0x33b1c6);},{'priority':'high'}),_0x20a125['on']('insertColumns',(_0xb1ca5c,_0x556a19)=>{const [_0x56bcd5,_0x1ef6c5={}]=_0x556a19;if(!_0xc316dc)return;const _0x1373fc=_0x1ef6c5['at']||0x0,_0x1cbe43=_0x1ef6c5['columns']||0x1;_0xc316dc['columnInsertionIndexes']=new Array(_0x1cbe43)['fill'](_0x1373fc)['map']((_0x50263d,_0x509234)=>_0x50263d+_0x509234);for(const {cell:_0x5e13bc}of _0x20a125['createTableWalker'](_0x56bcd5,{'startColumn':_0x1373fc,'endColumn':_0x1373fc+_0x1cbe43-0x1}))_0xc316dc['columnInsertionRanges']['push'](_0x2336b0['model']['createRangeOn'](_0x5e13bc));},{'priority':'low'}),_0x20a125['on']('insertRows',(_0x517cd6,_0x46213a)=>{const [_0xe37518,_0x255fbb={}]=_0x46213a;if(!_0xc316dc)return;const _0x172f93=_0x255fbb['at']||0x0,_0x465672=_0x255fbb['rows']||0x1;_0xc316dc['rowInsertionIndexes']=new Array(_0x465672)['fill'](_0x172f93)['map']((_0x27ac64,_0x315432)=>_0x27ac64+_0x315432);for(const {cell:_0x4f0260}of _0x20a125['createTableWalker'](_0xe37518,{'startRow':_0x172f93,'endRow':_0x172f93+_0x465672-0x1}))_0xc316dc['rowInsertionRanges']['push'](_0x2336b0['model']['createRangeOn'](_0x4f0260));},{'priority':'low'}),_0x27ca58['descriptionFactory']['registerDescriptionCallback'](_0xebed73=>{if(_0xebed73['subType']&&_0xebed73['subType']['startsWith']('tablePaste'))return _0xebed73['previous']?{}:{'type':'insertion','content':o(_0x2336b0['locale'],'*Replace\x20table\x20cells*')};});const _0x11042c=()=>!0x1;for(const _0x21d48a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x27ca58['_suggestionFactory']['registerCustomCallback']('insertion',_0x21d48a,'join',_0x11042c),_0x27ca58['_suggestionFactory']['registerCustomCallback']('deletion',_0x21d48a,'join',_0x11042c),_0x27ca58['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x21d48a,'join',_0x11042c);_0x27ca58['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x11042c),_0x27ca58['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x56909e,_0x1e6a50,_0x637f1e)=>{const _0x194bdf=_0x56909e['map'](_0x4cd886=>_0x4cd886['getContainedElement']())['filter'](_0xb70b38=>_0xb70b38),_0x223054=new Map(_0x194bdf['map'](_0x5965ce=>[_0x5965ce,null]));if(_0xc316dc){for(const {element:_0x1f8743,attributes:_0x4626d0}of _0xc316dc['cells'])_0x4626d0&&_0x223054['set'](_0x1f8743,_0x4626d0);}else{if(_0x637f1e&&_0x637f1e['markerAttributes'])for(const [_0x4c521c,_0x5052ca]of Object['entries'](_0x637f1e['markerAttributes'])){const _0x5ca8e3=_0x2336b0['model']['markers']['get'](_0x4c521c),_0x2fad23=_0x5ca8e3?_0x5ca8e3['getRange']()['getContainedElement']():null;_0x2fad23&&_0x223054['set'](_0x2fad23,_0x5052ca);}}_0x2336b0['model']['change'](_0x562e82=>{for(const [_0x1d5000,_0x1b03c2]of _0x223054)_0x562e82['setAttributes']({...xe,..._0x1b03c2},_0x1d5000);});});const _0x4c49bc=(_0x444d7b,_0x3d8dcb)=>{_0x27ca58['_suggestionFactory']['registerCustomCallback'](_0x444d7b,'tablePaste',_0x3d8dcb,(_0xc44e75,_0x4481cb,_0x58c272)=>{_0x2336b0['model']['change'](_0x1670cc=>{const _0x3f7ddb=[];for(const _0xefbb3a of _0xc44e75){const _0x2f084c=_0xefbb3a['start']['nodeAfter'];_0x2f084c['is']('element','tableCellSuggestion')&&_0x3f7ddb['push'](_0x2f084c);}_0x27ca58['_suggestionFactory']['getSuggestionCallback'](_0x444d7b,null,_0x3d8dcb)(_0xc44e75,_0x4481cb,_0x58c272);for(const _0x1fd1da of _0x3f7ddb)'$graveyard'!=_0x1fd1da['root']['rootName']&&_0x1670cc['unwrap'](_0x1fd1da);});});};_0x4c49bc('insertion','accept'),_0x4c49bc('insertion','discard'),_0x4c49bc('deletion','accept'),_0x4c49bc('deletion','discard'),_0x27ca58['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x47bc9c=>{const _0x132cad=_0x47bc9c['map'](_0x3806f2=>_0x3806f2['getContainedElement']()),_0x31d6f5=_0x132cad[0x0]['findAncestor']('table'),{minRow:_0x5b4f6e,maxRow:_0x198972}=_0x28a393['_getCoordsForCells'](_0x132cad);_0x20a125['removeRows'](_0x31d6f5,{'at':_0x5b4f6e,'rows':_0x198972-_0x5b4f6e+0x1});}),_0x27ca58['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2f50e5=>{const _0x3f2eb0=_0x2f50e5['map'](_0x40ecc1=>_0x40ecc1['getContainedElement']()),_0x47f5b4=_0x3f2eb0[0x0]['findAncestor']('table'),{minColumn:_0x3feba7,maxColumn:_0x34c499}=_0x28a393['_getCoordsForCells'](_0x3f2eb0);_0x20a125['removeColumns'](_0x47f5b4,{'at':_0x3feba7,'columns':_0x34c499-_0x3feba7+0x1});});const _0x295ae8=(_0x5051f6,_0x25764d)=>{if(!_0x25764d['subType']||!_0x25764d['subType']['startsWith']('tablePaste'))return;const _0x520647=_0x25764d['attributes']['tablePasteChainId'],_0x2c38a1=_0x27ca58['getSuggestions']()['filter'](_0x1629f4=>_0x1629f4['isInContent']&&_0x1629f4['attributes']&&_0x1629f4['attributes']['tablePasteChainId']==_0x520647);_0x2c38a1['length']&&_0x25764d['getAllAdjacentSuggestions']()['length']!=_0x2c38a1['length']&&_0x2c38a1['reduce']((_0x5e657c,_0x2c1427)=>(_0x5e657c['next']=_0x2c1427,_0x2c1427['previous']=_0x5e657c,_0x2c1427));};function _0x170a42(_0x306364,_0x55bc75=!0x0){const {id:_0x2fd2a6,authorId:_0x3ad740}=_0x27ca58['_splitMarkerName'](_0x306364['markerName']),_0x497359=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4d806c=_0x27ca58['activeMarkers']['includes'](_0x306364['markerName']);return _0x4d806c&&_0x497359['push']('ck-suggestion-marker--active'),{'classes':_0x497359,'attributes':{'data-suggestion':_0x2fd2a6,'data-author-id':_0x3ad740},'priority':_0x4d806c&&_0x55bc75?0xbc2:0xbb8};}_0x27ca58['on']('suggestionLoaded',_0x295ae8,{'priority':'high'}),_0x27ca58['on']('suggestionUnloaded',_0x295ae8,{'priority':'high'}),_0x2336b0['model']['document']['registerPostFixer'](()=>{let _0x202089=!0x1;const _0x4cf0b7=Array['from'](_0x2336b0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5d8664,data:_0x731576}of _0x4cf0b7){const {group:_0x527062,type:_0x372ec7,id:_0x45a1d7}=_0x27ca58['_splitMarkerName'](_0x5d8664);if('suggestion'!=_0x527062||'deletion'!=_0x372ec7||_0x731576['oldRange'])continue;if(!_0x27ca58['hasSuggestion'](_0x45a1d7))continue;const _0x1e234b=_0x27ca58['getSuggestion'](_0x45a1d7)['getRanges'](),_0x37e793=_0x2336b0['plugins']['get']('Users')['me'];for(const _0x160f8f of _0x27ca58['getSuggestions']()){if(!_0x160f8f['isInContent']||_0x160f8f['author']!=_0x37e793)continue;if('formatBlock'!=_0x160f8f['type']||'tablePasteCell'!=_0x160f8f['subType'])continue;if(_0x160f8f['getRanges']()['every'](_0x560dc2=>_0x1e234b['some'](_0x3d2657=>_0x3d2657['containsRange'](_0x560dc2,!0x0)))){for(const _0x484e38 of _0x160f8f['getAllAdjacentSuggestions']())_0x484e38['isInContent']&&(_0x484e38['discard'](),_0x202089=!0x0);}}}return _0x202089;}),_0x2336b0['model']['document']['registerPostFixer'](_0x119355=>{const _0x1dbd5f=_0x2336b0['commands']['get']('redo');if(!_0x1dbd5f||!_0x1dbd5f['_createdBatches']['has'](_0x119355['batch']))return!0x1;let _0x49eea8=!0x1;const _0x1c3f2a=_0x2336b0['plugins']['get']('Users')['me'],_0x214dd4=_0x2336b0['model']['document']['differ']['getChanges'](),_0x20723f=Array['from'](_0x2336b0['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x33376c,data:_0x56cc16})=>{const {group:_0xa7fef9,subType:_0x6678ec,authorId:_0x4e542b}=_0x27ca58['_splitMarkerName'](_0x33376c);return'suggestion'==_0xa7fef9&&'tablePaste'==_0x6678ec&&_0x4e542b==_0x1c3f2a['id']&&!_0x56cc16['oldRange'];});for(const _0x1f761c of _0x214dd4){if('insert'!=_0x1f761c['type']||'tableCellSuggestion'!=_0x1f761c['name']||0x1!=_0x1f761c['length'])continue;const _0x2b005d=_0x119355['createRange'](_0x1f761c['position'],_0x1f761c['position']['getShiftedBy'](0x1));if(!_0x20723f['find'](({data:_0x51f4be})=>_0x51f4be['newRange']['isEqual'](_0x2b005d))){for(const {name:_0x45fbfe,data:_0x50ea24}of _0x20723f)if(_0x2b005d['containsRange'](_0x50ea24['newRange'])){_0x119355['updateMarker'](_0x45fbfe,{'range':_0x2b005d}),_0x49eea8=!0x0;break;}}}return _0x49eea8;}),_0x2336b0['model']['document']['registerPostFixer'](_0x580c7d=>{let _0x4af3ec=!0x1;const _0x3fb8bb=_0x2336b0['plugins']['get']('Users')['me'],_0xa2ca35=_0x27ca58['getSuggestions']()['filter'](_0x2c5ed2=>_0x2c5ed2['isInContent']&&_0x2c5ed2['author']==_0x3fb8bb),_0x4dc0a1=new Set(),_0x333141=new Set();for(const _0xb8c78e of _0xa2ca35)if('tablePaste'==_0xb8c78e['subType'])for(const _0x335c9c of _0xb8c78e['getMarkers']()){const _0x11f237=_0x335c9c['getRange']()['getContainedElement']();if(_0x11f237){if(_0x11f237['is']('element','tableCellSuggestion')&&Oe(_0x11f237)){_0xb8c78e['removeMarker'](_0x335c9c['name']),_0x4dc0a1['add'](_0x11f237),_0x4af3ec=!0x0;const _0x4b93f5=_0x11f237['nextSibling'],_0x2ec33c=_0x11f237['previousSibling'],_0x888bf5=_0x4b93f5&&_0x4b93f5['is']('element','tableCellSuggestion'),_0x4ec1e4=_0x2ec33c&&_0x2ec33c['is']('element','tableCellSuggestion');_0x888bf5&&!_0x4dc0a1['has'](_0x4b93f5)&&_0x333141['add'](_0x4b93f5),_0x4ec1e4&&!_0x4dc0a1['has'](_0x2ec33c)&&_0x333141['add'](_0x2ec33c);}else _0x11f237['is']('element','paragraph')&&_0x11f237['isEmpty']&&(_0xb8c78e['removeMarker'](_0x335c9c['name']),_0x4af3ec=!0x0);}}else{if('tablePasteCell'==_0xb8c78e['subType']){if(!_0xb8c78e['attributes']||!_0xb8c78e['attributes']['tablePasteChainId'])continue;const _0x30963a=_0xb8c78e['attributes']['markerAttributes'];if(_0x30963a&&Object['keys'](_0x30963a)['length'])continue;const _0x3a982e=_0xb8c78e['attributes']['tablePasteChainId'];let _0x30407b=!0x0,_0x2cab14=!0x0;for(const _0x3ae48c of _0xa2ca35)if(_0x3ae48c['subType']&&_0x3ae48c['subType']['startsWith']('tablePaste')){if(!_0x3ae48c['attributes']['tablePasteChainId']){_0x2cab14=!0x1;break;}if(_0x3ae48c['id']!=_0xb8c78e['id']&&_0x3ae48c['attributes']['tablePasteChainId']==_0x3a982e){_0x30407b=!0x1;break;}}_0x2cab14&&_0x30407b&&(_0xb8c78e['removeMarkers'](),_0x4af3ec=!0x0);}}for(const _0x733bc2 of _0x4dc0a1)_0x580c7d['remove'](_0x733bc2);for(const _0x18125f of _0x333141)_0x580c7d['unwrap'](_0x18125f);return _0x4af3ec;}),_0x2336b0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4fa80d=>_0x170a42(_0x4fa80d),'converterPriority':'high'}),_0x2336b0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5e285f,_0x495041)=>_0x495041['options']['showSuggestionHighlights']?_0x170a42(_0x5e285f,!0x1):null,'converterPriority':'high'});const _0x5ba624=_0x2336b0['editing']['view'];this['listenTo'](_0x5ba624['document'],'clipboardOutput',(_0x4797f3,_0x419e36)=>{const _0x26452f=[];for(const _0x39d801 of _0x5ba624['createRangeIn'](_0x419e36['content'])['getItems']())_0x39d801['is']('element','suggestion-td')&&_0x26452f['push'](_0x39d801);_0x5ba624['change'](_0x172eb3=>{for(const _0x293b74 of _0x26452f)_0x172eb3['move'](_0x172eb3['createRangeIn'](_0x293b74),_0x172eb3['createPositionBefore'](_0x293b74)),_0x172eb3['remove'](_0x293b74);});});}}function Oe(_0x533332){if(_0x533332['isEmpty'])return!0x0;const _0x1196b7=_0x533332['getChild'](0x0);return _0x1196b7['is']('element','paragraph')&&_0x1196b7['isEmpty'];}function Ue(_0x4d0ec8,_0x44cdbb={},_0x2a6202){for(const {isAnchor:_0x5989cb,cellHeight:_0x1bfa04,cellWidth:_0x460deb}of _0x2a6202['createTableWalker'](_0x4d0ec8,{'includeAllSlots':!0x0,..._0x44cdbb}))if(!_0x5989cb||0x1!=_0x1bfa04||0x1!=_0x460deb)return!0x1;return!0x0;}class Dt extends _0x27a629{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x150e0c=this['editor']['plugins']['get']('TrackChangesEditing');_0x150e0c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x150e0c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x150e0c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x150e0c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x150e0c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x150e0c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x44b2ed,_0x39b327){const _0x219364=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35b1c7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x298a96=_0x39b327['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x731b9d=_0x35b1c7['getColumnGroupElement'](_0x298a96);let _0x235166=_0x731b9d?_0x35b1c7['getTableColumnsWidths'](_0x731b9d):null,_0x49b432=_0x298a96['getAttribute']('tableWidth')||null;const _0x3f2f0c=_0x39b327['tableWidth']||_0x49b432,_0x5cd93c=_0x39b327['columnWidths']||_0x235166,_0x16e4a4=this['editor']['plugins']['get']('Users')['me'];for(const _0x341623 of _0x219364['getSuggestions']()){const _0x542203=_0x341623['getContainedElement']();if('resizeTable'===_0x341623['subType']&&_0x542203===_0x298a96){_0x341623['author']!==_0x16e4a4&&_0x341623['discard']();const _0x41165d=_0x341623['data']['commandParams'];_0x49b432=_0x41165d[0x0]['tableWidth'],_0x235166=_0x41165d[0x0]['columnWidths'];break;}}_0x44b2ed({'table':_0x298a96,'tableWidth':_0x3f2f0c,'columnWidths':_0x5cd93c}),_0x219364['markBlockFormat'](_0x298a96,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x49b432,'columnWidths':_0x235166}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x27e83a){if('formatBlock'!=_0x27e83a['type']&&'formatInline'!=_0x27e83a['type'])return;const {data:_0x2da263}=_0x27e83a;if(_0x2da263&&'resizeTable'===_0x2da263['formatGroupId']){const _0x5d3224='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5d3224)};}}}class $t extends _0x27a629{['afterInit'](){const _0x145540=this['editor'];_0x145540['plugins']['has']('Template')&&_0x145540['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x27a629{['afterInit'](){const _0x527b49=this['editor'];if(!_0x527b49['commands']['get']('insertTableOfContents'))return;_0x527b49['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3b6ecd=_0x527b49['plugins']['get']('TrackChangesEditing'),_0x48f191=_0x527b49['locale'];_0x3b6ecd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3bc0a6=>o(_0x48f191,'ELEMENT_TABLE_OF_CONTENTS',_0x3bc0a6));}}class Bt extends _0x27a629{['afterInit'](){const _0x7a2760=this['editor'];if(!_0x7a2760['plugins']['has']('Title'))return;const _0x10b38d=_0x7a2760['plugins']['get']('TrackChangesEditing');_0x10b38d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x7a2760['locale'],'ELEMENT_TITLE')),_0x7a2760['model']['document']['registerPostFixer'](_0x47c575=>{let _0x37b278=!0x1;const _0x3f33a2=Array['from'](_0x7a2760['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5407f9,data:_0x452990}of _0x3f33a2){const {group:_0x194369}=_0x10b38d['_splitMarkerName'](_0x5407f9);if('suggestion'!==_0x194369||!_0x452990['newRange'])continue;const _0x5bf91d=_0x452990['newRange'],_0x4e3fe6=_0x5bf91d['end']['nodeBefore'];if(!_0x4e3fe6||!_0x4e3fe6['is']('element','title-content'))continue;if(!_0x5bf91d['start']['isTouching'](_0x5bf91d['end']))continue;const _0xadf9aa=_0x7a2760['model']['schema']['getNearestSelectionRange'](_0x5bf91d['end'],'forward');if(_0xadf9aa&&_0xadf9aa['isCollapsed']){const _0x19b493=_0x47c575['createRange'](_0x5bf91d['start'],_0xadf9aa['start']);_0x19b493['isEqual'](_0x5bf91d)||(_0x47c575['updateMarker'](_0x5407f9,{'range':_0x19b493}),_0x37b278=!0x0);}_0x37b278||(_0x47c575['removeMarker'](_0x5407f9),_0x37b278=!0x0);}return _0x37b278;});}}class Tt extends _0x27a629{['afterInit'](){const _0x1e2317=this['editor'],_0x3d2100=_0x1e2317['plugins']['get']('TrackChangesEditing');_0x1e2317['plugins']['has']('Uploadcare')&&(_0x3d2100['enableCommand']('uploadcare'),_0x1e2317['plugins']['has']('UploadcareImageEdit')&&(_0x3d2100['enableCommand']('uploadcareImageEdit'),_0x3d2100['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3d2100['registerBlockAttribute']('uploadcareImageId'),_0x3d2100['descriptionFactory']['registerDescriptionCallback'](_0x5336b1=>{if('attribute'!=_0x5336b1['type'])return;const {data:_0xd21842}=_0x5336b1;return _0xd21842&&'uploadcareImageId'==_0xd21842['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x27a629{['afterInit'](){const _0x495e3c=this['editor'],_0xbbf90f=_0x495e3c['plugins']['get']('TrackChangesEditing');_0x495e3c['plugins']['has']('UndoEditing')&&(_0xbbf90f['enableCommand']('undo'),_0xbbf90f['enableCommand']('redo'));}}class Ot extends _0x27a629{static get['requires'](){return[At];}['afterInit'](){const _0x363b4e=this['editor'];if(!_0x363b4e['plugins']['has']('TableCaptionEditing'))return;_0x363b4e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x27a629{['tableProperties'];['tableCellProperties'];constructor(_0x4497f2){super(_0x4497f2),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 _0x5f0096=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3d38e4 of this['tableProperties'])_0x5f0096['enableCommand'](_0x3d38e4,(_0x1506e3,_0x35d933)=>{const _0x882969=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3d38e4,[_0x882969],this['tableProperties'],'tableProperties',_0x1506e3,_0x35d933);});_0x5f0096['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5f0096['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5f0096['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1dc614,_0x513e6a)=>this['handleDiscardAction'](this['tableProperties'],_0x1dc614,_0x513e6a)),_0x5f0096['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x148ae9 of this['tableCellProperties'])_0x5f0096['enableCommand'](_0x148ae9,(_0x3031e6,_0x1f451e)=>{const _0x428d45=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x148ae9,_0x428d45,this['tableCellProperties'],'tableCellProperties',_0x3031e6,_0x1f451e);});_0x5f0096['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5f0096['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5f0096['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x358c3c,_0x7cf5fa)=>this['handleDiscardAction'](this['tableCellProperties'],_0x358c3c,_0x7cf5fa)),_0x5f0096['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5f0096['descriptionFactory']['registerDescriptionCallback'](_0x50df22=>this['handleSuggestionDescription'](_0x50df22)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x167448,_0x1269d1,_0x23f3aa,_0x107690,_0x4f1259,_0x8ea4e3){const _0x4a701d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x8ea4e3['batch'],()=>{for(const _0x35f24c of _0x1269d1){if(this['_getSuggestion'](_0x35f24c,_0x107690))_0x4f1259(_0x8ea4e3);else{const _0x537050={};for(const _0x33b10b of _0x23f3aa){const _0x283c99=_0x35f24c['getAttribute'](_0x33b10b);void 0x0!==_0x283c99&&(_0x537050[_0x33b10b]=_0x283c99);}_0x4f1259(_0x8ea4e3),_0x4a701d['markBlockFormat'](_0x35f24c,{'commandParams':[_0x537050]},[],_0x107690);}}});}['handleDiscardAction'](_0x2c7e9a,_0x499d31,_0x4d0f92){const _0x565340=_0x499d31[0x0]['start']['nodeAfter'],_0x2c006f=_0x4d0f92['commandParams'][0x0];this['editor']['model']['change'](_0x37d015=>{for(const _0x29aeab of _0x2c7e9a)void 0x0!==_0x2c006f[_0x29aeab]?_0x37d015['setAttribute'](_0x29aeab,_0x2c006f[_0x29aeab],_0x565340):_0x37d015['removeAttribute'](_0x29aeab,_0x565340);});}['handleSuggestionDescription'](_0x1537e2){if(_0x1537e2['data'])switch(_0x1537e2['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'](_0x30a113,_0x46c92d){const _0xc52d8b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1a6664 of _0xc52d8b['getSuggestions']({'skipNotAttached':!0x0})){const _0x383ad7=_0x1a6664['getContainedElement']();if(_0x1a6664['subType']===_0x46c92d&&_0x383ad7===_0x30a113)return _0x1a6664;}return null;}['_registerTablePropertiesAttributes'](){const _0x529bff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17dd51=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x318039 of _0x17dd51){const _0x31e3c5=_0x318039['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x529bff['registerBlockAttribute'](_0x318039),_0x529bff['descriptionFactory']['registerAttributeLabel'](_0x318039,o(this['editor']['locale'],'FORMAT_'+_0x31e3c5));}}}class Rt extends _0x27a629{['afterInit'](){const _0x1a7d10=this['editor'];if(!_0x1a7d10['plugins']['has']('LineHeight'))return;const _0x2193a1=_0x1a7d10['plugins']['get']('TrackChangesEditing'),_0x11ccb4=_0x1a7d10['locale'];_0x2193a1['enableDefaultAttributesIntegration']('lineHeight'),_0x2193a1['registerBlockAttribute']('lineHeight'),_0x2193a1['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x11ccb4,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x27a629{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0xb189ac,_0x13b1a2,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,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1681db){super(_0x1681db),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x16628c,_0x54efdc,_0x3aeb1c,_0x9b32ab)=>{this['_model']['change'](()=>{for(const _0x16edd7 of[..._0x9b32ab,..._0x3aeb1c])this['_model']['markers']['has'](_0x16edd7)&&_0x1681db['editing']['reconvertMarker'](_0x16edd7);});}),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']=_0x1681db['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(),_0x1681db['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1681db['config']['get']('trackChanges.trackFormatChanges'),_0x1681db['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1681db['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x1681db,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x45eba2=this['editor'],_0x329011=(_0xc49127,_0x4acdcb)=>{if('attribute'!=_0xc49127)return'ck-suggestion-marker-'+_0xc49127;const _0x321c21=_0x4acdcb['split']('|')[0x0];return this['_isBlockAttribute'](_0x321c21)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x45eba2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2e7208=>{const {id:_0x585279,authorId:_0x14f09e,type:_0xb5ed13,subType:_0x450d43}=this['_splitMarkerName'](_0x2e7208['markerName']),_0x4b2545=['ck-suggestion-marker',_0x329011(_0xb5ed13,_0x450d43)];let _0x4ab2a1=0xbb8;return this['activeMarkers']['includes'](_0x2e7208['markerName'])&&(_0x4b2545['push']('ck-suggestion-marker--active'),_0x4ab2a1=0xbc2),'deletion'==_0xb5ed13&&(_0x4ab2a1+=0x5),{'classes':_0x4b2545,'attributes':{'data-suggestion':_0x585279,'data-author-id':_0x14f09e},'priority':_0x4ab2a1};}}),_0x45eba2['conversion']['for']('dataDowncast')['add'](_0x4d6822=>{_0x4d6822['on']('addMarker:suggestion',(_0x201499,_0x3c96ce,_0x4a3d31)=>{if(!_0x4a3d31['options']['showSuggestionHighlights'])return;const _0x356edf=_0x3c96ce['item'];if(!_0x356edf)return;const _0x1905af=_0x4a3d31['mapper']['toViewElement'](_0x356edf);_0x45eba2['model']['schema']['isObject'](_0x356edf)&&_0x1905af&&!_0x1905af['getCustomProperty']('widget')&&_0x1905af['is']('containerElement')&&_0x52bd06(_0x1905af,_0x4a3d31['writer']);},{'priority':'high'});}),_0x45eba2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xfd9abb,_0x4943a4)=>{if(!_0x4943a4['options']['showSuggestionHighlights'])return null;const {id:_0xbb7098,authorId:_0xf64d53,type:_0x4a3128,subType:_0x1ab083}=this['_splitMarkerName'](_0xfd9abb['markerName']);return{'classes':['ck-suggestion-marker',_0x329011(_0x4a3128,_0x1ab083)],'priority':0xbb8,'attributes':{'data-suggestion':_0xbb7098,'data-author-id':_0xf64d53}};}});const _0x387362=({showActiveMarkers:_0x4423a3=!0x0,isAttributeSuggestion:_0x434c2c=!0x1}={})=>(_0x14d200,_0x483d5c,_0x29a186)=>{if(!_0x483d5c['item'])return;const {id:_0x43f4e9,authorId:_0x571f93}=this['_splitMarkerName'](_0x483d5c['markerName']);if(_0x434c2c){const _0x4c9822=this['_suggestions']['get'](_0x43f4e9),_0x77e39d=this['_getAttributeKey'](_0x4c9822);if(!this['_isBlockAttribute'](_0x77e39d))return;}if(_0x483d5c['item']['is']('selection'))return void _0x29a186['consumable']['consume'](_0x483d5c['item'],_0x14d200['name']);const _0x2d285e=_0x29a186['mapper']['toViewElement'](_0x483d5c['item']);if(_0x483d5c['item']['is']('element')&&_0x45eba2['model']['schema']['isBlock'](_0x483d5c['item'])&&!_0x2d285e['getCustomProperty']('addHighlight')){_0x29a186['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2d285e),_0x29a186['writer']['setAttribute']('data-suggestion',_0x43f4e9,_0x2d285e),_0x29a186['writer']['setAttribute']('data-author-id',_0x571f93,_0x2d285e),_0x29a186['mapper']['bindElementToMarker'](_0x2d285e,_0x483d5c['markerName']),_0x4423a3&&(this['activeMarkers']['includes'](_0x483d5c['markerName'])?_0x29a186['writer']['addClass']('ck-suggestion-marker--active',_0x2d285e):_0x29a186['writer']['removeClass']('ck-suggestion-marker--active',_0x2d285e));for(const _0x3a0db6 of _0x45eba2['model']['createRangeIn'](_0x483d5c['item'])['getItems']())_0x29a186['consumable']['consume'](_0x3a0db6,_0x14d200['name']);_0x29a186['consumable']['consume'](_0x483d5c['item'],_0x14d200['name']);}};_0x45eba2['conversion']['for']('dataDowncast')['add'](_0x464a9d=>{_0x464a9d['on']('addMarker:suggestion:formatBlock',(_0x4d0af8,_0x5f15b8,_0x199596)=>{_0x199596['options']['showSuggestionHighlights']&&_0x387362({'showActiveMarkers':!0x1})(_0x4d0af8,_0x5f15b8,_0x199596);},{'priority':'highest'});}),_0x45eba2['conversion']['for']('dataDowncast')['add'](_0xd2ef5c=>{_0xd2ef5c['on']('addMarker:suggestion:attribute',(_0x4933eb,_0x545451,_0x7ecbb2)=>{_0x7ecbb2['options']['showSuggestionHighlights']&&_0x387362({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4933eb,_0x545451,_0x7ecbb2);},{'priority':'highest'});}),_0x45eba2['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x75bca3,_0x45e250)=>{if(_0x45e250['options']['showSuggestionHighlights']){const {id:_0x595be4,authorId:_0x292bc0}=this['_splitMarkerName'](_0x75bca3);return _0x75bca3['includes'](':split')||_0x75bca3['includes'](':merge')?{'group':'suggestion','name':_0x75bca3['substr'](0xb),'attributes':{'data-suggestion':_0x595be4,'data-author-id':_0x292bc0}}:null;}return{'group':'suggestion','name':_0x75bca3['substr'](0xb)};}}),_0x45eba2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x301894,{writer:_0x483f25})=>{let _0x6ec2ba='suggestion:'+_0x301894['getAttribute']('suggestion-type')+':'+_0x301894['getAttribute']('id');return _0x301894['getAttribute']('marker-count')&&(_0x6ec2ba+=':'+_0x301894['getAttribute']('marker-count')),_0x483f25['createElement']('$marker',{'data-name':_0x6ec2ba});}}),_0x45eba2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x45eba2['conversion']['for']('editingDowncast')['add'](_0x552dc6=>{_0x552dc6['on']('addMarker:suggestion:formatBlock',_0x387362(),{'priority':'high'});}),_0x45eba2['conversion']['for']('editingDowncast')['add'](_0x4474b5=>{_0x4474b5['on']('addMarker:suggestion:attribute',_0x387362({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x45eba2['conversion']['for']('editingDowncast')['add'](_0x490b0b=>{_0x490b0b['on']('removeMarker:suggestion:formatBlock',(_0x5739cb,_0x2e2145,_0x30308e)=>{const _0x3d517a=_0x30308e['mapper']['markerNameToElements'](_0x2e2145['markerName']);if(_0x3d517a){for(const _0x5a97ce of _0x3d517a)_0x5a97ce['getCustomProperty']('addHighlight')||(_0x30308e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a97ce),_0x30308e['writer']['removeAttribute']('data-suggestion',_0x5a97ce),_0x30308e['writer']['removeAttribute']('data-author-id',_0x5a97ce),_0x30308e['mapper']['unbindElementFromMarkerName'](_0x5a97ce,_0x2e2145['markerName']));}},{'priority':'high'});}),_0x45eba2['conversion']['for']('editingDowncast')['add'](_0x4cc3c6=>{_0x4cc3c6['on']('removeMarker:suggestion:attribute',(_0x334176,_0x149923,_0x5b7006)=>{const _0xb2481e=_0x5b7006['mapper']['markerNameToElements'](_0x149923['markerName']);if(!_0xb2481e)return;const {id:_0x2905aa}=this['_splitMarkerName'](_0x149923['markerName']),_0x2a2ab0=this['_suggestions']['get'](_0x2905aa),_0x584b40=this['_getAttributeKey'](_0x2a2ab0);if(this['_isBlockAttribute'](_0x584b40)){for(const _0x957bce of _0xb2481e)_0x957bce['getCustomProperty']('addHighlight')||(_0x5b7006['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x957bce),_0x5b7006['writer']['removeAttribute']('data-suggestion',_0x957bce),_0x5b7006['writer']['removeAttribute']('data-author-id',_0x957bce),_0x5b7006['mapper']['unbindElementFromMarkerName'](_0x957bce,_0x149923['markerName']));}},{'priority':'high'});}),_0x45eba2['model']['document']['registerPostFixer'](_0x124ab2=>{let _0xb3e3b4=!0x1;const _0x2dce8b=Array['from'](_0x45eba2['model']['document']['differ']['getChangedMarkers']()),_0x22bdef=new Set();for(const {name:_0x18dec1,data:_0x42cd89}of _0x2dce8b){const {group:_0x1d1944,type:_0x4357bc,subType:_0x36d2e4,id:_0x327ac0}=this['_splitMarkerName'](_0x18dec1);if('suggestion'!==_0x1d1944)continue;const _0x57dfc1=_0x36d2e4?'suggestion:'+_0x4357bc+':'+_0x36d2e4+':'+_0x327ac0:'suggestion:'+_0x4357bc+':'+_0x327ac0,_0xd8e1b2=_0x45eba2['model']['markers']['getMarkersGroup'](_0x57dfc1),_0x13a950=_0x45eba2['model']['markers']['get'](_0x18dec1),_0x5c9739=this['_suggestions']['get'](_0x327ac0);if(null!=_0x42cd89['newRange']){'formatInline'==_0x4357bc&&(_0xb3e3b4=_0xb3e3b4||Gt(_0x42cd89['newRange'],_0x18dec1,_0x124ab2,_0x45eba2['model']['schema']));const _0x24b7f9='attribute'==_0x4357bc&&this['_isBlockAttribute'](_0x36d2e4['split']('|')[0x0]),_0x547128='attribute'==_0x4357bc&&this['_isInlineAttribute'](_0x36d2e4['split']('|')[0x0]);if(_0x42cd89['newRange']['isCollapsed']||'$graveyard'==_0x42cd89['newRange']['root']['rootName']||'formatBlock'==_0x4357bc&&!Jt(_0x42cd89['newRange'])||_0x24b7f9&&!Jt(_0x42cd89['newRange'])||_0x547128&&Kt(_0x42cd89['newRange'])||'deletion'==_0x4357bc&&Kt(_0x42cd89['newRange'])||_0x13a950&&Ht(_0x13a950,_0xd8e1b2))_0x124ab2['removeMarker'](_0x18dec1),_0xb3e3b4=!0x0;else{if(!_0x5c9739||!_0x5c9739['isInContent'])continue;if(_0x42cd89['newRange']&&_0x42cd89['oldRange']&&_0x42cd89['newRange']['isEqual'](_0x42cd89['oldRange']))continue;_0x22bdef['add'](_0x5c9739);}}}return _0x22bdef['size']>0x0&&(_0xb3e3b4=!!this['_joinWithAdjacentSuggestions'](_0x22bdef)||_0xb3e3b4),_0xb3e3b4;}),_0x45eba2['model']['document']['registerPostFixer'](_0x42b88d=>{let _0xcb5b82=!0x1;for(const _0x3c7f9f of _0x45eba2['model']['document']['differ']['getChanges']())if('insert'==_0x3c7f9f['type'])for(const _0x427140 of this['_suggestions']['values']()){if(_0x427140['isMultiRange']||!_0x427140['isInContent'])continue;const _0xbc36fe='formatBlock'==_0x427140['type'],_0x3d8b33=this['_getAttributeKey'](_0x427140),_0x13fb8e=_0x3d8b33&&this['_isBlockAttribute'](_0x3d8b33);if(!_0xbc36fe&&!_0x13fb8e)continue;const _0x39e2ea=_0x427140['getFirstRange']();if(_0x39e2ea['start']['parent']!=_0x39e2ea['end']['parent']&&!_0x39e2ea['end']['isAtEnd']){const _0x13eb12=_0x45eba2['model']['createPositionAt'](_0x39e2ea['start']['nodeAfter'],'end'),_0x4e2a90=_0x45eba2['model']['createRange'](_0x39e2ea['start'],_0x13eb12);_0x42b88d['updateMarker'](_0x427140['getFirstMarker'](),{'range':_0x4e2a90}),_0xcb5b82=!0x0;}}return _0xcb5b82;}),_0x45eba2['model']['document']['registerPostFixer'](_0x38fd4e=>this['_processAttributeChanges'](_0x38fd4e)),_0x45eba2['model']['document']['registerPostFixer'](_0x2c9e65=>!_0x2c9e65['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2c9e65)),_0x45eba2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x45eba2['model']['document']['on']('change:data',(_0x2d3c70,_0x1a2014)=>{if(!_0x1a2014['isLocal']||_0x1a2014['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xeb5149=_0x45eba2['model']['document']['differ']['getChanges']();if(0x0==_0xeb5149['length'])return;const _0x9aed9e=[],_0x432964=_0xeb5149['filter'](_0x55ff04=>'attribute'==_0x55ff04['type']),_0x382140=_0xeb5149['filter'](_0x3daba6=>'insert'==_0x3daba6['type']&&'$text'!=_0x3daba6['name']);for(const _0x5b3015 of _0x432964)this['_isRegisteredAttribute'](_0x5b3015['attributeKey'])&&_0x9aed9e['push']({'key':_0x5b3015['attributeKey'],'newValue':_0x5b3015['attributeNewValue'],'oldValue':_0x5b3015['attributeOldValue'],'range':qt(_0x5b3015['range'],_0x45eba2['model'])});for(const _0x75803b of _0x382140){if('rename'!=_0x75803b['action']&&'refresh'!=_0x75803b['action'])continue;const _0x23e01a=zt(_0x75803b['position']['nodeAfter'],_0x45eba2['model']),_0x2e8a48=_0x75803b['before'];'rename'==_0x75803b['action']&&_0x9aed9e['push']({'key':m,'newValue':_0x75803b['name'],'oldValue':_0x2e8a48['name'],'range':_0x23e01a});for(const [_0x42d2cf,_0x151170]of _0x2e8a48['attributes']){if(!this['_isRegisteredAttribute'](_0x42d2cf))continue;const _0xe8a580=_0x75803b['attributes']['get'](_0x42d2cf);_0x151170!==_0xe8a580&&_0x9aed9e['push']({'key':_0x42d2cf,'newValue':_0xe8a580,'oldValue':_0x151170,'range':_0x23e01a});}for(const [_0x5e4948,_0x264d04]of _0x75803b['attributes'])this['_isRegisteredAttribute'](_0x5e4948)&&(_0x2e8a48['attributes']['has'](_0x5e4948)||_0x9aed9e['push']({'key':_0x5e4948,'newValue':_0x264d04,'oldValue':null,'range':_0x23e01a}));}0x0!=_0x9aed9e['length']&&_0x45eba2['model']['enqueueChange'](_0x1a2014,_0x33fb99=>{const _0x496043=_0x2bc0a0();for(const {range:_0x4271e2,key:_0x4ac8ae,oldValue:_0x197799,newValue:_0x39d170}of _0x9aed9e)this['markAttributeChange'](_0x4271e2,_0x4ac8ae,_0x197799,_0x39d170,{'groupId':_0x496043});this['_reduceExistingSuggestions'](_0x33fb99,_0x9aed9e);});},{'priority':'lowest'}),_0x45eba2['model']['markers']['on']('update:suggestion',(_0x4e0ba5,_0x5e7a09,_0x242ce9)=>{if(null==_0x242ce9){const {id:_0x1e1206}=this['_splitMarkerName'](_0x5e7a09['name']),_0x456b57=this['_suggestions']['get'](_0x1e1206);_0x456b57&&_0x456b57['addMarkerName'](_0x5e7a09['name']);}}),_0x45eba2['model']['document']['on']('change:data',()=>{const _0x337bd4=Array['from'](_0x45eba2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x519ea4=>'suggestion'===this['_splitMarkerName'](_0x519ea4['name'])['group']);if(0x0===_0x337bd4['length'])return;_0x337bd4['sort']((_0x508470,_0x55e533)=>{const _0x3113b8=_0x508470['data']['oldRange'],_0x3420a3=_0x55e533['data']['oldRange'];return null===_0x3113b8&&null===_0x3420a3?0x0:null===_0x3113b8&&null!==_0x3420a3?-0x1:null!==_0x3113b8&&null===_0x3420a3?0x1:_0x3113b8['start']['isBefore'](_0x3420a3['start'])?-0x1:0x1;});const _0x16caf5=new Set(),_0x1070a2=new Set();for(const {name:_0x1ed90a,data:_0x30a089}of _0x337bd4){const {id:_0x37dd04}=this['_splitMarkerName'](_0x1ed90a);if(null===_0x30a089['oldRange']){const _0x447db1=this['_handleNewSuggestionMarker'](_0x1ed90a);_0x1070a2['add'](_0x447db1);}else{const _0x24dc0a=this['_suggestions']['get'](_0x37dd04);null!==_0x30a089['newRange']||_0x24dc0a['isInContent']?(_0x16caf5['add'](_0x24dc0a['head']),_0x1070a2['add'](_0x24dc0a)):this['_removeSuggestion'](_0x24dc0a);}}_0x1070a2['size']>0x0&&this['_refreshSuggestionsChain'](_0x1070a2);for(const _0x4dee91 of _0x16caf5)this['fire']('suggestionChanged',_0x4dee91);}),_0x45eba2['model']['on']('applyOperation',(_0x3d35dd,_0xa1ef45)=>{const _0x162168=_0xa1ef45[0x0];if(!this['_suggestions']['size'])return;if(!_0x162168['isDocumentOperation'])return;if(_0x162168['batch']['isUndo']||!_0x162168['batch']['isLocal'])return;let _0x47d655,_0x4938ac;switch(_0x162168['type']){case'insert':_0x47d655=_0x45eba2['model']['createPositionAt'](_0x162168['position']),_0x4938ac=_0x47d655['getShiftedBy'](_0x162168['howMany']);break;case'split':_0x47d655=_0x45eba2['model']['createPositionAt'](_0x162168['splitPosition']),_0x4938ac=_0x45eba2['model']['createPositionAt'](_0x162168['moveTargetPosition']);break;case'move':_0x47d655=_0x45eba2['model']['createPositionAt'](_0x162168['targetPosition']),_0x4938ac=_0x47d655['getShiftedBy'](_0x162168['howMany']);break;default:return;}const _0x18eb51=_0x45eba2['model']['createRange'](_0x47d655,_0x4938ac);_0x45eba2['model']['change'](()=>{for(const {suggestion:_0x58d620,meta:_0x5d533b}of this['_findSuggestions'](_0x18eb51)){if(_0x58d620['isMultiRange'])continue;if('formatInline'==_0x58d620['type'])continue;const _0x2bb8f0=this['_getAttributeKey'](_0x58d620);if(_0x2bb8f0&&this['_isBlockAttribute'](_0x2bb8f0)&&'split'!=_0x162168['type'])continue;const _0x19c095=_0x58d620['data']&&_0x58d620['data']['multipleBlocks'];('formatBlock'!=_0x58d620['type']||'split'==_0x162168['type']&&!_0x19c095)&&(_0x5d533b['containsRangeInObject']||'insertion'==_0x58d620['type']&&_0x5d533b['isOwn']||_0x58d620['getFirstRange']()['containsRange'](_0x18eb51)&&this['_breakSuggestionMarker'](_0x58d620,_0x47d655,_0x4938ac));}});},{'priority':'lowest'}),_0x45eba2['model']['on']('deleteContent',(_0x3ed6ca,_0x36035d)=>{const _0x452b09=_0x36035d[0x0],_0xa077b1=_0x36035d[0x1];if(_0xa077b1&&_0xa077b1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x452b09['isCollapsed'])return;const _0x486d20=_0x45eba2['model']['schema'],{start:_0x3ec0c7,end:_0x49a75c}=_0x452b09['getFirstRange'](),_0x429e6b=_0x3ec0c7['nodeAfter']&&_0x486d20['isLimit'](_0x3ec0c7['nodeAfter'])?null:_0x486d20['getNearestSelectionRange'](_0x3ec0c7,'forward'),_0x2663f7=_0x49a75c['nodeBefore']&&_0x486d20['isLimit'](_0x49a75c['nodeBefore'])?null:_0x486d20['getNearestSelectionRange'](_0x49a75c,'backward'),_0x4c8a28=_0x45eba2['model']['createRange'](_0x429e6b?_0x429e6b['start']:_0x3ec0c7,_0x2663f7?_0x2663f7['end']:_0x49a75c);_0x45eba2['model']['change'](_0x2bed4b=>{this['markDeletion'](_0x4c8a28);const _0xf40ca3=_0x45eba2['model']['schema']['getNearestSelectionRange'](_0x4c8a28['start']);_0x452b09['is']('documentSelection')?_0x2bed4b['setSelection'](_0xf40ca3):_0x452b09['setTo'](_0xf40ca3);}),_0x3ed6ca['stop']();},{'priority':_0x5b9fb7['normal']+0xa}),_0x45eba2['model']['on']('insertContent',(_0x534577,_0xef3b9b)=>{const _0x24d0c5=_0xef3b9b[_0xef3b9b['length']-0x1];_0x24d0c5&&_0x24d0c5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x45eba2['model']['change'](()=>{let _0x1d8ad1=_0x45eba2['model']['insertContent'](_0xef3b9b[0x0],_0xef3b9b[0x1],_0xef3b9b[0x2],{'forceDefaultExecution':!0x0});if(!_0x1d8ad1)return;_0x534577['return']=_0x1d8ad1['clone']();const _0x2b9ded=_0x1d8ad1['end']['nodeBefore'],_0x4c25fb=_0x45eba2['model']['schema'];_0x2b9ded&&_0x4c25fb['isBlock'](_0x2b9ded)&&!_0x4c25fb['isObject'](_0x2b9ded)&&(_0x1d8ad1=_0x45eba2['model']['createRange'](_0x1d8ad1['start'],_0x45eba2['model']['createPositionAt'](_0x2b9ded,'end'))),this['markInsertion'](_0x1d8ad1);}),_0x534577['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1a79c0=new D(_0x45eba2,this['_suggestions']);_0x45eba2['commands']['add']('acceptSuggestion',_0x1a79c0),this['enableCommand']('acceptSuggestion');const _0x39b74b=new $(_0x45eba2,this['_suggestions']);_0x45eba2['commands']['add']('discardSuggestion',_0x39b74b),this['enableCommand']('discardSuggestion'),_0x45eba2['commands']['add']('acceptAllSuggestions',new M(_0x45eba2,_0x1a79c0,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x45eba2['commands']['add']('discardAllSuggestions',new M(_0x45eba2,_0x39b74b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x45eba2['commands']['add']('acceptSelectedSuggestions',new B(_0x45eba2,_0x1a79c0,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x45eba2['commands']['add']('discardSelectedSuggestions',new B(_0x45eba2,_0x39b74b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x17ab8b=_0x45eba2['plugins']['get']('CommentsRepository');this['listenTo'](_0x17ab8b,'addComment',(_0x2efcba,{threadId:_0x271cb5})=>{const _0x352de4=this['_suggestions']['get'](_0x271cb5);_0x352de4&&_0x352de4['commentThread']&&0x1===_0x352de4['commentThread']['length']&&this['_updateSuggestionData'](_0x271cb5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x17ab8b,'removeComment',(_0x3f4e51,{threadId:_0x69e7e9})=>{const _0x1ba6a7=this['_suggestions']['get'](_0x69e7e9);_0x1ba6a7&&_0x1ba6a7['commentThread']&&!_0x1ba6a7['commentThread']['length']&&this['_updateSuggestionData'](_0x69e7e9,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4d229a){const _0x4cccf4=_0x2dc254([0x56,0x44,0x73,0x53,0x79,0x43,0x35,0x65,0x74,0x4b,0x78,0x31,0x6d,0x63,0x36,0x5a,0x71,0x42,0x59,0x62,0x57,0x33,0x4e,0x64,0x55,0x6a,0x34,0x6c,0x32,0x75,0x6b,0x4f,0x70,0x72,0x6e,0x69,0x76,0x66,0x47,0x41,0x4d,0x46,0x67,0x58,0x52,0x45,0x30,0x4c,0x6f,0x39,0x7a,0x50,0x68,0x38,0x49,0x77,0x4a,0x61,0x48,0x51,0x37,0x54]),_0x18056c=0x128d1d65,_0x189140=0x128a72fd^_0x18056c,_0x2e1a9b=window[_0x2dc254([0x44,0x61,0x74,0x65])][_0x2dc254([0x6e,0x6f,0x77])](),_0x478d5e=_0x4d229a[_0x2dc254([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x57f948=new window[(_0x2dc254([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41aa58=>{_0x478d5e[_0x2dc254([0x6f,0x6e,0x63,0x65])](_0x2dc254([0x72,0x65,0x61,0x64,0x79]),_0x41aa58);}),_0x155161={[_0x2dc254([0x6b,0x74,0x79])]:_0x2dc254([0x45,0x43]),[_0x2dc254([0x75,0x73,0x65])]:_0x2dc254([0x73,0x69,0x67]),[_0x2dc254([0x63,0x72,0x76])]:_0x2dc254([0x50,0x2d,0x32,0x35,0x36]),[_0x2dc254([0x78])]:_0x2dc254([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]),[_0x2dc254([0x79])]:_0x2dc254([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]),[_0x2dc254([0x61,0x6c,0x67])]:_0x2dc254([0x45,0x53,0x32,0x35,0x36])},_0x107f1e=_0x478d5e[_0x2dc254([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2dc254([0x67,0x65,0x74])](_0x2dc254([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a6ba4(){let _0x3e59e0,_0x5c5fec=null,_0x52b54d=null;try{if(_0x107f1e==_0x2dc254([0x47,0x50,0x4c]))return _0x2dc254([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3e59e0=_0x569531(),!_0x3e59e0)return _0x2dc254([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3e59e0[_0x2dc254([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x52b54d=_0x4afbb5(_0x3e59e0[_0x2dc254([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3e59e0[_0x2dc254([0x6a,0x74,0x69])])),await _0x22a518()?_0x47b456()?_0x138f8a()?_0x2dc254([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4effc5()?(_0x3e59e0[_0x2dc254([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dc254([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c5fec=_0x4e6995(_0x2dc254([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3e59e0[_0x2dc254([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2dc254([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c5fec=_0x4e6995(_0x2dc254([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x287f84()):_0x2dc254([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2dc254([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2dc254([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2dc254([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x138f8a(){const _0x1a5485=[_0x2dc254([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2dc254([0x74,0x72,0x69,0x61,0x6c])][_0x2dc254([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e59e0[_0x2dc254([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2e1a9b/0x3e8:0xe10*_0x189140;return _0x3e59e0[_0x2dc254([0x65,0x78,0x70])]<_0x1a5485;}function _0x47b456(){const _0x3bea4a=_0x3e59e0[_0x2dc254([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3bea4a)return!0x1;if(_0x3bea4a[_0x2dc254([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dc254([0x2a])))return!0x0;if(_0x3bea4a[_0x2dc254([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dc254([0x54,0x43])))return!0x0;if(_0x3bea4a[_0x2dc254([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dc254([0x52,0x54,0x43]))){if(_0x166b72())return!0x0;if(_0x5de687()||_0x3a0146())return!0x0;}return!0x1;}function _0x4effc5(){const _0x650c08=_0x3e59e0[_0x2dc254([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x650c08||0x0==_0x650c08[_0x2dc254([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x29bced}=new URL(window[_0x2dc254([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x650c08[_0x2dc254([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29bced))return!0x0;const _0x25c97a=_0x29bced[_0x2dc254([0x73,0x70,0x6c,0x69,0x74])](_0x2dc254([0x2e]));return _0x650c08[_0x2dc254([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45fb48=>_0x45fb48[_0x2dc254([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dc254([0x2a])))[_0x2dc254([0x6d,0x61,0x70])](_0x23a84a=>_0x23a84a[_0x2dc254([0x73,0x70,0x6c,0x69,0x74])](_0x2dc254([0x2e])))[_0x2dc254([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x272217=>_0x272217[_0x2dc254([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x25c97a[_0x2dc254([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dc254([0x6d,0x61,0x70])](_0x4cfe03=>Array(_0x25c97a[_0x2dc254([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4cfe03[_0x2dc254([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2dc254([0x66,0x69,0x6c,0x6c])](_0x4cfe03[0x0]===_0x2dc254([0x2a])?_0x2dc254([0x2a]):'')[_0x2dc254([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4cfe03))[_0x2dc254([0x73,0x6f,0x6d,0x65])](_0x23c054=>_0x25c97a[_0x2dc254([0x65,0x76,0x65,0x72,0x79])]((_0x30aaa9,_0x23b0c8)=>_0x23c054[_0x23b0c8]===_0x30aaa9||_0x23c054[_0x23b0c8]===_0x2dc254([0x2a])));}function _0x287f84(){return _0x5c5fec&&_0x52b54d?new window[(_0x2dc254([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb5cf77,_0x4b25eb)=>{_0x5c5fec[_0x2dc254([0x74,0x68,0x65,0x6e])](_0xb5cf77,_0x4b25eb),_0x52b54d[_0x2dc254([0x74,0x68,0x65,0x6e])](_0x29f420=>{_0x29f420!=_0x2dc254([0x56,0x61,0x6c,0x69,0x64])&&_0xb5cf77(_0x29f420);},_0x4b25eb);}):_0x5c5fec||_0x52b54d||_0x2dc254([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4afbb5(_0x213c17,_0x4453e4){return new window[(_0x2dc254([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbb91b2=>{if(_0x37e8e2())return _0xbb91b2(_0x2dc254([0x56,0x61,0x6c,0x69,0x64]));_0x359eec(),_0x478d5e[_0x2dc254([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2dc254([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x50ec10=!0x1;const _0x393bf5=_0x2bc0a0();function _0x26b6a7(_0x193254){return!!_0x193254&&(typeof _0x193254===_0x2dc254([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x193254===_0x2dc254([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x193254[_0x2dc254([0x74,0x68,0x65,0x6e])]===_0x2dc254([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x193254[_0x2dc254([0x63,0x61,0x74,0x63,0x68])]===_0x2dc254([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x524eea(_0x94af80){_0x195800(_0x94af80)[_0x2dc254([0x74,0x68,0x65,0x6e])](_0x4bca64=>{if(!_0x4bca64||_0x4bca64[_0x2dc254([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2dc254([0x6f,0x6b]))return _0x2dc254([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3dc75e(_0x549b35(_0x393bf5+_0x4453e4))!=_0x4bca64[_0x2dc254([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2dc254([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2dc254([0x56,0x61,0x6c,0x69,0x64]);})[_0x2dc254([0x74,0x68,0x65,0x6e])](_0x532b98=>(_0x47892d(),_0x532b98),()=>{const _0x32c831=_0xea539a();return null==_0x32c831?(_0x47892d(),_0x2dc254([0x56,0x61,0x6c,0x69,0x64])):_0x2dc254(_0x2e1a9b-_0x32c831>(0x36819965^_0x18056c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2dc254([0x74,0x68,0x65,0x6e])](_0xbb91b2)[_0x2dc254([0x63,0x61,0x74,0x63,0x68])](()=>{_0xbb91b2(_0x2dc254([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x45b44b=0x12bbf3e5^_0x18056c;function _0x47892d(){const _0x5c5b9d=_0x2dc254([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dc75e(_0x549b35(_0x213c17)),_0x4ca78b=_0x56cdab(_0x3dc75e(window[_0x2dc254([0x4d,0x61,0x74,0x68])][_0x2dc254([0x63,0x65,0x69,0x6c])](_0x2e1a9b/_0x45b44b)));window[_0x2dc254([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dc254([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c5b9d,_0x4ca78b);}function _0xea539a(){const _0x2bf366=_0x2dc254([0x6c,0x6c,0x63,0x74,0x2d])+_0x3dc75e(_0x549b35(_0x213c17)),_0x16a2a4=window[_0x2dc254([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2dc254([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2bf366);return _0x16a2a4?window[_0x2dc254([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56cdab(_0x16a2a4),0x10)*_0x45b44b:null;}function _0x195800(_0x394d28){return new window[(_0x2dc254([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c345d,_0x12b3ce)=>{_0x394d28[_0x2dc254([0x74,0x68,0x65,0x6e])](_0x1c345d,_0x12b3ce),window[_0x2dc254([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12b3ce,0x128cc9a5^_0x18056c);});}}_0x478d5e[_0x2dc254([0x6f,0x6e])](_0x2dc254([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x125aeb,_0x4e6342)=>{if(_0x4e6342[0x0]!=_0x213c17)return _0xbb91b2(_0x2dc254([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e6342[0x1]={..._0x4e6342[0x1],[_0x2dc254([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x393bf5};},{[_0x2dc254([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dc254([0x68,0x69,0x67,0x68])}),_0x478d5e[_0x2dc254([0x6f,0x6e])](_0x2dc254([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x531333=>{_0x26b6a7(_0x531333[_0x2dc254([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x50ec10=!0x0,_0x524eea(_0x531333[_0x2dc254([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2dc254([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2dc254([0x6c,0x6f,0x77])}),_0x57f948[_0x2dc254([0x74,0x68,0x65,0x6e])](()=>{_0x50ec10||_0xbb91b2(_0x2dc254([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x37e8e2(){return _0x478d5e[_0x2dc254([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dc254([0x76,0x69,0x65,0x77])][_0x2dc254([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2dc254([0x61,0x75,0x74,0x6f]);}function _0x359eec(){_0x478d5e[_0x2dc254([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2dc254([0x76,0x69,0x65,0x77])][_0x2dc254([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2dc254([0x61,0x75,0x74,0x6f]);}}function _0x4e6995(_0x50ba37){const _0x400bca=[new window[(_0x2dc254([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x247343=>setTimeout(_0x247343,0x128423a9^_0x18056c)),_0x57f948[_0x2dc254([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2dc254([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42bda8=>{let _0x35fc93=0x0;_0x478d5e[_0x2dc254([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dc254([0x6f,0x6e])](_0x2dc254([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x31eb27,_0x9ef649)=>{_0x9ef649[0x0][_0x2dc254([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x35fc93++,_0x35fc93==(0x128d1c9d^_0x18056c)&&(_0x42bda8(),_0x31eb27[_0x2dc254([0x6f,0x66,0x66])]());});}))];return window[_0x2dc254([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2dc254([0x72,0x61,0x63,0x65])](_0x400bca)[_0x2dc254([0x74,0x68,0x65,0x6e])](()=>_0x50ba37);}async function _0x27e6bb(){await _0x57f948,_0x478d5e[_0x2dc254([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dc254([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e1199,_0x478d5e[_0x2dc254([0x6d,0x6f,0x64,0x65,0x6c])][_0x2dc254([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e1199,_0x478d5e[_0x2dc254([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2dc254([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x166b72(){return _0xd836c6(_0x2dc254([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x40a7dc(_0x2dc254([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2dc254([0x73,0x74,0x61,0x74,0x65])]==_0x2dc254([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5de687(){return _0xd836c6(_0x2dc254([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 _0x3a0146(){return _0xd836c6(_0x2dc254([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4617be(_0x2f04d5){const _0x55571d=_0x57e924();_0x478d5e[_0x55571d]=_0x2dc254([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2f04d5,_0x2f04d5!=_0x2dc254([0x56,0x61,0x6c,0x69,0x64])&&_0x27e6bb();}function _0x57e924(){const _0x56d5df=window[_0x2dc254([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2dc254([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2dc254([0x6e,0x6f,0x77])]())[_0x2dc254([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2dc254([0x2e]),'');let _0x2538e0=_0x2dc254([0x56]);for(let _0x742985=0x0;_0x742985<_0x56d5df[_0x2dc254([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x742985+=0x2){let _0x5281c4=window[_0x2dc254([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56d5df[_0x2dc254([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x742985,_0x742985+0x2));_0x5281c4>=_0x4cccf4[_0x2dc254([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5281c4-=_0x4cccf4[_0x2dc254([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2538e0+=_0x4cccf4[_0x5281c4];}return _0x2538e0;}function _0x569531(){const _0x158cfc=_0x107f1e[_0x2dc254([0x73,0x70,0x6c,0x69,0x74])](_0x2dc254([0x2e]));if(0x3!=_0x158cfc[_0x2dc254([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2002cc(_0x158cfc[0x1]);function _0x2002cc(_0x39183a){const _0x194fd7=_0x42ec14(_0x39183a);return _0x194fd7&&_0x389a40()?_0x194fd7:null;function _0x389a40(){const _0x584550=_0x194fd7[_0x2dc254([0x6a,0x74,0x69])],_0x2f8e88=window[_0x2dc254([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x584550[_0x2dc254([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x584550[_0x2dc254([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2eb523={..._0x194fd7,[_0x2dc254([0x6a,0x74,0x69])]:_0x584550[_0x2dc254([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x584550[_0x2dc254([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2eb523[_0x2dc254([0x76,0x63])],_0x549b35(_0x2eb523)==_0x2f8e88;}}}async function _0x22a518(){let _0x39401e=!0x0;try{const _0x397393=_0x107f1e[_0x2dc254([0x73,0x70,0x6c,0x69,0x74])](_0x2dc254([0x2e])),[_0x3144a2,_0x590283,_0x777ea0]=_0x397393;return _0x47c6aa(_0x3144a2),await _0x416761(_0x3144a2,_0x590283,_0x777ea0),_0x39401e;}catch{return!0x1;}function _0x47c6aa(_0x3d7678){const _0x1afb21=_0x42ec14(_0x3d7678);_0x1afb21&&_0x1afb21[_0x2dc254([0x61,0x6c,0x67])]==_0x2dc254([0x45,0x53,0x32,0x35,0x36])||(_0x39401e=!0x1);}async function _0x416761(_0x428de8,_0x22625a,_0x7eb965){const _0x444bfa=window[_0x2dc254([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2dc254([0x66,0x72,0x6f,0x6d])](_0x3c8aa8(_0x7eb965),_0x4620a8=>_0x4620a8[_0x2dc254([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9260e3=new window[(_0x2dc254([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2dc254([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x428de8+_0x2dc254([0x2e])+_0x22625a),_0x3914e3=window[_0x2dc254([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2dc254([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3914e3)return;const _0x15b620=await _0x3914e3[_0x2dc254([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2dc254([0x6a,0x77,0x6b]),_0x155161,{[_0x2dc254([0x6e,0x61,0x6d,0x65])]:_0x2dc254([0x45,0x43,0x44,0x53,0x41]),[_0x2dc254([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2dc254([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2dc254([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3914e3[_0x2dc254([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2dc254([0x6e,0x61,0x6d,0x65])]:_0x2dc254([0x45,0x43,0x44,0x53,0x41]),[_0x2dc254([0x68,0x61,0x73,0x68])]:{[_0x2dc254([0x6e,0x61,0x6d,0x65])]:_0x2dc254([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x15b620,_0x444bfa,_0x9260e3)||(_0x39401e=!0x1);}}function _0x42ec14(_0x5ad93d){return _0x5ad93d[_0x2dc254([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2dc254([0x65,0x79]))?JSON[_0x2dc254([0x70,0x61,0x72,0x73,0x65])](_0x3c8aa8(_0x5ad93d)):null;}function _0x3c8aa8(_0x36bb37){return window[_0x2dc254([0x61,0x74,0x6f,0x62])](_0x36bb37[_0x2dc254([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2dc254([0x2b]))[_0x2dc254([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2dc254([0x2f])));}function _0x549b35(_0x36626c){let _0x3332bc=0x1505;function _0x262994(_0x87fe26){for(let _0x3bc377=0x0;_0x3bc377<_0x87fe26[_0x2dc254([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3bc377++){const _0x2501d8=_0x87fe26[_0x2dc254([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3bc377);_0x3332bc=(_0x3332bc<<0x5)+_0x3332bc+_0x2501d8,_0x3332bc&=_0x3332bc;}}function _0x3f9f3e(_0x4bdbd3){Array[_0x2dc254([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4bdbd3)?_0x4bdbd3[_0x2dc254([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f9f3e):_0x4bdbd3&&typeof _0x4bdbd3==_0x2dc254([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2dc254([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4bdbd3)[_0x2dc254([0x73,0x6f,0x72,0x74])]()[_0x2dc254([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4957ac,_0x1a04a6])=>{_0x262994(_0x4957ac),_0x3f9f3e(_0x1a04a6);}):_0x262994(window[_0x2dc254([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4bdbd3));}return _0x3f9f3e(_0x36626c),_0x3332bc>>>0x0;}function _0x3dc75e(_0x2d01ba){return _0x2d01ba[_0x2dc254([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2dc254([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2dc254([0x30]));}function _0x56cdab(_0x518c91){return _0x518c91[_0x2dc254([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2dc254([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2dc254([0x6a,0x6f,0x69,0x6e])]('');}function _0xd836c6(_0x4d4517){return _0x478d5e[_0x2dc254([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2dc254([0x68,0x61,0x73])](_0x4d4517);}function _0x40a7dc(_0x459667){return _0x478d5e[_0x2dc254([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2dc254([0x67,0x65,0x74])](_0x459667);}function _0x1e1199(){}function _0x2dc254(_0x3b28cf){return _0x3b28cf['map'](_0x230563=>String['fromCharCode'](_0x230563))['join']('');}_0x4617be(await _0x4a6ba4());}(this);}set['adapter'](_0x3fe71b){if(this['_adapter'])throw new _0x4e6713('track-changes-adapter-already-set',this);this['_adapter']=_0x3fe71b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x8f4f39=!0x1,toJSON:_0x1448a8=!0x1}={}){const _0x34d23c=[];for(const _0x23f966 of this['_suggestions']['values']())_0x8f4f39&&!_0x23f966['isInContent']||_0x34d23c['push'](_0x23f966);return _0x1448a8?_0x34d23c['map'](_0x5b463b=>_0x5b463b['toJSON']()):_0x34d23c;}['getSuggestion'](_0x4f9aa3){const _0x478e11=this['_suggestions']['get'](_0x4f9aa3);if(!_0x478e11)throw new _0x4e6713('track-changes-suggestion-not-found',this);return _0x478e11;}['hasSuggestion'](_0x1b4aac){return this['_suggestions']['has'](_0x1b4aac);}['addSuggestionData'](_0x54e202){const {authorId:_0x525e14,id:_0x12794c,originalSuggestionId:_0x5bcd57,attributes:_0x5e2aec}=_0x54e202,[_0x6ade02,_0x24407e]=_0x54e202['type']['split'](':'),_0x283529=this['_suggestions']['get'](_0x12794c)||this['_createSuggestion'](_0x6ade02,_0x24407e,_0x12794c,_0x525e14,_0x5e2aec,_0x5bcd57);if(this['_addThreadToSuggestion'](_0x283529),this['_checkSuggestionCorrectness'](_0x283529,_0x6ade02,_0x24407e||null,_0x525e14),_0x283529['createdAt']=_0x54e202['createdAt'],_0x283529['_isDataLoaded']=!0x0,_0x5e2aec&&_0x5e2aec['@external']){const _0x116e5c=_0x5e2aec['@external'],_0x563971=this['_getExternalAuthor'](_0x116e5c['authorName']);_0x283529['authoredAt']=_0x116e5c['createdAt'],_0x283529['author']=_0x563971,_0x283529['isExternal']=!0x0;}else _0x283529['authoredAt']=_0x54e202['createdAt'];switch(_0x54e202['data']&&(_0x283529['data']=_0x54e202['data']),_0x54e202['attributes']&&(_0x283529['attributes']=_0x54e202['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x283529['_saved']=!0x0),this['_suggestionState']['get'](_0x283529)){case'notReady':this['_suggestionState']['set'](_0x283529,'dataReady');break;case'markerReady':_0x283529['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x283529])),this['_refreshSuggestionsChain'](new Set([_0x283529])),this['_suggestionState']['set'](_0x283529,'ready'),this['fire']('suggestionLoaded',_0x283529)):this['_suggestionState']['set'](_0x283529,'removed');}return _0x283529;}['acceptSuggestion'](_0x455c17){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1ee182 of _0x455c17['getAllAdjacentSuggestions']())_0x1ee182['accept']();});});}['discardSuggestion'](_0x1c2273){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x27e7ad of _0x1c2273['getAllAdjacentSuggestions']())_0x27e7ad['discard']();});});}['enableCommand'](_0x48a37d,_0x4e7f00){const _0x4240ad=this['editor']['commands']['get'](_0x48a37d);if(!_0x4240ad)throw new _0x4e6713('track-changes-command-not-found',this,{'commandName':_0x48a37d});if(this['_enabledCommands']['has'](_0x4240ad))throw new _0x4e6713('track-changes-enable-command-twice',this,{'commandName':_0x48a37d});this['_enabledCommands']['add'](_0x4240ad),_0x4e7f00&&_0x4240ad['on']('execute',(_0x5e09d2,_0x226592)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x226592['length']>0x0&&_0x226592[_0x226592['length']-0x1]&&_0x226592[_0x226592['length']-0x1]['forceDefaultExecution']?_0x226592['pop']():(_0x5e09d2['return']=_0x4e7f00((..._0x45c34d)=>_0x4240ad['execute'](..._0x45c34d,{'forceDefaultExecution':!0x0}),..._0x226592),_0x5e09d2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xe2079){let _0x3ad582,_0x471e36;const _0x31534a=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3ad582=_0xe2079();}catch(_0x2dd061){_0x471e36=_0x2dd061;}return _0x31534a||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x471e36&&_0x4e6713['rethrowUnexpectedError'](_0x471e36,this),_0x3ad582;}['markInsertion'](_0x2afde9,_0x3856b3=null,_0x3076a8={}){if(_0x2afde9['isCollapsed'])return null;const _0xb37586=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3076a8['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1da818,meta:_0x10518d}of this['_findSuggestions'](_0x2afde9,'insertion'))if(_0x10518d['isOwn']){if(!_0x10518d['isNextTo']){if(_0x10518d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x1da818,_0x3076a8))continue;return _0x1da818;}if(Xt(_0x1da818,_0x3076a8))return _0x1da818;this['_breakSuggestionMarker'](_0x1da818,_0x2afde9['start'],_0x2afde9['end']);break;}if(_0x3856b3==_0x1da818['subType']&&Xt(_0x1da818,_0x3076a8)){const _0x18679a=_0x1da818['getFirstRange']();return _0x18679a['start']['isEqual'](_0x2afde9['end'])?this['_setSuggestionRange'](_0x1da818,this['_model']['createRange'](_0x2afde9['start'],_0x18679a['end'])):this['_setSuggestionRange'](_0x1da818,this['_model']['createRange'](_0x18679a['start'],_0x2afde9['end'])),_0x1da818;}}const _0x29ba66=_0x2bc0a0(),_0x48cc86=_0xb37586['id'],_0x4261cd=_0x3856b3?'insertion:'+_0x3856b3:'insertion',_0xc05cd7=this['_setSuggestionData']({'id':_0x29ba66,'type':_0x4261cd,'createdAt':new Date(),'authorId':_0x48cc86,'attributes':_0x3076a8});return this['_addSuggestionMarker'](_0x4261cd,_0x29ba66,_0x48cc86,_0x2afde9),_0xc05cd7;}['markMultiRangeInsertion'](_0x337d9c,_0x3d6151='multi',_0x213888={}){const _0x3bb27d=this['editor']['plugins']['get']('Users')['me'],_0x3294eb=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3d6151,'join');this['_trackingSessionId']&&(_0x213888['trackingSessionId']=this['_trackingSessionId']);for(const _0xa76502 of this['getSuggestions']())if(_0xa76502['author']['id']==_0x3bb27d['id']&&'insertion'==_0xa76502['type']&&_0xa76502['subType']==_0x3d6151&&Xt(_0xa76502,_0x213888)&&(_0x3294eb(_0xa76502['getRanges'](),_0x337d9c)||_0x3294eb(_0x337d9c,_0xa76502['getRanges']()))){for(const _0x58b109 of _0x337d9c)_0xa76502['addRange'](_0x58b109);return _0xa76502;}for(const {suggestion:_0xb3f5ec,meta:_0x35fac5}of this['_findSuggestions'](_0x337d9c,'insertion')){if(!_0x35fac5['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x35fac5['containsRangeInObject'])continue;if(!Xt(_0xb3f5ec,_0x213888))continue;let _0x4ebdb0=!0x0;for(const _0x1d8840 of _0xb3f5ec['getRanges']())for(const _0x1bdde1 of _0x337d9c)if(!_0x1d8840['containsRange'](_0x1bdde1)){_0x4ebdb0=!0x1;break;}if(_0x4ebdb0)return _0xb3f5ec;}const _0x5601b3=_0x2bc0a0(),_0x208b1c=_0x3bb27d['id'],_0x5a5466='insertion:'+_0x3d6151,_0x58ae20=this['_setSuggestionData']({'id':_0x5601b3,'type':_0x5a5466,'createdAt':new Date(),'authorId':_0x208b1c,'attributes':_0x213888});for(const _0x5d6c48 of _0x337d9c)this['_addSuggestionMarker'](_0x5a5466,_0x5601b3,_0x208b1c,_0x5d6c48,T['getMultiRangeId']());return _0x58ae20;}['markInlineFormat'](_0x165979,_0x4c13d2,_0x24b8cb=null,_0x311f39={}){if(_0x24b8cb=_0x24b8cb||Lt(_0x4c13d2),_0x165979['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x311f39['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4ffd71=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x24b8cb,'accept');return this['forceDefaultExecution'](()=>_0x4ffd71([_0x165979],_0x4c13d2,_0x311f39)),null;}const _0x51c816=this['editor']['plugins']['get']('Users')['me'],_0x3803a2=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x14bb71,meta:_0xd80db3}of this['_findSuggestions'](_0x165979,'insertion'))_0xd80db3['isOwn']&&!_0xd80db3['isInsideObject']&&_0x3803a2['push'](..._0x14bb71['getRanges']());}const _0x2ffe40=function(_0x1fe071,_0x4fd65e){const _0xd9b1c5=[];for(const _0x507215 of _0x4fd65e){const _0xa27148=_0x1fe071['getIntersection'](_0x507215);_0xa27148&&_0xd9b1c5['push'](_0xa27148);}return _0xd9b1c5;}(_0x165979,_0x3803a2),_0x3c83f2=function(_0x209924,_0x36deaa){const _0x9e5fc1=[_0x209924];for(const _0x25c1af of _0x36deaa){let _0x510163=0x0;for(;_0x510163<_0x9e5fc1['length'];){const _0x55d40c=_0x9e5fc1[_0x510163]['getDifference'](_0x25c1af);_0x9e5fc1['splice'](_0x510163,0x1,..._0x55d40c),_0x510163+=_0x55d40c['length'];}}return _0x9e5fc1;}(_0x165979,_0x3803a2);_0x2ffe40['length']&&this['_model']['change'](()=>{for(const _0x9631df of _0x2ffe40){const _0x2b2a85=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x24b8cb,'accept');this['forceDefaultExecution'](()=>_0x2b2a85([_0x9631df],_0x4c13d2,_0x311f39));}});for(const _0x296cc1 of _0x3c83f2){let _0x234764=null,_0x389077=_0x296cc1['start'],_0x50805a=_0x296cc1['end'];for(const {suggestion:_0x5eaf90,meta:_0x55f3cc}of this['_findSuggestions'](_0x296cc1,'formatInline')){if(!_0x55f3cc['isOwn'])continue;if(_0x5eaf90['subType']!=_0x24b8cb)continue;if(!Xt(_0x5eaf90,_0x311f39))continue;const _0x4f469b=_0x5eaf90['getFirstRange']();if(_0x4f469b['containsRange'](_0x296cc1,!0x0))return null;_0x389077=_0x389077['isBefore'](_0x4f469b['start'])?_0x389077:_0x4f469b['start'],_0x50805a=_0x50805a['isAfter'](_0x4f469b['end'])?_0x50805a:_0x4f469b['end'],_0x234764?_0x4f469b['start']['isBefore'](_0x234764['getFirstRange']()['start'])?(_0x234764['removeMarkers'](),_0x234764=_0x5eaf90):_0x5eaf90['removeMarkers']():_0x234764=_0x5eaf90;}const _0x5e30e2=this['_model']['createRange'](_0x389077,_0x50805a);if(_0x234764)this['_setSuggestionRange'](_0x234764,_0x5e30e2);else{const _0x40e6f5=_0x2bc0a0(),_0x55e100=_0x51c816['id'];this['_setSuggestionData']({'id':_0x40e6f5,'type':'formatInline:'+_0x24b8cb,'data':_0x4c13d2,'createdAt':new Date(),'authorId':_0x55e100,'attributes':_0x311f39}),this['_addSuggestionMarker']('formatInline:'+_0x24b8cb,_0x40e6f5,_0x55e100,_0x5e30e2);}}return null;}['markBlockFormat'](_0x1c2198,_0x4fda58,_0x6322a5=[],_0x31b692=null,_0x532330={}){_0x4fda58['formatGroupId']||(_0x4fda58['formatGroupId']=_0x4fda58['commandName']),_0x4fda58['multipleBlocks']=_0x1c2198['is']('range'),_0x31b692=_0x31b692||Lt(_0x4fda58);const _0x5e9a4f=_0x6322a5['map'](_0x484e44=>zt(_0x484e44,this['_model'])),_0x41672f=_0x1c2198['is']('range')?_0x1c2198:zt(_0x1c2198,this['_model']);if(this['_trackingSessionId']&&(_0x532330['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x56582e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31b692,'accept');return this['forceDefaultExecution'](()=>_0x56582e([_0x41672f],_0x4fda58,_0x532330)),null;}_0x5e9a4f['push'](_0x41672f);let _0x428715=!0x0;for(const _0x3539b0 of _0x5e9a4f)if(!this['_rangeIsInLocalUserInsertion'](_0x3539b0)){_0x428715=!0x1;break;}if(_0x428715&&'always'!==this['_trackFormatChanges']){const _0x2ffe5d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31b692,'accept');return this['forceDefaultExecution'](()=>_0x2ffe5d([_0x41672f],_0x4fda58,_0x532330)),null;}let _0x15d25c=null,_0x294fa3=_0x41672f['start'],_0x31b422=_0x41672f['end'];for(const {suggestion:_0xe2bbde,meta:_0x4a8623}of this['_findSuggestions'](_0x41672f,'formatBlock')){if(!_0x4a8623['isOwn'])continue;if(_0x4a8623['isNextTo']||_0x4a8623['containsRangeInObject']||_0x4a8623['isInsideObject'])continue;if(_0xe2bbde['data']['formatGroupId']!=_0x4fda58['formatGroupId'])continue;if(!Xt(_0xe2bbde,_0x532330))continue;const _0x3a4887=_0xe2bbde['getFirstRange']();if(_0xe2bbde['subType']==_0x31b692){if(_0x3a4887['containsRange'](_0x41672f,!0x0))return null;_0x294fa3=_0x294fa3['isBefore'](_0x3a4887['start'])?_0x294fa3:_0x3a4887['start'],_0x31b422=_0x31b422['isAfter'](_0x3a4887['end'])?_0x31b422:_0x3a4887['end'],_0x15d25c?_0x3a4887['start']['isBefore'](_0x15d25c['getFirstRange']()['start'])?(_0x15d25c['removeMarkers'](),_0x15d25c=_0xe2bbde):_0xe2bbde['removeMarkers']():_0x15d25c=_0xe2bbde;}else{const _0x291890=_0x41672f['getIntersection'](_0x3a4887);this['_cutOutSuggestionMarker'](_0xe2bbde,_0x291890);}}const _0x2d738f=this['editor']['plugins']['get']('Users')['me'],_0x1a15dd=_0x2bc0a0(),_0x24c18e=_0x2d738f['id'];if(_0x15d25c)return this['_setSuggestionRange'](_0x15d25c,this['_model']['createRange'](_0x294fa3,_0x31b422)),_0x15d25c;{const _0x1986f7=this['_setSuggestionData']({'id':_0x1a15dd,'type':'formatBlock:'+_0x31b692,'data':_0x4fda58,'createdAt':new Date(),'authorId':_0x24c18e,'attributes':_0x532330});return this['_addSuggestionMarker']('formatBlock:'+_0x31b692,_0x1a15dd,_0x24c18e,this['_model']['createRange'](_0x294fa3,_0x31b422)),_0x1986f7;}}['markMultiRangeBlockFormat'](_0xc81809,_0xe2fc9d,_0x5510a2=[],_0x2a29e3=null,_0x9cca64={}){_0xe2fc9d['formatGroupId']||(_0xe2fc9d['formatGroupId']=_0xe2fc9d['commandName']);const _0x492b1d=_0xc81809[0x0];_0xe2fc9d['multipleBlocks']=_0x492b1d['is']('range'),_0x2a29e3=_0x2a29e3||Lt(_0xe2fc9d);const _0x57363f=_0x5510a2['map'](_0x24e19e=>zt(_0x24e19e,this['_model'])),_0x3ba8ac=_0x492b1d['is']('range')?_0xc81809:_0xc81809['map'](_0x549a99=>zt(_0x549a99,this['_model']));if(this['_trackingSessionId']&&(_0x9cca64['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x16a3b3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a29e3,'accept');return this['forceDefaultExecution'](()=>_0x16a3b3(_0x3ba8ac,_0xe2fc9d,_0x9cca64)),null;}_0x57363f['push'](..._0x3ba8ac);let _0x5ae947=!0x0;for(const _0x5c7516 of _0x57363f)if(!this['_rangeIsInLocalUserInsertion'](_0x5c7516)){_0x5ae947=!0x1;break;}if(_0x5ae947&&'always'!==this['_trackFormatChanges']){const _0x3e5a12=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a29e3,'accept');return this['forceDefaultExecution'](()=>_0x3e5a12(_0x3ba8ac,_0xe2fc9d,_0x9cca64)),null;}const _0x191074=this['editor']['plugins']['get']('Users')['me'];for(const _0x273f4c of this['getSuggestions']()){const _0x2d42f4=_0x273f4c['data'];if(_0x273f4c['author']['id']!=_0x191074['id'])continue;if('formatBlock'!=_0x273f4c['type']||_0x2d42f4['formatGroupId']!=_0xe2fc9d['formatGroupId'])continue;if(!Xt(_0x273f4c,_0x9cca64))continue;const _0x13a86e=_0x273f4c['subType']==_0x2a29e3;for(let _0x342866=0x0;_0x342866<_0x3ba8ac['length'];_0x342866++){const _0x42a99d=_0x3ba8ac[_0x342866];for(const _0x42834a of _0x273f4c['getMarkers']()){const _0x4a2b98=_0x42834a['getRange']();if(_0x42a99d['isEqual'](_0x4a2b98)){_0x13a86e?(_0x3ba8ac['splice'](_0x342866,0x1),_0x342866--):_0x273f4c['removeMarker'](_0x42834a['name']);break;}}}}if(0x0==_0x3ba8ac['length'])return null;const _0x5a23e2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a29e3,'join');for(const _0x4d45f9 of this['getSuggestions']()){const _0x1b41e6=_0x4d45f9['data'];if(_0x4d45f9['author']['id']==_0x191074['id']&&('formatBlock'==_0x4d45f9['type']&&_0x1b41e6['formatGroupId']==_0xe2fc9d['formatGroupId']&&_0x4d45f9['subType']==_0x2a29e3&&Xt(_0x4d45f9,_0x9cca64)&&(_0x5a23e2(_0x4d45f9['getRanges'](),_0x3ba8ac)||_0x5a23e2(_0x3ba8ac,_0x4d45f9['getRanges']())))){for(const _0x3a5091 of _0x3ba8ac)_0x4d45f9['addRange'](_0x3a5091);return _0x4d45f9;}}const _0x125eb8=_0x2bc0a0(),_0x55cae5=_0x191074['id'],_0x4f621d='formatBlock:'+_0x2a29e3,_0x148aae=this['_setSuggestionData']({'id':_0x125eb8,'type':_0x4f621d,'data':_0xe2fc9d,'createdAt':new Date(),'authorId':_0x55cae5,'attributes':_0x9cca64});for(const _0x5f05c4 of _0x3ba8ac)this['_addSuggestionMarker'](_0x4f621d,_0x125eb8,_0x55cae5,_0x5f05c4,T['getMultiRangeId']());return _0x148aae;}['markDeletion'](_0x4f4ef0,_0x1040b6=null,_0x5ccab1={}){if(_0x4f4ef0['isCollapsed'])return null;const _0x164796=this['editor']['plugins']['get']('Users')['me'],_0x1d183a=new _0x3b6fe0(_0x4f4ef0['start'],_0x4f4ef0['end']);this['_trackingSessionId']&&(_0x5ccab1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1c60bd,meta:_0x561a5f}of this['_findSuggestions'](_0x1d183a,'insertion'))if(_0x561a5f['isOwn']&&!_0x561a5f['isNextTo']){if(_0x1c60bd['isMultiRange']){const _0x28247=_0x1c60bd['getRanges']()['filter'](_0x44c79a=>'$graveyard'!=_0x44c79a['root']['rootName']);_0x28247['every'](_0x5a4796=>_0x1d183a['containsRange'](_0x5a4796,!0x0))&&_0x1c60bd['discard']();if(_0x28247['some'](_0x504011=>_0x504011['containsRange'](_0x1d183a,!0x0))){const _0x39d480=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1040b6,'accept');return this['forceDefaultExecution'](()=>_0x39d480([_0x1d183a],null,_0x5ccab1)),null;}}else{const _0x403880=_0x1d183a['getIntersection'](_0x1c60bd['getFirstRange']());null!==_0x403880&&_0x1c60bd['_onDiscard']([_0x403880],null,_0x5ccab1);}}if(_0x1d183a['detach'](),_0x1d183a['isCollapsed']||'$graveyard'==_0x1d183a['root']['rootName'])return null;let _0x2e6677=null,_0xe8bbb2=_0x1d183a['start'],_0x4c9379=_0x1d183a['end'];const _0x3d7b8e=this['_findSuggestions'](_0x1d183a,'deletion');for(const {suggestion:_0x129a26,meta:_0x33ed6a}of _0x3d7b8e){const _0x62003b=this['_model']['createRange'](_0xe8bbb2,_0x4c9379);if(_0x33ed6a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x33ed6a['containsRangeInObject']&&!_0x33ed6a['isInsideObject'])){if(_0x129a26['isMultiRange']){if(!Xt(_0x129a26,_0x5ccab1))continue;let _0x5461e8=!0x0;for(const _0x29a666 of _0x129a26['getRanges']()){if(_0x29a666['containsRange'](_0x62003b,!0x0))return _0x129a26;_0x62003b['containsRange'](_0x29a666)||(_0x5461e8=!0x1);}_0x5461e8&&_0x129a26['discard']();}else{const _0x8540fc=_0x129a26['getFirstRange']();if(_0x8540fc['containsRange'](_0x62003b,!0x0))return _0x129a26;if(!Xt(_0x129a26,_0x5ccab1)){_0x62003b['containsRange'](_0x8540fc)?_0x129a26['removeMarkers']():_0x8540fc['containsPosition'](_0xe8bbb2)?_0xe8bbb2=_0x8540fc['end']:_0x8540fc['containsPosition'](_0x4c9379)&&(_0x4c9379=_0x8540fc['start']);continue;}_0xe8bbb2=_0xe8bbb2['isBefore'](_0x8540fc['start'])?_0xe8bbb2:_0x8540fc['start'],_0x4c9379=_0x4c9379['isAfter'](_0x8540fc['end'])?_0x4c9379:_0x8540fc['end'],_0x5ccab1=Object['assign']({},_0x129a26['attributes']),_0x2e6677?_0x8540fc['start']['isBefore'](_0x2e6677['getFirstRange']()['start'])?(_0x2e6677['removeMarkers'](),_0x2e6677=_0x129a26):_0x129a26['removeMarkers']():_0x2e6677=_0x129a26;}}}if(_0x2e6677)return this['_setSuggestionRange'](_0x2e6677,this['_model']['createRange'](_0xe8bbb2,_0x4c9379)),_0x2e6677;{const _0x55fed6=_0x2bc0a0(),_0x3fcfa1=this['_model']['createRange'](_0xe8bbb2,_0x4c9379),_0x5de1f5=_0x164796['id'],_0x3ee513=_0x1040b6?'deletion:'+_0x1040b6:'deletion',_0x2818ab=this['_setSuggestionData']({'id':_0x55fed6,'type':_0x3ee513,'createdAt':new Date(),'authorId':_0x5de1f5,'attributes':_0x5ccab1});return this['_addSuggestionMarker'](_0x3ee513,_0x55fed6,_0x5de1f5,_0x3fcfa1),_0x2818ab;}}['markMultiRangeDeletion'](_0x4edd83,_0x110a62='multi',_0x257e3c={}){const _0x3039be=this['editor']['plugins']['get']('Users')['me'],_0x511668=_0x4edd83['map'](_0x43304a=>new _0x3b6fe0(_0x43304a['start'],_0x43304a['end'])),_0xd34525=new Set();this['_trackingSessionId']&&(_0x257e3c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x55e223,meta:_0x3c4e35}of this['_findSuggestions'](_0x511668,'insertion'))_0x3c4e35['isOwn']&&!_0x3c4e35['isNextTo']&&_0xd34525['add'](_0x55e223);for(const _0x183ca5 of _0xd34525)if(_0x183ca5['isMultiRange']){const _0x2c82c1=_0x183ca5['getRanges']();(!_0x183ca5['attributes']||!_0x183ca5['attributes']['skipNestingCheck'])&&(_0x2c82c1['every'](_0xefcf79=>_0x511668['some'](_0x3601e2=>_0x3601e2['containsRange'](_0xefcf79,!0x0)))&&_0x183ca5['discard']());if(_0x511668['every'](_0xd94a66=>_0x2c82c1['some'](_0x50e8a0=>_0x50e8a0['containsRange'](_0xd94a66,!0x0)))){const _0x204345=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x110a62,'accept');return this['forceDefaultExecution'](()=>_0x204345(_0x4edd83,null,_0x257e3c)),null;}}else{const _0x3f0940=_0x183ca5['getFirstRange']();_0x511668['some'](_0x405b06=>_0x405b06['containsRange'](_0x3f0940,!0x0))&&_0x183ca5['discard']();if(_0x511668['every'](_0x2c5f61=>_0x3f0940['containsRange'](_0x2c5f61,!0x0))){const _0x46a9a6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x110a62,'accept');return this['forceDefaultExecution'](()=>_0x46a9a6(_0x511668,null,_0x257e3c)),null;}}const _0x1c948a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x110a62,'join');let _0x2e6baa=null;for(const _0x4fe8f6 of this['getSuggestions']())if(_0x4fe8f6['author']['id']==_0x3039be['id']&&_0x4fe8f6['isInContent']&&'deletion'==_0x4fe8f6['type']&&_0x4fe8f6['subType']==_0x110a62&&Xt(_0x4fe8f6,_0x257e3c)&&(_0x1c948a(_0x4fe8f6['getRanges'](),_0x511668)||_0x1c948a(_0x511668,_0x4fe8f6['getRanges']()))){if(_0x2e6baa){if(_0x4fe8f6['commentThread']&&_0x4fe8f6['commentThread']['length'])continue;for(const _0x493bde of _0x4fe8f6['getRanges']())_0x2e6baa['isIntersectingWithRange'](_0x493bde)||_0x2e6baa['addRange'](_0x493bde);_0x4fe8f6['removeMarkers']();}else{_0x2e6baa=_0x4fe8f6;for(const _0x4ac8f6 of _0x511668)_0x4fe8f6['isIntersectingWithRange'](_0x4ac8f6)||_0x4fe8f6['addRange'](_0x4ac8f6);}}if(_0x2e6baa)return _0x2e6baa;_0xd34525['clear']();for(const {suggestion:_0xe944d7,meta:_0x21c6b7}of this['_findSuggestions'](_0x511668,'deletion'))_0x21c6b7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x21c6b7['containsRangeInObject']&&!_0x21c6b7['isInsideObject'])&&Xt(_0xe944d7,_0x257e3c)&&_0xd34525['add'](_0xe944d7);for(const _0x42cc6c of _0xd34525){const _0x1178bb=_0x42cc6c['getRanges']();if(!_0x257e3c||!_0x257e3c['skipNestingCheck']){if(_0x511668['every'](_0x28f15b=>_0x1178bb['some'](_0x3acbcb=>_0x3acbcb['containsRange'](_0x28f15b,!0x0))))return _0x42cc6c;}(!_0x42cc6c['attributes']||!_0x42cc6c['attributes']['skipNestingCheck'])&&(_0x1178bb['every'](_0x320eb5=>_0x511668['some'](_0x5a746f=>_0x5a746f['containsRange'](_0x320eb5,!0x0)))&&_0x42cc6c['discard']());}const _0x64f290=_0x2bc0a0(),_0x1a7f76=_0x3039be['id'],_0x47c23a='deletion:'+_0x110a62,_0x443d61=this['_setSuggestionData']({'id':_0x64f290,'type':_0x47c23a,'createdAt':new Date(),'authorId':_0x1a7f76,'attributes':_0x257e3c});for(const _0x1a2d45 of _0x511668)_0x1a2d45['detach'](),_0x1a2d45['isCollapsed']||'$graveyard'==_0x1a2d45['root']['rootName']||this['_addSuggestionMarker'](_0x47c23a,_0x64f290,_0x1a7f76,_0x1a2d45,T['getMultiRangeId']());return _0x443d61;}['markAttributeChange'](_0x4bfcb5,_0x5d290d,_0x40c51d,_0x338c74,_0x2b3485){if(_0x4bfcb5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1db70d=this['editor']['plugins']['get']('Users')['me']['id'],_0x5bf341=Array['from'](this['_suggestions']['values']())['filter'](_0xc1d071=>'attribute'==_0xc1d071['type']&&_0xc1d071['data']['key']==_0x5d290d&&_0xc1d071['isIntersectingWithRange'](_0x4bfcb5));if(this['_trackingSessionId']&&(_0x2b3485['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3c6486=this['_findSuggestions'](_0x4bfcb5,'insertion')['filter'](({meta:_0x20f4a4})=>_0x20f4a4['isOwn']&&!_0x20f4a4['isInsideObject']&&!_0x20f4a4['isNextTo'])['map'](({suggestion:_0x2c7661})=>_0x2c7661);_0x5bf341['unshift'](..._0x3c6486);}const _0x69a5ff=new Map([[_0x4bfcb5,_0x40c51d]]);for(const _0x91ec12 of _0x5bf341){const _0x43bbf8='attribute'==_0x91ec12['type']?_0x91ec12['data']['oldValue']:void 0x0,_0x231c07=_0x91ec12['getFirstRange'](),_0x260b92=Array['from'](_0x69a5ff['keys']())['find'](_0x24a71c=>_0x24a71c['isIntersecting'](_0x231c07));if(!_0x260b92)continue;const _0x501bcd=_0x260b92['getDifference'](_0x231c07);this['_isBlockAttribute'](_0x5d290d)&&'insertion'==_0x91ec12['type']&&0x0!=_0x501bcd['length']||(_0x69a5ff['delete'](_0x260b92),_0x501bcd['forEach'](_0x16550b=>{_0x69a5ff['set'](_0x16550b,_0x40c51d);}),'insertion'!=_0x91ec12['type']&&_0x43bbf8!=_0x338c74&&_0x69a5ff['set'](_0x260b92['getIntersection'](_0x231c07),_0x43bbf8));}const _0x3570a7=[];for(const [_0x2b0048,_0x55c816]of _0x69a5ff){const _0x5313e0=_0x2bc0a0(),_0xe79479={'key':_0x5d290d,'oldValue':_0x55c816,'newValue':_0x338c74};_0x5d290d['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':_0x5d290d});const _0x24bf95=('attribute:'+(_0x5d290d+'|'+Lt({'newValue':_0x338c74})))['substring'](0x0,0x3c),_0x3b5500=this['_setSuggestionData']({'id':_0x5313e0,'type':_0x24bf95,'data':_0xe79479,'createdAt':new Date(),'authorId':_0x1db70d,'attributes':_0x2b3485});_0x3570a7['push'](_0x3b5500),this['_addSuggestionMarker'](_0x24bf95,_0x5313e0,_0x1db70d,_0x2b0048);}return _0x3570a7;}['enableDefaultAttributesIntegration'](_0x119294){this['enableCommand'](_0x119294,(_0x53d280,..._0x328bd2)=>{this['recordAttributeChanges'](()=>{_0x53d280(..._0x328bd2);});});}['registerBlockAttribute'](_0x595d5d){this['_blockAttributeKeys']['add'](_0x595d5d);}['registerInlineAttribute'](_0x11457d){this['_inlineAttributeKeys']['add'](_0x11457d);}['startTrackingSession'](_0xe22d82){return this['_trackingSessionId']=void 0x0!==_0xe22d82?_0xe22d82:_0x2bc0a0(),this['_trackingSessionId'];}['_getAttributeKey'](_0x134329){return'attribute'==_0x134329['type']?_0x134329['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x584cd6,_0x195a0c){const _0x408cb4=_0x584cd6['getFirstMarker']();this['_model']['change'](_0x58d404=>{_0x58d404['updateMarker'](_0x408cb4,{'range':_0x195a0c});});}['_addThreadToSuggestion'](_0x447276){const _0x328db6=_0x447276['id'],_0x1bcb1f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x328db6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1bcb1f,'threadId':_0x328db6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5c518f=this['_commentsRepository']['getCommentThread'](_0x328db6);_0x5c518f['unbind']('isRemovable'),_0x5c518f['isRemovable']=!0x1,_0x447276['commentThread']=_0x5c518f;}['_checkSuggestionCorrectness'](_0x260813,_0x1fdfff,_0x5a3bb4,_0x3e906f){if(_0x260813['type']!=_0x1fdfff||_0x260813['subType']!=_0x5a3bb4||_0x260813['creator']['id']!=_0x3e906f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4e6713('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5c035b,_0x3caede){const _0x4da4fa=_0x5c035b['getFirstRange']();if(_0x3caede['isEqual'](_0x4da4fa))_0x5c035b['removeMarkers']();else{if(_0x4da4fa['containsRange'](_0x3caede)){const _0xd8ac61=this['_model']['createPositionAt'](_0x3caede['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5c035b,this['_model']['createRange'](_0x4da4fa['start'],_0xd8ac61));const _0x19c378=_0x2bc0a0(),_0x3ceaa2=_0x5c035b['creator']['id'],_0x56c416=_0x5c035b['type']+':'+_0x5c035b['subType'];this['_setSuggestionData']({'id':_0x19c378,'type':_0x56c416,'createdAt':new Date(),'authorId':_0x3ceaa2,'data':_0x5c035b['data'],'attributes':_0x5c035b['attributes']});const _0x74e346=this['_model']['createPositionAt'](_0x3caede['end']['parent'],'after'),_0x854781=this['_model']['createRange'](_0x74e346,_0x4da4fa['end']);this['_addSuggestionMarker'](_0x56c416,_0x19c378,_0x3ceaa2,_0x854781);}else{if(_0x4da4fa['containsPosition'](_0x3caede['start'])){const _0x181eb1=this['_model']['createPositionAt'](_0x3caede['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5c035b,this['_model']['createRange'](_0x4da4fa['start'],_0x181eb1));}else{const _0x58fe9a=this['_model']['createPositionAt'](_0x3caede['end']['parent'],'after');this['_setSuggestionRange'](_0x5c035b,this['_model']['createRange'](_0x58fe9a,_0x4da4fa['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3f2ce7){for(const {suggestion:_0x4b707c,meta:_0x516ca7}of this['_findSuggestions'](_0x3f2ce7,'insertion')){if(!_0x516ca7['isOwn'])continue;const _0x3286ba=_0x4b707c['getRanges']();for(const _0x40b0b1 of _0x3286ba)if(!_0x3f2ce7['getDifference'](_0x40b0b1)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x338972){const _0x206061=this['editor']['plugins']['get']('Users')['getUser'](_0x338972);if(!_0x206061)throw new _0x4e6713('track-changes-user-not-found',this);return _0x206061;}['_getExternalAuthor'](_0x55bcbf){const _0x3aeb5e=this['editor']['plugins']['get']('Users'),_0xdfa157=_0x2d44eb('external:'+_0x55bcbf),_0x4e1616=_0x3aeb5e['getUser'](_0xdfa157);return _0x4e1616||_0x3aeb5e['addUser']({'id':_0xdfa157,'name':_0x55bcbf});}['_createSuggestion'](_0xd96949,_0x50c2da,_0x15c061,_0x496b86,_0x28cd5e,_0x4ba4e5){const _0xb562df=this['_getAuthorFromId'](_0x496b86),_0x54936e=this['_suggestionFactory']['buildSuggestion'](_0xd96949,_0x50c2da,_0x15c061,_0xb562df,_0x28cd5e,_0x4171c3=>{this['_updateSuggestionData'](_0x15c061,{'attributes':_0x4171c3});const _0x2a7377=this['getSuggestion'](_0x15c061);this['_joinWithAdjacentSuggestions'](new Set([_0x2a7377])),this['_refreshSuggestionsChain'](new Set([_0x2a7377]));},_0x4ba4e5);return this['listenTo'](_0x54936e,'accept',()=>{this['_updateSuggestionData'](_0x15c061,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x54936e,'discard',()=>{this['_updateSuggestionData'](_0x15c061,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x15c061,_0x54936e),this['_suggestionState']['set'](_0x54936e,'notReady'),_0x54936e;}['_splitMarkerName'](_0x56e649){const _0x360eb0=_0x56e649['split'](':');return{'group':_0x360eb0[0x0],'type':_0x360eb0[0x1],'subType':_0x360eb0['length']>=0x5?_0x360eb0[0x2]:null,'id':_0x360eb0['length']<0x5?_0x360eb0[0x2]:_0x360eb0[0x3],'authorId':_0x360eb0['length']<0x5?_0x360eb0[0x3]:_0x360eb0[0x4],'markerCount':0x6==_0x360eb0['length']?_0x360eb0[0x5]:null};}['_breakSuggestionMarker'](_0x6dcebb,_0x260b56,_0x2fddba){const _0x1f3ebe=_0x6dcebb['getFirstRange'](),_0x54de12=_0x1f3ebe['start'],_0xef16dc=_0x1f3ebe['end'];this['_setSuggestionRange'](_0x6dcebb,this['_model']['createRange'](_0x54de12,_0x260b56));const _0x579389=_0x2bc0a0(),_0x21bfbc=_0x6dcebb['creator']['id'],_0x471f32=_0x6dcebb['type']+(_0x6dcebb['subType']?':'+_0x6dcebb['subType']:'');this['_setSuggestionData']({'id':_0x579389,'type':_0x471f32,'createdAt':new Date(),'authorId':_0x21bfbc,'originalSuggestionId':_0x6dcebb['_originalSuggestionId']||_0x6dcebb['id'],'attributes':_0x6dcebb['attributes'],'data':_0x6dcebb['data']});const _0x2bf3fe=this['_getAttributeKey'](_0x6dcebb);('formatBlock'==_0x6dcebb['type']||_0x2bf3fe&&this['_isBlockAttribute'](_0x2bf3fe))&&(_0x2fddba=this['_model']['createPositionBefore'](_0x2fddba['parent'])),this['_addSuggestionMarker'](_0x471f32,_0x579389,_0x21bfbc,this['_model']['createRange'](_0x2fddba,_0xef16dc));}['_findSuggestions'](_0x121250,_0x57bd44=null){const _0x2e7794=[],_0x4d142d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x121250)||(_0x121250=[_0x121250]);for(const _0x44ed18 of this['getSuggestions']()){if(!_0x44ed18['isInContent'])continue;if(_0x57bd44&&_0x44ed18['type']!=_0x57bd44)continue;let _0x112412=!0x1;for(const _0x18e0ea of _0x44ed18['getRanges']()){for(const _0x55dc25 of _0x121250){const _0x53b1f1=_0x55dc25['start']['isEqual'](_0x18e0ea['end'])||_0x55dc25['end']['isEqual'](_0x18e0ea['start']);if(_0x53b1f1||_0x55dc25['getIntersection'](_0x18e0ea)){const _0x43c170=_0x55dc25['containsRange'](_0x18e0ea)&&Ft(this['_model']['schema'],_0x18e0ea['start'],_0x55dc25),_0x57c13e=_0x18e0ea['containsRange'](_0x55dc25)&&Ft(this['_model']['schema'],_0x55dc25['start'],_0x18e0ea);_0x2e7794['push']({'suggestion':_0x44ed18,'meta':{'isOwn':_0x4d142d==_0x44ed18['author'],'isNextTo':_0x53b1f1,'isInsideObject':_0x43c170,'containsRangeInObject':_0x57c13e}}),_0x112412=!0x0;break;}}if(_0x112412)break;}}return _0x2e7794;}['_addSuggestionMarker'](_0x1474f2,_0x36b7c6,_0x191f7d,_0x3244cb,_0xbda8bb){this['_model']['change'](_0x395bd7=>{let _0x318476='suggestion:'+_0x1474f2+':'+_0x36b7c6+':'+_0x191f7d;_0xbda8bb&&(_0x318476=_0x318476+':'+_0xbda8bb),_0x395bd7['addMarker'](_0x318476,{'range':_0x3244cb,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x21d51b){const _0x4c79a5=_0x21d51b['previous'],_0x1c1679=_0x21d51b['next'];_0x21d51b['previous']=null,_0x21d51b['next']=null,null!=_0x4c79a5&&_0x4c79a5['next']==_0x21d51b&&(_0x4c79a5['next']=_0x1c1679),null!=_0x1c1679&&_0x1c1679['previous']==_0x21d51b&&(_0x1c1679['previous']=_0x4c79a5),'ready'==this['_suggestionState']['get'](_0x21d51b)&&(this['_suggestionState']['set'](_0x21d51b,'removed'),this['fire']('suggestionUnloaded',_0x21d51b,_0x4c79a5,_0x1c1679));}['_setSuggestionData'](_0x900df3){const _0x4c1cf2=_0x900df3['id'],_0x3c09fe=this['addSuggestionData'](_0x900df3);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x190ec2=this['editor']['plugins']['get']('PendingActions'),_0x263ad0=_0x3c09fe['hasComments'],_0x1e3c6f=_0x3c09fe['subType']?_0x3c09fe['type']+':'+_0x3c09fe['subType']:_0x3c09fe['type'],_0x4d95f5=this['editor']['locale'],_0x5981d0=_0x190ec2['add'](o(_0x4d95f5,'PENDING_ACTION_SUGGESTION')),_0x355b01={'id':_0x4c1cf2,'type':_0x1e3c6f,'hasComments':_0x263ad0,'data':_0x900df3['data']||null,'originalSuggestionId':_0x900df3['originalSuggestionId']||null,'attributes':_0x3c09fe['attributes']};this['_adapter']['addSuggestion'](_0x355b01)['then'](_0x1a8776=>{_0x3c09fe['_saved']=!0x0,_0x190ec2['remove'](_0x5981d0),_0x1a8776&&_0x1a8776['createdAt']&&(this['_suggestions']['get'](_0x4c1cf2)['createdAt']=_0x1a8776['createdAt']);})['catch'](_0x1c1ffe=>{throw _0x296784('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3c09fe['discard']();}),_0x3c09fe['stopListening'](),this['_suggestions']['delete'](_0x3c09fe['id']),this['_suggestionState']['delete'](_0x3c09fe),_0x1c1ffe;});}return _0x3c09fe;}['_isBlockAttribute'](_0x9fb24b){return this['_blockAttributeKeys']['has'](_0x9fb24b);}['_isInlineAttribute'](_0xcc016a){return this['_inlineAttributeKeys']['has'](_0xcc016a);}['_updateSuggestionData'](_0x4c42ba,_0xf97661){const _0x3bded9=this['editor']['plugins']['get']('PendingActions'),_0x412431=this['getSuggestion'](_0x4c42ba);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x412431['_saved']){const _0x2efa36=_0x3bded9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4c42ba,_0xf97661)['then'](()=>{_0x3bded9['remove'](_0x2efa36);});}else _0x412431['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4c42ba,_0xf97661);});}}['_getSuggestionData'](_0x2a3631){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4e6713('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2a3631);}['_handleNewSuggestionMarker'](_0x49b5c3){const {id:_0x17874a,type:_0x3da7c8,subType:_0x556c2c,authorId:_0x279d74}=this['_splitMarkerName'](_0x49b5c3),_0x5d9301=this['_suggestions']['get'](_0x17874a)||this['_createSuggestion'](_0x3da7c8,_0x556c2c,_0x17874a,_0x279d74,{});switch(this['_checkSuggestionCorrectness'](_0x5d9301,_0x3da7c8,_0x556c2c,_0x279d74),this['_suggestionState']['get'](_0x5d9301)){case'notReady':this['_getSuggestionData'](_0x17874a)['then'](_0x546228=>{let _0x440851=Promise['resolve']();_0x546228['hasComments']&&(_0x440851=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x17874a})),_0x440851['then'](()=>{this['addSuggestionData'](_0x546228)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5d9301,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x17874a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5d9301,'ready'),this['fire']('suggestionLoaded',_0x5d9301);break;case'ready':this['fire']('suggestionChanged',_0x5d9301);}return _0x5d9301['addMarkerName'](_0x49b5c3),_0x5d9301;}['_refreshSuggestionsChain'](_0x2eae74){const _0x4534f3=Array['from'](_0x2eae74),_0x94609b=_0x4534f3['filter'](_0x5336dc=>'attribute'==_0x5336dc['type']);this['_refreshAttributeSuggestionsChain'](_0x94609b);const _0x2d3eb7=_0x4534f3['filter'](_0x41f65c=>!_0x41f65c['isMultiRange']&&'attribute'!=_0x41f65c['type']),_0x4fa727=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x841f16=>!_0x841f16['isMultiRange']&&'attribute'!=_0x841f16['type']),_0x12771a=_0x4fa727['filter'](_0x13d26e=>!_0x2eae74['has'](_0x13d26e)),_0x14cb2e=new Map(_0x4fa727['map'](_0x3ad463=>[_0x3ad463,this['_suggestionFactory']['getSuggestionCallback'](_0x3ad463['type'],_0x3ad463['subType'],'chain')])),_0x30ade6=new Map(_0x4fa727['map'](_0x39f4f4=>[_0x39f4f4,_0x39f4f4['getFirstRange']()])),_0x58a443=new Set(),_0x1dc46d=new Set();for(let _0x4bca7a=0x0;_0x4bca7a<_0x2d3eb7['length'];_0x4bca7a++)_0x229f3e(_0x2d3eb7[_0x4bca7a],_0x2d3eb7,_0x4bca7a+0x1);for(let _0x5c63eb=0x0;_0x5c63eb<_0x2d3eb7['length'];_0x5c63eb++)_0x229f3e(_0x2d3eb7[_0x5c63eb],_0x12771a,0x0);const _0x2862f5=new Set();for(let _0x5ef149=0x0;_0x5ef149<_0x2d3eb7['length'];_0x5ef149++){const _0x30b969=_0x2d3eb7[_0x5ef149];!_0x1dc46d['has'](_0x30b969)&&_0x30b969['previous']&&(_0x2862f5['add'](_0x30b969['previous']),_0x30b969['previous']['next']===_0x30b969&&(_0x30b969['previous']['next']=null),_0x30b969['previous']=null),!_0x58a443['has'](_0x30b969)&&_0x30b969['next']&&(_0x2862f5['add'](_0x30b969['next']),_0x30b969['next']['previous']===_0x30b969&&(_0x30b969['next']['previous']=null),_0x30b969['next']=null);}function _0x229f3e(_0x17e891,_0x5c9848,_0x22573d){for(let _0x123397=_0x22573d;_0x123397<_0x5c9848['length'];_0x123397++){const _0x4b8271=_0x5d5f12(_0x17e891,_0x5c9848[_0x123397]);_0x4b8271&&(_0x4b8271[0x0]['next']=_0x4b8271[0x1],_0x4b8271[0x1]['previous']=_0x4b8271[0x0],_0x58a443['add'](_0x4b8271[0x0]),_0x1dc46d['add'](_0x4b8271[0x1]));}}function _0x5d5f12(_0x255de9,_0x3d059e){if(_0x255de9['author']['id']!==_0x3d059e['author']['id'])return null;const _0x233c98=_0x14cb2e['get'](_0x255de9)(_0x255de9,_0x3d059e,_0x30ade6['get'](_0x255de9),_0x30ade6['get'](_0x3d059e));if(!_0x233c98)return null;return _0x14cb2e['get'](_0x3d059e)(_0x255de9,_0x3d059e,_0x30ade6['get'](_0x255de9),_0x30ade6['get'](_0x3d059e))?_0x233c98[0x1]['commentThread']&&_0x233c98[0x1]['commentThread']['length']?null:_0x233c98:null;}_0x2862f5['size']&&this['_refreshSuggestionsChain'](_0x2862f5);}['_refreshAttributeSuggestionsChain'](_0x273dcf){if(0x0==_0x273dcf['length'])return;const _0x3e2fd7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x565890=>'attribute'==_0x565890['type']&&_0x565890['_isDataLoaded']),_0x2f13ed=[],_0x4ac2ee=new Map();for(const _0xaba920 of _0x3e2fd7){const _0x538ab9=_0x2d44eb(_0xaba920['attributes']);_0x4ac2ee['has'](_0x538ab9)||(_0x4ac2ee['set'](_0x538ab9,_0x2f13ed['length']),_0x2f13ed['push']([]));const _0x1ea11b=_0x4ac2ee['get'](_0x538ab9);_0x2f13ed[_0x1ea11b]['push'](_0xaba920);}!(function(){_0x2f13ed['sort']((_0x27c971,_0x281a2c)=>{const _0xa8bf9c=_0x27c971[0x0]['createdAt'],_0x5f30c9=_0x281a2c[0x0]['createdAt'];return _0xa8bf9c==_0x5f30c9?_0x27c971[0x0]['attributes']['groupId']<_0x281a2c[0x0]['attributes']['groupId']?-0x1:0x1:_0xa8bf9c<_0x5f30c9?-0x1:0x1;});for(const _0x2c8891 of _0x2f13ed)_0x2c8891['sort']((_0x189c6c,_0xf964a8)=>_0x189c6c['id']<_0xf964a8['id']?-0x1:0x1);}());for(let _0x1b3c4a=0x0;_0x1b3c4a<_0x2f13ed['length'];_0x1b3c4a++){if(0x0==_0x2f13ed[_0x1b3c4a]['length'])continue;const _0x172ccb=[];for(let _0x2747a6=_0x1b3c4a+0x1;_0x2747a6<_0x2f13ed['length'];_0x2747a6++)0x0!=_0x2f13ed[_0x2747a6]['length']&&_0xc7b471(_0x2f13ed[_0x1b3c4a],_0x2f13ed[_0x2747a6])&&_0x172ccb['push'](_0x2747a6);for(const _0x5bf19a of _0x172ccb)_0x2f13ed[_0x1b3c4a]=_0x2f13ed[_0x1b3c4a]['concat'](_0x2f13ed[_0x5bf19a]),_0x2f13ed[_0x5bf19a]=[];}for(const _0xde1a24 of _0x2f13ed)for(let _0x568cf4=0x0;_0x568cf4<_0xde1a24['length'];_0x568cf4++){const _0x23b004=_0xde1a24[_0x568cf4+0x1]||null;_0xde1a24[_0x568cf4]['next']!==_0x23b004&&(_0xde1a24[_0x568cf4]['next']=_0x23b004);}for(const _0x295687 of _0x2f13ed)for(let _0x23f51a=0x0;_0x23f51a<_0x295687['length'];_0x23f51a++){const _0x2a9cb7=_0x295687[_0x23f51a-0x1]||null;_0x295687[_0x23f51a]['previous']!==_0x2a9cb7&&(_0x295687[_0x23f51a]['previous']=_0x2a9cb7);}function _0xc7b471(_0xca0f83,_0x42ace3){if(_0xca0f83[0x0]['attributes']['groupId']!==_0x42ace3[0x0]['attributes']['groupId']&&_0xca0f83[0x0]['author']!==_0x42ace3[0x0]['author'])return!0x1;if(!function(_0x154d3d,_0x31b95c){if(!_0x154d3d['hasComments']&&!_0x31b95c['hasComments'])return!0x0;if(_0x154d3d['hasComments']&&_0x31b95c['hasComments'])return!0x1;if(_0x154d3d['hasComments']&&_0x31b95c['createdAt']<_0x154d3d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x31b95c['hasComments']&&_0x154d3d['createdAt']<_0x31b95c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xca0f83[0x0],_0x42ace3[0x0]))return!0x1;const _0x1b8850=Ut(_0xca0f83[0x0]['attributes'],['groupId','trackingSessionId']),_0x947be7=Ut(_0x42ace3[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x31bb86(_0x1b8850,_0x947be7))return!0x1;if(_0xca0f83[0x0]['attributes']['groupId']==_0x42ace3[0x0]['attributes']['groupId'])return!0x0;if(_0xca0f83[0x0]['attributes']['trackingSessionId']!==_0x42ace3[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xca0f83['every'](_0x21590e=>_0x42ace3['some'](_0x16248c=>_0x21590e['getFirstRange']()['isEqual'](_0x16248c['getFirstRange']())))&&_0x42ace3['every'](_0x2822b6=>_0xca0f83['some'](_0x39d2c1=>_0x2822b6['getFirstRange']()['isEqual'](_0x39d2c1['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x30855d){const _0x4426bf=Array['from'](_0x30855d),_0x195183=this['getSuggestions']({'skipNotAttached':!0x0}),_0x299a00=_0x195183['filter'](_0x49fe82=>!_0x30855d['has'](_0x49fe82)),_0xffe7d6=new Map(_0x4426bf['map'](_0x56ae0f=>[_0x56ae0f,this['_suggestionFactory']['getSuggestionCallback'](_0x56ae0f['type'],_0x56ae0f['subType'],'join')])),_0x375a27=new Map(_0x195183['map'](_0x582b9a=>[_0x582b9a,_0x582b9a['getRanges']()]));for(let _0x140ff7=0x0;_0x140ff7<_0x4426bf['length'];_0x140ff7++){if(_0x45f2ae(this,_0x4426bf[_0x140ff7],_0x4426bf,_0x140ff7+0x1))return!0x0;}for(let _0x2f5a31=0x0;_0x2f5a31<_0x4426bf['length'];_0x2f5a31++){if(_0x45f2ae(this,_0x4426bf[_0x2f5a31],_0x299a00,0x0))return!0x0;}return!0x1;function _0x45f2ae(_0x16f3a6,_0x26a842,_0xedcf04,_0x4ceb56){for(let _0x499fb9=_0x4ceb56;_0x499fb9<_0xedcf04['length'];_0x499fb9++){const _0x48e21a=_0xedcf04[_0x499fb9];if(_0x48e21a['type']!==_0x26a842['type']||_0x48e21a['author']['id']!==_0x26a842['author']['id']||_0x48e21a['subType']!==_0x26a842['subType'])continue;if(!Qt(_0x26a842,_0x48e21a))continue;if('attribute'==_0x26a842['type']&&_0x26a842['data']['oldValue']!=_0x48e21a['data']['oldValue'])continue;if('attribute'==_0x26a842['type']&&_0x16f3a6['_isBlockAttribute'](_0x26a842['data']['key']))continue;if('formatBlock'==_0x26a842['type']){const _0x4a5d97=_0x16f3a6['editor']['model'],_0xf83d96=_0x26a842['getContainedElement']();if(_0xf83d96&&(_0x4a5d97['schema']['isObject'](_0xf83d96)||_0x4a5d97['schema']['isLimit'](_0xf83d96)))continue;}const _0x71ef31=_0xffe7d6['get'](_0x26a842),_0x82b343=_0x375a27['get'](_0x26a842),_0x2a5a2c=_0x375a27['get'](_0x48e21a),_0x5d46d2=_0x26a842['commentThread']&&_0x26a842['commentThread']['length'],_0x2e73b8=_0x48e21a['commentThread']&&_0x48e21a['commentThread']['length'];if(!_0x5d46d2&&_0x71ef31(_0x2a5a2c,_0x82b343))return _0x16f3a6['_joinSuggestions'](_0x48e21a,_0x26a842),_0x375a27['delete'](_0x26a842),!0x0;if(!_0x2e73b8&&_0x71ef31(_0x82b343,_0x2a5a2c))return _0x16f3a6['_joinSuggestions'](_0x26a842,_0x48e21a),_0x375a27['delete'](_0x48e21a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x226bb0,_0x2772d5){if(_0x226bb0['isMultiRange']){for(const _0x570eec of _0x2772d5['getRanges']())_0x226bb0['addRange'](_0x570eec);}else{const _0x5ce5ed=_0x2772d5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x226bb0,this['_model']['createRange'](_0x226bb0['getFirstRange']()['start'],_0x5ce5ed));}_0x2772d5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3c0fa8,_0x2eec0a,_0x500339){const _0x394244=_0x3c0fa8['startsWith']('format')||_0x3c0fa8['startsWith']('attribute')?'FORMATTING':_0x3c0fa8['toUpperCase']();return o(this['editor']['locale'],_0x2eec0a+'_'+_0x394244+'_SUGGESTION_ANNOUNCEMENT',_0x500339);}['_initAriaMarkerChangeAnnouncements'](){const _0x11b02f=this['editor'];if(!_0x11b02f['ui'])return;const {ariaLiveAnnouncer:_0x407eb3}=_0x11b02f['ui'];_0x31587d(this['_model'],({left:_0x4bdbaf,entered:_0x518cdf})=>{for(const _0x30aab7 of _0x4bdbaf){const {group:_0x32363b,type:_0x284967}=this['_splitMarkerName'](_0x30aab7['name']);if('suggestion'===_0x32363b){_0x407eb3['announce'](this['_getMarkerAnnouncementText'](_0x284967,'LEAVE'));break;}}for(const _0x41d7a6 of _0x518cdf){const {group:_0x2fe548,type:_0x5315dd}=this['_splitMarkerName'](_0x41d7a6['name']);if('suggestion'===_0x2fe548){_0x407eb3['announce'](this['_getMarkerAnnouncementText'](_0x5315dd,'ENTER',_0x424ddc(_0x111eb7)));break;}}});}['_processAttributeChanges'](_0x8a0f32){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2100c3=this['editor'],_0x52611d=_0x2100c3['model']['document']['differ']['getChanges']();if(0x0==_0x52611d['length'])return!0x1;const _0x6b13ab=[],_0x2eddcf=_0x52611d['filter'](_0xdcdb1d=>'attribute'==_0xdcdb1d['type']),_0x318cb0=_0x52611d['filter'](_0x1dcd3a=>'insert'==_0x1dcd3a['type']&&'$text'!=_0x1dcd3a['name']),_0x112542=_0x52611d['filter'](_0x17bedf=>'remove'==_0x17bedf['type']&&'$text'!=_0x17bedf['name']);for(const _0x16141c of _0x2eddcf)_0x6b13ab['push']({'key':_0x16141c['attributeKey'],'newValue':_0x16141c['attributeNewValue'],'oldValue':_0x16141c['attributeOldValue'],'range':qt(_0x16141c['range'],_0x2100c3['model'])});for(const _0x579975 of _0x318cb0){const _0xc4e792=_0x112542['find'](_0x34618c=>_0x34618c['position']['isEqual'](_0x579975['position']));_0xc4e792&&_0x6b13ab['push']({'key':m,'newValue':_0x579975['name'],'oldValue':_0xc4e792['name'],'range':_0x2100c3['model']['createRangeOn'](_0x579975['position']['nodeAfter'])});}return 0x0!=_0x6b13ab['length']&&this['_reduceExistingSuggestions'](_0x8a0f32,_0x6b13ab);}['_processAttributeSuggestions'](_0x39197c){let _0x132323=!0x1;const _0xe54ae=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5d6fa0=>_0x5d6fa0['data']['newRange']&&_0x5d6fa0['name']['startsWith']('suggestion:attribute:'));for(const _0x840f4e of _0xe54ae){const {subType:_0x1cdf0a,id:_0x506c80}=this['_splitMarkerName'](_0x840f4e['name']),_0x52b2a1=_0x1cdf0a['split']('|')[0x0];for(const _0xb9d1bc of this['getSuggestions']({'skipNotAttached':!0x0}))_0xb9d1bc['id']!=_0x506c80&&'attribute'==_0xb9d1bc['type']&&_0xb9d1bc['data']&&_0xb9d1bc['data']['key']==_0x52b2a1&&_0xb9d1bc['getFirstRange']()['isIntersecting'](_0x840f4e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xb9d1bc,_0x840f4e['data']['newRange'],_0x39197c),_0x132323=!0x0);}return _0x132323;}['recordAttributeChanges'](_0x57e176){this['_recordAttributeSuggestions']=!0x0,_0x57e176();}['_isRegisteredAttribute'](_0x332ec7){const _0x2f6373=this['_isBlockAttribute'](_0x332ec7),_0x127df5=this['_isInlineAttribute'](_0x332ec7);return _0x2f6373||_0x127df5;}['_reduceExistingSuggestions'](_0x513d3e,_0x4d7834){if(0x0==_0x4d7834['length'])return!0x1;let _0x2bd26d=!0x1;for(const _0x5b9c31 of _0x4d7834){const _0x403704=this['_findSuggestions'](_0x5b9c31['range'],'attribute')['filter'](_0x57416b=>!_0x57416b['meta']['isNextTo'])['map'](_0x4228cd=>_0x4228cd['suggestion']),_0x2b5484=_0x2d44eb({'newValue':_0x5b9c31['newValue']});_0x403704['filter'](_0x518f7d=>{const [_0x12bbae,_0x6ca8cd]=_0x518f7d['subType']['split']('|');return _0x12bbae==_0x5b9c31['key']&&_0x6ca8cd!=_0x2b5484;})['forEach'](_0x426d14=>{this['_reduceSuggestionAttributeRange'](_0x426d14,_0x5b9c31['range'],_0x513d3e),_0x2bd26d=!0x0;});}return _0x2bd26d;}['_reduceSuggestionAttributeRange'](_0x2be07d,_0x1a2117,_0x11f809){const _0x24d744=_0x2be07d['getFirstRange']()['getDifference'](_0x1a2117);0x0!==_0x24d744['length']?0x1!==_0x24d744['length']?this['_breakSuggestionMarker'](_0x2be07d,_0x1a2117['start'],_0x1a2117['end']):this['_setSuggestionRange'](_0x2be07d,_0x24d744[0x0]):_0x11f809['removeMarker'](_0x2be07d['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x139837){this['_editor']=_0x139837,this['_model']=_0x139837['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5d3bd1,_0xcfac8f,_0x4621de,_0x2f2227,_0x3e65c8,_0x2ec04a,_0x28aa05){return new T(this['_model'],{'type':_0x5d3bd1,'subType':_0xcfac8f,'id':_0x4621de,'originalSuggestionId':_0x28aa05,'author':_0x2f2227,'creator':_0x2f2227,'attributes':_0x3e65c8,'onAttributesChange':_0x2ec04a,'onAccept':(..._0x5a1964)=>this['getSuggestionCallback'](_0x5d3bd1,_0xcfac8f,'accept')(..._0x5a1964),'onDiscard':(..._0x1a97a5)=>this['getSuggestionCallback'](_0x5d3bd1,_0xcfac8f,'discard')(..._0x1a97a5)});}['registerCustomCallback'](_0x376edc,_0x54bc79,_0x469c39,_0x543711){const _0x1629cc=_0x376edc+':'+_0x54bc79+':'+_0x469c39;this['_customCallbacks']['set'](_0x1629cc,_0x543711);}['getSuggestionCallback'](_0x5c97dd,_0x5d577e,_0x17e834){const _0x4f6df1=_0x5c97dd+':'+_0x5d577e+':'+_0x17e834;return this['_customCallbacks']['get'](_0x4f6df1)||this['_defaultCallbacks']['get'](_0x5c97dd+':'+_0x17e834);}['_registerDefaultCallbacks'](){const _0x436b3f=()=>!0x1,_0x1641dd=_0x3c4002=>{_0x3c4002['sort']((_0x4ffaef,_0x37dd98)=>_0x4ffaef['start']['isBefore'](_0x37dd98['start'])?0x1:-0x1),this['_model']['change'](_0x34ffe9=>{for(const _0x5f925b of _0x3c4002){let _0x70218f;_0x70218f=_0x5f925b['end']['isAtEnd']&&_0x5f925b['end']['parent']==_0x5f925b['start']['nodeAfter']?_0x34ffe9['createSelection'](_0x5f925b['start']['nodeAfter'],'on'):_0x34ffe9['createSelection'](_0x5f925b),this['_model']['deleteContent'](_0x70218f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x37e4b8=(_0x151fb9,_0x47e458)=>{_0x47e458&&this['_model']['change'](_0x1c72bc=>{const {commandName:_0x4ea44e,commandParams:_0x5a91bc=[]}=_0x47e458,_0x1fdcd6=_0x151fb9['map'](_0x2710ce=>(Pt(_0x2710ce)&&(_0x2710ce=this['_model']['createRange'](_0x2710ce['end'])),_0x2710ce))['filter'](_0x46e58a=>'$graveyard'!==_0x46e58a['root']['rootName']);if(_0x1fdcd6['length']<0x1)return;const _0x51826f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x537475=>_0x3b6fe0['fromRange'](_0x537475));_0x1c72bc['setSelection'](_0x1fdcd6);for(const _0x6521ef of this['_editor']['commands']['commands']())_0x6521ef['refresh']();_0x5a91bc['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4ea44e,..._0x5a91bc);const _0x20de2c=_0x51826f['filter'](_0x29e02c=>'$graveyard'!=_0x29e02c['root']['rootName']);_0x20de2c['length']>0x0&&_0x1c72bc['setSelection'](_0x20de2c);for(const _0x41e325 of _0x51826f)_0x41e325['detach']();});},_0x52e6dd=(_0x2c92ca,_0x2b8b9d)=>0x1==_0x2c92ca['length']&&0x1==_0x2b8b9d['length']&&_0x2c92ca[0x0]['end']['isEqual'](_0x2b8b9d[0x0]['start']),_0x1acb74=(_0x38c937,_0x15091f,_0x113a4d,_0x484b76)=>Wt(_0x38c937,_0x15091f,_0x113a4d,_0x484b76)?[_0x38c937,_0x15091f]:Wt(_0x15091f,_0x38c937,_0x484b76,_0x113a4d)?[_0x15091f,_0x38c937]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x436b3f),this['_defaultCallbacks']['set']('insertion:discard',_0x1641dd),this['_defaultCallbacks']['set']('insertion:join',_0x52e6dd),this['_defaultCallbacks']['set']('insertion:chain',_0x1acb74),this['_defaultCallbacks']['set']('deletion:accept',_0x1641dd),this['_defaultCallbacks']['set']('deletion:discard',_0x436b3f),this['_defaultCallbacks']['set']('deletion:join',_0x52e6dd),this['_defaultCallbacks']['set']('deletion:chain',_0x1acb74),this['_defaultCallbacks']['set']('formatInline:accept',_0x37e4b8),this['_defaultCallbacks']['set']('formatInline:discard',_0x436b3f),this['_defaultCallbacks']['set']('formatInline:join',_0x52e6dd),this['_defaultCallbacks']['set']('formatInline:chain',_0x436b3f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x37e4b8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x436b3f),this['_defaultCallbacks']['set']('formatBlock:join',_0x52e6dd),this['_defaultCallbacks']['set']('formatBlock:chain',_0x436b3f),this['_defaultCallbacks']['set']('attribute:accept',_0x436b3f),this['_defaultCallbacks']['set']('attribute:discard',(_0x260e1f,_0x5f00a2)=>{if(!_0x5f00a2)return;const _0x51875f=this['_editor']['plugins']['get'](d);this['_model']['change'](_0xc2367b=>{if(_0x5f00a2['key']==m)for(const _0x4df40b of _0x260e1f){const _0x4df562=_0x4df40b['start']['nodeAfter'],_0x3d85f6=_0x5f00a2['oldValue'];_0xc2367b['rename'](_0x4df562,_0x3d85f6);}else{if(_0x51875f['_isBlockAttribute'](_0x5f00a2['key'])){for(const _0x49fab4 of _0x260e1f)void 0x0!==_0x5f00a2['oldValue']?_0xc2367b['setAttribute'](_0x5f00a2['key'],_0x5f00a2['oldValue'],_0x49fab4['start']['nodeAfter']):_0xc2367b['removeAttribute'](_0x5f00a2['key'],_0x49fab4['start']['nodeAfter']);}else{for(const _0x5da431 of _0x260e1f)_0x5f00a2['oldValue']?_0xc2367b['setAttribute'](_0x5f00a2['key'],_0x5f00a2['oldValue'],_0x5da431):_0xc2367b['removeAttribute'](_0x5f00a2['key'],_0x5da431);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x52e6dd);}}function Ft(_0x171a3f,_0x14a08c,_0x230abf){for(const _0x4b3d4c of _0x14a08c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4b3d4c['root']==_0x4b3d4c)return!0x1;if(!_0x230abf['containsItem'](_0x4b3d4c))return!0x1;if(_0x171a3f['isObject'](_0x4b3d4c)||_0x171a3f['isLimit'](_0x4b3d4c))return!0x0;}return!0x1;}function Pt(_0x58d783){return _0x58d783['end']['parent']==_0x58d783['start']['nodeAfter']&&_0x58d783['end']['isAtStart'];}function Gt(_0x43da3a,_0xf80623,_0x3e71f6,_0x30846f){const _0x341b41=_0x430397=>!_0x430397['item']['is']('$textProxy')&&!_0x30846f['isObject'](_0x430397['item']),_0x53f85c=_0x43da3a['start']['getLastMatchingPosition'](_0x341b41),_0x55fb22=_0x43da3a['end']['getLastMatchingPosition'](_0x341b41,{'direction':'backward'});return(!_0x43da3a['start']['isEqual'](_0x53f85c)||!_0x43da3a['end']['isEqual'](_0x55fb22))&&(_0x53f85c['isBefore'](_0x55fb22)?_0x3e71f6['updateMarker'](_0xf80623,{'range':_0x3e71f6['createRange'](_0x53f85c,_0x55fb22)}):_0x3e71f6['removeMarker'](_0xf80623),!0x0);}function Lt(_0x218d1d){return _0x2d44eb(_0x218d1d);}function Jt(_0x4c00a6){const _0x273ce3=_0x4c00a6['start']['nodeAfter'];return _0x273ce3&&_0x273ce3['is']('element');}function Kt(_0x3eeba6){return Pt(_0x3eeba6)||function(_0x22da8d){return _0x22da8d['start']['parent']==_0x22da8d['end']['nodeBefore']&&_0x22da8d['start']['isAtEnd'];}(_0x3eeba6);}function Ht(_0x4a5231,_0x26ee31){try{const _0x697ac5=_0x4a5231['getRange']();for(const _0x277314 of _0x26ee31)if(_0x4a5231!==_0x277314&&_0x697ac5&&_0x697ac5['isIntersecting'](_0x277314['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x338064,_0x524779){return null==_0x338064['end']['nodeBefore']&&_0x338064['end']['parent']==_0x338064['start']['nodeAfter']?zt(_0x338064['start']['nodeAfter'],_0x524779):_0x338064;}function zt(_0x93e379,_0x5cad80){const _0x4d7187=_0x5cad80['schema']['isObject'](_0x93e379)||_0x5cad80['schema']['isSelectable'](_0x93e379);return _0x5cad80['createRange'](_0x5cad80['createPositionAt'](_0x93e379,'before'),_0x4d7187?_0x5cad80['createPositionAfter'](_0x93e379):_0x5cad80['createPositionAt'](_0x93e379,'end'));}function Wt(_0x1df2c6,_0x443e2c,_0x44715d,_0x3d2c2f){return!!Qt(_0x1df2c6,_0x443e2c)&&_0x44715d['end']['isEqual'](_0x3d2c2f['start']);}function Qt(_0x46527b,_0x269ada){if(!_0x46527b['_isDataLoaded']||!_0x269ada['_isDataLoaded'])return!0x1;const _0xe29fbd=new Set(Object['keys'](_0x46527b['attributes'])),_0x2d7cd8=new Set(Object['keys'](_0x269ada['attributes']));if(_0xe29fbd['delete']('groupId'),_0x2d7cd8['delete']('groupId'),0x0==_0xe29fbd['size']&&0x0==_0x2d7cd8['size'])return!0x0;if(_0xe29fbd['size']!=_0x2d7cd8['size'])return!0x1;const _0x2ea539={..._0x46527b['attributes']},_0x5aabf7={..._0x269ada['attributes']};return delete _0x2ea539['groupId'],delete _0x5aabf7['groupId'],JSON['stringify'](_0x2ea539)==JSON['stringify'](_0x5aabf7);}function Xt(_0x1299b3,_0xec75c0){const _0x84b385=Yt(_0x1299b3['attributes']),_0x31199d=Yt(_0xec75c0);if(!_0x1299b3['_isDataLoaded'])return!0x1;for(const _0x3339f8 of Object['keys'](_0x31199d))if(!_0x31bb86(_0x84b385[_0x3339f8],_0x31199d[_0x3339f8]))return!0x1;return!0x0;}function Yt(_0x56b696){const _0x36efe4=Object['assign']({},_0x56b696);return delete _0x36efe4['skipNestingCheck'],delete _0x36efe4['tablePasteChainId'],_0x36efe4;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x530e9d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x21197e,_0x24b4a2,_0x42289d,_0x2d6b18){super(),this['model']=_0x24b4a2,this['view']=_0x42289d,this['commentThreadController']=_0x2d6b18,this['_editor']=_0x21197e,this['_acceptCommand']=_0x21197e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x21197e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x36a48e,_0x33efc4)=>_0x36a48e||_0x33efc4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3db8f2=>_0x3db8f2&&this['_editor']['model']['canEditAt'](_0x24b4a2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1a7330=>_0x1a7330&&this['_editor']['model']['canEditAt'](_0x24b4a2['getRanges']())),this['_pendingAction']=null,_0x42289d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x42289d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x42289d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x42289d,'change:isDirty',()=>{_0x42289d['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 _0x5bbcf1=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5bbcf1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x53e7ac{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2ce944,_0xb4adbd,_0x492988,_0x5cea4d){super(_0x2ce944),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x595acf(_0x2ce944,o(_0x2ce944,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xb4adbd['authoredAt']),this['bind']('authoredAt')['to'](_0xb4adbd),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',_0xb4adbd,'authoredAt',this,'descriptionParts',(_0x33bc84,_0x1637c3,_0x3e776a)=>{const _0x3960cf=_0x3e776a['map'](_0x425eed=>ls(_0x425eed['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x33bc84-0x1,_0xb4adbd['author']['name'],_0x1637c3?_0x5cea4d['formatDateTime'](_0x1637c3):'',new DOMParser()['parseFromString'](_0x3960cf,'text/html')['body']['textContent']]);}),this['focusables']=new _0x145631(),this['focusTracker']=new _0xdfc9eb(),this['keystrokes']=new _0x29f6e0(),this['focusCycler']=new _0x785b79({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x445886=>_0x445886['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xb4adbd,this['_localUser']=_0x492988,this['_config']=_0x5cea4d,_0x5cea4d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x270abe(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xa0af3d}=this['_config'];this['commentsListView']=new _0xa0af3d(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',_0x4c9178=>_0x4c9178+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1f0353,_0x4b2d71)=>_0x1f0353||!!_0x4b2d71);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3e9280}=this['_config'],_0x31e3fe=new _0x3e9280(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5f1376=_0x31e3fe['commentInputView'];return _0x31e3fe['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5f1376,'value',(_0x200069,_0x40c09a,_0x23390e)=>!!_0x23390e||_0x200069&&!_0x40c09a),_0x5f1376['on']('submit',(_0xb4a6b6,_0x4f5ebb)=>{this['fire']('addComment',_0x4f5ebb),_0x5f1376['editor']['setData']('');}),_0x5f1376['on']('cancel',()=>this['focus']()),_0x5f1376['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x31e3fe;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x26415b,_0x5b2645,_0xad5bb7,_0xab8182){super(_0x26415b,_0x5b2645,_0xad5bb7,_0xab8182),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x318b6d=>_0x318b6d&&_0x318b6d[0x0]?_0x318b6d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x809da3,_0x502d0b)=>{let _0xd8d2a5='';for(const _0xfa650a of _0x809da3)_0xd8d2a5+='<p>'+ls(_0xfa650a['content'],_0xfa650a['color'])+'</p>';return _0x502d0b?_0xd8d2a5:_0x3fe297(_0xd8d2a5,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xab8182['SuggestionView'](_0x26415b,_0x5b2645,{'formatDateTime':_0xab8182['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 _0x2ff058=this['bindTemplate'],_0x5458ba=[this['suggestionView']];return this['commentsListView']&&_0x5458ba['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5458ba['push'](this['commentThreadInputView']),_0x5458ba['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2ff058['if']('isActive','ck-suggestion-wrapper--active'),_0x2ff058['to']('type',_0x22dc45=>'ck-suggestion-'+_0x22dc45),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':_0x2ff058['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5458ba};}['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 _0x53e7ac{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1107a4,_0x1476c4,_0x2cd4fb){super(_0x1107a4),this['_model']=_0x1476c4,this['_config']=_0x2cd4fb,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1476c4),this['acceptButton']=this['_createButton'](o(_0x1107a4,'Accept\x20suggestion'),_0x44a5cf,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1107a4,'Discard\x20suggestion'),_0x14c74f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x78bced(_0x1107a4,_0x1476c4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x145631([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xdfc9eb(),this['keystrokes']=new _0x29f6e0(),this['focusCycler']=new _0x785b79({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x34bafc=>_0x34bafc['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xf11fc7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xf11fc7['innerHTML']=this['description'],this['on']('change:description',(_0x397df0,_0x51cc03,_0x15ed1d)=>{_0xf11fc7['innerHTML']=_0x15ed1d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xdf002d=this['bindTemplate'],_0x326977=[{'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':_0xdf002d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xdf002d['to']('authoredAt',_0x3db8ca=>this['_config']['formatDateTime'](_0x3db8ca))}]}]},{'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']&&_0x326977['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':_0x326977}]};}['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'](_0x546a5a,_0x449f87,_0x156373,_0xded0be,_0x26ec97){const _0x12df8c=new _0x4f7835(this['locale']);return _0x12df8c['set']({'label':_0x546a5a,'icon':_0x449f87,'tooltip':!0x0,'tooltipPosition':_0x26ec97}),_0x12df8c['extendTemplate']({'attributes':{'class':_0x156373}}),_0x12df8c['on']('execute',()=>{this['fire'](_0xded0be,this['_model']['id']);}),_0x12df8c;}['_setupKeyboardNavigation'](){const _0xfd167=this['element'];this['keystrokes']['listenTo'](_0xfd167);for(const _0x3185d8 of this['focusables'])this['focusTracker']['add'](_0x3185d8['element']),this['keystrokes']['listenTo'](_0x3185d8['element']);this['keystrokes']['set']('enter',(_0x478ea3,_0x13a6aa)=>{_0xfd167===_0x478ea3['target']&&(this['focusCycler']['focusFirst'](),_0x13a6aa());}),this['keystrokes']['set']('esc',(_0x1c3dc0,_0x21c365)=>{_0xfd167!==_0x1c3dc0['target']&&(this['focus'](),_0x21c365());});}}class u extends _0x27a629{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0xb189ac,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18dc02){super(_0x18dc02),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x508378=this['editor']['config'];_0x508378['define']('trackChanges.SuggestionThreadView',fe),_0x508378['define']('trackChanges.SuggestionView',we),_0x508378['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x508378['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3092e0,_0x330a23){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x46725b,_0x54303b]of this['_handleControllerBuffer']){const _0x15a16e=this['_suggestionToController']['has'](_0x46725b);_0x15a16e||_0x54303b?_0x15a16e&&_0x54303b&&this['_destroyController'](_0x46725b):this['_initializeController'](_0x46725b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3092e0,_0x330a23);}['init'](){const _0x5a8ee3=this['editor'],_0x51088f=_0x5a8ee3['plugins']['get']('TrackChangesEditing'),_0x32daef=_0x5a8ee3['plugins']['get']('Annotations'),_0x1bd1c5=_0x5a8ee3['plugins']['get']('EditorAnnotations'),_0x44f038=_0x5a8ee3['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1bd1c5['addSourceCollector'](()=>{const _0x1f568b=[];for(const [_0x9c11ac,_0x30807e]of Array['from'](this['_suggestionToController'])){const _0x133fa9=_0x9c11ac['getAllAdjacentSuggestions'](),_0xfa8791=[];for(const _0x4f1b22 of _0x133fa9){if(!_0x4f1b22['isInContent'])continue;if(_0x4f1b22['isMultiRange']){_0xfa8791['push'](..._0x4f1b22['getRanges']());continue;}const _0x466192=_0x4f1b22['getFirstRange']();if(_0xfa8791['length']>0x0){const _0x257254=_0xfa8791[0x0]['getJoined'](_0x466192);if(_0x257254){_0xfa8791[0x0]=_0x257254;continue;}}_0xfa8791['push'](_0x466192);}_0x1f568b['push']([_0x30807e['view'],_0xfa8791]);}return _0x1f568b;}),this['listenTo'](_0x51088f,'suggestionLoaded',(_0x541ddf,_0x514d4f)=>{this['listenTo'](_0x514d4f,'change:previous',(_0x1aab6d,_0x710400,_0x513a3a,_0x1272c3)=>{_0x514d4f['isInContent']&&(null==_0x513a3a?(this['_updateController'](_0x1272c3['head']),this['_handleSuggestionControllerDelayed'](_0x514d4f,!0x1)):(this['_updateController'](_0x513a3a['head']),null==_0x1272c3&&this['_handleSuggestionControllerDelayed'](_0x514d4f,!0x0)));}),null!==_0x514d4f['previous']?this['_updateController'](_0x514d4f['head']):this['_handleSuggestionControllerDelayed'](_0x514d4f,!0x1);}),this['listenTo'](_0x51088f,'suggestionUnloaded',(_0x508dc2,_0x4c554f,_0x163158)=>{this['stopListening'](_0x4c554f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4c554f),this['_suggestionToController']['has'](_0x4c554f)&&this['_destroyController'](_0x4c554f),_0x163158&&this['_updateController'](_0x163158['head']);}),this['listenTo'](_0x51088f,'suggestionChanged',(_0x258435,_0x2c0e00)=>{this['_updateController'](_0x2c0e00);}),this['listenTo'](_0x32daef,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x44f038,'addComment',(_0x48bcfd,{threadId:_0x570335,isFromAdapter:_0x4b0dac})=>{if(_0x4b0dac||!_0x51088f['hasSuggestion'](_0x570335))return;const _0x58a1da=_0x51088f['getSuggestion'](_0x570335);this['_suggestionToController']['get'](_0x58a1da)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x19c41e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c472d;for(const _0x17d8d9 in _0x19c41e){const _0xcff33c=_0x17d8d9,_0x25ed52=_0x19c41e[_0xcff33c];if('trackChangesLicenseKeyValid'==_0x25ed52||'trackChangesLicenseKeyInvalid'==_0x25ed52||'trackChangesLicenseKeyExpired'==_0x25ed52||'trackChangesLicenseKeyDomainLimit'==_0x25ed52||'trackChangesLicenseKeyNotAllowed'==_0x25ed52||'trackChangesLicenseKeyEvaluationLimit'==_0x25ed52||'trackChangesLicenseKeyTrialLimit'==_0x25ed52||'trackChangesLicenseKeyUsageLimit'==_0x25ed52){delete _0x19c41e[_0xcff33c],_0x1c472d=_0x25ed52,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1c472d&&_0x19c41e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1c472d&&_0x19c41e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1c472d&&_0x19c41e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1c472d&&_0x19c41e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1c472d&&_0x19c41e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1c472d&&_0x19c41e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1c472d&&_0x19c41e['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x442c37){const _0x124afc=this['_suggestionToController']['get'](_0x442c37);if(!_0x124afc)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x124afc['view'])||null;}['getSuggestionForAnnotation'](_0x54be08){const _0x3b9aa2=this['_viewToController']['get'](_0x54be08['innerView']);return _0x3b9aa2?_0x3b9aa2['model']:null;}['_refreshActiveMarkers'](){const _0x92f05a=this['editor']['plugins']['get']('Annotations'),_0xe496a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x335870=Array['from'](_0x92f05a['activeAnnotations'],_0x1b04c8=>_0x1b04c8['innerView'])['filter'](_0x436eab=>this['_viewToController']['has'](_0x436eab)),_0x854afb=[];for(const _0x3f68d6 of _0x335870){const _0x3f4d9e=this['_viewToController']['get'](_0x3f68d6)['model']['getAllAdjacentSuggestions']();_0x854afb['push'](..._0x3f4d9e['reduce']((_0x5ccb9a,_0x3b6737)=>[..._0x5ccb9a,..._0x3b6737['getMarkerNames']()],[]));}_0xe496a['activeMarkers']=_0x854afb;}['_addUIComponentsToFactory'](){const _0xf60abd=this['editor'],_0xd0a80f=_0xf60abd['locale'],_0x5932fc=o(_0xd0a80f,'Track\x20changes'),_0x5dc5ac=new _0x48a586([{'type':'switchbutton','model':new _0xbbf8f4({'withText':!0x0,'isToggleable':!0x0,'label':_0x5932fc,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xbbf8f4({'withText':!0x0,'label':o(_0xd0a80f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xbbf8f4({'withText':!0x0,'label':o(_0xd0a80f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xbbf8f4({'withText':!0x0,'label':o(_0xd0a80f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xbbf8f4({'withText':!0x0,'label':o(_0xd0a80f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xf60abd['plugins']['has']('TrackChangesPreview')&&_0x5dc5ac['addMany']([{'type':'separator'},{'type':'button','model':new _0xbbf8f4({'withText':!0x0,'label':o(_0xd0a80f,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x23f8ff of _0x5dc5ac)if(ke(_0x23f8ff)){const _0x11ca30=_0xf60abd['commands']['get'](_0x23f8ff['model']['commandName']);_0x23f8ff['model']['bind']('isOn','isEnabled')['to'](_0x11ca30,'value','isEnabled');}_0xf60abd['ui']['componentFactory']['add']('trackChanges',_0xd0feb9=>this['_createToolbarButton'](_0xd0feb9,_0x5dc5ac,_0x5932fc)),_0xf60abd['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5b894f=>this['_createMenuBarMenu'](_0x5b894f,_0x5dc5ac,_0x5932fc));}['_createToolbarButton'](_0x1f1887,_0xf6090f,_0x592b42){const _0x23df82=_0x2e1e70(_0x1f1887,_0xab56a9),_0x34530b=this['editor']['commands']['get']('trackChanges');_0x23df82['buttonView']['set']({'tooltip':_0x592b42,'label':_0x592b42,'icon':_0x175c52}),_0x23df82['buttonView']['bind']('isOn')['to'](_0x34530b,'value'),_0x23df82['buttonView']['on']('execute',()=>{_0x34530b['execute'](),this['editor']['editing']['view']['focus']();}),_0xb1da9a(_0x23df82,_0xf6090f,{'role':'menu'});const _0xf5409=[];for(const _0x36e93b of _0xf6090f)ke(_0x36e93b)&&_0xf5409['push'](this['editor']['commands']['get'](_0x36e93b['model']['commandName']));const _0x588746=_0x23df82['buttonView'];return _0x588746['actionView']['unbind']('isEnabled'),_0x588746['arrowView']['unbind']('isEnabled'),_0x588746['actionView']['bind']('isEnabled')['to'](_0x34530b,'isEnabled'),_0x588746['arrowView']['bind']('isEnabled')['toMany'](_0xf5409,'isEnabled',(..._0x22ca0a)=>_0x22ca0a['some'](_0x56cab6=>_0x56cab6)),_0x23df82['on']('execute',_0x5ec610=>{this['editor']['execute'](_0x5ec610['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x23df82;}['_createMenuBarMenu'](_0x10c451,_0x332d70,_0x36be4f){const _0x2ac507=new _0x38cc9a(_0x10c451),_0x458fef=this['editor']['commands']['get']('trackChanges');_0x2ac507['buttonView']['set']({'label':_0x36be4f,'icon':_0x175c52});const _0x3d3247=new _0x59b737(_0x10c451);for(const _0x8cc641 of _0x332d70){if('separator'==_0x8cc641['type']){_0x3d3247['items']['add'](new _0x334b98(_0x10c451));continue;}const _0x3e075c=new _0x4ee243(_0x10c451,_0x2ac507),_0x548c40=new _0xcc1bc7(_0x10c451),_0x1db2ee=_0x8cc641['model'];_0x548c40['bind'](...Object['keys'](_0x1db2ee))['to'](_0x1db2ee),_0x548c40['delegate']('execute')['to'](_0x2ac507),_0x548c40['on']('execute',()=>{this['editor']['execute'](_0x1db2ee['commandName']),this['editor']['editing']['view']['focus']();}),_0x3e075c['children']['add'](_0x548c40),_0x3d3247['items']['add'](_0x3e075c);}return _0x2ac507['bind']('isEnabled')['to'](_0x458fef,'isEnabled'),_0x2ac507['panelView']['children']['add'](_0x3d3247),_0x2ac507;}['_initializeController'](_0x2e7040){const _0x18d9da=this['editor'],_0x105608=_0x18d9da['config'],_0x250b15=_0x18d9da['plugins']['get']('Annotations'),_0x270045=_0x18d9da['plugins']['get']('CommentsRepository'),_0x193ba1=_0x18d9da['plugins']['get']('EditorAnnotations'),_0x4565d7=_0x18d9da['plugins']['get'](_0xb189ac)['me'],_0x222dc4=_0x105608['get']('trackChanges')['SuggestionThreadView'],_0x235f2f=_0x105608['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x711dc5,CommentThreadInputView:_0x578090}=_0x18d9da['plugins']['get']('CommentsUI');let _0x3f83f0,_0x2ad45c,_0x5f35cc;this['_annotationViews']['has'](_0x2e7040['id'])?(_0x2ad45c=this['_annotationViews']['get'](_0x2e7040['id']),_0x3f83f0=_0x2ad45c['mainView']):(_0x3f83f0=new _0x222dc4(_0x18d9da['locale'],_0x2e7040,_0x4565d7,{'disableComments':this['_disableComments'],'editorConfig':{..._0x105608['get']('comments.editorConfig'),'licenseKey':_0x105608['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x105608['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x105608['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x105608['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xc3aa01(_0x105608['get']('locale'),_0x18d9da['locale']),'CommentView':_0x105608['get']('comments')['CommentView'],'CommentsListView':_0x711dc5,'CommentThreadInputView':_0x578090,'SuggestionView':_0x235f2f}),_0x3f83f0['suggestionView']['acceptButton']['on']('execute',()=>{_0x18d9da['editing']['view']['focus']();}),_0x3f83f0['suggestionView']['discardButton']['on']('execute',()=>{_0x18d9da['editing']['view']['focus']();}),_0x2ad45c=_0x250b15['createAnnotationView'](this['editor']['locale'],_0x3f83f0),_0x2ad45c['bind']('isDirty')['to'](_0x3f83f0,'isDirty'),_0x2ad45c['bind']('length')['to'](_0x3f83f0),_0x2ad45c['bind']('type')['to'](_0x3f83f0,'type',_0x48a110=>'suggestion-'+_0x48a110),_0x3f83f0['on']('escape',()=>{_0x5f35cc['fire']('escape');}),this['_annotationViews']['set'](_0x2e7040['id'],_0x2ad45c));const _0x3508d6=_0x270045['createCommentThreadController'](_0x2e7040['commentThread'],_0x3f83f0),_0xa1fa88=new pe(_0x18d9da,_0x2e7040,_0x3f83f0,_0x3508d6),_0x543ea2=_0x2e7040['getAllAdjacentSuggestions']()['filter'](_0x2ac808=>_0x2ac808['isInContent']);_0x3f83f0['descriptionParts']=_0x18d9da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x543ea2),this['_suggestionToController']['set'](_0x2e7040,_0xa1fa88),this['_viewToController']['set'](_0x3f83f0,_0xa1fa88);const _0x515287=()=>{const _0x21dfbc=[],_0x341b8f=_0x2e7040['getAllAdjacentSuggestions']()['filter'](_0x1f6311=>_0x1f6311['isInContent']);for(const _0x5f2954 of _0x341b8f)_0x21dfbc['push'](..._0x5f2954['getMarkers']());return _0x5d8730(_0x18d9da['editing'],_0x21dfbc);};_0x5f35cc=_0x250b15['createAnnotation']({'view':_0x2ad45c,'target':_0x515287,'type':()=>'suggestion-'+_0xa1fa88['view']['type'],'isVisible':!!_0x515287()}),_0x270045['_bindAnnotationToEditors'](_0x3f83f0,_0x5f35cc),_0x250b15['add'](_0x5f35cc),_0x193ba1['registerAnnotation'](_0x5f35cc);}['_destroyController'](_0x368ba5){const _0x147f6f=this['editor']['plugins']['get']('CommentsRepository'),_0x2d5625=this['editor']['plugins']['get']('Annotations'),_0x47253b=this['_suggestionToController']['get'](_0x368ba5),_0x414a49=_0x47253b['view'],_0x4edaf3=_0x2d5625['getByInnerView'](_0x414a49);_0x147f6f['_unbindEditors'](_0x414a49),_0x4edaf3&&_0x2d5625['remove'](_0x4edaf3),this['_suggestionToController']['delete'](_0x368ba5),this['_viewToController']['delete'](_0x414a49),_0x47253b['destroy']();}['_updateController'](_0x5cee8d){if(!_0x5cee8d['isInContent']||!this['_suggestionToController']['has'](_0x5cee8d))return;const _0xf8bc8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f0af7=this['_suggestionToController']['get'](_0x5cee8d),_0x1f3c03=_0x5cee8d['getAllAdjacentSuggestions']();_0x2f0af7['view']['descriptionParts']=_0xf8bc8e['descriptionFactory']['getDescriptions'](_0x1f3c03);}['destroy'](){for(const _0xe2afca of this['_suggestionToController']['keys']())this['_destroyController'](_0xe2afca);for(const _0x38dd53 of this['_annotationViews']['values']())_0x38dd53['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2eaba4){return'model'in _0x2eaba4;}class Fe extends _0x27a629{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4376e0){this['editor']['plugins']['get'](d)['adapter']=_0x4376e0;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x4fa1aa){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x4fa1aa);}['getSuggestions']({skipNotAttached:_0x36415f=!0x1,toJSON:_0x384182=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x36415f,'toJSON':_0x384182});}['getSuggestion'](_0x58af62){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x58af62);}}const p=['Pagination'];class re extends _0x27a629{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x209e66=this['editor'];if(_0x209e66['config']['define']('trackChangesData.editorCreator',_0x2e3a60=>{const _0xe5231=_0x209e66['model']['document']['getRootNames']()['reduce']((_0x1455cf,_0x3b271d)=>(_0x1455cf[_0x3b271d]='',_0x1455cf),{});return _0x209e66['constructor']['create'](_0xe5231,_0x2e3a60);}),'function'!=typeof _0x209e66['config']['get']('trackChangesData')['editorCreator'])throw new _0x4e6713('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x57e477){return P(this['editor'],!0x0,_0x57e477);}['getDataWithDiscardedSuggestions'](_0x28ffaa){return P(this['editor'],!0x1,_0x28ffaa);}}class Ge extends _0x27a629{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4fe5d4){function _0x36e3d3(_0x19b76f){return _0x19b76f['map'](_0x479b59=>String['fromCharCode'](_0x479b59))['join']('');}super(_0x4fe5d4),this['result']='end',_0x4fe5d4[_0x36e3d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x36e3d3([0x76,0x69,0x65,0x77])][_0x36e3d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x36e3d3([0x61,0x75,0x74,0x6f]),_0x4fe5d4[_0x36e3d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x36e3d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x36e3d3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x36e3d3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x36e3d3([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(_0xcc2c1c){return void 0x0!==_0xcc2c1c['getRootsAttributes'];}async function P(_0x11b349,_0x4d09e2,_0x3f50d0){const _0x198cb9=_0x5d7cc3(_0x11b349,p);_0x198cb9['plugins']['push'](d,Ge),_0x198cb9['rootsAttributes']=He(_0x11b349)?_0x11b349['getRootsAttributes']():void 0x0;const _0x7aea99=document['createDocumentFragment'](),_0x141bab=_0x11b349['config']['get']('trackChangesData')['editorCreator'],_0x49470b=await _0x141bab(_0x198cb9,()=>function(_0x3208b1){const _0x35125e=document['createElement']('div');return _0x3208b1['appendChild'](_0x35125e),_0x35125e;}(_0x7aea99));!function(_0x35192c,_0x7d4e18){const _0x147bdf=_0x35192c['model']['document']['getRootNames']()['reduce']((_0x26539e,_0x5ab5f9)=>(_0x26539e[_0x5ab5f9]=_0x35192c['data']['get']({'rootName':_0x5ab5f9}),_0x26539e),{}),_0x5b8286=_0x35192c['plugins']['get']('Users')['users']['map'](_0x474c65=>({'id':_0x474c65['id'],'name':_0x474c65['name']})),_0xa201c2=_0x35192c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x39187c=_0x35192c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x96057a=_0x7d4e18['plugins']['get']('Users'),_0xd10910=_0x7d4e18['plugins']['get']('TrackChangesEditing'),_0x2c9fb9=_0x7d4e18['plugins']['get']('CommentsRepository');for(const _0x14b174 of _0x2c9fb9['getCommentThreads']())_0x14b174['remove']();for(const _0x202223 of _0x5b8286)_0x96057a['getUser'](_0x202223['id'])||_0x96057a['addUser'](_0x202223);_0x96057a['me']||_0x96057a['useAnonymousUser']();for(const _0x288666 of _0x39187c)_0x2c9fb9['addCommentThread'](_0x288666);for(const _0x35021f of _0xa201c2)_0xd10910['addSuggestionData'](_0x35021f);_0x7d4e18['data']['set'](_0x147bdf);}(_0x11b349,_0x49470b),_0x49470b['execute'](_0x4d09e2?'acceptAllSuggestions':'discardAllSuggestions');const _0x3d147d=He(_0x49470b)?_0x49470b['getFullData'](_0x3f50d0):_0x49470b['data']['get'](_0x3f50d0);return await _0x49470b['destroy'](),_0x3d147d;}class Me extends _0x53e7ac{['options'];constructor(_0x22233f,_0x3a3a02){super(_0x22233f),this['options']=_0x3a3a02,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'](_0x3a8236,_0x3d64cf){if(!this['element'])return;const _0x535085=[];for(const [_0x49f663,_0x13c7cc]of _0x3a8236){const _0x5df8a4=document['createElement']('div');_0x5df8a4['setAttribute']('data-ck-root-name',_0x49f663),_0x5df8a4['className']=_0x13c7cc['classes']+'\x20ck-track-changes-preview__root-container',_0x5df8a4['innerHTML']=_0x13c7cc['content'],_0x535085['push'](_0x5df8a4);}_0x3d64cf(this['element'],_0x535085),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0xbd1a26{constructor(_0x58a0ce){super(_0x58a0ce),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5323a0=this['editor'],_0x125752=_0x5323a0['locale'],_0xacc30d=_0x5323a0['plugins']['get']('Dialog');let _0x3f65e8;const _0x26d61d=function(_0x24af84){const _0x44f806={};if('editables'in _0x24af84['ui']['view']){for(const [_0x3d1f76,_0xd87f8b]of Object['entries'](_0x24af84['ui']['view']['editables']))_0x44f806[_0x3d1f76]=_0xd87f8b['element'];}else _0x44f806[_0x24af84['model']['document']['getRootNames']()[0x0]]=_0x24af84['ui']['view']['editable']['element'];return _0x44f806;}(_0x5323a0),_0x50ae39=function(_0x4593e2){let _0x2c9528=0x0;for(const _0x5d96cf of Object['values'](_0x4593e2))_0x2c9528=Math['max'](_0x2c9528,_0x5d96cf['getBoundingClientRect']()['width']);let _0x400533=0x0;for(const _0x5747f8 of Object['values'](_0x4593e2))_0x400533+=_0x5747f8['getBoundingClientRect']()['height'];const _0x1ea121=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x13e960=Math['min'](_0x400533,_0x1ea121);return{'width':_0x2c9528,'height':_0x13e960};}(_0x26d61d);_0xacc30d['show']({'id':'finalContentPreview','title':o(_0x125752,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x125752,{'dialogRects':_0x50ae39}),'onHide':()=>{_0x3f65e8['detachFromDom']();},'onShow':()=>{_0x5323a0['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4f33a5=>{const _0x4e1e86=this['_standarizeRootsData'](_0x4f33a5,_0x5323a0,_0x26d61d);_0xacc30d['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4e1e86,_0x5323a0['config']['get']('trackChanges.preview.renderFunction'));}),_0x3f65e8=new _0x531296(_0x125752,[_0xacc30d['view']]),_0x3f65e8['attachToDom'](),_0x3f65e8['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5323a0['once']('destroy',()=>{_0x3f65e8['detachFromDom']();});const _0x542da0=_0xacc30d['view']['headerView']['class'];_0xacc30d['view']['headerView']['class']=_0x542da0?_0x542da0+'\x20ck-reset_all':'ck-reset_all',_0xacc30d['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xacc30d['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xc8928c=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3d11b9=_0xc8928c['previewMode'],_0x11f063={};if('$labels'===_0x3d11b9){for(const _0x81b2d2 of _0xc8928c['getMergeFieldsIds']())_0x11f063[_0x81b2d2]=_0xc8928c['getLabel'](_0x81b2d2)||_0x81b2d2;}else{const _0x4eb6fc='$defaultValues'===_0x3d11b9?_0xc8928c['getDefaultValues']():_0xc8928c['getDataSetValues'](_0x3d11b9,!0x0);for(const _0x3bf126 of Object['entries'](_0x4eb6fc)){const [_0x81ffb9,_0x3574d3]=_0x3bf126;_0x11f063[_0x81ffb9]=null!==_0x3574d3?_0x3574d3:_0xc8928c['getLabel'](_0x81ffb9)||_0x81ffb9;}}return{'mergeFieldsData':_0x11f063};}['_standarizeRootsData'](_0x102516,_0x1d619a,_0x157251){let _0x134299;if('string'==typeof _0x102516){const _0x3a4374=_0x1d619a['model']['document']['getRootNames']()[0x0];_0x134299={[_0x3a4374]:_0x102516};}else _0x134299=_0x102516;const _0x1b7429=this['_fixMediaEmbeds'](_0x134299,_0x1d619a),_0x1f4b89=function(_0x7d5758,_0x4c1d65){for(const [_0x196ebf,_0x2c0ea5]of _0x7d5758)_0x2c0ea5['classes']=_0x4c1d65[_0x196ebf]['classList']['value']['replace']('ck-focused','');return _0x7d5758;}(this['_sortRoots'](_0x1d619a)['reduce']((_0x398ba0,_0xa31dae)=>(_0x398ba0['push']([_0xa31dae,{'content':_0x1b7429[_0xa31dae],'classes':''}]),_0x398ba0),[]),_0x157251);return _0x1f4b89;}['_fixMediaEmbeds'](_0x313d6e,_0xad6ac1){if(!_0xad6ac1['plugins']['has']('MediaEmbedEditing'))return _0x313d6e;const _0x58129b=_0xad6ac1['plugins']['get']('MediaEmbedEditing');for(const [_0x4b269f,_0x3e46ae]of Object['entries'](_0x313d6e)){const _0xf540f8=document['createElement']('div');_0xf540f8['innerHTML']=_0x3e46ae,(_0xf540f8['querySelectorAll']('figure.media')['forEach'](_0x13b82b=>{const _0x212ac6=_0x13b82b['querySelector']('oembed');if(_0x212ac6){const _0x343810=_0x212ac6['getAttribute']('url');if(_0x343810){const _0x5157a9=_0x58129b['registry']['getMediaViewElement'](new _0x325463(_0xad6ac1['editing']['view']['document']),_0x343810,{'elementName':'','renderForEditingView':!0x0}),_0x43e5a9=document['createElement']('div');_0x43e5a9['classList']['add']('ck-media__wrapper'),_0x5157a9['render'](_0x43e5a9,_0xad6ac1['editing']['view']['domConverter']),_0x212ac6['replaceWith'](_0x43e5a9);}}}),_0x313d6e[_0x4b269f]=_0xf540f8['innerHTML']);}return _0x313d6e;}['_sortRoots'](_0x34187b){if(!function(_0x2ec829){return void 0x0!==_0x2ec829['getRootsAttributes'];}(_0x34187b))return _0x34187b['model']['document']['getRootNames']();const _0x4e1fcc=[],_0x1e5f4b=new Map();for(const _0x4fb80e of _0x34187b['model']['document']['getRootNames']()){const _0x3d7c82=_0x34187b['editing']['view']['getDomRoot'](_0x4fb80e)['getClientRects']()['item'](0x0);_0x4e1fcc['push'](_0x4fb80e),_0x1e5f4b['set'](_0x4fb80e,_0x3d7c82);}return _0x4e1fcc['sort']((_0x2df434,_0x4f0820)=>{const _0x46e0b3=_0x1e5f4b['get'](_0x2df434),_0x36a6bc=_0x1e5f4b['get'](_0x4f0820);return _0x46e0b3['y']-_0x36a6bc['y']||_0x46e0b3['x']-_0x36a6bc['x'];}),_0x4e1fcc;}}class $e extends _0x27a629{static get['requires'](){return[re,_0x550df0];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2df2d5){super(_0x2df2d5),_0x2df2d5['commands']['add']('previewFinalContent',new te(this['editor'])),_0x2df2d5['config']['define']('trackChanges.preview.renderFunction',(_0x3f945e,_0x7c3f42)=>{for(const _0x110225 of _0x7c3f42)_0x3f945e['appendChild'](_0x110225);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M 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,u as TrackChangesUI};
23
+ import{Command as _0x1a5dbe,Plugin as _0x588311,PendingActions as _0x1f154d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x280c51,ObservableMixin as _0x576216,uid as _0x58b607,priorities as _0x30d56f,insertToPriorityArray as _0x45d96b,toArray as _0x4de00e,logWarning as _0x282b91,getEnvKeystrokeText as _0x42806c,FocusTracker as _0x5427d9,KeystrokeHandler as _0x4443be,Collection as _0x2ebe14}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x31655c,IconCancel as _0x369868,IconTrackChanges as _0x17e231}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x63f84f,View as _0x1bb0a3,ViewCollection as _0x4b0a61,FocusCycler as _0x4de8c1,UIModel as _0x40fb7f,createDropdown as _0x7c146b,SplitButtonView as _0x5b60d2,addListToDropdown as _0x42bada,MenuBarMenuView as _0x3c6b9a,MenuBarMenuListView as _0x24888c,ListSeparatorView as _0x161fec,MenuBarMenuListItemView as _0x3232a1,MenuBarMenuListItemButtonView as _0x1afe4c,BodyCollection as _0xa7ca0b,Dialog as _0x21d629}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4fb64d,hashObject as _0x3cef01,surroundingMarkersDetector as _0x1a8787,FOCUS_ANNOTATION_KEYSTROKE as _0x1e2046,AriaDescriptionView as _0x5746f0,setupThreadKeyboardNavigation as _0x201a92,trimHtml as _0x2b7c8f,UserView as _0x3e7ed7,LateFocusButtonView as _0x15c07a,getDateTimeFormatter as _0x34479a,getAllMarkersDomElementsSorted as _0x128c48,sanitizeEditorConfig as _0x5adbe2}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x50dca5,ModelLiveRange as _0x153d61,ModelLivePosition as _0x5e984c,ViewDowncastWriter as _0x2eceb5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x6a6e00,toWidget as _0x514173}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x30baa6,set as _0x4525bc,isEqual as _0x21362d,unset as _0x3d5f1a,omit as Ut}from'es-toolkit/compat';import{Delete as _0x103805,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2597a3}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x13a6a5}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x1a5dbe{['_enabledCommands'];constructor(_0x37da75,_0xaf8152){super(_0x37da75),this['_enabledCommands']=_0xaf8152,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 _0x1b0697 of this['editor']['commands']['commands']())_0x1b0697['affectsData']&&!this['_enabledCommands']['has'](_0x1b0697)&&_0x1b0697['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2dab80 of this['editor']['commands']['commands']())_0x2dab80['affectsData']&&!this['_enabledCommands']['has'](_0x2dab80)&&_0x2dab80['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x1a5dbe{['_suggestions'];constructor(_0x21b0bd,_0x1c3b83){super(_0x21b0bd),this['_suggestions']=_0x1c3b83,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x951c64){const _0x5ace90=this['_suggestions']['get'](_0x951c64);if(!_0x5ace90)throw new _0x280c51('track-changes-accept-suggestion-not-found',this);const _0x5af4bd=_0x5ace90['getRanges']();this['editor']['model']['canEditAt'](_0x5af4bd)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5ace90);}}class $ extends _0x1a5dbe{['_suggestions'];constructor(_0x30c306,_0x2f3523){super(_0x30c306),this['_suggestions']=_0x2f3523,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4cc817){const _0x21f19c=this['_suggestions']['get'](_0x4cc817);if(!_0x21f19c)throw new _0x280c51('track-changes-discard-suggestion-not-found',this);const _0x592586=_0x21f19c['getRanges']();this['editor']['model']['canEditAt'](_0x592586)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x21f19c);}}function ls(_0x5b2df2,_0x40b2ce){let _0x24d285='';return _0x24d285+=_0x5b2df2['split']('*')['map']((_0x12e7f3,_0x2f557d)=>_0x2f557d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x12e7f3)+'</span>':Zt(_0x12e7f3))['join'](''),_0x40b2ce&&(_0x24d285+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x40b2ce['value']+'\x22\x20title=\x22'+_0x40b2ce['title']+'\x22></span>'),_0x24d285;}function Zt(_0x2e0e64){const _0x460d05=document['createElement']('span');return _0x460d05['innerText']=_0x2e0e64,_0x460d05['innerHTML'];}function ts(_0x352b46){return _0x352b46['sort']((_0x2d394b,_0x1e66e3)=>'attribute'===_0x2d394b['type']&&'attribute'!==_0x1e66e3['type']?-0x1:'attribute'!==_0x2d394b['type']&&'attribute'===_0x1e66e3['type']?0x1:'deletion'==_0x2d394b['type']&&'deletion'!=_0x1e66e3['type']?-0x1:'deletion'!=_0x2d394b['type']&&'deletion'==_0x1e66e3['type']?0x1:0x0);}function to(_0x4d4d54,_0x429b70){let _0x2b44e9,_0x1f7ade=0x0;const _0x52e5ad=[],_0x4b681f=_0x429b70['schema'];for(;_0x1f7ade<_0x4d4d54['length'];){const _0x5c828e=_0x4d4d54[_0x1f7ade],_0x13e38d=_0x4d4d54[_0x1f7ade+0x1];_0x2b44e9||(_0x2b44e9=_0x429b70['createPositionBefore'](_0x5c828e)),tn(_0x429b70,_0x5c828e,_0x13e38d)||(_0x52e5ad['push'](_0x429b70['createRange'](_0x2b44e9,_0x4b681f['isObject'](_0x5c828e)?_0x429b70['createPositionAfter'](_0x5c828e):_0x429b70['createPositionAt'](_0x5c828e,'end'))),_0x2b44e9=null),_0x1f7ade++;}return _0x52e5ad;}function tn(_0x557abc,_0x5d389d,_0x549a07){if(!_0x549a07)return!0x1;const _0x24e2a0=_0x557abc['createPositionAfter'](_0x5d389d),_0x4f11be=_0x557abc['createPositionBefore'](_0x549a07);return _0x24e2a0['isTouching'](_0x4f11be);}function rs(_0x4a3f5e,_0x1f8b78,_0x94eb31){for(;_0x94eb31['length'];){const _0x12a54d=_0x94eb31['splice'](0x0,0x64);_0x4a3f5e['change'](()=>{for(const _0x190eff of _0x12a54d)_0x190eff['isInContent']&&_0x1f8b78['execute'](_0x190eff['id']);});}}class M extends _0x1a5dbe{['_command'];['_suggestions'];constructor(_0x220c79,_0x3b2fb6,_0x1dec9a){super(_0x220c79),this['_command']=_0x3b2fb6,this['_suggestions']=_0x1dec9a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4033b9=Array['from'](this['_suggestions']['values']())['some'](_0x3ac0d7=>_0x3ac0d7['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4033b9;}['execute'](){const _0x1bb994=ts(Array['from'](this['_suggestions']['values']()));for(const _0x565516 of _0x1bb994){const _0x4897bc=_0x565516['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4897bc))return;}rs(this['editor']['model'],this['_command'],_0x1bb994);}}class B extends _0x1a5dbe{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x331571,_0x4c9272,_0x413c76){super(_0x331571),this['_command']=_0x4c9272,this['_suggestions']=_0x413c76,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2d5a5a=this['editor']['model']['document']['selection'],_0x456dbc=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x22f6e9,_0x1b7e9c){const _0x1d2a98=Array['from'](_0x22f6e9['getRanges']()),_0x274680=new Set();for(const _0x2130a2 of _0x1b7e9c)if(_0x2130a2['isInContent']){for(const _0x33e61c of _0x1d2a98)for(const _0x4732f6 of _0x2130a2['getRanges']())(_0x33e61c['isIntersecting'](_0x4732f6)||_0x22f6e9['isCollapsed']&&!_0x2130a2['isMultiRange']&&_0x2130a2['next']&&_0x4732f6['end']['isTouching'](_0x33e61c['start']))&&_0x274680['add'](_0x2130a2);}return _0x274680;}(_0x2d5a5a,_0x456dbc),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x54b2c6=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3e2e1c of _0x54b2c6){const _0x8d8050=_0x3e2e1c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x8d8050))return;}rs(this['editor']['model'],this['_command'],_0x54b2c6);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x576216(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2f4b62,_0x54ec93){super(),this['id']=_0x54ec93['id'],this['type']=_0x54ec93['type'],this['subType']=_0x54ec93['subType']||null,this['author']=_0x54ec93['author'],this['creator']=_0x54ec93['creator']||_0x54ec93['author'],this['isExternal']=Boolean(_0x54ec93['attributes']&&_0x54ec93['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x54ec93['originalSuggestionId']||null,this['_model']=_0x2f4b62,this['_onAccept']=_0x54ec93['onAccept'],this['_onDiscard']=_0x54ec93['onDiscard'],this['_onAttributesChange']=_0x54ec93['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x54ec93['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 _0x5429cf=this;for(;_0x5429cf['previous'];)_0x5429cf=_0x5429cf['previous'];return _0x5429cf;}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'](_0x46e4c8){this['_markerNames']['add'](_0x46e4c8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x60d445=>this['_model']['markers']['get'](_0x60d445))['filter'](_0xde92cc=>_0xde92cc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1cf09d=>{for(const _0x3d93a9 of this['getMarkers']())_0x1cf09d['removeMarker'](_0x3d93a9);}),this['_markerNames']['clear']();}['removeMarker'](_0x40db27){this['_model']['change'](_0x461c80=>{_0x461c80['removeMarker'](_0x40db27);}),this['_markerNames']['delete'](_0x40db27);}['addRange'](_0x1e5e25){const _0x3fa564='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x3fa564),this['_model']['change'](_0x140957=>{_0x140957['addMarker'](_0x3fa564,{'range':_0x1e5e25,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x54d300){for(const _0x170303 of this['getRanges']())if(_0x170303['isIntersecting'](_0x54d300))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3fc451=>_0x3fc451['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3693f9,_0x4266f9)=>[..._0x3693f9,..._0x4266f9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x9b3ff0=this['getRanges']();if(0x1!=_0x9b3ff0['length'])return null;const _0x59cc72=_0x9b3ff0[0x0],_0x3bdc3d=_0x59cc72['start']['nodeAfter'],_0x2b710c=_0x59cc72['end']['nodeBefore'];return _0x3bdc3d instanceof _0x50dca5?_0x3bdc3d!=_0x2b710c?null:_0x3bdc3d: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 _0xe1e775=[];let _0x54f4d8=this['head'];for(;_0x54f4d8;)_0xe1e775['push'](_0x54f4d8),_0x54f4d8=_0x54f4d8['next'];return _0xe1e775;}['setAttribute'](_0x41f27b,_0x91a7f6){const _0x204596=_0x30baa6(this['attributes']);_0x4525bc(_0x204596,_0x41f27b,_0x91a7f6),_0x21362d(_0x204596,this['attributes'])||(this['attributes']=_0x204596,this['_onAttributesChange'](_0x204596));}['removeAttribute'](_0x524677){const _0x5ced4d=_0x30baa6(this['attributes']);_0x3d5f1a(_0x5ced4d,_0x524677),_0x21362d(_0x5ced4d,this['attributes'])||(this['attributes']=_0x5ced4d,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 _0x58b607()['substr'](0x1,0x5);}}function o(_0x29c483,_0x3bdcca,_0x3d9415){const _0x20fa3d=_0x29c483['t'],t=_0x29c483['t'];switch(_0x3bdcca){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',_0x3d9415);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3d9415);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3d9415);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3d9415);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3d9415);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',_0x3d9415);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3d9415);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',_0x3d9415);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3d9415);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3d9415);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3d9415);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3d9415);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3d9415);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3d9415);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3d9415);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3d9415);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3d9415);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3d9415);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3d9415);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3d9415);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3d9415);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3d9415);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3d9415);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3d9415);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3d9415);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'},_0x3d9415);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3d9415);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3d9415);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3d9415);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3d9415);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3d9415);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3d9415);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3d9415);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'},_0x3d9415);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3d9415);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3d9415);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3d9415);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3d9415);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'},_0x3d9415);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3d9415);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'},_0x3d9415);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'},_0x3d9415);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3d9415);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'},_0x3d9415);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3d9415);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'},_0x3d9415);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3d9415);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3d9415);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'},_0x3d9415);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3d9415);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 _0x20fa3d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3d9415);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x20fa3d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3d9415);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3d9415);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'},_0x3d9415);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'},_0x3d9415);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'},_0x3d9415);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3bdcca;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x477993,_0x5161fb){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x477993,this['_locale']=_0x5161fb;}['getDescriptions'](_0x315a0f){const _0x141751=[],_0xe4565b=new Set(),_0x1e850c=new Set();for(let _0x353104=0x0;_0x353104<_0x315a0f['length'];_0x353104++){const _0x5a8703=_0x315a0f[_0x353104];if(!_0x5a8703['isInContent'])continue;const _0x2f11f7=this['_handleCustomCallbackDescription'](_0x5a8703);if(_0x2f11f7){if(null!=_0x5a8703['subType']){if(_0xe4565b['has'](_0x5a8703['subType']))continue;_0xe4565b['add'](_0x5a8703['subType']);}_0x141751['push'](_0x2f11f7);}else{if('attribute'==_0x5a8703['type']){const _0x54bc9b=_0x5a8703['data']['key'];if(_0x1e850c['has'](_0x54bc9b))continue;_0x1e850c['add'](_0x5a8703['data']['key']),_0x54bc9b==m?this['_handleRenameSuggestionDescription'](_0x141751,_0x5a8703):this['_handleAttributeSuggestionDescription'](_0x141751,_0x5a8703);continue;}'insertion'!=_0x5a8703['type']&&'deletion'!=_0x5a8703['type']||this['_handleInsertRemoveSuggestionDescription'](_0x141751,_0x5a8703,_0x315a0f[_0x353104+0x1]);}}return this['_resolveDescriptionItems'](_0x141751);}['registerDescriptionCallback'](_0x110359){this['_customCallbacks']['push'](_0x110359);}['registerElementLabel'](_0x1a5979,_0x535a70,_0x526377=_0x30d56f['normal']){'function'==typeof _0x1a5979?_0x45d96b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1a5979,'label':_0x535a70,'priority':_0x526377}):this['_itemLabels']['set'](_0x1a5979,_0x535a70);}['registerAttributeLabel'](_0x2be381,_0x4962ad){this['_attributeLabels']['set'](_0x2be381,_0x4962ad);}['getItemLabel'](_0x421d8f,_0x1add18=0x1){let _0x35f878;for(const _0x170870 of this['_itemLabelsCallbacks'])if(_0x170870['matchingCallback'](_0x421d8f)){_0x35f878=_0x170870['label'];break;}return _0x35f878||(_0x35f878=this['_itemLabels']['get'](_0x421d8f['name'])),_0x35f878?_0x35f878(_0x1add18):0x1!==_0x1add18?_0x1add18+'\x20'+_0x421d8f['name']+'s':''+_0x421d8f['name'];}['_addDescriptionItems'](_0x495be8,_0x4c425d){const _0x314fa2=_0x4c425d['getFirstRange']()['getWalker'](),_0x4d8010='insertion'==_0x4c425d['type']?'add':'remove';for(const _0x58a0c2 of _0x314fa2){const _0x38a402=_0x58a0c2['item'],_0xd5097d=_0x495be8[_0x495be8['length']-0x1];if(_0x38a402['is']('$textProxy'))_0xd5097d&&_0xd5097d['type']['indexOf']('Container')>-0x1&&_0x495be8['pop'](),_0xd5097d&&'text'==_0xd5097d['type']?_0xd5097d[_0x4d8010]+=_0x38a402['data']:_0x495be8['push']({'type':'text','add':'add'==_0x4d8010?_0x38a402['data']:'','remove':'remove'==_0x4d8010?_0x38a402['data']:''});else{if(this['_schema']['isObject'](_0x38a402)){const _0x55fa77=_0x38a402;if(_0xd5097d&&_0xd5097d['type']['indexOf']('Container')>-0x1&&_0x495be8['pop'](),'elementEnd'==_0x58a0c2['type'])continue;_0xd5097d&&_0xd5097d['type']==_0x4d8010+'Object'&&_0xd5097d['element']['name']==_0x55fa77['name']?_0xd5097d['quantity']++:_0x495be8['push']({'type':_0x4d8010+'Object','element':_0x55fa77,'quantity':0x1}),_0x314fa2['skip'](_0x3d2aa5=>!('elementEnd'==_0x3d2aa5['type']&&_0x3d2aa5['item']==_0x38a402));}else{if(this['_schema']['checkChild'](_0x38a402,'$text')||_0x38a402['is']('element','softBreak')){const _0x4cf229=_0x38a402;if('add'==_0x4d8010&&'elementStart'==_0x58a0c2['type']||'remove'==_0x4d8010&&'elementEnd'==_0x58a0c2['type'])continue;if(_0xd5097d&&-0x1==_0xd5097d['type']['indexOf']('Container')){'text'==_0xd5097d['type']&&(_0xd5097d[_0x4d8010]+='\x0a');continue;}let _0x530070;if(_0x530070='add'==_0x4d8010?_0x4cf229['nextSibling']&&!this['_schema']['isObject'](_0x4cf229['nextSibling'])?_0x4cf229['nextSibling']:null:_0x4cf229['previousSibling']&&!this['_schema']['isObject'](_0x4cf229['previousSibling'])?_0x4cf229['previousSibling']:null,_0x4cf229['isEmpty']||_0x530070&&_0x530070['isEmpty']){const _0x5eb071=_0x530070&&_0x530070['isEmpty']?_0x530070:_0x4cf229;_0xd5097d&&_0xd5097d['type']==_0x4d8010+'EmptyContainer'&&_0xd5097d['element']['name']==_0x5eb071['name']?_0xd5097d['quantity']++:_0x495be8['push']({'type':_0x4d8010+'EmptyContainer','element':_0x5eb071,'quantity':0x1});}else _0x495be8['push']({'type':_0x4d8010+'Container','element':_0x4cf229});}}}}}['_resolveDescriptionItems'](_0x566806){const _0x2960bc=this['_locale'],_0x2ac86e=[],_0x2f1369=[],_0x23a870=[];for(const _0x583d8 of _0x566806)switch(_0x583d8['type']){case'text':if(_0x583d8['add']=_0x583d8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x583d8['remove']=_0x583d8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x583d8['add']&&''!=_0x583d8['remove']){_0x2ac86e['push']({'type':'replace','content':o(_0x2960bc,'REPLACE_TEXT',['\x22'+_0x583d8['remove']+'\x22','\x22'+_0x583d8['add']+'\x22'])});continue;}if(null!=_0x583d8['add']['match'](/^ +$/)){_0x2ac86e['push']({'type':'insertion','content':o(_0x2960bc,'*Insert:*\x20%0',o(_0x2960bc,'ELEMENT_SPACE',_0x583d8['add']['length']))});continue;}if(null!=_0x583d8['remove']['match'](/^ +$/)){_0x2ac86e['push']({'type':'deletion','content':o(_0x2960bc,'*Remove:*\x20%0',o(_0x2960bc,'ELEMENT_SPACE',_0x583d8['remove']['length']))});continue;}if(''!=_0x583d8['add']){_0x2ac86e['push']({'type':'insertion','content':o(_0x2960bc,'*Insert:*\x20%0','\x22'+_0x583d8['add']+'\x22')});continue;}_0x2ac86e['push']({'type':'deletion','content':o(_0x2960bc,'*Remove:*\x20%0','\x22'+_0x583d8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2ac86e['push']({'type':'insertion','content':o(_0x2960bc,'*Insert:*\x20%0',this['getItemLabel'](_0x583d8['element'],_0x583d8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2ac86e['push']({'type':'deletion','content':o(_0x2960bc,'*Remove:*\x20%0',this['getItemLabel'](_0x583d8['element'],_0x583d8['quantity']))});continue;case'addContainer':_0x2ac86e['push']({'type':'insertion','content':o(_0x2960bc,'*Split:*\x20%0',this['getItemLabel'](_0x583d8['element'],_0x583d8['quantity']))});continue;case'removeContainer':_0x2ac86e['push']({'type':'deletion','content':o(_0x2960bc,'*Merge:*\x20%0',this['getItemLabel'](_0x583d8['element'],_0x583d8['quantity']))});continue;case'addFormat':_0x2f1369['push'](_0x583d8['key']);continue;case'removeFormat':_0x23a870['push'](_0x583d8['key']);continue;default:_0x2ac86e['push'](_0x583d8);}if(_0x2f1369['length']){const _0x200ab5=_0x2f1369['map'](_0x188881=>this['_attributeLabels']['has'](_0x188881)?this['_attributeLabels']['get'](_0x188881):_0x188881)['join'](',\x20');_0x2ac86e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x200ab5)});}if(_0x23a870['length']){const _0x57708a=_0x23a870['map'](_0x13be93=>this['_attributeLabels']['has'](_0x13be93)?this['_attributeLabels']['get'](_0x13be93):_0x13be93)['join'](',\x20');_0x2ac86e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x57708a)});}return _0x2ac86e;}['_handleCustomCallbackDescription'](_0x1bb818){for(const _0x58ec7c of this['_customCallbacks']){const _0x363a42=_0x58ec7c(_0x1bb818);if(_0x363a42&&'type'in _0x363a42)return _0x363a42;}}['_handleAttributeSuggestionDescription'](_0x1d7617,_0x2e61ee){const _0x4ccf17=_0x2e61ee['data'],_0x3be994=void 0x0===_0x4ccf17['newValue']?'removeFormat':'addFormat';_0x1d7617['push']({'type':_0x3be994,'key':_0x4ccf17['key']});}['_handleRenameSuggestionDescription'](_0x456231,_0xf4b10c){_0x456231['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xf4b10c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1a9c7d,_0x5d525d,_0x4b023e){if(this['_addDescriptionItems'](_0x1a9c7d,_0x5d525d),_0x4b023e&&_0x4b023e['getFirstRange']()&&!_0x5d525d['getFirstRange']()['end']['isEqual'](_0x4b023e['getFirstRange']()['start'])){const _0x3c06dd=_0x1a9c7d[_0x1a9c7d['length']-0x1],_0x36dc0b='insertion'==_0x5d525d['type']?'add':'remove';_0x3c06dd&&'text'==_0x3c06dd['type']&&(_0x3c06dd[_0x36dc0b]+='\x0a');}}}class O extends _0x588311{['afterInit'](){const _0x66eacb=this['editor'],_0x2ae29e=_0x66eacb['plugins']['get']('TrackChangesEditing');_0x66eacb['commands']['get']('showAIAssistant')&&_0x2ae29e['enableCommand']('showAIAssistant');}}class E extends _0x588311{['afterInit'](){const _0x3a74bf=this['editor'],_0x548848=_0x3a74bf['locale'];if(!_0x3a74bf['plugins']['has']('AlignmentEditing'))return;const _0x218719=_0x3a74bf['plugins']['get']('TrackChangesEditing');_0x218719['enableDefaultAttributesIntegration']('alignment'),_0x218719['registerBlockAttribute']('alignment'),_0x218719['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x548848,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52e41e=this['editor'],_0x7ef928=_0x52e41e['locale'];_0x52e41e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c474d=>{if('formatBlock'!=_0x5c474d['type'])return;const {data:_0x2f32fc}=_0x5c474d;if(_0x2f32fc&&'alignment'==_0x2f32fc['commandName']){const _0x1d786a=_0x2f32fc['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x7ef928,'*Format:*\x20%0',function(_0x4f7b87){switch(_0x4f7b87){case'left':return o(_0x7ef928,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x7ef928,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x7ef928,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x7ef928,'FORMAT_JUSTIFY_TEXT');}}(_0x1d786a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x588311{['afterInit'](){const _0x8e0d2f=this['editor'],_0x2c5cff=_0x8e0d2f['plugins']['get']('TrackChangesEditing'),_0x199ade=_0x8e0d2f['locale'];for(const _0x2b6ee1 of ti){if(!_0x8e0d2f['plugins']['has'](_0x2b6ee1))continue;const _0x54c401=_0x2b6ee1['slice'](0x0,-0x7)['toLowerCase'](),_0x468beb='FORMAT_'+_0x54c401['toUpperCase']();_0x2c5cff['enableDefaultAttributesIntegration'](_0x54c401),_0x2c5cff['registerInlineAttribute'](_0x54c401),_0x2c5cff['descriptionFactory']['registerAttributeLabel'](_0x54c401,o(_0x199ade,_0x468beb));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x140f12=this['editor'],_0x3b23da=_0x140f12['locale'],_0x27df19=_0x140f12['plugins']['get']('TrackChangesEditing');function _0x43055f(_0x5cdc2e,_0x45f6ed){_0x27df19['descriptionFactory']['registerDescriptionCallback'](_0x5c11af=>{if('formatInline'!=_0x5c11af['type'])return;const {data:_0x2709ff}=_0x5c11af;return _0x2709ff&&_0x2709ff['commandName']===_0x5cdc2e?_0x2709ff['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b23da,'*Format:*\x20%0',_0x45f6ed)}:{'type':'format','content':o(_0x3b23da,'*Remove\x20format:*\x20%0',_0x45f6ed)}:void 0x0;});}_0x43055f('bold',o(_0x3b23da,'FORMAT_BOLD')),_0x43055f('italic',o(_0x3b23da,'FORMAT_ITALIC')),_0x43055f('underline',o(_0x3b23da,'FORMAT_UNDERLINE')),_0x43055f('code',o(_0x3b23da,'FORMAT_CODE')),_0x43055f('strikethrough',o(_0x3b23da,'FORMAT_STRIKETHROUGH')),_0x43055f('subscript',o(_0x3b23da,'FORMAT_SUBSCRIPT')),_0x43055f('superscript',o(_0x3b23da,'FORMAT_SUPERSCRIPT'));}}class U extends _0x588311{['afterInit'](){const _0x2c0e18=this['editor'],_0x5d1506=_0x2c0e18['locale'];if(!_0x2c0e18['plugins']['has']('BlockQuoteEditing'))return;const _0x4b071b=_0x2c0e18['plugins']['get']('TrackChangesEditing'),_0x2e5adb=this['editor']['commands']['get']('blockQuote');_0x4b071b['enableCommand']('blockQuote',(_0x43dcfe,_0x3bf545={})=>{const _0x1529ae=this['editor']['model']['document']['selection'],_0xf78dea=_0x3bf545&&void 0x0!==_0x3bf545['forceValue']?_0x3bf545['forceValue']:!_0x2e5adb['value'];let _0x4d96ff=[];if(_0xf78dea){const _0x3815d5=Array['from'](_0x1529ae['getSelectedBlocks']())['filter'](_0x1326f3=>oo(_0x1326f3)||function(_0x5702c3,_0x88df85){const _0x2f7bd5=_0x88df85['checkChild'](_0x5702c3['parent'],'blockQuote'),_0x39d320=_0x88df85['checkChild'](['$root','blockQuote'],_0x5702c3);return _0x2f7bd5&&_0x39d320;}(_0x1326f3,this['editor']['model']['schema']));_0x4d96ff=to(_0x3815d5,_0x2c0e18['model']);}else{const _0x2c03cd=Array['from'](_0x1529ae['getSelectedBlocks']())['filter'](_0x40aed6=>oo(_0x40aed6));_0x4d96ff=to(_0x2c03cd,_0x2c0e18['model']);}_0x2c0e18['model']['change'](()=>{for(const _0x5f1a11 of _0x4d96ff)_0x4b071b['markBlockFormat'](_0x5f1a11,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xf78dea}]});});}),_0x4b071b['descriptionFactory']['registerDescriptionCallback'](_0x189914=>{const {data:_0x19b27d}=_0x189914;if(_0x19b27d&&'blockQuote'==_0x19b27d['commandName']){const _0x4e98f7=o(_0x5d1506,'ELEMENT_BLOCK_QUOTE');return _0x19b27d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5d1506,'*Set\x20format:*\x20%0',_0x4e98f7)}:{'type':'format','content':o(_0x5d1506,'*Remove\x20format:*\x20%0',_0x4e98f7)};}});}}function oo(_0x1dc770){return'blockQuote'==_0x1dc770['parent']['name'];}class V extends _0x588311{['afterInit'](){const _0x5d5518=this['editor'],_0x505c01=_0x5d5518['locale'],_0x225e3c=_0x5d5518['plugins']['get']('TrackChangesEditing');_0x5d5518['plugins']['has']('BookmarkEditing')&&(_0x225e3c['enableCommand']('insertBookmark'),_0x225e3c['enableDefaultAttributesIntegration']('updateBookmark'),_0x225e3c['registerBlockAttribute']('bookmarkId'),_0x225e3c['descriptionFactory']['registerDescriptionCallback'](_0xf7c1d5=>{if('insertion'!=_0xf7c1d5['type']&&'deletion'!=_0xf7c1d5['type']&&'attribute'!=_0xf7c1d5['type'])return;const _0x13a3cf=_0xf7c1d5['getContainedElement']();if(null==_0x13a3cf)return;if(!_0x13a3cf['is']('element','bookmark'))return;const _0x4fd2d1=_0x13a3cf['getAttribute']('bookmarkId');if('insertion'==_0xf7c1d5['type'])return{'type':'insertion','content':o(_0x505c01,'*Insert:*\x20%0','\x22'+_0x4fd2d1+'\x22\x20'+o(_0x505c01,'ELEMENT_BOOKMARK'))};if('deletion'==_0xf7c1d5['type'])return{'type':'deletion','content':o(_0x505c01,'*Remove:*\x20%0','\x22'+_0x4fd2d1+'\x22\x20'+o(_0x505c01,'ELEMENT_BOOKMARK'))};const {data:_0x428b30}=_0xf7c1d5;if(!_0x428b30||'bookmarkId'!=_0x428b30['key'])return;return{'type':'format','content':o(_0x505c01,'*Set\x20bookmark:*\x20%0','\x22'+_0x428b30['newValue']+'\x22')};}));}}class F extends _0x588311{['afterInit'](){const _0x673920=this['editor'];_0x673920['plugins']['has']('CaseChange')&&(_0x673920['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x673920['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x673920['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x588311{['afterInit'](){const _0x406f91=this['editor'];_0x406f91['commands']['get']('ckbox')&&_0x406f91['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x588311{['afterInit'](){const _0xf0064e=this['editor'];if(!_0xf0064e['plugins']['has']('CodeBlock'))return;const _0x3f97b5=_0xf0064e['plugins']['get']('TrackChangesEditing'),_0x266c19=_0xf0064e['locale'],_0x3e9f17=_0xf0064e['config']['get']('codeBlock')['languages'],_0x24136b=_0xf0064e['commands']['get']('codeBlock');_0x3f97b5['enableCommand']('indentCodeBlock'),_0x3f97b5['enableCommand']('outdentCodeBlock'),_0x3f97b5['enableCommand']('codeBlock',(_0x5bdf18,_0x182c22={})=>{const _0x1d7fb0=_0xf0064e['model'],_0x5a16b4=_0xf0064e['model']['document']['selection'],_0x2188b1=_0x182c22&&void 0x0!==_0x182c22['forceValue']?_0x182c22['forceValue']:!_0x24136b['value'];let _0x29e2be;_0x182c22['language']||(_0x182c22['language']=_0x3e9f17[0x0]['language']),_0x29e2be=_0x2188b1?Array['from'](_0x5a16b4['getSelectedBlocks']())['filter'](_0x21432c=>co(_0x21432c)||function(_0x4b81d8,_0x2d0321){if(_0x4b81d8['is']('rootElement')||_0x2d0321['isLimit'](_0x4b81d8))return!0x1;return _0x2d0321['checkChild'](_0x4b81d8['parent'],'codeBlock');}(_0x21432c,_0x1d7fb0['schema'])):Array['from'](_0x5a16b4['getSelectedBlocks']())['filter'](_0x25c934=>co(_0x25c934));const _0x4e6a6b=to(_0x29e2be,_0x1d7fb0);_0x1d7fb0['change'](()=>{for(const _0x1f65c2 of _0x4e6a6b)_0x3f97b5['markBlockFormat'](_0x1f65c2,{'commandName':'codeBlock','commandParams':[{..._0x182c22,'forceValue':_0x2188b1}],'formatGroupId':'blockName'});});}),(_0x3f97b5['descriptionFactory']['registerElementLabel']('codeBlock',_0x1be551=>o(_0x266c19,'ELEMENT_CODE_BLOCK',_0x1be551)),_0x3f97b5['descriptionFactory']['registerDescriptionCallback'](_0x150616=>{if('formatBlock'!=_0x150616['type'])return;const _0x1b329f=_0x266c19['t'],{data:_0x2e1184}=_0x150616;if(!_0x2e1184||'codeBlock'!=_0x2e1184['commandName'])return;const _0x3c02a2=_0x2e1184['commandParams'][0x0]['language'],_0x50256a=_0x1b329f(_0x3e9f17['find'](_0x12531d=>_0x12531d['language']===_0x3c02a2)['label'])['toLowerCase']();return _0x2e1184['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x266c19,'*Set\x20format:*\x20%0',o(_0x266c19,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x50256a+')')}:{'type':'format','content':o(_0x266c19,'*Remove\x20format:*\x20%0',o(_0x266c19,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x5d313d){return'codeBlock'==_0x5d313d['name'];}class J extends _0x588311{['afterInit'](){const _0x163d55=this['editor'];if(!_0x163d55['plugins']['has']('CommentsEditing'))return;_0x163d55['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x55bb95,_0x588268,_0x2952d3){const _0x5b31b1=[];for(const _0x33ba8e of _0x588268['getItems']())_0x33ba8e['hasAttribute'](_0x55bb95)&&_0x5b31b1['push'](_0x2952d3['createRangeOn'](_0x33ba8e));return _0x5b31b1;}function De(_0x12a6ef,_0x2100da,{showActiveMarker:_0x4008fe=!0x0}={}){const _0x25ab7b=_0x12a6ef['plugins']['get']('TrackChangesEditing');return(_0x413ced,_0x575a97,_0x218449)=>{if(!_0x218449['consumable']['test'](_0x575a97['markerRange'],_0x413ced['name']))return;const _0x3b25ca=_0x575a97['markerRange']['getWalker'](),_0x38b3d0=_0x575a97['markerRange']['start'],_0x4d48af=_0x12a6ef['model']['schema'];let _0x159bbf=null,_0x46d7ec=null,_0x4b24e5=!0x1,_0x545a86=!0x1;for(const _0x44fd73 of _0x3b25ca){const _0x2b84d8=_0x44fd73['item'];_0x4b24e5=_0x4b24e5||_0x4d48af['isContent'](_0x2b84d8);const _0x21faff=_0x218449['mapper']['toViewElement'](_0x2b84d8);if(_0x21faff&&_0x21faff['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x44fd73['type']&&(_0x4d48af['isBlock'](_0x2b84d8)&&!_0x4d48af['isLimit'](_0x2b84d8)&&(_0x2b84d8['nextSibling']||_0x38b3d0['isAtEnd']?_0x159bbf&&_0x159bbf['parent']==_0x2b84d8||(_0x159bbf=_0x2b84d8,_0x22806b(_0x44fd73['previousPosition']),_0x545a86=!0x0):_0x46d7ec=_0x46d7ec||_0x44fd73['previousPosition']));}function _0x22806b(_0x371de3){const {id:_0x477311,authorId:_0xff15de}=_0x25ab7b['_splitMarkerName'](_0x575a97['markerName']),_0x31b220=_0x218449['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2100da,'data-suggestion':_0x477311,'data-author-id':_0xff15de}),_0x146507=_0x218449['mapper']['toViewPosition'](_0x371de3);_0x4008fe&&_0x25ab7b['activeMarkers']['includes'](_0x575a97['markerName'])&&_0x218449['writer']['addClass']('ck-suggestion-marker--active',_0x31b220),_0x218449['writer']['insert'](_0x146507,_0x31b220),_0x218449['mapper']['bindElementToMarker'](_0x31b220,_0x575a97['markerName']);}_0x4b24e5||_0x545a86||!_0x46d7ec||_0x22806b(_0x46d7ec);};}class K extends _0x588311{static get['requires'](){return[_0x103805];}['init'](){const _0x1b32ac=this['editor'],_0x43859e=_0x1b32ac['plugins']['get']('TrackChangesEditing');_0x43859e['enableCommand']('delete');const _0x5f2e16=_0x1b32ac['commands']['get']('deleteForward');_0x43859e['enableCommand']('deleteForward',(_0x3fb98c,_0x4672be={})=>{const _0x5eae3d=_0x1b32ac['model']['createSelection'](_0x1b32ac['model']['document']['selection']);_0x5eae3d['isCollapsed']&&_0x1b32ac['model']['modifySelection'](_0x5eae3d,{'direction':'forward','unit':_0x4672be['unit']});const _0x3546d5=_0x5eae3d['getFirstRange'](),_0x287e24=_0x153d61['fromRange'](_0x3546d5);let _0x3d4f50;_0x3fb98c(_0x4672be),_0x3d4f50='$graveyard'==_0x287e24['root']['rootName']?_0x1b32ac['model']['createRange'](_0x3546d5['start']):_0x1b32ac['model']['createRange'](_0x287e24['start'],_0x287e24['end']),_0x287e24['detach'](),_0x1b32ac['model']['enqueueChange'](_0x5f2e16['buffer']['batch'],_0x33a754=>{_0x5f2e16['buffer']['lock'](),_0x33a754['setSelection'](_0x33a754['createRange'](_0x3d4f50['end'])),_0x5f2e16['buffer']['unlock']();});}),_0x1b32ac['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1b32ac,'merge'),{'priority':'high'}),_0x1b32ac['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x23def0,_0x1dfafe,_0x43fbf0)=>{_0x43fbf0['options']['showSuggestionHighlights']&&De(_0x1b32ac,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x23def0,_0x1dfafe,_0x43fbf0);},{'priority':'high'}),_0x1b32ac['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2e5ab4,_0x1675fa,_0x2eecc9)=>{const _0x5d936a=_0x2eecc9['mapper']['markerNameToElements'](_0x1675fa['markerName']);if(_0x5d936a){for(const _0x55e0a3 of _0x5d936a)_0x55e0a3['is']('uiElement')&&(_0x2eecc9['mapper']['unbindElementFromMarkerName'](_0x55e0a3,_0x1675fa['markerName']),_0x2eecc9['writer']['remove'](_0x55e0a3));}},{'priority':'high'});}}class H extends _0x588311{['afterInit'](){const _0x47330f=this['editor'];if(!_0x47330f['plugins']['has']('ListEditing'))return;const _0x392f48=_0x47330f['locale'],_0x205c57=_0x47330f['plugins']['get']('TrackChangesEditing'),_0x4c9745=_0x47330f['plugins']['has']('TodoListEditing'),_0x57a48a=!!_0x47330f['config']['get']('list.multiBlock');function _0x4aff2a(_0x41d9ef){return{'type':'format','content':''+o(_0x392f48,'*Set\x20format:*\x20%0',_0x41d9ef)};}function _0x5c8850(_0x4cee86){return{'type':'format','content':''+o(_0x392f48,'*Remove\x20format:*\x20%0',_0x4cee86)};}_0x205c57['enableDefaultAttributesIntegration']('numberedList'),_0x205c57['enableDefaultAttributesIntegration']('bulletedList'),_0x205c57['enableDefaultAttributesIntegration']('customNumberedList'),_0x205c57['enableDefaultAttributesIntegration']('customBulletedList'),_0x205c57['enableDefaultAttributesIntegration']('indentList'),_0x205c57['enableDefaultAttributesIntegration']('outdentList'),_0x205c57['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x205c57['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x205c57['registerBlockAttribute']('listItemId'),_0x205c57['registerBlockAttribute']('listType'),_0x205c57['registerBlockAttribute']('listIndent'),_0x57a48a&&(_0x205c57['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x205c57['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4c9745&&(_0x205c57['enableDefaultAttributesIntegration']('todoList'),_0x205c57['enableDefaultAttributesIntegration']('checkTodoList'),_0x205c57['registerBlockAttribute']('todoListChecked'),_0x205c57['descriptionFactory']['registerDescriptionCallback'](_0x38eec2=>{const {data:_0x1885fc}=_0x38eec2;if(_0x1885fc&&'todoListChecked'==_0x1885fc['key'])return{'type':'format','content':_0x1885fc['newValue']?o(_0x392f48,'*Check\x20item*'):o(_0x392f48,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5dfd37=>{if(_0x5dfd37['batch']['isUndo'])return!0x1;let _0x116ab6=!0x1;const _0x3c5943=_0x205c57['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15e244=>'todoListChecked'===_0x205c57['_getAttributeKey'](_0x15e244));for(const _0x204907 of _0x3c5943){'todo'!=_0x204907['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x205c57['_findSuggestions'](_0x204907['getFirstRange'](),'attribute')['find'](_0x597eab=>'listType'===_0x205c57['_getAttributeKey'](_0x597eab['suggestion']))||(_0x5dfd37['removeMarker'](_0x204907['getFirstMarker']()),_0x116ab6=!0x0));}return _0x116ab6;})),_0x205c57['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x392f48,'FORMAT_INDENT'));const _0xd867a2={'type':'format','content':''};_0x205c57['descriptionFactory']['registerDescriptionCallback'](_0x547a3a=>{const {data:_0x8520a9}=_0x547a3a;if(!_0x8520a9||'listType'!=_0x8520a9['key'])return;let _0x5cdeb7=_0x547a3a['head'];for(;_0x5cdeb7;){if(_0x5cdeb7['data']&&(('listStyle'==_0x5cdeb7['data']['key']||'listMarkerStyle'==_0x5cdeb7['data']['key'])&&(_0x5cdeb7['data']['newValue']&&'default'!=_0x5cdeb7['data']['newValue']||'default'!=_0x5cdeb7['data']['oldValue']&&!_0x8520a9['newValue'])||!_0x57a48a&&_0x5cdeb7['data']['key']==m))return _0xd867a2;_0x5cdeb7=_0x5cdeb7['next'];}if(null==_0x8520a9['newValue'])switch(_0x8520a9['oldValue']){case'bulleted':return _0x5c8850(o(_0x392f48,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c8850(o(_0x392f48,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c8850(o(_0x392f48,'ELEMENT_TODO_LIST'));}switch(_0x8520a9['newValue']){case'bulleted':return _0x4aff2a(o(_0x392f48,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4aff2a(o(_0x392f48,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4aff2a(o(_0x392f48,'ELEMENT_TODO_LIST'));}}),_0x205c57['descriptionFactory']['registerDescriptionCallback'](_0x20a3ba=>{const {data:_0x29d2fa}=_0x20a3ba;if(_0x29d2fa&&'listIndent'==_0x29d2fa['key'])return null==_0x29d2fa['newValue']||null==_0x29d2fa['oldValue']&&0x0==_0x29d2fa['newValue']?_0xd867a2:void 0x0;}),_0x205c57['descriptionFactory']['registerDescriptionCallback'](_0x2275da=>{if('attribute'!=_0x2275da['type'])return;const {data:_0x4feb35}=_0x2275da;if(!_0x4feb35||'listItemId'!=_0x4feb35['key'])return;const _0x38f21f=Te(_0x2275da);return'newValue'==_0x38f21f?{'type':'format','content':o(_0x392f48,'*Merge:*\x20list\x20item')}:'oldValue'==_0x38f21f?{'type':'format','content':o(_0x392f48,'*Split:*\x20list\x20item')}:_0xd867a2;}),_0x47330f['model']['document']['registerPostFixer'](_0x48f6a5=>this['listItemIdFixer'](_0x48f6a5)),_0x47330f['model']['document']['registerPostFixer'](_0x120a6e=>this['noTrackChangesFixer'](_0x120a6e)),_0x47330f['model']['document']['on']('change:data',(_0x5e0e91,_0x46c730)=>{if(_0x46c730['isUndo']||!_0x46c730['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x42b86d){if(_0x42b86d['batch']['isUndo']||!_0x42b86d['batch']['isLocal'])return!0x1;let _0x4bef5f=!0x1;const _0x13152d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x174f15=>_0x174f15['data']&&'listItemId'==_0x174f15['data']['key'])['filter'](_0x2a8d51=>_0x2a8d51['data']['newValue']&&_0x2a8d51['data']['oldValue']);for(const _0x4075ae of _0x13152d)Te(_0x4075ae)||(_0x42b86d['removeMarker'](_0x4075ae['getFirstMarker']()),_0x4bef5f=!0x0);return _0x4bef5f;}['noTrackChangesFixer'](_0x3dfc3d){if(_0x3dfc3d['batch']['isUndo']||!_0x3dfc3d['batch']['isLocal'])return!0x1;const _0x2ca41f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2ca41f['trackChangesCommand']['value'])return!0x1;let _0x14eb22=!0x1;const _0x11c990=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x522bcc=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x497818=>'attribute'==_0x497818['type'])['filter'](_0x1ecb70=>_0x11c990['includes'](_0x1ecb70['attributeKey']));if(0x0==_0x522bcc['length'])return _0x14eb22;for(const _0x333cbc of _0x522bcc){const _0x2c3aa3=_0x2ca41f['_findSuggestions'](_0x333cbc['range'],'attribute')['filter'](_0x12c237=>!_0x12c237['meta']['isNextTo'])['map'](_0xab8aff=>_0xab8aff['suggestion'])['filter'](_0x1543e8=>{const _0x5c22db=_0x2ca41f['_getAttributeKey'](_0x1543e8);return _0x11c990['includes'](_0x5c22db);});if(_0x2c3aa3['length']){for(const _0x557f33 of _0x2c3aa3)_0x3dfc3d['removeMarker'](_0x557f33['getFirstMarker']());_0x14eb22=!0x0;}}return _0x14eb22;}['assureChains'](){const _0x22770f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x571d94=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x85f68d;const _0x518d4e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xaea4=>{if(_0xaea4['data']['oldRange']||!_0xaea4['data']['newRange'])return null;if(!_0xaea4['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4dc3ea}=_0x22770f['_splitMarkerName'](_0xaea4['name']);if(!_0x22770f['hasSuggestion'](_0x4dc3ea))return null;const _0x1ee254=_0x22770f['getSuggestion'](_0x4dc3ea);return _0x571d94['includes'](_0x1ee254['data']['key']);})['map'](_0x373837=>{const {id:_0x37c02e}=_0x22770f['_splitMarkerName'](_0x373837['name']),_0x1bdb3a=_0x22770f['getSuggestion'](_0x37c02e);return _0x85f68d=_0x1bdb3a['attributes']['groupId'],_0x1bdb3a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x518d4e['size'])return;const _0x9c5951=_0x22770f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ee280=>'attribute'==_0x3ee280['type']&&_0x3ee280['data']&&_0x571d94['includes'](_0x3ee280['data']['key'])&&_0x3ee280['attributes']['groupId']!=_0x85f68d)['map'](_0x68cb81=>({'listItem':_0x68cb81['getFirstRange']()['start']['nodeAfter'],'groupId':_0x68cb81['attributes']['groupId']})),_0x3af9ac=new Set();for(const {groupId:_0x2d3902,listItem:_0x1b10ad}of _0x9c5951)_0x518d4e['has'](_0x1b10ad)&&_0x3af9ac['add'](_0x2d3902);for(const _0x236f33 of _0x22770f['getSuggestions']())_0x3af9ac['has'](_0x236f33['attributes']['groupId'])&&_0x236f33['setAttribute']('groupId',_0x85f68d);}['_supportLegacySuggestions'](){const _0x1f4687=this['editor'],_0x33a038=_0x1f4687['locale'],_0x3b85bd=_0x1f4687['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3b85bd['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x23536e,_0x1d1488){const _0x2eaec2=[];for(let _0x16ea49 of _0x23536e)_0x16ea49['start']['nodeAfter']===_0x16ea49['end']['parent']&&(_0x16ea49=_0x1f4687['model']['createRange'](_0x1f4687['model']['createPositionAt'](_0x16ea49['start']['nodeAfter'],0x0))),_0x2eaec2['push'](_0x16ea49);_0x1f4687['model']['change'](_0x3d8a2b=>{const _0x174af0=_0x1f4687['model']['document']['selection'],_0x568a4a=Array['from'](_0x174af0['getRanges']())['map'](_0x3a835e=>_0x153d61['fromRange'](_0x3a835e));_0x3d8a2b['setSelection'](_0x2eaec2),_0x1f4687['commands']['get'](_0x1d1488['commandName'])['refresh'](),_0x1d1488['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1f4687['execute'](_0x1d1488['commandName'],..._0x1d1488['commandParams']),_0x3d8a2b['setSelection'](_0x568a4a);for(const _0x22e328 of _0x568a4a)_0x22e328['detach']();});}),_0x3b85bd['descriptionFactory']['registerElementLabel'](function(_0xe52534){const _0x3e6edc=!_0x1f4687['model']['schema']['isObject'](_0xe52534),_0x139609=_0xe52534['previousSibling'],_0x2aaae3=_0xe52534['nextSibling'],_0x10ac11=_0xe52534['getAttribute']('listItemId'),_0x55a0aa=!_0x139609||_0x139609['getAttribute']('listItemId')!==_0x10ac11,_0x290e90=!_0x2aaae3||_0x2aaae3['getAttribute']('listItemId')!==_0x10ac11;return _0x3e6edc&&Boolean(_0x10ac11)&&_0x55a0aa&&_0x290e90;},_0x3132f8=>o(_0x33a038,'ELEMENT_LIST_ITEM',_0x3132f8));}['_registerLegacyDescription'](){const _0x5def77=this['editor'],_0x3739f2=_0x5def77['locale'];function _0x42ef6a(_0xb21d46){const _0x2d2770=_0x5def77['commands']['get']('bulletedList')['value'],_0x41ad49=_0x5def77['commands']['get']('numberedList')['value'];return'numberedList'===_0xb21d46?_0x2d2770:_0x41ad49;}_0x5def77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4d8eef){if('formatBlock'!=_0x4d8eef['type'])return;const {data:_0x97b5f2}=_0x4d8eef;if(!_0x97b5f2)return;let _0x21a011,_0x6c4148,_0xc353e1,_0x55cab6;switch(_0x97b5f2['commandName']){case'bulletedList':_0xc353e1=_0x97b5f2['commandParams'][0x0]['forceValue'],_0x55cab6=_0x42ef6a(_0x97b5f2['commandName']),_0x21a011=_0xc353e1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x55cab6&&_0x5def77['config']['get']('list.multiBlock')||(_0x21a011='*Change\x20to:*\x20%0'),_0x6c4148={'type':'format','content':o(_0x3739f2,_0x21a011,o(_0x3739f2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xc353e1=_0x97b5f2['commandParams'][0x0]['forceValue'],_0x55cab6=_0x42ef6a(_0x97b5f2['commandName']),_0x21a011=_0xc353e1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x55cab6&&_0x5def77['config']['get']('list.multiBlock')||(_0x21a011='*Change\x20to:*\x20%0'),_0x6c4148={'type':'format','content':o(_0x3739f2,_0x21a011,o(_0x3739f2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x21a011='*Indent:*\x20%0',_0x6c4148={'type':'format','content':o(_0x3739f2,_0x21a011,o(_0x3739f2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x21a011=function(_0xdb6b8f){const _0x45eb52=_0xdb6b8f['getFirstRange']();let _0x42c713=_0x45eb52['start']['nodeAfter'];for(;_0x42c713&&_0x45eb52['containsItem'](_0x42c713);){if(_0x42c713['getAttribute']('listIndent')>0x0)return!0x1;_0x42c713=_0x42c713['nextSibling'];}return!0x0;}(_0x4d8eef)?o(_0x3739f2,'*Format:*\x20remove\x20from\x20%0',o(_0x3739f2,function(_0x287200){return'ELEMENT_'+_0x287200['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4d8eef))):o(_0x3739f2,'*Outdent:*\x20%0',o(_0x3739f2,'ELEMENT_LIST_ITEM')),_0x6c4148={'type':'format','content':_0x21a011};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x97b5f2['multipleBlocks']&&(_0x21a011='*Merge:*\x20%0',_0x6c4148={'type':'deletion','content':o(_0x3739f2,_0x21a011,o(_0x3739f2,'ELEMENT_LIST_ITEM'))});}return _0x6c4148;});}}function Te(_0xa8386c){let _0x37cb28=_0xa8386c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x37cb28;){const _0x1c7f48=_0x37cb28['getAttribute']('listItemId');if(!_0x1c7f48)return!0x1;if(_0x1c7f48==_0xa8386c['data']['newValue'])return'newValue';if(_0x1c7f48==_0xa8386c['data']['oldValue'])return'oldValue';_0x37cb28=_0x37cb28['previousSibling'];}return!0x1;}class q extends _0x588311{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x9e497f=this['editor']['config']['get']('list.properties'),_0x4cba8a=this['editor']['plugins']['get']('TrackChangesEditing');_0x9e497f['styles']&&(_0x4cba8a['enableDefaultAttributesIntegration']('listStyle'),_0x4cba8a['registerBlockAttribute']('listStyle')),_0x9e497f['reversed']&&(_0x4cba8a['enableDefaultAttributesIntegration']('listReversed'),_0x4cba8a['registerBlockAttribute']('listReversed')),_0x9e497f['startIndex']&&(_0x4cba8a['enableDefaultAttributesIntegration']('listStart'),_0x4cba8a['registerBlockAttribute']('listStart'));const _0x2ac4f={'type':'format','content':''};_0x4cba8a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x36dd4e=this['editor']['locale'];_0x4cba8a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x36dd4e,'FORMAT_LIST_REVERSED')),_0x4cba8a['descriptionFactory']['registerDescriptionCallback'](_0x3bdb66=>{const {data:_0x40882d}=_0x3bdb66;if(_0x40882d&&'listReversed'==_0x40882d['key'])return null==_0x40882d['newValue']||0x0==_0x40882d['newValue']&&null==_0x40882d['oldValue']?_0x2ac4f:void 0x0;}),_0x4cba8a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x36dd4e,'FORMAT_LIST_START')),_0x4cba8a['descriptionFactory']['registerDescriptionCallback'](_0xf4521f=>{const {data:_0x2bd9f8}=_0xf4521f;if(_0x2bd9f8&&'listStart'==_0x2bd9f8['key'])return null==_0x2bd9f8['newValue']||0x1==_0x2bd9f8['newValue']&&null==_0x2bd9f8['oldValue']?_0x2ac4f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xd70caa=>{if(_0xd70caa['batch']['isUndo'])return!0x1;let _0x2442d7=!0x1;const _0x52af47=_0x4cba8a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4bd7a5=>{const _0x112c9f=_0x4cba8a['_getAttributeKey'](_0x4bd7a5);return'listStart'==_0x112c9f||'listReversed'==_0x112c9f;});for(const _0x51c899 of _0x52af47){const _0x359979=_0x51c899['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x359979||'customNumbered'==_0x359979)continue;_0x4cba8a['_findSuggestions'](_0x51c899['getFirstRange'](),'attribute')['find'](_0x154b19=>'listType'==_0x4cba8a['_getAttributeKey'](_0x154b19['suggestion']))||(_0xd70caa['removeMarker'](_0x51c899['getFirstMarker']()),_0x2442d7=!0x0);}return _0x2442d7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2e2b4d){const _0x323407=this['editor']['locale'],{data:_0x25f93d}=_0x2e2b4d,_0x433158={'type':'format','content':''};if(!_0x25f93d||'listStyle'!=_0x25f93d['key'])return;if(!_0x25f93d['oldValue'])return'default'==_0x25f93d['newValue']?_0x433158:{'type':'format','content':''+o(_0x323407,'*Set\x20format:*\x20%0',o(_0x323407,this['_getTranslationKeyForListStyle'](_0x25f93d['newValue'])))};if(!_0x25f93d['newValue']){if('default'==_0x25f93d['oldValue'])return _0x433158;let _0x33f433=_0x2e2b4d['head'];for(;_0x33f433;){if(_0x33f433['data']&&'listType'==_0x33f433['data']['key']&&_0x33f433['data']['newValue'])return _0x433158;_0x33f433=_0x33f433['next'];}return{'type':'format','content':''+o(_0x323407,'*Remove\x20format:*\x20%0',o(_0x323407,this['_getTranslationKeyForListStyle'](_0x25f93d['oldValue'])))};}if('default'!=_0x25f93d['newValue'])return{'type':'format','content':''+o(_0x323407,'*Set\x20format:*\x20%0',o(_0x323407,this['_getTranslationKeyForListStyle'](_0x25f93d['newValue'])))};let _0x2c0929=_0x2e2b4d['head'];for(;_0x2c0929;){if(_0x2c0929['data']&&'listType'==_0x2c0929['data']['key']&&_0x2c0929['data']['newValue']&&_0x2c0929['data']['oldValue'])return _0x433158;_0x2c0929=_0x2c0929['next'];}return{'type':'format','content':o(_0x323407,'*Set\x20format:*\x20%0',o(_0x323407,'ELEMENT_'+_0x2e2b4d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x455288=this['editor'],_0x3ba4c4=_0x455288['locale'];_0x455288['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x440612=>{if('formatBlock'!=_0x440612['type'])return;const {data:_0x4f82dc}=_0x440612;if(!_0x4f82dc)return;let _0x405505,_0x29a9ad;switch(_0x4f82dc['commandName']){case'listStyle':_0x405505='*Change\x20to:*\x20%0',_0x29a9ad={'type':'format','content':o(_0x3ba4c4,_0x405505,o(_0x3ba4c4,this['_getTranslationKeyForListStyle'](_0x4f82dc['commandParams'][0x0]['type'])))};break;case'listReversed':_0x405505=_0x4f82dc['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x29a9ad={'type':'format','content':o(_0x3ba4c4,_0x405505)};break;case'listStart':_0x405505='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x29a9ad={'type':'format','content':o(_0x3ba4c4,_0x405505,_0x4f82dc['commandParams'][0x0]['startIndex'])};}return _0x29a9ad;});}['_getTranslationKeyForListStyle'](_0x3c7dea){return'ELEMENT_'+function(_0x147444){if(Se['includes'](_0x147444))return'bulleted';if(_e['includes'](_0x147444))return'numbered';return null;}(_0x3c7dea)['toUpperCase']()+'_LIST_'+_0x3c7dea['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x588311{['afterInit'](){const _0x17a753=this['editor'];_0x17a753['commands']['get']('emoji')&&_0x17a753['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x588311{static get['requires'](){return[_0x2597a3];}['init'](){const _0x33e7c4=this['editor'],_0x599cca=_0x33e7c4['plugins']['get']('TrackChangesEditing'),_0x3853fc=_0x33e7c4['commands']['get']('enter');_0x599cca['enableCommand']('enter',()=>{_0x33e7c4['model']['change'](_0x5a6053=>{const _0x10f965=_0x33e7c4['model']['document']['selection'],_0x4ba530=_0x10f965['getFirstPosition'](),_0x1cf75e=_0x153d61['fromRange'](_0x10f965['getFirstRange']());if(_0x3853fc['enterBlock'](_0x5a6053)){const _0x2633cf=_0x33e7c4['model']['createPositionAt'](_0x4ba530['parent']['nextSibling'],0x0),_0x138959=_0x5a6053['createRange'](_0x4ba530,_0x2633cf);_0x599cca['markInsertion'](_0x138959);}else _0x5a6053['setSelection'](_0x5a6053['createRange'](_0x1cf75e['end']));_0x1cf75e['detach'](),_0x3853fc['fire']('afterExecute',{'writer':_0x5a6053});});}),_0x33e7c4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x33e7c4,'split'),{'priority':'high'}),_0x33e7c4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x40efd2,_0x58cda4,_0x3ee1d7)=>{const _0x3c8848=_0x3ee1d7['mapper']['markerNameToElements'](_0x58cda4['markerName']);if(_0x3c8848){for(const _0xc29f6a of _0x3c8848)_0xc29f6a['hasClass']('ck-suggestion-marker-split')&&(_0x3ee1d7['mapper']['unbindElementFromMarkerName'](_0xc29f6a,_0x58cda4['markerName']),_0x3ee1d7['writer']['remove'](_0xc29f6a));}},{'priority':'high'}),_0x33e7c4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x363298,_0x5913ad,_0x39bcb0)=>{_0x39bcb0['options']['showSuggestionHighlights']&&De(_0x33e7c4,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x363298,_0x5913ad,_0x39bcb0);},{'priority':'high'});}}class Q extends _0x588311{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x586ee8=this['editor']['plugins']['get']('TrackChangesEditing');_0x586ee8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x586ee8['enableCommand']('findNext'),_0x586ee8['enableCommand']('findPrevious'),_0x586ee8['enableCommand']('replace'),_0x586ee8['enableCommand']('replaceAll');}['handleFindCommand'](_0x3fe3d6,_0x29af76,_0x310a88={}){const _0x5c76c6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3fe3d6(_0x5ad497=>{let _0x7ed3c5=('string'==typeof _0x29af76?_0x5c76c6['findByTextCallback'](_0x29af76,_0x310a88):_0x29af76)(_0x5ad497);Array['isArray'](_0x7ed3c5)&&(_0x7ed3c5={'results':_0x7ed3c5,'searchText':'string'==typeof _0x29af76?_0x29af76:''});const _0x172bc5=_0x7ed3c5['results']['filter'](_0x35f9a1=>!0x1===this['_isInDeletionRange'](_0x35f9a1,_0x5ad497['item']));return{..._0x7ed3c5,'results':_0x172bc5};},_0x310a88);}['_isInDeletionRange'](_0x10dddd,_0x17480a){const _0x2bac48=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x17480a,_0x10dddd['start']),this['editor']['model']['createPositionAt'](_0x17480a,_0x10dddd['end']));for(const _0x4a0efb of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2bac48['getIntersection'](_0x4a0efb['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 _0x588311{['afterInit'](){const _0x3abda6=this['editor']['locale'],_0x16cf03=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3a26a3,commandName:_0xda3de5}of eo)this['editor']['plugins']['has'](_0x3a26a3)&&(_0x16cf03['enableDefaultAttributesIntegration'](_0xda3de5),_0x16cf03['registerInlineAttribute'](_0xda3de5));_0x16cf03['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3abda6,'FORMAT_FONT_SIZE')),_0x16cf03['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3abda6,'FORMAT_FONT_FAMILY')),_0x16cf03['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3abda6,'FORMAT_FONT_COLOR')),_0x16cf03['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3abda6,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x233573=this['editor'],_0x45c54f=_0x233573['locale'];_0x233573['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x348e49=>{const _0x4bec19=_0x45c54f['t'];if('formatInline'!=_0x348e49['type'])return;const {data:_0x530269}=_0x348e49;if(null!=_0x530269){if('fontSize'==_0x530269['commandName']){const _0x146a9a=_0x530269['commandParams'][0x0]['value'];if(_0x146a9a){const _0x51d1bc=_0x4bec19(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1df6f6=>_0x1df6f6['model']==_0x146a9a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x45c54f,'*Set\x20font\x20size:*\x20%0',_0x51d1bc)};}return{'type':'format','content':o(_0x45c54f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x530269['commandName']){const _0x1f3201=_0x530269['commandParams'][0x0]['value'];return _0x1f3201?{'type':'format','content':o(_0x45c54f,'*Set\x20font\x20family:*\x20%0',_0x1f3201)}:{'type':'format','content':o(_0x45c54f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x530269['commandName']){const _0x844319=_0x530269['commandParams'][0x0]['value'];if(_0x844319){const _0x3b6bc3=_0x63f84f(this['editor']['config']['get']('fontColor.colors'))['find'](_0x215600=>_0x215600['model']==_0x844319);let _0xe5b49a=_0x844319,_0x525d85='';return _0x3b6bc3&&(_0xe5b49a=_0x3b6bc3['label'],_0x525d85=_0x4bec19(_0xe5b49a)['toLowerCase']()),{'type':'format','content':o(_0x45c54f,'*Set\x20font\x20color:*\x20%0',_0x525d85)['trim'](),'color':{'value':_0x844319,'title':_0x525d85||_0xe5b49a}};}return{'type':'format','content':o(_0x45c54f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x530269['commandName']){const _0x593ce9=_0x530269['commandParams'][0x0]['value'];if(_0x593ce9){const _0x320118=_0x63f84f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x546f86=>_0x546f86['model']==_0x593ce9);let _0x4104e8=_0x593ce9,_0x20dd1e='';return _0x320118&&(_0x4104e8=_0x320118['label'],_0x20dd1e=_0x4bec19(_0x4104e8)['toLowerCase']()),{'type':'format','content':o(_0x45c54f,'*Set\x20font\x20background\x20color:*\x20%0',_0x20dd1e)['trim'](),'color':{'value':_0x593ce9,'title':_0x20dd1e||_0x4104e8}};}return{'type':'format','content':o(_0x45c54f,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x588311{['afterInit'](){const _0x2c6f97=this['editor'],_0xf133a8=_0x2c6f97['plugins']['get']('TrackChangesEditing'),_0x450b01=_0x2c6f97['commands']['get']('copyFormat'),_0x3c5541=_0x2c6f97['commands']['get']('pasteFormat');_0x450b01&&_0x3c5541&&(_0xf133a8['enableDefaultAttributesIntegration']('pasteFormat'),_0xf133a8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4fba6d=this['editor'],_0x49c206=_0x4fba6d['locale'];_0x4fba6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f39e9=>{if('formatBlock'!=_0x3f39e9['type']&&'formatInline'!=_0x3f39e9['type'])return;const {data:_0x503377}=_0x3f39e9;if(_0x503377&&'pasteFormat'===_0x503377['commandName']){const _0x314bad=[],_0x51522f=_0x503377['commandParams'][0x0];for(const [_0x23d33d,_0x579524]of Object['entries'](_0x51522f))_0x314bad['push'](ro(_0x4fba6d,_0x23d33d,_0x579524));return _0x314bad['length']?{'type':'format','content':o(_0x49c206,'*Set\x20format\x20to:*\x20%0',_0x314bad['join'](',\x20'))}:{'type':'format','content':o(_0x49c206,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xc6217f,_0x47c6e2,_0x55947b){const _0x2d1633=_0xc6217f['locale']['t'],_0x4c1cc9=_0x47c6e2['split'](/(?=[A-Z])/)['join']('\x20'),_0x15d3b0=_0x2d1633(_0x4c1cc9['charAt'](0x0)['toUpperCase']()+_0x4c1cc9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x55947b)return _0x15d3b0;if('fontColor'===_0x47c6e2||'fontBackgroundColor'===_0x47c6e2){const _0x55f0d7=_0x63f84f(_0xc6217f['config']['get']('fontColor.colors'))['find'](_0x3ab9e6=>_0x3ab9e6['model']==_0x55947b);return _0x15d3b0+'\x20('+(_0x55f0d7?_0x2d1633(_0x55f0d7['label'])['toLowerCase']():_0x55947b)+')';}if('fontSize'===_0x47c6e2&&isNaN(parseFloat(_0x55947b))){const _0xbe1b29=_0xc6217f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xc6217f['config']['get']('fontSize.options'))['find'](_0x4a1aa0=>_0x4a1aa0['model']==_0x55947b);return _0x15d3b0+'\x20('+(_0xbe1b29?_0x2d1633(_0xbe1b29['title'])['toLowerCase']():_0x55947b)+')';}return _0x15d3b0+'\x20('+_0x55947b+')';}class Z extends _0x588311{['_headingOptions'];['afterInit'](){const _0x1ce3ed=this['editor'];if(!_0x1ce3ed['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1ce3ed['config']['get']('heading.options');const _0x11773a=_0x1ce3ed['locale'],_0x3279cf=_0x1ce3ed['plugins']['get']('TrackChangesEditing');_0x3279cf['enableDefaultAttributesIntegration']('heading');for(const _0x550324 of this['_headingOptions'])'paragraph'!=_0x550324['model']&&_0x3279cf['descriptionFactory']['registerElementLabel'](_0x550324['model'],_0x49fb2d=>{const _0x153662=this['_getHeadingLevel'](_0x550324['model']);return null!==_0x153662?_0x40fe41(_0x49fb2d,_0x153662):_0x71d968(_0x49fb2d,_0x550324['title']);});function _0x40fe41(_0x1ddfc2,_0x1d40b2){return o(_0x11773a,'ELEMENT_HEADING',[_0x1ddfc2,_0x1d40b2]);}function _0x71d968(_0x2bea26,_0x4a27b4){return o(_0x11773a,'ELEMENT_HEADING_CUSTOM',[_0x2bea26,_0x4a27b4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1af3d8=this['editor'],_0x3287a5=_0x1af3d8['locale'];function _0x2bde16(_0x1fc5cf,_0x5e4b94){return o(_0x3287a5,'ELEMENT_HEADING_CUSTOM',[_0x1fc5cf,_0x5e4b94]);}_0x1af3d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37ed6b=>{if('formatBlock'!=_0x37ed6b['type'])return;const {data:_0x22b742}=_0x37ed6b;if(_0x22b742&&'heading'==_0x22b742['commandName']){const _0x1a28a5=_0x22b742['commandParams'][0x0]['value'],_0x4b9067=this['_getHeadingLevel'](_0x1a28a5);if(null!==_0x4b9067)return{'type':'format','content':o(_0x3287a5,'*Change\x20to:*\x20%0',(_0x6dd848=0x1,_0x45df59=_0x4b9067,o(_0x3287a5,'ELEMENT_HEADING',[_0x6dd848,_0x45df59])))};const _0x415eec=this['_headingOptions']['find'](_0x58040d=>_0x58040d['model']===_0x1a28a5)['title'];return{'type':'format','content':o(_0x3287a5,'*Change\x20to:*\x20%0',_0x2bde16(0x1,_0x415eec))};}var _0x6dd848,_0x45df59;});}['_getHeadingLevel'](_0x21d728){const _0x1928a0=_0x21d728['match'](/^heading(\d+)/);if(_0x1928a0)return _0x1928a0[0x1];const _0x52ef96=this['_headingOptions']?.['find'](_0x33b46d=>_0x33b46d['model']==_0x21d728);if(_0x52ef96&&_0x52ef96['view']){const _0x2d5767=_0x52ef96['view'],_0xf54fb3=(_0x2d5767['name']??_0x2d5767)['match'](/^h(\d+)/);if(_0xf54fb3)return _0xf54fb3[0x1];}return null;}}class tt extends _0x588311{['afterInit'](){const _0x4c702b=this['editor'];if(!_0x4c702b['plugins']['has']('HighlightEditing'))return;const _0x3579e4=_0x4c702b['plugins']['get']('TrackChangesEditing'),_0x5add27=_0x4c702b['locale'];_0x3579e4['enableDefaultAttributesIntegration']('highlight'),_0x3579e4['registerInlineAttribute']('highlight'),_0x3579e4['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5add27,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4caa41=this['editor'],_0x291183=_0x4caa41['locale'];_0x4caa41['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x412099=>{if('formatInline'!=_0x412099['type'])return;const {data:_0x5d6fb3}=_0x412099;if(_0x5d6fb3&&'highlight'==_0x5d6fb3['commandName']){const _0x5cbe67=_0x291183['t'],_0x4b3d3e=_0x5d6fb3['commandParams'][0x0]['value'];if(_0x4b3d3e){const _0x5e5e12=_0x4caa41['config']['get']('highlight.options')['find'](_0x20f9d2=>_0x20f9d2['model']==_0x4b3d3e),_0x366c0c=_0x5cbe67(_0x5e5e12['title'])['toLowerCase']();return{'type':'format','content':o(_0x291183,'*Set\x20highlight:*\x20%0',_0x366c0c),'color':{'value':_0x5e5e12['color'],'title':_0x5e5e12['title']}};}return{'type':'format','content':o(_0x291183,'*Remove\x20highlight*',o(_0x291183,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x588311{['afterInit'](){const _0x57f275=this['editor'];if(!_0x57f275['plugins']['has']('HorizontalLineEditing'))return;_0x57f275['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3293af=_0x57f275['plugins']['get']('TrackChangesEditing'),_0xe22e93=_0x57f275['locale'];_0x3293af['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3f7845=>o(_0xe22e93,'ELEMENT_HORIZONTAL_LINE',_0x3f7845)),_0x57f275['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x44a2ef,{writer:_0x43bc6f,options:_0x54b4bb})=>{if(!_0x54b4bb['showSuggestionHighlights'])return null;const _0x445370=_0x43bc6f['createContainerElement']('div'),_0x46d844=_0x43bc6f['createEmptyElement']('hr');return _0x43bc6f['addClass']('ck-horizontal-line',_0x445370),_0x43bc6f['insert'](_0x43bc6f['createPositionAt'](_0x445370,0x0),_0x46d844),_0x445370;},'converterPriority':'high'});}}class nt extends _0x588311{['afterInit'](){const _0x595eed=this['editor'];if(!_0x595eed['plugins']['has']('HtmlEmbed'))return;const _0x488b1f=_0x595eed['plugins']['get']('TrackChangesEditing'),_0x3bf38c=_0x595eed['locale'];_0x488b1f['descriptionFactory']['registerElementLabel']('rawHtml',_0x229bf1=>o(_0x3bf38c,'ELEMENT_HTML_EMBED',_0x229bf1)),_0x488b1f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x488b1f['registerBlockAttribute']('value'),_0x488b1f['descriptionFactory']['registerDescriptionCallback'](_0x375345=>{if('attribute'!=_0x375345['type'])return;const {data:_0xaef27d}=_0x375345;if(_0xaef27d&&'value'==_0xaef27d['key']&&_0x375345['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x19cb9f=o(_0x3bf38c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3bf38c,'*Change\x20%0\x20content*',_0x19cb9f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15669b=this['editor'],_0x5d774d=_0x15669b['locale'];_0x15669b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c99a1=>{if('formatBlock'!=_0x5c99a1['type'])return;const {data:_0x270200}=_0x5c99a1;if(_0x270200&&'htmlEmbed'==_0x270200['commandName']){const _0x3d9be7=o(_0x5d774d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5d774d,'*Change\x20%0\x20content*',_0x3d9be7)};}});}}class et extends _0x588311{['afterInit'](){const _0x1be236=this['editor'];if(!_0x1be236['plugins']['has']('ImageEditing'))return;const _0x1dad56=_0x1be236['plugins']['get']('TrackChangesEditing'),_0x21e625=_0x1be236['plugins']['get']('ImageUtils'),_0x35686f=_0x1be236['locale'];_0x1dad56['enableCommand']('insertImage'),_0x1dad56['descriptionFactory']['registerElementLabel']('imageBlock',_0x36a560=>o(_0x35686f,'ELEMENT_IMAGE',_0x36a560)),_0x1dad56['descriptionFactory']['registerElementLabel']('imageInline',_0x13bea9=>o(_0x35686f,'ELEMENT_INLINE_IMAGE',_0x13bea9)),_0x1dad56['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x35686f,'ELEMENT_CAPTION')),_0x1be236['plugins']['has']('ImageUploadEditing')&&_0x1dad56['enableCommand']('uploadImage'),_0x1be236['plugins']['has']('ImageBlockEditing')&&_0x1be236['plugins']['has']('ImageInlineEditing')&&(_0x1dad56['enableCommand']('imageTypeInline',(_0x32b649,_0x5bb96c)=>{const _0x3e4576=_0x21e625['getClosestSelectedImageElement'](_0x1be236['model']['document']['selection']);_0x1be236['model']['change'](()=>{_0x1dad56['markBlockFormat'](_0x3e4576,{'commandName':'imageTypeInline','commandParams':[_0x5bb96c]},[],'convertBlockImageToInline');});}),_0x1dad56['enableCommand']('imageTypeBlock',(_0x380566,_0x4dbb42)=>{_0x1be236['model']['change'](_0x52591e=>{let _0x1f73af=_0x21e625['getClosestSelectedImageElement'](_0x1be236['model']['document']['selection']),_0x4a2b7d=_0x52591e['createRangeOn'](_0x1f73af);const _0x37c16e=_0x5e984c['fromPosition'](_0x4a2b7d['start'],'toPrevious'),_0x3f7adf=_0x5e984c['fromPosition'](_0x4a2b7d['end'],'toNext');_0x1dad56['forceDefaultExecution'](()=>_0x380566(_0x4dbb42)),_0x1f73af=_0x21e625['getClosestSelectedImageElement'](_0x1be236['model']['document']['selection']),_0x4a2b7d=_0x52591e['createRangeOn'](_0x1f73af);const _0x1ebbfb=_0x52591e['createRange'](_0x37c16e,_0x3f7adf);_0x37c16e['detach'](),_0x3f7adf['detach'](),_0x1dad56['markBlockFormat'](_0x1f73af,{'commandName':'imageTypeInline','commandParams':[_0x4dbb42]},[],'convertInlineImageToBlock'),_0x1ebbfb['start']['isBefore'](_0x4a2b7d['start'])&&_0x1dad56['markInsertion'](_0x52591e['createRange'](_0x1ebbfb['start'],_0x4a2b7d['start']),'convertInlineImageToBlock'),_0x4a2b7d['end']['isBefore'](_0x1ebbfb['end'])&&_0x1dad56['markInsertion'](_0x52591e['createRange'](_0x4a2b7d['end'],_0x1ebbfb['end']),'convertInlineImageToBlock');});}),_0x1dad56['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1dad56['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1dad56['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1dad56['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1dad56['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1dad56['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x17c918])=>{const _0x29d6d5=_0x1dad56['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2c35ba=_0x17c918['start'],_0x1632e3=_0x17c918['end'];const _0x4f68b2=_0x1be236['model']['schema']['getNearestSelectionRange'](_0x2c35ba,'backward'),_0x2deb4f=_0x1be236['model']['schema']['getNearestSelectionRange'](_0x1632e3,'forward');_0x4f68b2['isCollapsed']&&(_0x2c35ba=_0x4f68b2['start']),_0x2deb4f['isCollapsed']&&(_0x1632e3=_0x2deb4f['end']),_0x29d6d5([_0x1be236['model']['createRange'](_0x2c35ba,_0x1632e3)]);}),_0x1dad56['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xa8ddcf),_0x1dad56['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xa8ddcf)),_0x1be236['plugins']['has']('ImageCaptionEditing')&&(_0x1dad56['enableCommand']('toggleImageCaption',(_0x3961e8,_0x16228f)=>{const _0x3899ad=_0x1be236['plugins']['get']('ImageCaptionUtils');let _0x20ea03=_0x21e625['getClosestSelectedImageElement'](_0x1be236['model']['document']['selection']),_0x362ac3=_0x3899ad['getCaptionFromImageModelElement'](_0x20ea03);_0x1be236['model']['change'](()=>{if(_0x362ac3)return void _0x1dad56['markDeletion'](_0x1be236['model']['createRangeOn'](_0x362ac3));const _0x4724dd=_0x21e625['isBlockImage'](_0x20ea03);_0x3961e8(_0x16228f),_0x20ea03=_0x21e625['getClosestSelectedImageElement'](_0x1be236['model']['document']['selection']),_0x362ac3=_0x3899ad['getCaptionFromImageModelElement'](_0x20ea03),_0x1dad56['markInsertion'](_0x1be236['model']['createRangeOn'](_0x362ac3),_0x4724dd?null:'imageCaption');});}),_0x1dad56['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xa8ddcf));const _0x2a3b7d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xca8b80(_0x2a62cf,_0x5cf6b4){const _0x1be7a3=_0x2a3b7d['findIndex'](({type:_0x44c8ac,subType:_0x3ac7d9})=>_0x2a62cf['type']==_0x44c8ac&&_0x2a62cf['subType']==_0x3ac7d9),_0x2a8a54=_0x2a3b7d['findIndex'](({type:_0x3b7f32,subType:_0x5dc7b6})=>_0x5cf6b4['type']==_0x3b7f32&&_0x5cf6b4['subType']==_0x5dc7b6);if(_0x1be7a3<0x0||_0x2a8a54<0x0)return!0x1;const _0x13f3bf=_0x2a62cf['getFirstRange'](),_0xec78b3=_0x5cf6b4['getFirstRange']();if((0x0==_0x1be7a3||0x1==_0x1be7a3)&&0x2==_0x2a8a54&&_0x13f3bf['isIntersecting'](_0xec78b3))return!0x0;if(0x2==_0x1be7a3&&0x3==_0x2a8a54){const _0x9179ff=_0x1dad56['_findSuggestions'](_0x13f3bf,'insertion')['filter'](({suggestion:_0x343a7b,meta:_0x35dacd})=>_0x35dacd['isOwn']&&'convertInlineImageToBlock'==_0x343a7b['subType']);if(_0x9179ff['length']>0x1&&_0xec78b3['end']['isEqual'](_0x13f3bf['start']))return!0x0;if(0x1==_0x9179ff['length']&&(_0x13f3bf['start']['isEqual'](_0xec78b3['end'])||_0x13f3bf['end']['isEqual'](_0xec78b3['start'])))return!0x0;}if(0x3==_0x1be7a3&&0x3==_0x2a8a54&&_0x13f3bf['start']['isBefore'](_0xec78b3['start'])){const _0x32310b=_0x13f3bf['end']['nodeAfter'],_0x22e5bb=_0xec78b3['start']['nodeBefore'];return _0x21e625['isBlockImage'](_0x32310b)&&_0x32310b===_0x22e5bb;}return!0x1;}function _0xa8ddcf(_0x292e26,_0x58210a){return _0xca8b80(_0x292e26,_0x58210a)?[_0x292e26,_0x58210a]:_0xca8b80(_0x58210a,_0x292e26)?[_0x58210a,_0x292e26]:null;}_0x1be236['plugins']['has']('ImageResize')&&(_0x1dad56['enableDefaultAttributesIntegration']('resizeImage'),_0x1dad56['registerBlockAttribute']('resizedWidth'),_0x1dad56['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x35686f,'FORMAT_IMAGE_SIZE'))),_0x1be236['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1dad56['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1dad56['registerBlockAttribute']('alt')),_0x1be236['plugins']['has']('PictureEditing')&&(_0x1dad56['registerBlockAttribute']('sources'),_0x1dad56['descriptionFactory']['registerDescriptionCallback'](_0xa408d1=>{if('attribute'!=_0xa408d1['type'])return;const {data:_0x4aed6a}=_0xa408d1;return _0x4aed6a&&'sources'==_0x4aed6a['key']?{'type':'format','content':''}:void 0x0;})),_0x1be236['plugins']['has']('ImageSizeAttributes')&&(_0x1dad56['registerBlockAttribute']('width'),_0x1dad56['registerBlockAttribute']('height'),_0x1dad56['descriptionFactory']['registerDescriptionCallback'](_0x1109b7=>{if('attribute'!=_0x1109b7['type'])return;const {data:_0x3b729d}=_0x1109b7;return!_0x3b729d||'width'!=_0x3b729d['key']&&'height'!=_0x3b729d['key']?void 0x0:{'type':'format','content':''};})),_0x1dad56['descriptionFactory']['registerDescriptionCallback'](_0x45afae=>{if(!!_0x2a3b7d['find'](({type:_0x2a66e0,subType:_0x16a4f2})=>_0x45afae['type']==_0x2a66e0&&_0x45afae['subType']==_0x16a4f2))return _0x45afae['previous']?{}:void 0x0;}),_0x1dad56['descriptionFactory']['registerDescriptionCallback'](_0x238ea2=>{if('insertion'==_0x238ea2['type']||'deletion'==_0x238ea2['type']){const _0x27a7f5=_0x238ea2['getContainedElement']();if(_0x27a7f5&&_0x27a7f5['is']('element','caption'))return{'type':'insertion'==_0x238ea2['type']?'addObject':'removeObject','element':_0x27a7f5,'quantity':0x1};}}),_0x1dad56['descriptionFactory']['registerDescriptionCallback'](_0x23fd15=>'formatBlock'==_0x23fd15['type']&&'convertInlineImageToBlock'==_0x23fd15['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x23fd15['type']&&'convertBlockImageToInline'==_0x23fd15['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1dad56['descriptionFactory']['registerDescriptionCallback'](_0x4e068a=>{if('attribute'!=_0x4e068a['type'])return;const {data:_0x5f364a}=_0x4e068a;if(!_0x5f364a||'alt'!=_0x5f364a['key'])return;const _0x5437b9=_0x5f364a['newValue'];return _0x5437b9?{'type':'format','content':o(_0x35686f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5437b9+'\x22')}:{'type':'format','content':o(_0x35686f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xba83e7=this['editor'],_0x445f99=_0xba83e7['locale'];_0xba83e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ce713=>{if('formatBlock'!=_0x4ce713['type']&&'formatInline'!=_0x4ce713['type'])return;const {data:_0x6500ff}=_0x4ce713;if(_0x6500ff){if('imageTextAlternative'==_0x6500ff['commandName']){const _0x1b6c32=_0x6500ff['commandParams'][0x0]['newValue'];return _0x1b6c32?{'type':'format','content':o(_0x445f99,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1b6c32+'\x22')}:{'type':'format','content':o(_0x445f99,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x6500ff['commandName']){const _0x5f53b2=_0x6500ff['commandParams'][0x0]['width'];return _0x5f53b2?{'type':'format','content':o(_0x445f99,'*Set\x20image\x20width:*\x20%0',_0x5f53b2)}:{'type':'format','content':o(_0x445f99,'*Reset\x20image\x20width*')};}}});}}class st extends _0x588311{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4a0dd0=this['editor']['locale'],_0x5aaedf=this['editor']['plugins']['get']('TrackChangesEditing');_0x5aaedf['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5aaedf['registerBlockAttribute']('src'),_0x5aaedf['descriptionFactory']['registerDescriptionCallback'](_0xca1a5b=>{if('attribute'!=_0xca1a5b['type'])return;const {data:_0x278ffb}=_0xca1a5b;return _0x278ffb&&'src'==_0x278ffb['key']?_0x278ffb['newValue']&&_0x278ffb['oldValue']?{'type':'format','content':o(_0x4a0dd0,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x321314=this['editor']['plugins']['get']('TrackChangesEditing');_0x321314['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x321314['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x321314['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x321314['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb9fcf7=this['editor'],_0x571442=_0xb9fcf7['locale'];_0xb9fcf7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59b2cb=>{if('formatBlock'!=_0x59b2cb['type']&&'formatInline'!=_0x59b2cb['type'])return;const {data:_0x3e2709}=_0x59b2cb;if(!_0x3e2709||'replaceImageSource'!=_0x3e2709['commandName'])return;return{'type':'format','content':o(_0x571442,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x588311{['afterInit'](){const _0x3bcd4d=this['editor'];if(!_0x3bcd4d['plugins']['has']('ImageStyleEditing'))return;const _0x5ebc78=_0x3bcd4d['plugins']['get']('TrackChangesEditing'),_0x45ba2c=_0x3bcd4d['plugins']['get']('ImageUtils'),_0x2f6119={};_0x5ebc78['enableCommand']('imageStyle',(_0x1b0861,_0x2e67fa)=>{const _0x4e9bda=_0x3bcd4d['plugins']['get']('Users')['me'],_0x11d704=_0x3bcd4d['commands']['get']('imageStyle');let _0x2bbb12=_0x45ba2c['getClosestSelectedImageElement'](_0x3bcd4d['model']['document']['selection']),_0x7dcacf=_0x3bcd4d['model']['createRangeOn'](_0x2bbb12),_0x46a0ff=_0x11d704['value'];if(_0x46a0ff==_0x2e67fa['value'])return;const _0x12840f={'commandName':'imageStyle','commandParams':[_0x2e67fa],'formatGroupId':_0x58b607()};_0x3bcd4d['model']['change'](()=>{if(_0x5ebc78['getSuggestions']()['filter'](_0x29015c=>_0x29015c['isInContent']&&_0x4e9bda==_0x29015c['author']&&('formatBlock'==_0x29015c['type']||'formatInline'==_0x29015c['type'])&&('imageStylePreApply'==_0x29015c['subType']||'imageStylePostApply'==_0x29015c['subType'])&&_0x29015c['getFirstRange']()['isEqual'](_0x7dcacf))['forEach'](_0x87e18f=>_0x5ebc78['discardSuggestion'](_0x87e18f['head'])),_0x2bbb12=_0x45ba2c['getClosestSelectedImageElement'](_0x3bcd4d['model']['document']['selection']),_0x7dcacf=_0x3bcd4d['model']['createRangeOn'](_0x2bbb12),_0x11d704['refresh'](),_0x3bcd4d['commands']['get']('imageTypeInline')['refresh'](),_0x3bcd4d['commands']['get']('imageTypeBlock')['refresh'](),_0x46a0ff=_0x11d704['value'],_0x46a0ff!=_0x2e67fa['value'])return _0x45ba2c['isInlineImage'](_0x2bbb12)&&_0x11d704['shouldConvertImageType'](_0x2e67fa['value'],_0x2bbb12)?(_0x1b0861({..._0x2e67fa,'setImageSizes':!0x1}),_0x2bbb12=_0x45ba2c['getClosestSelectedImageElement'](_0x3bcd4d['model']['document']['selection']),void _0x5ebc78['markBlockFormat'](_0x2bbb12,{..._0x12840f,'commandReversedParams':[{'value':_0x46a0ff||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x45ba2c['isBlockImage'](_0x2bbb12)?_0x5ebc78['markBlockFormat'](_0x2bbb12,_0x12840f,[],'imageStylePostApply'):_0x5ebc78['markInlineFormat'](_0x7dcacf,_0x12840f,'imageStylePostApply'));});});for(const _0x7fdce0 of _0x3bcd4d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2f6119[_0x7fdce0['name']]=_0x7fdce0['title']['toLowerCase']();_0x5ebc78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5ebc78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5ebc78['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5ebc78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xd57449])=>{_0x45ba2c['setImageNaturalSizeAttributes'](_0xd57449['getContainedElement']());}),_0x5ebc78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x52a4d4,_0x340997)=>{_0x5ebc78['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x52a4d4,{'commandName':_0x340997['commandName'],'commandParams':_0x340997['commandReversedParams']});}),_0x5ebc78['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3ac3b7,_0x35ee05){if(_0x44bba9(_0x3ac3b7,_0x35ee05))return[_0x3ac3b7,_0x35ee05];if(_0x44bba9(_0x35ee05,_0x3ac3b7))return[_0x35ee05,_0x3ac3b7];return null;});const _0x224cf8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x44bba9(_0x3624de,_0x4888ca){const _0x51754f=_0x224cf8['findIndex'](({type:_0x4f5d22,subType:_0x35f227})=>_0x3624de['type']==_0x4f5d22&&_0x3624de['subType']==_0x35f227),_0x500ee1=_0x224cf8['findIndex'](({type:_0x4d4b3b,subType:_0x395b27})=>_0x4888ca['type']==_0x4d4b3b&&_0x4888ca['subType']==_0x395b27);if(_0x51754f<0x0||_0x500ee1<0x0)return!0x1;const _0x2bcd41=_0x3624de['getFirstRange'](),_0xfa057d=_0x4888ca['getFirstRange']();if((0x0==_0x51754f||0x1==_0x51754f)&&0x2==_0x500ee1&&_0x2bcd41['isIntersecting'](_0xfa057d))return!0x0;if(0x2==_0x51754f&&0x3==_0x500ee1){const _0x1128f9=_0x5ebc78['_findSuggestions'](_0x2bcd41,'insertion')['filter'](({suggestion:_0x5e4057,meta:_0x3c853d})=>_0x3c853d['isOwn']&&'convertInlineImageToBlock'==_0x5e4057['subType']);if(_0x1128f9['length']>0x1&&_0xfa057d['end']['isEqual'](_0x2bcd41['start']))return!0x0;if(0x1==_0x1128f9['length']&&(_0x2bcd41['start']['isEqual'](_0xfa057d['end'])||_0x2bcd41['end']['isEqual'](_0xfa057d['start'])))return!0x0;}if(0x3==_0x51754f&&0x3==_0x500ee1&&_0x2bcd41['start']['isBefore'](_0xfa057d['start'])){const _0x2a601e=_0x2bcd41['end']['nodeAfter'],_0x5de722=_0xfa057d['start']['nodeBefore'];return _0x45ba2c['isBlockImage'](_0x2a601e)&&_0x2a601e===_0x5de722;}return!0x1;}_0x3bcd4d['model']['document']['registerPostFixer'](()=>{let _0x26f009=!0x1;const _0x29ef85=Array['from'](_0x3bcd4d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43ed68,data:_0x364d98}of _0x29ef85){const {group:_0x99f68f,type:_0x48be08,subType:_0x441275,id:_0x2e9bdf}=_0x5ebc78['_splitMarkerName'](_0x43ed68);if('suggestion'==_0x99f68f&&_0x5ebc78['hasSuggestion'](_0x2e9bdf)){if('formatBlock'==_0x48be08&&('imageStylePreApply'==_0x441275||'imageStylePostApply'==_0x441275)){const _0x594808=_0x5ebc78['getSuggestion'](_0x2e9bdf);if(_0x364d98['newRange']){const _0x35b015=_0x594808['getFirstRange']()['getContainedElement']();if(_0x45ba2c['isBlockImage'](_0x35b015))continue;_0x5ebc78['discardSuggestion'](_0x594808),_0x26f009=!0x0;}}if('insertion'==_0x48be08&&'imageCaption'==_0x441275&&!_0x364d98['newRange']){const _0x2349ed=_0x5ebc78['getSuggestion'](_0x2e9bdf);_0x2349ed['next']&&_0x2349ed['next']['isInContent']&&(_0x5ebc78['discardSuggestion'](_0x2349ed['next']),_0x26f009=!0x0);}}}return _0x26f009;}),this['_registerLegacyDescription'](_0x2f6119);}['_registerLegacyDescription'](_0x274e88){const _0x12f021=this['editor'],_0x4d7217=_0x12f021['locale'];_0x12f021['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e0058=>{if('formatBlock'!=_0x2e0058['type']&&'formatInline'!=_0x2e0058['type'])return;const {data:_0x2d3692}=_0x2e0058;if(!_0x2d3692||'imageStyle'!=_0x2d3692['commandName'])return;const _0x4615ed=_0x2d3692['commandParams'][0x0]['value'];return _0x27d842('side'===_0x4615ed?o(_0x4d7217,'FORMAT_SIDE_IMAGE'):_0x274e88[_0x4615ed]||_0x4615ed);function _0x27d842(_0x3ecd53){return{'type':'format','content':o(_0x4d7217,'*Format:*\x20%0',_0x3ecd53)};}});}}class rt extends _0x588311{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x39bc80){super(_0x39bc80),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4b43e4=this['editor'],_0x272747=_0x4b43e4['commands']['get']('importWord'),_0x12bf4f=_0x4b43e4['commands']['get']('trackChanges');_0x272747&&(_0x272747['on']('execute',(_0x1ae813,[,_0x14aea7])=>{this['_trackChangesValueDuringImport']=_0x12bf4f['value'],_0x14aea7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x272747,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x272747,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x12bf4f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4b43e4['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x43abe9,_0x3bca7b){const {suggestions:_0x42473b}=_0x3bca7b,_0x5a77a1=this['editor']['commands']['get']('trackChanges'),_0x553185=_0x5a77a1['value'];this['_trackChangesValueDuringImport']!==_0x553185&&(_0x5a77a1['execute'](),this['_trackChangesExecuted']=!0x0),_0x42473b&&_0x42473b['forEach'](({id:_0x1149f1,type:_0x24882c,author:_0x46e396,created_at:_0xfda7d})=>{const _0x4c7d70={'id':_0x1149f1,'type':_0x24882c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x46e396,'createdAt':_0xfda7d?new Date(_0xfda7d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4c7d70);});}}class at extends _0x588311{['afterInit'](){const _0x8e2e7c=this['editor'],_0x2326c7=_0x8e2e7c['plugins']['get']('TrackChangesEditing');if(_0x8e2e7c['plugins']['has']('IndentEditing')&&(_0x2326c7['enableCommand']('indent'),_0x2326c7['enableCommand']('outdent')),_0x8e2e7c['plugins']['has']('IndentBlock')){for(const _0x189158 of['indentBlock','outdentBlock'])_0x2326c7['enableDefaultAttributesIntegration'](_0x189158);}const _0x526e01=_0x8e2e7c['locale'];_0x2326c7['registerBlockAttribute']('blockIndent'),_0x2326c7['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x526e01,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bf4b8=this['editor'],_0x47f289=_0x4bf4b8['locale'],_0x238a1d=_0x4bf4b8['plugins']['get']('TrackChangesEditing');_0x238a1d['descriptionFactory']['registerDescriptionCallback'](_0x62901f=>{if('formatBlock'!=_0x62901f['type'])return;const {data:_0x2e28c3}=_0x62901f;if(!_0x2e28c3)return;if('indentBlock'!=_0x2e28c3['commandName']&&'outdentBlock'!=_0x2e28c3['commandName'])return;const _0x459128=_0x62901f['getItems']()[0x0],_0x11456f=_0x238a1d['descriptionFactory']['getItemLabel'](_0x459128);return'indentBlock'==_0x2e28c3['commandName']?{'type':'format','content':o(_0x47f289,'*Indent:*\x20%0',_0x11456f)}:'outdentBlock'==_0x2e28c3['commandName']?{'type':'format','content':o(_0x47f289,'*Outdent:*\x20%0',_0x11456f)}:void 0x0;});}}class ct extends _0x588311{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x588311{['afterInit'](){const _0x15cafb=this['editor'];if(!_0x15cafb['plugins']['has']('LinkEditing'))return;const _0x2bf118=_0x15cafb['plugins']['get']('TrackChangesEditing'),_0x5e3bb4=_0x15cafb['commands']['get']('link');_0x2bf118['enableDefaultAttributesIntegration']('link'),_0x2bf118['enableDefaultAttributesIntegration']('unlink'),_0x2bf118['registerInlineAttribute']('linkHref');for(const _0x1e701b of _0x5e3bb4['manualDecorators'])_0x2bf118['registerInlineAttribute'](_0x1e701b['id']),_0x2bf118['descriptionFactory']['registerAttributeLabel'](_0x1e701b['id'],'link\x20('+_0x1e701b['label']['toLowerCase']()+')');_0x2bf118['descriptionFactory']['registerDescriptionCallback'](_0x2e4de0=>{if('attribute'!=_0x2e4de0['type'])return;const {data:_0x4a7f73}=_0x2e4de0;if(!_0x4a7f73||'linkHref'!=_0x4a7f73['key'])return;const _0x2a2c14=_0x4a7f73['newValue'],_0x228872=_0x15cafb['locale'];return{'type':'format','content':null==_0x2a2c14?o(_0x228872,'*Remove\x20link*'):o(_0x228872,'*Set\x20link:*\x20%0','\x22'+_0x2a2c14+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cdcfa=this['editor'],_0x215c6c=_0x5cdcfa['locale'];_0x5cdcfa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x408de7=>{if('formatInline'!=_0x408de7['type'])return;const {data:_0x150358}=_0x408de7;if(_0x150358){if('link'==_0x150358['commandName']){const _0x4e5c31=_0x150358['commandParams'][0x0];return{'type':'format','content':o(_0x215c6c,'*Set\x20link:*\x20%0','\x22'+_0x4e5c31+'\x22')};}return'unlink'==_0x150358['commandName']?{'type':'format','content':o(_0x215c6c,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x588311{['afterInit'](){const _0x126ceb=this['editor'],_0x4d1b85=_0x126ceb['locale'];if(!_0x126ceb['plugins']['has']('LegacyListEditing'))return;const _0x27269b=_0x126ceb['plugins']['get']('TrackChangesEditing'),_0x37674a=_0x126ceb['plugins']['has']('LegacyTodoListEditing');function _0x1efa04(_0x165073){return()=>{const _0x22b918=_0x126ceb['model']['document']['selection'],_0x139e2e=_0x126ceb['commands']['get'](_0x165073);if(_0x139e2e['value'])return void _0x126ceb['execute']('paragraph',{});const _0x23c44d=_0x165073['slice'](0x0,-0x4),_0x150f95=function(_0x3ffe97,_0x5978c3,_0x2c7c30){let _0x30b531=Array['from'](_0x3ffe97)['filter'](_0x4895d0=>function(_0x4c6a9a,_0x5f3c94){return _0x5f3c94['checkChild'](_0x4c6a9a['parent'],'listItem')&&!_0x5f3c94['isObject'](_0x4c6a9a);}(_0x4895d0,_0x2c7c30));_0x30b531=_0x30b531['filter'](_0xcfbe6d=>!_0xcfbe6d['is']('element','listItem')||_0xcfbe6d['getAttribute']('listType')!=_0x5978c3);const _0x4b7760=new Set();for(const _0x2e2051 of _0x30b531)_0x2e2051['is']('element','listItem')?_0x4b7760['add'](Le(_0x2e2051)):_0x4b7760['add'](_0x2e2051);return Array['from'](_0x4b7760);}(_0x22b918['getSelectedBlocks'](),_0x23c44d,_0x126ceb['model']['schema']);_0x126ceb['model']['change'](()=>{for(const _0x22e107 of _0x150f95)_0x27269b['markBlockFormat'](_0x22e107,{'commandName':_0x165073,'commandParams':[{'forceValue':!_0x139e2e['value']}],'formatGroupId':'blockName'},Ee(_0x22e107));});};}function _0x5226c0(_0xf1ef81){return()=>{const _0x40b423=function(_0x271525){let _0x3dc570=Array['from'](_0x271525);const _0x13280c=_0x3dc570['findIndex'](_0x1180db=>'listItem'!=_0x1180db['name']);return _0x13280c>-0x1&&(_0x3dc570=_0x3dc570['slice'](0x0,_0x13280c)),_0x3dc570;}(_0x126ceb['model']['document']['selection']['getSelectedBlocks']()),_0x23aa91=_0x126ceb['model']['createRange'](_0x126ceb['model']['createPositionAt'](_0x40b423[0x0],'before'),_0x126ceb['model']['createPositionAt'](_0x40b423[_0x40b423['length']-0x1],'end'));_0x126ceb['model']['change'](()=>{_0x27269b['markBlockFormat'](_0x23aa91,{'commandName':_0xf1ef81,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5cdd2f){const _0x5a18b2=new Set();for(const _0x30e00a of _0x5cdd2f){let _0xe9b0c2=_0x30e00a['nextSibling'];for(;_0xe9b0c2&&_0xe9b0c2['getAttribute']('listIndent')>_0x30e00a['getAttribute']('listIndent');)_0x5a18b2['add'](_0xe9b0c2),_0xe9b0c2=_0xe9b0c2['nextSibling'];}return Array['from'](_0x5a18b2);}(_0x40b423));});};}_0x27269b['enableCommand']('numberedList',_0x1efa04('numberedList')),_0x27269b['enableCommand']('bulletedList',_0x1efa04('bulletedList')),_0x37674a&&_0x27269b['enableCommand']('todoList',_0x1efa04('todoList')),_0x27269b['enableCommand']('indentList',_0x5226c0('indentList')),_0x27269b['enableCommand']('outdentList',_0x5226c0('outdentList')),_0x37674a&&_0x27269b['enableCommand']('checkTodoList',()=>{const _0xd38cf6=_0x126ceb['commands']['get']('checkTodoList'),_0x19c71e=Array['from'](_0xd38cf6['_selectedElements']);_0x19c71e['filter'](_0x2b580a=>_0x2b580a['getAttribute']('todoListChecked')!=_0xd38cf6['value']),_0x126ceb['model']['change'](()=>{for(const _0x335615 of _0x19c71e)_0x27269b['markBlockFormat'](_0x335615,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xd38cf6['value']}]});});}),_0x27269b['descriptionFactory']['registerElementLabel']('listItem',_0x18a482=>o(_0x4d1b85,'ELEMENT_LIST_ITEM',_0x18a482)),_0x27269b['descriptionFactory']['registerDescriptionCallback'](_0x153d30=>{if('formatBlock'!=_0x153d30['type']&&'formatInline'!=_0x153d30['type'])return;const {data:_0xefc400}=_0x153d30;if(_0xefc400){if('numberedList'==_0xefc400['commandName']||'bulletedList'==_0xefc400['commandName']||'todoList'==_0xefc400['commandName'])switch(_0xefc400['commandName']['replace']('List','')){case'bulleted':return _0x5ba2a3(o(_0x4d1b85,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5ba2a3(o(_0x4d1b85,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5ba2a3(o(_0x4d1b85,'ELEMENT_TODO_LIST'));}if('indentList'==_0xefc400['commandName'])return{'type':'format','content':o(_0x4d1b85,'*Indent:*\x20%0',o(_0x4d1b85,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xefc400['commandName'])return{'type':'format','content':o(_0x4d1b85,'*Outdent:*\x20%0',o(_0x4d1b85,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xefc400['commandName'])return _0xefc400['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d1b85,'*Check\x20item*')}:{'type':'format','content':o(_0x4d1b85,'*Uncheck\x20item*')};}function _0x5ba2a3(_0x59c81c){return{'type':'format','content':o(_0x4d1b85,'*Change\x20to:*\x20%0',_0x59c81c)};}});}}function Le(_0x1bbd0c){const _0x2afac9=_0x1bbd0c['getAttribute']('listIndent');if(0x0==_0x2afac9)return _0x1bbd0c;let _0x2b4531=_0x1bbd0c;for(;_0x1bbd0c['previousSibling']&&_0x1bbd0c['previousSibling']['is']('element','listItem');){const _0x2d3c18=_0x1bbd0c['previousSibling']['getAttribute']('listIndent');if(_0x2d3c18==_0x2afac9)_0x2b4531=_0x1bbd0c['previousSibling'];else{if(_0x2d3c18<_0x2afac9)break;}_0x1bbd0c=_0x1bbd0c['previousSibling'];}return _0x2b4531;}function Ee(_0x27dd5e){const _0x445912=[];if(_0x27dd5e['is']('element','listItem')&&_0x27dd5e['getAttribute']('listIndent')>0x0){let _0x4604a2=_0x27dd5e['nextSibling'];for(;_0x4604a2&&'listItem'==_0x4604a2['name']&&_0x4604a2['getAttribute']('listIndent')==_0x27dd5e['getAttribute']('listIndent');)_0x445912['push'](_0x4604a2),_0x4604a2=_0x4604a2['nextSibling'];}return _0x445912;}class ht extends _0x588311{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x241ba5=this['editor']['config']['get']('list.properties'),_0xa93a77=this['editor']['plugins']['get']('TrackChangesEditing');_0x241ba5['styles']&&_0xa93a77['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x241ba5['reversed']&&_0xa93a77['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x241ba5['startIndex']&&_0xa93a77['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xa93a77['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x23fa03,_0x4ced37={}){const _0x42bcb6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2331d0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x42bcb6['markMultiRangeBlockFormat'](_0x2331d0,{'commandName':'listStyle','commandParams':[{'type':_0x4ced37['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4144bf,_0x5b6634={}){const _0x1d8fe8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a0393=this['_getSuggestionBlocks'](_0x532322=>_0x532322['is']('element','listItem')&&'numbered'===_0x532322['getAttribute']('listType'));if(_0x1a0393['length']<0x1)return;const _0x2c1336=_0x1a0393['map'](_0x16d9a1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x16d9a1,'before'),this['editor']['model']['createPositionAt'](_0x16d9a1,0x0)));this['editor']['model']['change'](()=>{_0x1d8fe8['markMultiRangeBlockFormat'](_0x2c1336,{'commandName':'listReversed','commandParams':[{'reversed':_0x5b6634['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x13d51f,_0x3b1e84={}){const _0x3f6b81=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a65aa=this['_getSuggestionBlocks'](_0x5eb747=>_0x5eb747['is']('element','listItem')&&'numbered'===_0x5eb747['getAttribute']('listType'));if(_0x1a65aa['length']<0x1)return;const _0x1192a3=_0x1a65aa['map'](_0x31ac5f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x31ac5f,'before'),this['editor']['model']['createPositionAt'](_0x31ac5f,0x0)));this['editor']['model']['change'](()=>{_0x3f6b81['markMultiRangeBlockFormat'](_0x1192a3,{'commandName':'listStart','commandParams':[{'startIndex':_0x3b1e84['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1953c4){if('formatBlock'!=_0x1953c4['type']&&'formatInline'!=_0x1953c4['type'])return;const _0x22ba66=this['editor']['locale'],{data:_0x3bd55d}=_0x1953c4;if(!_0x3bd55d)return;let _0x37161a,_0x3fe5d0;switch(_0x3bd55d['commandName']){case'listStyle':_0x37161a='*Change\x20to:*\x20%0',_0x3fe5d0={'type':'format','content':o(_0x22ba66,_0x37161a,o(_0x22ba66,this['_getTranslationKeyForListStyle'](_0x3bd55d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x37161a=_0x3bd55d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3fe5d0={'type':'format','content':o(_0x22ba66,_0x37161a)};break;case'listStart':_0x37161a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3fe5d0={'type':'format','content':o(_0x22ba66,_0x37161a,_0x3bd55d['commandParams'][0x0]['startIndex'])};}return _0x3fe5d0;}['_getSuggestionBlocksForListStyle'](){const _0x48b2fd=this['editor']['plugins']['get']('LegacyListUtils');let _0x46edce=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x46edce[0x0]?.['is']('element','listItem')&&_0x46edce['unshift'](..._0x48b2fd['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x46edce[_0x46edce['length']-0x1]?.['is']('element','listItem')&&_0x46edce['push'](..._0x48b2fd['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x46edce=[...new Set(_0x46edce)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x46edce=_0x46edce['filter'](_0x5d0202=>_0x5d0202['is']('element','listItem'))),_0x46edce;}['_getSuggestionBlocks'](_0xc0525c){const _0x46c94e=this['editor']['plugins']['get']('LegacyListUtils');let _0x310bdb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xc0525c)['map'](_0x15d887=>{const _0x2392d8=this['editor']['model']['createPositionAt'](_0x15d887,0x0);return[..._0x46c94e['getSiblingNodes'](_0x2392d8,'backward'),..._0x46c94e['getSiblingNodes'](_0x2392d8,'forward')];})['flat']();return _0x310bdb=[...new Set(_0x310bdb)],_0x310bdb;}['_getTranslationKeyForListStyle'](_0x40075f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x40075f)||'default')['toUpperCase']()+'_LIST_'+_0x40075f['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x588311{['afterInit'](){const _0xf69b71=this['editor'];if(!_0xf69b71['plugins']['has']('MediaEmbedEditing'))return;const _0x4172ad=_0xf69b71['plugins']['get']('TrackChangesEditing'),_0x13b130=_0xf69b71['locale'];_0x4172ad['enableCommand']('mediaEmbed'),_0x4172ad['descriptionFactory']['registerElementLabel']('media',_0x1d92d4=>o(_0x13b130,'ELEMENT_MEDIA',_0x1d92d4)),_0xf69b71['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1e1712,{writer:_0x1925d0,options:_0x217821})=>{if(_0x217821['showSuggestionHighlights'])return _0x1925d0['createEmptyElement']('div');},'converterPriority':'high'}),_0xf69b71['data']['downcastDispatcher']['on']('attribute:url:media',(_0x412058,_0x40315f,_0x2a4c03)=>{_0x2a4c03['options']['showSuggestionHighlights']&&_0x412058['stop']();},{'priority':'high'});}}class lt extends _0x588311{['afterInit'](){const _0x1ff702=this['editor'];_0x1ff702['plugins']['has']('MentionEditing')&&_0x1ff702['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x588311{['afterInit'](){const _0x286df9=this['editor'];if(!_0x286df9['plugins']['has']('MergeFieldsEditing'))return;const _0x59ca99=_0x286df9['plugins']['get']('TrackChangesEditing'),_0x58058d=_0x286df9['locale'];_0x59ca99['enableCommand']('insertMergeField'),_0x59ca99['enableCommand']('insertMergeFieldBlock'),_0x59ca99['enableCommand']('insertMergeFieldImage'),_0x59ca99['descriptionFactory']['registerElementLabel']('mergeField',_0x2f3068=>o(_0x58058d,'ELEMENT_MERGE_FIELD',_0x2f3068)),_0x59ca99['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x35d90c=>o(_0x58058d,'ELEMENT_MERGE_FIELD',_0x35d90c)),_0x59ca99['descriptionFactory']['registerDescriptionCallback'](_0x5092a4=>{if('insertion'!=_0x5092a4['type']&&'deletion'!=_0x5092a4['type'])return;const _0x22974e=_0x5092a4['getContainedElement']();if(null==_0x22974e)return;const _0x22ac08=_0x286df9['plugins']['get']('MergeFieldsEditing');let _0x4679c6;switch(_0x22ac08['getMergeFieldType'](_0x22974e)){case null:return;case'image':{const _0x54c4d8=_0x22ac08['unwrapAffixes'](_0x22974e['getAttribute']('src'));_0x4679c6=_0x22ac08['getLabel'](_0x54c4d8)||_0x54c4d8;break;}default:{const _0x459ee1=_0x22974e['getAttribute']('id');_0x4679c6=_0x22ac08['getLabel'](_0x459ee1)||_0x459ee1;break;}}return'insertion'==_0x5092a4['type']?{'type':'insertion','content':o(_0x58058d,'*Insert:*\x20%0','\x22'+_0x4679c6+'\x22\x20'+o(_0x58058d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x58058d,'*Remove:*\x20%0','\x22'+_0x4679c6+'\x22\x20'+o(_0x58058d,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x588311{['afterInit'](){const _0x496c35=this['editor'],_0x2e49f3=_0x496c35['plugins']['get']('TrackChangesEditing');_0x496c35['plugins']['has']('MultiLevelList')&&(_0x2e49f3['enableDefaultAttributesIntegration']('multiLevelList'),_0x2e49f3['registerBlockAttribute']('listMarkerStyle'),_0x2e49f3['descriptionFactory']['registerDescriptionCallback'](_0x5c0e8a=>this['handleDescriptions'](_0x5c0e8a)));}['handleDescriptions'](_0x271f5d){const _0x3f46eb=this['editor']['locale'],{data:_0x377485}=_0x271f5d,_0x13e004={'type':'format','content':''};if(_0x377485&&'listMarkerStyle'==_0x377485['key']){if(!_0x377485['oldValue'])return{'type':'format','content':o(_0x3f46eb,'*Set\x20format:*\x20%0',o(_0x3f46eb,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x377485['newValue']+')'};if(!_0x377485['newValue']){let _0x1f8843=_0x271f5d['head'];for(;_0x1f8843;){if(_0x1f8843['data']&&'listType'==_0x1f8843['data']['key']&&_0x1f8843['data']['newValue'])return _0x13e004;_0x1f8843=_0x1f8843['next'];}return{'type':'format','content':o(_0x3f46eb,'*Remove\x20format:*\x20%0',o(_0x3f46eb,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x377485['oldValue']+')'};}}}}class pt extends _0x588311{['afterInit'](){const _0x3c9233=this['editor'];if(!_0x3c9233['plugins']['has']('PageBreakEditing'))return;_0x3c9233['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x360476=_0x3c9233['plugins']['get']('TrackChangesEditing'),_0x200143=_0x3c9233['locale'];_0x360476['descriptionFactory']['registerElementLabel']('pageBreak',_0x34187f=>o(_0x200143,'ELEMENT_PAGE_BREAK',_0x34187f));}}class kt extends _0x588311{['afterInit'](){const _0x43a6ee=this['editor'];if(!_0x43a6ee['plugins']['has']('Paragraph'))return;const _0x346e61=_0x43a6ee['locale'],_0x5c623e=_0x43a6ee['plugins']['get']('TrackChangesEditing');_0x5c623e['descriptionFactory']['registerElementLabel']('paragraph',_0x25a7b9=>o(_0x346e61,'ELEMENT_PARAGRAPH',_0x25a7b9)),_0x5c623e['enableDefaultAttributesIntegration']('paragraph'),_0x5c623e['enableCommand']('insertParagraph'),_0x43a6ee['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x43a6ee),{'priority':'highest'}),_0x43a6ee['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x472aba,_0x39fe31,_0x29f35e)=>{_0x29f35e['options']['showSuggestionHighlights']&&nr(_0x43a6ee,{'showActiveMarker':!0x1})(_0x472aba,_0x39fe31,_0x29f35e);},{'priority':'highest'});const _0x4eb210=_0x5c623e['descriptionFactory'];_0x4eb210['registerDescriptionCallback'](_0x4ed772=>{if('insertion'!==_0x4ed772['type'])return;const {start:_0x4b2d4d,end:_0x3dccc5}=_0x4ed772['getFirstRange']();if(!_0x4b2d4d['isTouching'](_0x3dccc5)||!_0x4b2d4d['nodeAfter'])return;const _0xfb87f7=_0x43a6ee['model']['schema'],_0x3fd2f9=_0x4b2d4d['nodeAfter'];return _0xfb87f7['isBlock'](_0x3fd2f9)&&!_0xfb87f7['isLimit'](_0x3fd2f9)&&_0xfb87f7['checkChild'](_0x3fd2f9,'$text')?{'type':'insertion','content':o(_0x346e61,'*Insert:*\x20%0',_0x4eb210['getItemLabel'](_0x3fd2f9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x366240=this['editor'],_0x226647=_0x366240['locale'];_0x366240['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fbcea=>{if('formatBlock'!=_0x3fbcea['type'])return;const {data:_0x15158b}=_0x3fbcea;return _0x15158b&&'paragraph'==_0x15158b['commandName']?{'type':'format','content':o(_0x226647,'*Change\x20to:*\x20%0',o(_0x226647,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x382bca,{showActiveMarker:_0x5c4505=!0x0}={}){return(_0x3e35f1,_0x47d5d6,_0x34f05d)=>{const _0x56b636=_0x382bca['plugins']['get']('TrackChangesEditing'),_0x28ecea=_0x47d5d6['markerRange']['start'],_0x4e0fae=_0x47d5d6['markerRange']['end'],_0x11d38e=_0x382bca['model']['schema'];if(!_0x28ecea['isTouching'](_0x4e0fae)||!_0x28ecea['nodeAfter'])return;const _0x1d6f55=_0x28ecea['nodeAfter'];if(_0x11d38e['isBlock'](_0x1d6f55)&&!_0x11d38e['isLimit'](_0x1d6f55)&&_0x11d38e['checkChild'](_0x1d6f55,'$text')){if(!_0x34f05d['consumable']['consume'](_0x47d5d6['markerRange'],_0x3e35f1['name']))return;const {id:_0xb4982a,authorId:_0x56cfa5}=_0x56b636['_splitMarkerName'](_0x47d5d6['markerName']),_0x396dae=_0x34f05d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0xb4982a,'data-author-id':_0x56cfa5}),_0x106fe0=_0x34f05d['mapper']['toViewPosition'](_0x4e0fae);_0x5c4505&&_0x56b636['activeMarkers']['includes'](_0x47d5d6['markerName'])&&_0x34f05d['writer']['addClass']('ck-suggestion-marker--active',_0x396dae),_0x34f05d['writer']['insert'](_0x106fe0,_0x396dae),_0x34f05d['mapper']['bindElementToMarker'](_0x396dae,_0x47d5d6['markerName']);}};}class wt extends _0x588311{['afterInit'](){const _0x53ec24=this['editor'];_0x53ec24['commands']['get']('replaceSource')&&_0x53ec24['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x588311{['afterInit'](){const _0x15a847=this['editor'];if(!_0x15a847['plugins']['has']('RemoveFormatEditing'))return;_0x15a847['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e0a9e=this['editor'];_0x1e0a9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bee00=>{if('formatBlock'!=_0x5bee00['type']&&'formatInline'!=_0x5bee00['type'])return;const {data:_0x5b8364}=_0x5bee00;return _0x5b8364&&'removeFormat'==_0x5b8364['commandName']?{'type':'format','content':o(_0x1e0a9e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x588311{['afterInit'](){const _0x4ce716=this['editor'];if(!_0x4ce716['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x245a9b=_0x4ce716['plugins']['get']('TrackChangesEditing');_0x245a9b['enableCommand']('goToPreviousRestrictedEditingException'),_0x245a9b['enableCommand']('goToNextRestrictedEditingException');const _0x3529bd=_0x4ce716['plugins']['get']('RestrictedEditingModeEditing');_0x3529bd['enableCommand']('trackChanges'),_0x3529bd['enableCommand']('acceptSuggestion'),_0x3529bd['enableCommand']('discardSuggestion'),_0x3529bd['enableCommand']('acceptAllSuggestions'),_0x3529bd['enableCommand']('discardAllSuggestions'),_0x3529bd['enableCommand']('acceptSelectedSuggestions'),_0x3529bd['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x588311{['afterInit'](){const _0x385376=this['editor'];if(!_0x385376['plugins']['has']('ShiftEnter'))return;const _0x84d735=_0x385376['plugins']['get']('TrackChangesEditing');_0x84d735['enableCommand']('shiftEnter'),_0x385376['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x385376),{'priority':'high'}),_0x385376['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x385376),{'priority':'high'}),_0x385376['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x41fc2e,_0x3962af,_0x30d477)=>{_0x30d477['options']['showSuggestionHighlights']&&je(_0x385376,{'showActiveMarker':!0x1})(_0x41fc2e,_0x3962af,_0x30d477);}),_0x84d735['descriptionFactory']['registerElementLabel']('softBreak',_0x2f3697=>o(_0x385376['locale'],'ELEMENT_LINE_BREAK',_0x2f3697));}}function je(_0x2089fb,{showActiveMarker:_0x3b7acb=!0x0}={}){return(_0x3d9ea8,_0x4bee37,_0x40484d)=>{const _0xda6a89=_0x2089fb['plugins']['get']('TrackChangesEditing');if(!_0x40484d['consumable']['test'](_0x4bee37['markerRange'],_0x3d9ea8['name']))return;const _0x292ed0=_0x2089fb['model'];for(const _0x2a4907 of _0x4bee37['markerRange']['getItems']()){if(!_0x2a4907['is']('element','softBreak'))continue;const _0x132cb9='deletion'==_0x4bee37['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1ab1a8,authorId:_0x5a2a43}=_0xda6a89['_splitMarkerName'](_0x4bee37['markerName']),_0x764215=_0x40484d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x132cb9,'data-suggestion':_0x1ab1a8,'data-author-id':_0x5a2a43}),_0x2f1bca=_0x40484d['mapper']['toViewPosition'](_0x292ed0['createPositionBefore'](_0x2a4907));_0x3b7acb&&_0xda6a89['activeMarkers']['includes'](_0x4bee37['markerName'])&&_0x40484d['writer']['addClass']('ck-suggestion-marker--active',_0x764215),_0x40484d['writer']['insert'](_0x2f1bca,_0x764215),_0x40484d['mapper']['bindElementToMarker'](_0x764215,_0x4bee37['markerName']);}};}class St extends _0x588311{['afterInit'](){const _0x5bcd23=this['editor'],_0x4cb3f5=_0x5bcd23['model'],_0x41a69e=_0x5bcd23['locale'];if(!_0x5bcd23['plugins']['has']('StandardEditingModeEditing'))return;const _0x2be4a1=_0x5bcd23['plugins']['get']('TrackChangesEditing'),_0x56f9f5='restrictedEditingException',_0x4be94f=_0x5bcd23['commands']['get'](_0x56f9f5);_0x2be4a1['enableCommand'](_0x56f9f5,(_0x4b6b80,_0x40e6b7={})=>{const _0x22bd0e=_0x4cb3f5['document']['selection'];if(_0x22bd0e['isCollapsed'])return void _0x4b6b80(_0x40e6b7);const _0x441571=void 0x0!==_0x40e6b7['forceValue']?_0x40e6b7['forceValue']:!_0x4be94f['value'];_0x4cb3f5['change'](()=>{const _0x4c91c3=Array['from'](_0x22bd0e['getRanges']());for(const _0x45642e of _0x4c91c3){const _0x5a6bae=_0x441571?[_0x45642e]:io(_0x56f9f5,_0x45642e,_0x4cb3f5);for(const _0xf3fb38 of _0x5a6bae)_0x2be4a1['markInlineFormat'](_0xf3fb38,{'commandName':_0x56f9f5,'commandParams':[{'forceValue':_0x441571}]});}});}),_0x2be4a1['descriptionFactory']['registerDescriptionCallback'](_0x5bdd7c=>{if('formatBlock'!=_0x5bdd7c['type']&&'formatInline'!=_0x5bdd7c['type'])return;const {data:_0xfd2c73}=_0x5bdd7c;return _0xfd2c73&&_0xfd2c73['commandName']==_0x56f9f5?_0xfd2c73['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41a69e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x41a69e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x588311{['afterInit'](){const _0x24cddc=this['editor'];if(!_0x24cddc['plugins']['has']('Style')||!_0x24cddc['plugins']['has']('DataSchema'))return;const _0x4d52eb=_0x24cddc['plugins']['get']('TrackChangesEditing'),_0x5bb809=_0x24cddc['locale'],_0x39fb93=_0x24cddc['config']['get']('style')||{},_0x4c2486=_0x24cddc['plugins']['get']('GeneralHtmlSupport'),_0x2164ca=_0x24cddc['plugins']['get']('StyleUtils')['normalizeConfig'](_0x24cddc['plugins']['get']('DataSchema'),_0x39fb93['definitions']);_0x4d52eb['enableDefaultAttributesIntegration']('style');const _0x534dac=new Set();for(const _0x11d202 of _0x2164ca['block']){const _0x6211f1=_0x4c2486['getGhsAttributeNameForElement'](_0x11d202['element']);_0x534dac['add'](_0x6211f1);}const _0x2512b8=new Set();for(const _0x351688 of _0x2164ca['inline']){const _0x1321be=_0x4c2486['getGhsAttributeNameForElement'](_0x351688['element']);_0x2512b8['add'](_0x1321be);for(const _0x18bf88 of _0x351688['ghsAttributes'])_0x2512b8['add'](_0x18bf88);}for(const _0x2aeb52 of _0x534dac)_0x4d52eb['registerBlockAttribute'](_0x2aeb52),_0x4d52eb['descriptionFactory']['registerAttributeLabel'](_0x2aeb52,o(_0x5bb809,'FORMAT_STYLE'));for(const _0xdb33f of _0x2512b8)_0x4d52eb['registerInlineAttribute'](_0xdb33f),_0x4d52eb['descriptionFactory']['registerAttributeLabel'](_0xdb33f,o(_0x5bb809,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x290a2e=this['editor'],_0x18ae09=_0x290a2e['locale'];_0x290a2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20b8f0=>{if('formatBlock'!=_0x20b8f0['type']&&'formatInline'!=_0x20b8f0['type'])return;const {data:_0x2f0b52}=_0x20b8f0;return _0x2f0b52&&'style'===_0x2f0b52['commandName']?_0x2f0b52['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x18ae09,'*Set\x20format:*\x20%0',_0x2f0b52['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x18ae09,'*Remove\x20format:*\x20%0',_0x2f0b52['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x588311{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4cba6f){super(_0x4cba6f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x318f48=this['editor'],_0x4e24cc=_0x318f48['model']['document']['selection'];if(!_0x318f48['plugins']['has']('TableEditing'))return;const _0x130584=_0x318f48['locale'],_0x508b2f=_0x318f48['plugins']['get']('TrackChangesEditing'),_0x3c20fe=_0x318f48['plugins']['get']('TableUtils');_0x508b2f['descriptionFactory']['registerElementLabel']('table',_0x5eb4a9=>o(_0x130584,'ELEMENT_TABLE',_0x5eb4a9)),this['_setupColumnsRowsFixing'](),_0x508b2f['enableCommand']('insertTable'),_0x508b2f['enableCommand']('selectTableRow'),_0x508b2f['enableCommand']('selectTableColumn');for(const _0x3c7dc3 of['insertTableRowAbove','insertTableRowBelow']){const _0x2007c9=_0x318f48['commands']['get'](_0x3c7dc3);_0x508b2f['enableCommand'](_0x3c7dc3,_0x34bb2b=>{_0x318f48['model']['change'](_0x1c5816=>{_0x34bb2b();const _0x3fb531='above'===_0x2007c9['order'],_0x1f4a84=_0x3c20fe['getSelectionAffectedTableCells'](_0x4e24cc),_0x4de842=_0x3c20fe['getRowIndexes'](_0x1f4a84),_0x431758=_0x3fb531?_0x4de842['first']-0x1:_0x4de842['last']+0x1,_0x53efb2=_0x1f4a84[0x0]['findAncestor']('table'),_0x58b9ab=_0x3c20fe['createTableWalker'](_0x53efb2,{'startRow':_0x431758,'endRow':_0x431758}),_0x19fb44=Array['from'](_0x58b9ab)['map'](_0x5aa457=>_0x1c5816['createRangeOn'](_0x5aa457['cell']));_0x508b2f['markMultiRangeInsertion'](_0x19fb44,'tableRow');});});}for(const _0x3f73bd of['insertTableColumnLeft','insertTableColumnRight']){const _0x20eaea=_0x318f48['commands']['get'](_0x3f73bd);_0x508b2f['enableCommand'](_0x3f73bd,_0x607db7=>{_0x318f48['model']['change'](_0x88dfe5=>{_0x607db7();const _0x1e5f85='left'===_0x20eaea['order'],_0x1ec6a0=_0x3c20fe['getSelectionAffectedTableCells'](_0x4e24cc),_0x30e8fa=_0x3c20fe['getColumnIndexes'](_0x1ec6a0),_0x22f1e7=_0x1e5f85?_0x30e8fa['first']-0x1:_0x30e8fa['last']+0x1,_0x20b2e7=_0x1ec6a0[0x0]['findAncestor']('table'),_0x4e4ff5=_0x3c20fe['createTableWalker'](_0x20b2e7,{'startRow':0x0,'column':_0x22f1e7,'includeAllSlots':!0x1}),_0x4e29f5=Array['from'](_0x4e4ff5)['map'](_0x18431d=>_0x88dfe5['createRangeOn'](_0x18431d['cell']));_0x508b2f['markMultiRangeInsertion'](_0x4e29f5,'tableColumn');});});}for(const _0x5b74f2 of['removeTableRow','removeTableColumn']){const _0x17c679=_0x5b74f2['substr'](0xb),_0xbd5565=_0x17c679['toLowerCase'](),_0x221813=_0xbd5565['substr'](0x0,0x3)+'span',_0x4b7426='table'+_0x17c679,_0x3d6117='min'+_0x17c679,_0x231d6a='max'+_0x17c679;_0x508b2f['enableCommand'](_0x5b74f2,()=>{_0x318f48['model']['change'](_0x5a86ff=>{const _0x4eaff5=_0x3c20fe['getSelectionAffectedTableCells'](_0x4e24cc),_0x129bd0=_0x4eaff5[0x0]['findAncestor']('table');let _0x23347f;if('removeTableRow'==_0x5b74f2){const _0x3534ca=_0x3c20fe['getRowIndexes'](_0x4eaff5);_0x23347f={'startRow':_0x3534ca['first'],'endRow':_0x3534ca['last'],'includeAllSlots':!0x0};}else{const _0xc8a41c=_0x3c20fe['getColumnIndexes'](_0x4eaff5);_0x23347f={'startColumn':_0xc8a41c['first'],'endColumn':_0xc8a41c['last'],'includeAllSlots':!0x0};}const _0x4c72d5=_0x3c20fe['createTableWalker'](_0x129bd0,_0x23347f),_0x3f26c4=Array['from'](_0x4c72d5)['map'](({cell:_0x177b06})=>_0x177b06),_0x22bcfc=Ne(_0x3f26c4['filter'](_0x4a00e7=>_0x4a00e7['hasAttribute'](_0x221813))),_0x15cf87=Ne(_0x3f26c4['filter'](_0x5bb27d=>!_0x5bb27d['hasAttribute'](_0x221813)))['map'](_0x210bfc=>_0x5a86ff['createRangeOn'](_0x210bfc)),_0xbc97ab=_0x508b2f['markMultiRangeDeletion'](_0x15cf87,_0x4b7426);if(_0xbc97ab&&('tableRow'==_0xbc97ab['subType']||'tableColumn'==_0xbc97ab['subType'])){const _0x1bd9b3=this['_getSuggestionCoords'](_0xbc97ab);for(const _0x3d9d76 of _0x22bcfc){const _0x416fb3=_0x5a86ff['createRangeOn'](_0x3d9d76),_0x5ea0bf=_0x3c20fe['getCellLocation'](_0x3d9d76),_0x3aefbf=_0x3d9d76['getAttribute'](_0x221813)-0x1,_0x502cb7=_0x1bd9b3[_0x3d6117],_0x53ff7e=_0x1bd9b3[_0x231d6a];_0x502cb7<=_0x5ea0bf[_0xbd5565]&&_0x5ea0bf[_0xbd5565]+_0x3aefbf<=_0x53ff7e&&_0xbc97ab['addRange'](_0x416fb3);}}});});}function _0x54348a(_0x51c2e9){const _0x2d33d7=Array['from'](_0x4e24cc['getRanges']())['map'](_0x1e61a8=>_0x153d61['fromRange'](_0x1e61a8));_0x318f48['model']['change'](_0x18b840=>{const _0x239eb3=_0x18b840['batch'];_0x51c2e9=_0x51c2e9['filter'](_0x2a7f75=>'$graveyard'!=_0x2a7f75['root']['rootName']),_0x18b840['setSelection'](_0x51c2e9),_0x318f48['commands']['get']('removeTableRow')['refresh'](),_0x318f48['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x318f48['model']['enqueueChange'](()=>{_0x318f48['model']['enqueueChange'](_0x239eb3,_0x44e34e=>{const _0x289a70=_0x2d33d7['filter'](_0x10a328=>'$graveyard'!=_0x10a328['root']['rootName']);_0x289a70['length']>0x0&&_0x44e34e['setSelection'](_0x289a70);for(const _0x75529a of _0x2d33d7)_0x75529a['detach']();});});});}function _0x34bbb7(_0xb5b09f){_0x318f48['model']['change'](_0x6f0551=>{const _0x28eca2=Array['from'](_0x4e24cc['getRanges']())['map'](_0x41866a=>_0x153d61['fromRange'](_0x41866a)),_0x1c66b8=[];for(const _0x16e7a7 of _0xb5b09f)for(const _0x3950b9 of _0x16e7a7['getItems']({'shallow':!0x0}))_0x1c66b8['push'](_0x3950b9);for(const _0x3de576 of _0x1c66b8)'$graveyard'!=_0x3de576['root']['rootName']&&(_0x6f0551['setSelection'](_0x6f0551['createPositionAt'](_0x3de576,0x0)),_0x318f48['commands']['get']('removeTableColumn')['refresh'](),_0x318f48['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x648080=_0x28eca2['filter'](_0x395c68=>'$graveyard'!=_0x395c68['root']['rootName']);_0x648080['length']>0x0&&_0x6f0551['setSelection'](_0x648080);for(const _0x494a33 of _0x28eca2)_0x494a33['detach']();});}function _0x3efcc9(_0x13d517,_0x2a5d58){return _0x2a5d58['every'](_0x1ad086=>_0x13d517['some'](_0x266c73=>_0x266c73['end']['isEqual'](_0x1ad086['start'])||_0x1ad086['end']['isEqual'](_0x266c73['start'])));}function _0x4e2c46(_0x4aa54a,_0x1498e2){return!_0x4aa54a['some'](_0x2bf391=>_0x1498e2['some'](_0x86af2e=>_0x2bf391['isIntersecting'](_0x86af2e)))&&_0x4aa54a['some'](_0x9564db=>_0x1498e2['some'](_0x473dd4=>_0x9564db['end']['isTouching'](_0x473dd4['start'])));}_0x318f48['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xab8fb2,_0x505091,_0x4be7a6)=>{if(!_0x4be7a6['options']['showSuggestionHighlights'])return;const _0x392332=_0x505091['item'];if(!_0x392332||!_0x392332['is']('element','tableCell'))return;const _0x1c769b=_0x4be7a6['mapper']['toViewElement'](_0x392332);if(_0x1c769b){const {id:_0x34e94d,authorId:_0x5cab9b}=_0x508b2f['_splitMarkerName'](_0x505091['markerName']);_0x6a6e00(_0x1c769b,_0x4be7a6['writer'],(_0x46095f,_0xe7c20,_0x549e1e)=>{_0x549e1e['addClass'](_0x4de00e(_0xe7c20['classes']),_0x46095f),_0x549e1e['setAttribute']('data-suggestion-id',_0x34e94d,_0x46095f),_0x549e1e['setAttribute']('data-author-id',_0x5cab9b,_0x46095f);},(_0xd0ce0e,_0x166a8f,_0x19375d)=>{_0x19375d['removeClass'](_0x4de00e(_0x166a8f['classes']),_0xd0ce0e),_0x19375d['removeAttribute']('data-suggestion-id',_0xd0ce0e),_0x19375d['removeAttribute']('data-author-id',_0xd0ce0e);});}},{'priority':'highest'}),_0x508b2f['descriptionFactory']['registerDescriptionCallback'](_0x5596d9=>{if('insertion'!=_0x5596d9['type']&&'deletion'!=_0x5596d9['type'])return;const _0x2769c7=_0x5596d9['getContainedElement']();if(null!=_0x2769c7&&_0x2769c7['is']('element','table')){if('insertion'==_0x5596d9['type']){const _0x5a4c9e=_0x5596d9['getItems']()['filter'](_0x34e4b0=>_0x34e4b0['is']('$textProxy'))['map'](_0x5b3c78=>_0x5b3c78['data']);if(_0x5a4c9e['length'])return{'type':'insertion','content':o(_0x130584,'*Insert:*\x20%0',o(_0x130584,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5a4c9e['join']('\x20')+'\x22'))};}if('deletion'==_0x5596d9['type']){const _0x8dd882=_0x5596d9['getItems']()['filter'](_0x345f62=>_0x345f62['is']('$textProxy'))['map'](_0x25985d=>_0x25985d['data']);if(_0x8dd882['length'])return{'type':'deletion','content':o(_0x130584,'*Remove:*\x20%0',o(_0x130584,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x8dd882['join']('\x20')+'\x22'))};}}}),_0x508b2f['descriptionFactory']['registerDescriptionCallback'](_0x373464=>{if('tableRow'==_0x373464['subType']){const _0x1f3218=_0x373464['getItems']()['filter'](_0x1205d2=>_0x1205d2['is']('$textProxy'))['map'](_0x1d9b84=>_0x1d9b84['data']),_0x22c01e=this['_getSuggestionCoords'](_0x373464),_0x190111=_0x22c01e['maxRow']-_0x22c01e['minRow']+0x1;if('insertion'==_0x373464['type'])return _0x1f3218['length']?{'type':'insertion','content':o(_0x130584,'*Insert:*\x20%0',o(_0x130584,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x190111,'\x22'+_0x1f3218['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x130584,'*Insert:*\x20%0',o(_0x130584,'ELEMENT_TABLE_ROW',_0x190111))};if('deletion'==_0x373464['type'])return _0x1f3218['length']?{'type':'deletion','content':o(_0x130584,'*Remove:*\x20%0',o(_0x130584,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x190111,'\x22'+_0x1f3218['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x130584,'*Remove:*\x20%0',o(_0x130584,'ELEMENT_TABLE_ROW',_0x190111))};}if('tableColumn'==_0x373464['subType']){const _0xa422ce=_0x373464['getItems']()['filter'](_0x310bb0=>_0x310bb0['is']('$textProxy'))['map'](_0x242199=>_0x242199['data']),_0x2376ab=this['_getSuggestionCoords'](_0x373464),_0x32b2d8=_0x2376ab['maxColumn']-_0x2376ab['minColumn']+0x1;if('insertion'==_0x373464['type'])return _0xa422ce['length']?{'type':'insertion','content':o(_0x130584,'*Insert:*\x20%0',o(_0x130584,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x32b2d8,'\x22'+_0xa422ce['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x130584,'*Insert:*\x20%0',o(_0x130584,'ELEMENT_TABLE_COLUMN',_0x32b2d8))};if('deletion'==_0x373464['type'])return _0xa422ce['length']?{'type':'deletion','content':o(_0x130584,'*Remove:*\x20%0',o(_0x130584,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x32b2d8,'\x22'+_0xa422ce['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x130584,'*Remove:*\x20%0',o(_0x130584,'ELEMENT_TABLE_COLUMN',_0x32b2d8))};}}),_0x508b2f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x54348a),_0x508b2f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x54348a),_0x508b2f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x34bbb7),_0x508b2f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x34bbb7),_0x508b2f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3efcc9),_0x508b2f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3efcc9),_0x508b2f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4e2c46),_0x508b2f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4e2c46);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2a9a1a=this['editor'],_0x27fe35=_0x2a9a1a['model']['document']['selection'];return(_0x463a76,_0x239eba)=>{_0x2a9a1a['model']['change'](_0xc34855=>{const {commandName:_0x2e7211,commandParams:_0x516f35}=_0x239eba;let _0x57a5df=_0x463a76[0x0]['end']['nodeBefore'];_0x516f35&&_0x516f35[0x0]&&!0x1===_0x516f35[0x0]['forceValue']&&(_0x57a5df=_0x463a76[0x0]['start']['nodeAfter']);const _0x40ace7=_0xc34855['createRangeIn'](_0x57a5df);if('$graveyard'==_0x40ace7['root']['rootName'])return;const _0x4052f1=Array['from'](_0x27fe35['getRanges']())['map'](_0x2abcbf=>_0x153d61['fromRange'](_0x2abcbf));_0xc34855['setSelection'](_0x40ace7),_0x2a9a1a['commands']['get'](_0x2e7211)['refresh'](),_0x516f35['push']({'forceDefaultExecution':!0x0}),_0x2a9a1a['execute'](_0x2e7211,..._0x516f35);const _0x4378d5=_0x4052f1['filter'](_0x162ba1=>'$graveyard'!=_0x162ba1['root']['rootName']);_0x4378d5['length']>0x0&&_0xc34855['setSelection'](_0x4378d5);for(const _0x1fd071 of _0x4052f1)_0x1fd071['detach']();});};}['_getCoordsForCells'](_0x16b267){const _0x27df33=this['editor']['plugins']['get']('TableUtils');let _0x421f2c=Number['MAX_SAFE_INTEGER'],_0x5c39b7=Number['MIN_SAFE_INTEGER'],_0x59b541=Number['MAX_SAFE_INTEGER'],_0x487e7c=Number['MIN_SAFE_INTEGER'];for(const _0x48c796 of _0x16b267){if('$graveyard'==_0x48c796['root']['rootName'])continue;const {row:_0xd716fa,column:_0x1269ae}=_0x27df33['getCellLocation'](_0x48c796),_0x30e9ad=_0x48c796['hasAttribute']('rowspan')?_0x48c796['getAttribute']('rowspan')-0x1:0x0,_0x2c40ed=_0x48c796['hasAttribute']('colspan')?_0x48c796['getAttribute']('colspan')-0x1:0x0;_0x421f2c=_0xd716fa<_0x421f2c?_0xd716fa:_0x421f2c,_0x5c39b7=_0xd716fa+_0x30e9ad>_0x5c39b7?_0xd716fa+_0x30e9ad:_0x5c39b7,_0x59b541=_0x1269ae<_0x59b541?_0x1269ae:_0x59b541,_0x487e7c=_0x1269ae+_0x2c40ed>_0x487e7c?_0x1269ae+_0x2c40ed:_0x487e7c;}return{'minRow':_0x421f2c,'maxRow':_0x5c39b7,'minColumn':_0x59b541,'maxColumn':_0x487e7c};}['_setupColumnsRowsFixing'](){const _0xb2da68=this['editor'],_0x80f3f8=_0xb2da68['plugins']['get']('TrackChangesEditing'),_0x55aaf1=_0xb2da68['plugins']['get']('TableUtils');_0xb2da68['model']['document']['on']('change:data',()=>{const _0x18c4c4=Array['from'](_0xb2da68['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x456980,data:_0x10b8a7}of _0x18c4c4){const {group:_0x47470c,id:_0x34f1b7,subType:_0x4ea14a}=_0x80f3f8['_splitMarkerName'](_0x456980);if('suggestion'!=_0x47470c)continue;if(null!=_0x10b8a7['oldRange'])continue;const _0x44cf76=_0x80f3f8['getSuggestion'](_0x34f1b7);this['_tablePostFixingSubtypes']['includes'](_0x4ea14a)&&this['_tableSuggestions']['add'](_0x44cf76);}},{'priority':'low'});const _0x3f920b=(_0x5928c9,_0x21c152)=>{let _0x25dd86=!0x1;const _0x330a80=_0x21c152['createRangeOn'](_0x5928c9),_0x575f80=_0x5928c9['findAncestor']('table'),_0x581a0a=_0x55aaf1['getCellLocation'](_0x5928c9);for(const _0x439af9 of this['_tableSuggestions']){const _0x3dc204=_0x439af9['subType'],_0x39a7c3=_0x3dc204['startsWith']('tablePaste'),_0x342863=_0x3dc204['substr'](_0x39a7c3?0xa:0x5),_0x4ccea2=_0x342863['toLowerCase'](),_0x564f01=_0x4ccea2['substr'](0x0,0x3)+'span',_0x571aaa='min'+_0x342863,_0x2d7dc7='max'+_0x342863;if(!_0x439af9['isInContent'])continue;if(_0x575f80!=_0x439af9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x439af9['isIntersectingWithRange'](_0x330a80))continue;const _0x3c6e6b=_0x5928c9['hasAttribute'](_0x564f01)?_0x5928c9['getAttribute'](_0x564f01)-0x1:0x0,_0x49e6d3=this['_getSuggestionCoords'](_0x439af9),_0x246a1b=_0x49e6d3[_0x571aaa],_0x55b79a=_0x49e6d3[_0x2d7dc7];_0x246a1b<=_0x581a0a[_0x4ccea2]&&_0x581a0a[_0x4ccea2]+_0x3c6e6b<=_0x55b79a&&(_0x439af9['addRange'](_0x330a80),_0x25dd86=!0x0);}return _0x25dd86;};_0xb2da68['model']['document']['registerPostFixer'](_0x37d3f6=>{let _0x141e6a=!0x1;for(const _0x31094a of _0xb2da68['model']['document']['differ']['getChanges']())if('insert'==_0x31094a['type']){if('tableRow'==_0x31094a['name']){for(const _0x4c4ac9 of _0x31094a['position']['nodeAfter']['getChildren']())_0x141e6a=_0x141e6a||_0x3f920b(_0x4c4ac9,_0x37d3f6);}else'tableCell'==_0x31094a['name']&&(_0x141e6a=_0x141e6a||_0x3f920b(_0x31094a['position']['nodeAfter'],_0x37d3f6));}return _0x141e6a;});}['_getSuggestionCoords'](_0x3c6db5){return this['_getCoordsForCells'](_0x3c6db5['getRanges']()['map'](_0x287993=>_0x287993['start']['nodeAfter']));}}function Ne(_0xfa7b29){return Array['from'](new Set(_0xfa7b29)['values']());}class _t extends _0x588311{static get['requires'](){return[At];}['afterInit'](){const _0x4e080b=this['editor'],_0x3b52ce=_0x4e080b['model']['document']['selection'],_0x14ce8f=_0x4e080b['locale'];if(!_0x4e080b['plugins']['has']('TableEditing'))return;const _0x3b2e09=_0x4e080b['plugins']['get']('TrackChangesEditing'),_0x5e8086=_0x4e080b['plugins']['get']('TableUtils'),_0x5c7629=_0x4e080b['plugins']['get'](At);_0x5c7629['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3b2e09['enableCommand']('mergeTableCells',()=>{const _0x5b793f=_0x5e8086['getSelectionAffectedTableCells'](_0x4e080b['model']['document']['selection']);_0x4e080b['model']['change'](()=>{_0x3b2e09['markMultiRangeBlockFormat'](_0x5b793f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4e080b['commands']['get']('mergeTableCells')['on']('execute',(_0x5439b6,_0x2f6f7d)=>{_0x4e080b['commands']['get']('trackChanges')['value']&&(_0x2f6f7d['length']>0x0&&_0x2f6f7d[_0x2f6f7d['length']-0x1]&&_0x2f6f7d[_0x2f6f7d['length']-0x1]['forceDefaultExecution']||_0x3b2e09['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5439b6['stop']());},{'priority':'highest'});for(const _0x46b07e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x107f3b=_0x4e080b['commands']['get'](_0x46b07e);_0x3b2e09['enableCommand'](_0x46b07e,()=>{const _0x4220c7=_0x4e080b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3796c0=>_0x3796c0['is']('element','tableCell')),_0xb90991=_0x107f3b['value'];_0x4e080b['model']['change'](()=>{_0x3b2e09['markMultiRangeBlockFormat']([_0x4220c7,_0xb90991],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x57819b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5c77e4=_0x4e080b['commands']['get'](_0x57819b);_0x3b2e09['enableCommand'](_0x57819b,()=>{const _0x3ec280=_0x5e8086['getSelectionAffectedTableCells'](_0x4e080b['model']['document']['selection'])[0x0],_0x26b85a=_0x3ec280['findAncestor']('table'),{column:_0x5b37af,row:_0xe372de}=_0x5e8086['getCellLocation'](_0x3ec280);let _0x56eb3c=[];if('horizontally'==_0x5c77e4['direction']){const _0x55074f=_0x5e8086['createTableWalker'](_0x26b85a,{'startRow':_0xe372de,'endRow':_0xe372de,'includeAllSlots':!0x0});_0x56eb3c=Array['from'](_0x55074f)['map'](_0x59681a=>_0x59681a['cell']);}else{const _0x4a080f=_0x5e8086['createTableWalker'](_0x26b85a,{'column':_0x5b37af,'includeAllSlots':!0x0});_0x56eb3c=Array['from'](_0x4a080f)['map'](_0x1a819b=>_0x1a819b['cell']);}_0x4e080b['model']['change'](_0x1c9eb6=>{_0x3b2e09['markBlockFormat'](_0x1c9eb6['createRangeOn'](_0x3ec280),{'commandName':_0x57819b,'commandParams':[]},_0x56eb3c,_0x57819b);});});}_0x3b2e09['descriptionFactory']['registerDescriptionCallback'](_0x12b59f=>{if('formatBlock'!=_0x12b59f['type']&&'formatInline'!=_0x12b59f['type'])return;const {data:_0x5a1f9c}=_0x12b59f;return _0x5a1f9c&&'mergeTableCells'==_0x5a1f9c['commandName']?{'type':'format','content':o(_0x14ce8f,'*Merge\x20cells*')}:void 0x0;}),_0x3b2e09['descriptionFactory']['registerDescriptionCallback'](_0x393709=>{if('formatBlock'!=_0x393709['type']&&'formatInline'!=_0x393709['type'])return;const {data:_0x55511a}=_0x393709;return _0x55511a?'splitTableCellVertically'==_0x55511a['commandName']?{'type':'format','content':o(_0x14ce8f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x55511a['commandName']?{'type':'format','content':o(_0x14ce8f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x381aac=_0x5c7629['_acceptFormatSuggestionCallbackFactory']();for(const _0x252e6e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3b2e09['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x252e6e,'accept',_0x381aac);for(const _0x3d727f of['splitTableCellVertically','splitTableCellHorizontally'])_0x3b2e09['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d727f,'accept',_0x381aac);_0x3b2e09['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1fb29b=>{_0x4e080b['model']['change'](_0x24b857=>{const _0x45d16d=Array['from'](_0x3b52ce['getRanges']())['map'](_0x2b633e=>_0x153d61['fromRange'](_0x2b633e));_0x24b857['setSelection'](_0x1fb29b),_0x4e080b['commands']['get']('mergeTableCells')['refresh'](),_0x4e080b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3f8bc8=_0x45d16d['filter'](_0x4a4dcd=>'$graveyard'!=_0x4a4dcd['root']['rootName']);_0x3f8bc8['length']>0x0&&_0x24b857['setSelection'](_0x3f8bc8);for(const _0x34786f of _0x45d16d)_0x34786f['detach']();});});for(const _0xea1b5c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x429f84=_0x4e080b['commands']['get'](_0xea1b5c);_0x429f84['on']('set:isEnabled',(_0x22058a,_0x31794a,_0x485f0b)=>{if(_0x485f0b){const _0xed5f26=_0x4e080b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1282d1=>_0x1282d1['is']('element','tableCell'));this['_areMergableCells'](_0x429f84['value'],_0xed5f26)||(_0x22058a['return']=!0x1,_0x22058a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x43e7c4=this['editor']['commands']['get']('mergeTableCells'),_0x6788af=this['editor']['plugins']['get']('TableUtils');if(!_0x43e7c4['isEnabled'])return!0x1;const _0x247085=_0x6788af['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2f84de of _0x247085)for(const _0x398f54 of _0x247085)if(_0x2f84de!=_0x398f54&&!this['_areMergableCells'](_0x2f84de,_0x398f54))return!0x1;return!0x0;}['_areMergableCells'](_0x18669a,_0x43eeec){const _0x114c67=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25161c=this['editor']['model']['createRangeOn'](_0x18669a),_0x1b61c5=this['editor']['model']['createRangeOn'](_0x43eeec),_0x5df550=new Set(),_0x4a13ba=new Set();for(const _0x560d8d of _0x114c67['getSuggestions']())if(('insertion'==_0x560d8d['type']||'deletion'==_0x560d8d['type']||'mergeTableCells'==_0x560d8d['subType'])&&_0x560d8d['isInContent']){for(const _0x4e321a of _0x560d8d['getRanges']())_0x4e321a['containsRange'](_0x25161c,!0x0)&&_0x5df550['add'](_0x560d8d['type']+':'+_0x560d8d['author']['id']),_0x4e321a['containsRange'](_0x1b61c5,!0x0)&&_0x4a13ba['add'](_0x560d8d['type']+':'+_0x560d8d['author']['id']);}if(_0x5df550['size']!=_0x4a13ba['size'])return!0x1;for(const _0x1da7b2 of _0x5df550)if(!_0x4a13ba['has'](_0x1da7b2))return!0x1;return!0x0;}}class Ct extends _0x588311{static get['requires'](){return[At];}['afterInit'](){const _0x503a44=this['editor'];if(!_0x503a44['plugins']['has']('TableEditing'))return;const _0x15ba33=_0x503a44['locale'],_0x2226ef=_0x503a44['plugins']['get']('TrackChangesEditing');_0x2226ef['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2226ef['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2226ef['registerBlockAttribute']('headingRows'),_0x2226ef['registerBlockAttribute']('headingColumns'),_0x2226ef['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x15ba33,'FORMAT_HEADER_ROW')),_0x2226ef['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x15ba33,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4ebc7c=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa2157c=this['editor']['plugins']['get']('TableUtils'),_0x1c96ba=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x2a7cc4({showActiveMarker:_0x3b7b76=!0x0,setDataAttribute:_0x3a401f=!0x0}={}){return(_0x4e72d4,_0x270ec8,_0x195fdc)=>{const {type:_0x3ba682,id:_0x4d9209}=_0x4ebc7c['_splitMarkerName'](_0x270ec8['markerName']),_0x493284=_0x4ebc7c['getSuggestion'](_0x4d9209),_0x6a3e0f=_0x493284['data'];if('formatBlock'!=_0x493284['type']||!_0x6a3e0f||'setTableColumnHeader'!=_0x6a3e0f['commandName'])return;if(_0x270ec8['item'])return void _0x4e72d4['stop']();if(!_0x195fdc['consumable']['consume'](_0x270ec8['markerRange'],_0x4e72d4['name']))return;const _0x2d14be=_0x270ec8['markerRange']['start']['nodeAfter'],_0x18d011=_0x270ec8['markerRange']['end']['nodeBefore'],_0x4e1822=_0x2d14be['parent']['parent'],{column:_0x1c2e26}=_0xa2157c['getCellLocation'](_0x2d14be),{column:_0x418d5d}=_0xa2157c['getCellLocation'](_0x18d011);for(let _0x3832f8=_0x1c2e26;_0x3832f8<=_0x418d5d;_0x3832f8++){const _0x1f69a2=_0xa2157c['createTableWalker'](_0x4e1822,{'column':_0x3832f8,'includeAllSlots':!0x1});for(const _0x1853a1 of _0x1f69a2){const _0x377918=_0x1853a1['cell'],_0x43b59f=_0x195fdc['mapper']['toViewElement'](_0x377918);_0x195fdc['writer']['addClass']('ck-suggestion-marker-'+_0x3ba682,_0x43b59f),_0x3a401f&&_0x195fdc['writer']['setAttribute']('data-suggestion',_0x4d9209,_0x43b59f),_0x195fdc['mapper']['bindElementToMarker'](_0x43b59f,_0x270ec8['markerName']),_0x3b7b76&&(_0x4ebc7c['activeMarkers']['includes'](_0x270ec8['markerName'])?_0x195fdc['writer']['addClass']('ck-suggestion-marker--active',_0x43b59f):_0x195fdc['writer']['removeClass']('ck-suggestion-marker--active',_0x43b59f));}}};}_0x4ebc7c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1c96ba),_0x4ebc7c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1c96ba),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2a7cc4(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3fcc03,_0x56f2b1,_0x57ba94)=>{_0x57ba94['options']['showSuggestionHighlights']&&_0x2a7cc4({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3fcc03,_0x56f2b1,_0x57ba94);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5de50c,_0x4678db,_0x30549b)=>{const {type:_0x1197a5,id:_0x555e21}=_0x4ebc7c['_splitMarkerName'](_0x4678db['markerName']),_0xfecf36=_0x4ebc7c['getSuggestion'](_0x555e21),_0x17549c=_0xfecf36['data'];if('formatBlock'!=_0xfecf36['type']||!_0x17549c||'setTableColumnHeader'!=_0x17549c['commandName'])return;const _0x497686=_0x30549b['mapper']['markerNameToElements'](_0x4678db['markerName']);if(_0x497686){for(const _0x588293 of _0x497686)_0x30549b['writer']['removeClass']('ck-suggestion-marker-'+_0x1197a5,_0x588293),_0x30549b['writer']['removeClass']('ck-suggestion-marker--active',_0x588293),_0x30549b['writer']['removeAttribute']('data-suggestion',_0x588293),_0x30549b['mapper']['unbindElementFromMarkerName'](_0x588293,_0x4678db['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd3363=this['editor'],_0x4d4154=_0xd3363['locale'];function _0x42928c(_0x220a7c){return{'type':'format','content':o(_0x4d4154,'*Format:*\x20%0',_0x220a7c)};}_0xd3363['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1341f3=>{if('formatBlock'!=_0x1341f3['type'])return;const {data:_0x535e60}=_0x1341f3;if(_0x535e60){if('setTableRowHeader'==_0x535e60['commandName']){const _0x3c1b1c=_0x535e60['commandParams'][0x0]['forceValue'];return _0x42928c(o(_0x4d4154,_0x3c1b1c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x535e60['commandName']){const _0x5bfe93=_0x535e60['commandParams'][0x0]['forceValue'];return _0x42928c(o(_0x4d4154,_0x5bfe93?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x588311{['afterInit'](){const _0x4b2787=this['editor'],_0x164fd9=_0x4b2787['locale'],_0x48d9b2=_0x4b2787['plugins']['get']('TrackChangesEditing');function _0x59de11(_0x575e15){return{'type':'format','content':''+o(_0x164fd9,'*Set\x20table\x20type:*\x20%0',_0x575e15)};}_0x4b2787['plugins']['has']('TableLayout')&&(_0x48d9b2['enableCommand']('insertTableLayout'),_0x48d9b2['enableDefaultAttributesIntegration']('tableType'),_0x48d9b2['registerBlockAttribute']('tableType'),_0x48d9b2['descriptionFactory']['registerElementLabel'](_0x55878b=>_0x55878b['is']('element','table')&&'layout'===_0x55878b['getAttribute']('tableType'),_0x333deb=>o(_0x164fd9,'ELEMENT_LAYOUT_TABLE',_0x333deb)),_0x48d9b2['descriptionFactory']['registerDescriptionCallback'](_0x169d07=>{const {data:_0x500ca9}=_0x169d07;if(_0x500ca9&&'tableType'==_0x500ca9['key'])switch(_0x500ca9['newValue']){case'layout':return _0x59de11(o(_0x164fd9,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x59de11(o(_0x164fd9,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x180114=>[_0x180114,null]));class Nt extends _0x588311{static get['requires'](){return[At];}['afterInit'](){const _0x96c8f5=this['editor'];if(!_0x96c8f5['plugins']['has']('TableClipboard'))return;const _0x1a1407=_0x96c8f5['plugins']['get']('TrackChangesEditing'),_0x2a4554=_0x96c8f5['plugins']['get']('TableUtils'),_0x48082f=_0x96c8f5['plugins']['get'](At),_0x276b44=_0x96c8f5['plugins']['get']('TableClipboard'),_0x18936b=_0x96c8f5['plugins']['get']('TableSelection'),_0x15a676=_0x96c8f5['plugins']['get'](_0x13a6a5);_0x48082f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x96c8f5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x96c8f5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3730c0=null,_0x35e5ec=!0x1;_0x15a676['on']('contentInsertion',(_0x1fa51d,_0x337b7)=>{_0x35e5ec='paste'===_0x337b7['method'];}),_0x96c8f5['model']['on']('insertContent',(_0x56279c,_0xbe6a59)=>{if(!_0x35e5ec&&null===_0x18936b['getSelectedTableCells']())return;const [_0x1a33b1,_0x463d45]=_0xbe6a59,_0x3b67f9=_0xbe6a59[_0xbe6a59['length']-0x1];_0x3b67f9&&_0x3b67f9['forceDefaultExecution']||_0x1a1407['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4b7562,_0x49251a,_0x42e6a3,_0x323ca8,_0x517525){if(_0x49251a&&!_0x49251a['is']('documentSelection'))return!0x1;const _0x41d501=_0x517525['getTableIfOnlyTableInContent'](_0x4b7562,_0x42e6a3);if(!_0x41d501||!Ue(_0x41d501,void 0x0,_0x323ca8))return!0x1;const _0x9080d3=_0x323ca8['getSelectionAffectedTableCells'](_0x42e6a3['document']['selection']);if(!_0x9080d3['length'])return!0x1;const _0x5a7f40=_0x9080d3[0x0]['findAncestor']('table'),_0x2afb9b=_0x323ca8['getRowIndexes'](_0x9080d3),_0xa38c70=_0x323ca8['getColumnIndexes'](_0x9080d3),_0x5c68ea={'startRow':_0x2afb9b['first'],'endRow':_0x2afb9b['last'],'startColumn':_0xa38c70['first'],'endColumn':_0xa38c70['last']};return 0x1==_0x9080d3['length']&&(_0x5c68ea['endRow']+=_0x323ca8['getRows'](_0x41d501)-0x1,_0x5c68ea['endColumn']+=_0x323ca8['getColumns'](_0x41d501)-0x1),Ue(_0x5a7f40,_0x5c68ea,_0x323ca8);}(_0x1a33b1,_0x463d45,_0x96c8f5['model'],_0x2a4554,_0x276b44)&&(_0x56279c['stop'](),_0x3730c0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x96c8f5['model']['change'](()=>{_0x96c8f5['model']['insertContent'](_0xbe6a59[0x0],_0xbe6a59[0x1],_0xbe6a59[0x2],{'forceDefaultExecution':!0x0});const _0x4d40b1=_0x58b607(),{rowInsertionRanges:_0x5ba187,columnInsertionRanges:_0x453e02,insertionRanges:_0x3bf597,deletionRanges:_0x687d72,cells:_0x2eb7e5}=_0x3730c0;_0x5ba187['length']&&_0x1a1407['markMultiRangeInsertion'](_0x5ba187,'tablePasteRow',{'tablePasteChainId':_0x4d40b1}),_0x453e02['length']&&_0x1a1407['markMultiRangeInsertion'](_0x453e02,'tablePasteColumn',{'tablePasteChainId':_0x4d40b1}),_0x3bf597['length']&&(_0x1a1407['markMultiRangeInsertion'](_0x3bf597,'tablePaste',{'tablePasteChainId':_0x4d40b1,'skipNestingCheck':!0x0}),_0x3bf597['forEach'](_0x541beb=>_0x541beb['detach']?.())),_0x687d72['length']&&(_0x1a1407['markMultiRangeDeletion'](_0x687d72,'tablePaste',{'tablePasteChainId':_0x4d40b1,'skipNestingCheck':!0x0}),_0x687d72['forEach'](_0x10b0da=>_0x10b0da['detach']?.()));const _0x2af314=_0x1a1407['markMultiRangeBlockFormat'](_0x2eb7e5['map'](({element:_0x5385b8})=>_0x5385b8),{'formatGroupId':_0x58b607()},[],'tablePasteCell',{'tablePasteChainId':_0x4d40b1});if(_0x2af314){const _0x2e03cf=_0x2af314['getMarkers'](),_0x549aa4=[];for(const {element:_0x3b8402,attributes:_0x121dab}of _0x2eb7e5){if(!_0x121dab)continue;const _0x38486e=_0x96c8f5['model']['createRangeOn'](_0x3b8402),_0x1acfa4=_0x2e03cf['find'](_0x238b5c=>_0x238b5c['getRange']()['isEqual'](_0x38486e));_0x1acfa4&&_0x549aa4['push']([_0x1acfa4['name'],_0x121dab]);}_0x549aa4['length']&&_0x2af314['setAttribute']('markerAttributes',Object['fromEntries'](_0x549aa4));}_0x3730c0=null;}));},{'priority':_0x30d56f['high']+0xa}),_0x15a676['on']('contentInsertion',()=>{_0x35e5ec=!0x1;},{'priority':'lowest'}),_0x96c8f5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xd37dfd,_0x570f4d)=>{const [_0x70aebd,_0x39f58f,,_0x85ef9a]=_0x570f4d;if(!_0x3730c0)return;_0xd37dfd['stop']();const _0x58f79f=_0x70aebd['cell'],_0x190ce4=_0x39f58f,_0x4f68ef=Oe(_0x58f79f),_0x553bf2=Oe(_0x190ce4);_0xd37dfd['return']=_0x58f79f;let _0xf2584e=null,_0x546cd3=null;if(_0x553bf2||_0x4f68ef){if(_0x4f68ef&&!_0x553bf2){_0x85ef9a['remove'](_0x58f79f['getChild'](0x0));for(const _0x8fc2b6 of Array['from'](_0x190ce4['getChildren']()))_0x85ef9a['insert'](_0x8fc2b6,_0x58f79f,'end');const _0x35d624=_0x3730c0['rowInsertionIndexes']['includes'](_0x70aebd['row']),_0x39d0d5=_0x3730c0['columnInsertionIndexes']['includes'](_0x70aebd['column']);_0x35d624||_0x39d0d5||(_0xf2584e=_0x153d61['fromRange'](_0x85ef9a['createRangeIn'](_0x58f79f)));}else _0x553bf2&&!_0x4f68ef&&(_0x546cd3=_0x85ef9a['createRangeIn'](_0x58f79f));}else{const _0x29d4f0=_0x85ef9a['createElement']('tableCellSuggestion'),_0x5e880e=_0x85ef9a['createElement']('tableCellSuggestion');_0x85ef9a['wrap'](_0x85ef9a['createRangeIn'](_0x58f79f),_0x5e880e),_0x85ef9a['insert'](_0x29d4f0,_0x58f79f,0x0);for(const _0x4637f8 of Array['from'](_0x190ce4['getChildren']()))_0x85ef9a['insert'](_0x4637f8,_0x29d4f0,'end');_0xf2584e=_0x153d61['fromRange'](_0x85ef9a['createRangeOn'](_0x29d4f0)),_0x546cd3=_0x153d61['fromRange'](_0x85ef9a['createRangeOn'](_0x5e880e));}const _0x3418e6=Array['from'](_0x190ce4['getAttributes']())['filter'](([_0x16d9e3])=>Be['includes'](_0x16d9e3));_0x3730c0['cells']['push']({'element':_0x58f79f,'attributes':_0x3418e6['length']?Object['fromEntries'](_0x3418e6):null}),_0xf2584e&&_0x3730c0['insertionRanges']['push'](_0xf2584e),_0x546cd3&&_0x3730c0['deletionRanges']['push'](_0x546cd3);},{'priority':'high'}),_0x2a4554['on']('insertColumns',(_0x5b3fc1,_0x26372f)=>{const [_0x5afda0,_0x5dfc7d={}]=_0x26372f;if(!_0x3730c0)return;const _0x42111f=_0x5dfc7d['at']||0x0,_0x5c4c79=_0x5dfc7d['columns']||0x1;_0x3730c0['columnInsertionIndexes']=new Array(_0x5c4c79)['fill'](_0x42111f)['map']((_0x4d1c42,_0x5b8cd2)=>_0x4d1c42+_0x5b8cd2);for(const {cell:_0x4301ee}of _0x2a4554['createTableWalker'](_0x5afda0,{'startColumn':_0x42111f,'endColumn':_0x42111f+_0x5c4c79-0x1}))_0x3730c0['columnInsertionRanges']['push'](_0x96c8f5['model']['createRangeOn'](_0x4301ee));},{'priority':'low'}),_0x2a4554['on']('insertRows',(_0x27ccf4,_0x93a9f2)=>{const [_0x579d5f,_0x2c4324={}]=_0x93a9f2;if(!_0x3730c0)return;const _0x4d15bc=_0x2c4324['at']||0x0,_0x5bc368=_0x2c4324['rows']||0x1;_0x3730c0['rowInsertionIndexes']=new Array(_0x5bc368)['fill'](_0x4d15bc)['map']((_0x54ba16,_0x38fe34)=>_0x54ba16+_0x38fe34);for(const {cell:_0x336d45}of _0x2a4554['createTableWalker'](_0x579d5f,{'startRow':_0x4d15bc,'endRow':_0x4d15bc+_0x5bc368-0x1}))_0x3730c0['rowInsertionRanges']['push'](_0x96c8f5['model']['createRangeOn'](_0x336d45));},{'priority':'low'}),_0x1a1407['descriptionFactory']['registerDescriptionCallback'](_0x15b360=>{if(_0x15b360['subType']&&_0x15b360['subType']['startsWith']('tablePaste'))return _0x15b360['previous']?{}:{'type':'insertion','content':o(_0x96c8f5['locale'],'*Replace\x20table\x20cells*')};});const _0x4dc544=()=>!0x1;for(const _0x57a91f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1a1407['_suggestionFactory']['registerCustomCallback']('insertion',_0x57a91f,'join',_0x4dc544),_0x1a1407['_suggestionFactory']['registerCustomCallback']('deletion',_0x57a91f,'join',_0x4dc544),_0x1a1407['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x57a91f,'join',_0x4dc544);_0x1a1407['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4dc544),_0x1a1407['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x493521,_0x4ecf88,_0x19ebbb)=>{const _0x19a959=_0x493521['map'](_0x58d9f6=>_0x58d9f6['getContainedElement']())['filter'](_0x38fd63=>_0x38fd63),_0x2ce45b=new Map(_0x19a959['map'](_0xd504ef=>[_0xd504ef,null]));if(_0x3730c0){for(const {element:_0xfdbf22,attributes:_0x288f60}of _0x3730c0['cells'])_0x288f60&&_0x2ce45b['set'](_0xfdbf22,_0x288f60);}else{if(_0x19ebbb&&_0x19ebbb['markerAttributes'])for(const [_0x7d4002,_0x564113]of Object['entries'](_0x19ebbb['markerAttributes'])){const _0x2dae52=_0x96c8f5['model']['markers']['get'](_0x7d4002),_0x59b4f3=_0x2dae52?_0x2dae52['getRange']()['getContainedElement']():null;_0x59b4f3&&_0x2ce45b['set'](_0x59b4f3,_0x564113);}}_0x96c8f5['model']['change'](_0x57b5a8=>{for(const [_0x5c5cf1,_0x2a3349]of _0x2ce45b)_0x57b5a8['setAttributes']({...xe,..._0x2a3349},_0x5c5cf1);});});const _0x421b86=(_0x5be58d,_0x565aea)=>{_0x1a1407['_suggestionFactory']['registerCustomCallback'](_0x5be58d,'tablePaste',_0x565aea,(_0x3f4935,_0x59de71,_0x2688ff)=>{_0x96c8f5['model']['change'](_0x185e30=>{const _0x2e901b=[];for(const _0x174786 of _0x3f4935){const _0x1ba20c=_0x174786['start']['nodeAfter'];_0x1ba20c['is']('element','tableCellSuggestion')&&_0x2e901b['push'](_0x1ba20c);}_0x1a1407['_suggestionFactory']['getSuggestionCallback'](_0x5be58d,null,_0x565aea)(_0x3f4935,_0x59de71,_0x2688ff);for(const _0x4e4faf of _0x2e901b)'$graveyard'!=_0x4e4faf['root']['rootName']&&_0x185e30['unwrap'](_0x4e4faf);});});};_0x421b86('insertion','accept'),_0x421b86('insertion','discard'),_0x421b86('deletion','accept'),_0x421b86('deletion','discard'),_0x1a1407['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x466bc6=>{const _0x22da81=_0x466bc6['map'](_0x864a0d=>_0x864a0d['getContainedElement']()),_0x4c4616=_0x22da81[0x0]['findAncestor']('table'),{minRow:_0x9922e,maxRow:_0x35b42c}=_0x48082f['_getCoordsForCells'](_0x22da81);_0x2a4554['removeRows'](_0x4c4616,{'at':_0x9922e,'rows':_0x35b42c-_0x9922e+0x1});}),_0x1a1407['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x262c87=>{const _0x4eb56b=_0x262c87['map'](_0x3d97aa=>_0x3d97aa['getContainedElement']()),_0xa9b042=_0x4eb56b[0x0]['findAncestor']('table'),{minColumn:_0x3fcc36,maxColumn:_0x2c93fa}=_0x48082f['_getCoordsForCells'](_0x4eb56b);_0x2a4554['removeColumns'](_0xa9b042,{'at':_0x3fcc36,'columns':_0x2c93fa-_0x3fcc36+0x1});});const _0x185850=(_0xdc935d,_0x18350e)=>{if(!_0x18350e['subType']||!_0x18350e['subType']['startsWith']('tablePaste'))return;const _0x5b393e=_0x18350e['attributes']['tablePasteChainId'],_0x49d426=_0x1a1407['getSuggestions']()['filter'](_0x26265b=>_0x26265b['isInContent']&&_0x26265b['attributes']&&_0x26265b['attributes']['tablePasteChainId']==_0x5b393e);_0x49d426['length']&&_0x18350e['getAllAdjacentSuggestions']()['length']!=_0x49d426['length']&&_0x49d426['reduce']((_0x4ca129,_0x24709)=>(_0x4ca129['next']=_0x24709,_0x24709['previous']=_0x4ca129,_0x24709));};function _0x4ff117(_0x3aef59,_0x105708=!0x0){const {id:_0x3a6cc8,authorId:_0x4385a5}=_0x1a1407['_splitMarkerName'](_0x3aef59['markerName']),_0x448922=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x367428=_0x1a1407['activeMarkers']['includes'](_0x3aef59['markerName']);return _0x367428&&_0x448922['push']('ck-suggestion-marker--active'),{'classes':_0x448922,'attributes':{'data-suggestion':_0x3a6cc8,'data-author-id':_0x4385a5},'priority':_0x367428&&_0x105708?0xbc2:0xbb8};}_0x1a1407['on']('suggestionLoaded',_0x185850,{'priority':'high'}),_0x1a1407['on']('suggestionUnloaded',_0x185850,{'priority':'high'}),_0x96c8f5['model']['document']['registerPostFixer'](()=>{let _0x59f03d=!0x1;const _0x4dae8b=Array['from'](_0x96c8f5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b03d1,data:_0x31c88c}of _0x4dae8b){const {group:_0x1949b0,type:_0x283a75,id:_0x37ce58}=_0x1a1407['_splitMarkerName'](_0x3b03d1);if('suggestion'!=_0x1949b0||'deletion'!=_0x283a75||_0x31c88c['oldRange'])continue;if(!_0x1a1407['hasSuggestion'](_0x37ce58))continue;const _0x467ed6=_0x1a1407['getSuggestion'](_0x37ce58)['getRanges'](),_0x45c942=_0x96c8f5['plugins']['get']('Users')['me'];for(const _0xe0be0b of _0x1a1407['getSuggestions']()){if(!_0xe0be0b['isInContent']||_0xe0be0b['author']!=_0x45c942)continue;if('formatBlock'!=_0xe0be0b['type']||'tablePasteCell'!=_0xe0be0b['subType'])continue;if(_0xe0be0b['getRanges']()['every'](_0x37e3ba=>_0x467ed6['some'](_0x590043=>_0x590043['containsRange'](_0x37e3ba,!0x0)))){for(const _0x1d0cf7 of _0xe0be0b['getAllAdjacentSuggestions']())_0x1d0cf7['isInContent']&&(_0x1d0cf7['discard'](),_0x59f03d=!0x0);}}}return _0x59f03d;}),_0x96c8f5['model']['document']['registerPostFixer'](_0x2239ba=>{const _0x8b61c6=_0x96c8f5['commands']['get']('redo');if(!_0x8b61c6||!_0x8b61c6['_createdBatches']['has'](_0x2239ba['batch']))return!0x1;let _0x22025a=!0x1;const _0x49a84a=_0x96c8f5['plugins']['get']('Users')['me'],_0x2a7a82=_0x96c8f5['model']['document']['differ']['getChanges'](),_0x1ebe0e=Array['from'](_0x96c8f5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x522965,data:_0x4c654b})=>{const {group:_0x1794ac,subType:_0x286852,authorId:_0x44f0b6}=_0x1a1407['_splitMarkerName'](_0x522965);return'suggestion'==_0x1794ac&&'tablePaste'==_0x286852&&_0x44f0b6==_0x49a84a['id']&&!_0x4c654b['oldRange'];});for(const _0xceee4a of _0x2a7a82){if('insert'!=_0xceee4a['type']||'tableCellSuggestion'!=_0xceee4a['name']||0x1!=_0xceee4a['length'])continue;const _0x30e12f=_0x2239ba['createRange'](_0xceee4a['position'],_0xceee4a['position']['getShiftedBy'](0x1));if(!_0x1ebe0e['find'](({data:_0x58625c})=>_0x58625c['newRange']['isEqual'](_0x30e12f))){for(const {name:_0x469157,data:_0x4aae3d}of _0x1ebe0e)if(_0x30e12f['containsRange'](_0x4aae3d['newRange'])){_0x2239ba['updateMarker'](_0x469157,{'range':_0x30e12f}),_0x22025a=!0x0;break;}}}return _0x22025a;}),_0x96c8f5['model']['document']['registerPostFixer'](_0x33bacb=>{let _0x59987f=!0x1;const _0x2b45bb=_0x96c8f5['plugins']['get']('Users')['me'],_0x3a4317=_0x1a1407['getSuggestions']()['filter'](_0x1673ed=>_0x1673ed['isInContent']&&_0x1673ed['author']==_0x2b45bb),_0x5843aa=new Set(),_0x31226f=new Set();for(const _0x15ef59 of _0x3a4317)if('tablePaste'==_0x15ef59['subType'])for(const _0x5f24d6 of _0x15ef59['getMarkers']()){const _0x9721fd=_0x5f24d6['getRange']()['getContainedElement']();if(_0x9721fd){if(_0x9721fd['is']('element','tableCellSuggestion')&&Oe(_0x9721fd)){_0x15ef59['removeMarker'](_0x5f24d6['name']),_0x5843aa['add'](_0x9721fd),_0x59987f=!0x0;const _0x37ec4b=_0x9721fd['nextSibling'],_0x10c88b=_0x9721fd['previousSibling'],_0x19504d=_0x37ec4b&&_0x37ec4b['is']('element','tableCellSuggestion'),_0x331899=_0x10c88b&&_0x10c88b['is']('element','tableCellSuggestion');_0x19504d&&!_0x5843aa['has'](_0x37ec4b)&&_0x31226f['add'](_0x37ec4b),_0x331899&&!_0x5843aa['has'](_0x10c88b)&&_0x31226f['add'](_0x10c88b);}else _0x9721fd['is']('element','paragraph')&&_0x9721fd['isEmpty']&&(_0x15ef59['removeMarker'](_0x5f24d6['name']),_0x59987f=!0x0);}}else{if('tablePasteCell'==_0x15ef59['subType']){if(!_0x15ef59['attributes']||!_0x15ef59['attributes']['tablePasteChainId'])continue;const _0x4e0a7d=_0x15ef59['attributes']['markerAttributes'];if(_0x4e0a7d&&Object['keys'](_0x4e0a7d)['length'])continue;const _0x2ad80a=_0x15ef59['attributes']['tablePasteChainId'];let _0x49bf58=!0x0,_0xcfc2ee=!0x0;for(const _0x36b744 of _0x3a4317)if(_0x36b744['subType']&&_0x36b744['subType']['startsWith']('tablePaste')){if(!_0x36b744['attributes']['tablePasteChainId']){_0xcfc2ee=!0x1;break;}if(_0x36b744['id']!=_0x15ef59['id']&&_0x36b744['attributes']['tablePasteChainId']==_0x2ad80a){_0x49bf58=!0x1;break;}}_0xcfc2ee&&_0x49bf58&&(_0x15ef59['removeMarkers'](),_0x59987f=!0x0);}}for(const _0x1acd48 of _0x5843aa)_0x33bacb['remove'](_0x1acd48);for(const _0x383113 of _0x31226f)_0x33bacb['unwrap'](_0x383113);return _0x59987f;}),_0x96c8f5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5a880d=>_0x4ff117(_0x5a880d),'converterPriority':'high'}),_0x96c8f5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x23f71e,_0x463716)=>_0x463716['options']['showSuggestionHighlights']?_0x4ff117(_0x23f71e,!0x1):null,'converterPriority':'high'});const _0x5c79aa=_0x96c8f5['editing']['view'];this['listenTo'](_0x5c79aa['document'],'clipboardOutput',(_0x20faa5,_0x16e608)=>{const _0x449322=[];for(const _0x27e108 of _0x5c79aa['createRangeIn'](_0x16e608['content'])['getItems']())_0x27e108['is']('element','suggestion-td')&&_0x449322['push'](_0x27e108);_0x5c79aa['change'](_0x2192a0=>{for(const _0x55e164 of _0x449322)_0x2192a0['move'](_0x2192a0['createRangeIn'](_0x55e164),_0x2192a0['createPositionBefore'](_0x55e164)),_0x2192a0['remove'](_0x55e164);});});}}function Oe(_0x2b17e5){if(_0x2b17e5['isEmpty'])return!0x0;const _0x177c89=_0x2b17e5['getChild'](0x0);return _0x177c89['is']('element','paragraph')&&_0x177c89['isEmpty'];}function Ue(_0x16a94b,_0x31535a={},_0x4015eb){for(const {isAnchor:_0x10cafb,cellHeight:_0x60818f,cellWidth:_0x40ec2a}of _0x4015eb['createTableWalker'](_0x16a94b,{'includeAllSlots':!0x0,..._0x31535a}))if(!_0x10cafb||0x1!=_0x60818f||0x1!=_0x40ec2a)return!0x1;return!0x0;}class Dt extends _0x588311{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x48dcb9=this['editor']['plugins']['get']('TrackChangesEditing');_0x48dcb9['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x48dcb9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x48dcb9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x48dcb9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x48dcb9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x48dcb9['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3f4af2,_0x5c4b28){const _0x371bb9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b022e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x333c91=_0x5c4b28['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x9b378f=_0x4b022e['getColumnGroupElement'](_0x333c91);let _0x27ef2d=_0x9b378f?_0x4b022e['getTableColumnsWidths'](_0x9b378f):null,_0x350147=_0x333c91['getAttribute']('tableWidth')||null;const _0x1445db=_0x5c4b28['tableWidth']||_0x350147,_0x239ccf=_0x5c4b28['columnWidths']||_0x27ef2d,_0x4ff2c4=this['editor']['plugins']['get']('Users')['me'];for(const _0xc30ef0 of _0x371bb9['getSuggestions']()){const _0x2fe88e=_0xc30ef0['getContainedElement']();if('resizeTable'===_0xc30ef0['subType']&&_0x2fe88e===_0x333c91){_0xc30ef0['author']!==_0x4ff2c4&&_0xc30ef0['discard']();const _0x553a00=_0xc30ef0['data']['commandParams'];_0x350147=_0x553a00[0x0]['tableWidth'],_0x27ef2d=_0x553a00[0x0]['columnWidths'];break;}}_0x3f4af2({'table':_0x333c91,'tableWidth':_0x1445db,'columnWidths':_0x239ccf}),_0x371bb9['markBlockFormat'](_0x333c91,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x350147,'columnWidths':_0x27ef2d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4fd565){if('formatBlock'!=_0x4fd565['type']&&'formatInline'!=_0x4fd565['type'])return;const {data:_0x361b79}=_0x4fd565;if(_0x361b79&&'resizeTable'===_0x361b79['formatGroupId']){const _0x531f6b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x531f6b)};}}}class $t extends _0x588311{['afterInit'](){const _0x550f97=this['editor'];_0x550f97['plugins']['has']('Template')&&_0x550f97['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x588311{['afterInit'](){const _0x37727e=this['editor'];if(!_0x37727e['commands']['get']('insertTableOfContents'))return;_0x37727e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3338bc=_0x37727e['plugins']['get']('TrackChangesEditing'),_0x125f58=_0x37727e['locale'];_0x3338bc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x15f45b=>o(_0x125f58,'ELEMENT_TABLE_OF_CONTENTS',_0x15f45b));}}class Bt extends _0x588311{['afterInit'](){const _0x19316d=this['editor'];if(!_0x19316d['plugins']['has']('Title'))return;const _0x5a2adb=_0x19316d['plugins']['get']('TrackChangesEditing');_0x5a2adb['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x19316d['locale'],'ELEMENT_TITLE')),_0x19316d['model']['document']['registerPostFixer'](_0xb4d1a6=>{let _0x4fd6e7=!0x1;const _0x29548a=Array['from'](_0x19316d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x41acdd,data:_0x235a85}of _0x29548a){const {group:_0x330e22}=_0x5a2adb['_splitMarkerName'](_0x41acdd);if('suggestion'!==_0x330e22||!_0x235a85['newRange'])continue;const _0x14de7d=_0x235a85['newRange'],_0x229da4=_0x14de7d['end']['nodeBefore'];if(!_0x229da4||!_0x229da4['is']('element','title-content'))continue;if(!_0x14de7d['start']['isTouching'](_0x14de7d['end']))continue;const _0x217ad4=_0x19316d['model']['schema']['getNearestSelectionRange'](_0x14de7d['end'],'forward');if(_0x217ad4&&_0x217ad4['isCollapsed']){const _0x2803a8=_0xb4d1a6['createRange'](_0x14de7d['start'],_0x217ad4['start']);_0x2803a8['isEqual'](_0x14de7d)||(_0xb4d1a6['updateMarker'](_0x41acdd,{'range':_0x2803a8}),_0x4fd6e7=!0x0);}_0x4fd6e7||(_0xb4d1a6['removeMarker'](_0x41acdd),_0x4fd6e7=!0x0);}return _0x4fd6e7;});}}class Tt extends _0x588311{['afterInit'](){const _0x39b6fc=this['editor'],_0x19ad81=_0x39b6fc['plugins']['get']('TrackChangesEditing');_0x39b6fc['plugins']['has']('Uploadcare')&&(_0x19ad81['enableCommand']('uploadcare'),_0x39b6fc['plugins']['has']('UploadcareImageEdit')&&(_0x19ad81['enableCommand']('uploadcareImageEdit'),_0x19ad81['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x19ad81['registerBlockAttribute']('uploadcareImageId'),_0x19ad81['descriptionFactory']['registerDescriptionCallback'](_0x29176b=>{if('attribute'!=_0x29176b['type'])return;const {data:_0x45c915}=_0x29176b;return _0x45c915&&'uploadcareImageId'==_0x45c915['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x588311{['afterInit'](){const _0x9b119c=this['editor'],_0x433a4b=_0x9b119c['plugins']['get']('TrackChangesEditing');_0x9b119c['plugins']['has']('UndoEditing')&&(_0x433a4b['enableCommand']('undo'),_0x433a4b['enableCommand']('redo'));}}class Ot extends _0x588311{static get['requires'](){return[At];}['afterInit'](){const _0x552816=this['editor'];if(!_0x552816['plugins']['has']('TableCaptionEditing'))return;_0x552816['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x588311{['tableProperties'];['tableCellProperties'];constructor(_0x160da5){super(_0x160da5),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 _0x13a811=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2e88c9 of this['tableProperties'])_0x13a811['enableCommand'](_0x2e88c9,(_0x192836,_0xdb48e2)=>{const _0x4d76b9=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2e88c9,[_0x4d76b9],this['tableProperties'],'tableProperties',_0x192836,_0xdb48e2);});_0x13a811['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x13a811['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x13a811['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x247350,_0x5c0442)=>this['handleDiscardAction'](this['tableProperties'],_0x247350,_0x5c0442)),_0x13a811['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1593a6 of this['tableCellProperties'])_0x13a811['enableCommand'](_0x1593a6,(_0x4e56be,_0x4d4fd7)=>{const _0xb1b832=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1593a6,_0xb1b832,this['tableCellProperties'],'tableCellProperties',_0x4e56be,_0x4d4fd7);});_0x13a811['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x13a811['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x13a811['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x406615,_0x4db6d0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x406615,_0x4db6d0)),_0x13a811['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x13a811['descriptionFactory']['registerDescriptionCallback'](_0xcc934b=>this['handleSuggestionDescription'](_0xcc934b)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xcb60f2,_0x5e9cbd,_0x168a30,_0x70a835,_0x2c63e3,_0x2cc789){const _0x256914=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2cc789['batch'],()=>{for(const _0x42c148 of _0x5e9cbd){if(this['_getSuggestion'](_0x42c148,_0x70a835))_0x2c63e3(_0x2cc789);else{const _0xf47b5d={};for(const _0x10faee of _0x168a30){const _0x356ef1=_0x42c148['getAttribute'](_0x10faee);void 0x0!==_0x356ef1&&(_0xf47b5d[_0x10faee]=_0x356ef1);}_0x2c63e3(_0x2cc789),_0x256914['markBlockFormat'](_0x42c148,{'commandParams':[_0xf47b5d]},[],_0x70a835);}}});}['handleDiscardAction'](_0x20d395,_0x1bd20b,_0x322a33){const _0x27a435=_0x1bd20b[0x0]['start']['nodeAfter'],_0x2dfd5b=_0x322a33['commandParams'][0x0];this['editor']['model']['change'](_0x36c00b=>{for(const _0xe6529a of _0x20d395)void 0x0!==_0x2dfd5b[_0xe6529a]?_0x36c00b['setAttribute'](_0xe6529a,_0x2dfd5b[_0xe6529a],_0x27a435):_0x36c00b['removeAttribute'](_0xe6529a,_0x27a435);});}['handleSuggestionDescription'](_0xb18640){if(_0xb18640['data'])switch(_0xb18640['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'](_0x5a7462,_0xece8c4){const _0x193887=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1af85a of _0x193887['getSuggestions']({'skipNotAttached':!0x0})){const _0x4e5a1f=_0x1af85a['getContainedElement']();if(_0x1af85a['subType']===_0xece8c4&&_0x4e5a1f===_0x5a7462)return _0x1af85a;}return null;}['_registerTablePropertiesAttributes'](){const _0x33d961=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e05f8=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5422dd of _0x4e05f8){const _0x2d39e0=_0x5422dd['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x33d961['registerBlockAttribute'](_0x5422dd),_0x33d961['descriptionFactory']['registerAttributeLabel'](_0x5422dd,o(this['editor']['locale'],'FORMAT_'+_0x2d39e0));}}}class Rt extends _0x588311{['afterInit'](){const _0x5ea39e=this['editor'];if(!_0x5ea39e['plugins']['has']('LineHeight'))return;const _0x206a6b=_0x5ea39e['plugins']['get']('TrackChangesEditing'),_0x1d3e7a=_0x5ea39e['locale'];_0x206a6b['enableDefaultAttributesIntegration']('lineHeight'),_0x206a6b['registerBlockAttribute']('lineHeight'),_0x206a6b['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1d3e7a,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x588311{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x4fb64d,_0x1f154d,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,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30bb6f){super(_0x30bb6f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1c754d,_0x136116,_0x10bc67,_0x6169c7)=>{this['_model']['change'](()=>{for(const _0x53d620 of[..._0x6169c7,..._0x10bc67])this['_model']['markers']['has'](_0x53d620)&&_0x30bb6f['editing']['reconvertMarker'](_0x53d620);});}),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']=_0x30bb6f['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(),_0x30bb6f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x30bb6f['config']['get']('trackChanges.trackFormatChanges'),_0x30bb6f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x30bb6f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x30bb6f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x9693e4=this['editor'],_0xaf8511=(_0x1af3a7,_0x4e4506)=>{if('attribute'!=_0x1af3a7)return'ck-suggestion-marker-'+_0x1af3a7;const _0x53af8d=_0x4e4506['split']('|')[0x0];return this['_isBlockAttribute'](_0x53af8d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x9693e4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x41f81f=>{const {id:_0x231ed2,authorId:_0x213d01,type:_0xc55716,subType:_0xbd19fc}=this['_splitMarkerName'](_0x41f81f['markerName']),_0x21c2ce=['ck-suggestion-marker',_0xaf8511(_0xc55716,_0xbd19fc)];let _0xdbb49b=0xbb8;return this['activeMarkers']['includes'](_0x41f81f['markerName'])&&(_0x21c2ce['push']('ck-suggestion-marker--active'),_0xdbb49b=0xbc2),'deletion'==_0xc55716&&(_0xdbb49b+=0x5),{'classes':_0x21c2ce,'attributes':{'data-suggestion':_0x231ed2,'data-author-id':_0x213d01},'priority':_0xdbb49b};}}),_0x9693e4['conversion']['for']('dataDowncast')['add'](_0x2b20bb=>{_0x2b20bb['on']('addMarker:suggestion',(_0x53ab26,_0x3650ea,_0x10b04a)=>{if(!_0x10b04a['options']['showSuggestionHighlights'])return;const _0x18d11f=_0x3650ea['item'];if(!_0x18d11f)return;const _0x27ff78=_0x10b04a['mapper']['toViewElement'](_0x18d11f);_0x9693e4['model']['schema']['isObject'](_0x18d11f)&&_0x27ff78&&!_0x27ff78['getCustomProperty']('widget')&&_0x27ff78['is']('containerElement')&&_0x514173(_0x27ff78,_0x10b04a['writer']);},{'priority':'high'});}),_0x9693e4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x38fb34,_0x7500d)=>{if(!_0x7500d['options']['showSuggestionHighlights'])return null;const {id:_0x20a9a9,authorId:_0x5aab46,type:_0x2921e0,subType:_0x34843a}=this['_splitMarkerName'](_0x38fb34['markerName']);return{'classes':['ck-suggestion-marker',_0xaf8511(_0x2921e0,_0x34843a)],'priority':0xbb8,'attributes':{'data-suggestion':_0x20a9a9,'data-author-id':_0x5aab46}};}});const _0x13d98d=({showActiveMarkers:_0x4a988d=!0x0,isAttributeSuggestion:_0x228a0e=!0x1}={})=>(_0x473642,_0x297e9b,_0x13aeec)=>{if(!_0x297e9b['item'])return;const {id:_0x1ad87e,authorId:_0x24eb5a}=this['_splitMarkerName'](_0x297e9b['markerName']);if(_0x228a0e){const _0x14e1b6=this['_suggestions']['get'](_0x1ad87e),_0x2cbb54=this['_getAttributeKey'](_0x14e1b6);if(!this['_isBlockAttribute'](_0x2cbb54))return;}if(_0x297e9b['item']['is']('selection'))return void _0x13aeec['consumable']['consume'](_0x297e9b['item'],_0x473642['name']);const _0x5c3ebc=_0x13aeec['mapper']['toViewElement'](_0x297e9b['item']);if(_0x297e9b['item']['is']('element')&&_0x9693e4['model']['schema']['isBlock'](_0x297e9b['item'])&&!_0x5c3ebc['getCustomProperty']('addHighlight')){_0x13aeec['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5c3ebc),_0x13aeec['writer']['setAttribute']('data-suggestion',_0x1ad87e,_0x5c3ebc),_0x13aeec['writer']['setAttribute']('data-author-id',_0x24eb5a,_0x5c3ebc),_0x13aeec['mapper']['bindElementToMarker'](_0x5c3ebc,_0x297e9b['markerName']),_0x4a988d&&(this['activeMarkers']['includes'](_0x297e9b['markerName'])?_0x13aeec['writer']['addClass']('ck-suggestion-marker--active',_0x5c3ebc):_0x13aeec['writer']['removeClass']('ck-suggestion-marker--active',_0x5c3ebc));for(const _0x158131 of _0x9693e4['model']['createRangeIn'](_0x297e9b['item'])['getItems']())_0x13aeec['consumable']['consume'](_0x158131,_0x473642['name']);_0x13aeec['consumable']['consume'](_0x297e9b['item'],_0x473642['name']);}};_0x9693e4['conversion']['for']('dataDowncast')['add'](_0x62e7c1=>{_0x62e7c1['on']('addMarker:suggestion:formatBlock',(_0x34c0a8,_0x41710a,_0xad2f39)=>{_0xad2f39['options']['showSuggestionHighlights']&&_0x13d98d({'showActiveMarkers':!0x1})(_0x34c0a8,_0x41710a,_0xad2f39);},{'priority':'highest'});}),_0x9693e4['conversion']['for']('dataDowncast')['add'](_0xf681fd=>{_0xf681fd['on']('addMarker:suggestion:attribute',(_0x597e0c,_0xd585da,_0x2f6d5b)=>{_0x2f6d5b['options']['showSuggestionHighlights']&&_0x13d98d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x597e0c,_0xd585da,_0x2f6d5b);},{'priority':'highest'});}),_0x9693e4['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x447bc8,_0x5e1eff)=>{if(_0x5e1eff['options']['showSuggestionHighlights']){const {id:_0x1b89a5,authorId:_0x4becd1}=this['_splitMarkerName'](_0x447bc8);return _0x447bc8['includes'](':split')||_0x447bc8['includes'](':merge')?{'group':'suggestion','name':_0x447bc8['substr'](0xb),'attributes':{'data-suggestion':_0x1b89a5,'data-author-id':_0x4becd1}}:null;}return{'group':'suggestion','name':_0x447bc8['substr'](0xb)};}}),_0x9693e4['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xd4be94,{writer:_0x586b5d})=>{let _0x4c6278='suggestion:'+_0xd4be94['getAttribute']('suggestion-type')+':'+_0xd4be94['getAttribute']('id');return _0xd4be94['getAttribute']('marker-count')&&(_0x4c6278+=':'+_0xd4be94['getAttribute']('marker-count')),_0x586b5d['createElement']('$marker',{'data-name':_0x4c6278});}}),_0x9693e4['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x9693e4['conversion']['for']('editingDowncast')['add'](_0x191b77=>{_0x191b77['on']('addMarker:suggestion:formatBlock',_0x13d98d(),{'priority':'high'});}),_0x9693e4['conversion']['for']('editingDowncast')['add'](_0x435280=>{_0x435280['on']('addMarker:suggestion:attribute',_0x13d98d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x9693e4['conversion']['for']('editingDowncast')['add'](_0xf5ebe6=>{_0xf5ebe6['on']('removeMarker:suggestion:formatBlock',(_0x207242,_0x3237bb,_0x21631b)=>{const _0x38ca51=_0x21631b['mapper']['markerNameToElements'](_0x3237bb['markerName']);if(_0x38ca51){for(const _0x550b29 of _0x38ca51)_0x550b29['getCustomProperty']('addHighlight')||(_0x21631b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x550b29),_0x21631b['writer']['removeAttribute']('data-suggestion',_0x550b29),_0x21631b['writer']['removeAttribute']('data-author-id',_0x550b29),_0x21631b['mapper']['unbindElementFromMarkerName'](_0x550b29,_0x3237bb['markerName']));}},{'priority':'high'});}),_0x9693e4['conversion']['for']('editingDowncast')['add'](_0x1ae697=>{_0x1ae697['on']('removeMarker:suggestion:attribute',(_0x48116e,_0x1a672d,_0x3a99b3)=>{const _0x2da29c=_0x3a99b3['mapper']['markerNameToElements'](_0x1a672d['markerName']);if(!_0x2da29c)return;const {id:_0x40db23}=this['_splitMarkerName'](_0x1a672d['markerName']),_0x38a9c7=this['_suggestions']['get'](_0x40db23),_0x2d3d25=this['_getAttributeKey'](_0x38a9c7);if(this['_isBlockAttribute'](_0x2d3d25)){for(const _0x1d115a of _0x2da29c)_0x1d115a['getCustomProperty']('addHighlight')||(_0x3a99b3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1d115a),_0x3a99b3['writer']['removeAttribute']('data-suggestion',_0x1d115a),_0x3a99b3['writer']['removeAttribute']('data-author-id',_0x1d115a),_0x3a99b3['mapper']['unbindElementFromMarkerName'](_0x1d115a,_0x1a672d['markerName']));}},{'priority':'high'});}),_0x9693e4['model']['document']['registerPostFixer'](_0x10a5ac=>{let _0x1dd23f=!0x1;const _0x58bb5b=Array['from'](_0x9693e4['model']['document']['differ']['getChangedMarkers']()),_0x5e7959=new Set();for(const {name:_0x4006fd,data:_0x2e8c1a}of _0x58bb5b){const {group:_0x22451d,type:_0x1b44d7,subType:_0xde03e7,id:_0x4c76b4}=this['_splitMarkerName'](_0x4006fd);if('suggestion'!==_0x22451d)continue;const _0x460a80=_0xde03e7?'suggestion:'+_0x1b44d7+':'+_0xde03e7+':'+_0x4c76b4:'suggestion:'+_0x1b44d7+':'+_0x4c76b4,_0x183760=_0x9693e4['model']['markers']['getMarkersGroup'](_0x460a80),_0x493370=_0x9693e4['model']['markers']['get'](_0x4006fd),_0xccc8f=this['_suggestions']['get'](_0x4c76b4);if(null!=_0x2e8c1a['newRange']){'formatInline'==_0x1b44d7&&(_0x1dd23f=_0x1dd23f||Gt(_0x2e8c1a['newRange'],_0x4006fd,_0x10a5ac,_0x9693e4['model']['schema']));const _0x121c09='attribute'==_0x1b44d7&&this['_isBlockAttribute'](_0xde03e7['split']('|')[0x0]),_0x2469ea='attribute'==_0x1b44d7&&this['_isInlineAttribute'](_0xde03e7['split']('|')[0x0]);if(_0x2e8c1a['newRange']['isCollapsed']||'$graveyard'==_0x2e8c1a['newRange']['root']['rootName']||'formatBlock'==_0x1b44d7&&!Jt(_0x2e8c1a['newRange'])||_0x121c09&&!Jt(_0x2e8c1a['newRange'])||_0x2469ea&&Kt(_0x2e8c1a['newRange'])||'deletion'==_0x1b44d7&&Kt(_0x2e8c1a['newRange'])||_0x493370&&Ht(_0x493370,_0x183760))_0x10a5ac['removeMarker'](_0x4006fd),_0x1dd23f=!0x0;else{if(!_0xccc8f||!_0xccc8f['isInContent'])continue;if(_0x2e8c1a['newRange']&&_0x2e8c1a['oldRange']&&_0x2e8c1a['newRange']['isEqual'](_0x2e8c1a['oldRange']))continue;_0x5e7959['add'](_0xccc8f);}}}return _0x5e7959['size']>0x0&&(_0x1dd23f=!!this['_joinWithAdjacentSuggestions'](_0x5e7959)||_0x1dd23f),_0x1dd23f;}),_0x9693e4['model']['document']['registerPostFixer'](_0x5c4b47=>{let _0x5377f3=!0x1;for(const _0x317094 of _0x9693e4['model']['document']['differ']['getChanges']())if('insert'==_0x317094['type'])for(const _0x5ef7a2 of this['_suggestions']['values']()){if(_0x5ef7a2['isMultiRange']||!_0x5ef7a2['isInContent'])continue;const _0x22f1de='formatBlock'==_0x5ef7a2['type'],_0x1a74ab=this['_getAttributeKey'](_0x5ef7a2),_0x45b3b7=_0x1a74ab&&this['_isBlockAttribute'](_0x1a74ab);if(!_0x22f1de&&!_0x45b3b7)continue;const _0x525e3e=_0x5ef7a2['getFirstRange']();if(_0x525e3e['start']['parent']!=_0x525e3e['end']['parent']&&!_0x525e3e['end']['isAtEnd']){const _0x352f45=_0x9693e4['model']['createPositionAt'](_0x525e3e['start']['nodeAfter'],'end'),_0x3fe41e=_0x9693e4['model']['createRange'](_0x525e3e['start'],_0x352f45);_0x5c4b47['updateMarker'](_0x5ef7a2['getFirstMarker'](),{'range':_0x3fe41e}),_0x5377f3=!0x0;}}return _0x5377f3;}),_0x9693e4['model']['document']['registerPostFixer'](_0x1794eb=>this['_processAttributeChanges'](_0x1794eb)),_0x9693e4['model']['document']['registerPostFixer'](_0x967817=>!_0x967817['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x967817)),_0x9693e4['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x9693e4['model']['document']['on']('change:data',(_0x3c9461,_0x2812af)=>{if(!_0x2812af['isLocal']||_0x2812af['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3646a8=_0x9693e4['model']['document']['differ']['getChanges']();if(0x0==_0x3646a8['length'])return;const _0x220e02=[],_0x35a4cb=_0x3646a8['filter'](_0x2d8e6d=>'attribute'==_0x2d8e6d['type']),_0x185301=_0x3646a8['filter'](_0x3fd2e5=>'insert'==_0x3fd2e5['type']&&'$text'!=_0x3fd2e5['name']);for(const _0x3c9623 of _0x35a4cb)this['_isRegisteredAttribute'](_0x3c9623['attributeKey'])&&_0x220e02['push']({'key':_0x3c9623['attributeKey'],'newValue':_0x3c9623['attributeNewValue'],'oldValue':_0x3c9623['attributeOldValue'],'range':qt(_0x3c9623['range'],_0x9693e4['model'])});for(const _0x4a7178 of _0x185301){if('rename'!=_0x4a7178['action']&&'refresh'!=_0x4a7178['action'])continue;const _0x5d09e5=zt(_0x4a7178['position']['nodeAfter'],_0x9693e4['model']),_0x3a4918=_0x4a7178['before'];'rename'==_0x4a7178['action']&&_0x220e02['push']({'key':m,'newValue':_0x4a7178['name'],'oldValue':_0x3a4918['name'],'range':_0x5d09e5});for(const [_0x55f57c,_0x5a53ff]of _0x3a4918['attributes']){if(!this['_isRegisteredAttribute'](_0x55f57c))continue;const _0x4fdaea=_0x4a7178['attributes']['get'](_0x55f57c);_0x5a53ff!==_0x4fdaea&&_0x220e02['push']({'key':_0x55f57c,'newValue':_0x4fdaea,'oldValue':_0x5a53ff,'range':_0x5d09e5});}for(const [_0x4f377f,_0x4b06b5]of _0x4a7178['attributes'])this['_isRegisteredAttribute'](_0x4f377f)&&(_0x3a4918['attributes']['has'](_0x4f377f)||_0x220e02['push']({'key':_0x4f377f,'newValue':_0x4b06b5,'oldValue':null,'range':_0x5d09e5}));}0x0!=_0x220e02['length']&&_0x9693e4['model']['enqueueChange'](_0x2812af,_0x3a5210=>{const _0x50a478=_0x58b607();for(const {range:_0x474980,key:_0x42f999,oldValue:_0x65da56,newValue:_0x207516}of _0x220e02)this['markAttributeChange'](_0x474980,_0x42f999,_0x65da56,_0x207516,{'groupId':_0x50a478});this['_reduceExistingSuggestions'](_0x3a5210,_0x220e02);});},{'priority':'lowest'}),_0x9693e4['model']['markers']['on']('update:suggestion',(_0x14a2c7,_0x590ef4,_0x53b577)=>{if(null==_0x53b577){const {id:_0xa9710d}=this['_splitMarkerName'](_0x590ef4['name']),_0x35a41f=this['_suggestions']['get'](_0xa9710d);_0x35a41f&&_0x35a41f['addMarkerName'](_0x590ef4['name']);}}),_0x9693e4['model']['document']['on']('change:data',()=>{const _0x470a75=Array['from'](_0x9693e4['model']['document']['differ']['getChangedMarkers']())['filter'](_0x31df74=>'suggestion'===this['_splitMarkerName'](_0x31df74['name'])['group']);if(0x0===_0x470a75['length'])return;_0x470a75['sort']((_0x26560a,_0x7584e4)=>{const _0x8e1bbe=_0x26560a['data']['oldRange'],_0x524b2e=_0x7584e4['data']['oldRange'];return null===_0x8e1bbe&&null===_0x524b2e?0x0:null===_0x8e1bbe&&null!==_0x524b2e?-0x1:null!==_0x8e1bbe&&null===_0x524b2e?0x1:_0x8e1bbe['start']['isBefore'](_0x524b2e['start'])?-0x1:0x1;});const _0x50649e=new Set(),_0x2a1959=new Set();for(const {name:_0x1393d0,data:_0x5ddffd}of _0x470a75){const {id:_0x29755c}=this['_splitMarkerName'](_0x1393d0);if(null===_0x5ddffd['oldRange']){const _0x199a13=this['_handleNewSuggestionMarker'](_0x1393d0);_0x2a1959['add'](_0x199a13);}else{const _0x11d7ca=this['_suggestions']['get'](_0x29755c);null!==_0x5ddffd['newRange']||_0x11d7ca['isInContent']?(_0x50649e['add'](_0x11d7ca['head']),_0x2a1959['add'](_0x11d7ca)):this['_removeSuggestion'](_0x11d7ca);}}_0x2a1959['size']>0x0&&this['_refreshSuggestionsChain'](_0x2a1959);for(const _0x198d46 of _0x50649e)this['fire']('suggestionChanged',_0x198d46);}),_0x9693e4['model']['on']('applyOperation',(_0x1eb2be,_0x2c1927)=>{const _0x4c0f96=_0x2c1927[0x0];if(!this['_suggestions']['size'])return;if(!_0x4c0f96['isDocumentOperation'])return;if(_0x4c0f96['batch']['isUndo']||!_0x4c0f96['batch']['isLocal'])return;let _0x27ebf6,_0x164429;switch(_0x4c0f96['type']){case'insert':_0x27ebf6=_0x9693e4['model']['createPositionAt'](_0x4c0f96['position']),_0x164429=_0x27ebf6['getShiftedBy'](_0x4c0f96['howMany']);break;case'split':_0x27ebf6=_0x9693e4['model']['createPositionAt'](_0x4c0f96['splitPosition']),_0x164429=_0x9693e4['model']['createPositionAt'](_0x4c0f96['moveTargetPosition']);break;case'move':_0x27ebf6=_0x9693e4['model']['createPositionAt'](_0x4c0f96['targetPosition']),_0x164429=_0x27ebf6['getShiftedBy'](_0x4c0f96['howMany']);break;default:return;}const _0x3171e0=_0x9693e4['model']['createRange'](_0x27ebf6,_0x164429);_0x9693e4['model']['change'](()=>{for(const {suggestion:_0x4ef5de,meta:_0x126891}of this['_findSuggestions'](_0x3171e0)){if(_0x4ef5de['isMultiRange'])continue;if('formatInline'==_0x4ef5de['type'])continue;const _0x22c2be=this['_getAttributeKey'](_0x4ef5de);if(_0x22c2be&&this['_isBlockAttribute'](_0x22c2be)&&'split'!=_0x4c0f96['type'])continue;const _0xb46893=_0x4ef5de['data']&&_0x4ef5de['data']['multipleBlocks'];('formatBlock'!=_0x4ef5de['type']||'split'==_0x4c0f96['type']&&!_0xb46893)&&(_0x126891['containsRangeInObject']||'insertion'==_0x4ef5de['type']&&_0x126891['isOwn']||_0x4ef5de['getFirstRange']()['containsRange'](_0x3171e0)&&this['_breakSuggestionMarker'](_0x4ef5de,_0x27ebf6,_0x164429));}});},{'priority':'lowest'}),_0x9693e4['model']['on']('deleteContent',(_0x149c4e,_0x2d271)=>{const _0x336d0f=_0x2d271[0x0],_0x306af3=_0x2d271[0x1];if(_0x306af3&&_0x306af3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x336d0f['isCollapsed'])return;const _0x2f2f4d=_0x9693e4['model']['schema'],{start:_0x101924,end:_0x3b70d7}=_0x336d0f['getFirstRange'](),_0x5c940d=_0x101924['nodeAfter']&&_0x2f2f4d['isLimit'](_0x101924['nodeAfter'])?null:_0x2f2f4d['getNearestSelectionRange'](_0x101924,'forward'),_0x3671aa=_0x3b70d7['nodeBefore']&&_0x2f2f4d['isLimit'](_0x3b70d7['nodeBefore'])?null:_0x2f2f4d['getNearestSelectionRange'](_0x3b70d7,'backward'),_0x2794bd=_0x9693e4['model']['createRange'](_0x5c940d?_0x5c940d['start']:_0x101924,_0x3671aa?_0x3671aa['end']:_0x3b70d7);_0x9693e4['model']['change'](_0x4e7016=>{this['markDeletion'](_0x2794bd);const _0x1789cc=_0x9693e4['model']['schema']['getNearestSelectionRange'](_0x2794bd['start']);_0x336d0f['is']('documentSelection')?_0x4e7016['setSelection'](_0x1789cc):_0x336d0f['setTo'](_0x1789cc);}),_0x149c4e['stop']();},{'priority':_0x30d56f['normal']+0xa}),_0x9693e4['model']['on']('insertContent',(_0x225ff4,_0x45504a)=>{const _0x240494=_0x45504a[_0x45504a['length']-0x1];_0x240494&&_0x240494['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x9693e4['model']['change'](()=>{let _0x20781d=_0x9693e4['model']['insertContent'](_0x45504a[0x0],_0x45504a[0x1],_0x45504a[0x2],{'forceDefaultExecution':!0x0});if(!_0x20781d)return;_0x225ff4['return']=_0x20781d['clone']();const _0x5ab479=_0x20781d['end']['nodeBefore'],_0x51c270=_0x9693e4['model']['schema'];_0x5ab479&&_0x51c270['isBlock'](_0x5ab479)&&!_0x51c270['isObject'](_0x5ab479)&&(_0x20781d=_0x9693e4['model']['createRange'](_0x20781d['start'],_0x9693e4['model']['createPositionAt'](_0x5ab479,'end'))),this['markInsertion'](_0x20781d);}),_0x225ff4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2d6203=new D(_0x9693e4,this['_suggestions']);_0x9693e4['commands']['add']('acceptSuggestion',_0x2d6203),this['enableCommand']('acceptSuggestion');const _0x19e919=new $(_0x9693e4,this['_suggestions']);_0x9693e4['commands']['add']('discardSuggestion',_0x19e919),this['enableCommand']('discardSuggestion'),_0x9693e4['commands']['add']('acceptAllSuggestions',new M(_0x9693e4,_0x2d6203,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x9693e4['commands']['add']('discardAllSuggestions',new M(_0x9693e4,_0x19e919,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x9693e4['commands']['add']('acceptSelectedSuggestions',new B(_0x9693e4,_0x2d6203,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x9693e4['commands']['add']('discardSelectedSuggestions',new B(_0x9693e4,_0x19e919,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x44b8ff=_0x9693e4['plugins']['get']('CommentsRepository');this['listenTo'](_0x44b8ff,'addComment',(_0x400935,{threadId:_0x48e23d})=>{const _0x48d64e=this['_suggestions']['get'](_0x48e23d);_0x48d64e&&_0x48d64e['commentThread']&&0x1===_0x48d64e['commentThread']['length']&&this['_updateSuggestionData'](_0x48e23d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x44b8ff,'removeComment',(_0x26d4d5,{threadId:_0x48e8e0})=>{const _0x322f4c=this['_suggestions']['get'](_0x48e8e0);_0x322f4c&&_0x322f4c['commentThread']&&!_0x322f4c['commentThread']['length']&&this['_updateSuggestionData'](_0x48e8e0,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x126189){const _0x2a7142=_0x443e2b([0x31,0x78,0x67,0x62,0x70,0x46,0x30,0x54,0x6d,0x65,0x4d,0x48,0x64,0x74,0x66,0x69,0x4f,0x6a,0x75,0x4b,0x37,0x55,0x35,0x56,0x71,0x43,0x4c,0x42,0x49,0x4a,0x6c,0x44,0x36,0x76,0x5a,0x61,0x58,0x53,0x33,0x52,0x6e,0x73,0x72,0x79,0x50,0x47,0x4e,0x7a,0x51,0x34,0x41,0x39,0x45,0x57,0x77,0x68,0x38,0x32,0x6b,0x6f,0x63,0x59]),_0x5f1103=0x42b7b61c,_0x2c82b8=0x42b0d984^_0x5f1103,_0x31d476=window[_0x443e2b([0x44,0x61,0x74,0x65])][_0x443e2b([0x6e,0x6f,0x77])](),_0x7d2ab7=_0x126189[_0x443e2b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x63d952=new window[(_0x443e2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x220b5d=>{_0x7d2ab7[_0x443e2b([0x6f,0x6e,0x63,0x65])](_0x443e2b([0x72,0x65,0x61,0x64,0x79]),_0x220b5d);}),_0x3aea61={[_0x443e2b([0x6b,0x74,0x79])]:_0x443e2b([0x45,0x43]),[_0x443e2b([0x75,0x73,0x65])]:_0x443e2b([0x73,0x69,0x67]),[_0x443e2b([0x63,0x72,0x76])]:_0x443e2b([0x50,0x2d,0x32,0x35,0x36]),[_0x443e2b([0x78])]:_0x443e2b([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]),[_0x443e2b([0x79])]:_0x443e2b([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]),[_0x443e2b([0x61,0x6c,0x67])]:_0x443e2b([0x45,0x53,0x32,0x35,0x36])},_0x11d865=_0x7d2ab7[_0x443e2b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x443e2b([0x67,0x65,0x74])](_0x443e2b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x35b678(){let _0x1fdc41,_0x437dcb=null,_0x5b5458=null;try{if(_0x11d865==_0x443e2b([0x47,0x50,0x4c]))return _0x443e2b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1fdc41=_0x13422f(),!_0x1fdc41)return _0x443e2b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1fdc41[_0x443e2b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b5458=_0x2a9bae(_0x1fdc41[_0x443e2b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1fdc41[_0x443e2b([0x6a,0x74,0x69])])),await _0xb43bd1()?_0x30718e()?_0x2e3093()?_0x443e2b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5419c4()?(_0x1fdc41[_0x443e2b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x443e2b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x437dcb=_0x49d7b0(_0x443e2b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1fdc41[_0x443e2b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x443e2b([0x74,0x72,0x69,0x61,0x6c])&&(_0x437dcb=_0x49d7b0(_0x443e2b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3c34d0()):_0x443e2b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x443e2b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x443e2b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x443e2b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e3093(){const _0x2f6f8d=[_0x443e2b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x443e2b([0x74,0x72,0x69,0x61,0x6c])][_0x443e2b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1fdc41[_0x443e2b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x31d476/0x3e8:0xe10*_0x2c82b8;return _0x1fdc41[_0x443e2b([0x65,0x78,0x70])]<_0x2f6f8d;}function _0x30718e(){const _0x16e904=_0x1fdc41[_0x443e2b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x16e904)return!0x1;if(_0x16e904[_0x443e2b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443e2b([0x2a])))return!0x0;if(_0x16e904[_0x443e2b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443e2b([0x54,0x43])))return!0x0;if(_0x16e904[_0x443e2b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443e2b([0x52,0x54,0x43]))){if(_0xb36988())return!0x0;if(_0x43f129()||_0x55417f())return!0x0;}return!0x1;}function _0x5419c4(){const _0x329535=_0x1fdc41[_0x443e2b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x329535||0x0==_0x329535[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2950ce}=new URL(window[_0x443e2b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x329535[_0x443e2b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2950ce))return!0x0;const _0x2b9333=_0x2950ce[_0x443e2b([0x73,0x70,0x6c,0x69,0x74])](_0x443e2b([0x2e]));return _0x329535[_0x443e2b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5713c7=>_0x5713c7[_0x443e2b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443e2b([0x2a])))[_0x443e2b([0x6d,0x61,0x70])](_0xdb902d=>_0xdb902d[_0x443e2b([0x73,0x70,0x6c,0x69,0x74])](_0x443e2b([0x2e])))[_0x443e2b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4aadf0=>_0x4aadf0[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2b9333[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x443e2b([0x6d,0x61,0x70])](_0x3b8299=>Array(_0x2b9333[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3b8299[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x443e2b([0x66,0x69,0x6c,0x6c])](_0x3b8299[0x0]===_0x443e2b([0x2a])?_0x443e2b([0x2a]):'')[_0x443e2b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3b8299))[_0x443e2b([0x73,0x6f,0x6d,0x65])](_0x9d98c=>_0x2b9333[_0x443e2b([0x65,0x76,0x65,0x72,0x79])]((_0x2d1c47,_0x76d51f)=>_0x9d98c[_0x76d51f]===_0x2d1c47||_0x9d98c[_0x76d51f]===_0x443e2b([0x2a])));}function _0x3c34d0(){return _0x437dcb&&_0x5b5458?new window[(_0x443e2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x499be4,_0xbefd54)=>{_0x437dcb[_0x443e2b([0x74,0x68,0x65,0x6e])](_0x499be4,_0xbefd54),_0x5b5458[_0x443e2b([0x74,0x68,0x65,0x6e])](_0x54c54c=>{_0x54c54c!=_0x443e2b([0x56,0x61,0x6c,0x69,0x64])&&_0x499be4(_0x54c54c);},_0xbefd54);}):_0x437dcb||_0x5b5458||_0x443e2b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a9bae(_0xa24bed,_0x30aa40){return new window[(_0x443e2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6da4cd=>{if(_0x4d7e85())return _0x6da4cd(_0x443e2b([0x56,0x61,0x6c,0x69,0x64]));_0x59870e(),_0x7d2ab7[_0x443e2b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x443e2b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x326494=!0x1;const _0xe1e943=_0x58b607();function _0x2d016b(_0x436335){return!!_0x436335&&(typeof _0x436335===_0x443e2b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x436335===_0x443e2b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x436335[_0x443e2b([0x74,0x68,0x65,0x6e])]===_0x443e2b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x436335[_0x443e2b([0x63,0x61,0x74,0x63,0x68])]===_0x443e2b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x7cbfe1(_0x1f926e){_0x276b05(_0x1f926e)[_0x443e2b([0x74,0x68,0x65,0x6e])](_0x4682ac=>{if(!_0x4682ac||_0x4682ac[_0x443e2b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x443e2b([0x6f,0x6b]))return _0x443e2b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4626b5(_0x408655(_0xe1e943+_0x30aa40))!=_0x4682ac[_0x443e2b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x443e2b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x443e2b([0x56,0x61,0x6c,0x69,0x64]);})[_0x443e2b([0x74,0x68,0x65,0x6e])](_0x58636f=>(_0x504cdc(),_0x58636f),()=>{const _0x5a4df0=_0x5af52a();return null==_0x5a4df0?(_0x504cdc(),_0x443e2b([0x56,0x61,0x6c,0x69,0x64])):_0x443e2b(_0x31d476-_0x5a4df0>(0x66bb321c^_0x5f1103)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x443e2b([0x74,0x68,0x65,0x6e])](_0x6da4cd)[_0x443e2b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x6da4cd(_0x443e2b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2f58c7=0x4281589c^_0x5f1103;function _0x504cdc(){const _0xcb8cb6=_0x443e2b([0x6c,0x6c,0x63,0x74,0x2d])+_0x4626b5(_0x408655(_0xa24bed)),_0x2b6188=_0x37327f(_0x4626b5(window[_0x443e2b([0x4d,0x61,0x74,0x68])][_0x443e2b([0x63,0x65,0x69,0x6c])](_0x31d476/_0x2f58c7)));window[_0x443e2b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x443e2b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcb8cb6,_0x2b6188);}function _0x5af52a(){const _0x486196=_0x443e2b([0x6c,0x6c,0x63,0x74,0x2d])+_0x4626b5(_0x408655(_0xa24bed)),_0x5d6cb3=window[_0x443e2b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x443e2b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x486196);return _0x5d6cb3?window[_0x443e2b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37327f(_0x5d6cb3),0x10)*_0x2f58c7:null;}function _0x276b05(_0x6328e7){return new window[(_0x443e2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd775e3,_0x1393f8)=>{_0x6328e7[_0x443e2b([0x74,0x68,0x65,0x6e])](_0xd775e3,_0x1393f8),window[_0x443e2b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1393f8,0x42b662dc^_0x5f1103);});}}_0x7d2ab7[_0x443e2b([0x6f,0x6e])](_0x443e2b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x120241,_0x5ba268)=>{if(_0x5ba268[0x0]!=_0xa24bed)return _0x6da4cd(_0x443e2b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5ba268[0x1]={..._0x5ba268[0x1],[_0x443e2b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe1e943};},{[_0x443e2b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x443e2b([0x68,0x69,0x67,0x68])}),_0x7d2ab7[_0x443e2b([0x6f,0x6e])](_0x443e2b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x751a7b=>{_0x2d016b(_0x751a7b[_0x443e2b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x326494=!0x0,_0x7cbfe1(_0x751a7b[_0x443e2b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x443e2b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x443e2b([0x6c,0x6f,0x77])}),_0x63d952[_0x443e2b([0x74,0x68,0x65,0x6e])](()=>{_0x326494||_0x6da4cd(_0x443e2b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4d7e85(){return _0x7d2ab7[_0x443e2b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x443e2b([0x76,0x69,0x65,0x77])][_0x443e2b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x443e2b([0x61,0x75,0x74,0x6f]);}function _0x59870e(){_0x7d2ab7[_0x443e2b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x443e2b([0x76,0x69,0x65,0x77])][_0x443e2b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x443e2b([0x61,0x75,0x74,0x6f]);}}function _0x49d7b0(_0x4c010d){const _0x1a9e5e=[new window[(_0x443e2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30f277=>setTimeout(_0x30f277,0x42be88d0^_0x5f1103)),_0x63d952[_0x443e2b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x443e2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a0f2b=>{let _0x454750=0x0;_0x7d2ab7[_0x443e2b([0x6d,0x6f,0x64,0x65,0x6c])][_0x443e2b([0x6f,0x6e])](_0x443e2b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2ea12a,_0x101a85)=>{_0x101a85[0x0][_0x443e2b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x454750++,_0x454750==(0x42b7b7e4^_0x5f1103)&&(_0x3a0f2b(),_0x2ea12a[_0x443e2b([0x6f,0x66,0x66])]());});}))];return window[_0x443e2b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x443e2b([0x72,0x61,0x63,0x65])](_0x1a9e5e)[_0x443e2b([0x74,0x68,0x65,0x6e])](()=>_0x4c010d);}async function _0x23677c(){await _0x63d952,_0x7d2ab7[_0x443e2b([0x6d,0x6f,0x64,0x65,0x6c])][_0x443e2b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x438998,_0x7d2ab7[_0x443e2b([0x6d,0x6f,0x64,0x65,0x6c])][_0x443e2b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x438998,_0x7d2ab7[_0x443e2b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x443e2b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb36988(){return _0x4d5a65(_0x443e2b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x10972a(_0x443e2b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x443e2b([0x73,0x74,0x61,0x74,0x65])]==_0x443e2b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x43f129(){return _0x4d5a65(_0x443e2b([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 _0x55417f(){return _0x4d5a65(_0x443e2b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2879fc(_0x5c1e8e){const _0x16d03b=_0x11d224();_0x7d2ab7[_0x16d03b]=_0x443e2b([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5c1e8e,_0x5c1e8e!=_0x443e2b([0x56,0x61,0x6c,0x69,0x64])&&_0x23677c();}function _0x11d224(){const _0xf879d1=window[_0x443e2b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x443e2b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x443e2b([0x6e,0x6f,0x77])]())[_0x443e2b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x443e2b([0x2e]),'');let _0x3a4a59=_0x443e2b([0x78]);for(let _0x3545de=0x0;_0x3545de<_0xf879d1[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3545de+=0x2){let _0x34f040=window[_0x443e2b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf879d1[_0x443e2b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3545de,_0x3545de+0x2));_0x34f040>=_0x2a7142[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x34f040-=_0x2a7142[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3a4a59+=_0x2a7142[_0x34f040];}return _0x3a4a59;}function _0x13422f(){const _0x3c6247=_0x11d865[_0x443e2b([0x73,0x70,0x6c,0x69,0x74])](_0x443e2b([0x2e]));if(0x3!=_0x3c6247[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1aa198(_0x3c6247[0x1]);function _0x1aa198(_0x44ade5){const _0x3863bc=_0x1599b5(_0x44ade5);return _0x3863bc&&_0x494efb()?_0x3863bc:null;function _0x494efb(){const _0x551800=_0x3863bc[_0x443e2b([0x6a,0x74,0x69])],_0x52de4a=window[_0x443e2b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x551800[_0x443e2b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x551800[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x508abc={..._0x3863bc,[_0x443e2b([0x6a,0x74,0x69])]:_0x551800[_0x443e2b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x551800[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x508abc[_0x443e2b([0x76,0x63])],_0x408655(_0x508abc)==_0x52de4a;}}}async function _0xb43bd1(){let _0x5eac3e=!0x0;try{const _0x466802=_0x11d865[_0x443e2b([0x73,0x70,0x6c,0x69,0x74])](_0x443e2b([0x2e])),[_0x45f443,_0x3b8b8b,_0x51d0e4]=_0x466802;return _0x1c13d7(_0x45f443),await _0x3be9fa(_0x45f443,_0x3b8b8b,_0x51d0e4),_0x5eac3e;}catch{return!0x1;}function _0x1c13d7(_0x3c702f){const _0x1fdcdd=_0x1599b5(_0x3c702f);_0x1fdcdd&&_0x1fdcdd[_0x443e2b([0x61,0x6c,0x67])]==_0x443e2b([0x45,0x53,0x32,0x35,0x36])||(_0x5eac3e=!0x1);}async function _0x3be9fa(_0x6abed1,_0x341caf,_0x51bebd){const _0xe9d324=window[_0x443e2b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x443e2b([0x66,0x72,0x6f,0x6d])](_0x1c0a33(_0x51bebd),_0x27a842=>_0x27a842[_0x443e2b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x108c1c=new window[(_0x443e2b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x443e2b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6abed1+_0x443e2b([0x2e])+_0x341caf),_0x27d48c=window[_0x443e2b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x443e2b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27d48c)return;const _0x971b4d=await _0x27d48c[_0x443e2b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x443e2b([0x6a,0x77,0x6b]),_0x3aea61,{[_0x443e2b([0x6e,0x61,0x6d,0x65])]:_0x443e2b([0x45,0x43,0x44,0x53,0x41]),[_0x443e2b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x443e2b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x443e2b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27d48c[_0x443e2b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x443e2b([0x6e,0x61,0x6d,0x65])]:_0x443e2b([0x45,0x43,0x44,0x53,0x41]),[_0x443e2b([0x68,0x61,0x73,0x68])]:{[_0x443e2b([0x6e,0x61,0x6d,0x65])]:_0x443e2b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x971b4d,_0xe9d324,_0x108c1c)||(_0x5eac3e=!0x1);}}function _0x1599b5(_0x524d2c){return _0x524d2c[_0x443e2b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x443e2b([0x65,0x79]))?JSON[_0x443e2b([0x70,0x61,0x72,0x73,0x65])](_0x1c0a33(_0x524d2c)):null;}function _0x1c0a33(_0x8c9615){return window[_0x443e2b([0x61,0x74,0x6f,0x62])](_0x8c9615[_0x443e2b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x443e2b([0x2b]))[_0x443e2b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x443e2b([0x2f])));}function _0x408655(_0x1c035d){let _0x5e2da8=0x1505;function _0x37bfec(_0x416187){for(let _0x24268a=0x0;_0x24268a<_0x416187[_0x443e2b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24268a++){const _0x1c1f16=_0x416187[_0x443e2b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24268a);_0x5e2da8=(_0x5e2da8<<0x5)+_0x5e2da8+_0x1c1f16,_0x5e2da8&=_0x5e2da8;}}function _0x5e5679(_0xa9d779){Array[_0x443e2b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xa9d779)?_0xa9d779[_0x443e2b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e5679):_0xa9d779&&typeof _0xa9d779==_0x443e2b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x443e2b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xa9d779)[_0x443e2b([0x73,0x6f,0x72,0x74])]()[_0x443e2b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x33a730,_0x4f2fdc])=>{_0x37bfec(_0x33a730),_0x5e5679(_0x4f2fdc);}):_0x37bfec(window[_0x443e2b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xa9d779));}return _0x5e5679(_0x1c035d),_0x5e2da8>>>0x0;}function _0x4626b5(_0x3311c1){return _0x3311c1[_0x443e2b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x443e2b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x443e2b([0x30]));}function _0x37327f(_0x3cf84a){return _0x3cf84a[_0x443e2b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x443e2b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x443e2b([0x6a,0x6f,0x69,0x6e])]('');}function _0x4d5a65(_0x267ab7){return _0x7d2ab7[_0x443e2b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x443e2b([0x68,0x61,0x73])](_0x267ab7);}function _0x10972a(_0xbd8ad2){return _0x7d2ab7[_0x443e2b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x443e2b([0x67,0x65,0x74])](_0xbd8ad2);}function _0x438998(){}function _0x443e2b(_0x4d17b4){return _0x4d17b4['map'](_0x468e33=>String['fromCharCode'](_0x468e33))['join']('');}_0x2879fc(await _0x35b678());}(this);}set['adapter'](_0x33f950){if(this['_adapter'])throw new _0x280c51('track-changes-adapter-already-set',this);this['_adapter']=_0x33f950;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x82387a=!0x1,toJSON:_0x5cf2ce=!0x1}={}){const _0x2ab0d8=[];for(const _0x4ebf63 of this['_suggestions']['values']())_0x82387a&&!_0x4ebf63['isInContent']||_0x2ab0d8['push'](_0x4ebf63);return _0x5cf2ce?_0x2ab0d8['map'](_0x5883c1=>_0x5883c1['toJSON']()):_0x2ab0d8;}['getSuggestion'](_0xdb6a2c){const _0x59ba3e=this['_suggestions']['get'](_0xdb6a2c);if(!_0x59ba3e)throw new _0x280c51('track-changes-suggestion-not-found',this);return _0x59ba3e;}['hasSuggestion'](_0x277c85){return this['_suggestions']['has'](_0x277c85);}['addSuggestionData'](_0x50453e){const {authorId:_0x1ee32c,id:_0x102863,originalSuggestionId:_0x5416ec,attributes:_0x4ae9c4}=_0x50453e,[_0x39a384,_0x412f86]=_0x50453e['type']['split'](':'),_0x4ae89d=this['_suggestions']['get'](_0x102863)||this['_createSuggestion'](_0x39a384,_0x412f86,_0x102863,_0x1ee32c,_0x4ae9c4,_0x5416ec);if(this['_addThreadToSuggestion'](_0x4ae89d),this['_checkSuggestionCorrectness'](_0x4ae89d,_0x39a384,_0x412f86||null,_0x1ee32c),_0x4ae89d['createdAt']=_0x50453e['createdAt'],_0x4ae89d['_isDataLoaded']=!0x0,_0x4ae9c4&&_0x4ae9c4['@external']){const _0x3231be=_0x4ae9c4['@external'],_0x325c55=this['_getExternalAuthor'](_0x3231be['authorName']);_0x4ae89d['authoredAt']=_0x3231be['createdAt'],_0x4ae89d['author']=_0x325c55,_0x4ae89d['isExternal']=!0x0;}else _0x4ae89d['authoredAt']=_0x50453e['createdAt'];switch(_0x50453e['data']&&(_0x4ae89d['data']=_0x50453e['data']),_0x50453e['attributes']&&(_0x4ae89d['attributes']=_0x50453e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4ae89d['_saved']=!0x0),this['_suggestionState']['get'](_0x4ae89d)){case'notReady':this['_suggestionState']['set'](_0x4ae89d,'dataReady');break;case'markerReady':_0x4ae89d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4ae89d])),this['_refreshSuggestionsChain'](new Set([_0x4ae89d])),this['_suggestionState']['set'](_0x4ae89d,'ready'),this['fire']('suggestionLoaded',_0x4ae89d)):this['_suggestionState']['set'](_0x4ae89d,'removed');}return _0x4ae89d;}['acceptSuggestion'](_0x2fa09b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3670c0 of _0x2fa09b['getAllAdjacentSuggestions']())_0x3670c0['accept']();});});}['discardSuggestion'](_0x12a4e5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x19df6a of _0x12a4e5['getAllAdjacentSuggestions']())_0x19df6a['discard']();});});}['enableCommand'](_0x3868f9,_0x59e410){const _0x4088b2=this['editor']['commands']['get'](_0x3868f9);if(!_0x4088b2)throw new _0x280c51('track-changes-command-not-found',this,{'commandName':_0x3868f9});if(this['_enabledCommands']['has'](_0x4088b2))throw new _0x280c51('track-changes-enable-command-twice',this,{'commandName':_0x3868f9});this['_enabledCommands']['add'](_0x4088b2),_0x59e410&&_0x4088b2['on']('execute',(_0x285acd,_0x2c56cc)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2c56cc['length']>0x0&&_0x2c56cc[_0x2c56cc['length']-0x1]&&_0x2c56cc[_0x2c56cc['length']-0x1]['forceDefaultExecution']?_0x2c56cc['pop']():(_0x285acd['return']=_0x59e410((..._0x174afd)=>_0x4088b2['execute'](..._0x174afd,{'forceDefaultExecution':!0x0}),..._0x2c56cc),_0x285acd['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x776668){let _0xd04de1,_0x41ffd4;const _0x4dfcbe=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xd04de1=_0x776668();}catch(_0x41a29a){_0x41ffd4=_0x41a29a;}return _0x4dfcbe||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x41ffd4&&_0x280c51['rethrowUnexpectedError'](_0x41ffd4,this),_0xd04de1;}['markInsertion'](_0x589781,_0x247d8c=null,_0x538ea3={}){if(_0x589781['isCollapsed'])return null;const _0x15f89e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x538ea3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3498a7,meta:_0xb01742}of this['_findSuggestions'](_0x589781,'insertion'))if(_0xb01742['isOwn']){if(!_0xb01742['isNextTo']){if(_0xb01742['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x3498a7,_0x538ea3))continue;return _0x3498a7;}if(Xt(_0x3498a7,_0x538ea3))return _0x3498a7;this['_breakSuggestionMarker'](_0x3498a7,_0x589781['start'],_0x589781['end']);break;}if(_0x247d8c==_0x3498a7['subType']&&Xt(_0x3498a7,_0x538ea3)){const _0x58f006=_0x3498a7['getFirstRange']();return _0x58f006['start']['isEqual'](_0x589781['end'])?this['_setSuggestionRange'](_0x3498a7,this['_model']['createRange'](_0x589781['start'],_0x58f006['end'])):this['_setSuggestionRange'](_0x3498a7,this['_model']['createRange'](_0x58f006['start'],_0x589781['end'])),_0x3498a7;}}const _0x304c1d=_0x58b607(),_0x4ab15f=_0x15f89e['id'],_0x4d6d88=_0x247d8c?'insertion:'+_0x247d8c:'insertion',_0x3d425c=this['_setSuggestionData']({'id':_0x304c1d,'type':_0x4d6d88,'createdAt':new Date(),'authorId':_0x4ab15f,'attributes':_0x538ea3});return this['_addSuggestionMarker'](_0x4d6d88,_0x304c1d,_0x4ab15f,_0x589781),_0x3d425c;}['markMultiRangeInsertion'](_0x520ea4,_0xc02cd3='multi',_0x2aab2a={}){const _0x1cf7c8=this['editor']['plugins']['get']('Users')['me'],_0x252d12=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xc02cd3,'join');this['_trackingSessionId']&&(_0x2aab2a['trackingSessionId']=this['_trackingSessionId']);for(const _0x59648f of this['getSuggestions']())if(_0x59648f['author']['id']==_0x1cf7c8['id']&&'insertion'==_0x59648f['type']&&_0x59648f['subType']==_0xc02cd3&&Xt(_0x59648f,_0x2aab2a)&&(_0x252d12(_0x59648f['getRanges'](),_0x520ea4)||_0x252d12(_0x520ea4,_0x59648f['getRanges']()))){for(const _0xdbfbd0 of _0x520ea4)_0x59648f['addRange'](_0xdbfbd0);return _0x59648f;}for(const {suggestion:_0x3ee54a,meta:_0x2fe524}of this['_findSuggestions'](_0x520ea4,'insertion')){if(!_0x2fe524['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2fe524['containsRangeInObject'])continue;if(!Xt(_0x3ee54a,_0x2aab2a))continue;let _0x33e253=!0x0;for(const _0x517f0d of _0x3ee54a['getRanges']())for(const _0x34c11a of _0x520ea4)if(!_0x517f0d['containsRange'](_0x34c11a)){_0x33e253=!0x1;break;}if(_0x33e253)return _0x3ee54a;}const _0x269696=_0x58b607(),_0x18380d=_0x1cf7c8['id'],_0x1a5419='insertion:'+_0xc02cd3,_0x23400d=this['_setSuggestionData']({'id':_0x269696,'type':_0x1a5419,'createdAt':new Date(),'authorId':_0x18380d,'attributes':_0x2aab2a});for(const _0xb0ac01 of _0x520ea4)this['_addSuggestionMarker'](_0x1a5419,_0x269696,_0x18380d,_0xb0ac01,T['getMultiRangeId']());return _0x23400d;}['markInlineFormat'](_0x4b8889,_0xf0bfec,_0x3169a2=null,_0x9ae8cc={}){if(_0x3169a2=_0x3169a2||Lt(_0xf0bfec),_0x4b8889['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x9ae8cc['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x201281=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3169a2,'accept');return this['forceDefaultExecution'](()=>_0x201281([_0x4b8889],_0xf0bfec,_0x9ae8cc)),null;}const _0x5af3e6=this['editor']['plugins']['get']('Users')['me'],_0x203653=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x33b0f1,meta:_0x14377a}of this['_findSuggestions'](_0x4b8889,'insertion'))_0x14377a['isOwn']&&!_0x14377a['isInsideObject']&&_0x203653['push'](..._0x33b0f1['getRanges']());}const _0x8174f2=function(_0x417ca7,_0x3dc798){const _0x76292c=[];for(const _0x56744e of _0x3dc798){const _0xdbc5b5=_0x417ca7['getIntersection'](_0x56744e);_0xdbc5b5&&_0x76292c['push'](_0xdbc5b5);}return _0x76292c;}(_0x4b8889,_0x203653),_0x57d09f=function(_0x90fc2d,_0x194a2e){const _0xbfe21c=[_0x90fc2d];for(const _0x4555b8 of _0x194a2e){let _0x502556=0x0;for(;_0x502556<_0xbfe21c['length'];){const _0x30df38=_0xbfe21c[_0x502556]['getDifference'](_0x4555b8);_0xbfe21c['splice'](_0x502556,0x1,..._0x30df38),_0x502556+=_0x30df38['length'];}}return _0xbfe21c;}(_0x4b8889,_0x203653);_0x8174f2['length']&&this['_model']['change'](()=>{for(const _0x5d2d50 of _0x8174f2){const _0x2ef50e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3169a2,'accept');this['forceDefaultExecution'](()=>_0x2ef50e([_0x5d2d50],_0xf0bfec,_0x9ae8cc));}});for(const _0x59bd71 of _0x57d09f){let _0x3716a2=null,_0x2e29dc=_0x59bd71['start'],_0x8148e1=_0x59bd71['end'];for(const {suggestion:_0x3dc735,meta:_0x408f6d}of this['_findSuggestions'](_0x59bd71,'formatInline')){if(!_0x408f6d['isOwn'])continue;if(_0x3dc735['subType']!=_0x3169a2)continue;if(!Xt(_0x3dc735,_0x9ae8cc))continue;const _0x28d8b8=_0x3dc735['getFirstRange']();if(_0x28d8b8['containsRange'](_0x59bd71,!0x0))return null;_0x2e29dc=_0x2e29dc['isBefore'](_0x28d8b8['start'])?_0x2e29dc:_0x28d8b8['start'],_0x8148e1=_0x8148e1['isAfter'](_0x28d8b8['end'])?_0x8148e1:_0x28d8b8['end'],_0x3716a2?_0x28d8b8['start']['isBefore'](_0x3716a2['getFirstRange']()['start'])?(_0x3716a2['removeMarkers'](),_0x3716a2=_0x3dc735):_0x3dc735['removeMarkers']():_0x3716a2=_0x3dc735;}const _0x723247=this['_model']['createRange'](_0x2e29dc,_0x8148e1);if(_0x3716a2)this['_setSuggestionRange'](_0x3716a2,_0x723247);else{const _0x2c04bf=_0x58b607(),_0x46dd28=_0x5af3e6['id'];this['_setSuggestionData']({'id':_0x2c04bf,'type':'formatInline:'+_0x3169a2,'data':_0xf0bfec,'createdAt':new Date(),'authorId':_0x46dd28,'attributes':_0x9ae8cc}),this['_addSuggestionMarker']('formatInline:'+_0x3169a2,_0x2c04bf,_0x46dd28,_0x723247);}}return null;}['markBlockFormat'](_0xb32d02,_0x230e4b,_0x49ad9f=[],_0x312d14=null,_0x16d86b={}){_0x230e4b['formatGroupId']||(_0x230e4b['formatGroupId']=_0x230e4b['commandName']),_0x230e4b['multipleBlocks']=_0xb32d02['is']('range'),_0x312d14=_0x312d14||Lt(_0x230e4b);const _0x949870=_0x49ad9f['map'](_0x3fda6e=>zt(_0x3fda6e,this['_model'])),_0x473c18=_0xb32d02['is']('range')?_0xb32d02:zt(_0xb32d02,this['_model']);if(this['_trackingSessionId']&&(_0x16d86b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4b1626=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x312d14,'accept');return this['forceDefaultExecution'](()=>_0x4b1626([_0x473c18],_0x230e4b,_0x16d86b)),null;}_0x949870['push'](_0x473c18);let _0x1a4e90=!0x0;for(const _0x419f9d of _0x949870)if(!this['_rangeIsInLocalUserInsertion'](_0x419f9d)){_0x1a4e90=!0x1;break;}if(_0x1a4e90&&'always'!==this['_trackFormatChanges']){const _0x1f4c4f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x312d14,'accept');return this['forceDefaultExecution'](()=>_0x1f4c4f([_0x473c18],_0x230e4b,_0x16d86b)),null;}let _0x1390fd=null,_0x3ee115=_0x473c18['start'],_0x1cc56e=_0x473c18['end'];for(const {suggestion:_0x33e8f7,meta:_0x49dc0a}of this['_findSuggestions'](_0x473c18,'formatBlock')){if(!_0x49dc0a['isOwn'])continue;if(_0x49dc0a['isNextTo']||_0x49dc0a['containsRangeInObject']||_0x49dc0a['isInsideObject'])continue;if(_0x33e8f7['data']['formatGroupId']!=_0x230e4b['formatGroupId'])continue;if(!Xt(_0x33e8f7,_0x16d86b))continue;const _0x4d98ef=_0x33e8f7['getFirstRange']();if(_0x33e8f7['subType']==_0x312d14){if(_0x4d98ef['containsRange'](_0x473c18,!0x0))return null;_0x3ee115=_0x3ee115['isBefore'](_0x4d98ef['start'])?_0x3ee115:_0x4d98ef['start'],_0x1cc56e=_0x1cc56e['isAfter'](_0x4d98ef['end'])?_0x1cc56e:_0x4d98ef['end'],_0x1390fd?_0x4d98ef['start']['isBefore'](_0x1390fd['getFirstRange']()['start'])?(_0x1390fd['removeMarkers'](),_0x1390fd=_0x33e8f7):_0x33e8f7['removeMarkers']():_0x1390fd=_0x33e8f7;}else{const _0x40939f=_0x473c18['getIntersection'](_0x4d98ef);this['_cutOutSuggestionMarker'](_0x33e8f7,_0x40939f);}}const _0x1ad220=this['editor']['plugins']['get']('Users')['me'],_0x37cac6=_0x58b607(),_0x4573ff=_0x1ad220['id'];if(_0x1390fd)return this['_setSuggestionRange'](_0x1390fd,this['_model']['createRange'](_0x3ee115,_0x1cc56e)),_0x1390fd;{const _0xdd8aea=this['_setSuggestionData']({'id':_0x37cac6,'type':'formatBlock:'+_0x312d14,'data':_0x230e4b,'createdAt':new Date(),'authorId':_0x4573ff,'attributes':_0x16d86b});return this['_addSuggestionMarker']('formatBlock:'+_0x312d14,_0x37cac6,_0x4573ff,this['_model']['createRange'](_0x3ee115,_0x1cc56e)),_0xdd8aea;}}['markMultiRangeBlockFormat'](_0x14a474,_0x5ca843,_0x86487a=[],_0x391b22=null,_0x143e4e={}){_0x5ca843['formatGroupId']||(_0x5ca843['formatGroupId']=_0x5ca843['commandName']);const _0x5845c7=_0x14a474[0x0];_0x5ca843['multipleBlocks']=_0x5845c7['is']('range'),_0x391b22=_0x391b22||Lt(_0x5ca843);const _0x4add93=_0x86487a['map'](_0x3a06e7=>zt(_0x3a06e7,this['_model'])),_0x41d0e=_0x5845c7['is']('range')?_0x14a474:_0x14a474['map'](_0x4918d7=>zt(_0x4918d7,this['_model']));if(this['_trackingSessionId']&&(_0x143e4e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5ba15d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x391b22,'accept');return this['forceDefaultExecution'](()=>_0x5ba15d(_0x41d0e,_0x5ca843,_0x143e4e)),null;}_0x4add93['push'](..._0x41d0e);let _0x5f37cd=!0x0;for(const _0x36eedc of _0x4add93)if(!this['_rangeIsInLocalUserInsertion'](_0x36eedc)){_0x5f37cd=!0x1;break;}if(_0x5f37cd&&'always'!==this['_trackFormatChanges']){const _0x4ed43e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x391b22,'accept');return this['forceDefaultExecution'](()=>_0x4ed43e(_0x41d0e,_0x5ca843,_0x143e4e)),null;}const _0x56644a=this['editor']['plugins']['get']('Users')['me'];for(const _0x4de981 of this['getSuggestions']()){const _0x9082c0=_0x4de981['data'];if(_0x4de981['author']['id']!=_0x56644a['id'])continue;if('formatBlock'!=_0x4de981['type']||_0x9082c0['formatGroupId']!=_0x5ca843['formatGroupId'])continue;if(!Xt(_0x4de981,_0x143e4e))continue;const _0x23dceb=_0x4de981['subType']==_0x391b22;for(let _0x52b0ad=0x0;_0x52b0ad<_0x41d0e['length'];_0x52b0ad++){const _0x5604e4=_0x41d0e[_0x52b0ad];for(const _0x474b2f of _0x4de981['getMarkers']()){const _0x82822=_0x474b2f['getRange']();if(_0x5604e4['isEqual'](_0x82822)){_0x23dceb?(_0x41d0e['splice'](_0x52b0ad,0x1),_0x52b0ad--):_0x4de981['removeMarker'](_0x474b2f['name']);break;}}}}if(0x0==_0x41d0e['length'])return null;const _0x1fdcfd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x391b22,'join');for(const _0x55def9 of this['getSuggestions']()){const _0x26a47e=_0x55def9['data'];if(_0x55def9['author']['id']==_0x56644a['id']&&('formatBlock'==_0x55def9['type']&&_0x26a47e['formatGroupId']==_0x5ca843['formatGroupId']&&_0x55def9['subType']==_0x391b22&&Xt(_0x55def9,_0x143e4e)&&(_0x1fdcfd(_0x55def9['getRanges'](),_0x41d0e)||_0x1fdcfd(_0x41d0e,_0x55def9['getRanges']())))){for(const _0x48dafb of _0x41d0e)_0x55def9['addRange'](_0x48dafb);return _0x55def9;}}const _0xe835e8=_0x58b607(),_0x3af77e=_0x56644a['id'],_0x110611='formatBlock:'+_0x391b22,_0x23d049=this['_setSuggestionData']({'id':_0xe835e8,'type':_0x110611,'data':_0x5ca843,'createdAt':new Date(),'authorId':_0x3af77e,'attributes':_0x143e4e});for(const _0x4c0b0c of _0x41d0e)this['_addSuggestionMarker'](_0x110611,_0xe835e8,_0x3af77e,_0x4c0b0c,T['getMultiRangeId']());return _0x23d049;}['markDeletion'](_0x1d2f10,_0x1a4288=null,_0x86ec5b={}){if(_0x1d2f10['isCollapsed'])return null;const _0x371815=this['editor']['plugins']['get']('Users')['me'],_0xe53ab3=new _0x153d61(_0x1d2f10['start'],_0x1d2f10['end']);this['_trackingSessionId']&&(_0x86ec5b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4b4d97,meta:_0x5cc638}of this['_findSuggestions'](_0xe53ab3,'insertion'))if(_0x5cc638['isOwn']&&!_0x5cc638['isNextTo']){if(_0x4b4d97['isMultiRange']){const _0x226bd8=_0x4b4d97['getRanges']()['filter'](_0x3169cb=>'$graveyard'!=_0x3169cb['root']['rootName']);_0x226bd8['every'](_0x568d35=>_0xe53ab3['containsRange'](_0x568d35,!0x0))&&_0x4b4d97['discard']();if(_0x226bd8['some'](_0x569636=>_0x569636['containsRange'](_0xe53ab3,!0x0))){const _0x5068f4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a4288,'accept');return this['forceDefaultExecution'](()=>_0x5068f4([_0xe53ab3],null,_0x86ec5b)),null;}}else{const _0x372fc5=_0xe53ab3['getIntersection'](_0x4b4d97['getFirstRange']());null!==_0x372fc5&&_0x4b4d97['_onDiscard']([_0x372fc5],null,_0x86ec5b);}}if(_0xe53ab3['detach'](),_0xe53ab3['isCollapsed']||'$graveyard'==_0xe53ab3['root']['rootName'])return null;let _0x5a6c5e=null,_0x2fb90d=_0xe53ab3['start'],_0xbcd1e6=_0xe53ab3['end'];const _0x4f12d3=this['_findSuggestions'](_0xe53ab3,'deletion');for(const {suggestion:_0x55dce7,meta:_0x2c59e3}of _0x4f12d3){const _0x1bd868=this['_model']['createRange'](_0x2fb90d,_0xbcd1e6);if(_0x2c59e3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2c59e3['containsRangeInObject']&&!_0x2c59e3['isInsideObject'])){if(_0x55dce7['isMultiRange']){if(!Xt(_0x55dce7,_0x86ec5b))continue;let _0x443bec=!0x0;for(const _0x34ea52 of _0x55dce7['getRanges']()){if(_0x34ea52['containsRange'](_0x1bd868,!0x0))return _0x55dce7;_0x1bd868['containsRange'](_0x34ea52)||(_0x443bec=!0x1);}_0x443bec&&_0x55dce7['discard']();}else{const _0x1b2f02=_0x55dce7['getFirstRange']();if(_0x1b2f02['containsRange'](_0x1bd868,!0x0))return _0x55dce7;if(!Xt(_0x55dce7,_0x86ec5b)){_0x1bd868['containsRange'](_0x1b2f02)?_0x55dce7['removeMarkers']():_0x1b2f02['containsPosition'](_0x2fb90d)?_0x2fb90d=_0x1b2f02['end']:_0x1b2f02['containsPosition'](_0xbcd1e6)&&(_0xbcd1e6=_0x1b2f02['start']);continue;}_0x2fb90d=_0x2fb90d['isBefore'](_0x1b2f02['start'])?_0x2fb90d:_0x1b2f02['start'],_0xbcd1e6=_0xbcd1e6['isAfter'](_0x1b2f02['end'])?_0xbcd1e6:_0x1b2f02['end'],_0x86ec5b=Object['assign']({},_0x55dce7['attributes']),_0x5a6c5e?_0x1b2f02['start']['isBefore'](_0x5a6c5e['getFirstRange']()['start'])?(_0x5a6c5e['removeMarkers'](),_0x5a6c5e=_0x55dce7):_0x55dce7['removeMarkers']():_0x5a6c5e=_0x55dce7;}}}if(_0x5a6c5e)return this['_setSuggestionRange'](_0x5a6c5e,this['_model']['createRange'](_0x2fb90d,_0xbcd1e6)),_0x5a6c5e;{const _0x2b69c3=_0x58b607(),_0x21df1b=this['_model']['createRange'](_0x2fb90d,_0xbcd1e6),_0x52661a=_0x371815['id'],_0x2c5f7e=_0x1a4288?'deletion:'+_0x1a4288:'deletion',_0x174602=this['_setSuggestionData']({'id':_0x2b69c3,'type':_0x2c5f7e,'createdAt':new Date(),'authorId':_0x52661a,'attributes':_0x86ec5b});return this['_addSuggestionMarker'](_0x2c5f7e,_0x2b69c3,_0x52661a,_0x21df1b),_0x174602;}}['markMultiRangeDeletion'](_0xc85b56,_0xa61409='multi',_0x210d8e={}){const _0x5bef75=this['editor']['plugins']['get']('Users')['me'],_0x1c89e2=_0xc85b56['map'](_0x1af2ab=>new _0x153d61(_0x1af2ab['start'],_0x1af2ab['end'])),_0x571cea=new Set();this['_trackingSessionId']&&(_0x210d8e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4b405c,meta:_0x2b5c90}of this['_findSuggestions'](_0x1c89e2,'insertion'))_0x2b5c90['isOwn']&&!_0x2b5c90['isNextTo']&&_0x571cea['add'](_0x4b405c);for(const _0x45a449 of _0x571cea)if(_0x45a449['isMultiRange']){const _0x516b35=_0x45a449['getRanges']();(!_0x45a449['attributes']||!_0x45a449['attributes']['skipNestingCheck'])&&(_0x516b35['every'](_0x41b719=>_0x1c89e2['some'](_0x4a270f=>_0x4a270f['containsRange'](_0x41b719,!0x0)))&&_0x45a449['discard']());if(_0x1c89e2['every'](_0x134ecf=>_0x516b35['some'](_0x519410=>_0x519410['containsRange'](_0x134ecf,!0x0)))){const _0x4edb60=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa61409,'accept');return this['forceDefaultExecution'](()=>_0x4edb60(_0xc85b56,null,_0x210d8e)),null;}}else{const _0x26121f=_0x45a449['getFirstRange']();_0x1c89e2['some'](_0x30b4c7=>_0x30b4c7['containsRange'](_0x26121f,!0x0))&&_0x45a449['discard']();if(_0x1c89e2['every'](_0x53f34f=>_0x26121f['containsRange'](_0x53f34f,!0x0))){const _0xa98d5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa61409,'accept');return this['forceDefaultExecution'](()=>_0xa98d5(_0x1c89e2,null,_0x210d8e)),null;}}const _0x143ae8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa61409,'join');let _0x1bf064=null;for(const _0x5b54f6 of this['getSuggestions']())if(_0x5b54f6['author']['id']==_0x5bef75['id']&&_0x5b54f6['isInContent']&&'deletion'==_0x5b54f6['type']&&_0x5b54f6['subType']==_0xa61409&&Xt(_0x5b54f6,_0x210d8e)&&(_0x143ae8(_0x5b54f6['getRanges'](),_0x1c89e2)||_0x143ae8(_0x1c89e2,_0x5b54f6['getRanges']()))){if(_0x1bf064){if(_0x5b54f6['commentThread']&&_0x5b54f6['commentThread']['length'])continue;for(const _0x5690db of _0x5b54f6['getRanges']())_0x1bf064['isIntersectingWithRange'](_0x5690db)||_0x1bf064['addRange'](_0x5690db);_0x5b54f6['removeMarkers']();}else{_0x1bf064=_0x5b54f6;for(const _0x325e62 of _0x1c89e2)_0x5b54f6['isIntersectingWithRange'](_0x325e62)||_0x5b54f6['addRange'](_0x325e62);}}if(_0x1bf064)return _0x1bf064;_0x571cea['clear']();for(const {suggestion:_0x3b58de,meta:_0x54ae06}of this['_findSuggestions'](_0x1c89e2,'deletion'))_0x54ae06['isOwn']&&(this['_mergeNestedSuggestions']||!_0x54ae06['containsRangeInObject']&&!_0x54ae06['isInsideObject'])&&Xt(_0x3b58de,_0x210d8e)&&_0x571cea['add'](_0x3b58de);for(const _0x15f5fe of _0x571cea){const _0x3194c3=_0x15f5fe['getRanges']();if(!_0x210d8e||!_0x210d8e['skipNestingCheck']){if(_0x1c89e2['every'](_0x3db9c6=>_0x3194c3['some'](_0x281640=>_0x281640['containsRange'](_0x3db9c6,!0x0))))return _0x15f5fe;}(!_0x15f5fe['attributes']||!_0x15f5fe['attributes']['skipNestingCheck'])&&(_0x3194c3['every'](_0x66fc04=>_0x1c89e2['some'](_0x2d6ea6=>_0x2d6ea6['containsRange'](_0x66fc04,!0x0)))&&_0x15f5fe['discard']());}const _0xe9ecf=_0x58b607(),_0xb0f2e8=_0x5bef75['id'],_0x11fff8='deletion:'+_0xa61409,_0x283948=this['_setSuggestionData']({'id':_0xe9ecf,'type':_0x11fff8,'createdAt':new Date(),'authorId':_0xb0f2e8,'attributes':_0x210d8e});for(const _0x2d919d of _0x1c89e2)_0x2d919d['detach'](),_0x2d919d['isCollapsed']||'$graveyard'==_0x2d919d['root']['rootName']||this['_addSuggestionMarker'](_0x11fff8,_0xe9ecf,_0xb0f2e8,_0x2d919d,T['getMultiRangeId']());return _0x283948;}['markAttributeChange'](_0x5f0361,_0x365bb9,_0x103d0e,_0x1c9d29,_0x261f6c){if(_0x5f0361['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x574135=this['editor']['plugins']['get']('Users')['me']['id'],_0x4c9670=Array['from'](this['_suggestions']['values']())['filter'](_0x1e84fc=>'attribute'==_0x1e84fc['type']&&_0x1e84fc['data']['key']==_0x365bb9&&_0x1e84fc['isIntersectingWithRange'](_0x5f0361));if(this['_trackingSessionId']&&(_0x261f6c['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x5847a7=this['_findSuggestions'](_0x5f0361,'insertion')['filter'](({meta:_0x17d966})=>_0x17d966['isOwn']&&!_0x17d966['isInsideObject']&&!_0x17d966['isNextTo'])['map'](({suggestion:_0x12d91a})=>_0x12d91a);_0x4c9670['unshift'](..._0x5847a7);}const _0x15dc3f=new Map([[_0x5f0361,_0x103d0e]]);for(const _0x5c20a3 of _0x4c9670){const _0x20239a='attribute'==_0x5c20a3['type']?_0x5c20a3['data']['oldValue']:void 0x0,_0x1e2d0d=_0x5c20a3['getFirstRange'](),_0x59bcb4=Array['from'](_0x15dc3f['keys']())['find'](_0x1711d1=>_0x1711d1['isIntersecting'](_0x1e2d0d));if(!_0x59bcb4)continue;const _0x184eee=_0x59bcb4['getDifference'](_0x1e2d0d);this['_isBlockAttribute'](_0x365bb9)&&'insertion'==_0x5c20a3['type']&&0x0!=_0x184eee['length']||(_0x15dc3f['delete'](_0x59bcb4),_0x184eee['forEach'](_0x58914a=>{_0x15dc3f['set'](_0x58914a,_0x103d0e);}),'insertion'!=_0x5c20a3['type']&&_0x20239a!=_0x1c9d29&&_0x15dc3f['set'](_0x59bcb4['getIntersection'](_0x1e2d0d),_0x20239a));}const _0x425291=[];for(const [_0x373cdb,_0x433b20]of _0x15dc3f){const _0x2e14e9=_0x58b607(),_0x24ca7d={'key':_0x365bb9,'oldValue':_0x433b20,'newValue':_0x1c9d29};_0x365bb9['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':_0x365bb9});const _0xd338b0=('attribute:'+(_0x365bb9+'|'+Lt({'newValue':_0x1c9d29})))['substring'](0x0,0x3c),_0x367657=this['_setSuggestionData']({'id':_0x2e14e9,'type':_0xd338b0,'data':_0x24ca7d,'createdAt':new Date(),'authorId':_0x574135,'attributes':_0x261f6c});_0x425291['push'](_0x367657),this['_addSuggestionMarker'](_0xd338b0,_0x2e14e9,_0x574135,_0x373cdb);}return _0x425291;}['enableDefaultAttributesIntegration'](_0x7a8d70){this['enableCommand'](_0x7a8d70,(_0x19323b,..._0x374902)=>{this['recordAttributeChanges'](()=>{_0x19323b(..._0x374902);});});}['registerBlockAttribute'](_0x513390){this['_blockAttributeKeys']['add'](_0x513390);}['registerInlineAttribute'](_0x5b12bc){this['_inlineAttributeKeys']['add'](_0x5b12bc);}['startTrackingSession'](_0x58456d){return this['_trackingSessionId']=void 0x0!==_0x58456d?_0x58456d:_0x58b607(),this['_trackingSessionId'];}['_getAttributeKey'](_0x248037){return'attribute'==_0x248037['type']?_0x248037['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xf6aa29,_0xe700e0){const _0x3d3ed1=_0xf6aa29['getFirstMarker']();this['_model']['change'](_0x115f64=>{_0x115f64['updateMarker'](_0x3d3ed1,{'range':_0xe700e0});});}['_addThreadToSuggestion'](_0x79f77e){const _0x56deed=_0x79f77e['id'],_0x54eae9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x56deed)||this['_commentsRepository']['addCommentThread']({'channelId':_0x54eae9,'threadId':_0x56deed,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3202d2=this['_commentsRepository']['getCommentThread'](_0x56deed);_0x3202d2['unbind']('isRemovable'),_0x3202d2['isRemovable']=!0x1,_0x79f77e['commentThread']=_0x3202d2;}['_checkSuggestionCorrectness'](_0x54a43a,_0x1ff6a4,_0x4a6675,_0x1fc29b){if(_0x54a43a['type']!=_0x1ff6a4||_0x54a43a['subType']!=_0x4a6675||_0x54a43a['creator']['id']!=_0x1fc29b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x280c51('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x6a25b7,_0x514d65){const _0x821e92=_0x6a25b7['getFirstRange']();if(_0x514d65['isEqual'](_0x821e92))_0x6a25b7['removeMarkers']();else{if(_0x821e92['containsRange'](_0x514d65)){const _0x536799=this['_model']['createPositionAt'](_0x514d65['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x6a25b7,this['_model']['createRange'](_0x821e92['start'],_0x536799));const _0x5ea922=_0x58b607(),_0x1c4882=_0x6a25b7['creator']['id'],_0x1ae868=_0x6a25b7['type']+':'+_0x6a25b7['subType'];this['_setSuggestionData']({'id':_0x5ea922,'type':_0x1ae868,'createdAt':new Date(),'authorId':_0x1c4882,'data':_0x6a25b7['data'],'attributes':_0x6a25b7['attributes']});const _0xcd6eec=this['_model']['createPositionAt'](_0x514d65['end']['parent'],'after'),_0x1a8c4a=this['_model']['createRange'](_0xcd6eec,_0x821e92['end']);this['_addSuggestionMarker'](_0x1ae868,_0x5ea922,_0x1c4882,_0x1a8c4a);}else{if(_0x821e92['containsPosition'](_0x514d65['start'])){const _0x348b70=this['_model']['createPositionAt'](_0x514d65['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x6a25b7,this['_model']['createRange'](_0x821e92['start'],_0x348b70));}else{const _0x25477f=this['_model']['createPositionAt'](_0x514d65['end']['parent'],'after');this['_setSuggestionRange'](_0x6a25b7,this['_model']['createRange'](_0x25477f,_0x821e92['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1e2742){for(const {suggestion:_0x24d2b7,meta:_0x41216d}of this['_findSuggestions'](_0x1e2742,'insertion')){if(!_0x41216d['isOwn'])continue;const _0x100870=_0x24d2b7['getRanges']();for(const _0x3921d3 of _0x100870)if(!_0x1e2742['getDifference'](_0x3921d3)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x32a99f){const _0x2dcfc6=this['editor']['plugins']['get']('Users')['getUser'](_0x32a99f);if(!_0x2dcfc6)throw new _0x280c51('track-changes-user-not-found',this);return _0x2dcfc6;}['_getExternalAuthor'](_0x5ce9e4){const _0x39883a=this['editor']['plugins']['get']('Users'),_0xaf7c84=_0x3cef01('external:'+_0x5ce9e4),_0x592b27=_0x39883a['getUser'](_0xaf7c84);return _0x592b27||_0x39883a['addUser']({'id':_0xaf7c84,'name':_0x5ce9e4});}['_createSuggestion'](_0x355603,_0x1cc101,_0x1b6a11,_0x467e2f,_0x484011,_0xcc9502){const _0x41efb1=this['_getAuthorFromId'](_0x467e2f),_0x59c032=this['_suggestionFactory']['buildSuggestion'](_0x355603,_0x1cc101,_0x1b6a11,_0x41efb1,_0x484011,_0x227524=>{this['_updateSuggestionData'](_0x1b6a11,{'attributes':_0x227524});const _0x439fb5=this['getSuggestion'](_0x1b6a11);this['_joinWithAdjacentSuggestions'](new Set([_0x439fb5])),this['_refreshSuggestionsChain'](new Set([_0x439fb5]));},_0xcc9502);return this['listenTo'](_0x59c032,'accept',()=>{this['_updateSuggestionData'](_0x1b6a11,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x59c032,'discard',()=>{this['_updateSuggestionData'](_0x1b6a11,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1b6a11,_0x59c032),this['_suggestionState']['set'](_0x59c032,'notReady'),_0x59c032;}['_splitMarkerName'](_0x4b968b){const _0x31b51c=_0x4b968b['split'](':');return{'group':_0x31b51c[0x0],'type':_0x31b51c[0x1],'subType':_0x31b51c['length']>=0x5?_0x31b51c[0x2]:null,'id':_0x31b51c['length']<0x5?_0x31b51c[0x2]:_0x31b51c[0x3],'authorId':_0x31b51c['length']<0x5?_0x31b51c[0x3]:_0x31b51c[0x4],'markerCount':0x6==_0x31b51c['length']?_0x31b51c[0x5]:null};}['_breakSuggestionMarker'](_0xbbd6c3,_0x30150e,_0x2993ff){const _0x1e5a5e=_0xbbd6c3['getFirstRange'](),_0xb9a371=_0x1e5a5e['start'],_0x27ad00=_0x1e5a5e['end'];this['_setSuggestionRange'](_0xbbd6c3,this['_model']['createRange'](_0xb9a371,_0x30150e));const _0x5edd95=_0x58b607(),_0x2f3917=_0xbbd6c3['creator']['id'],_0x256ae9=_0xbbd6c3['type']+(_0xbbd6c3['subType']?':'+_0xbbd6c3['subType']:'');this['_setSuggestionData']({'id':_0x5edd95,'type':_0x256ae9,'createdAt':new Date(),'authorId':_0x2f3917,'originalSuggestionId':_0xbbd6c3['_originalSuggestionId']||_0xbbd6c3['id'],'attributes':_0xbbd6c3['attributes'],'data':_0xbbd6c3['data']});const _0x120719=this['_getAttributeKey'](_0xbbd6c3);('formatBlock'==_0xbbd6c3['type']||_0x120719&&this['_isBlockAttribute'](_0x120719))&&(_0x2993ff=this['_model']['createPositionBefore'](_0x2993ff['parent'])),this['_addSuggestionMarker'](_0x256ae9,_0x5edd95,_0x2f3917,this['_model']['createRange'](_0x2993ff,_0x27ad00));}['_findSuggestions'](_0x26deda,_0x2419a2=null){const _0xc80b25=[],_0x5a3e16=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x26deda)||(_0x26deda=[_0x26deda]);for(const _0x3af6fa of this['getSuggestions']()){if(!_0x3af6fa['isInContent'])continue;if(_0x2419a2&&_0x3af6fa['type']!=_0x2419a2)continue;let _0x457f54=!0x1;for(const _0xd75909 of _0x3af6fa['getRanges']()){for(const _0x2b3ecb of _0x26deda){const _0x9229a=_0x2b3ecb['start']['isEqual'](_0xd75909['end'])||_0x2b3ecb['end']['isEqual'](_0xd75909['start']);if(_0x9229a||_0x2b3ecb['getIntersection'](_0xd75909)){const _0x1bb1b3=_0x2b3ecb['containsRange'](_0xd75909)&&Ft(this['_model']['schema'],_0xd75909['start'],_0x2b3ecb),_0x1fe803=_0xd75909['containsRange'](_0x2b3ecb)&&Ft(this['_model']['schema'],_0x2b3ecb['start'],_0xd75909);_0xc80b25['push']({'suggestion':_0x3af6fa,'meta':{'isOwn':_0x5a3e16==_0x3af6fa['author'],'isNextTo':_0x9229a,'isInsideObject':_0x1bb1b3,'containsRangeInObject':_0x1fe803}}),_0x457f54=!0x0;break;}}if(_0x457f54)break;}}return _0xc80b25;}['_addSuggestionMarker'](_0x259ec4,_0x44aedd,_0x40160f,_0x208330,_0x453140){this['_model']['change'](_0x2096b4=>{let _0x370c34='suggestion:'+_0x259ec4+':'+_0x44aedd+':'+_0x40160f;_0x453140&&(_0x370c34=_0x370c34+':'+_0x453140),_0x2096b4['addMarker'](_0x370c34,{'range':_0x208330,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3195b6){const _0x370262=_0x3195b6['previous'],_0x3e6497=_0x3195b6['next'];_0x3195b6['previous']=null,_0x3195b6['next']=null,null!=_0x370262&&_0x370262['next']==_0x3195b6&&(_0x370262['next']=_0x3e6497),null!=_0x3e6497&&_0x3e6497['previous']==_0x3195b6&&(_0x3e6497['previous']=_0x370262),'ready'==this['_suggestionState']['get'](_0x3195b6)&&(this['_suggestionState']['set'](_0x3195b6,'removed'),this['fire']('suggestionUnloaded',_0x3195b6,_0x370262,_0x3e6497));}['_setSuggestionData'](_0x154a0d){const _0x43c150=_0x154a0d['id'],_0x2da5c8=this['addSuggestionData'](_0x154a0d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1b4f82=this['editor']['plugins']['get']('PendingActions'),_0x3bc66e=_0x2da5c8['hasComments'],_0x26c59a=_0x2da5c8['subType']?_0x2da5c8['type']+':'+_0x2da5c8['subType']:_0x2da5c8['type'],_0x452e4c=this['editor']['locale'],_0x45474b=_0x1b4f82['add'](o(_0x452e4c,'PENDING_ACTION_SUGGESTION')),_0x2a085f={'id':_0x43c150,'type':_0x26c59a,'hasComments':_0x3bc66e,'data':_0x154a0d['data']||null,'originalSuggestionId':_0x154a0d['originalSuggestionId']||null,'attributes':_0x2da5c8['attributes']};this['_adapter']['addSuggestion'](_0x2a085f)['then'](_0x1e23d9=>{_0x2da5c8['_saved']=!0x0,_0x1b4f82['remove'](_0x45474b),_0x1e23d9&&_0x1e23d9['createdAt']&&(this['_suggestions']['get'](_0x43c150)['createdAt']=_0x1e23d9['createdAt']);})['catch'](_0x5c74d=>{throw _0x282b91('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2da5c8['discard']();}),_0x2da5c8['stopListening'](),this['_suggestions']['delete'](_0x2da5c8['id']),this['_suggestionState']['delete'](_0x2da5c8),_0x5c74d;});}return _0x2da5c8;}['_isBlockAttribute'](_0x2e70ba){return this['_blockAttributeKeys']['has'](_0x2e70ba);}['_isInlineAttribute'](_0x14d9b4){return this['_inlineAttributeKeys']['has'](_0x14d9b4);}['_updateSuggestionData'](_0x3f6b6d,_0x445f51){const _0x1cc227=this['editor']['plugins']['get']('PendingActions'),_0x5d05e7=this['getSuggestion'](_0x3f6b6d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5d05e7['_saved']){const _0x2b0861=_0x1cc227['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3f6b6d,_0x445f51)['then'](()=>{_0x1cc227['remove'](_0x2b0861);});}else _0x5d05e7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3f6b6d,_0x445f51);});}}['_getSuggestionData'](_0x44918f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x280c51('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x44918f);}['_handleNewSuggestionMarker'](_0x12bce8){const {id:_0x229f39,type:_0x4e8bd6,subType:_0x56a989,authorId:_0x425450}=this['_splitMarkerName'](_0x12bce8),_0x5300d4=this['_suggestions']['get'](_0x229f39)||this['_createSuggestion'](_0x4e8bd6,_0x56a989,_0x229f39,_0x425450,{});switch(this['_checkSuggestionCorrectness'](_0x5300d4,_0x4e8bd6,_0x56a989,_0x425450),this['_suggestionState']['get'](_0x5300d4)){case'notReady':this['_getSuggestionData'](_0x229f39)['then'](_0x4ae62d=>{let _0x2e60e0=Promise['resolve']();_0x4ae62d['hasComments']&&(_0x2e60e0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x229f39})),_0x2e60e0['then'](()=>{this['addSuggestionData'](_0x4ae62d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5300d4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x229f39,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5300d4,'ready'),this['fire']('suggestionLoaded',_0x5300d4);break;case'ready':this['fire']('suggestionChanged',_0x5300d4);}return _0x5300d4['addMarkerName'](_0x12bce8),_0x5300d4;}['_refreshSuggestionsChain'](_0x3f14c8){const _0x46d4e1=Array['from'](_0x3f14c8),_0x242942=_0x46d4e1['filter'](_0xb352b1=>'attribute'==_0xb352b1['type']);this['_refreshAttributeSuggestionsChain'](_0x242942);const _0xaadfb=_0x46d4e1['filter'](_0x102ac9=>!_0x102ac9['isMultiRange']&&'attribute'!=_0x102ac9['type']),_0x4b0289=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d5f43=>!_0x1d5f43['isMultiRange']&&'attribute'!=_0x1d5f43['type']),_0x473682=_0x4b0289['filter'](_0x4e9d5e=>!_0x3f14c8['has'](_0x4e9d5e)),_0x10074b=new Map(_0x4b0289['map'](_0xf6ee11=>[_0xf6ee11,this['_suggestionFactory']['getSuggestionCallback'](_0xf6ee11['type'],_0xf6ee11['subType'],'chain')])),_0x4d30ed=new Map(_0x4b0289['map'](_0x2451fc=>[_0x2451fc,_0x2451fc['getFirstRange']()])),_0x1c0a92=new Set(),_0x8583ca=new Set();for(let _0x43fae9=0x0;_0x43fae9<_0xaadfb['length'];_0x43fae9++)_0x1baf88(_0xaadfb[_0x43fae9],_0xaadfb,_0x43fae9+0x1);for(let _0x16cba4=0x0;_0x16cba4<_0xaadfb['length'];_0x16cba4++)_0x1baf88(_0xaadfb[_0x16cba4],_0x473682,0x0);const _0x349700=new Set();for(let _0x5e5ba8=0x0;_0x5e5ba8<_0xaadfb['length'];_0x5e5ba8++){const _0x383c2b=_0xaadfb[_0x5e5ba8];!_0x8583ca['has'](_0x383c2b)&&_0x383c2b['previous']&&(_0x349700['add'](_0x383c2b['previous']),_0x383c2b['previous']['next']===_0x383c2b&&(_0x383c2b['previous']['next']=null),_0x383c2b['previous']=null),!_0x1c0a92['has'](_0x383c2b)&&_0x383c2b['next']&&(_0x349700['add'](_0x383c2b['next']),_0x383c2b['next']['previous']===_0x383c2b&&(_0x383c2b['next']['previous']=null),_0x383c2b['next']=null);}function _0x1baf88(_0x3b9f7f,_0x3f1a53,_0x312f16){for(let _0x3a026a=_0x312f16;_0x3a026a<_0x3f1a53['length'];_0x3a026a++){const _0x2dd8fc=_0x3161c7(_0x3b9f7f,_0x3f1a53[_0x3a026a]);_0x2dd8fc&&(_0x2dd8fc[0x0]['next']=_0x2dd8fc[0x1],_0x2dd8fc[0x1]['previous']=_0x2dd8fc[0x0],_0x1c0a92['add'](_0x2dd8fc[0x0]),_0x8583ca['add'](_0x2dd8fc[0x1]));}}function _0x3161c7(_0x52c17d,_0x14bf10){if(_0x52c17d['author']['id']!==_0x14bf10['author']['id'])return null;const _0xc62978=_0x10074b['get'](_0x52c17d)(_0x52c17d,_0x14bf10,_0x4d30ed['get'](_0x52c17d),_0x4d30ed['get'](_0x14bf10));if(!_0xc62978)return null;return _0x10074b['get'](_0x14bf10)(_0x52c17d,_0x14bf10,_0x4d30ed['get'](_0x52c17d),_0x4d30ed['get'](_0x14bf10))?_0xc62978[0x1]['commentThread']&&_0xc62978[0x1]['commentThread']['length']?null:_0xc62978:null;}_0x349700['size']&&this['_refreshSuggestionsChain'](_0x349700);}['_refreshAttributeSuggestionsChain'](_0x1d05ef){if(0x0==_0x1d05ef['length'])return;const _0x1a7c95=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22091b=>'attribute'==_0x22091b['type']&&_0x22091b['_isDataLoaded']),_0x56545a=[],_0x1c0283=new Map();for(const _0x2b1a22 of _0x1a7c95){const _0x4aac38=_0x3cef01(_0x2b1a22['attributes']);_0x1c0283['has'](_0x4aac38)||(_0x1c0283['set'](_0x4aac38,_0x56545a['length']),_0x56545a['push']([]));const _0x397acc=_0x1c0283['get'](_0x4aac38);_0x56545a[_0x397acc]['push'](_0x2b1a22);}!(function(){_0x56545a['sort']((_0x2c06e6,_0x571174)=>{const _0x14d9c9=_0x2c06e6[0x0]['createdAt'],_0x1a4c26=_0x571174[0x0]['createdAt'];return _0x14d9c9==_0x1a4c26?_0x2c06e6[0x0]['attributes']['groupId']<_0x571174[0x0]['attributes']['groupId']?-0x1:0x1:_0x14d9c9<_0x1a4c26?-0x1:0x1;});for(const _0x2a3585 of _0x56545a)_0x2a3585['sort']((_0x968500,_0x3daadd)=>_0x968500['id']<_0x3daadd['id']?-0x1:0x1);}());for(let _0x16b335=0x0;_0x16b335<_0x56545a['length'];_0x16b335++){if(0x0==_0x56545a[_0x16b335]['length'])continue;const _0x29937d=[];for(let _0x5f2080=_0x16b335+0x1;_0x5f2080<_0x56545a['length'];_0x5f2080++)0x0!=_0x56545a[_0x5f2080]['length']&&_0x1f1070(_0x56545a[_0x16b335],_0x56545a[_0x5f2080])&&_0x29937d['push'](_0x5f2080);for(const _0xe7d717 of _0x29937d)_0x56545a[_0x16b335]=_0x56545a[_0x16b335]['concat'](_0x56545a[_0xe7d717]),_0x56545a[_0xe7d717]=[];}for(const _0x2239af of _0x56545a)for(let _0x464cfc=0x0;_0x464cfc<_0x2239af['length'];_0x464cfc++){const _0x44004a=_0x2239af[_0x464cfc+0x1]||null;_0x2239af[_0x464cfc]['next']!==_0x44004a&&(_0x2239af[_0x464cfc]['next']=_0x44004a);}for(const _0x320954 of _0x56545a)for(let _0x106b8e=0x0;_0x106b8e<_0x320954['length'];_0x106b8e++){const _0x1515a7=_0x320954[_0x106b8e-0x1]||null;_0x320954[_0x106b8e]['previous']!==_0x1515a7&&(_0x320954[_0x106b8e]['previous']=_0x1515a7);}function _0x1f1070(_0x5f028e,_0x469bca){if(_0x5f028e[0x0]['attributes']['groupId']!==_0x469bca[0x0]['attributes']['groupId']&&_0x5f028e[0x0]['author']!==_0x469bca[0x0]['author'])return!0x1;if(!function(_0x2b9cbb,_0x3f3b5e){if(!_0x2b9cbb['hasComments']&&!_0x3f3b5e['hasComments'])return!0x0;if(_0x2b9cbb['hasComments']&&_0x3f3b5e['hasComments'])return!0x1;if(_0x2b9cbb['hasComments']&&_0x3f3b5e['createdAt']<_0x2b9cbb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3f3b5e['hasComments']&&_0x2b9cbb['createdAt']<_0x3f3b5e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5f028e[0x0],_0x469bca[0x0]))return!0x1;const _0x2d75bf=Ut(_0x5f028e[0x0]['attributes'],['groupId','trackingSessionId']),_0x3c7ce4=Ut(_0x469bca[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x21362d(_0x2d75bf,_0x3c7ce4))return!0x1;if(_0x5f028e[0x0]['attributes']['groupId']==_0x469bca[0x0]['attributes']['groupId'])return!0x0;if(_0x5f028e[0x0]['attributes']['trackingSessionId']!==_0x469bca[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5f028e['every'](_0x483919=>_0x469bca['some'](_0x18a712=>_0x483919['getFirstRange']()['isEqual'](_0x18a712['getFirstRange']())))&&_0x469bca['every'](_0x39f24b=>_0x5f028e['some'](_0x2c4c5b=>_0x39f24b['getFirstRange']()['isEqual'](_0x2c4c5b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x277e16){const _0x5f23e1=Array['from'](_0x277e16),_0x4fa01e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4f1bf2=_0x4fa01e['filter'](_0x23b529=>!_0x277e16['has'](_0x23b529)),_0x1753c2=new Map(_0x5f23e1['map'](_0x1f2b75=>[_0x1f2b75,this['_suggestionFactory']['getSuggestionCallback'](_0x1f2b75['type'],_0x1f2b75['subType'],'join')])),_0x26c6cf=new Map(_0x4fa01e['map'](_0x3ea15c=>[_0x3ea15c,_0x3ea15c['getRanges']()]));for(let _0x1fa1ad=0x0;_0x1fa1ad<_0x5f23e1['length'];_0x1fa1ad++){if(_0x593d6e(this,_0x5f23e1[_0x1fa1ad],_0x5f23e1,_0x1fa1ad+0x1))return!0x0;}for(let _0x458bfc=0x0;_0x458bfc<_0x5f23e1['length'];_0x458bfc++){if(_0x593d6e(this,_0x5f23e1[_0x458bfc],_0x4f1bf2,0x0))return!0x0;}return!0x1;function _0x593d6e(_0x2dc3bb,_0x363a7e,_0x593d06,_0x2c64f0){for(let _0x5ab61b=_0x2c64f0;_0x5ab61b<_0x593d06['length'];_0x5ab61b++){const _0x238f71=_0x593d06[_0x5ab61b];if(_0x238f71['type']!==_0x363a7e['type']||_0x238f71['author']['id']!==_0x363a7e['author']['id']||_0x238f71['subType']!==_0x363a7e['subType'])continue;if(!Qt(_0x363a7e,_0x238f71))continue;if('attribute'==_0x363a7e['type']&&_0x363a7e['data']['oldValue']!=_0x238f71['data']['oldValue'])continue;if('attribute'==_0x363a7e['type']&&_0x2dc3bb['_isBlockAttribute'](_0x363a7e['data']['key']))continue;if('formatBlock'==_0x363a7e['type']){const _0x1ce5f2=_0x2dc3bb['editor']['model'],_0x9f5e0b=_0x363a7e['getContainedElement']();if(_0x9f5e0b&&(_0x1ce5f2['schema']['isObject'](_0x9f5e0b)||_0x1ce5f2['schema']['isLimit'](_0x9f5e0b)))continue;}const _0x4275dd=_0x1753c2['get'](_0x363a7e),_0x2dbe48=_0x26c6cf['get'](_0x363a7e),_0x372196=_0x26c6cf['get'](_0x238f71),_0x1f7eb1=_0x363a7e['commentThread']&&_0x363a7e['commentThread']['length'],_0x5ae690=_0x238f71['commentThread']&&_0x238f71['commentThread']['length'];if(!_0x1f7eb1&&_0x4275dd(_0x372196,_0x2dbe48))return _0x2dc3bb['_joinSuggestions'](_0x238f71,_0x363a7e),_0x26c6cf['delete'](_0x363a7e),!0x0;if(!_0x5ae690&&_0x4275dd(_0x2dbe48,_0x372196))return _0x2dc3bb['_joinSuggestions'](_0x363a7e,_0x238f71),_0x26c6cf['delete'](_0x238f71),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2410b3,_0x127064){if(_0x2410b3['isMultiRange']){for(const _0x306118 of _0x127064['getRanges']())_0x2410b3['addRange'](_0x306118);}else{const _0x39daa1=_0x127064['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2410b3,this['_model']['createRange'](_0x2410b3['getFirstRange']()['start'],_0x39daa1));}_0x127064['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3c42c3,_0x30139c,_0x293147){const _0x246f65=_0x3c42c3['startsWith']('format')||_0x3c42c3['startsWith']('attribute')?'FORMATTING':_0x3c42c3['toUpperCase']();return o(this['editor']['locale'],_0x30139c+'_'+_0x246f65+'_SUGGESTION_ANNOUNCEMENT',_0x293147);}['_initAriaMarkerChangeAnnouncements'](){const _0x83be95=this['editor'];if(!_0x83be95['ui'])return;const {ariaLiveAnnouncer:_0x27c9fc}=_0x83be95['ui'];_0x1a8787(this['_model'],({left:_0x39130b,entered:_0xe69ffb})=>{for(const _0x132ab9 of _0x39130b){const {group:_0x30d2c7,type:_0x6fbe3d}=this['_splitMarkerName'](_0x132ab9['name']);if('suggestion'===_0x30d2c7){_0x27c9fc['announce'](this['_getMarkerAnnouncementText'](_0x6fbe3d,'LEAVE'));break;}}for(const _0x3978b0 of _0xe69ffb){const {group:_0x4b2cf8,type:_0x5d5746}=this['_splitMarkerName'](_0x3978b0['name']);if('suggestion'===_0x4b2cf8){_0x27c9fc['announce'](this['_getMarkerAnnouncementText'](_0x5d5746,'ENTER',_0x42806c(_0x1e2046)));break;}}});}['_processAttributeChanges'](_0x274d38){if(this['_recordAttributeSuggestions'])return!0x1;const _0x56e87a=this['editor'],_0x59f421=_0x56e87a['model']['document']['differ']['getChanges']();if(0x0==_0x59f421['length'])return!0x1;const _0x5070f3=[],_0x3d9917=_0x59f421['filter'](_0x2e12bf=>'attribute'==_0x2e12bf['type']),_0x58a7a2=_0x59f421['filter'](_0x44851f=>'insert'==_0x44851f['type']&&'$text'!=_0x44851f['name']),_0x11acb2=_0x59f421['filter'](_0x9d5d8c=>'remove'==_0x9d5d8c['type']&&'$text'!=_0x9d5d8c['name']);for(const _0x59db4e of _0x3d9917)_0x5070f3['push']({'key':_0x59db4e['attributeKey'],'newValue':_0x59db4e['attributeNewValue'],'oldValue':_0x59db4e['attributeOldValue'],'range':qt(_0x59db4e['range'],_0x56e87a['model'])});for(const _0x5bb1c1 of _0x58a7a2){const _0x53df2c=_0x11acb2['find'](_0x1e58a7=>_0x1e58a7['position']['isEqual'](_0x5bb1c1['position']));_0x53df2c&&_0x5070f3['push']({'key':m,'newValue':_0x5bb1c1['name'],'oldValue':_0x53df2c['name'],'range':_0x56e87a['model']['createRangeOn'](_0x5bb1c1['position']['nodeAfter'])});}return 0x0!=_0x5070f3['length']&&this['_reduceExistingSuggestions'](_0x274d38,_0x5070f3);}['_processAttributeSuggestions'](_0x26fd57){let _0x3e47f6=!0x1;const _0x5cc146=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1e8148=>_0x1e8148['data']['newRange']&&_0x1e8148['name']['startsWith']('suggestion:attribute:'));for(const _0x29b70f of _0x5cc146){const {subType:_0x1e19c5,id:_0x2cc563}=this['_splitMarkerName'](_0x29b70f['name']),_0x495d15=_0x1e19c5['split']('|')[0x0];for(const _0x800e4f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x800e4f['id']!=_0x2cc563&&'attribute'==_0x800e4f['type']&&_0x800e4f['data']&&_0x800e4f['data']['key']==_0x495d15&&_0x800e4f['getFirstRange']()['isIntersecting'](_0x29b70f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x800e4f,_0x29b70f['data']['newRange'],_0x26fd57),_0x3e47f6=!0x0);}return _0x3e47f6;}['recordAttributeChanges'](_0x5d95e4){this['_recordAttributeSuggestions']=!0x0,_0x5d95e4();}['_isRegisteredAttribute'](_0x32dda4){const _0x441f00=this['_isBlockAttribute'](_0x32dda4),_0x4674a5=this['_isInlineAttribute'](_0x32dda4);return _0x441f00||_0x4674a5;}['_reduceExistingSuggestions'](_0x15ac9e,_0x17c58e){if(0x0==_0x17c58e['length'])return!0x1;let _0x10323b=!0x1;for(const _0x23346d of _0x17c58e){const _0x21fee4=this['_findSuggestions'](_0x23346d['range'],'attribute')['filter'](_0x2f27fb=>!_0x2f27fb['meta']['isNextTo'])['map'](_0x2d272a=>_0x2d272a['suggestion']),_0x507a36=_0x3cef01({'newValue':_0x23346d['newValue']});_0x21fee4['filter'](_0x3aedae=>{const [_0x4a8f7e,_0x32a8c1]=_0x3aedae['subType']['split']('|');return _0x4a8f7e==_0x23346d['key']&&_0x32a8c1!=_0x507a36;})['forEach'](_0x15bd9c=>{this['_reduceSuggestionAttributeRange'](_0x15bd9c,_0x23346d['range'],_0x15ac9e),_0x10323b=!0x0;});}return _0x10323b;}['_reduceSuggestionAttributeRange'](_0x3d8cf1,_0x40e20b,_0x12dc58){const _0x3946c6=_0x3d8cf1['getFirstRange']()['getDifference'](_0x40e20b);0x0!==_0x3946c6['length']?0x1!==_0x3946c6['length']?this['_breakSuggestionMarker'](_0x3d8cf1,_0x40e20b['start'],_0x40e20b['end']):this['_setSuggestionRange'](_0x3d8cf1,_0x3946c6[0x0]):_0x12dc58['removeMarker'](_0x3d8cf1['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1723cb){this['_editor']=_0x1723cb,this['_model']=_0x1723cb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4fe766,_0x41b28f,_0x185fd0,_0x49603e,_0x5ed81b,_0x1690be,_0x10bd4c){return new T(this['_model'],{'type':_0x4fe766,'subType':_0x41b28f,'id':_0x185fd0,'originalSuggestionId':_0x10bd4c,'author':_0x49603e,'creator':_0x49603e,'attributes':_0x5ed81b,'onAttributesChange':_0x1690be,'onAccept':(..._0x1e136b)=>this['getSuggestionCallback'](_0x4fe766,_0x41b28f,'accept')(..._0x1e136b),'onDiscard':(..._0x6845cd)=>this['getSuggestionCallback'](_0x4fe766,_0x41b28f,'discard')(..._0x6845cd)});}['registerCustomCallback'](_0x2e87ca,_0x247c0f,_0x4f4a72,_0x4fdd6e){const _0x547472=_0x2e87ca+':'+_0x247c0f+':'+_0x4f4a72;this['_customCallbacks']['set'](_0x547472,_0x4fdd6e);}['getSuggestionCallback'](_0x3ed9dc,_0x918c5e,_0x40223f){const _0x241477=_0x3ed9dc+':'+_0x918c5e+':'+_0x40223f;return this['_customCallbacks']['get'](_0x241477)||this['_defaultCallbacks']['get'](_0x3ed9dc+':'+_0x40223f);}['_registerDefaultCallbacks'](){const _0x4765c9=()=>!0x1,_0x5b6a17=_0x4af6ac=>{_0x4af6ac['sort']((_0x3e7235,_0x16f6d2)=>_0x3e7235['start']['isBefore'](_0x16f6d2['start'])?0x1:-0x1),this['_model']['change'](_0x2fefc1=>{for(const _0x51f6bb of _0x4af6ac){let _0x52ccd8;_0x52ccd8=_0x51f6bb['end']['isAtEnd']&&_0x51f6bb['end']['parent']==_0x51f6bb['start']['nodeAfter']?_0x2fefc1['createSelection'](_0x51f6bb['start']['nodeAfter'],'on'):_0x2fefc1['createSelection'](_0x51f6bb),this['_model']['deleteContent'](_0x52ccd8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x31186b=(_0x1afbf7,_0x4a9514)=>{_0x4a9514&&this['_model']['change'](_0x81a973=>{const {commandName:_0x5ca764,commandParams:_0x27f631=[]}=_0x4a9514,_0x22c1dd=_0x1afbf7['map'](_0x2e7e84=>(Pt(_0x2e7e84)&&(_0x2e7e84=this['_model']['createRange'](_0x2e7e84['end'])),_0x2e7e84))['filter'](_0x4631c8=>'$graveyard'!==_0x4631c8['root']['rootName']);if(_0x22c1dd['length']<0x1)return;const _0x576946=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4faba1=>_0x153d61['fromRange'](_0x4faba1));_0x81a973['setSelection'](_0x22c1dd);for(const _0x5e8f2d of this['_editor']['commands']['commands']())_0x5e8f2d['refresh']();_0x27f631['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5ca764,..._0x27f631);const _0x1676aa=_0x576946['filter'](_0x1c1efb=>'$graveyard'!=_0x1c1efb['root']['rootName']);_0x1676aa['length']>0x0&&_0x81a973['setSelection'](_0x1676aa);for(const _0x181882 of _0x576946)_0x181882['detach']();});},_0x1174d9=(_0x5e8e29,_0x4a1896)=>0x1==_0x5e8e29['length']&&0x1==_0x4a1896['length']&&_0x5e8e29[0x0]['end']['isEqual'](_0x4a1896[0x0]['start']),_0x2c7b8f=(_0x3b3f17,_0x56026f,_0x404a5e,_0x5863bb)=>Wt(_0x3b3f17,_0x56026f,_0x404a5e,_0x5863bb)?[_0x3b3f17,_0x56026f]:Wt(_0x56026f,_0x3b3f17,_0x5863bb,_0x404a5e)?[_0x56026f,_0x3b3f17]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4765c9),this['_defaultCallbacks']['set']('insertion:discard',_0x5b6a17),this['_defaultCallbacks']['set']('insertion:join',_0x1174d9),this['_defaultCallbacks']['set']('insertion:chain',_0x2c7b8f),this['_defaultCallbacks']['set']('deletion:accept',_0x5b6a17),this['_defaultCallbacks']['set']('deletion:discard',_0x4765c9),this['_defaultCallbacks']['set']('deletion:join',_0x1174d9),this['_defaultCallbacks']['set']('deletion:chain',_0x2c7b8f),this['_defaultCallbacks']['set']('formatInline:accept',_0x31186b),this['_defaultCallbacks']['set']('formatInline:discard',_0x4765c9),this['_defaultCallbacks']['set']('formatInline:join',_0x1174d9),this['_defaultCallbacks']['set']('formatInline:chain',_0x4765c9),this['_defaultCallbacks']['set']('formatBlock:accept',_0x31186b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4765c9),this['_defaultCallbacks']['set']('formatBlock:join',_0x1174d9),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4765c9),this['_defaultCallbacks']['set']('attribute:accept',_0x4765c9),this['_defaultCallbacks']['set']('attribute:discard',(_0x5f3144,_0xfbd0dd)=>{if(!_0xfbd0dd)return;const _0x2a1fd5=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x3d2c09=>{if(_0xfbd0dd['key']==m)for(const _0x1add20 of _0x5f3144){const _0xc2dd26=_0x1add20['start']['nodeAfter'],_0x49efaa=_0xfbd0dd['oldValue'];_0x3d2c09['rename'](_0xc2dd26,_0x49efaa);}else{if(_0x2a1fd5['_isBlockAttribute'](_0xfbd0dd['key'])){for(const _0xdcdbfd of _0x5f3144)void 0x0!==_0xfbd0dd['oldValue']?_0x3d2c09['setAttribute'](_0xfbd0dd['key'],_0xfbd0dd['oldValue'],_0xdcdbfd['start']['nodeAfter']):_0x3d2c09['removeAttribute'](_0xfbd0dd['key'],_0xdcdbfd['start']['nodeAfter']);}else{for(const _0x491fef of _0x5f3144)_0xfbd0dd['oldValue']?_0x3d2c09['setAttribute'](_0xfbd0dd['key'],_0xfbd0dd['oldValue'],_0x491fef):_0x3d2c09['removeAttribute'](_0xfbd0dd['key'],_0x491fef);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1174d9);}}function Ft(_0x3f2971,_0x2564af,_0x571817){for(const _0x46a2d7 of _0x2564af['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x46a2d7['root']==_0x46a2d7)return!0x1;if(!_0x571817['containsItem'](_0x46a2d7))return!0x1;if(_0x3f2971['isObject'](_0x46a2d7)||_0x3f2971['isLimit'](_0x46a2d7))return!0x0;}return!0x1;}function Pt(_0x3eb904){return _0x3eb904['end']['parent']==_0x3eb904['start']['nodeAfter']&&_0x3eb904['end']['isAtStart'];}function Gt(_0x4b6481,_0x1fd852,_0x3b38c9,_0x2dca45){const _0x37b023=_0x2c0ac1=>!_0x2c0ac1['item']['is']('$textProxy')&&!_0x2dca45['isObject'](_0x2c0ac1['item']),_0x136c64=_0x4b6481['start']['getLastMatchingPosition'](_0x37b023),_0x4c58e9=_0x4b6481['end']['getLastMatchingPosition'](_0x37b023,{'direction':'backward'});return(!_0x4b6481['start']['isEqual'](_0x136c64)||!_0x4b6481['end']['isEqual'](_0x4c58e9))&&(_0x136c64['isBefore'](_0x4c58e9)?_0x3b38c9['updateMarker'](_0x1fd852,{'range':_0x3b38c9['createRange'](_0x136c64,_0x4c58e9)}):_0x3b38c9['removeMarker'](_0x1fd852),!0x0);}function Lt(_0x24292a){return _0x3cef01(_0x24292a);}function Jt(_0x423eb3){const _0x51591f=_0x423eb3['start']['nodeAfter'];return _0x51591f&&_0x51591f['is']('element');}function Kt(_0x3f840a){return Pt(_0x3f840a)||function(_0x562a7c){return _0x562a7c['start']['parent']==_0x562a7c['end']['nodeBefore']&&_0x562a7c['start']['isAtEnd'];}(_0x3f840a);}function Ht(_0x26ace5,_0x185a44){try{const _0x11cf44=_0x26ace5['getRange']();for(const _0x199b0d of _0x185a44)if(_0x26ace5!==_0x199b0d&&_0x11cf44&&_0x11cf44['isIntersecting'](_0x199b0d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x1c5354,_0x2e7784){return null==_0x1c5354['end']['nodeBefore']&&_0x1c5354['end']['parent']==_0x1c5354['start']['nodeAfter']?zt(_0x1c5354['start']['nodeAfter'],_0x2e7784):_0x1c5354;}function zt(_0x3f131a,_0x5ba91b){const _0x4ce7a1=_0x5ba91b['schema']['isObject'](_0x3f131a)||_0x5ba91b['schema']['isSelectable'](_0x3f131a);return _0x5ba91b['createRange'](_0x5ba91b['createPositionAt'](_0x3f131a,'before'),_0x4ce7a1?_0x5ba91b['createPositionAfter'](_0x3f131a):_0x5ba91b['createPositionAt'](_0x3f131a,'end'));}function Wt(_0x3d44bb,_0x418119,_0x512038,_0x3accbe){return!!Qt(_0x3d44bb,_0x418119)&&_0x512038['end']['isEqual'](_0x3accbe['start']);}function Qt(_0x354309,_0x1ddf83){if(!_0x354309['_isDataLoaded']||!_0x1ddf83['_isDataLoaded'])return!0x1;const _0x23e627=new Set(Object['keys'](_0x354309['attributes'])),_0x5c277f=new Set(Object['keys'](_0x1ddf83['attributes']));if(_0x23e627['delete']('groupId'),_0x5c277f['delete']('groupId'),0x0==_0x23e627['size']&&0x0==_0x5c277f['size'])return!0x0;if(_0x23e627['size']!=_0x5c277f['size'])return!0x1;const _0x5427cf={..._0x354309['attributes']},_0x17f3b7={..._0x1ddf83['attributes']};return delete _0x5427cf['groupId'],delete _0x17f3b7['groupId'],JSON['stringify'](_0x5427cf)==JSON['stringify'](_0x17f3b7);}function Xt(_0x3e3f13,_0x19ed6a){const _0x250e67=Yt(_0x3e3f13['attributes']),_0x4582a8=Yt(_0x19ed6a);if(!_0x3e3f13['_isDataLoaded'])return!0x1;for(const _0x491d2f of Object['keys'](_0x4582a8))if(!_0x21362d(_0x250e67[_0x491d2f],_0x4582a8[_0x491d2f]))return!0x1;return!0x0;}function Yt(_0xd396a6){const _0x578e7e=Object['assign']({},_0xd396a6);return delete _0x578e7e['skipNestingCheck'],delete _0x578e7e['tablePasteChainId'],_0x578e7e;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x576216(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4d3285,_0x32039d,_0x4ecb3d,_0x1f040e){super(),this['model']=_0x32039d,this['view']=_0x4ecb3d,this['commentThreadController']=_0x1f040e,this['_editor']=_0x4d3285,this['_acceptCommand']=_0x4d3285['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4d3285['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2c129e,_0x556424)=>_0x2c129e||_0x556424),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x141687=>_0x141687&&this['_editor']['model']['canEditAt'](_0x32039d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5b544a=>_0x5b544a&&this['_editor']['model']['canEditAt'](_0x32039d['getRanges']())),this['_pendingAction']=null,_0x4ecb3d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4ecb3d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4ecb3d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4ecb3d,'change:isDirty',()=>{_0x4ecb3d['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 _0x1b3237=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1b3237);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x1bb0a3{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x388cc8,_0x4ba561,_0x3d5c17,_0x50dce7){super(_0x388cc8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5746f0(_0x388cc8,o(_0x388cc8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4ba561['authoredAt']),this['bind']('authoredAt')['to'](_0x4ba561),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',_0x4ba561,'authoredAt',this,'descriptionParts',(_0x108b10,_0x3ddea8,_0x3e6bb8)=>{const _0x4a6aa5=_0x3e6bb8['map'](_0xd186a7=>ls(_0xd186a7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x108b10-0x1,_0x4ba561['author']['name'],_0x3ddea8?_0x50dce7['formatDateTime'](_0x3ddea8):'',new DOMParser()['parseFromString'](_0x4a6aa5,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4b0a61(),this['focusTracker']=new _0x5427d9(),this['keystrokes']=new _0x4443be(),this['focusCycler']=new _0x4de8c1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4015c6=>_0x4015c6['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4ba561,this['_localUser']=_0x3d5c17,this['_config']=_0x50dce7,_0x50dce7['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x201a92(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x491234}=this['_config'];this['commentsListView']=new _0x491234(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',_0x38817e=>_0x38817e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5854da,_0x3956c9)=>_0x5854da||!!_0x3956c9);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4369e1}=this['_config'],_0x594f5e=new _0x4369e1(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5c29d0=_0x594f5e['commentInputView'];return _0x594f5e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5c29d0,'value',(_0x39f596,_0x3c4c52,_0x53e1ee)=>!!_0x53e1ee||_0x39f596&&!_0x3c4c52),_0x5c29d0['on']('submit',(_0x587a89,_0x1a0d0d)=>{this['fire']('addComment',_0x1a0d0d),_0x5c29d0['editor']['setData']('');}),_0x5c29d0['on']('cancel',()=>this['focus']()),_0x5c29d0['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x594f5e;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x429312,_0x372b5e,_0x29a215,_0x297d6d){super(_0x429312,_0x372b5e,_0x29a215,_0x297d6d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x55268f=>_0x55268f&&_0x55268f[0x0]?_0x55268f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x457818,_0x2cb5f7)=>{let _0x2a854b='';for(const _0x4d8881 of _0x457818)_0x2a854b+='<p>'+ls(_0x4d8881['content'],_0x4d8881['color'])+'</p>';return _0x2cb5f7?_0x2a854b:_0x2b7c8f(_0x2a854b,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x297d6d['SuggestionView'](_0x429312,_0x372b5e,{'formatDateTime':_0x297d6d['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 _0x1fad92=this['bindTemplate'],_0x25c1c3=[this['suggestionView']];return this['commentsListView']&&_0x25c1c3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x25c1c3['push'](this['commentThreadInputView']),_0x25c1c3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1fad92['if']('isActive','ck-suggestion-wrapper--active'),_0x1fad92['to']('type',_0x5b9a5d=>'ck-suggestion-'+_0x5b9a5d),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':_0x1fad92['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x25c1c3};}['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 _0x1bb0a3{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5135d2,_0x58897a,_0x3dfec3){super(_0x5135d2),this['_model']=_0x58897a,this['_config']=_0x3dfec3,this['set']('description',''),this['bind']('authoredAt')['to'](_0x58897a),this['acceptButton']=this['_createButton'](o(_0x5135d2,'Accept\x20suggestion'),_0x31655c,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5135d2,'Discard\x20suggestion'),_0x369868,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3e7ed7(_0x5135d2,_0x58897a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4b0a61([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5427d9(),this['keystrokes']=new _0x4443be(),this['focusCycler']=new _0x4de8c1({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3b0ecc=>_0x3b0ecc['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5278b5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5278b5['innerHTML']=this['description'],this['on']('change:description',(_0xb86e07,_0x174841,_0x12821e)=>{_0x5278b5['innerHTML']=_0x12821e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5a14a4=this['bindTemplate'],_0x1317c2=[{'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':_0x5a14a4['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5a14a4['to']('authoredAt',_0x38b0bb=>this['_config']['formatDateTime'](_0x38b0bb))}]}]},{'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']&&_0x1317c2['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':_0x1317c2}]};}['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'](_0x55ac36,_0x7bc9e2,_0x1d98a4,_0x34761e,_0x1956b4){const _0x24be90=new _0x15c07a(this['locale']);return _0x24be90['set']({'label':_0x55ac36,'icon':_0x7bc9e2,'tooltip':!0x0,'tooltipPosition':_0x1956b4}),_0x24be90['extendTemplate']({'attributes':{'class':_0x1d98a4}}),_0x24be90['on']('execute',()=>{this['fire'](_0x34761e,this['_model']['id']);}),_0x24be90;}['_setupKeyboardNavigation'](){const _0x5a9258=this['element'];this['keystrokes']['listenTo'](_0x5a9258);for(const _0x4f79db of this['focusables'])this['focusTracker']['add'](_0x4f79db['element']),this['keystrokes']['listenTo'](_0x4f79db['element']);this['keystrokes']['set']('enter',(_0x33edbd,_0x34803d)=>{_0x5a9258===_0x33edbd['target']&&(this['focusCycler']['focusFirst'](),_0x34803d());}),this['keystrokes']['set']('esc',(_0x2988e9,_0x4830fa)=>{_0x5a9258!==_0x2988e9['target']&&(this['focus'](),_0x4830fa());});}}class u extends _0x588311{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x4fb64d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2df220){super(_0x2df220),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2309a1=this['editor']['config'];_0x2309a1['define']('trackChanges.SuggestionThreadView',fe),_0x2309a1['define']('trackChanges.SuggestionView',we),_0x2309a1['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2309a1['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2d2c93,_0x4394e1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4e7350,_0x34f95e]of this['_handleControllerBuffer']){const _0x2d7c95=this['_suggestionToController']['has'](_0x4e7350);_0x2d7c95||_0x34f95e?_0x2d7c95&&_0x34f95e&&this['_destroyController'](_0x4e7350):this['_initializeController'](_0x4e7350);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2d2c93,_0x4394e1);}['init'](){const _0x55890e=this['editor'],_0x544fa6=_0x55890e['plugins']['get']('TrackChangesEditing'),_0x1e9b58=_0x55890e['plugins']['get']('Annotations'),_0x57c8a9=_0x55890e['plugins']['get']('EditorAnnotations'),_0x10246e=_0x55890e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x57c8a9['addSourceCollector'](()=>{const _0x54ada2=[];for(const [_0x338c78,_0xe132aa]of Array['from'](this['_suggestionToController'])){const _0xfc908c=_0x338c78['getAllAdjacentSuggestions'](),_0x26a9eb=[];for(const _0x4abc68 of _0xfc908c){if(!_0x4abc68['isInContent'])continue;if(_0x4abc68['isMultiRange']){_0x26a9eb['push'](..._0x4abc68['getRanges']());continue;}const _0x7f1a6d=_0x4abc68['getFirstRange']();if(_0x26a9eb['length']>0x0){const _0x394262=_0x26a9eb[0x0]['getJoined'](_0x7f1a6d);if(_0x394262){_0x26a9eb[0x0]=_0x394262;continue;}}_0x26a9eb['push'](_0x7f1a6d);}_0x54ada2['push']([_0xe132aa['view'],_0x26a9eb]);}return _0x54ada2;}),this['listenTo'](_0x544fa6,'suggestionLoaded',(_0x57b792,_0x2e1b18)=>{this['listenTo'](_0x2e1b18,'change:previous',(_0x1f3d03,_0x2f545e,_0x74a3cd,_0x18b7e5)=>{_0x2e1b18['isInContent']&&(null==_0x74a3cd?(this['_updateController'](_0x18b7e5['head']),this['_handleSuggestionControllerDelayed'](_0x2e1b18,!0x1)):(this['_updateController'](_0x74a3cd['head']),null==_0x18b7e5&&this['_handleSuggestionControllerDelayed'](_0x2e1b18,!0x0)));}),null!==_0x2e1b18['previous']?this['_updateController'](_0x2e1b18['head']):this['_handleSuggestionControllerDelayed'](_0x2e1b18,!0x1);}),this['listenTo'](_0x544fa6,'suggestionUnloaded',(_0x5aa3e8,_0x325e10,_0x5bc02c)=>{this['stopListening'](_0x325e10,'change:previous'),this['_handleControllerBuffer']['delete'](_0x325e10),this['_suggestionToController']['has'](_0x325e10)&&this['_destroyController'](_0x325e10),_0x5bc02c&&this['_updateController'](_0x5bc02c['head']);}),this['listenTo'](_0x544fa6,'suggestionChanged',(_0x468615,_0x28902d)=>{this['_updateController'](_0x28902d);}),this['listenTo'](_0x1e9b58,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x10246e,'addComment',(_0x1b8212,{threadId:_0x2f66c8,isFromAdapter:_0x5dd453})=>{if(_0x5dd453||!_0x544fa6['hasSuggestion'](_0x2f66c8))return;const _0x4d01bf=_0x544fa6['getSuggestion'](_0x2f66c8);this['_suggestionToController']['get'](_0x4d01bf)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x33fc7e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe4eeaf;for(const _0x26d5f0 in _0x33fc7e){const _0x1fe945=_0x26d5f0,_0x3923d6=_0x33fc7e[_0x1fe945];if('trackChangesLicenseKeyValid'==_0x3923d6||'trackChangesLicenseKeyInvalid'==_0x3923d6||'trackChangesLicenseKeyExpired'==_0x3923d6||'trackChangesLicenseKeyDomainLimit'==_0x3923d6||'trackChangesLicenseKeyNotAllowed'==_0x3923d6||'trackChangesLicenseKeyEvaluationLimit'==_0x3923d6||'trackChangesLicenseKeyTrialLimit'==_0x3923d6||'trackChangesLicenseKeyUsageLimit'==_0x3923d6){delete _0x33fc7e[_0x1fe945],_0xe4eeaf=_0x3923d6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xe4eeaf&&_0x33fc7e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xe4eeaf&&_0x33fc7e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xe4eeaf&&_0x33fc7e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xe4eeaf&&_0x33fc7e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xe4eeaf&&_0x33fc7e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xe4eeaf&&_0x33fc7e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0xe4eeaf&&_0x33fc7e['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x104e06){const _0x1204dd=this['_suggestionToController']['get'](_0x104e06);if(!_0x1204dd)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x1204dd['view'])||null;}['getSuggestionForAnnotation'](_0x56de50){const _0x18c54e=this['_viewToController']['get'](_0x56de50['innerView']);return _0x18c54e?_0x18c54e['model']:null;}['_refreshActiveMarkers'](){const _0x19c51c=this['editor']['plugins']['get']('Annotations'),_0x3cb8b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58b916=Array['from'](_0x19c51c['activeAnnotations'],_0x53c155=>_0x53c155['innerView'])['filter'](_0x205e8d=>this['_viewToController']['has'](_0x205e8d)),_0x2c2ea7=[];for(const _0x17da66 of _0x58b916){const _0x2e4cb8=this['_viewToController']['get'](_0x17da66)['model']['getAllAdjacentSuggestions']();_0x2c2ea7['push'](..._0x2e4cb8['reduce']((_0x3d7891,_0x478803)=>[..._0x3d7891,..._0x478803['getMarkerNames']()],[]));}_0x3cb8b9['activeMarkers']=_0x2c2ea7;}['_addUIComponentsToFactory'](){const _0x3dfe2c=this['editor'],_0x3b0a92=_0x3dfe2c['locale'],_0x763ae5=o(_0x3b0a92,'Track\x20changes'),_0x152339=new _0x2ebe14([{'type':'switchbutton','model':new _0x40fb7f({'withText':!0x0,'isToggleable':!0x0,'label':_0x763ae5,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x40fb7f({'withText':!0x0,'label':o(_0x3b0a92,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x40fb7f({'withText':!0x0,'label':o(_0x3b0a92,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x40fb7f({'withText':!0x0,'label':o(_0x3b0a92,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x40fb7f({'withText':!0x0,'label':o(_0x3b0a92,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3dfe2c['plugins']['has']('TrackChangesPreview')&&_0x152339['addMany']([{'type':'separator'},{'type':'button','model':new _0x40fb7f({'withText':!0x0,'label':o(_0x3b0a92,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xe4fd99 of _0x152339)if(ke(_0xe4fd99)){const _0xc515aa=_0x3dfe2c['commands']['get'](_0xe4fd99['model']['commandName']);_0xe4fd99['model']['bind']('isOn','isEnabled')['to'](_0xc515aa,'value','isEnabled');}_0x3dfe2c['ui']['componentFactory']['add']('trackChanges',_0xaefac=>this['_createToolbarButton'](_0xaefac,_0x152339,_0x763ae5)),_0x3dfe2c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3eefe3=>this['_createMenuBarMenu'](_0x3eefe3,_0x152339,_0x763ae5));}['_createToolbarButton'](_0x175e32,_0x13dba2,_0x3c0349){const _0x1f93a7=_0x7c146b(_0x175e32,_0x5b60d2),_0x3a2c44=this['editor']['commands']['get']('trackChanges');_0x1f93a7['buttonView']['set']({'tooltip':_0x3c0349,'label':_0x3c0349,'icon':_0x17e231}),_0x1f93a7['buttonView']['bind']('isOn')['to'](_0x3a2c44,'value'),_0x1f93a7['buttonView']['on']('execute',()=>{_0x3a2c44['execute'](),this['editor']['editing']['view']['focus']();}),_0x42bada(_0x1f93a7,_0x13dba2,{'role':'menu'});const _0x39300b=[];for(const _0x2e3982 of _0x13dba2)ke(_0x2e3982)&&_0x39300b['push'](this['editor']['commands']['get'](_0x2e3982['model']['commandName']));const _0xc98740=_0x1f93a7['buttonView'];return _0xc98740['actionView']['unbind']('isEnabled'),_0xc98740['arrowView']['unbind']('isEnabled'),_0xc98740['actionView']['bind']('isEnabled')['to'](_0x3a2c44,'isEnabled'),_0xc98740['arrowView']['bind']('isEnabled')['toMany'](_0x39300b,'isEnabled',(..._0x56726e)=>_0x56726e['some'](_0x3c9e45=>_0x3c9e45)),_0x1f93a7['on']('execute',_0x2a6bdc=>{this['editor']['execute'](_0x2a6bdc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1f93a7;}['_createMenuBarMenu'](_0x16cf95,_0x12e5c3,_0x3fb429){const _0x17fd75=new _0x3c6b9a(_0x16cf95),_0x563b5d=this['editor']['commands']['get']('trackChanges');_0x17fd75['buttonView']['set']({'label':_0x3fb429,'icon':_0x17e231});const _0x2760dd=new _0x24888c(_0x16cf95);for(const _0xd27edb of _0x12e5c3){if('separator'==_0xd27edb['type']){_0x2760dd['items']['add'](new _0x161fec(_0x16cf95));continue;}const _0x35a263=new _0x3232a1(_0x16cf95,_0x17fd75),_0x41861e=new _0x1afe4c(_0x16cf95),_0x5d8997=_0xd27edb['model'];_0x41861e['bind'](...Object['keys'](_0x5d8997))['to'](_0x5d8997),_0x41861e['delegate']('execute')['to'](_0x17fd75),_0x41861e['on']('execute',()=>{this['editor']['execute'](_0x5d8997['commandName']),this['editor']['editing']['view']['focus']();}),_0x35a263['children']['add'](_0x41861e),_0x2760dd['items']['add'](_0x35a263);}return _0x17fd75['bind']('isEnabled')['to'](_0x563b5d,'isEnabled'),_0x17fd75['panelView']['children']['add'](_0x2760dd),_0x17fd75;}['_initializeController'](_0x563553){const _0x5daa30=this['editor'],_0x3aaf33=_0x5daa30['config'],_0x176687=_0x5daa30['plugins']['get']('Annotations'),_0x52c2e8=_0x5daa30['plugins']['get']('CommentsRepository'),_0x47d345=_0x5daa30['plugins']['get']('EditorAnnotations'),_0x3b89ba=_0x5daa30['plugins']['get'](_0x4fb64d)['me'],_0x4d258e=_0x3aaf33['get']('trackChanges')['SuggestionThreadView'],_0xddfd9f=_0x3aaf33['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x84f232,CommentThreadInputView:_0x3fcb16}=_0x5daa30['plugins']['get']('CommentsUI');let _0x16c890,_0x29b048,_0x174bb7;this['_annotationViews']['has'](_0x563553['id'])?(_0x29b048=this['_annotationViews']['get'](_0x563553['id']),_0x16c890=_0x29b048['mainView']):(_0x16c890=new _0x4d258e(_0x5daa30['locale'],_0x563553,_0x3b89ba,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3aaf33['get']('comments.editorConfig'),'licenseKey':_0x3aaf33['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3aaf33['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3aaf33['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3aaf33['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x34479a(_0x3aaf33['get']('locale'),_0x5daa30['locale']),'CommentView':_0x3aaf33['get']('comments')['CommentView'],'CommentsListView':_0x84f232,'CommentThreadInputView':_0x3fcb16,'SuggestionView':_0xddfd9f}),_0x16c890['suggestionView']['acceptButton']['on']('execute',()=>{_0x5daa30['editing']['view']['focus']();}),_0x16c890['suggestionView']['discardButton']['on']('execute',()=>{_0x5daa30['editing']['view']['focus']();}),_0x29b048=_0x176687['createAnnotationView'](this['editor']['locale'],_0x16c890),_0x29b048['bind']('isDirty')['to'](_0x16c890,'isDirty'),_0x29b048['bind']('length')['to'](_0x16c890),_0x29b048['bind']('type')['to'](_0x16c890,'type',_0x57aea5=>'suggestion-'+_0x57aea5),_0x16c890['on']('escape',()=>{_0x174bb7['fire']('escape');}),this['_annotationViews']['set'](_0x563553['id'],_0x29b048));const _0x24a850=_0x52c2e8['createCommentThreadController'](_0x563553['commentThread'],_0x16c890),_0x100ce2=new pe(_0x5daa30,_0x563553,_0x16c890,_0x24a850),_0x38789c=_0x563553['getAllAdjacentSuggestions']()['filter'](_0x30edcc=>_0x30edcc['isInContent']);_0x16c890['descriptionParts']=_0x5daa30['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x38789c),this['_suggestionToController']['set'](_0x563553,_0x100ce2),this['_viewToController']['set'](_0x16c890,_0x100ce2);const _0x2fdcc8=()=>{const _0x297b25=[],_0x65b440=_0x563553['getAllAdjacentSuggestions']()['filter'](_0x147d54=>_0x147d54['isInContent']);for(const _0x3836ba of _0x65b440)_0x297b25['push'](..._0x3836ba['getMarkers']());return _0x128c48(_0x5daa30['editing'],_0x297b25);};_0x174bb7=_0x176687['createAnnotation']({'view':_0x29b048,'target':_0x2fdcc8,'type':()=>'suggestion-'+_0x100ce2['view']['type'],'isVisible':!!_0x2fdcc8()}),_0x52c2e8['_bindAnnotationToEditors'](_0x16c890,_0x174bb7),_0x176687['add'](_0x174bb7),_0x47d345['registerAnnotation'](_0x174bb7);}['_destroyController'](_0x1b1756){const _0x5627e7=this['editor']['plugins']['get']('CommentsRepository'),_0x2a2118=this['editor']['plugins']['get']('Annotations'),_0x41ff15=this['_suggestionToController']['get'](_0x1b1756),_0x2f8743=_0x41ff15['view'],_0x1b2e41=_0x2a2118['getByInnerView'](_0x2f8743);_0x5627e7['_unbindEditors'](_0x2f8743),_0x1b2e41&&_0x2a2118['remove'](_0x1b2e41),this['_suggestionToController']['delete'](_0x1b1756),this['_viewToController']['delete'](_0x2f8743),_0x41ff15['destroy']();}['_updateController'](_0x2a77f7){if(!_0x2a77f7['isInContent']||!this['_suggestionToController']['has'](_0x2a77f7))return;const _0x2f4ed6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bbb07=this['_suggestionToController']['get'](_0x2a77f7),_0x4e69d1=_0x2a77f7['getAllAdjacentSuggestions']();_0x4bbb07['view']['descriptionParts']=_0x2f4ed6['descriptionFactory']['getDescriptions'](_0x4e69d1);}['destroy'](){for(const _0x3fda6b of this['_suggestionToController']['keys']())this['_destroyController'](_0x3fda6b);for(const _0x4fa602 of this['_annotationViews']['values']())_0x4fa602['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x54dbf6){return'model'in _0x54dbf6;}class Fe extends _0x588311{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xf94841){this['editor']['plugins']['get'](d)['adapter']=_0xf94841;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x3a8b3e){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x3a8b3e);}['getSuggestions']({skipNotAttached:_0x136ab0=!0x1,toJSON:_0x9e0ee7=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x136ab0,'toJSON':_0x9e0ee7});}['getSuggestion'](_0x518696){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x518696);}}const p=['Pagination'];class re extends _0x588311{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xc80d04=this['editor'];if(_0xc80d04['config']['define']('trackChangesData.editorCreator',_0x4847a0=>{const _0x20c6fe=_0xc80d04['model']['document']['getRootNames']()['reduce']((_0x2c2035,_0x118f22)=>(_0x2c2035[_0x118f22]='',_0x2c2035),{});return _0xc80d04['constructor']['create'](_0x20c6fe,_0x4847a0);}),'function'!=typeof _0xc80d04['config']['get']('trackChangesData')['editorCreator'])throw new _0x280c51('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1fa302){return P(this['editor'],!0x0,_0x1fa302);}['getDataWithDiscardedSuggestions'](_0x4ab845){return P(this['editor'],!0x1,_0x4ab845);}}class Ge extends _0x588311{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x260a4f){function _0x203575(_0x372269){return _0x372269['map'](_0x2e6f5d=>String['fromCharCode'](_0x2e6f5d))['join']('');}super(_0x260a4f),this['result']='end',_0x260a4f[_0x203575([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x203575([0x76,0x69,0x65,0x77])][_0x203575([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x203575([0x61,0x75,0x74,0x6f]),_0x260a4f[_0x203575([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x203575([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x203575([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x203575([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x203575([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(_0x4624a4){return void 0x0!==_0x4624a4['getRootsAttributes'];}async function P(_0x4cf084,_0x420314,_0x5ec7e0){const _0x1cda12=_0x5adbe2(_0x4cf084,p);_0x1cda12['plugins']['push'](d,Ge),_0x1cda12['rootsAttributes']=He(_0x4cf084)?_0x4cf084['getRootsAttributes']():void 0x0;const _0x4fb24c=document['createDocumentFragment'](),_0x4381df=_0x4cf084['config']['get']('trackChangesData')['editorCreator'],_0x20b5ff=await _0x4381df(_0x1cda12,()=>function(_0x12ce5b){const _0x588779=document['createElement']('div');return _0x12ce5b['appendChild'](_0x588779),_0x588779;}(_0x4fb24c));!function(_0x1c2d0e,_0x31e172){const _0x3fd592=_0x1c2d0e['model']['document']['getRootNames']()['reduce']((_0x1b5020,_0x482086)=>(_0x1b5020[_0x482086]=_0x1c2d0e['data']['get']({'rootName':_0x482086}),_0x1b5020),{}),_0x3a02d9=_0x1c2d0e['plugins']['get']('Users')['users']['map'](_0xc6d2be=>({'id':_0xc6d2be['id'],'name':_0xc6d2be['name']})),_0x30421a=_0x1c2d0e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x20f084=_0x1c2d0e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4eeafa=_0x31e172['plugins']['get']('Users'),_0x2bccc7=_0x31e172['plugins']['get']('TrackChangesEditing'),_0x18e098=_0x31e172['plugins']['get']('CommentsRepository');for(const _0x58f480 of _0x18e098['getCommentThreads']())_0x58f480['remove']();for(const _0x85c558 of _0x3a02d9)_0x4eeafa['getUser'](_0x85c558['id'])||_0x4eeafa['addUser'](_0x85c558);_0x4eeafa['me']||_0x4eeafa['useAnonymousUser']();for(const _0x5b62c6 of _0x20f084)_0x18e098['addCommentThread'](_0x5b62c6);for(const _0x482e7e of _0x30421a)_0x2bccc7['addSuggestionData'](_0x482e7e);_0x31e172['data']['set'](_0x3fd592);}(_0x4cf084,_0x20b5ff),_0x20b5ff['execute'](_0x420314?'acceptAllSuggestions':'discardAllSuggestions');const _0xa7784b=He(_0x20b5ff)?_0x20b5ff['getFullData'](_0x5ec7e0):_0x20b5ff['data']['get'](_0x5ec7e0);return await _0x20b5ff['destroy'](),_0xa7784b;}class Me extends _0x1bb0a3{['options'];constructor(_0x28e144,_0x136a21){super(_0x28e144),this['options']=_0x136a21,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'](_0x1ba44c,_0x22d6d5){if(!this['element'])return;const _0x4f38d9=[];for(const [_0xc26b7b,_0x52eceb]of _0x1ba44c){const _0x45bcd7=document['createElement']('div');_0x45bcd7['setAttribute']('data-ck-root-name',_0xc26b7b),_0x45bcd7['className']=_0x52eceb['classes']+'\x20ck-track-changes-preview__root-container',_0x45bcd7['innerHTML']=_0x52eceb['content'],_0x4f38d9['push'](_0x45bcd7);}_0x22d6d5(this['element'],_0x4f38d9),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x1a5dbe{constructor(_0x37ae9a){super(_0x37ae9a),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x452921=this['editor'],_0xb4aea6=_0x452921['locale'],_0x3ddf01=_0x452921['plugins']['get']('Dialog');let _0x2979c4;const _0x55d5ab=function(_0x1cf286){const _0x296c22={};if('editables'in _0x1cf286['ui']['view']){for(const [_0x514392,_0x36f742]of Object['entries'](_0x1cf286['ui']['view']['editables']))_0x296c22[_0x514392]=_0x36f742['element'];}else _0x296c22[_0x1cf286['model']['document']['getRootNames']()[0x0]]=_0x1cf286['ui']['view']['editable']['element'];return _0x296c22;}(_0x452921),_0x35d5b4=function(_0x40cc22){let _0x1c2574=0x0;for(const _0x11e562 of Object['values'](_0x40cc22))_0x1c2574=Math['max'](_0x1c2574,_0x11e562['getBoundingClientRect']()['width']);let _0xa4793d=0x0;for(const _0x264530 of Object['values'](_0x40cc22))_0xa4793d+=_0x264530['getBoundingClientRect']()['height'];const _0x5f4e77=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x727160=Math['min'](_0xa4793d,_0x5f4e77);return{'width':_0x1c2574,'height':_0x727160};}(_0x55d5ab);_0x3ddf01['show']({'id':'finalContentPreview','title':o(_0xb4aea6,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xb4aea6,{'dialogRects':_0x35d5b4}),'onHide':()=>{_0x2979c4['detachFromDom']();},'onShow':()=>{_0x452921['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2e6acd=>{const _0x4f062d=this['_standarizeRootsData'](_0x2e6acd,_0x452921,_0x55d5ab);_0x3ddf01['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4f062d,_0x452921['config']['get']('trackChanges.preview.renderFunction'));}),_0x2979c4=new _0xa7ca0b(_0xb4aea6,[_0x3ddf01['view']]),_0x2979c4['attachToDom'](),_0x2979c4['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x452921['once']('destroy',()=>{_0x2979c4['detachFromDom']();});const _0x2f309b=_0x3ddf01['view']['headerView']['class'];_0x3ddf01['view']['headerView']['class']=_0x2f309b?_0x2f309b+'\x20ck-reset_all':'ck-reset_all',_0x3ddf01['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3ddf01['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1149ee=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1e0938=_0x1149ee['previewMode'],_0x5571f4={};if('$labels'===_0x1e0938){for(const _0x3be311 of _0x1149ee['getMergeFieldsIds']())_0x5571f4[_0x3be311]=_0x1149ee['getLabel'](_0x3be311)||_0x3be311;}else{const _0x43a234='$defaultValues'===_0x1e0938?_0x1149ee['getDefaultValues']():_0x1149ee['getDataSetValues'](_0x1e0938,!0x0);for(const _0x5ac75d of Object['entries'](_0x43a234)){const [_0x3722ab,_0x5bfb71]=_0x5ac75d;_0x5571f4[_0x3722ab]=null!==_0x5bfb71?_0x5bfb71:_0x1149ee['getLabel'](_0x3722ab)||_0x3722ab;}}return{'mergeFieldsData':_0x5571f4};}['_standarizeRootsData'](_0x133474,_0x1f03b1,_0x879454){let _0x3547df;if('string'==typeof _0x133474){const _0x232ad4=_0x1f03b1['model']['document']['getRootNames']()[0x0];_0x3547df={[_0x232ad4]:_0x133474};}else _0x3547df=_0x133474;const _0x3a7580=this['_fixMediaEmbeds'](_0x3547df,_0x1f03b1),_0x377f70=function(_0x25a16f,_0x31c3b6){for(const [_0x34c3c4,_0x1483f2]of _0x25a16f)_0x1483f2['classes']=_0x31c3b6[_0x34c3c4]['classList']['value']['replace']('ck-focused','');return _0x25a16f;}(this['_sortRoots'](_0x1f03b1)['reduce']((_0x277b62,_0x54e230)=>(_0x277b62['push']([_0x54e230,{'content':_0x3a7580[_0x54e230],'classes':''}]),_0x277b62),[]),_0x879454);return _0x377f70;}['_fixMediaEmbeds'](_0x2bb7a9,_0x3ebc95){if(!_0x3ebc95['plugins']['has']('MediaEmbedEditing'))return _0x2bb7a9;const _0x8552ed=_0x3ebc95['plugins']['get']('MediaEmbedEditing');for(const [_0xc3f1cb,_0x4002f4]of Object['entries'](_0x2bb7a9)){const _0xcc0fd3=document['createElement']('div');_0xcc0fd3['innerHTML']=_0x4002f4,(_0xcc0fd3['querySelectorAll']('figure.media')['forEach'](_0x16e198=>{const _0x573d53=_0x16e198['querySelector']('oembed');if(_0x573d53){const _0x6c5f4a=_0x573d53['getAttribute']('url');if(_0x6c5f4a){const _0xb21ae1=_0x8552ed['registry']['getMediaViewElement'](new _0x2eceb5(_0x3ebc95['editing']['view']['document']),_0x6c5f4a,{'elementName':'','renderForEditingView':!0x0}),_0x95e8e0=document['createElement']('div');_0x95e8e0['classList']['add']('ck-media__wrapper'),_0xb21ae1['render'](_0x95e8e0,_0x3ebc95['editing']['view']['domConverter']),_0x573d53['replaceWith'](_0x95e8e0);}}}),_0x2bb7a9[_0xc3f1cb]=_0xcc0fd3['innerHTML']);}return _0x2bb7a9;}['_sortRoots'](_0x5c1683){if(!function(_0x16879c){return void 0x0!==_0x16879c['getRootsAttributes'];}(_0x5c1683))return _0x5c1683['model']['document']['getRootNames']();const _0x2f6ebe=[],_0x1365dc=new Map();for(const _0x206895 of _0x5c1683['model']['document']['getRootNames']()){const _0x6bfd3c=_0x5c1683['editing']['view']['getDomRoot'](_0x206895)['getClientRects']()['item'](0x0);_0x2f6ebe['push'](_0x206895),_0x1365dc['set'](_0x206895,_0x6bfd3c);}return _0x2f6ebe['sort']((_0x999ce4,_0x1a382c)=>{const _0x4f5aa4=_0x1365dc['get'](_0x999ce4),_0x5eb2f5=_0x1365dc['get'](_0x1a382c);return _0x4f5aa4['y']-_0x5eb2f5['y']||_0x4f5aa4['x']-_0x5eb2f5['x'];}),_0x2f6ebe;}}class $e extends _0x588311{static get['requires'](){return[re,_0x21d629];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e9e4a){super(_0x3e9e4a),_0x3e9e4a['commands']['add']('previewFinalContent',new te(this['editor'])),_0x3e9e4a['config']['define']('trackChanges.preview.renderFunction',(_0x170e08,_0x513f63)=>{for(const _0x403c46 of _0x513f63)_0x170e08['appendChild'](_0x403c46);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M 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,u as TrackChangesUI};