@ckeditor/ckeditor5-track-changes 48.2.0-alpha.3 → 48.2.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +25 -25
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x14e120,Plugin as _0x3ea3b4,PendingActions as _0x5dde1d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x181319,Annotations as _0x1a224d,EditorAnnotations as _0x44a098,Comments as _0x4b21f6}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x180e5c,ObservableMixin as _0x2671d6,uid as _0x4681a7,priorities as _0x3029c3,insertToPriorityArray as _0x38ca84,logWarning as _0x219ccc,getEnvKeystrokeText as _0x44b0b1,FocusTracker as _0x430cd1,KeystrokeHandler as _0x49f1ea,Collection as _0x3e5b65}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4370cb,IconCancel as _0x7afe80,IconTrackChanges as _0x2a0832}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x40e1c6,View as _0x3dabb4,ViewCollection as _0x25a70f,FocusCycler as _0x1a7373,UIModel as _0x4f152d,createDropdown as _0xe3101,SplitButtonView as _0x140ced,addListToDropdown as _0x14603c,MenuBarMenuView as _0x7f1e4f,MenuBarMenuListView as _0x51605c,ListSeparatorView as _0x2ebf0c,MenuBarMenuListItemView as _0x43e5a5,MenuBarMenuListItemButtonView as _0x3ddcae,BodyCollection as _0x16da8c,Dialog as _0x38eea3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x368712,SuggestionsConversion as _0x133a74,Users as _0x2735a2,DocumentCompare as _0x42cf99,fixElementSuggestionRange as _0x2d0738,hashObject as _0x274975,surroundingMarkersDetector as _0x3b812a,FOCUS_ANNOTATION_KEYSTROKE as _0x3d6e5e,AriaDescriptionView as _0x1b5838,setupThreadKeyboardNavigation as _0x5c8496,trimHtml as _0x332d04,UserView as _0x2f641b,LateFocusButtonView as _0x80ad2c,getDateTimeFormatter as _0x2eaad4,getAllMarkersDomElementsSorted as _0x43e048,sanitizeEditorConfig as _0x34f537}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x1236b6,ModelLiveRange as _0x418bbc,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class TrackChangesCommand extends _0x14e120{['_enabledCommands'];constructor(_0x5bc29e,_0x197bb0){super(_0x5bc29e),this['_enabledCommands']=_0x197bb0,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 _0x3304b4 of this['editor']['commands']['commands']())_0x3304b4['affectsData']&&!this['_enabledCommands']['has'](_0x3304b4)&&_0x3304b4['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x37cc2f of this['editor']['commands']['commands']())_0x37cc2f['affectsData']&&!this['_enabledCommands']['has'](_0x37cc2f)&&_0x37cc2f['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends _0x14e120{['_suggestions'];constructor(_0x38122e,_0x2a1f85){super(_0x38122e),this['_suggestions']=_0x2a1f85,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x22f056){const _0x3e34ec=this['_suggestions']['get'](_0x22f056);if(!_0x3e34ec)throw new _0x180e5c('track-changes-accept-suggestion-not-found',this);const _0x57b90c=_0x3e34ec['getRanges']();this['editor']['model']['canEditAt'](_0x57b90c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3e34ec);}}class DiscardSuggestionCommand extends _0x14e120{['_suggestions'];constructor(_0x520e8a,_0x372c35){super(_0x520e8a),this['_suggestions']=_0x372c35,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x12c3b7){const _0x31ac58=this['_suggestions']['get'](_0x12c3b7);if(!_0x31ac58)throw new _0x180e5c('track-changes-discard-suggestion-not-found',this);const _0x23015f=_0x31ac58['getRanges']();this['editor']['model']['canEditAt'](_0x23015f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x31ac58);}}function ht(_0x1728a2,_0x446ead){let _0x4456d1='';return _0x4456d1+=_0x1728a2['split']('*')['map']((_0x3d3ea9,_0x442dff)=>_0x442dff%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+dt(_0x3d3ea9)+'</span>':dt(_0x3d3ea9))['join'](''),_0x446ead&&(_0x4456d1+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x446ead['value']+'\x22\x20title=\x22'+_0x446ead['title']+'\x22></span>'),_0x4456d1;}function dt(_0x1b12cb){const _0x533017=document['createElement']('span');return _0x533017['innerText']=_0x1b12cb,_0x533017['innerHTML'];}function gt(_0x9ccf28){return _0x9ccf28['sort']((_0x4371f3,_0x4b46ef)=>'attribute'===_0x4371f3['type']&&'attribute'!==_0x4b46ef['type']?-0x1:'attribute'!==_0x4371f3['type']&&'attribute'===_0x4b46ef['type']?0x1:'deletion'==_0x4371f3['type']&&'deletion'!=_0x4b46ef['type']?-0x1:'deletion'!=_0x4371f3['type']&&'deletion'==_0x4b46ef['type']?0x1:0x0);}function ft(_0x2993da,_0x5229f8){let _0x5dc929,_0x58bfcf=0x0;const _0x364ba8=[],_0x5a8b32=_0x5229f8['schema'];for(;_0x58bfcf<_0x2993da['length'];){const _0xc87b8d=_0x2993da[_0x58bfcf],_0x135f3d=_0x2993da[_0x58bfcf+0x1];_0x5dc929||(_0x5dc929=_0x5229f8['createPositionBefore'](_0xc87b8d)),mt(_0x5229f8,_0xc87b8d,_0x135f3d)||(_0x364ba8['push'](_0x5229f8['createRange'](_0x5dc929,_0x5a8b32['isObject'](_0xc87b8d)?_0x5229f8['createPositionAfter'](_0xc87b8d):_0x5229f8['createPositionAt'](_0xc87b8d,'end'))),_0x5dc929=null),_0x58bfcf++;}return _0x364ba8;}function mt(_0xb3c781,_0x162477,_0x2204c0){if(!_0x2204c0)return!0x1;const _0x5d3452=_0xb3c781['createPositionAfter'](_0x162477),_0x4b0dfd=_0xb3c781['createPositionBefore'](_0x2204c0);return _0x5d3452['isTouching'](_0x4b0dfd);}function Et(_0x46bca9,_0x42a0cb,_0x58294c){for(;_0x58294c['length'];){const _0x2cddb9=_0x58294c['splice'](0x0,0x64);_0x46bca9['change'](()=>{for(const _0x4becb4 of _0x2cddb9)_0x4becb4['isInContent']&&_0x42a0cb['execute'](_0x4becb4['id']);});}}class ExecuteOnAllSuggestionsCommand extends _0x14e120{['_command'];['_suggestions'];constructor(_0x112a5b,_0x568e03,_0x4d5e49){super(_0x112a5b),this['_command']=_0x568e03,this['_suggestions']=_0x4d5e49,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4c95ec=Array['from'](this['_suggestions']['values']())['some'](_0x25c5d1=>_0x25c5d1['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4c95ec;}['execute'](){const _0x2de5f2=gt(Array['from'](this['_suggestions']['values']()));for(const _0x52cf56 of _0x2de5f2){const _0xe71b09=_0x52cf56['getRanges']();if(!this['editor']['model']['canEditAt'](_0xe71b09))return;}Et(this['editor']['model'],this['_command'],_0x2de5f2);}}class ExecuteOnSelectedSuggestionsCommand extends _0x14e120{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x36b8bd,_0x488b6a,_0x55cb02){super(_0x36b8bd),this['_command']=_0x488b6a,this['_suggestions']=_0x55cb02,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x15471e=this['editor']['model']['document']['selection'],_0x48d6f0=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x353776,_0x262af7){const _0x2fa0b7=Array['from'](_0x353776['getRanges']()),_0x3d0759=new Set();for(const _0xb9adf6 of _0x262af7)if(_0xb9adf6['isInContent']){for(const _0x535529 of _0x2fa0b7)for(const _0x473c26 of _0xb9adf6['getRanges']())(_0x535529['isIntersecting'](_0x473c26)||_0x353776['isCollapsed']&&!_0xb9adf6['isMultiRange']&&_0xb9adf6['next']&&_0x473c26['end']['isTouching'](_0x535529['start']))&&_0x3d0759['add'](_0xb9adf6);}return _0x3d0759;}(_0x15471e,_0x48d6f0),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2be42a=gt(Array['from'](this['_selectedSuggestions']));for(const _0x2910e3 of _0x2be42a){const _0x171e54=_0x2910e3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x171e54))return;}Et(this['editor']['model'],this['_command'],_0x2be42a);}}class Suggestion extends/* #__PURE__ -- @preserve */
24
- _0x2671d6(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x343927,_0x1bc5bc){super(),this['id']=_0x1bc5bc['id'],this['type']=_0x1bc5bc['type'],this['subType']=_0x1bc5bc['subType']||null,this['author']=_0x1bc5bc['author'],this['creator']=_0x1bc5bc['creator']||_0x1bc5bc['author'],this['isExternal']=Boolean(_0x1bc5bc['attributes']&&_0x1bc5bc['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1bc5bc['originalSuggestionId']||null,this['_model']=_0x343927,this['_onAccept']=_0x1bc5bc['onAccept'],this['_onDiscard']=_0x1bc5bc['onDiscard'],this['_onAttributesChange']=_0x1bc5bc['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1bc5bc['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 _0x118e1f=this;for(;_0x118e1f['previous'];)_0x118e1f=_0x118e1f['previous'];return _0x118e1f;}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'](_0x2a1c27){this['_markerNames']['add'](_0x2a1c27);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xb23fb1=>this['_model']['markers']['get'](_0xb23fb1))['filter'](_0x63d1d8=>_0x63d1d8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x8ccb23=>{for(const _0x5aaffb of this['getMarkers']())_0x8ccb23['removeMarker'](_0x5aaffb);}),this['_markerNames']['clear']();}['removeMarker'](_0x261bd8){this['_model']['change'](_0x507b5e=>{_0x507b5e['removeMarker'](_0x261bd8);}),this['_markerNames']['delete'](_0x261bd8);}['addRange'](_0x28f4b4){const _0x42cde4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x42cde4),this['_model']['change'](_0x3790a5=>{_0x3790a5['addMarker'](_0x42cde4,{'range':_0x28f4b4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5dc20e){for(const _0xeb854f of this['getRanges']())if(_0xeb854f['isIntersecting'](_0x5dc20e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x538ade=>_0x538ade['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2ea345,_0x26fd2e)=>[..._0x2ea345,..._0x26fd2e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x257de7=this['getRanges']();if(0x1!=_0x257de7['length'])return null;const _0x5b3c3e=_0x257de7[0x0],_0x248cd3=_0x5b3c3e['start']['nodeAfter'],_0x510c07=_0x5b3c3e['end']['nodeBefore'];return _0x248cd3 instanceof _0x1236b6?_0x248cd3!=_0x510c07?null:_0x248cd3: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 _0x17953b=[];let _0x38d308=this['head'];for(;_0x38d308;)_0x17953b['push'](_0x38d308),_0x38d308=_0x38d308['next'];return _0x17953b;}['setAttribute'](_0x14dd24,_0x3296aa){const _0x363ec8=nt(this['attributes']);it(_0x363ec8,_0x14dd24,_0x3296aa),st(_0x363ec8,this['attributes'])||(this['attributes']=_0x363ec8,this['_onAttributesChange'](_0x363ec8));}['removeAttribute'](_0x19da35){const _0x1b5574=nt(this['attributes']);rt(_0x1b5574,_0x19da35),st(_0x1b5574,this['attributes'])||(this['attributes']=_0x1b5574,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 _0x4681a7()['substr'](0x1,0x5);}}function Tt(_0x591347,_0x5a6124,_0x1242e8){const _0x4add88=_0x591347['t'],t=_0x591347['t'];switch(_0x5a6124){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',_0x1242e8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1242e8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1242e8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1242e8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1242e8);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',_0x1242e8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1242e8);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',_0x1242e8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1242e8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1242e8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1242e8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1242e8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1242e8);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1242e8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1242e8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1242e8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1242e8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1242e8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1242e8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1242e8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1242e8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1242e8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1242e8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1242e8);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1242e8);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'},_0x1242e8);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1242e8);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1242e8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1242e8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1242e8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1242e8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1242e8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1242e8);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x1242e8);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});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'},_0x1242e8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1242e8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1242e8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1242e8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1242e8);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x1242e8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1242e8);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'},_0x1242e8);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x1242e8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1242e8);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'},_0x1242e8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1242e8);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'},_0x1242e8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1242e8);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x1242e8);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x1242e8);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x1242e8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1242e8);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'},_0x1242e8);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1242e8);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 _0x4add88({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1242e8);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4add88({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1242e8);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1242e8);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'},_0x1242e8);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'},_0x1242e8);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'},_0x1242e8);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5a6124;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4f779d,_0x118194){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4f779d,this['_locale']=_0x118194;}['getDescriptions'](_0xd0c12c){const _0xce4fbd=[],_0x3c781a=new Set(),_0x4996e5=new Set();for(let _0x23487d=0x0;_0x23487d<_0xd0c12c['length'];_0x23487d++){const _0x4a58ac=_0xd0c12c[_0x23487d];if(!_0x4a58ac['isInContent'])continue;const _0x23ec16=this['_handleCustomCallbackDescription'](_0x4a58ac);if(_0x23ec16){if(null!=_0x4a58ac['subType']){if(_0x3c781a['has'](_0x4a58ac['subType']))continue;_0x3c781a['add'](_0x4a58ac['subType']);}_0xce4fbd['push'](_0x23ec16);}else{if('attribute'==_0x4a58ac['type']){const _0x53f48b=_0x4a58ac['data']['key'];if(_0x4996e5['has'](_0x53f48b))continue;_0x4996e5['add'](_0x4a58ac['data']['key']),_0x53f48b==Bt?this['_handleRenameSuggestionDescription'](_0xce4fbd,_0x4a58ac):this['_handleAttributeSuggestionDescription'](_0xce4fbd,_0x4a58ac);continue;}'insertion'!=_0x4a58ac['type']&&'deletion'!=_0x4a58ac['type']||this['_handleInsertRemoveSuggestionDescription'](_0xce4fbd,_0x4a58ac,_0xd0c12c[_0x23487d+0x1]);}}return this['_resolveDescriptionItems'](_0xce4fbd);}['registerDescriptionCallback'](_0x506acd){this['_customCallbacks']['push'](_0x506acd);}['registerElementLabel'](_0x182a5e,_0x57220e,_0x1e7ed4=_0x3029c3['normal']){'function'==typeof _0x182a5e?_0x38ca84(this['_itemLabelsCallbacks'],{'matchingCallback':_0x182a5e,'label':_0x57220e,'priority':_0x1e7ed4}):this['_itemLabels']['set'](_0x182a5e,_0x57220e);}['registerAttributeLabel'](_0x25213e,_0x31ed8c){this['_attributeLabels']['set'](_0x25213e,_0x31ed8c);}['getItemLabel'](_0x39c905,_0x85d2e2=0x1){let _0x1eec8b;for(const _0x443b51 of this['_itemLabelsCallbacks'])if(_0x443b51['matchingCallback'](_0x39c905)){_0x1eec8b=_0x443b51['label'];break;}return _0x1eec8b||(_0x1eec8b=this['_itemLabels']['get'](_0x39c905['name'])),_0x1eec8b?_0x1eec8b(_0x85d2e2):0x1!==_0x85d2e2?_0x85d2e2+'\x20'+_0x39c905['name']+'s':''+_0x39c905['name'];}['_addDescriptionItems'](_0x7d4e6f,_0x123634){const _0xc26a55=_0x123634['getFirstRange']()['getWalker'](),_0x384262='insertion'==_0x123634['type']?'add':'remove';for(const _0x4e3055 of _0xc26a55){const _0x580a8c=_0x4e3055['item'],_0x235bbb=_0x7d4e6f[_0x7d4e6f['length']-0x1];if(_0x580a8c['is']('$textProxy'))_0x235bbb&&_0x235bbb['type']['indexOf']('Container')>-0x1&&_0x7d4e6f['pop'](),_0x235bbb&&'text'==_0x235bbb['type']?_0x235bbb[_0x384262]+=_0x580a8c['data']:_0x7d4e6f['push']({'type':'text','add':'add'==_0x384262?_0x580a8c['data']:'','remove':'remove'==_0x384262?_0x580a8c['data']:''});else{if(this['_schema']['isObject'](_0x580a8c)){const _0x27c212=_0x580a8c;if(_0x235bbb&&_0x235bbb['type']['indexOf']('Container')>-0x1&&_0x7d4e6f['pop'](),'elementEnd'==_0x4e3055['type'])continue;_0x235bbb&&_0x235bbb['type']==_0x384262+'Object'&&_0x235bbb['element']['name']==_0x27c212['name']?_0x235bbb['quantity']++:_0x7d4e6f['push']({'type':_0x384262+'Object','element':_0x27c212,'quantity':0x1}),_0xc26a55['skip'](_0x380ab2=>!('elementEnd'==_0x380ab2['type']&&_0x380ab2['item']==_0x580a8c));}else{if(this['_schema']['checkChild'](_0x580a8c,'$text')||_0x580a8c['is']('element','softBreak')){const _0x70afab=_0x580a8c;if('add'==_0x384262&&'elementStart'==_0x4e3055['type']||'remove'==_0x384262&&'elementEnd'==_0x4e3055['type'])continue;if(_0x235bbb&&-0x1==_0x235bbb['type']['indexOf']('Container')){'text'==_0x235bbb['type']&&(_0x235bbb[_0x384262]+='\x0a');continue;}let _0x1e0b99;if(_0x1e0b99='add'==_0x384262?_0x70afab['nextSibling']&&!this['_schema']['isObject'](_0x70afab['nextSibling'])?_0x70afab['nextSibling']:null:_0x70afab['previousSibling']&&!this['_schema']['isObject'](_0x70afab['previousSibling'])?_0x70afab['previousSibling']:null,_0x70afab['isEmpty']||_0x1e0b99&&_0x1e0b99['isEmpty']){const _0x4e60fe=_0x1e0b99&&_0x1e0b99['isEmpty']?_0x1e0b99:_0x70afab;_0x235bbb&&_0x235bbb['type']==_0x384262+'EmptyContainer'&&_0x235bbb['element']['name']==_0x4e60fe['name']?_0x235bbb['quantity']++:_0x7d4e6f['push']({'type':_0x384262+'EmptyContainer','element':_0x4e60fe,'quantity':0x1});}else _0x7d4e6f['push']({'type':_0x384262+'Container','element':_0x70afab});}}}}}['_resolveDescriptionItems'](_0x1d18bf){const _0xad78a3=this['_locale'],_0x3da1cc=[],_0x370681=[],_0x1c138f=[];for(const _0x125843 of _0x1d18bf)switch(_0x125843['type']){case'text':if(_0x125843['add']=_0x125843['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x125843['remove']=_0x125843['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x125843['add']&&''!=_0x125843['remove']){_0x3da1cc['push']({'type':'replace','content':Tt(_0xad78a3,'REPLACE_TEXT',['\x22'+_0x125843['remove']+'\x22','\x22'+_0x125843['add']+'\x22'])});continue;}if(null!=_0x125843['add']['match'](/^ +$/)){_0x3da1cc['push']({'type':'insertion','content':Tt(_0xad78a3,'*Insert:*\x20%0',Tt(_0xad78a3,'ELEMENT_SPACE',_0x125843['add']['length']))});continue;}if(null!=_0x125843['remove']['match'](/^ +$/)){_0x3da1cc['push']({'type':'deletion','content':Tt(_0xad78a3,'*Remove:*\x20%0',Tt(_0xad78a3,'ELEMENT_SPACE',_0x125843['remove']['length']))});continue;}if(''!=_0x125843['add']){_0x3da1cc['push']({'type':'insertion','content':Tt(_0xad78a3,'*Insert:*\x20%0','\x22'+_0x125843['add']+'\x22')});continue;}_0x3da1cc['push']({'type':'deletion','content':Tt(_0xad78a3,'*Remove:*\x20%0','\x22'+_0x125843['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3da1cc['push']({'type':'insertion','content':Tt(_0xad78a3,'*Insert:*\x20%0',this['getItemLabel'](_0x125843['element'],_0x125843['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3da1cc['push']({'type':'deletion','content':Tt(_0xad78a3,'*Remove:*\x20%0',this['getItemLabel'](_0x125843['element'],_0x125843['quantity']))});continue;case'addContainer':_0x3da1cc['push']({'type':'insertion','content':Tt(_0xad78a3,'*Split:*\x20%0',this['getItemLabel'](_0x125843['element'],_0x125843['quantity']))});continue;case'removeContainer':_0x3da1cc['push']({'type':'deletion','content':Tt(_0xad78a3,'*Merge:*\x20%0',this['getItemLabel'](_0x125843['element'],_0x125843['quantity']))});continue;case'addFormat':_0x370681['push'](_0x125843['key']);continue;case'removeFormat':_0x1c138f['push'](_0x125843['key']);continue;default:_0x3da1cc['push'](_0x125843);}if(_0x370681['length']){const _0x4823de=_0x370681['map'](_0x5a56d5=>this['_attributeLabels']['has'](_0x5a56d5)?this['_attributeLabels']['get'](_0x5a56d5):_0x5a56d5)['join'](',\x20');_0x3da1cc['push']({'type':'format','content':Tt(this['_locale'],'*Set\x20format:*\x20%0',_0x4823de)});}if(_0x1c138f['length']){const _0x4a7a3f=_0x1c138f['map'](_0x6028e2=>this['_attributeLabels']['has'](_0x6028e2)?this['_attributeLabels']['get'](_0x6028e2):_0x6028e2)['join'](',\x20');_0x3da1cc['push']({'type':'format','content':Tt(this['_locale'],'*Remove\x20format:*\x20%0',_0x4a7a3f)});}return _0x3da1cc;}['_handleCustomCallbackDescription'](_0x1be2cf){for(const _0x492a86 of this['_customCallbacks']){const _0x14140e=_0x492a86(_0x1be2cf);if(_0x14140e&&'type'in _0x14140e)return _0x14140e;}}['_handleAttributeSuggestionDescription'](_0x488c17,_0x21c27a){const _0x55f71d=_0x21c27a['data'],_0x312257=void 0x0===_0x55f71d['newValue']?'removeFormat':'addFormat';_0x488c17['push']({'type':_0x312257,'key':_0x55f71d['key']});}['_handleRenameSuggestionDescription'](_0xf8aab0,_0x30531a){_0xf8aab0['push']({'type':'format','content':Tt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x30531a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2cdd27,_0x3e2152,_0x32e83e){if(this['_addDescriptionItems'](_0x2cdd27,_0x3e2152),_0x32e83e&&_0x32e83e['getFirstRange']()&&!_0x3e2152['getFirstRange']()['end']['isEqual'](_0x32e83e['getFirstRange']()['start'])){const _0x5f0941=_0x2cdd27[_0x2cdd27['length']-0x1],_0x4245b2='insertion'==_0x3e2152['type']?'add':'remove';_0x5f0941&&'text'==_0x5f0941['type']&&(_0x5f0941[_0x4245b2]+='\x0a');}}}class TrackChangesAIAssistant extends _0x3ea3b4{['afterInit'](){const _0x602be9=this['editor'],_0x3b0d03=_0x602be9['plugins']['get']('TrackChangesEditing');_0x602be9['commands']['get']('showAIAssistant')&&_0x3b0d03['enableCommand']('showAIAssistant');}}class TrackChangesAI extends _0x3ea3b4{['afterInit'](){const _0x44bb9c=this['editor'],_0x4949e5=_0x44bb9c['plugins']['get']('TrackChangesEditing');_0x44bb9c['commands']['get']('toggleAi')&&_0x4949e5['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends _0x3ea3b4{['afterInit'](){const _0x5bb92b=this['editor'],_0x2e0349=_0x5bb92b['plugins']['get']('TrackChangesEditing');_0x5bb92b['commands']['get']('aiQuickAction')&&_0x2e0349['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends _0x3ea3b4{['afterInit'](){const _0x50f70d=this['editor'],_0x9badf=_0x50f70d['locale'];if(!_0x50f70d['plugins']['has']('AlignmentEditing'))return;const _0x4e181b=_0x50f70d['plugins']['get']('TrackChangesEditing');_0x4e181b['enableDefaultAttributesIntegration']('alignment'),_0x4e181b['descriptionFactory']['registerAttributeLabel']('alignment',Tt(_0x9badf,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b1363=this['editor'],_0x3f95db=_0x5b1363['locale'];_0x5b1363['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x76605d=>{if('formatBlock'!=_0x76605d['type'])return;const {data:_0x595916}=_0x76605d;if(_0x595916&&'alignment'==_0x595916['commandName']){const _0x51fb71=_0x595916['commandParams'][0x0]['value'];return{'type':'format','content':Tt(_0x3f95db,'*Format:*\x20%0',function(_0x104ce3){switch(_0x104ce3){case'left':return Tt(_0x3f95db,'FORMAT_ALIGN_TO_LEFT');case'right':return Tt(_0x3f95db,'FORMAT_ALIGN_TO_RIGHT');case'center':return Tt(_0x3f95db,'FORMAT_ALIGN_TO_CENTER');case'justify':return Tt(_0x3f95db,'FORMAT_JUSTIFY_TEXT');}}(_0x51fb71))};}});}}const _t=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends _0x3ea3b4{['afterInit'](){const _0x29c49=this['editor'],_0x4c71fa=_0x29c49['plugins']['get']('TrackChangesEditing'),_0x42d7cb=_0x29c49['locale'];for(const _0x2b2a6d of _t){if(!_0x29c49['plugins']['has'](_0x2b2a6d))continue;const _0x2f755b=_0x2b2a6d['slice'](0x0,-0x7)['toLowerCase'](),_0x5be127='FORMAT_'+_0x2f755b['toUpperCase']();_0x4c71fa['enableDefaultAttributesIntegration'](_0x2f755b),_0x4c71fa['descriptionFactory']['registerAttributeLabel'](_0x2f755b,Tt(_0x42d7cb,_0x5be127));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x414998=this['editor'],_0x12fe1a=_0x414998['locale'],_0x5c6b57=_0x414998['plugins']['get']('TrackChangesEditing');function _0x199671(_0xaf584d,_0x59c64e){_0x5c6b57['descriptionFactory']['registerDescriptionCallback'](_0x5b7c9e=>{if('formatInline'!=_0x5b7c9e['type'])return;const {data:_0x2744d7}=_0x5b7c9e;return _0x2744d7&&_0x2744d7['commandName']===_0xaf584d?_0x2744d7['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x12fe1a,'*Format:*\x20%0',_0x59c64e)}:{'type':'format','content':Tt(_0x12fe1a,'*Remove\x20format:*\x20%0',_0x59c64e)}:void 0x0;});}_0x199671('bold',Tt(_0x12fe1a,'FORMAT_BOLD')),_0x199671('italic',Tt(_0x12fe1a,'FORMAT_ITALIC')),_0x199671('underline',Tt(_0x12fe1a,'FORMAT_UNDERLINE')),_0x199671('code',Tt(_0x12fe1a,'FORMAT_CODE')),_0x199671('strikethrough',Tt(_0x12fe1a,'FORMAT_STRIKETHROUGH')),_0x199671('subscript',Tt(_0x12fe1a,'FORMAT_SUBSCRIPT')),_0x199671('superscript',Tt(_0x12fe1a,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends _0x3ea3b4{['afterInit'](){const _0x5c3636=this['editor'],_0x2066bf=_0x5c3636['locale'];if(!_0x5c3636['plugins']['has']('BlockQuoteEditing'))return;const _0x426391=_0x5c3636['plugins']['get']('TrackChangesEditing'),_0x516170=this['editor']['commands']['get']('blockQuote');_0x426391['enableCommand']('blockQuote',(_0x35d385,_0x4c6c50={})=>{const _0x1b9710=this['editor']['model']['document']['selection'],_0x2db0cc=_0x4c6c50&&void 0x0!==_0x4c6c50['forceValue']?_0x4c6c50['forceValue']:!_0x516170['value'];let _0xed2f28=[];if(_0x2db0cc){const _0x452cd8=Array['from'](_0x1b9710['getSelectedBlocks']())['filter'](_0x5eabb7=>pt(_0x5eabb7)||function(_0x153fed,_0x306b61){const _0xa7cd05=_0x306b61['createContext'](_0x153fed['parent']);if(!_0x306b61['checkChild'](_0xa7cd05,'blockQuote'))return!0x1;if(!_0x306b61['checkChild'](_0xa7cd05['push']('blockQuote'),_0x153fed))return!0x1;return!0x0;}(_0x5eabb7,this['editor']['model']['schema']));_0xed2f28=ft(_0x452cd8,_0x5c3636['model']);}else{const _0x55d5f2=Array['from'](_0x1b9710['getSelectedBlocks']())['filter'](_0x26cecc=>pt(_0x26cecc));_0xed2f28=ft(_0x55d5f2,_0x5c3636['model']);}_0x5c3636['model']['change'](()=>{for(const _0xc0fad7 of _0xed2f28)_0x426391['markBlockFormat'](_0xc0fad7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2db0cc}]});});}),_0x426391['descriptionFactory']['registerDescriptionCallback'](_0x57c2e2=>{const {data:_0x85ba0d}=_0x57c2e2;if(_0x85ba0d&&'blockQuote'==_0x85ba0d['commandName']){const _0xe7a5c6=Tt(_0x2066bf,'ELEMENT_BLOCK_QUOTE');return _0x85ba0d['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x2066bf,'*Set\x20format:*\x20%0',_0xe7a5c6)}:{'type':'format','content':Tt(_0x2066bf,'*Remove\x20format:*\x20%0',_0xe7a5c6)};}});}}function pt(_0x24de59){return'blockQuote'==_0x24de59['parent']['name'];}class TrackChangesBookmark extends _0x3ea3b4{['afterInit'](){const _0x557431=this['editor'],_0x4c42d1=_0x557431['locale'],_0x14825a=_0x557431['plugins']['get']('TrackChangesEditing');_0x557431['plugins']['has']('BookmarkEditing')&&(_0x14825a['enableCommand']('insertBookmark'),_0x14825a['enableDefaultAttributesIntegration']('updateBookmark'),_0x14825a['descriptionFactory']['registerDescriptionCallback'](_0x4627d4=>{if('insertion'!=_0x4627d4['type']&&'deletion'!=_0x4627d4['type']&&'attribute'!=_0x4627d4['type'])return;const _0x4cff8c=_0x4627d4['getContainedElement']();if(null==_0x4cff8c)return;if(!_0x4cff8c['is']('element','bookmark'))return;const _0x391751=_0x4cff8c['getAttribute']('bookmarkId');if('insertion'==_0x4627d4['type'])return{'type':'insertion','content':Tt(_0x4c42d1,'*Insert:*\x20%0','\x22'+_0x391751+'\x22\x20'+Tt(_0x4c42d1,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4627d4['type'])return{'type':'deletion','content':Tt(_0x4c42d1,'*Remove:*\x20%0','\x22'+_0x391751+'\x22\x20'+Tt(_0x4c42d1,'ELEMENT_BOOKMARK'))};const {data:_0x14fc4c}=_0x4627d4;if(!_0x14fc4c||'bookmarkId'!=_0x14fc4c['key'])return;return{'type':'format','content':Tt(_0x4c42d1,'*Set\x20bookmark:*\x20%0','\x22'+_0x14fc4c['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends _0x3ea3b4{['afterInit'](){const _0x579ecc=this['editor'];_0x579ecc['plugins']['has']('CaseChange')&&(_0x579ecc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x579ecc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x579ecc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends _0x3ea3b4{['afterInit'](){const _0x41b137=this['editor'];_0x41b137['commands']['get']('ckbox')&&_0x41b137['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends _0x3ea3b4{['afterInit'](){const _0x2ad65b=this['editor'];if(!_0x2ad65b['plugins']['has']('CodeBlock'))return;const _0x14eb1c=_0x2ad65b['plugins']['get']('TrackChangesEditing'),_0x490f18=_0x2ad65b['locale'],_0x337e5f=_0x2ad65b['config']['get']('codeBlock')['languages'],_0x3288c6=_0x2ad65b['commands']['get']('codeBlock');_0x14eb1c['enableCommand']('indentCodeBlock'),_0x14eb1c['enableCommand']('outdentCodeBlock'),_0x14eb1c['enableCommand']('codeBlock',(_0x150d4e,_0x116d79={})=>{const _0x769e0e=_0x2ad65b['model'],_0x5cd91f=_0x2ad65b['model']['document']['selection'],_0x3faf4c=_0x116d79&&void 0x0!==_0x116d79['forceValue']?_0x116d79['forceValue']:!_0x3288c6['value'];let _0x358b98;_0x116d79['language']||(_0x116d79['language']=_0x337e5f[0x0]['language']),_0x358b98=_0x3faf4c?Array['from'](_0x5cd91f['getSelectedBlocks']())['filter'](_0x120eb3=>Ct(_0x120eb3)||function(_0x32e4b1,_0x50da9a){if(_0x32e4b1['is']('rootElement')||_0x50da9a['isLimit'](_0x32e4b1))return!0x1;return _0x50da9a['checkChild'](_0x32e4b1['parent'],'codeBlock');}(_0x120eb3,_0x769e0e['schema'])):Array['from'](_0x5cd91f['getSelectedBlocks']())['filter'](_0x5c3f6b=>Ct(_0x5c3f6b));const _0x1c2ace=ft(_0x358b98,_0x769e0e);_0x769e0e['change'](()=>{for(const _0x863b6a of _0x1c2ace)_0x14eb1c['markBlockFormat'](_0x863b6a,{'commandName':'codeBlock','commandParams':[{..._0x116d79,'forceValue':_0x3faf4c}],'formatGroupId':'blockName'});});}),(_0x14eb1c['descriptionFactory']['registerElementLabel']('codeBlock',_0x9ef895=>Tt(_0x490f18,'ELEMENT_CODE_BLOCK',_0x9ef895)),_0x14eb1c['descriptionFactory']['registerDescriptionCallback'](_0x283136=>{if('formatBlock'!=_0x283136['type'])return;const _0x3f3a7e=_0x490f18['t'],{data:_0x54f5c4}=_0x283136;if(!_0x54f5c4||'codeBlock'!=_0x54f5c4['commandName'])return;const _0x1c5ae3=_0x54f5c4['commandParams'][0x0]['language'],_0x4ce27d=_0x3f3a7e(_0x337e5f['find'](_0x3b9443=>_0x3b9443['language']===_0x1c5ae3)['label'])['toLowerCase']();return _0x54f5c4['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x490f18,'*Set\x20format:*\x20%0',Tt(_0x490f18,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4ce27d+')')}:{'type':'format','content':Tt(_0x490f18,'*Remove\x20format:*\x20%0',Tt(_0x490f18,'ELEMENT_CODE_BLOCK',0x1))};}));}}function Ct(_0x27d973){return'codeBlock'==_0x27d973['name'];}class TrackChangesComments extends _0x3ea3b4{['afterInit'](){const _0x4dea92=this['editor'];if(!_0x4dea92['plugins']['has']('CommentsEditing'))return;_0x4dea92['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends _0x3ea3b4{static get['requires'](){return[at];}['init'](){const _0x5a4365=this['editor'],_0x13dda6=_0x5a4365['plugins']['get']('TrackChangesEditing');_0x13dda6['enableCommand']('delete');const _0x4984fa=_0x5a4365['commands']['get']('deleteForward');_0x13dda6['enableCommand']('deleteForward',(_0x180f68,_0x2b2758={})=>{const _0x47ca18=_0x5a4365['model']['createSelection'](_0x5a4365['model']['document']['selection']);_0x47ca18['isCollapsed']&&_0x5a4365['model']['modifySelection'](_0x47ca18,{'direction':'forward','unit':_0x2b2758['unit']});const _0x5196e5=_0x47ca18['getFirstRange'](),_0x4c541b=_0x418bbc['fromRange'](_0x5196e5);let _0xf64336;_0x180f68(_0x2b2758),_0xf64336='$graveyard'==_0x4c541b['root']['rootName']?_0x5a4365['model']['createRange'](_0x5196e5['start']):_0x5a4365['model']['createRange'](_0x4c541b['start'],_0x4c541b['end']),_0x4c541b['detach'](),_0x5a4365['model']['enqueueChange'](_0x4984fa['buffer']['batch'],_0x98d155=>{_0x4984fa['buffer']['lock'](),_0x98d155['setSelection'](_0x98d155['createRange'](_0xf64336['end'])),_0x4984fa['buffer']['unlock']();});});}}class TrackChangesList extends _0x3ea3b4{['afterInit'](){const _0x5c89f7=this['editor'];if(!_0x5c89f7['plugins']['has']('ListEditing'))return;const _0x10f503=_0x5c89f7['locale'],_0x275ba2=_0x5c89f7['plugins']['get']('TrackChangesEditing'),_0x1748f6=_0x5c89f7['plugins']['has']('TodoListEditing'),_0x4956dd=!!_0x5c89f7['config']['get']('list.multiBlock');function _0x23357d(_0x3dcf04){return{'type':'format','content':''+Tt(_0x10f503,'*Set\x20format:*\x20%0',_0x3dcf04)};}function _0x58427e(_0x52aee7){return{'type':'format','content':''+Tt(_0x10f503,'*Remove\x20format:*\x20%0',_0x52aee7)};}_0x275ba2['enableDefaultAttributesIntegration']('numberedList'),_0x275ba2['enableDefaultAttributesIntegration']('bulletedList'),_0x275ba2['enableDefaultAttributesIntegration']('customNumberedList'),_0x275ba2['enableDefaultAttributesIntegration']('customBulletedList'),_0x275ba2['enableDefaultAttributesIntegration']('indentList'),_0x275ba2['enableDefaultAttributesIntegration']('outdentList'),_0x275ba2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x275ba2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4956dd&&(_0x275ba2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x275ba2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1748f6&&(_0x275ba2['enableDefaultAttributesIntegration']('todoList'),_0x275ba2['enableDefaultAttributesIntegration']('checkTodoList'),_0x275ba2['descriptionFactory']['registerDescriptionCallback'](_0x2707e4=>{const {data:_0x1e153d}=_0x2707e4;if(_0x1e153d&&'todoListChecked'==_0x1e153d['key'])return{'type':'format','content':_0x1e153d['newValue']?Tt(_0x10f503,'*Check\x20item*'):Tt(_0x10f503,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x41c325=>{if(_0x41c325['batch']['isUndo'])return!0x1;let _0x3f521d=!0x1;const _0x13a006=_0x275ba2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4bc329=>'todoListChecked'===_0x275ba2['_getAttributeKey'](_0x4bc329));for(const _0x45b7c4 of _0x13a006){'todo'!=_0x45b7c4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x275ba2['_findSuggestions'](_0x45b7c4['getFirstRange'](),'attribute')['find'](_0x366b4a=>'listType'===_0x275ba2['_getAttributeKey'](_0x366b4a['suggestion']))||(_0x41c325['removeMarker'](_0x45b7c4['getFirstMarker']()),_0x3f521d=!0x0));}return _0x3f521d;})),_0x275ba2['descriptionFactory']['registerAttributeLabel']('listIndent',Tt(_0x10f503,'FORMAT_INDENT'));const _0x227178={'type':'format','content':''};_0x275ba2['descriptionFactory']['registerDescriptionCallback'](_0xd35167=>{const {data:_0x4965c9}=_0xd35167;if(!_0x4965c9||'listType'!=_0x4965c9['key'])return;let _0x4d6eb6=_0xd35167['head'];for(;_0x4d6eb6;){if(_0x4d6eb6['data']&&(('listStyle'==_0x4d6eb6['data']['key']||'listMarkerStyle'==_0x4d6eb6['data']['key'])&&(_0x4d6eb6['data']['newValue']&&'default'!=_0x4d6eb6['data']['newValue']||'default'!=_0x4d6eb6['data']['oldValue']&&!_0x4965c9['newValue'])||!_0x4956dd&&_0x4d6eb6['data']['key']==Bt))return _0x227178;_0x4d6eb6=_0x4d6eb6['next'];}if(null==_0x4965c9['newValue'])switch(_0x4965c9['oldValue']){case'bulleted':return _0x58427e(Tt(_0x10f503,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58427e(Tt(_0x10f503,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58427e(Tt(_0x10f503,'ELEMENT_TODO_LIST'));}switch(_0x4965c9['newValue']){case'bulleted':return _0x23357d(Tt(_0x10f503,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x23357d(Tt(_0x10f503,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x23357d(Tt(_0x10f503,'ELEMENT_TODO_LIST'));}}),_0x275ba2['descriptionFactory']['registerDescriptionCallback'](_0x3cc81a=>{const {data:_0x3eada3}=_0x3cc81a;if(_0x3eada3&&'listIndent'==_0x3eada3['key'])return null==_0x3eada3['newValue']||null==_0x3eada3['oldValue']&&0x0==_0x3eada3['newValue']?_0x227178:void 0x0;}),_0x275ba2['descriptionFactory']['registerDescriptionCallback'](_0x3e7769=>{if('attribute'!=_0x3e7769['type'])return;const {data:_0x21d6ee}=_0x3e7769;if(!_0x21d6ee||'listItemId'!=_0x21d6ee['key'])return;const _0x320f2e=kt(_0x3e7769);return'newValue'==_0x320f2e?{'type':'format','content':Tt(_0x10f503,'*Merge:*\x20list\x20item')}:'oldValue'==_0x320f2e?{'type':'format','content':Tt(_0x10f503,'*Split:*\x20list\x20item')}:_0x227178;}),_0x5c89f7['model']['document']['registerPostFixer'](_0x35e364=>this['listItemIdFixer'](_0x35e364)),_0x5c89f7['model']['document']['registerPostFixer'](_0xc8e047=>this['noTrackChangesFixer'](_0xc8e047)),_0x5c89f7['model']['document']['on']('change:data',(_0x108f7f,_0x4f0ec9)=>{if(_0x4f0ec9['isUndo']||!_0x4f0ec9['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1d920a){if(_0x1d920a['batch']['isUndo']||!_0x1d920a['batch']['isLocal'])return!0x1;let _0x1a09de=!0x1;const _0x45a5f1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20d255=>_0x20d255['data']&&'listItemId'==_0x20d255['data']['key'])['filter'](_0x1f8b86=>_0x1f8b86['data']['newValue']&&_0x1f8b86['data']['oldValue']);for(const _0x11612d of _0x45a5f1)kt(_0x11612d)||(_0x1d920a['removeMarker'](_0x11612d['getFirstMarker']()),_0x1a09de=!0x0);return _0x1a09de;}['noTrackChangesFixer'](_0x2c2cb7){if(_0x2c2cb7['batch']['isUndo']||!_0x2c2cb7['batch']['isLocal'])return!0x1;const _0x4b910e=this['editor']['model']['document']['differ'],_0x2bfb3c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2bfb3c['trackChangesCommand']['value'])return!0x1;let _0x5571b6=!0x1;const _0x5839db=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x59c6df=_0x4b910e['getChanges']()['filter'](_0x5157c4=>'attribute'==_0x5157c4['type'])['filter'](_0x2c10b6=>_0x5839db['has'](_0x2c10b6['attributeKey']));if(0x0==_0x59c6df['length'])return _0x5571b6;const _0x4d64b4=new Set(_0x4b910e['getMarkersToAdd']()['filter'](_0x5630a5=>{if(!_0x5630a5['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x245b20=_0x368712(_0x5630a5['name'])['subType']['split']('|')[0x0];return _0x5839db['has'](_0x245b20);})['map'](_0x538371=>_0x368712(_0x538371['name'])['id']));for(const _0x5c7558 of _0x59c6df){const _0x4ba53b=_0x2bfb3c['_findSuggestions'](_0x5c7558['range'],'attribute')['filter'](_0x20b31c=>{if(_0x20b31c['meta']['isNextTo'])return!0x1;if(_0x4d64b4['has'](_0x20b31c['suggestion']['id']))return!0x1;const _0x35d7d5=_0x2bfb3c['_getAttributeKey'](_0x20b31c['suggestion']);return _0x5839db['has'](_0x35d7d5);})['map'](_0x13200a=>_0x13200a['suggestion']);if(_0x4ba53b['length']){for(const _0x3b211a of _0x4ba53b)_0x2c2cb7['removeMarker'](_0x3b211a['getFirstMarker']());_0x5571b6=!0x0;}}return _0x5571b6;}['assureChains'](){const _0x27aef3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f329d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2efa4f;const _0x5c5746=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x292d00=>{if(_0x292d00['data']['oldRange']||!_0x292d00['data']['newRange'])return null;if(!_0x292d00['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x36e549}=_0x368712(_0x292d00['name']);if(!_0x27aef3['hasSuggestion'](_0x36e549))return null;const _0x4b998e=_0x27aef3['getSuggestion'](_0x36e549);return _0x3f329d['includes'](_0x4b998e['data']['key']);})['map'](_0x29270e=>{const {id:_0x43f2bf}=_0x368712(_0x29270e['name']),_0x104a1a=_0x27aef3['getSuggestion'](_0x43f2bf);return _0x2efa4f=_0x104a1a['attributes']['groupId'],_0x104a1a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5c5746['size'])return;const _0x55afd1=_0x27aef3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23423b=>'attribute'==_0x23423b['type']&&_0x23423b['data']&&_0x3f329d['includes'](_0x23423b['data']['key'])&&_0x23423b['attributes']['groupId']!=_0x2efa4f)['map'](_0x554c3c=>({'listItem':_0x554c3c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x554c3c['attributes']['groupId']})),_0x1035ff=new Set();for(const {groupId:_0x2a2b3d,listItem:_0x4fac5c}of _0x55afd1)_0x5c5746['has'](_0x4fac5c)&&_0x1035ff['add'](_0x2a2b3d);for(const _0x5b83c5 of _0x27aef3['getSuggestions']())_0x1035ff['has'](_0x5b83c5['attributes']['groupId'])&&_0x5b83c5['setAttribute']('groupId',_0x2efa4f);}['_supportLegacySuggestions'](){const _0x127535=this['editor'],_0xfffbbf=_0x127535['locale'],_0x5e60a8=_0x127535['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5e60a8['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x10a7ed,_0x36f434){const _0x419d86=[];for(let _0x961eb of _0x10a7ed)_0x961eb['start']['nodeAfter']===_0x961eb['end']['parent']&&(_0x961eb=_0x127535['model']['createRange'](_0x127535['model']['createPositionAt'](_0x961eb['start']['nodeAfter'],0x0))),_0x419d86['push'](_0x961eb);_0x127535['model']['change'](_0x49d018=>{const _0x456bc5=_0x127535['model']['document']['selection'],_0x580fe4=Array['from'](_0x456bc5['getRanges']())['map'](_0xaf1e03=>_0x418bbc['fromRange'](_0xaf1e03));_0x49d018['setSelection'](_0x419d86),_0x127535['commands']['get'](_0x36f434['commandName'])['refresh'](),_0x36f434['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x127535['execute'](_0x36f434['commandName'],..._0x36f434['commandParams']),_0x49d018['setSelection'](_0x580fe4);for(const _0x4a9dba of _0x580fe4)_0x4a9dba['detach']();});}),_0x5e60a8['descriptionFactory']['registerElementLabel'](function(_0x47b26d){const _0xd7df6b=!_0x127535['model']['schema']['isObject'](_0x47b26d),_0xfee9f5=_0x47b26d['previousSibling'],_0x4d62ba=_0x47b26d['nextSibling'],_0x1d30b4=_0x47b26d['getAttribute']('listItemId'),_0x2dc1a0=!_0xfee9f5||_0xfee9f5['getAttribute']('listItemId')!==_0x1d30b4,_0xb225e7=!_0x4d62ba||_0x4d62ba['getAttribute']('listItemId')!==_0x1d30b4;return _0xd7df6b&&Boolean(_0x1d30b4)&&_0x2dc1a0&&_0xb225e7;},_0x5073f2=>Tt(_0xfffbbf,'ELEMENT_LIST_ITEM',_0x5073f2));}['_registerLegacyDescription'](){const _0xeb5d1c=this['editor'],_0x1a33d9=_0xeb5d1c['locale'];function _0x5a0bd7(_0x4d3ee8){const _0x45d72c=_0xeb5d1c['commands']['get']('bulletedList')['value'],_0x210ce0=_0xeb5d1c['commands']['get']('numberedList')['value'];return'numberedList'===_0x4d3ee8?_0x45d72c:_0x210ce0;}_0xeb5d1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5888f1){if('formatBlock'!=_0x5888f1['type'])return;const {data:_0x1ae9dc}=_0x5888f1;if(!_0x1ae9dc)return;let _0x28a585,_0x3d26a1,_0x689f9d,_0x4b565f;switch(_0x1ae9dc['commandName']){case'bulletedList':_0x689f9d=_0x1ae9dc['commandParams'][0x0]['forceValue'],_0x4b565f=_0x5a0bd7(_0x1ae9dc['commandName']),_0x28a585=_0x689f9d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4b565f&&_0xeb5d1c['config']['get']('list.multiBlock')||(_0x28a585='*Change\x20to:*\x20%0'),_0x3d26a1={'type':'format','content':Tt(_0x1a33d9,_0x28a585,Tt(_0x1a33d9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x689f9d=_0x1ae9dc['commandParams'][0x0]['forceValue'],_0x4b565f=_0x5a0bd7(_0x1ae9dc['commandName']),_0x28a585=_0x689f9d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4b565f&&_0xeb5d1c['config']['get']('list.multiBlock')||(_0x28a585='*Change\x20to:*\x20%0'),_0x3d26a1={'type':'format','content':Tt(_0x1a33d9,_0x28a585,Tt(_0x1a33d9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x28a585='*Indent:*\x20%0',_0x3d26a1={'type':'format','content':Tt(_0x1a33d9,_0x28a585,Tt(_0x1a33d9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x28a585=function(_0x55a33b){const _0x125e4f=_0x55a33b['getFirstRange']();let _0x262435=_0x125e4f['start']['nodeAfter'];for(;_0x262435&&_0x125e4f['containsItem'](_0x262435);){if(_0x262435['getAttribute']('listIndent')>0x0)return!0x1;_0x262435=_0x262435['nextSibling'];}return!0x0;}(_0x5888f1)?Tt(_0x1a33d9,'*Format:*\x20remove\x20from\x20%0',Tt(_0x1a33d9,function(_0x169179){return'ELEMENT_'+_0x169179['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5888f1))):Tt(_0x1a33d9,'*Outdent:*\x20%0',Tt(_0x1a33d9,'ELEMENT_LIST_ITEM')),_0x3d26a1={'type':'format','content':_0x28a585};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1ae9dc['multipleBlocks']&&(_0x28a585='*Merge:*\x20%0',_0x3d26a1={'type':'deletion','content':Tt(_0x1a33d9,_0x28a585,Tt(_0x1a33d9,'ELEMENT_LIST_ITEM'))});}return _0x3d26a1;});}}function kt(_0x5c3607){let _0x28321a=_0x5c3607['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x28321a;){const _0x504e37=_0x28321a['getAttribute']('listItemId');if(!_0x504e37)return!0x1;if(_0x504e37==_0x5c3607['data']['newValue'])return'newValue';if(_0x504e37==_0x5c3607['data']['oldValue'])return'oldValue';_0x28321a=_0x28321a['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends _0x3ea3b4{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x199a68=this['editor']['config']['get']('list.properties'),_0x1c3869=this['editor']['plugins']['get']('TrackChangesEditing');_0x199a68['styles']&&_0x1c3869['enableDefaultAttributesIntegration']('listStyle'),_0x199a68['reversed']&&_0x1c3869['enableDefaultAttributesIntegration']('listReversed'),_0x199a68['startIndex']&&_0x1c3869['enableDefaultAttributesIntegration']('listStart');const _0x5196e9={'type':'format','content':''};_0x1c3869['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x101f38=this['editor']['locale'];_0x1c3869['descriptionFactory']['registerAttributeLabel']('listReversed',Tt(_0x101f38,'FORMAT_LIST_REVERSED')),_0x1c3869['descriptionFactory']['registerDescriptionCallback'](_0x4755bc=>{const {data:_0x52c8b9}=_0x4755bc;if(_0x52c8b9&&'listReversed'==_0x52c8b9['key'])return null==_0x52c8b9['newValue']||0x0==_0x52c8b9['newValue']&&null==_0x52c8b9['oldValue']?_0x5196e9:void 0x0;}),_0x1c3869['descriptionFactory']['registerAttributeLabel']('listStart',Tt(_0x101f38,'FORMAT_LIST_START')),_0x1c3869['descriptionFactory']['registerDescriptionCallback'](_0x26fbe4=>{const {data:_0x1f8fbe}=_0x26fbe4;if(_0x1f8fbe&&'listStart'==_0x1f8fbe['key'])return null==_0x1f8fbe['newValue']||0x1==_0x1f8fbe['newValue']&&null==_0x1f8fbe['oldValue']?_0x5196e9:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4b805d=>{if(_0x4b805d['batch']['isUndo'])return!0x1;let _0x2161bd=!0x1;const _0x58fc08=_0x1c3869['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36c7eb=>{const _0x4ff6bd=_0x1c3869['_getAttributeKey'](_0x36c7eb);return'listStart'==_0x4ff6bd||'listReversed'==_0x4ff6bd;});for(const _0x593e5f of _0x58fc08){const _0x45dbc3=_0x593e5f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x45dbc3||'customNumbered'==_0x45dbc3)continue;_0x1c3869['_findSuggestions'](_0x593e5f['getFirstRange'](),'attribute')['find'](_0x2a0a02=>'listType'==_0x1c3869['_getAttributeKey'](_0x2a0a02['suggestion']))||(_0x4b805d['removeMarker'](_0x593e5f['getFirstMarker']()),_0x2161bd=!0x0);}return _0x2161bd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5ca76a){const _0x1e5f59=this['editor']['locale'],{data:_0xb037f9}=_0x5ca76a,_0x50f083={'type':'format','content':''};if(!_0xb037f9||'listStyle'!=_0xb037f9['key'])return;if(!_0xb037f9['oldValue'])return'default'==_0xb037f9['newValue']?_0x50f083:{'type':'format','content':''+Tt(_0x1e5f59,'*Set\x20format:*\x20%0',Tt(_0x1e5f59,this['_getTranslationKeyForListStyle'](_0xb037f9['newValue'])))};if(!_0xb037f9['newValue']){if('default'==_0xb037f9['oldValue'])return _0x50f083;let _0x2509d6=_0x5ca76a['head'];for(;_0x2509d6;){if(_0x2509d6['data']&&'listType'==_0x2509d6['data']['key']&&_0x2509d6['data']['newValue'])return _0x50f083;_0x2509d6=_0x2509d6['next'];}return{'type':'format','content':''+Tt(_0x1e5f59,'*Remove\x20format:*\x20%0',Tt(_0x1e5f59,this['_getTranslationKeyForListStyle'](_0xb037f9['oldValue'])))};}if('default'!=_0xb037f9['newValue'])return{'type':'format','content':''+Tt(_0x1e5f59,'*Set\x20format:*\x20%0',Tt(_0x1e5f59,this['_getTranslationKeyForListStyle'](_0xb037f9['newValue'])))};let _0xd8b6f7=_0x5ca76a['head'];for(;_0xd8b6f7;){if(_0xd8b6f7['data']&&'listType'==_0xd8b6f7['data']['key']&&_0xd8b6f7['data']['newValue']&&_0xd8b6f7['data']['oldValue'])return _0x50f083;_0xd8b6f7=_0xd8b6f7['next'];}return{'type':'format','content':Tt(_0x1e5f59,'*Set\x20format:*\x20%0',Tt(_0x1e5f59,'ELEMENT_'+_0x5ca76a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x210c5d=this['editor'],_0x10db88=_0x210c5d['locale'];_0x210c5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58dbf1=>{if('formatBlock'!=_0x58dbf1['type'])return;const {data:_0x56a6a8}=_0x58dbf1;if(!_0x56a6a8)return;let _0x4645ff,_0x64810;switch(_0x56a6a8['commandName']){case'listStyle':_0x4645ff='*Change\x20to:*\x20%0',_0x64810={'type':'format','content':Tt(_0x10db88,_0x4645ff,Tt(_0x10db88,this['_getTranslationKeyForListStyle'](_0x56a6a8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4645ff=_0x56a6a8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x64810={'type':'format','content':Tt(_0x10db88,_0x4645ff)};break;case'listStart':_0x4645ff='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x64810={'type':'format','content':Tt(_0x10db88,_0x4645ff,_0x56a6a8['commandParams'][0x0]['startIndex'])};}return _0x64810;});}['_getTranslationKeyForListStyle'](_0x391741){return'ELEMENT_'+function(_0x130851){if(Lt['includes'](_0x130851))return'bulleted';if(It['includes'](_0x130851))return'numbered';return null;}(_0x391741)['toUpperCase']()+'_LIST_'+_0x391741['toUpperCase']()['replace'](/-/g,'_');}}const Lt=['disc','circle','square'],It=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class TrackChangesEmoji extends _0x3ea3b4{['afterInit'](){const _0x310cd9=this['editor'];_0x310cd9['commands']['get']('emoji')&&_0x310cd9['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends _0x3ea3b4{static get['requires'](){return[lt];}['init'](){const _0x18cbb1=this['editor'],_0x1a5a6b=_0x18cbb1['plugins']['get']('TrackChangesEditing'),_0x431458=_0x18cbb1['commands']['get']('enter');_0x1a5a6b['enableCommand']('enter',()=>{_0x18cbb1['model']['change'](_0x229f32=>{const _0x3ae35c=_0x18cbb1['model']['document']['selection'],_0x543def=_0x3ae35c['getFirstPosition'](),_0x38cad0=_0x418bbc['fromRange'](_0x3ae35c['getFirstRange']());if(_0x431458['enterBlock'](_0x229f32)){const _0x53597b=_0x18cbb1['model']['createPositionAt'](_0x543def['parent']['nextSibling'],0x0),_0x13acb6=_0x229f32['createRange'](_0x543def,_0x53597b);_0x1a5a6b['markInsertion'](_0x13acb6);}else _0x229f32['setSelection'](_0x229f32['createRange'](_0x38cad0['end']));_0x38cad0['detach'](),_0x431458['fire']('afterExecute',{'writer':_0x229f32});});});}}class TrackChangesFindAndReplace extends _0x3ea3b4{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2b0eef=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b0eef['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2b0eef['enableCommand']('findNext'),_0x2b0eef['enableCommand']('findPrevious'),_0x2b0eef['enableCommand']('replace'),_0x2b0eef['enableCommand']('replaceAll');}['handleFindCommand'](_0x1ff3eb,_0x30b39f,_0x54df55={}){const _0x28c4ea=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1ff3eb(_0x15f1d0=>{let _0x28bcf2=('string'==typeof _0x30b39f?_0x28c4ea['findByTextCallback'](_0x30b39f,_0x54df55):_0x30b39f)(_0x15f1d0);Array['isArray'](_0x28bcf2)&&(_0x28bcf2={'results':_0x28bcf2,'searchText':'string'==typeof _0x30b39f?_0x30b39f:''});const _0x578732=_0x28bcf2['results']['filter'](_0xf7f557=>!0x1===this['_isInDeletionRange'](_0xf7f557,_0x15f1d0['item']));return{..._0x28bcf2,'results':_0x578732};},_0x54df55);}['_isInDeletionRange'](_0x107851,_0x2043a3){const _0x296537=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2043a3,_0x107851['start']),this['editor']['model']['createPositionAt'](_0x2043a3,_0x107851['end']));for(const _0x241746 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x296537['getIntersection'](_0x241746['getRange']()))return!0x0;return!0x1;}}const At=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class TrackChangesFont extends _0x3ea3b4{['afterInit'](){const _0x40f94d=this['editor']['locale'],_0x49ed3a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x313b32,commandName:_0x252dda}of At)this['editor']['plugins']['has'](_0x313b32)&&_0x49ed3a['enableDefaultAttributesIntegration'](_0x252dda);_0x49ed3a['descriptionFactory']['registerAttributeLabel']('fontSize',Tt(_0x40f94d,'FORMAT_FONT_SIZE')),_0x49ed3a['descriptionFactory']['registerAttributeLabel']('fontFamily',Tt(_0x40f94d,'FORMAT_FONT_FAMILY')),_0x49ed3a['descriptionFactory']['registerAttributeLabel']('fontColor',Tt(_0x40f94d,'FORMAT_FONT_COLOR')),_0x49ed3a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Tt(_0x40f94d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a35c8=this['editor'],_0x553073=_0x5a35c8['locale'];_0x5a35c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x379e95=>{const _0x5db470=_0x553073['t'];if('formatInline'!=_0x379e95['type'])return;const {data:_0x27b00a}=_0x379e95;if(null!=_0x27b00a){if('fontSize'==_0x27b00a['commandName']){const _0x27338f=_0x27b00a['commandParams'][0x0]['value'];if(_0x27338f){const _0x4ab06d=_0x5db470(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2d9229=>_0x2d9229['model']==_0x27338f)['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x553073,'*Set\x20font\x20size:*\x20%0',_0x4ab06d)};}return{'type':'format','content':Tt(_0x553073,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x27b00a['commandName']){const _0x19ed7a=_0x27b00a['commandParams'][0x0]['value'];return _0x19ed7a?{'type':'format','content':Tt(_0x553073,'*Set\x20font\x20family:*\x20%0',_0x19ed7a)}:{'type':'format','content':Tt(_0x553073,'*Reset\x20font\x20family*')};}if('fontColor'==_0x27b00a['commandName']){const _0x15732b=_0x27b00a['commandParams'][0x0]['value'];if(_0x15732b){const _0x5a713a=_0x40e1c6(this['editor']['config']['get']('fontColor.colors'))['find'](_0x92001a=>_0x92001a['model']==_0x15732b);let _0x1afc26=_0x15732b,_0x399a43='';return _0x5a713a&&(_0x1afc26=_0x5a713a['label'],_0x399a43=_0x5db470(_0x1afc26)['toLowerCase']()),{'type':'format','content':Tt(_0x553073,'*Set\x20font\x20color:*\x20%0',_0x399a43)['trim'](),'color':{'value':_0x15732b,'title':_0x399a43||_0x1afc26}};}return{'type':'format','content':Tt(_0x553073,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x27b00a['commandName']){const _0x534daa=_0x27b00a['commandParams'][0x0]['value'];if(_0x534daa){const _0x45d51b=_0x40e1c6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4154e8=>_0x4154e8['model']==_0x534daa);let _0x29796a=_0x534daa,_0x3a8d9b='';return _0x45d51b&&(_0x29796a=_0x45d51b['label'],_0x3a8d9b=_0x5db470(_0x29796a)['toLowerCase']()),{'type':'format','content':Tt(_0x553073,'*Set\x20font\x20background\x20color:*\x20%0',_0x3a8d9b)['trim'](),'color':{'value':_0x534daa,'title':_0x3a8d9b||_0x29796a}};}return{'type':'format','content':Tt(_0x553073,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends _0x3ea3b4{['afterInit'](){const {plugins:_0x43da07}=this['editor'];_0x43da07['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x43da07['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x49253e,plugins:_0x1276d6,commands:_0x35707b}=this['editor'],_0x1e065b=_0x1276d6['get']('TrackChangesEditing');_0x35707b['get']('footnotesStyle')&&_0x1e065b['enableDefaultAttributesIntegration']('footnotesStyle'),_0x35707b['get']('footnotesStart')&&_0x1e065b['enableDefaultAttributesIntegration']('footnotesStart'),_0x1e065b['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Tt(_0x49253e,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x1e065b['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Tt(_0x49253e,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x23db16=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5ba93f,commands:_0x15d765}=this['editor'];_0x15d765['get']('insertFootnote')&&_0x23db16['enableCommand']('insertFootnote'),_0x23db16['descriptionFactory']['registerElementLabel']('footnoteRef',_0x43c0f5=>Tt(_0x5ba93f,'ELEMENT_FOOTNOTE_REF',_0x43c0f5)),_0x23db16['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x19958e=>Tt(_0x5ba93f,'ELEMENT_FOOTNOTE_DEFINITION',_0x19958e)),_0x23db16['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x32bf4c=>Tt(_0x5ba93f,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x32bf4c));}}class TrackChangesFormatPainter extends _0x3ea3b4{['afterInit'](){const _0x342865=this['editor'],_0x5fee9c=_0x342865['plugins']['get']('TrackChangesEditing'),_0x2c6dad=_0x342865['commands']['get']('copyFormat'),_0x28d89a=_0x342865['commands']['get']('pasteFormat');_0x2c6dad&&_0x28d89a&&(_0x5fee9c['enableDefaultAttributesIntegration']('pasteFormat'),_0x5fee9c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x49bec7=this['editor'],_0x3601cd=_0x49bec7['locale'];_0x49bec7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c4337=>{if('formatBlock'!=_0x3c4337['type']&&'formatInline'!=_0x3c4337['type'])return;const {data:_0xd5ad99}=_0x3c4337;if(_0xd5ad99&&'pasteFormat'===_0xd5ad99['commandName']){const _0x4cea3f=[],_0x16b19b=_0xd5ad99['commandParams'][0x0];for(const [_0x187646,_0x33648b]of Object['entries'](_0x16b19b))_0x4cea3f['push'](bt(_0x49bec7,_0x187646,_0x33648b));return _0x4cea3f['length']?{'type':'format','content':Tt(_0x3601cd,'*Set\x20format\x20to:*\x20%0',_0x4cea3f['join'](',\x20'))}:{'type':'format','content':Tt(_0x3601cd,'*Remove\x20all\x20formatting*')};}});}}function bt(_0x440c76,_0x44ddc3,_0x42d373){const _0xceeb81=_0x440c76['locale']['t'],_0x18d61e=_0x44ddc3['split'](/(?=[A-Z])/)['join']('\x20'),_0x5099a0=_0xceeb81(_0x18d61e['charAt'](0x0)['toUpperCase']()+_0x18d61e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x42d373)return _0x5099a0;if('fontColor'===_0x44ddc3||'fontBackgroundColor'===_0x44ddc3){const _0x526049=_0x40e1c6(_0x440c76['config']['get']('fontColor.colors'))['find'](_0x349825=>_0x349825['model']==_0x42d373);return _0x5099a0+'\x20('+(_0x526049?_0xceeb81(_0x526049['label'])['toLowerCase']():_0x42d373)+')';}if('fontSize'===_0x44ddc3&&isNaN(parseFloat(_0x42d373))){const _0x531cb0=_0x440c76['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x440c76['config']['get']('fontSize.options'))['find'](_0x5c8f82=>_0x5c8f82['model']==_0x42d373);return _0x5099a0+'\x20('+(_0x531cb0?_0xceeb81(_0x531cb0['title'])['toLowerCase']():_0x42d373)+')';}return _0x5099a0+'\x20('+_0x42d373+')';}class TrackChangesGeneralHtmlSupport extends _0x3ea3b4{['afterInit'](){const _0x2abf84=this['editor'];if(!_0x2abf84['plugins']['has']('GeneralHtmlSupport')||!_0x2abf84['plugins']['has']('DataSchema'))return;const _0x3255fc=_0x2abf84['plugins']['get']('TrackChangesEditing'),_0x286d07=_0x2abf84['plugins']['get']('GeneralHtmlSupport'),_0x19f391=_0x2abf84['plugins']['get']('DataSchema'),_0x3a609b=_0x2abf84['locale'],_0x428e4e=new Set(['htmlContent']);for(const _0x55f5bd of _0x19f391['getDefinitionsForView'](/.*/,!0x1)){const _0x41ab23=_0x55f5bd['view'];_0x428e4e['add'](_0x286d07['getGhsAttributeNameForElement'](_0x41ab23)),_0x55f5bd['model']['startsWith']('html')&&_0x3255fc['descriptionFactory']['registerElementLabel'](_0x55f5bd['model'],_0x2ffc8c=>Tt(_0x3a609b,'ELEMENT_HTML_TAG',[_0x2ffc8c,_0x41ab23]));}_0x3255fc['descriptionFactory']['registerAttributeLabel']('htmlContent',Tt(_0x3a609b,'FORMAT_RAW_HTML_CONTENT')),_0x3255fc['descriptionFactory']['registerDescriptionCallback'](_0x42ef88=>{if('attribute'!==_0x42ef88['type'])return;const _0x449c21=_0x42ef88['data'];if(!_0x449c21||!_0x428e4e['has'](_0x449c21['key']))return;if('htmlContent'===_0x449c21['key'])return{'type':'format','content':Tt(_0x3a609b,'*Change\x20%0\x20content*',Tt(_0x3a609b,'ELEMENT_RAW_HTML'))};const {setItems:_0x279614,removeItems:_0x3caf08}=function(_0x3b4846,_0x26147b,_0x3a4ea5){const _0xc725d2=[],_0x408f98=[],_0x5d9d66=_0x3b4846['styles']??{},_0x2babec=_0x26147b['styles']??{};for(const _0x54a181 of new Set([...Object['keys'](_0x5d9d66),...Object['keys'](_0x2babec)]))_0x5d9d66[_0x54a181]!==_0x2babec[_0x54a181]&&(void 0x0===_0x2babec[_0x54a181]?_0x408f98['push'](_0x54a181):_0xc725d2['push'](_0x54a181+'\x20('+_0x2babec[_0x54a181]+')'));const _0x2e5908=Tt(_0x3a4ea5,'FORMAT_HTML_CLASS'),_0x5a8891=new Set(_0x3b4846['classes']??[]),_0x24db00=new Set(_0x26147b['classes']??[]),_0x5e1925=[..._0x24db00]['some'](_0x28026a=>!_0x5a8891['has'](_0x28026a)),_0x44d862=[..._0x5a8891]['some'](_0x14865f=>!_0x24db00['has'](_0x14865f));_0x5e1925&&_0xc725d2['push'](_0x2e5908),_0x44d862&&_0x408f98['push'](_0x2e5908);const _0x9461a6=Tt(_0x3a4ea5,'FORMAT_HTML_ATTRIBUTE'),_0x2d7792=_0x3b4846['attributes']??{},_0x3ae8ff=_0x26147b['attributes']??{};let _0xb7bf02=!0x1,_0x51fc7e=!0x1;for(const _0x5f4fed of new Set([...Object['keys'](_0x2d7792),...Object['keys'](_0x3ae8ff)]))_0x2d7792[_0x5f4fed]!==_0x3ae8ff[_0x5f4fed]&&(void 0x0===_0x3ae8ff[_0x5f4fed]?_0x51fc7e=!0x0:_0xb7bf02=!0x0);return _0xb7bf02&&_0xc725d2['push'](_0x9461a6),_0x51fc7e&&_0x408f98['push'](_0x9461a6),{'setItems':_0xc725d2,'removeItems':_0x408f98};}(_0x449c21['oldValue']??{},_0x449c21['newValue']??{},_0x3a609b);if(!_0x279614['length']&&!_0x3caf08['length'])return;const _0x5c797f=[];return _0x279614['length']&&_0x5c797f['push'](Tt(_0x3a609b,'*Set\x20format:*\x20%0',_0x279614['join'](',\x20'))),_0x3caf08['length']&&_0x5c797f['push'](Tt(_0x3a609b,'*Remove\x20format:*\x20%0',_0x3caf08['join'](',\x20'))),{'type':'format','content':_0x5c797f['join']('\x0a')};});}}class TrackChangesHeading extends _0x3ea3b4{['_headingOptions'];['afterInit'](){const _0x4ff839=this['editor'];if(!_0x4ff839['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4ff839['config']['get']('heading.options');const _0xe647=_0x4ff839['locale'],_0x5b4688=_0x4ff839['plugins']['get']('TrackChangesEditing');_0x5b4688['enableDefaultAttributesIntegration']('heading');for(const _0x19a8c7 of this['_headingOptions'])'paragraph'!=_0x19a8c7['model']&&_0x5b4688['descriptionFactory']['registerElementLabel'](_0x19a8c7['model'],_0xc06a07=>{const _0x32f7ed=this['_getHeadingLevel'](_0x19a8c7['model']);return null!==_0x32f7ed?_0x84e012(_0xc06a07,_0x32f7ed):_0x4dd71b(_0xc06a07,_0x19a8c7['title']);});function _0x84e012(_0x1cc4c5,_0x49223e){return Tt(_0xe647,'ELEMENT_HEADING',[_0x1cc4c5,_0x49223e]);}function _0x4dd71b(_0x4f625f,_0x10e996){return Tt(_0xe647,'ELEMENT_HEADING_CUSTOM',[_0x4f625f,_0x10e996]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e308b=this['editor'],_0x18b6aa=_0x2e308b['locale'];function _0x3b8a66(_0x10da99,_0x2eaca2){return Tt(_0x18b6aa,'ELEMENT_HEADING_CUSTOM',[_0x10da99,_0x2eaca2]);}_0x2e308b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x197d5f=>{if('formatBlock'!=_0x197d5f['type'])return;const {data:_0x278433}=_0x197d5f;if(_0x278433&&'heading'==_0x278433['commandName']){const _0xe644c0=_0x278433['commandParams'][0x0]['value'],_0x28fdc4=this['_getHeadingLevel'](_0xe644c0);if(null!==_0x28fdc4)return{'type':'format','content':Tt(_0x18b6aa,'*Change\x20to:*\x20%0',(_0x10f501=0x1,_0x6193bf=_0x28fdc4,Tt(_0x18b6aa,'ELEMENT_HEADING',[_0x10f501,_0x6193bf])))};const _0x9ed310=this['_headingOptions']['find'](_0x4318d8=>_0x4318d8['model']===_0xe644c0)['title'];return{'type':'format','content':Tt(_0x18b6aa,'*Change\x20to:*\x20%0',_0x3b8a66(0x1,_0x9ed310))};}var _0x10f501,_0x6193bf;});}['_getHeadingLevel'](_0x51899b){const _0x1234e4=_0x51899b['match'](/^heading(\d+)/);if(_0x1234e4)return _0x1234e4[0x1];const _0xcd4be9=this['_headingOptions']?.['find'](_0x120d92=>_0x120d92['model']==_0x51899b);if(_0xcd4be9&&_0xcd4be9['view']){const _0x409d92=_0xcd4be9['view'],_0x2cb929=(_0x409d92['name']??_0x409d92)['match'](/^h(\d+)/);if(_0x2cb929)return _0x2cb929[0x1];}return null;}}class TrackChangesHighlight extends _0x3ea3b4{['afterInit'](){const _0x1cf233=this['editor'];if(!_0x1cf233['plugins']['has']('HighlightEditing'))return;const _0x269619=_0x1cf233['plugins']['get']('TrackChangesEditing'),_0x5a52de=_0x1cf233['locale'];_0x269619['enableDefaultAttributesIntegration']('highlight'),_0x269619['descriptionFactory']['registerAttributeLabel']('highlight',Tt(_0x5a52de,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40dacd=this['editor'],_0x985415=_0x40dacd['locale'];_0x40dacd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf9e8c2=>{if('formatInline'!=_0xf9e8c2['type'])return;const {data:_0x43a88a}=_0xf9e8c2;if(_0x43a88a&&'highlight'==_0x43a88a['commandName']){const _0x497b40=_0x985415['t'],_0x4a6144=_0x43a88a['commandParams'][0x0]['value'];if(_0x4a6144){const _0x3cc47f=_0x40dacd['config']['get']('highlight.options')['find'](_0x4adfe5=>_0x4adfe5['model']==_0x4a6144),_0x2c1959=_0x497b40(_0x3cc47f['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x985415,'*Set\x20highlight:*\x20%0',_0x2c1959),'color':{'value':_0x3cc47f['color'],'title':_0x3cc47f['title']}};}return{'type':'format','content':Tt(_0x985415,'*Remove\x20highlight*',Tt(_0x985415,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends _0x3ea3b4{['afterInit'](){const _0xbecad2=this['editor'];if(!_0xbecad2['plugins']['has']('HorizontalLineEditing'))return;_0xbecad2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x177ffe=_0xbecad2['plugins']['get']('TrackChangesEditing'),_0x16dce5=_0xbecad2['locale'];_0x177ffe['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1884a7=>Tt(_0x16dce5,'ELEMENT_HORIZONTAL_LINE',_0x1884a7));}}class TrackChangesHtmlEmbed extends _0x3ea3b4{['afterInit'](){const _0x21a585=this['editor'];if(!_0x21a585['plugins']['has']('HtmlEmbed'))return;const _0x4da987=_0x21a585['plugins']['get']('TrackChangesEditing'),_0x2632cb=_0x21a585['locale'];_0x4da987['descriptionFactory']['registerElementLabel']('rawHtml',_0x3de202=>Tt(_0x2632cb,'ELEMENT_HTML_EMBED',_0x3de202)),_0x4da987['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4da987['descriptionFactory']['registerDescriptionCallback'](_0x3c0d84=>{if('attribute'!=_0x3c0d84['type'])return;const {data:_0x372705}=_0x3c0d84;if(_0x372705&&'value'==_0x372705['key']&&_0x3c0d84['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5899b0=Tt(_0x2632cb,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x2632cb,'*Change\x20%0\x20content*',_0x5899b0)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2340e6=this['editor'],_0x3f8f6a=_0x2340e6['locale'];_0x2340e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bc569=>{if('formatBlock'!=_0x2bc569['type'])return;const {data:_0x5dd7fb}=_0x2bc569;if(_0x5dd7fb&&'htmlEmbed'==_0x5dd7fb['commandName']){const _0x59dcc9=Tt(_0x3f8f6a,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x3f8f6a,'*Change\x20%0\x20content*',_0x59dcc9)};}});}}class TrackChangesImage extends _0x3ea3b4{['afterInit'](){const _0xea486b=this['editor'];if(!_0xea486b['plugins']['has']('ImageEditing'))return;const _0x45ebc1=_0xea486b['plugins']['get']('TrackChangesEditing'),_0x46da63=_0xea486b['plugins']['get']('ImageUtils'),_0x78116e=_0xea486b['locale'];_0x45ebc1['enableCommand']('insertImage'),_0x45ebc1['descriptionFactory']['registerElementLabel']('imageBlock',_0x542ab3=>Tt(_0x78116e,'ELEMENT_IMAGE',_0x542ab3)),_0x45ebc1['descriptionFactory']['registerElementLabel']('imageInline',_0x50a14b=>Tt(_0x78116e,'ELEMENT_INLINE_IMAGE',_0x50a14b)),_0x45ebc1['descriptionFactory']['registerElementLabel']('caption',()=>Tt(_0x78116e,'ELEMENT_CAPTION')),_0xea486b['plugins']['has']('ImageUploadEditing')&&_0x45ebc1['enableCommand']('uploadImage'),_0xea486b['plugins']['has']('ImageBlockEditing')&&_0xea486b['plugins']['has']('ImageInlineEditing')&&(_0x45ebc1['enableCommand']('imageTypeInline',(_0x4aca81,_0xeb8588)=>{const _0x3db795=_0x46da63['getClosestSelectedImageElement'](_0xea486b['model']['document']['selection']);_0xea486b['model']['change'](()=>{_0x45ebc1['markBlockFormat'](_0x3db795,{'commandName':'imageTypeInline','commandParams':[_0xeb8588]},[],'convertBlockImageToInline');});}),_0x45ebc1['enableCommand']('imageTypeBlock',(_0xed6744,_0x5aedf1)=>{_0xea486b['model']['change'](_0x21a699=>{let _0x388fea=_0x46da63['getClosestSelectedImageElement'](_0xea486b['model']['document']['selection']),_0x175052=_0x21a699['createRangeOn'](_0x388fea);const _0x3bbf70=tt['fromPosition'](_0x175052['start'],'toPrevious'),_0x5215a0=tt['fromPosition'](_0x175052['end'],'toNext');_0x45ebc1['forceDefaultExecution'](()=>_0xed6744(_0x5aedf1)),_0x388fea=_0x46da63['getClosestSelectedImageElement'](_0xea486b['model']['document']['selection']),_0x175052=_0x21a699['createRangeOn'](_0x388fea);const _0x5632f8=_0x21a699['createRange'](_0x3bbf70,_0x5215a0);_0x3bbf70['detach'](),_0x5215a0['detach'](),_0x45ebc1['markBlockFormat'](_0x388fea,{'commandName':'imageTypeInline','commandParams':[_0x5aedf1]},[],'convertInlineImageToBlock'),_0x5632f8['start']['isBefore'](_0x175052['start'])&&_0x45ebc1['markInsertion'](_0x21a699['createRange'](_0x5632f8['start'],_0x175052['start']),'convertInlineImageToBlock'),_0x175052['end']['isBefore'](_0x5632f8['end'])&&_0x45ebc1['markInsertion'](_0x21a699['createRange'](_0x175052['end'],_0x5632f8['end']),'convertInlineImageToBlock');});}),_0x45ebc1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x45ebc1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x45ebc1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x45ebc1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x45ebc1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x45ebc1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x8b548f])=>{const _0x162ab5=_0x45ebc1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xd145aa=_0x8b548f['start'],_0x56d363=_0x8b548f['end'];const _0xbbedd1=_0xea486b['model']['schema']['getNearestSelectionRange'](_0xd145aa,'backward'),_0x7b5621=_0xea486b['model']['schema']['getNearestSelectionRange'](_0x56d363,'forward');_0xbbedd1['isCollapsed']&&(_0xd145aa=_0xbbedd1['start']),_0x7b5621['isCollapsed']&&(_0x56d363=_0x7b5621['end']),_0x162ab5([_0xea486b['model']['createRange'](_0xd145aa,_0x56d363)]);}),_0x45ebc1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3536af),_0x45ebc1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3536af)),_0xea486b['plugins']['has']('ImageCaptionEditing')&&(_0x45ebc1['enableCommand']('toggleImageCaption',(_0x183739,_0x15d086)=>{const _0x335117=_0xea486b['plugins']['get']('ImageCaptionUtils');let _0xf58b7d=_0x46da63['getClosestSelectedImageElement'](_0xea486b['model']['document']['selection']),_0x1730aa=_0x335117['getCaptionFromImageModelElement'](_0xf58b7d);_0xea486b['model']['change'](()=>{if(_0x1730aa)return void _0x45ebc1['markDeletion'](_0xea486b['model']['createRangeOn'](_0x1730aa));const _0x27c61c=_0x46da63['isBlockImage'](_0xf58b7d);_0x183739(_0x15d086),_0xf58b7d=_0x46da63['getClosestSelectedImageElement'](_0xea486b['model']['document']['selection']),_0x1730aa=_0x335117['getCaptionFromImageModelElement'](_0xf58b7d),_0x45ebc1['markInsertion'](_0xea486b['model']['createRangeOn'](_0x1730aa),_0x27c61c?null:'imageCaption');});}),_0x45ebc1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3536af));const _0x129e9c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5ad831(_0x37a11b,_0x553c61){const _0x239d1a=_0x129e9c['findIndex'](({type:_0x155b90,subType:_0x3a09f5})=>_0x37a11b['type']==_0x155b90&&_0x37a11b['subType']==_0x3a09f5),_0x32a0d9=_0x129e9c['findIndex'](({type:_0x4ec6c4,subType:_0x911f75})=>_0x553c61['type']==_0x4ec6c4&&_0x553c61['subType']==_0x911f75);if(_0x239d1a<0x0||_0x32a0d9<0x0)return!0x1;const _0x2142ba=_0x37a11b['getFirstRange'](),_0x2c2664=_0x553c61['getFirstRange']();if((0x0==_0x239d1a||0x1==_0x239d1a)&&0x2==_0x32a0d9&&_0x2142ba['isIntersecting'](_0x2c2664))return!0x0;if(0x2==_0x239d1a&&0x3==_0x32a0d9){const _0x2c8c3e=_0x45ebc1['_findSuggestions'](_0x2142ba,'insertion')['filter'](({suggestion:_0x57c586,meta:_0x55c383})=>_0x55c383['isOwn']&&'convertInlineImageToBlock'==_0x57c586['subType']);if(_0x2c8c3e['length']>0x1&&_0x2c2664['end']['isEqual'](_0x2142ba['start']))return!0x0;if(0x1==_0x2c8c3e['length']&&(_0x2142ba['start']['isEqual'](_0x2c2664['end'])||_0x2142ba['end']['isEqual'](_0x2c2664['start'])))return!0x0;}if(0x3==_0x239d1a&&0x3==_0x32a0d9&&_0x2142ba['start']['isBefore'](_0x2c2664['start'])){const _0x396de3=_0x2142ba['end']['nodeAfter'],_0x248773=_0x2c2664['start']['nodeBefore'];return _0x46da63['isBlockImage'](_0x396de3)&&_0x396de3===_0x248773;}return!0x1;}function _0x3536af(_0x8cc93a,_0x3959bd){return _0x5ad831(_0x8cc93a,_0x3959bd)?[_0x8cc93a,_0x3959bd]:_0x5ad831(_0x3959bd,_0x8cc93a)?[_0x3959bd,_0x8cc93a]:null;}_0xea486b['plugins']['has']('ImageResize')&&(_0x45ebc1['enableDefaultAttributesIntegration']('resizeImage'),_0x45ebc1['descriptionFactory']['registerAttributeLabel']('resizedWidth',Tt(_0x78116e,'FORMAT_IMAGE_SIZE'))),_0xea486b['plugins']['has']('ImageTextAlternativeEditing')&&_0x45ebc1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xea486b['plugins']['has']('PictureEditing')&&_0x45ebc1['descriptionFactory']['registerDescriptionCallback'](_0x304f55=>{if('attribute'!=_0x304f55['type'])return;const {data:_0x5087dd}=_0x304f55;return _0x5087dd&&'sources'==_0x5087dd['key']?{'type':'format','content':''}:void 0x0;}),_0xea486b['plugins']['has']('ImageSizeAttributes')&&_0x45ebc1['descriptionFactory']['registerDescriptionCallback'](_0x50d4b3=>{if('attribute'!=_0x50d4b3['type'])return;const {data:_0x4c65ac}=_0x50d4b3;return!_0x4c65ac||'width'!=_0x4c65ac['key']&&'height'!=_0x4c65ac['key']?void 0x0:{'type':'format','content':''};}),_0x45ebc1['descriptionFactory']['registerDescriptionCallback'](_0x14dd30=>{if(!!_0x129e9c['find'](({type:_0x2957af,subType:_0x26ec9f})=>_0x14dd30['type']==_0x2957af&&_0x14dd30['subType']==_0x26ec9f))return _0x14dd30['previous']?{}:void 0x0;}),_0x45ebc1['descriptionFactory']['registerDescriptionCallback'](_0x32f5be=>{if('insertion'==_0x32f5be['type']||'deletion'==_0x32f5be['type']){const _0x47804a=_0x32f5be['getContainedElement']();if(_0x47804a&&_0x47804a['is']('element','caption'))return{'type':'insertion'==_0x32f5be['type']?'addObject':'removeObject','element':_0x47804a,'quantity':0x1};}}),_0x45ebc1['descriptionFactory']['registerDescriptionCallback'](_0x33e39d=>'formatBlock'==_0x33e39d['type']&&'convertInlineImageToBlock'==_0x33e39d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x33e39d['type']&&'convertBlockImageToInline'==_0x33e39d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x45ebc1['descriptionFactory']['registerDescriptionCallback'](_0xf5cb27=>{if('attribute'!=_0xf5cb27['type'])return;const {data:_0x28bbbe}=_0xf5cb27;if(!_0x28bbbe||'alt'!=_0x28bbbe['key'])return;const _0x798717=_0x28bbbe['newValue'];return _0x798717?{'type':'format','content':Tt(_0x78116e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x798717+'\x22')}:{'type':'format','content':Tt(_0x78116e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f345d=this['editor'],_0x268935=_0x4f345d['locale'];_0x4f345d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c484e=>{if('formatBlock'!=_0x5c484e['type']&&'formatInline'!=_0x5c484e['type'])return;const {data:_0x2b513c}=_0x5c484e;if(_0x2b513c){if('imageTextAlternative'==_0x2b513c['commandName']){const _0x171d07=_0x2b513c['commandParams'][0x0]['newValue'];return _0x171d07?{'type':'format','content':Tt(_0x268935,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x171d07+'\x22')}:{'type':'format','content':Tt(_0x268935,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2b513c['commandName']){const _0x10f4b6=_0x2b513c['commandParams'][0x0]['width'];return _0x10f4b6?{'type':'format','content':Tt(_0x268935,'*Set\x20image\x20width:*\x20%0',_0x10f4b6)}:{'type':'format','content':Tt(_0x268935,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends _0x3ea3b4{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4c221a=this['editor']['locale'],_0x53b3f4=this['editor']['plugins']['get']('TrackChangesEditing');_0x53b3f4['enableDefaultAttributesIntegration']('replaceImageSource'),_0x53b3f4['descriptionFactory']['registerDescriptionCallback'](_0x106b27=>{if('attribute'!=_0x106b27['type'])return;const {data:_0x1eba1a}=_0x106b27;return _0x1eba1a&&'src'==_0x1eba1a['key']?_0x1eba1a['newValue']&&_0x1eba1a['oldValue']?{'type':'format','content':Tt(_0x4c221a,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2c9547=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c9547['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2c9547['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2c9547['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2c9547['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x580e60=this['editor'],_0x5cbd54=_0x580e60['locale'];_0x580e60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bf973=>{if('formatBlock'!=_0x4bf973['type']&&'formatInline'!=_0x4bf973['type'])return;const {data:_0x1a34ce}=_0x4bf973;if(!_0x1a34ce||'replaceImageSource'!=_0x1a34ce['commandName'])return;return{'type':'format','content':Tt(_0x5cbd54,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends _0x3ea3b4{['afterInit'](){const _0x164b65=this['editor'];if(!_0x164b65['plugins']['has']('ImageStyleEditing'))return;const _0xb4e036=_0x164b65['plugins']['get']('TrackChangesEditing'),_0x25bfdd=_0x164b65['plugins']['get']('ImageUtils'),_0x32660b={};_0xb4e036['enableCommand']('imageStyle',(_0x18f298,_0x48ed21)=>{const _0x2e6f25=_0x164b65['plugins']['get']('Users')['me'],_0x530063=_0x164b65['commands']['get']('imageStyle');let _0x1e39a1=_0x25bfdd['getClosestSelectedImageElement'](_0x164b65['model']['document']['selection']),_0xd736b2=_0x164b65['model']['createRangeOn'](_0x1e39a1),_0x3263f4=_0x530063['value'];if(_0x3263f4==_0x48ed21['value'])return;const _0x32f231={'commandName':'imageStyle','commandParams':[_0x48ed21],'formatGroupId':_0x4681a7()};_0x164b65['model']['change'](()=>{if(_0xb4e036['getSuggestions']()['filter'](_0x31d177=>_0x31d177['isInContent']&&_0x2e6f25==_0x31d177['author']&&('formatBlock'==_0x31d177['type']||'formatInline'==_0x31d177['type'])&&('imageStylePreApply'==_0x31d177['subType']||'imageStylePostApply'==_0x31d177['subType'])&&_0x31d177['getFirstRange']()['isEqual'](_0xd736b2))['forEach'](_0x4205ef=>_0xb4e036['discardSuggestion'](_0x4205ef['head'])),_0x1e39a1=_0x25bfdd['getClosestSelectedImageElement'](_0x164b65['model']['document']['selection']),_0xd736b2=_0x164b65['model']['createRangeOn'](_0x1e39a1),_0x530063['refresh'](),_0x164b65['commands']['get']('imageTypeInline')['refresh'](),_0x164b65['commands']['get']('imageTypeBlock')['refresh'](),_0x3263f4=_0x530063['value'],_0x3263f4!=_0x48ed21['value'])return _0x25bfdd['isInlineImage'](_0x1e39a1)&&_0x530063['shouldConvertImageType'](_0x48ed21['value'],_0x1e39a1)?(_0x18f298({..._0x48ed21,'setImageSizes':!0x1}),_0x1e39a1=_0x25bfdd['getClosestSelectedImageElement'](_0x164b65['model']['document']['selection']),void _0xb4e036['markBlockFormat'](_0x1e39a1,{..._0x32f231,'commandReversedParams':[{'value':_0x3263f4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x25bfdd['isBlockImage'](_0x1e39a1)?_0xb4e036['markBlockFormat'](_0x1e39a1,_0x32f231,[],'imageStylePostApply'):_0xb4e036['markInlineFormat'](_0xd736b2,_0x32f231,'imageStylePostApply'));});});for(const _0x3b8d19 of _0x164b65['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x32660b[_0x3b8d19['name']]=_0x3b8d19['title']['toLowerCase']();_0xb4e036['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xb4e036['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xb4e036['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xb4e036['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2bd511])=>{_0x25bfdd['setImageNaturalSizeAttributes'](_0x2bd511['getContainedElement']());}),_0xb4e036['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x442c87,_0x1a93d1)=>{_0xb4e036['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x442c87,{'commandName':_0x1a93d1['commandName'],'commandParams':_0x1a93d1['commandReversedParams']});}),_0xb4e036['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x457b1c,_0x115211){if(_0x1e04cd(_0x457b1c,_0x115211))return[_0x457b1c,_0x115211];if(_0x1e04cd(_0x115211,_0x457b1c))return[_0x115211,_0x457b1c];return null;});const _0x4fa85b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1e04cd(_0x303330,_0x1f4ac6){const _0x576889=_0x4fa85b['findIndex'](({type:_0x4b89b2,subType:_0x121704})=>_0x303330['type']==_0x4b89b2&&_0x303330['subType']==_0x121704),_0x3b4c48=_0x4fa85b['findIndex'](({type:_0x38a9aa,subType:_0x41d837})=>_0x1f4ac6['type']==_0x38a9aa&&_0x1f4ac6['subType']==_0x41d837);if(_0x576889<0x0||_0x3b4c48<0x0)return!0x1;const _0x31af0a=_0x303330['getFirstRange'](),_0x21f1f8=_0x1f4ac6['getFirstRange']();if((0x0==_0x576889||0x1==_0x576889)&&0x2==_0x3b4c48&&_0x31af0a['isIntersecting'](_0x21f1f8))return!0x0;if(0x2==_0x576889&&0x3==_0x3b4c48){const _0x82dff2=_0xb4e036['_findSuggestions'](_0x31af0a,'insertion')['filter'](({suggestion:_0x2eeeea,meta:_0x220924})=>_0x220924['isOwn']&&'convertInlineImageToBlock'==_0x2eeeea['subType']);if(_0x82dff2['length']>0x1&&_0x21f1f8['end']['isEqual'](_0x31af0a['start']))return!0x0;if(0x1==_0x82dff2['length']&&(_0x31af0a['start']['isEqual'](_0x21f1f8['end'])||_0x31af0a['end']['isEqual'](_0x21f1f8['start'])))return!0x0;}if(0x3==_0x576889&&0x3==_0x3b4c48&&_0x31af0a['start']['isBefore'](_0x21f1f8['start'])){const _0x408289=_0x31af0a['end']['nodeAfter'],_0x2a0d97=_0x21f1f8['start']['nodeBefore'];return _0x25bfdd['isBlockImage'](_0x408289)&&_0x408289===_0x2a0d97;}return!0x1;}_0x164b65['model']['document']['registerPostFixer'](()=>{let _0x279f29=!0x1;const _0x102d1a=Array['from'](_0x164b65['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3de7a3,data:_0xf8cdc0}of _0x102d1a){const {group:_0x47f941,type:_0x3d0694,subType:_0x24db13,id:_0x3a1373}=_0x368712(_0x3de7a3);if('suggestion'==_0x47f941&&_0xb4e036['hasSuggestion'](_0x3a1373)){if('formatBlock'==_0x3d0694&&('imageStylePreApply'==_0x24db13||'imageStylePostApply'==_0x24db13)){const _0x43d7c5=_0xb4e036['getSuggestion'](_0x3a1373);if(_0xf8cdc0['newRange']){const _0x5815bf=_0x43d7c5['getFirstRange']()['getContainedElement']();if(_0x25bfdd['isBlockImage'](_0x5815bf))continue;_0xb4e036['discardSuggestion'](_0x43d7c5),_0x279f29=!0x0;}}if('insertion'==_0x3d0694&&'imageCaption'==_0x24db13&&!_0xf8cdc0['newRange']){const _0x4d0005=_0xb4e036['getSuggestion'](_0x3a1373);_0x4d0005['next']&&_0x4d0005['next']['isInContent']&&(_0xb4e036['discardSuggestion'](_0x4d0005['next']),_0x279f29=!0x0);}}}return _0x279f29;}),this['_registerLegacyDescription'](_0x32660b);}['_registerLegacyDescription'](_0x6029f0){const _0xe4e049=this['editor'],_0x5a050f=_0xe4e049['locale'];_0xe4e049['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x124db8=>{if('formatBlock'!=_0x124db8['type']&&'formatInline'!=_0x124db8['type'])return;const {data:_0xded955}=_0x124db8;if(!_0xded955||'imageStyle'!=_0xded955['commandName'])return;const _0x4f0c87=_0xded955['commandParams'][0x0]['value'];return _0x33403e('side'===_0x4f0c87?Tt(_0x5a050f,'FORMAT_SIDE_IMAGE'):_0x6029f0[_0x4f0c87]||_0x4f0c87);function _0x33403e(_0x5a6ce4){return{'type':'format','content':Tt(_0x5a050f,'*Format:*\x20%0',_0x5a6ce4)};}});}}class TrackChangesImportWord extends _0x3ea3b4{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x53a974){super(_0x53a974),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x324f7a=this['editor'],_0xb660f7=_0x324f7a['commands']['get']('importWord'),_0x2839e7=_0x324f7a['commands']['get']('trackChanges');_0xb660f7&&(_0xb660f7['on']('execute',(_0x2b6546,[,_0x42c956])=>{this['_trackChangesValueDuringImport']=_0x2839e7['value'],_0x42c956['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xb660f7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xb660f7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2839e7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x324f7a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4b9fab,_0x34f998){const {suggestions:_0x5ad33e}=_0x34f998,_0x230d31=this['editor']['commands']['get']('trackChanges'),_0x1c1f6c=_0x230d31['value'];this['_trackChangesValueDuringImport']!==_0x1c1f6c&&(_0x230d31['execute'](),this['_trackChangesExecuted']=!0x0),_0x5ad33e&&_0x5ad33e['forEach'](({id:_0x4f4c17,type:_0x383d75,author:_0x2f94cc,created_at:_0x38ad85})=>{const _0x42103f={'id':_0x4f4c17,'type':_0x383d75,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2f94cc,'createdAt':_0x38ad85?new Date(_0x38ad85):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x42103f);});}}class TrackChangesIndent extends _0x3ea3b4{['afterInit'](){const _0x1932b5=this['editor'],_0x3a457c=_0x1932b5['plugins']['get']('TrackChangesEditing');if(_0x1932b5['plugins']['has']('IndentEditing')&&(_0x3a457c['enableCommand']('indent'),_0x3a457c['enableCommand']('outdent')),_0x1932b5['plugins']['has']('IndentBlock')){for(const _0x21cb83 of['indentBlock','outdentBlock'])_0x3a457c['enableDefaultAttributesIntegration'](_0x21cb83);if(_0x1932b5['plugins']['has']('ListEditing')){for(const _0x28c385 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3a457c['enableDefaultAttributesIntegration'](_0x28c385);}}const _0xfb7ca8=_0x1932b5['locale'];_0x3a457c['descriptionFactory']['registerAttributeLabel']('blockIndent',Tt(_0xfb7ca8,'FORMAT_INDENT')),_0x3a457c['descriptionFactory']['registerAttributeLabel']('blockIndentList',Tt(_0xfb7ca8,'FORMAT_INDENT')),_0x3a457c['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Tt(_0xfb7ca8,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x267fd6=this['editor'],_0x4f40e7=_0x267fd6['locale'],_0x1994d8=_0x267fd6['plugins']['get']('TrackChangesEditing');_0x1994d8['descriptionFactory']['registerDescriptionCallback'](_0x336ec1=>{if('formatBlock'!=_0x336ec1['type'])return;const {data:_0x1b0b9c}=_0x336ec1;if(!_0x1b0b9c)return;if('indentBlock'!=_0x1b0b9c['commandName']&&'outdentBlock'!=_0x1b0b9c['commandName'])return;const _0x5129b9=_0x336ec1['getItems']()[0x0],_0x1d5776=_0x1994d8['descriptionFactory']['getItemLabel'](_0x5129b9);return'indentBlock'==_0x1b0b9c['commandName']?{'type':'format','content':Tt(_0x4f40e7,'*Indent:*\x20%0',_0x1d5776)}:'outdentBlock'==_0x1b0b9c['commandName']?{'type':'format','content':Tt(_0x4f40e7,'*Outdent:*\x20%0',_0x1d5776)}:void 0x0;});}}class TrackChangesInputCommand extends _0x3ea3b4{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class TrackChangesLink extends _0x3ea3b4{['afterInit'](){const _0x27f0a5=this['editor'];if(!_0x27f0a5['plugins']['has']('LinkEditing'))return;const _0x5c09cd=_0x27f0a5['plugins']['get']('TrackChangesEditing'),_0x3c7fe0=_0x27f0a5['commands']['get']('link');_0x5c09cd['enableDefaultAttributesIntegration']('link'),_0x5c09cd['enableDefaultAttributesIntegration']('unlink');for(const _0x7e13db of _0x3c7fe0['manualDecorators'])_0x5c09cd['descriptionFactory']['registerAttributeLabel'](_0x7e13db['id'],'link\x20('+_0x7e13db['label']['toLowerCase']()+')');_0x5c09cd['descriptionFactory']['registerDescriptionCallback'](_0x3d8798=>{if('attribute'!=_0x3d8798['type'])return;const {data:_0xa278fe}=_0x3d8798;if(!_0xa278fe||'linkHref'!=_0xa278fe['key'])return;const _0x9be10b=_0xa278fe['newValue'],_0x355c09=_0x27f0a5['locale'];return{'type':'format','content':null==_0x9be10b?Tt(_0x355c09,'*Remove\x20link*'):Tt(_0x355c09,'*Set\x20link:*\x20%0','\x22'+_0x9be10b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b5d5f=this['editor'],_0x585184=_0x5b5d5f['locale'];_0x5b5d5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dc86a=>{if('formatInline'!=_0x3dc86a['type'])return;const {data:_0x56422d}=_0x3dc86a;if(_0x56422d){if('link'==_0x56422d['commandName']){const _0x518d30=_0x56422d['commandParams'][0x0];return{'type':'format','content':Tt(_0x585184,'*Set\x20link:*\x20%0','\x22'+_0x518d30+'\x22')};}return'unlink'==_0x56422d['commandName']?{'type':'format','content':Tt(_0x585184,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends _0x3ea3b4{['afterInit'](){const _0x1a5f81=this['editor'],_0x27464d=_0x1a5f81['locale'];if(!_0x1a5f81['plugins']['has']('LegacyListEditing'))return;const _0x3447c5=_0x1a5f81['plugins']['get']('TrackChangesEditing'),_0x3588d9=_0x1a5f81['plugins']['has']('LegacyTodoListEditing');function _0xcd2cdd(_0x4c734b){return()=>{const _0x4134d3=_0x1a5f81['model']['document']['selection'],_0x1b9b30=_0x1a5f81['commands']['get'](_0x4c734b);if(_0x1b9b30['value'])return void _0x1a5f81['execute']('paragraph',{});const _0x1fdd87=_0x4c734b['slice'](0x0,-0x4),_0x2f05b2=function(_0x20130e,_0x3a499b,_0x125c28){let _0x1d5d5a=Array['from'](_0x20130e)['filter'](_0x5a30cc=>function(_0x40d09a,_0x4c6e37){return _0x4c6e37['checkChild'](_0x40d09a['parent'],'listItem')&&!_0x4c6e37['isObject'](_0x40d09a);}(_0x5a30cc,_0x125c28));_0x1d5d5a=_0x1d5d5a['filter'](_0x28f4cf=>!_0x28f4cf['is']('element','listItem')||_0x28f4cf['getAttribute']('listType')!=_0x3a499b);const _0x1effdb=new Set();for(const _0xad67c7 of _0x1d5d5a)_0xad67c7['is']('element','listItem')?_0x1effdb['add'](St(_0xad67c7)):_0x1effdb['add'](_0xad67c7);return Array['from'](_0x1effdb);}(_0x4134d3['getSelectedBlocks'](),_0x1fdd87,_0x1a5f81['model']['schema']);_0x1a5f81['model']['change'](()=>{for(const _0x28a90c of _0x2f05b2)_0x3447c5['markBlockFormat'](_0x28a90c,{'commandName':_0x4c734b,'commandParams':[{'forceValue':!_0x1b9b30['value']}],'formatGroupId':'blockName'},Rt(_0x28a90c));});};}function _0x154e16(_0x92dfcd){return()=>{const _0x5e47f1=function(_0x73d14b){let _0x11c40d=Array['from'](_0x73d14b);const _0x1e7e55=_0x11c40d['findIndex'](_0x2c21f8=>'listItem'!=_0x2c21f8['name']);return _0x1e7e55>-0x1&&(_0x11c40d=_0x11c40d['slice'](0x0,_0x1e7e55)),_0x11c40d;}(_0x1a5f81['model']['document']['selection']['getSelectedBlocks']()),_0x5acf06=_0x1a5f81['model']['createRange'](_0x1a5f81['model']['createPositionAt'](_0x5e47f1[0x0],'before'),_0x1a5f81['model']['createPositionAt'](_0x5e47f1[_0x5e47f1['length']-0x1],'end'));_0x1a5f81['model']['change'](()=>{_0x3447c5['markBlockFormat'](_0x5acf06,{'commandName':_0x92dfcd,'commandParams':[],'formatGroupId':'listIndent'},function(_0x27eb66){const _0x2a3b48=new Set();for(const _0x5078ec of _0x27eb66){let _0x1b376f=_0x5078ec['nextSibling'];for(;_0x1b376f&&_0x1b376f['getAttribute']('listIndent')>_0x5078ec['getAttribute']('listIndent');)_0x2a3b48['add'](_0x1b376f),_0x1b376f=_0x1b376f['nextSibling'];}return Array['from'](_0x2a3b48);}(_0x5e47f1));});};}_0x3447c5['enableCommand']('numberedList',_0xcd2cdd('numberedList')),_0x3447c5['enableCommand']('bulletedList',_0xcd2cdd('bulletedList')),_0x3588d9&&_0x3447c5['enableCommand']('todoList',_0xcd2cdd('todoList')),_0x3447c5['enableCommand']('indentList',_0x154e16('indentList')),_0x3447c5['enableCommand']('outdentList',_0x154e16('outdentList')),_0x3588d9&&_0x3447c5['enableCommand']('checkTodoList',()=>{const _0x2bd1d6=_0x1a5f81['commands']['get']('checkTodoList'),_0x5323ee=Array['from'](_0x2bd1d6['_selectedElements']);_0x5323ee['filter'](_0x2f865c=>_0x2f865c['getAttribute']('todoListChecked')!=_0x2bd1d6['value']),_0x1a5f81['model']['change'](()=>{for(const _0x1576ca of _0x5323ee)_0x3447c5['markBlockFormat'](_0x1576ca,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2bd1d6['value']}]});});}),_0x3447c5['descriptionFactory']['registerElementLabel']('listItem',_0x2641e6=>Tt(_0x27464d,'ELEMENT_LIST_ITEM',_0x2641e6)),_0x3447c5['descriptionFactory']['registerDescriptionCallback'](_0x315c6e=>{if('formatBlock'!=_0x315c6e['type']&&'formatInline'!=_0x315c6e['type'])return;const {data:_0x2f0527}=_0x315c6e;if(_0x2f0527){if('numberedList'==_0x2f0527['commandName']||'bulletedList'==_0x2f0527['commandName']||'todoList'==_0x2f0527['commandName'])switch(_0x2f0527['commandName']['replace']('List','')){case'bulleted':return _0x19ad39(Tt(_0x27464d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19ad39(Tt(_0x27464d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19ad39(Tt(_0x27464d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2f0527['commandName'])return{'type':'format','content':Tt(_0x27464d,'*Indent:*\x20%0',Tt(_0x27464d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2f0527['commandName'])return{'type':'format','content':Tt(_0x27464d,'*Outdent:*\x20%0',Tt(_0x27464d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2f0527['commandName'])return _0x2f0527['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x27464d,'*Check\x20item*')}:{'type':'format','content':Tt(_0x27464d,'*Uncheck\x20item*')};}function _0x19ad39(_0x3f7898){return{'type':'format','content':Tt(_0x27464d,'*Change\x20to:*\x20%0',_0x3f7898)};}});}}function St(_0x44409c){const _0x3a5de5=_0x44409c['getAttribute']('listIndent');if(0x0==_0x3a5de5)return _0x44409c;let _0x84f6c2=_0x44409c;for(;_0x44409c['previousSibling']&&_0x44409c['previousSibling']['is']('element','listItem');){const _0x25067f=_0x44409c['previousSibling']['getAttribute']('listIndent');if(_0x25067f==_0x3a5de5)_0x84f6c2=_0x44409c['previousSibling'];else{if(_0x25067f<_0x3a5de5)break;}_0x44409c=_0x44409c['previousSibling'];}return _0x84f6c2;}function Rt(_0x441b2e){const _0x1a70ef=[];if(_0x441b2e['is']('element','listItem')&&_0x441b2e['getAttribute']('listIndent')>0x0){let _0x580f9c=_0x441b2e['nextSibling'];for(;_0x580f9c&&'listItem'==_0x580f9c['name']&&_0x580f9c['getAttribute']('listIndent')==_0x441b2e['getAttribute']('listIndent');)_0x1a70ef['push'](_0x580f9c),_0x580f9c=_0x580f9c['nextSibling'];}return _0x1a70ef;}class TrackChangesLegacyListProperties extends _0x3ea3b4{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x24a7b7=this['editor']['config']['get']('list.properties'),_0x33da12=this['editor']['plugins']['get']('TrackChangesEditing');_0x24a7b7['styles']&&_0x33da12['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x24a7b7['reversed']&&_0x33da12['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x24a7b7['startIndex']&&_0x33da12['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x33da12['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4f371a,_0x3cc4ce={}){const _0x1f502d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e1658=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1f502d['markMultiRangeBlockFormat'](_0x2e1658,{'commandName':'listStyle','commandParams':[{'type':_0x3cc4ce['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x418ed6,_0x348709={}){const _0x906cc3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4db540=this['_getSuggestionBlocks'](_0x1b4bc6=>_0x1b4bc6['is']('element','listItem')&&'numbered'===_0x1b4bc6['getAttribute']('listType'));if(_0x4db540['length']<0x1)return;const _0x258d72=_0x4db540['map'](_0x280c64=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x280c64,'before'),this['editor']['model']['createPositionAt'](_0x280c64,0x0)));this['editor']['model']['change'](()=>{_0x906cc3['markMultiRangeBlockFormat'](_0x258d72,{'commandName':'listReversed','commandParams':[{'reversed':_0x348709['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x455a32,_0x126b1a={}){const _0x2a5fe0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f2c8e=this['_getSuggestionBlocks'](_0x4e23a0=>_0x4e23a0['is']('element','listItem')&&'numbered'===_0x4e23a0['getAttribute']('listType'));if(_0x2f2c8e['length']<0x1)return;const _0xfca07a=_0x2f2c8e['map'](_0x233240=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x233240,'before'),this['editor']['model']['createPositionAt'](_0x233240,0x0)));this['editor']['model']['change'](()=>{_0x2a5fe0['markMultiRangeBlockFormat'](_0xfca07a,{'commandName':'listStart','commandParams':[{'startIndex':_0x126b1a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xefb974){if('formatBlock'!=_0xefb974['type']&&'formatInline'!=_0xefb974['type'])return;const _0x349ec9=this['editor']['locale'],{data:_0x646d44}=_0xefb974;if(!_0x646d44)return;let _0xc10d38,_0x2efa2b;switch(_0x646d44['commandName']){case'listStyle':_0xc10d38='*Change\x20to:*\x20%0',_0x2efa2b={'type':'format','content':Tt(_0x349ec9,_0xc10d38,Tt(_0x349ec9,this['_getTranslationKeyForListStyle'](_0x646d44['commandParams'][0x0]['type'])))};break;case'listReversed':_0xc10d38=_0x646d44['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2efa2b={'type':'format','content':Tt(_0x349ec9,_0xc10d38)};break;case'listStart':_0xc10d38='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2efa2b={'type':'format','content':Tt(_0x349ec9,_0xc10d38,_0x646d44['commandParams'][0x0]['startIndex'])};}return _0x2efa2b;}['_getSuggestionBlocksForListStyle'](){const _0xfe60b4=this['editor']['plugins']['get']('LegacyListUtils');let _0x1f9d39=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1f9d39[0x0]?.['is']('element','listItem')&&_0x1f9d39['unshift'](..._0xfe60b4['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1f9d39[_0x1f9d39['length']-0x1]?.['is']('element','listItem')&&_0x1f9d39['push'](..._0xfe60b4['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1f9d39=[...new Set(_0x1f9d39)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1f9d39=_0x1f9d39['filter'](_0x1fa0b2=>_0x1fa0b2['is']('element','listItem'))),_0x1f9d39;}['_getSuggestionBlocks'](_0x3b15ab){const _0x1f2454=this['editor']['plugins']['get']('LegacyListUtils');let _0x10d84a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3b15ab)['map'](_0x268741=>{const _0x283046=this['editor']['model']['createPositionAt'](_0x268741,0x0);return[..._0x1f2454['getSiblingNodes'](_0x283046,'backward'),..._0x1f2454['getSiblingNodes'](_0x283046,'forward')];})['flat']();return _0x10d84a=[...new Set(_0x10d84a)],_0x10d84a;}['_getTranslationKeyForListStyle'](_0x4415e6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4415e6)||'default')['toUpperCase']()+'_LIST_'+_0x4415e6['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends _0x3ea3b4{['afterInit'](){const _0x1bb3fd=this['editor'];if(!_0x1bb3fd['plugins']['has']('MediaEmbedEditing'))return;const _0x30ecb5=_0x1bb3fd['plugins']['get']('TrackChangesEditing'),_0x18ac53=_0x1bb3fd['locale'];_0x30ecb5['enableCommand']('mediaEmbed'),_0x30ecb5['descriptionFactory']['registerElementLabel']('media',_0x6e716c=>Tt(_0x18ac53,'ELEMENT_MEDIA',_0x6e716c)),_0x1bb3fd['plugins']['has']('MediaEmbedResizeEditing')&&(_0x30ecb5['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x30ecb5['descriptionFactory']['registerDescriptionCallback'](_0xb513e4=>{if('attribute'!=_0xb513e4['type'])return;const {data:_0x2cfcd4}=_0xb513e4;if(!_0x2cfcd4||'resizedWidth'!=_0x2cfcd4['key'])return;const _0x53c243=_0xb513e4['getContainedElement']();if(!_0x53c243||!_0x53c243['is']('element','media'))return;const _0x395304=Tt(_0x18ac53,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Tt(_0x18ac53,'*Set\x20format:*\x20%0',_0x395304)};}));}}class TrackChangesMediaEmbedStyle extends _0x3ea3b4{['afterInit'](){const _0x982d2f=this['editor'];if(!_0x982d2f['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x2fb91d=_0x982d2f['plugins']['get']('TrackChangesEditing'),_0x4674ad=_0x982d2f['locale'],_0x31a55a=_0x982d2f['plugins']['get']('MediaEmbedStyleEditing'),_0x375b69={};for(const _0x5167cd of _0x31a55a['normalizedStyles'])_0x375b69[_0x5167cd['name']]=_0x5167cd['title']['toLowerCase']();const _0x85a642=_0x31a55a['normalizedStyles']['find'](_0x1290e2=>_0x1290e2['isDefault'])?.['name'];_0x2fb91d['enableCommand']('mediaStyle',(_0xa027fd,_0x24358b)=>{const _0x54a8a4=_0x982d2f['plugins']['get']('Users')['me'],_0x2b88d6=_0x982d2f['commands']['get']('mediaStyle'),_0x69c660=function(_0x12c675){const _0x555afd=_0x12c675['model']['document']['selection']['getSelectedElement']();if(_0x555afd&&_0x555afd['is']('element','media'))return _0x555afd;return null;}(_0x982d2f);if(!_0x69c660)return;const _0x54c5fe=_0x982d2f['model']['createRangeOn'](_0x69c660);let _0x1ff54c=_0x2b88d6['value'];if(_0x1ff54c==_0x24358b['value'])return;const _0x217d1d={'commandName':'mediaStyle','commandParams':[_0x24358b],'formatGroupId':_0x4681a7()};_0x982d2f['model']['change'](()=>{_0x2fb91d['getSuggestions']()['filter'](_0x4bb385=>_0x4bb385['isInContent']&&_0x54a8a4==_0x4bb385['author']&&'formatBlock'==_0x4bb385['type']&&'mediaStylePostApply'==_0x4bb385['subType']&&_0x4bb385['getFirstRange']()['isEqual'](_0x54c5fe))['forEach'](_0x376e04=>_0x2fb91d['discardSuggestion'](_0x376e04['head'])),_0x2b88d6['refresh'](),_0x1ff54c=_0x2b88d6['value'],_0x1ff54c!=_0x24358b['value']&&_0x2fb91d['markBlockFormat'](_0x69c660,{..._0x217d1d,'commandReversedParams':[{'value':'string'==typeof _0x1ff54c?_0x1ff54c:null}]},[],'mediaStylePostApply');});}),_0x2fb91d['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x2fb91d['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x39dd98,_0x4fe7c3)=>{_0x2fb91d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x39dd98,{'commandName':_0x4fe7c3['commandName'],'commandParams':_0x4fe7c3['commandReversedParams']});}),_0x2fb91d['descriptionFactory']['registerDescriptionCallback'](_0x217b41=>{if('formatBlock'!=_0x217b41['type'])return;const {data:_0x1e4c28}=_0x217b41;if(!_0x1e4c28||'mediaStyle'!=_0x1e4c28['commandName'])return;const _0x48f6e6=_0x1e4c28['commandParams'][0x0]['value']||_0x85a642;if(!_0x48f6e6)return;const _0x104a00=_0x375b69[_0x48f6e6]||_0x48f6e6;return{'type':'format','content':Tt(_0x4674ad,'*Format:*\x20%0',_0x104a00)};});}}class TrackChangesMention extends _0x3ea3b4{['afterInit'](){const _0x4d552a=this['editor'];_0x4d552a['plugins']['has']('MentionEditing')&&_0x4d552a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends _0x3ea3b4{['afterInit'](){const _0x558366=this['editor'];if(!_0x558366['plugins']['has']('MergeFieldsEditing'))return;const _0x51721e=_0x558366['plugins']['get']('TrackChangesEditing'),_0x44bd95=_0x558366['locale'];_0x51721e['enableCommand']('insertMergeField'),_0x51721e['enableCommand']('insertMergeFieldBlock'),_0x51721e['enableCommand']('insertMergeFieldImage'),_0x51721e['descriptionFactory']['registerElementLabel']('mergeField',_0x35d111=>Tt(_0x44bd95,'ELEMENT_MERGE_FIELD',_0x35d111)),_0x51721e['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x6b74cb=>Tt(_0x44bd95,'ELEMENT_MERGE_FIELD',_0x6b74cb)),_0x51721e['descriptionFactory']['registerDescriptionCallback'](_0x34b0bd=>{if('insertion'!=_0x34b0bd['type']&&'deletion'!=_0x34b0bd['type'])return;const _0x46b362=_0x34b0bd['getContainedElement']();if(null==_0x46b362)return;const _0x58a8c1=_0x558366['plugins']['get']('MergeFieldsEditing');let _0x2c15ba;switch(_0x58a8c1['getMergeFieldType'](_0x46b362)){case null:return;case'image':{const _0xeb7bd9=_0x58a8c1['unwrapAffixes'](_0x46b362['getAttribute']('src'));_0x2c15ba=_0x58a8c1['getLabel'](_0xeb7bd9)||_0xeb7bd9;break;}default:{const _0x50fb36=_0x46b362['getAttribute']('id');_0x2c15ba=_0x58a8c1['getLabel'](_0x50fb36)||_0x50fb36;break;}}return'insertion'==_0x34b0bd['type']?{'type':'insertion','content':Tt(_0x44bd95,'*Insert:*\x20%0','\x22'+_0x2c15ba+'\x22\x20'+Tt(_0x44bd95,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Tt(_0x44bd95,'*Remove:*\x20%0','\x22'+_0x2c15ba+'\x22\x20'+Tt(_0x44bd95,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends _0x3ea3b4{['afterInit'](){const _0x2fd33b=this['editor'],_0x388fba=_0x2fd33b['plugins']['get']('TrackChangesEditing');_0x2fd33b['plugins']['has']('MultiLevelList')&&(_0x388fba['enableDefaultAttributesIntegration']('multiLevelList'),_0x388fba['descriptionFactory']['registerDescriptionCallback'](_0x4df8d5=>this['handleDescriptions'](_0x4df8d5)));}['handleDescriptions'](_0x5e7417){const _0x1e87df=this['editor']['locale'],{data:_0x304ce2}=_0x5e7417,_0x1a37b9={'type':'format','content':''};if(_0x304ce2&&'listMarkerStyle'==_0x304ce2['key']){if(!_0x304ce2['oldValue'])return{'type':'format','content':Tt(_0x1e87df,'*Set\x20format:*\x20%0',Tt(_0x1e87df,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x304ce2['newValue']+')'};if(!_0x304ce2['newValue']){let _0x7b14cb=_0x5e7417['head'];for(;_0x7b14cb;){if(_0x7b14cb['data']&&'listType'==_0x7b14cb['data']['key']&&_0x7b14cb['data']['newValue'])return _0x1a37b9;_0x7b14cb=_0x7b14cb['next'];}return{'type':'format','content':Tt(_0x1e87df,'*Remove\x20format:*\x20%0',Tt(_0x1e87df,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x304ce2['oldValue']+')'};}}}}class TrackChangesPageBreak extends _0x3ea3b4{['afterInit'](){const _0x2fe85a=this['editor'];if(!_0x2fe85a['plugins']['has']('PageBreakEditing'))return;_0x2fe85a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x310682=_0x2fe85a['plugins']['get']('TrackChangesEditing'),_0x3c97f1=_0x2fe85a['locale'];_0x310682['descriptionFactory']['registerElementLabel']('pageBreak',_0x1c08a3=>Tt(_0x3c97f1,'ELEMENT_PAGE_BREAK',_0x1c08a3));}}class TrackChangesParagraph extends _0x3ea3b4{['afterInit'](){const _0x2cc314=this['editor'];if(!_0x2cc314['plugins']['has']('Paragraph'))return;const _0x16711d=_0x2cc314['locale'],_0x5689c6=_0x2cc314['plugins']['get']('TrackChangesEditing');_0x5689c6['descriptionFactory']['registerElementLabel']('paragraph',_0x50cc24=>Tt(_0x16711d,'ELEMENT_PARAGRAPH',_0x50cc24)),_0x5689c6['enableDefaultAttributesIntegration']('paragraph'),_0x5689c6['enableCommand']('insertParagraph');const _0x4b12f6=_0x5689c6['descriptionFactory'];_0x4b12f6['registerDescriptionCallback'](_0x311eeb=>{if('insertion'!==_0x311eeb['type'])return;const {start:_0x15aaa3,end:_0x1b6d56}=_0x311eeb['getFirstRange']();if(!_0x15aaa3['isTouching'](_0x1b6d56)||!_0x15aaa3['nodeAfter'])return;const _0x5168d5=_0x2cc314['model']['schema'],_0x3768aa=_0x15aaa3['nodeAfter'];return _0x5168d5['isBlock'](_0x3768aa)&&!_0x5168d5['isLimit'](_0x3768aa)&&_0x5168d5['checkChild'](_0x3768aa,'$text')?{'type':'insertion','content':Tt(_0x16711d,'*Insert:*\x20%0',_0x4b12f6['getItemLabel'](_0x3768aa,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d505f=this['editor'],_0x40216d=_0x4d505f['locale'];_0x4d505f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x195ccb=>{if('formatBlock'!=_0x195ccb['type'])return;const {data:_0x246560}=_0x195ccb;return _0x246560&&'paragraph'==_0x246560['commandName']?{'type':'format','content':Tt(_0x40216d,'*Change\x20to:*\x20%0',Tt(_0x40216d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends _0x3ea3b4{['afterInit'](){const _0x262ed4=this['editor'];_0x262ed4['commands']['get']('replaceSource')&&_0x262ed4['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends _0x3ea3b4{['afterInit'](){const _0x43cde5=this['editor'];if(!_0x43cde5['plugins']['has']('RemoveFormatEditing'))return;_0x43cde5['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d9a89=this['editor'];_0x5d9a89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f3dab=>{if('formatBlock'!=_0x3f3dab['type']&&'formatInline'!=_0x3f3dab['type'])return;const {data:_0x4f5ea1}=_0x3f3dab;return _0x4f5ea1&&'removeFormat'==_0x4f5ea1['commandName']?{'type':'format','content':Tt(_0x5d9a89['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends _0x3ea3b4{['afterInit'](){const _0x3ab2cd=this['editor'];if(!_0x3ab2cd['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x46fd9a=_0x3ab2cd['plugins']['get']('TrackChangesEditing');_0x46fd9a['enableCommand']('goToPreviousRestrictedEditingException'),_0x46fd9a['enableCommand']('goToNextRestrictedEditingException');const _0x2b4f98=_0x3ab2cd['plugins']['get']('RestrictedEditingModeEditing');_0x2b4f98['enableCommand']('trackChanges'),_0x2b4f98['enableCommand']('acceptSuggestion'),_0x2b4f98['enableCommand']('discardSuggestion'),_0x2b4f98['enableCommand']('acceptAllSuggestions'),_0x2b4f98['enableCommand']('discardAllSuggestions'),_0x2b4f98['enableCommand']('acceptSelectedSuggestions'),_0x2b4f98['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends _0x3ea3b4{['afterInit'](){const _0x37ea81=this['editor'];if(!_0x37ea81['plugins']['has']('ShiftEnter'))return;const _0x5b4eeb=_0x37ea81['plugins']['get']('TrackChangesEditing');_0x5b4eeb['enableCommand']('shiftEnter'),_0x5b4eeb['descriptionFactory']['registerElementLabel']('softBreak',_0xf3da14=>Tt(_0x37ea81['locale'],'ELEMENT_LINE_BREAK',_0xf3da14));}}function yt(_0x33a11f,_0x359555,_0x47ce65){const _0x4b2ac7=[];for(const _0x3cc075 of _0x359555['getItems']())_0x3cc075['hasAttribute'](_0x33a11f)&&_0x4b2ac7['push'](_0x47ce65['createRangeOn'](_0x3cc075));return _0x4b2ac7;}class TrackChangesStandardEditingMode extends _0x3ea3b4{['afterInit'](){const _0x4691f7=this['editor'],_0x2a8ef7=_0x4691f7['plugins']['get']('TrackChangesEditing');_0x4691f7['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x2a8ef7['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x1ad396=this['editor'],_0x3a1fc8=_0x1ad396['model'],_0x4ef187=_0x1ad396['locale'],_0x313eed=_0x1ad396['plugins']['get']('TrackChangesEditing'),_0x454d1f='restrictedEditingException',_0x5a7f5a=_0x1ad396['commands']['get'](_0x454d1f);_0x313eed['enableCommand'](_0x454d1f,(_0x45d552,_0x38a690={})=>{const _0x3c1cb6=_0x3a1fc8['document']['selection'];if(_0x3c1cb6['isCollapsed'])return void _0x45d552(_0x38a690);const _0x55c763=void 0x0!==_0x38a690['forceValue']?_0x38a690['forceValue']:!_0x5a7f5a['value'];_0x3a1fc8['change'](()=>{const _0x251b6b=Array['from'](_0x3c1cb6['getRanges']());for(const _0x25cbeb of _0x251b6b){const _0x4a2c9b=_0x55c763?[_0x25cbeb]:yt(_0x454d1f,_0x25cbeb,_0x3a1fc8);for(const _0x40dcf8 of _0x4a2c9b)_0x313eed['markInlineFormat'](_0x40dcf8,{'commandName':_0x454d1f,'commandParams':[{'forceValue':_0x55c763}]});}});}),_0x313eed['descriptionFactory']['registerDescriptionCallback'](_0x1c0a82=>{if('formatBlock'!=_0x1c0a82['type']&&'formatInline'!=_0x1c0a82['type'])return;const {data:_0x59cb3b}=_0x1c0a82;return _0x59cb3b&&_0x59cb3b['commandName']==_0x454d1f?_0x59cb3b['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x4ef187,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x4ef187,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0xa6a05e=this['editor'],_0x57b868=_0xa6a05e['locale'],_0x3ae778=_0xa6a05e['plugins']['get']('TrackChangesEditing'),_0x438c69='restrictedEditingExceptionBlock',_0x32a6ad=this['editor']['commands']['get'](_0x438c69);_0x3ae778['enableCommand'](_0x438c69,(_0x392e11,_0x2f58cb={})=>{const _0xea9e56=this['editor']['model']['document']['selection'],_0x3142ef=_0x2f58cb&&void 0x0!==_0x2f58cb['forceValue']?_0x2f58cb['forceValue']:!_0x32a6ad['value'];let _0x370057=[];if(_0x3142ef){const _0x477550=Array['from'](_0xea9e56['getSelectedBlocks']())['filter'](_0x46dbe6=>function(_0x4216a0){return!!_0x4216a0['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x46dbe6)||function(_0x527930,_0x23abd7){const _0x28d2fa=_0x23abd7['createContext'](_0x527930['parent']);if(!_0x23abd7['checkChild'](_0x28d2fa,'restrictedEditingException'))return!0x1;if(!_0x23abd7['checkChild'](_0x28d2fa['push']('restrictedEditingException'),_0x527930))return!0x1;return!0x0;}(_0x46dbe6,this['editor']['model']['schema']));_0x370057=ft(_0x477550,_0xa6a05e['model']);}else{const _0x175f99=Array['from'](_0xea9e56['getSelectedBlocks']())['map'](_0x3c2778=>function(_0x4f4dc7){let _0x2c6a90=_0x4f4dc7;for(;_0x2c6a90['parent'];){if('restrictedEditingException'==_0x2c6a90['parent']['name'])return _0x2c6a90;_0x2c6a90=_0x2c6a90['parent'];}return null;}(_0x3c2778))['filter'](_0x390cc1=>!!_0x390cc1);_0x370057=ft(_0x175f99,_0xa6a05e['model']);}_0xa6a05e['model']['change'](()=>{for(const _0x2f84f4 of _0x370057)_0x3ae778['markBlockFormat'](_0x2f84f4,{'commandName':_0x438c69,'commandParams':[{'forceValue':_0x3142ef}]});});}),_0x3ae778['descriptionFactory']['registerDescriptionCallback'](_0x481a21=>{const {data:_0x28f0e8}=_0x481a21;if(_0x28f0e8&&_0x28f0e8['commandName']==_0x438c69)return _0x28f0e8['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x57b868,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x57b868,'FORMAT_RESTRICTED_DISABLED')};});}}class TrackChangesStylesDropdown extends _0x3ea3b4{['afterInit'](){const _0x552c6c=this['editor'];if(!_0x552c6c['plugins']['has']('Style')||!_0x552c6c['plugins']['has']('DataSchema'))return;_0x552c6c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55dd65=this['editor'],_0x1d56bd=_0x55dd65['locale'];_0x55dd65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6ef8f2=>{if('formatBlock'!=_0x6ef8f2['type']&&'formatInline'!=_0x6ef8f2['type'])return;const {data:_0x253399}=_0x6ef8f2;return _0x253399&&'style'===_0x253399['commandName']?_0x253399['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x1d56bd,'*Set\x20format:*\x20%0',_0x253399['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Tt(_0x1d56bd,'*Remove\x20format:*\x20%0',_0x253399['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends _0x3ea3b4{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2ef441){super(_0x2ef441),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2a03ea=this['editor'],_0x11f665=_0x2a03ea['model']['document']['selection'];if(!_0x2a03ea['plugins']['has']('TableEditing'))return;const _0x481db3=_0x2a03ea['locale'],_0x1751a6=_0x2a03ea['plugins']['get']('TrackChangesEditing'),_0x24e476=_0x2a03ea['plugins']['get']('TableUtils');_0x1751a6['descriptionFactory']['registerElementLabel']('table',_0x35b8f5=>Tt(_0x481db3,'ELEMENT_TABLE',_0x35b8f5)),this['_setupColumnsRowsFixing'](),_0x1751a6['enableCommand']('insertTable'),_0x1751a6['enableCommand']('selectTableRow'),_0x1751a6['enableCommand']('selectTableColumn');for(const _0x3b3391 of['insertTableRowAbove','insertTableRowBelow']){const _0x155500=_0x2a03ea['commands']['get'](_0x3b3391);_0x1751a6['enableCommand'](_0x3b3391,_0xcf39d2=>{_0x2a03ea['model']['change'](_0x946342=>{_0xcf39d2();const _0x57cbb0='above'===_0x155500['order'],_0x5023f5=_0x24e476['getSelectionAffectedTableCells'](_0x11f665),_0x549ea9=_0x24e476['getRowIndexes'](_0x5023f5),_0x10c860=_0x57cbb0?_0x549ea9['first']-0x1:_0x549ea9['last']+0x1,_0x2b9c5b=_0x5023f5[0x0]['findAncestor']('table'),_0x232e4b=_0x24e476['createTableWalker'](_0x2b9c5b,{'startRow':_0x10c860,'endRow':_0x10c860}),_0x2a0b4c=Array['from'](_0x232e4b)['map'](_0x1caac3=>_0x946342['createRangeOn'](_0x1caac3['cell']));_0x1751a6['markMultiRangeInsertion'](_0x2a0b4c,'tableRow');});});}for(const _0x43836f of['insertTableColumnLeft','insertTableColumnRight']){const _0x1ed5f6=_0x2a03ea['commands']['get'](_0x43836f);_0x1751a6['enableCommand'](_0x43836f,_0x24bd24=>{_0x2a03ea['model']['change'](_0x6db4b7=>{_0x24bd24();const _0x2c7055='left'===_0x1ed5f6['order'],_0x44296c=_0x24e476['getSelectionAffectedTableCells'](_0x11f665),_0x5ce377=_0x24e476['getColumnIndexes'](_0x44296c),_0x19681f=_0x2c7055?_0x5ce377['first']-0x1:_0x5ce377['last']+0x1,_0x321a33=_0x44296c[0x0]['findAncestor']('table'),_0x4832c1=_0x24e476['createTableWalker'](_0x321a33,{'startRow':0x0,'column':_0x19681f,'includeAllSlots':!0x1}),_0x2e08a5=Array['from'](_0x4832c1)['map'](_0x1972b6=>_0x6db4b7['createRangeOn'](_0x1972b6['cell']));_0x1751a6['markMultiRangeInsertion'](_0x2e08a5,'tableColumn');});});}for(const _0x3e654a of['removeTableRow','removeTableColumn']){const _0xbd4f5a=_0x3e654a['substr'](0xb),_0x15b895=_0xbd4f5a['toLowerCase'](),_0x1330bb=_0x15b895['substr'](0x0,0x3)+'span',_0x4e4c56='table'+_0xbd4f5a,_0x2a4ca4='min'+_0xbd4f5a,_0x2cda39='max'+_0xbd4f5a;_0x1751a6['enableCommand'](_0x3e654a,()=>{_0x2a03ea['model']['change'](_0x420fde=>{const _0xed0862=_0x24e476['getSelectionAffectedTableCells'](_0x11f665),_0x453383=_0xed0862[0x0]['findAncestor']('table');let _0x19de5a;if('removeTableRow'==_0x3e654a){const _0x27107b=_0x24e476['getRowIndexes'](_0xed0862);_0x19de5a={'startRow':_0x27107b['first'],'endRow':_0x27107b['last'],'includeAllSlots':!0x0};}else{const _0x327070=_0x24e476['getColumnIndexes'](_0xed0862);_0x19de5a={'startColumn':_0x327070['first'],'endColumn':_0x327070['last'],'includeAllSlots':!0x0};}const _0x2f7123=_0x24e476['createTableWalker'](_0x453383,_0x19de5a),_0x3aa680=Array['from'](_0x2f7123)['map'](({cell:_0x54a7cf})=>_0x54a7cf),_0x405aa0=Nt(_0x3aa680['filter'](_0x24c0d7=>_0x24c0d7['hasAttribute'](_0x1330bb))),_0x4c6db7=Nt(_0x3aa680['filter'](_0x3ccd67=>!_0x3ccd67['hasAttribute'](_0x1330bb)))['map'](_0x1d9dbe=>_0x420fde['createRangeOn'](_0x1d9dbe)),_0x441f03=_0x1751a6['markMultiRangeDeletion'](_0x4c6db7,_0x4e4c56);if(_0x441f03&&('tableRow'==_0x441f03['subType']||'tableColumn'==_0x441f03['subType'])){const _0x2c9d48=this['_getSuggestionCoords'](_0x441f03);for(const _0x3c61e7 of _0x405aa0){const _0x2498a1=_0x420fde['createRangeOn'](_0x3c61e7),_0x1756df=_0x24e476['getCellLocation'](_0x3c61e7),_0x331c00=_0x3c61e7['getAttribute'](_0x1330bb)-0x1,_0x3acff1=_0x2c9d48[_0x2a4ca4],_0x48164b=_0x2c9d48[_0x2cda39];_0x3acff1<=_0x1756df[_0x15b895]&&_0x1756df[_0x15b895]+_0x331c00<=_0x48164b&&_0x441f03['addRange'](_0x2498a1);}}});});}function _0x79de49(_0x36c16d){const _0x57995a=Array['from'](_0x11f665['getRanges']())['map'](_0x48c405=>_0x418bbc['fromRange'](_0x48c405));_0x2a03ea['model']['change'](_0x1252d9=>{const _0x58bd84=_0x1252d9['batch'];_0x36c16d=_0x36c16d['filter'](_0x59affc=>'$graveyard'!=_0x59affc['root']['rootName']),_0x1252d9['setSelection'](_0x36c16d),_0x2a03ea['commands']['get']('removeTableRow')['refresh'](),_0x2a03ea['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2a03ea['model']['enqueueChange'](()=>{_0x2a03ea['model']['enqueueChange'](_0x58bd84,_0x2f7f3a=>{const _0x3058fb=_0x57995a['filter'](_0x531961=>'$graveyard'!=_0x531961['root']['rootName']);_0x3058fb['length']>0x0&&_0x2f7f3a['setSelection'](_0x3058fb);for(const _0x4436c7 of _0x57995a)_0x4436c7['detach']();});});});}function _0x446d9d(_0x344d25){_0x2a03ea['model']['change'](_0x287fcd=>{const _0x16db3b=Array['from'](_0x11f665['getRanges']())['map'](_0x2a07d5=>_0x418bbc['fromRange'](_0x2a07d5)),_0x54f582=[];for(const _0x51e394 of _0x344d25)for(const _0x1c9b1e of _0x51e394['getItems']({'shallow':!0x0}))_0x54f582['push'](_0x1c9b1e);for(const _0x168e0d of _0x54f582)'$graveyard'!=_0x168e0d['root']['rootName']&&(_0x287fcd['setSelection'](_0x287fcd['createPositionAt'](_0x168e0d,0x0)),_0x2a03ea['commands']['get']('removeTableColumn')['refresh'](),_0x2a03ea['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3fa164=_0x16db3b['filter'](_0x268d81=>'$graveyard'!=_0x268d81['root']['rootName']);_0x3fa164['length']>0x0&&_0x287fcd['setSelection'](_0x3fa164);for(const _0x5caa35 of _0x16db3b)_0x5caa35['detach']();});}function _0x302c72(_0x3c6532,_0x383f47){return _0x383f47['every'](_0x7dcb17=>_0x3c6532['some'](_0x2402e0=>_0x2402e0['end']['isEqual'](_0x7dcb17['start'])||_0x7dcb17['end']['isEqual'](_0x2402e0['start'])));}function _0x3dc563(_0x274344,_0x3c5614){return!_0x274344['some'](_0x7d8f6a=>_0x3c5614['some'](_0x2c822c=>_0x7d8f6a['isIntersecting'](_0x2c822c)))&&_0x274344['some'](_0x483ad2=>_0x3c5614['some'](_0x465c7f=>_0x483ad2['end']['isTouching'](_0x465c7f['start'])));}_0x1751a6['descriptionFactory']['registerDescriptionCallback'](_0xd6d8c2=>{if('insertion'!=_0xd6d8c2['type']&&'deletion'!=_0xd6d8c2['type'])return;const _0x3a6604=_0xd6d8c2['getContainedElement']();if(null!=_0x3a6604&&_0x3a6604['is']('element','table')){if('insertion'==_0xd6d8c2['type']){const _0x120af1=_0xd6d8c2['getItems']()['filter'](_0x3d0b42=>_0x3d0b42['is']('$textProxy'))['map'](_0x473fb2=>_0x473fb2['data']);if(_0x120af1['length'])return{'type':'insertion','content':Tt(_0x481db3,'*Insert:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x120af1['join']('\x20')+'\x22'))};}if('deletion'==_0xd6d8c2['type']){const _0x3c5da2=_0xd6d8c2['getItems']()['filter'](_0x5f2e57=>_0x5f2e57['is']('$textProxy'))['map'](_0x154810=>_0x154810['data']);if(_0x3c5da2['length'])return{'type':'deletion','content':Tt(_0x481db3,'*Remove:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3c5da2['join']('\x20')+'\x22'))};}}}),_0x1751a6['descriptionFactory']['registerDescriptionCallback'](_0x43eac7=>{if('tableRow'==_0x43eac7['subType']){const _0x5229be=_0x43eac7['getItems']()['filter'](_0x239629=>_0x239629['is']('$textProxy'))['map'](_0x3bc647=>_0x3bc647['data']),_0x160d0f=this['_getSuggestionCoords'](_0x43eac7),_0x57fc6b=_0x160d0f['maxRow']-_0x160d0f['minRow']+0x1;if('insertion'==_0x43eac7['type'])return _0x5229be['length']?{'type':'insertion','content':Tt(_0x481db3,'*Insert:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57fc6b,'\x22'+_0x5229be['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x481db3,'*Insert:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_ROW',_0x57fc6b))};if('deletion'==_0x43eac7['type'])return _0x5229be['length']?{'type':'deletion','content':Tt(_0x481db3,'*Remove:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57fc6b,'\x22'+_0x5229be['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x481db3,'*Remove:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_ROW',_0x57fc6b))};}if('tableColumn'==_0x43eac7['subType']){const _0x2eb2cf=_0x43eac7['getItems']()['filter'](_0x79b048=>_0x79b048['is']('$textProxy'))['map'](_0x3bb4da=>_0x3bb4da['data']),_0x5aa8c1=this['_getSuggestionCoords'](_0x43eac7),_0x2afb14=_0x5aa8c1['maxColumn']-_0x5aa8c1['minColumn']+0x1;if('insertion'==_0x43eac7['type'])return _0x2eb2cf['length']?{'type':'insertion','content':Tt(_0x481db3,'*Insert:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2afb14,'\x22'+_0x2eb2cf['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x481db3,'*Insert:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_COLUMN',_0x2afb14))};if('deletion'==_0x43eac7['type'])return _0x2eb2cf['length']?{'type':'deletion','content':Tt(_0x481db3,'*Remove:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2afb14,'\x22'+_0x2eb2cf['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x481db3,'*Remove:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_COLUMN',_0x2afb14))};}}),_0x1751a6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x79de49),_0x1751a6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x79de49),_0x1751a6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x446d9d),_0x1751a6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x446d9d),_0x1751a6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x302c72),_0x1751a6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x302c72),_0x1751a6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3dc563),_0x1751a6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3dc563);}['_acceptFormatSuggestionCallbackFactory'](){const _0x27cb78=this['editor'],_0x2e22a1=_0x27cb78['model']['document']['selection'];return(_0x49578b,_0x106598)=>{_0x27cb78['model']['change'](_0x55a907=>{const {commandName:_0x3481bd,commandParams:_0x14868f}=_0x106598;let _0x5e2347=_0x49578b[0x0]['end']['nodeBefore'];_0x14868f&&_0x14868f[0x0]&&!0x1===_0x14868f[0x0]['forceValue']&&(_0x5e2347=_0x49578b[0x0]['start']['nodeAfter']);const _0x5e2e9b=_0x55a907['createRangeIn'](_0x5e2347);if('$graveyard'==_0x5e2e9b['root']['rootName'])return;const _0x4d5305=Array['from'](_0x2e22a1['getRanges']())['map'](_0x10a41a=>_0x418bbc['fromRange'](_0x10a41a));_0x55a907['setSelection'](_0x5e2e9b),_0x27cb78['commands']['get'](_0x3481bd)['refresh'](),_0x14868f['push']({'forceDefaultExecution':!0x0}),_0x27cb78['execute'](_0x3481bd,..._0x14868f);const _0x58180a=_0x4d5305['filter'](_0x35a6f6=>'$graveyard'!=_0x35a6f6['root']['rootName']);_0x58180a['length']>0x0&&_0x55a907['setSelection'](_0x58180a);for(const _0x326abf of _0x4d5305)_0x326abf['detach']();});};}['_getCoordsForCells'](_0x28fcf7){const _0x33bc1d=this['editor']['plugins']['get']('TableUtils');let _0x252253=Number['MAX_SAFE_INTEGER'],_0x532c7a=Number['MIN_SAFE_INTEGER'],_0x4a9f74=Number['MAX_SAFE_INTEGER'],_0x4007fd=Number['MIN_SAFE_INTEGER'];for(const _0x2fe9fd of _0x28fcf7){if('$graveyard'==_0x2fe9fd['root']['rootName'])continue;const {row:_0x57d761,column:_0x3b7e58}=_0x33bc1d['getCellLocation'](_0x2fe9fd),_0x40ce42=_0x2fe9fd['hasAttribute']('rowspan')?_0x2fe9fd['getAttribute']('rowspan')-0x1:0x0,_0x5b5d5e=_0x2fe9fd['hasAttribute']('colspan')?_0x2fe9fd['getAttribute']('colspan')-0x1:0x0;_0x252253=_0x57d761<_0x252253?_0x57d761:_0x252253,_0x532c7a=_0x57d761+_0x40ce42>_0x532c7a?_0x57d761+_0x40ce42:_0x532c7a,_0x4a9f74=_0x3b7e58<_0x4a9f74?_0x3b7e58:_0x4a9f74,_0x4007fd=_0x3b7e58+_0x5b5d5e>_0x4007fd?_0x3b7e58+_0x5b5d5e:_0x4007fd;}return{'minRow':_0x252253,'maxRow':_0x532c7a,'minColumn':_0x4a9f74,'maxColumn':_0x4007fd};}['_setupColumnsRowsFixing'](){const _0xbc197d=this['editor'],_0x188927=_0xbc197d['plugins']['get']('TrackChangesEditing'),_0x3477e6=_0xbc197d['plugins']['get']('TableUtils');_0xbc197d['model']['document']['on']('change:data',()=>{const _0x5cbad8=Array['from'](_0xbc197d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a9adb,data:_0x14beeb}of _0x5cbad8){const {group:_0x483bf3,id:_0x2d071f,subType:_0x548c29}=_0x368712(_0x2a9adb);if('suggestion'!=_0x483bf3)continue;if(null!=_0x14beeb['oldRange'])continue;const _0x41612f=_0x188927['getSuggestion'](_0x2d071f);this['_tablePostFixingSubtypes']['includes'](_0x548c29)&&this['_tableSuggestions']['add'](_0x41612f);}},{'priority':'low'});const _0x5becbe=(_0x439a60,_0x219e63)=>{let _0x227580=!0x1;const _0xbbdc1e=_0x219e63['createRangeOn'](_0x439a60),_0x2db69f=_0x439a60['findAncestor']('table'),_0x25ffcd=_0x3477e6['getCellLocation'](_0x439a60);for(const _0x6638c of this['_tableSuggestions']){const _0x4dd2e8=_0x6638c['subType'],_0x5fedfc=_0x4dd2e8['startsWith']('tablePaste'),_0x45c653=_0x4dd2e8['substr'](_0x5fedfc?0xa:0x5),_0x198598=_0x45c653['toLowerCase'](),_0xaf6af7=_0x198598['substr'](0x0,0x3)+'span',_0x4f6a86='min'+_0x45c653,_0x1e8c06='max'+_0x45c653;if(!_0x6638c['isInContent'])continue;if(_0x2db69f!=_0x6638c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x6638c['isIntersectingWithRange'](_0xbbdc1e))continue;const _0x697a4c=_0x439a60['hasAttribute'](_0xaf6af7)?_0x439a60['getAttribute'](_0xaf6af7)-0x1:0x0,_0x10517e=this['_getSuggestionCoords'](_0x6638c),_0x415419=_0x10517e[_0x4f6a86],_0x1eaca4=_0x10517e[_0x1e8c06];_0x415419<=_0x25ffcd[_0x198598]&&_0x25ffcd[_0x198598]+_0x697a4c<=_0x1eaca4&&(_0x6638c['addRange'](_0xbbdc1e),_0x227580=!0x0);}return _0x227580;};_0xbc197d['model']['document']['registerPostFixer'](_0x4e5deb=>{let _0x103b8c=!0x1;for(const _0x48fab0 of _0xbc197d['model']['document']['differ']['getChanges']())if('insert'==_0x48fab0['type']){if('tableRow'==_0x48fab0['name']){for(const _0x506f77 of _0x48fab0['position']['nodeAfter']['getChildren']())_0x103b8c=_0x103b8c||_0x5becbe(_0x506f77,_0x4e5deb);}else'tableCell'==_0x48fab0['name']&&(_0x103b8c=_0x103b8c||_0x5becbe(_0x48fab0['position']['nodeAfter'],_0x4e5deb));}return _0x103b8c;});}['_getSuggestionCoords'](_0x48e2d1){return this['_getCoordsForCells'](_0x48e2d1['getRanges']()['map'](_0x32144c=>_0x32144c['start']['nodeAfter']));}}function Nt(_0x3e7113){return Array['from'](new Set(_0x3e7113)['values']());}class TrackChangesTableMergeSplit extends _0x3ea3b4{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x4dd8f1=this['editor'],_0x3f001f=_0x4dd8f1['model']['document']['selection'],_0x1c933d=_0x4dd8f1['locale'];if(!_0x4dd8f1['plugins']['has']('TableEditing'))return;const _0x10dddd=_0x4dd8f1['plugins']['get']('TrackChangesEditing'),_0x30336e=_0x4dd8f1['plugins']['get']('TableUtils'),_0x43cb60=_0x4dd8f1['plugins']['get'](TrackChangesTable);_0x43cb60['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x10dddd['enableCommand']('mergeTableCells',()=>{const _0x59863b=_0x30336e['getSelectionAffectedTableCells'](_0x4dd8f1['model']['document']['selection']);_0x4dd8f1['model']['change'](()=>{_0x10dddd['markMultiRangeBlockFormat'](_0x59863b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4dd8f1['commands']['get']('mergeTableCells')['on']('execute',(_0x28e817,_0x83565f)=>{_0x4dd8f1['commands']['get']('trackChanges')['value']&&(_0x83565f['length']>0x0&&_0x83565f[_0x83565f['length']-0x1]&&_0x83565f[_0x83565f['length']-0x1]['forceDefaultExecution']||_0x10dddd['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x28e817['stop']());},{'priority':'highest'});for(const _0x10d0b4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x54b939=_0x4dd8f1['commands']['get'](_0x10d0b4);_0x10dddd['enableCommand'](_0x10d0b4,()=>{const _0x105f71=_0x4dd8f1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5b449a=>_0x5b449a['is']('element','tableCell')),_0x416192=_0x54b939['value'];_0x4dd8f1['model']['change'](()=>{_0x10dddd['markMultiRangeBlockFormat']([_0x105f71,_0x416192],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x113274 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x49a65c=_0x4dd8f1['commands']['get'](_0x113274);_0x10dddd['enableCommand'](_0x113274,()=>{const _0x456bd0=_0x30336e['getSelectionAffectedTableCells'](_0x4dd8f1['model']['document']['selection'])[0x0],_0x4872df=_0x456bd0['findAncestor']('table'),{column:_0x10bfdd,row:_0x2309d}=_0x30336e['getCellLocation'](_0x456bd0);let _0x566788=[];if('horizontally'==_0x49a65c['direction']){const _0x3ef262=_0x30336e['createTableWalker'](_0x4872df,{'startRow':_0x2309d,'endRow':_0x2309d,'includeAllSlots':!0x0});_0x566788=Array['from'](_0x3ef262)['map'](_0x42130e=>_0x42130e['cell']);}else{const _0x74f985=_0x30336e['createTableWalker'](_0x4872df,{'column':_0x10bfdd,'includeAllSlots':!0x0});_0x566788=Array['from'](_0x74f985)['map'](_0x12fa7d=>_0x12fa7d['cell']);}_0x4dd8f1['model']['change'](_0x13b272=>{_0x10dddd['markBlockFormat'](_0x13b272['createRangeOn'](_0x456bd0),{'commandName':_0x113274,'commandParams':[]},_0x566788,_0x113274);});});}_0x10dddd['descriptionFactory']['registerDescriptionCallback'](_0x39e6f4=>{if('formatBlock'!=_0x39e6f4['type']&&'formatInline'!=_0x39e6f4['type'])return;const {data:_0x33c3bf}=_0x39e6f4;return _0x33c3bf&&'mergeTableCells'==_0x33c3bf['commandName']?{'type':'format','content':Tt(_0x1c933d,'*Merge\x20cells*')}:void 0x0;}),_0x10dddd['descriptionFactory']['registerDescriptionCallback'](_0x13a8b2=>{if('formatBlock'!=_0x13a8b2['type']&&'formatInline'!=_0x13a8b2['type'])return;const {data:_0x3b4acf}=_0x13a8b2;return _0x3b4acf?'splitTableCellVertically'==_0x3b4acf['commandName']?{'type':'format','content':Tt(_0x1c933d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3b4acf['commandName']?{'type':'format','content':Tt(_0x1c933d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x33ade6=_0x43cb60['_acceptFormatSuggestionCallbackFactory']();for(const _0x539703 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x10dddd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x539703,'accept',_0x33ade6);for(const _0x2e19a5 of['splitTableCellVertically','splitTableCellHorizontally'])_0x10dddd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2e19a5,'accept',_0x33ade6);_0x10dddd['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4a8b1d=>{_0x4dd8f1['model']['change'](_0x4d9615=>{const _0x1adadd=Array['from'](_0x3f001f['getRanges']())['map'](_0x18c385=>_0x418bbc['fromRange'](_0x18c385));_0x4d9615['setSelection'](_0x4a8b1d),_0x4dd8f1['commands']['get']('mergeTableCells')['refresh'](),_0x4dd8f1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x21a832=_0x1adadd['filter'](_0x336e0b=>'$graveyard'!=_0x336e0b['root']['rootName']);_0x21a832['length']>0x0&&_0x4d9615['setSelection'](_0x21a832);for(const _0x2659b8 of _0x1adadd)_0x2659b8['detach']();});});for(const _0x206dd2 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4d5361=_0x4dd8f1['commands']['get'](_0x206dd2);_0x4d5361['on']('set:isEnabled',(_0x3c176c,_0x13a38b,_0x653836)=>{if(_0x653836){const _0x2b6168=_0x4dd8f1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1a5e46=>_0x1a5e46['is']('element','tableCell'));this['_areMergableCells'](_0x4d5361['value'],_0x2b6168)||(_0x3c176c['return']=!0x1,_0x3c176c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x353133=this['editor']['commands']['get']('mergeTableCells'),_0x287bf3=this['editor']['plugins']['get']('TableUtils');if(!_0x353133['isEnabled'])return!0x1;const _0xf0eecc=_0x287bf3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x101fa0 of _0xf0eecc)for(const _0x18f82a of _0xf0eecc)if(_0x101fa0!=_0x18f82a&&!this['_areMergableCells'](_0x101fa0,_0x18f82a))return!0x1;return!0x0;}['_areMergableCells'](_0x1a5bbc,_0x8e82f5){const _0x3d13e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cfe5a=this['editor']['model']['createRangeOn'](_0x1a5bbc),_0x2f5290=this['editor']['model']['createRangeOn'](_0x8e82f5),_0x13d4bb=new Set(),_0x20d4d1=new Set();for(const _0x24db33 of _0x3d13e8['getSuggestions']())if(('insertion'==_0x24db33['type']||'deletion'==_0x24db33['type']||'mergeTableCells'==_0x24db33['subType'])&&_0x24db33['isInContent']){for(const _0x10ff88 of _0x24db33['getRanges']())_0x10ff88['containsRange'](_0x2cfe5a,!0x0)&&_0x13d4bb['add'](_0x24db33['type']+':'+_0x24db33['author']['id']),_0x10ff88['containsRange'](_0x2f5290,!0x0)&&_0x20d4d1['add'](_0x24db33['type']+':'+_0x24db33['author']['id']);}if(_0x13d4bb['size']!=_0x20d4d1['size'])return!0x1;for(const _0x2d145e of _0x13d4bb)if(!_0x20d4d1['has'](_0x2d145e))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends _0x3ea3b4{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x4afdd0=this['editor'];if(!_0x4afdd0['plugins']['has']('TableEditing'))return;const _0x1adfa8=_0x4afdd0['locale'],_0x2e6856=_0x4afdd0['plugins']['get']('TrackChangesEditing');_0x2e6856['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2e6856['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2e6856['descriptionFactory']['registerAttributeLabel']('headingRows',Tt(_0x1adfa8,'FORMAT_HEADER_ROW')),_0x2e6856['descriptionFactory']['registerAttributeLabel']('headingColumns',Tt(_0x1adfa8,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x599429=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42e4a3=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x599429['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x42e4a3),_0x599429['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x42e4a3),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x1b5eb7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46d92d=this['editor']['plugins']['get']('TableUtils');function _0x10df52({showActiveMarker:_0x33c58a=!0x0,setDataAttribute:_0xb5b048=!0x0}={}){return(_0x4c297f,_0x260c8a,_0xbfc5bb)=>{const {type:_0x383bfc,id:_0x53e15e}=_0x368712(_0x260c8a['markerName']);if(!_0x1b5eb7['hasSuggestion'](_0x53e15e))return;const _0x16e7ef=_0x1b5eb7['getSuggestion'](_0x53e15e),_0x1f2809=_0x16e7ef['data'];if('formatBlock'!=_0x16e7ef['type']||!_0x1f2809||'setTableColumnHeader'!=_0x1f2809['commandName'])return;if(_0x260c8a['item'])return void _0x4c297f['stop']();if(!_0xbfc5bb['consumable']['consume'](_0x260c8a['markerRange'],_0x4c297f['name']))return;const _0x4bbd0f=_0x260c8a['markerRange']['start']['nodeAfter'],_0x4a5824=_0x260c8a['markerRange']['end']['nodeBefore'],_0x1f2717=_0x4bbd0f['parent']['parent'],{column:_0x2d74ba}=_0x46d92d['getCellLocation'](_0x4bbd0f),{column:_0x4b42fd}=_0x46d92d['getCellLocation'](_0x4a5824);for(let _0xb8be58=_0x2d74ba;_0xb8be58<=_0x4b42fd;_0xb8be58++){const _0x4c91fb=_0x46d92d['createTableWalker'](_0x1f2717,{'column':_0xb8be58,'includeAllSlots':!0x1});for(const _0x40744f of _0x4c91fb){const _0x552ae8=_0x40744f['cell'],_0x2c777c=_0xbfc5bb['mapper']['toViewElement'](_0x552ae8);_0xbfc5bb['writer']['addClass']('ck-suggestion-marker-'+_0x383bfc,_0x2c777c),_0xb5b048&&_0xbfc5bb['writer']['setAttribute']('data-suggestion',_0x53e15e,_0x2c777c),_0xbfc5bb['mapper']['bindElementToMarker'](_0x2c777c,_0x260c8a['markerName']),_0x33c58a&&(_0x1b5eb7['activeMarkers']['includes'](_0x260c8a['markerName'])?_0xbfc5bb['writer']['addClass']('ck-suggestion-marker--active',_0x2c777c):_0xbfc5bb['writer']['removeClass']('ck-suggestion-marker--active',_0x2c777c));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x10df52(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e4402,_0x274041,_0x291e23)=>{_0x291e23['options']['showSuggestionHighlights']&&_0x10df52({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1e4402,_0x274041,_0x291e23);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x12b91b,_0x108af0,_0x467b9a)=>{const {type:_0x5f37ab,id:_0x1db53f}=_0x368712(_0x108af0['markerName']);if(!_0x1b5eb7['hasSuggestion'](_0x1db53f))return;const _0x5e0565=_0x1b5eb7['getSuggestion'](_0x1db53f),_0x2d9e11=_0x5e0565['data'];if('formatBlock'!=_0x5e0565['type']||!_0x2d9e11||'setTableColumnHeader'!=_0x2d9e11['commandName'])return;const _0x2ff550=_0x467b9a['mapper']['markerNameToElements'](_0x108af0['markerName']);if(_0x2ff550){for(const _0x50daed of _0x2ff550)_0x467b9a['writer']['removeClass']('ck-suggestion-marker-'+_0x5f37ab,_0x50daed),_0x467b9a['writer']['removeClass']('ck-suggestion-marker--active',_0x50daed),_0x467b9a['writer']['removeAttribute']('data-suggestion',_0x50daed),_0x467b9a['mapper']['unbindElementFromMarkerName'](_0x50daed,_0x108af0['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x3767fa=this['editor'],_0x1ae1f6=_0x3767fa['locale'];function _0x5b0ea4(_0x3398b3){return{'type':'format','content':Tt(_0x1ae1f6,'*Format:*\x20%0',_0x3398b3)};}_0x3767fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ff6a1=>{if('formatBlock'!=_0x1ff6a1['type'])return;const {data:_0x1a5d4f}=_0x1ff6a1;if(_0x1a5d4f){if('setTableRowHeader'==_0x1a5d4f['commandName']){const _0x36d741=_0x1a5d4f['commandParams'][0x0]['forceValue'];return _0x5b0ea4(Tt(_0x1ae1f6,_0x36d741?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1a5d4f['commandName']){const _0x5eb4d7=_0x1a5d4f['commandParams'][0x0]['forceValue'];return _0x5b0ea4(Tt(_0x1ae1f6,_0x5eb4d7?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableFooters extends _0x3ea3b4{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x1681f2=this['editor'];if(!_0x1681f2['plugins']['has']('TableEditing')||!_0x1681f2['config']['get']('table.enableFooters'))return;const _0x487a1e=_0x1681f2['locale'],_0x3a753c=_0x1681f2['plugins']['get']('TrackChangesEditing');_0x3a753c['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x3a753c['descriptionFactory']['registerAttributeLabel']('footerRows',Tt(_0x487a1e,'FORMAT_FOOTER_ROW'));}}class TrackChangesTableLayout extends _0x3ea3b4{['afterInit'](){const _0x14b790=this['editor'],_0x15ed2a=_0x14b790['locale'],_0xc6b34c=_0x14b790['plugins']['get']('TrackChangesEditing');function _0x50223b(_0x36e519){return{'type':'format','content':''+Tt(_0x15ed2a,'*Set\x20table\x20type:*\x20%0',_0x36e519)};}_0x14b790['plugins']['has']('TableLayout')&&(_0xc6b34c['enableCommand']('insertTableLayout'),_0xc6b34c['enableDefaultAttributesIntegration']('tableType'),_0xc6b34c['descriptionFactory']['registerElementLabel'](_0x1ad4d9=>_0x1ad4d9['is']('element','table')&&'layout'===_0x1ad4d9['getAttribute']('tableType'),_0x23ec38=>Tt(_0x15ed2a,'ELEMENT_LAYOUT_TABLE',_0x23ec38)),_0xc6b34c['descriptionFactory']['registerDescriptionCallback'](_0x3c3e92=>{const {data:_0x32b380}=_0x3c3e92;if(_0x32b380&&'tableType'==_0x32b380['key'])switch(_0x32b380['newValue']){case'layout':return _0x50223b(Tt(_0x15ed2a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x50223b(Tt(_0x15ed2a,'ELEMENT_CONTENT_TABLE'));}}));}}const Mt=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ot=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Mt['map'](_0x5e7216=>[_0x5e7216,null]));class TrackChangesTableClipboard extends _0x3ea3b4{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x378e98=this['editor'];if(!_0x378e98['plugins']['has']('TableClipboard'))return;const _0x14de96=_0x378e98['plugins']['get']('TrackChangesEditing'),_0x4d4da9=_0x378e98['plugins']['get']('TableUtils'),_0x21771c=_0x378e98['plugins']['get'](TrackChangesTable),_0xd1be1e=_0x378e98['plugins']['get']('TableClipboard'),_0x22ad23=_0x378e98['plugins']['get']('TableSelection'),_0x35989a=_0x378e98['plugins']['get'](ut);_0x21771c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x378e98['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x378e98['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x233241=null,_0x47dd12=!0x1;_0x35989a['on']('contentInsertion',(_0x21bd0c,_0x5a2990)=>{_0x47dd12='paste'===_0x5a2990['method'];}),_0x378e98['model']['on']('insertContent',(_0xc20ee8,_0x3cba12)=>{if(!_0x47dd12&&null===_0x22ad23['getSelectedTableCells']())return;const [_0x17c059,_0xda3f23]=_0x3cba12,_0x2084d2=_0x3cba12[_0x3cba12['length']-0x1];_0x2084d2&&_0x2084d2['forceDefaultExecution']||_0x14de96['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x28710c,_0x43a846,_0x1344c4,_0x16410a,_0x329e13){if(_0x43a846&&!_0x43a846['is']('documentSelection'))return!0x1;const _0x685b43=_0x329e13['getTableIfOnlyTableInContent'](_0x28710c,_0x1344c4);if(!_0x685b43||!Ft(_0x685b43,void 0x0,_0x16410a))return!0x1;const _0x1ca07a=_0x16410a['getSelectionAffectedTableCells'](_0x1344c4['document']['selection']);if(!_0x1ca07a['length'])return!0x1;const _0x5ea5ae=_0x1ca07a[0x0]['findAncestor']('table'),_0x3eaa41=_0x16410a['getRowIndexes'](_0x1ca07a),_0x3366bf=_0x16410a['getColumnIndexes'](_0x1ca07a),_0x405ff2={'startRow':_0x3eaa41['first'],'endRow':_0x3eaa41['last'],'startColumn':_0x3366bf['first'],'endColumn':_0x3366bf['last']};return 0x1==_0x1ca07a['length']&&(_0x405ff2['endRow']+=_0x16410a['getRows'](_0x685b43)-0x1,_0x405ff2['endColumn']+=_0x16410a['getColumns'](_0x685b43)-0x1),Ft(_0x5ea5ae,_0x405ff2,_0x16410a);}(_0x17c059,_0xda3f23,_0x378e98['model'],_0x4d4da9,_0xd1be1e)&&(_0xc20ee8['stop'](),_0x233241={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x378e98['model']['change'](()=>{_0x378e98['model']['insertContent'](_0x3cba12[0x0],_0x3cba12[0x1],_0x3cba12[0x2],{'forceDefaultExecution':!0x0});const _0xcb6a5=_0x4681a7(),{rowInsertionRanges:_0x5a79d0,columnInsertionRanges:_0x3dfef8,insertionRanges:_0x41138c,deletionRanges:_0x130ad1,cells:_0xbf099d}=_0x233241;_0x5a79d0['length']&&_0x14de96['markMultiRangeInsertion'](_0x5a79d0,'tablePasteRow',{'tablePasteChainId':_0xcb6a5}),_0x3dfef8['length']&&_0x14de96['markMultiRangeInsertion'](_0x3dfef8,'tablePasteColumn',{'tablePasteChainId':_0xcb6a5}),_0x41138c['length']&&(_0x14de96['markMultiRangeInsertion'](_0x41138c,'tablePaste',{'tablePasteChainId':_0xcb6a5,'skipNestingCheck':!0x0}),_0x41138c['forEach'](_0x172ce2=>_0x172ce2['detach']?.())),_0x130ad1['length']&&(_0x14de96['markMultiRangeDeletion'](_0x130ad1,'tablePaste',{'tablePasteChainId':_0xcb6a5,'skipNestingCheck':!0x0}),_0x130ad1['forEach'](_0x4f447e=>_0x4f447e['detach']?.()));const _0x4f1ef3=_0x14de96['markMultiRangeBlockFormat'](_0xbf099d['map'](({element:_0x274c71})=>_0x274c71),{'formatGroupId':_0x4681a7()},[],'tablePasteCell',{'tablePasteChainId':_0xcb6a5});if(_0x4f1ef3){const _0x1569a5=_0x4f1ef3['getMarkers'](),_0x211819=[];for(const {element:_0x28e65b,attributes:_0x876cb9}of _0xbf099d){if(!_0x876cb9)continue;const _0x2bb13a=_0x378e98['model']['createRangeOn'](_0x28e65b),_0x52a4dd=_0x1569a5['find'](_0x6fb49f=>_0x6fb49f['getRange']()['isEqual'](_0x2bb13a));_0x52a4dd&&_0x211819['push']([_0x52a4dd['name'],_0x876cb9]);}_0x211819['length']&&_0x4f1ef3['setAttribute']('markerAttributes',Object['fromEntries'](_0x211819));}_0x233241=null;}));},{'priority':_0x3029c3['high']+0xa}),_0x35989a['on']('contentInsertion',()=>{_0x47dd12=!0x1;},{'priority':'lowest'}),_0x378e98['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2ea39c,_0x188ddf)=>{const [_0x5ab7fe,_0x1ebd1e,,_0x56ccfe]=_0x188ddf;if(!_0x233241)return;_0x2ea39c['stop']();const _0x57af67=_0x5ab7fe['cell'],_0x588e8f=_0x1ebd1e,_0xc305e0=wt(_0x57af67),_0x4c612d=wt(_0x588e8f);_0x2ea39c['return']=_0x57af67;let _0x27023e=null,_0x4c95e6=null;if(_0x4c612d||_0xc305e0){if(_0xc305e0&&!_0x4c612d){_0x56ccfe['remove'](_0x57af67['getChild'](0x0));for(const _0xa4a04e of Array['from'](_0x588e8f['getChildren']()))_0x56ccfe['insert'](_0xa4a04e,_0x57af67,'end');const _0x5df0cc=_0x233241['rowInsertionIndexes']['includes'](_0x5ab7fe['row']),_0x51e013=_0x233241['columnInsertionIndexes']['includes'](_0x5ab7fe['column']);_0x5df0cc||_0x51e013||(_0x27023e=_0x418bbc['fromRange'](_0x56ccfe['createRangeIn'](_0x57af67)));}else _0x4c612d&&!_0xc305e0&&(_0x4c95e6=_0x56ccfe['createRangeIn'](_0x57af67));}else{const _0x26eb3e=_0x56ccfe['createElement']('tableCellSuggestion'),_0x33fa23=_0x56ccfe['createElement']('tableCellSuggestion');_0x56ccfe['wrap'](_0x56ccfe['createRangeIn'](_0x57af67),_0x33fa23),_0x56ccfe['insert'](_0x26eb3e,_0x57af67,0x0);for(const _0x7a004d of Array['from'](_0x588e8f['getChildren']()))_0x56ccfe['insert'](_0x7a004d,_0x26eb3e,'end');_0x27023e=_0x418bbc['fromRange'](_0x56ccfe['createRangeOn'](_0x26eb3e)),_0x4c95e6=_0x418bbc['fromRange'](_0x56ccfe['createRangeOn'](_0x33fa23));}const _0x1a96b9=Array['from'](_0x588e8f['getAttributes']())['filter'](([_0x239266])=>Mt['includes'](_0x239266));_0x233241['cells']['push']({'element':_0x57af67,'attributes':_0x1a96b9['length']?Object['fromEntries'](_0x1a96b9):null}),_0x27023e&&_0x233241['insertionRanges']['push'](_0x27023e),_0x4c95e6&&_0x233241['deletionRanges']['push'](_0x4c95e6);},{'priority':'high'}),_0x4d4da9['on']('insertColumns',(_0x285806,_0x488b99)=>{const [_0xe778f1,_0x519c89={}]=_0x488b99;if(!_0x233241)return;const _0x57f99e=_0x519c89['at']||0x0,_0x5c8cb1=_0x519c89['columns']||0x1;_0x233241['columnInsertionIndexes']=new Array(_0x5c8cb1)['fill'](_0x57f99e)['map']((_0x192bb1,_0x83f0e7)=>_0x192bb1+_0x83f0e7);for(const {cell:_0x4f5304}of _0x4d4da9['createTableWalker'](_0xe778f1,{'startColumn':_0x57f99e,'endColumn':_0x57f99e+_0x5c8cb1-0x1}))_0x233241['columnInsertionRanges']['push'](_0x378e98['model']['createRangeOn'](_0x4f5304));},{'priority':'low'}),_0x4d4da9['on']('insertRows',(_0x589c95,_0x53b9b7)=>{const [_0x55e54d,_0x1df8fd={}]=_0x53b9b7;if(!_0x233241)return;const _0x535960=_0x1df8fd['at']||0x0,_0x17e740=_0x1df8fd['rows']||0x1;_0x233241['rowInsertionIndexes']=new Array(_0x17e740)['fill'](_0x535960)['map']((_0x1c90cf,_0x4ee6bd)=>_0x1c90cf+_0x4ee6bd);for(const {cell:_0x80bb43}of _0x4d4da9['createTableWalker'](_0x55e54d,{'startRow':_0x535960,'endRow':_0x535960+_0x17e740-0x1}))_0x233241['rowInsertionRanges']['push'](_0x378e98['model']['createRangeOn'](_0x80bb43));},{'priority':'low'}),_0x14de96['descriptionFactory']['registerDescriptionCallback'](_0x18969b=>{if(_0x18969b['subType']&&_0x18969b['subType']['startsWith']('tablePaste'))return _0x18969b['previous']?{}:{'type':'insertion','content':Tt(_0x378e98['locale'],'*Replace\x20table\x20cells*')};});const _0x1f1851=()=>!0x1;for(const _0x19c6e5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x14de96['_suggestionFactory']['registerCustomCallback']('insertion',_0x19c6e5,'join',_0x1f1851),_0x14de96['_suggestionFactory']['registerCustomCallback']('deletion',_0x19c6e5,'join',_0x1f1851),_0x14de96['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x19c6e5,'join',_0x1f1851);_0x14de96['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1f1851),_0x14de96['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x341fa4,_0x403502,_0x2ad916)=>{const _0x534b45=_0x341fa4['map'](_0x2057b4=>_0x2057b4['getContainedElement']())['filter'](_0x437f81=>_0x437f81),_0xfc939=new Map(_0x534b45['map'](_0x3d77d8=>[_0x3d77d8,null]));if(_0x233241){for(const {element:_0x2bd8a6,attributes:_0x1b6b72}of _0x233241['cells'])_0x1b6b72&&_0xfc939['set'](_0x2bd8a6,_0x1b6b72);}else{if(_0x2ad916&&_0x2ad916['markerAttributes'])for(const [_0x55f003,_0x2e384c]of Object['entries'](_0x2ad916['markerAttributes'])){const _0x1876b0=_0x378e98['model']['markers']['get'](_0x55f003),_0x46d825=_0x1876b0?_0x1876b0['getRange']()['getContainedElement']():null;_0x46d825&&_0xfc939['set'](_0x46d825,_0x2e384c);}}_0x378e98['model']['change'](_0x45d762=>{for(const [_0x416554,_0x1558ba]of _0xfc939)_0x45d762['setAttributes']({...Ot,..._0x1558ba},_0x416554);});});const _0x556938=(_0x18c51a,_0x214750)=>{_0x14de96['_suggestionFactory']['registerCustomCallback'](_0x18c51a,'tablePaste',_0x214750,(_0x4a7985,_0x44c4a5,_0x295caa)=>{_0x378e98['model']['change'](_0x1471d9=>{const _0x567975=[];for(const _0x1edd9d of _0x4a7985){const _0xe78efd=_0x1edd9d['start']['nodeAfter'];_0xe78efd['is']('element','tableCellSuggestion')&&_0x567975['push'](_0xe78efd);}_0x14de96['_suggestionFactory']['getSuggestionCallback'](_0x18c51a,null,_0x214750)(_0x4a7985,_0x44c4a5,_0x295caa);for(const _0x2b9ea8 of _0x567975)'$graveyard'!=_0x2b9ea8['root']['rootName']&&_0x1471d9['unwrap'](_0x2b9ea8);});});};_0x556938('insertion','accept'),_0x556938('insertion','discard'),_0x556938('deletion','accept'),_0x556938('deletion','discard'),_0x14de96['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4f2411=>{const _0x5670df=_0x4f2411['map'](_0x528ac8=>_0x528ac8['getContainedElement']()),_0x392f51=_0x5670df[0x0]['findAncestor']('table'),{minRow:_0x24ba35,maxRow:_0x45e85b}=_0x21771c['_getCoordsForCells'](_0x5670df);_0x4d4da9['removeRows'](_0x392f51,{'at':_0x24ba35,'rows':_0x45e85b-_0x24ba35+0x1});}),_0x14de96['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x476236=>{const _0x159f52=_0x476236['map'](_0x5ec782=>_0x5ec782['getContainedElement']()),_0x4a5bb1=_0x159f52[0x0]['findAncestor']('table'),{minColumn:_0x30cb0d,maxColumn:_0x2f42d6}=_0x21771c['_getCoordsForCells'](_0x159f52);_0x4d4da9['removeColumns'](_0x4a5bb1,{'at':_0x30cb0d,'columns':_0x2f42d6-_0x30cb0d+0x1});});const _0x321ef5=(_0x3791a3,_0x589ed2)=>{if(!_0x589ed2['subType']||!_0x589ed2['subType']['startsWith']('tablePaste'))return;const _0x53aff2=_0x589ed2['attributes']['tablePasteChainId'],_0x43efbb=_0x14de96['getSuggestions']()['filter'](_0x5d91e8=>_0x5d91e8['isInContent']&&_0x5d91e8['attributes']&&_0x5d91e8['attributes']['tablePasteChainId']==_0x53aff2);_0x43efbb['length']&&_0x589ed2['getAllAdjacentSuggestions']()['length']!=_0x43efbb['length']&&_0x43efbb['reduce']((_0x3df1ee,_0x3205e2)=>(_0x3df1ee['next']=_0x3205e2,_0x3205e2['previous']=_0x3df1ee,_0x3205e2));};function _0x44efb9(_0x2d1213,_0x2a60b6=!0x0){const {id:_0x4185a9,authorId:_0x359db0}=_0x368712(_0x2d1213['markerName']),_0x43d1c2=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x495c4e=_0x14de96['activeMarkers']['includes'](_0x2d1213['markerName']);return _0x495c4e&&_0x43d1c2['push']('ck-suggestion-marker--active'),{'classes':_0x43d1c2,'attributes':{'data-suggestion':_0x4185a9,'data-author-id':_0x359db0},'priority':_0x495c4e&&_0x2a60b6?0xbc2:0xbb8};}_0x14de96['on']('suggestionLoaded',_0x321ef5,{'priority':'high'}),_0x14de96['on']('suggestionUnloaded',_0x321ef5,{'priority':'high'}),_0x378e98['model']['document']['registerPostFixer'](()=>{let _0x2832d4=!0x1;const _0x30bf2d=Array['from'](_0x378e98['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5cea91,data:_0xc684f4}of _0x30bf2d){const {group:_0x4691c0,type:_0x12edc4,id:_0x45c0a1}=_0x368712(_0x5cea91);if('suggestion'!=_0x4691c0||'deletion'!=_0x12edc4||_0xc684f4['oldRange'])continue;if(!_0x14de96['hasSuggestion'](_0x45c0a1))continue;const _0x152c93=_0x14de96['getSuggestion'](_0x45c0a1)['getRanges'](),_0x41fe37=_0x378e98['plugins']['get']('Users')['me'];for(const _0x1eebf2 of _0x14de96['getSuggestions']()){if(!_0x1eebf2['isInContent']||_0x1eebf2['author']!=_0x41fe37)continue;if('formatBlock'!=_0x1eebf2['type']||'tablePasteCell'!=_0x1eebf2['subType'])continue;if(_0x1eebf2['getRanges']()['every'](_0x4719bc=>_0x152c93['some'](_0x517c54=>_0x517c54['containsRange'](_0x4719bc,!0x0)))){for(const _0x5bbe7b of _0x1eebf2['getAllAdjacentSuggestions']())_0x5bbe7b['isInContent']&&(_0x5bbe7b['discard'](),_0x2832d4=!0x0);}}}return _0x2832d4;}),_0x378e98['model']['document']['registerPostFixer'](_0x5bcdc3=>{const _0x24bd98=_0x378e98['commands']['get']('redo');if(!_0x24bd98||!_0x24bd98['_createdBatches']['has'](_0x5bcdc3['batch']))return!0x1;let _0x2e8b65=!0x1;const _0x214fd6=_0x378e98['plugins']['get']('Users')['me'],_0xc82f4a=_0x378e98['model']['document']['differ']['getChanges'](),_0x23805c=Array['from'](_0x378e98['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x501d0b,data:_0x399e1f})=>{const {group:_0x559d61,subType:_0x21d0c0,authorId:_0x36e302}=_0x368712(_0x501d0b);return'suggestion'==_0x559d61&&'tablePaste'==_0x21d0c0&&_0x36e302==_0x214fd6['id']&&!_0x399e1f['oldRange'];});for(const _0x34db79 of _0xc82f4a){if('insert'!=_0x34db79['type']||'tableCellSuggestion'!=_0x34db79['name']||0x1!=_0x34db79['length'])continue;const _0x3155df=_0x5bcdc3['createRange'](_0x34db79['position'],_0x34db79['position']['getShiftedBy'](0x1));if(!_0x23805c['find'](({data:_0x4c6e3d})=>_0x4c6e3d['newRange']['isEqual'](_0x3155df))){for(const {name:_0x55d610,data:_0x136258}of _0x23805c)if(_0x3155df['containsRange'](_0x136258['newRange'])){_0x5bcdc3['updateMarker'](_0x55d610,{'range':_0x3155df}),_0x2e8b65=!0x0;break;}}}return _0x2e8b65;}),_0x378e98['model']['document']['registerPostFixer'](_0x258a1b=>{let _0x49eb11=!0x1;const _0x75b58d=_0x378e98['plugins']['get']('Users')['me'],_0x246126=_0x14de96['getSuggestions']()['filter'](_0x553961=>_0x553961['isInContent']&&_0x553961['author']==_0x75b58d),_0x592ef9=new Set(),_0xfde95c=new Set();for(const _0x572bd0 of _0x246126)if('tablePaste'==_0x572bd0['subType'])for(const _0x3bdafe of _0x572bd0['getMarkers']()){const _0x1fe10f=_0x3bdafe['getRange']()['getContainedElement']();if(_0x1fe10f){if(_0x1fe10f['is']('element','tableCellSuggestion')&&wt(_0x1fe10f)){_0x572bd0['removeMarker'](_0x3bdafe['name']),_0x592ef9['add'](_0x1fe10f),_0x49eb11=!0x0;const _0xf01b68=_0x1fe10f['nextSibling'],_0x35de0d=_0x1fe10f['previousSibling'],_0x5c0fea=_0xf01b68&&_0xf01b68['is']('element','tableCellSuggestion'),_0x31380d=_0x35de0d&&_0x35de0d['is']('element','tableCellSuggestion');_0x5c0fea&&!_0x592ef9['has'](_0xf01b68)&&_0xfde95c['add'](_0xf01b68),_0x31380d&&!_0x592ef9['has'](_0x35de0d)&&_0xfde95c['add'](_0x35de0d);}else _0x1fe10f['is']('element','paragraph')&&_0x1fe10f['isEmpty']&&(_0x572bd0['removeMarker'](_0x3bdafe['name']),_0x49eb11=!0x0);}}else{if('tablePasteCell'==_0x572bd0['subType']){if(!_0x572bd0['attributes']||!_0x572bd0['attributes']['tablePasteChainId'])continue;const _0x313e58=_0x572bd0['attributes']['markerAttributes'];if(_0x313e58&&Object['keys'](_0x313e58)['length'])continue;const _0x5a635d=_0x572bd0['attributes']['tablePasteChainId'];let _0x15e384=!0x0,_0xed7b5d=!0x0;for(const _0x19a7bc of _0x246126)if(_0x19a7bc['subType']&&_0x19a7bc['subType']['startsWith']('tablePaste')){if(!_0x19a7bc['attributes']['tablePasteChainId']){_0xed7b5d=!0x1;break;}if(_0x19a7bc['id']!=_0x572bd0['id']&&_0x19a7bc['attributes']['tablePasteChainId']==_0x5a635d){_0x15e384=!0x1;break;}}_0xed7b5d&&_0x15e384&&(_0x572bd0['removeMarkers'](),_0x49eb11=!0x0);}}for(const _0x1c0816 of _0x592ef9)_0x258a1b['remove'](_0x1c0816);for(const _0x19bc3e of _0xfde95c)_0x258a1b['unwrap'](_0x19bc3e);return _0x49eb11;}),_0x378e98['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1d3856=>_0x44efb9(_0x1d3856),'converterPriority':'high'}),_0x378e98['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1e3ae7,_0x41f246)=>_0x41f246['options']['showSuggestionHighlights']?_0x44efb9(_0x1e3ae7,!0x1):null,'converterPriority':'high'});const _0x5431c7=_0x378e98['editing']['view'];this['listenTo'](_0x5431c7['document'],'clipboardOutput',(_0x3dc9e8,_0x580085)=>{const _0x10a9e1=[];for(const _0x174469 of _0x5431c7['createRangeIn'](_0x580085['content'])['getItems']())_0x174469['is']('element','suggestion-td')&&_0x10a9e1['push'](_0x174469);_0x5431c7['change'](_0x2cd27f=>{for(const _0x247861 of _0x10a9e1)_0x2cd27f['move'](_0x2cd27f['createRangeIn'](_0x247861),_0x2cd27f['createPositionBefore'](_0x247861)),_0x2cd27f['remove'](_0x247861);});});}}function wt(_0x5f4ed1){if(_0x5f4ed1['isEmpty'])return!0x0;const _0x77248=_0x5f4ed1['getChild'](0x0);return _0x77248['is']('element','paragraph')&&_0x77248['isEmpty'];}function Ft(_0x497488,_0x4d1460={},_0x179c58){for(const {isAnchor:_0x28c1b9,cellHeight:_0x5a75ed,cellWidth:_0x410b81}of _0x179c58['createTableWalker'](_0x497488,{'includeAllSlots':!0x0,..._0x4d1460}))if(!_0x28c1b9||0x1!=_0x5a75ed||0x1!=_0x410b81)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends _0x3ea3b4{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x50986e=this['editor']['plugins']['get']('TrackChangesEditing');_0x50986e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x50986e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x50986e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50986e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x50986e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x50986e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3df99f,_0x2d3a83){const _0x45a0b4=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcc6487=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2414b9=_0x2d3a83['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5c950a=_0xcc6487['getColumnGroupElement'](_0x2414b9);let _0x5a1c8a=_0x5c950a?_0xcc6487['getTableColumnsWidths'](_0x5c950a):null,_0x439a82=_0x2414b9['getAttribute']('tableWidth')||null;const _0x1f7d87=_0x2d3a83['tableWidth']||_0x439a82,_0x46ab2f=_0x2d3a83['columnWidths']||_0x5a1c8a,_0x2dd862=this['editor']['plugins']['get']('Users')['me'];for(const _0x63760f of _0x45a0b4['getSuggestions']()){const _0x407890=_0x63760f['getContainedElement']();if('resizeTable'===_0x63760f['subType']&&_0x407890===_0x2414b9){_0x63760f['author']!==_0x2dd862&&_0x63760f['discard']();const _0x37af35=_0x63760f['data']['commandParams'];_0x439a82=_0x37af35[0x0]['tableWidth'],_0x5a1c8a=_0x37af35[0x0]['columnWidths'];break;}}_0x3df99f({'table':_0x2414b9,'tableWidth':_0x1f7d87,'columnWidths':_0x46ab2f}),_0x45a0b4['markBlockFormat'](_0x2414b9,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x439a82,'columnWidths':_0x5a1c8a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x30cacf){if('formatBlock'!=_0x30cacf['type']&&'formatInline'!=_0x30cacf['type'])return;const {data:_0xa175f}=_0x30cacf;if(_0xa175f&&'resizeTable'===_0xa175f['formatGroupId']){const _0x5aa028='*Format:*\x20resize\x20table';return{'type':'format','content':Tt(this['editor']['locale'],_0x5aa028)};}}}class TrackChangesTemplate extends _0x3ea3b4{['afterInit'](){const _0x3c5ebc=this['editor'];_0x3c5ebc['plugins']['has']('Template')&&_0x3c5ebc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends _0x3ea3b4{['afterInit'](){const _0x5730cc=this['editor'];if(!_0x5730cc['commands']['get']('insertTableOfContents'))return;_0x5730cc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5dbe61=_0x5730cc['plugins']['get']('TrackChangesEditing'),_0x2deb68=_0x5730cc['locale'];_0x5dbe61['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1a53c0=>Tt(_0x2deb68,'ELEMENT_TABLE_OF_CONTENTS',_0x1a53c0));}}class TrackChangesTitle extends _0x3ea3b4{['afterInit'](){const _0x2f5d76=this['editor'];if(!_0x2f5d76['plugins']['has']('Title'))return;_0x2f5d76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Tt(_0x2f5d76['locale'],'ELEMENT_TITLE')),_0x2f5d76['model']['document']['registerPostFixer'](_0x487a4d=>{let _0x30bdbe=!0x1;const _0x5209e8=Array['from'](_0x2f5d76['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4296f9,data:_0x34dafc}of _0x5209e8){const {group:_0x298611}=_0x368712(_0x4296f9);if('suggestion'!==_0x298611||!_0x34dafc['newRange'])continue;const _0x11096a=_0x34dafc['newRange'],_0x32342b=_0x11096a['end']['nodeBefore'];if(!_0x32342b||!_0x32342b['is']('element','title-content'))continue;if(!_0x11096a['start']['isTouching'](_0x11096a['end']))continue;const _0x50e8a1=_0x2f5d76['model']['schema']['getNearestSelectionRange'](_0x11096a['end'],'forward');if(_0x50e8a1&&_0x50e8a1['isCollapsed']){const _0x10f5a7=_0x487a4d['createRange'](_0x11096a['start'],_0x50e8a1['start']);_0x10f5a7['isEqual'](_0x11096a)||(_0x487a4d['updateMarker'](_0x4296f9,{'range':_0x10f5a7}),_0x30bdbe=!0x0);}_0x30bdbe||(_0x487a4d['removeMarker'](_0x4296f9),_0x30bdbe=!0x0);}return _0x30bdbe;});}}class TrackChangesUploadcare extends _0x3ea3b4{['afterInit'](){const _0x4938eb=this['editor'],_0x3e154=_0x4938eb['plugins']['get']('TrackChangesEditing');_0x4938eb['plugins']['has']('Uploadcare')&&(_0x3e154['enableCommand']('uploadcare'),_0x4938eb['plugins']['has']('UploadcareImageEdit')&&(_0x3e154['enableCommand']('uploadcareImageEdit'),_0x3e154['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3e154['descriptionFactory']['registerDescriptionCallback'](_0x5da9bf=>{if('attribute'!=_0x5da9bf['type'])return;const {data:_0xc16ce2}=_0x5da9bf;return _0xc16ce2&&'uploadcareImageId'==_0xc16ce2['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends _0x3ea3b4{['afterInit'](){const _0x10f95f=this['editor'],_0x2a11dc=_0x10f95f['plugins']['get']('TrackChangesEditing');_0x10f95f['plugins']['has']('UndoEditing')&&(_0x2a11dc['enableCommand']('undo'),_0x2a11dc['enableCommand']('redo'));}}class TrackChangesTableCaption extends _0x3ea3b4{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x5929f4=this['editor'];if(!_0x5929f4['plugins']['has']('TableCaptionEditing'))return;_0x5929f4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends _0x3ea3b4{['tableProperties'];['tableCellProperties'];constructor(_0x56d62f){super(_0x56d62f),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x3fc535=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x18b9f3 of this['tableProperties'])_0x3fc535['enableCommand'](_0x18b9f3,(_0x57436f,_0x4570bb)=>{const _0x2aff5a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x18b9f3,[_0x2aff5a],this['tableProperties'],'tableProperties',_0x57436f,_0x4570bb);});_0x3fc535['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3fc535['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fc535['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x405c66,_0x5378a1)=>this['handleDiscardAction'](this['tableProperties'],_0x405c66,_0x5378a1)),_0x3fc535['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3b247f of this['tableCellProperties'])this['editor']['commands']['get'](_0x3b247f)&&_0x3fc535['enableCommand'](_0x3b247f,(_0x104e8e,_0x247622)=>{const _0x34f09a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3b247f,_0x34f09a,this['tableCellProperties'],'tableCellProperties',_0x104e8e,_0x247622);});_0x3fc535['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3fc535['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fc535['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x167939,_0x45a288)=>this['handleDiscardAction'](this['tableCellProperties'],_0x167939,_0x45a288)),_0x3fc535['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3fc535['descriptionFactory']['registerAttributeLabel']('tableCellType',Tt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x3fc535['descriptionFactory']['registerDescriptionCallback'](_0x134154=>this['handleSuggestionDescription'](_0x134154)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x43b366,_0x4e4562,_0x4628f6,_0x467c93,_0x58fd6e,_0x3901ab){const _0x15bb83=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3901ab['batch'],()=>{for(const _0x440a38 of _0x4e4562){if(this['_getSuggestion'](_0x440a38,_0x467c93))_0x58fd6e(_0x3901ab);else{const _0x2ab6fd={};for(const _0x28c565 of _0x4628f6){const _0x3c10f5=_0x440a38['getAttribute'](_0x28c565);void 0x0!==_0x3c10f5&&(_0x2ab6fd[_0x28c565]=_0x3c10f5);}_0x58fd6e(_0x3901ab),_0x15bb83['markBlockFormat'](_0x440a38,{'commandParams':[_0x2ab6fd]},[],_0x467c93);}}});}['handleDiscardAction'](_0x1e6da5,_0x25c94a,_0x367184){const _0x366b4b=_0x25c94a[0x0]['start']['nodeAfter'],_0x1bb562=_0x367184['commandParams'][0x0];this['editor']['model']['change'](_0x44ff74=>{for(const _0x27359f of _0x1e6da5)void 0x0!==_0x1bb562[_0x27359f]?_0x44ff74['setAttribute'](_0x27359f,_0x1bb562[_0x27359f],_0x366b4b):_0x44ff74['removeAttribute'](_0x27359f,_0x366b4b);});}['handleSuggestionDescription'](_0x178e8d){if(_0x178e8d['data'])switch(_0x178e8d['subType']){case'tableProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x123bda,_0x3079ed){const _0x452269=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x176a27 of _0x452269['getSuggestions']({'skipNotAttached':!0x0})){const _0x1c73bf=_0x176a27['getContainedElement']();if(_0x176a27['subType']===_0x3079ed&&_0x1c73bf===_0x123bda)return _0x176a27;}return null;}['_registerTablePropertiesAttributes'](){const _0x3a4884=this['editor']['plugins']['get']('TrackChangesEditing'),_0x126e50=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x11c7b1 of _0x126e50){const _0x1eba50=_0x11c7b1['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x3a4884['descriptionFactory']['registerAttributeLabel'](_0x11c7b1,Tt(this['editor']['locale'],'FORMAT_'+_0x1eba50));}}}class TrackChangesLineHeight extends _0x3ea3b4{['afterInit'](){const _0x53c6b4=this['editor'];if(!_0x53c6b4['plugins']['has']('LineHeight'))return;const _0x4e52df=_0x53c6b4['plugins']['get']('TrackChangesEditing'),_0x4614c0=_0x53c6b4['locale'];_0x4e52df['enableDefaultAttributesIntegration']('lineHeight'),_0x4e52df['descriptionFactory']['registerAttributeLabel']('lineHeight',Tt(_0x4614c0,'FORMAT_LINE_HEIGHT'));}}const Bt='$elementName';class TrackChangesEditing extends _0x3ea3b4{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x181319,_0x133a74,_0x2735a2,_0x5dde1d,_0x42cf99,TrackChangesAIAssistant,TrackChangesAI,TrackChangesAIQuickActions,TrackChangesAlignment,TrackChangesBasicStyles,TrackChangesBlockQuote,TrackChangesBookmark,TrackChangesCKBox,TrackChangesCaseChange,TrackChangesCodeBlock,TrackChangesComments,TrackChangesDeleteCommand,TrackChangesEmoji,TrackChangesEnterCommand,TrackChangesFindAndReplace,TrackChangesFont,TrackChangesFootnotes,TrackChangesFormatPainter,TrackChangesGeneralHtmlSupport,TrackChangesHeading,TrackChangesHighlight,TrackChangesHorizontalLine,TrackChangesHtmlEmbed,TrackChangesImage,TrackChangesImageStyle,TrackChangesImageReplace,TrackChangesImportWord,TrackChangesIndent,TrackChangesInputCommand,TrackChangesLegacyList,TrackChangesLegacyListProperties,TrackChangesMultiLevelList,TrackChangesLink,TrackChangesList,TrackChangesLineHeight,TrackChangesDocumentListProperties,TrackChangesMediaEmbed,TrackChangesMediaEmbedStyle,TrackChangesMention,TrackChangesMergeFields,TrackChangesPageBreak,TrackChangesParagraph,TrackChangesReplaceSourceCommand,TrackChangesRemoveFormat,TrackChangesRestrictedEditingMode,TrackChangesShiftEnterCommand,TrackChangesStandardEditingMode,TrackChangesStylesDropdown,TrackChangesTable,TrackChangesTableMergeSplit,TrackChangesTableHeadings,TrackChangesTableFooters,TrackChangesTableLayout,TrackChangesTableCaption,TrackChangesTableClipboard,TrackChangesTableColumnResize,TrackChangesTableOfContents,TrackChangesTableProperties,TrackChangesTemplate,TrackChangesTitle,TrackChangesUploadcare,TrackChangesUndo];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1ba7b9){super(_0x1ba7b9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x565b1d,_0x22c598,_0xd0bbd2,_0x24a1bf)=>{this['_model']['change'](()=>{for(const _0x2a7e38 of[..._0x24a1bf,..._0xd0bbd2])this['_model']['markers']['has'](_0x2a7e38)&&_0x1ba7b9['editing']['reconvertMarker'](_0x2a7e38);});}),this['descriptionFactory']=new SuggestionDescriptionFactory(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1ba7b9['plugins']['get'](_0x181319),this['_suggestionsConversion']=_0x1ba7b9['plugins']['get'](_0x133a74),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1ba7b9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1ba7b9['config']['get']('trackChanges.trackFormatChanges'),_0x1ba7b9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1ba7b9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x1ba7b9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x278773=this['editor'];_0x278773['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x21af88,{writer:_0x42e5a7})=>{let _0x4ec091='suggestion:'+_0x21af88['getAttribute']('suggestion-type')+':'+_0x21af88['getAttribute']('id');return _0x21af88['getAttribute']('marker-count')&&(_0x4ec091+=':'+_0x21af88['getAttribute']('marker-count')),_0x42e5a7['createElement']('$marker',{'data-name':_0x4ec091});}}),_0x278773['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x278773['model']['document']['registerPostFixer'](_0x4e25d5=>{let _0x27bc4a=!0x1;const _0x17fcc8=Array['from'](_0x278773['model']['document']['differ']['getChangedMarkers']()),_0x29945d=new Set();for(const {name:_0x323bad,data:_0x31d5c2}of _0x17fcc8){const {group:_0x5d4c4d,type:_0x32a63f,subType:_0x3e535d,id:_0x5c85a5}=_0x368712(_0x323bad);if('suggestion'!==_0x5d4c4d)continue;const _0x45a4a5=_0x3e535d?'suggestion:'+_0x32a63f+':'+_0x3e535d+':'+_0x5c85a5:'suggestion:'+_0x32a63f+':'+_0x5c85a5,_0x165982=_0x278773['model']['markers']['getMarkersGroup'](_0x45a4a5),_0x29569d=_0x278773['model']['markers']['get'](_0x323bad),_0x17df3d=this['_suggestions']['get'](_0x5c85a5);if(null!=_0x31d5c2['newRange']){'formatInline'==_0x32a63f&&(_0x27bc4a=_0x27bc4a||Pt(_0x31d5c2['newRange'],_0x323bad,_0x4e25d5,_0x278773['model']['schema']));const _0x51c2cd='attribute'==_0x32a63f&&this['_suggestionsConversion']['isBlockAttribute'](Xt(_0x3e535d)),_0x163e02='attribute'==_0x32a63f&&this['_suggestionsConversion']['isInlineAttribute'](Xt(_0x3e535d));if(_0x31d5c2['newRange']['isCollapsed']||'$graveyard'==_0x31d5c2['newRange']['root']['rootName']||'formatBlock'==_0x32a63f&&!Ut(_0x31d5c2['newRange'])||_0x51c2cd&&!Ut(_0x31d5c2['newRange'])||_0x163e02&&Gt(_0x31d5c2['newRange'])||'deletion'==_0x32a63f&&Gt(_0x31d5c2['newRange'])||_0x29569d&&Ht(_0x29569d,_0x165982))_0x4e25d5['removeMarker'](_0x323bad),_0x27bc4a=!0x0;else{if(!_0x17df3d||!_0x17df3d['isInContent'])continue;if(_0x31d5c2['newRange']&&_0x31d5c2['oldRange']&&_0x31d5c2['newRange']['isEqual'](_0x31d5c2['oldRange']))continue;_0x29945d['add'](_0x17df3d);}}}return _0x29945d['size']>0x0&&(_0x27bc4a=!!this['_joinWithAdjacentSuggestions'](_0x29945d)||_0x27bc4a),_0x27bc4a;}),_0x278773['model']['document']['registerPostFixer'](_0x4bdc09=>{let _0x2f4da9=!0x1;for(const _0x5d2553 of _0x278773['model']['document']['differ']['getChanges']())if('insert'==_0x5d2553['type'])for(const _0x18bbb8 of this['_suggestions']['values']()){if(_0x18bbb8['isMultiRange']||!_0x18bbb8['isInContent'])continue;const _0x5801ff='formatBlock'==_0x18bbb8['type'],_0x4a4f7c=this['_getAttributeKey'](_0x18bbb8),_0x135f0f=_0x4a4f7c&&this['_suggestionsConversion']['isBlockAttribute'](_0x4a4f7c);if(!_0x5801ff&&!_0x135f0f)continue;const _0x3c497b=_0x18bbb8['getFirstRange']();if(_0x3c497b['start']['parent']!=_0x3c497b['end']['parent']&&!_0x3c497b['end']['isAtEnd']){const _0x39aa71=_0x278773['model']['createPositionAt'](_0x3c497b['start']['nodeAfter'],'end'),_0x4dcb1=_0x278773['model']['createRange'](_0x3c497b['start'],_0x39aa71);_0x4bdc09['updateMarker'](_0x18bbb8['getFirstMarker'](),{'range':_0x4dcb1}),_0x2f4da9=!0x0;}}return _0x2f4da9;}),_0x278773['model']['document']['registerPostFixer'](_0x5cb22f=>this['_processAttributeChanges'](_0x5cb22f)),_0x278773['model']['document']['registerPostFixer'](_0x4b46e2=>!_0x4b46e2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4b46e2)),_0x278773['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x278773['model']['document']['on']('change:data',(_0x4a8bf8,_0x2bf7b7)=>{if(!_0x2bf7b7['isLocal']||_0x2bf7b7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1c1c90=_0x278773['model']['document']['differ']['getChanges']();if(0x0==_0x1c1c90['length'])return;const _0x528d77=[],_0xebd2a8=_0x1c1c90['filter'](_0x5cca7c=>'attribute'==_0x5cca7c['type']),_0x226185=_0x1c1c90['filter'](_0x17b48f=>'insert'==_0x17b48f['type']&&'$text'!=_0x17b48f['name']);for(const _0x3955d0 of _0xebd2a8)this['_suggestionsConversion']['isRegisteredAttribute'](_0x3955d0['attributeKey'])&&_0x528d77['push']({'key':_0x3955d0['attributeKey'],'newValue':_0x3955d0['attributeNewValue'],'oldValue':_0x3955d0['attributeOldValue'],'range':$t(_0x3955d0['range'],_0x278773['model'])});for(const _0x41e43c of _0x226185){if('rename'!=_0x41e43c['action']&&'refresh'!=_0x41e43c['action'])continue;const _0x1d0d44=Vt(_0x41e43c['position']['nodeAfter'],_0x278773['model']),_0x146dc7=_0x41e43c['before'];'rename'==_0x41e43c['action']&&_0x528d77['push']({'key':Bt,'newValue':_0x41e43c['name'],'oldValue':_0x146dc7['name'],'range':_0x1d0d44});for(const [_0x58d5b6,_0x1e54fa]of _0x146dc7['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x58d5b6))continue;const _0x7f5c51=_0x41e43c['attributes']['get'](_0x58d5b6);_0x1e54fa!==_0x7f5c51&&_0x528d77['push']({'key':_0x58d5b6,'newValue':_0x7f5c51,'oldValue':_0x1e54fa,'range':_0x1d0d44});}for(const [_0x402b9d,_0x9906c9]of _0x41e43c['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x402b9d)&&(_0x146dc7['attributes']['has'](_0x402b9d)||_0x528d77['push']({'key':_0x402b9d,'newValue':_0x9906c9,'oldValue':null,'range':_0x1d0d44}));}0x0!=_0x528d77['length']&&_0x278773['model']['enqueueChange'](_0x2bf7b7,_0x5544da=>{const _0x48090a=_0x4681a7();for(const {range:_0x2130d2,key:_0x471db3,oldValue:_0x55b5b3,newValue:_0x1bf6d7}of _0x528d77)this['markAttributeChange'](_0x2130d2,_0x471db3,_0x55b5b3,_0x1bf6d7,{'groupId':_0x48090a});this['_reduceExistingSuggestions'](_0x5544da,_0x528d77);});},{'priority':'lowest'}),_0x278773['model']['markers']['on']('update:suggestion',(_0xd6119d,_0x2413a0,_0xdbe13b)=>{if(null==_0xdbe13b){const {id:_0x2bb3db}=_0x368712(_0x2413a0['name']),_0x2aa44c=this['_suggestions']['get'](_0x2bb3db);_0x2aa44c&&_0x2aa44c['addMarkerName'](_0x2413a0['name']);}}),_0x278773['model']['document']['on']('change:data',()=>{const _0x53eeb1=Array['from'](_0x278773['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2516ff=>'suggestion'===_0x368712(_0x2516ff['name'])['group']);if(0x0===_0x53eeb1['length'])return;_0x53eeb1['sort']((_0x263ce8,_0x21658b)=>{const _0x21240c=_0x263ce8['data']['oldRange'],_0x3124f4=_0x21658b['data']['oldRange'];return null===_0x21240c&&null===_0x3124f4?0x0:null===_0x21240c&&null!==_0x3124f4?-0x1:null!==_0x21240c&&null===_0x3124f4?0x1:_0x21240c['start']['isBefore'](_0x3124f4['start'])?-0x1:0x1;});const _0x469c09=new Set(),_0x13a092=new Set();for(const {name:_0x56013,data:_0xb7c82}of _0x53eeb1){const {id:_0x253bf9}=_0x368712(_0x56013);if(null===_0xb7c82['oldRange']){const _0x3f571c=this['_handleNewSuggestionMarker'](_0x56013);_0x13a092['add'](_0x3f571c);}else{const _0x4296a9=this['_suggestions']['get'](_0x253bf9);null!==_0xb7c82['newRange']||_0x4296a9['isInContent']?(_0x469c09['add'](_0x4296a9['head']),_0x13a092['add'](_0x4296a9)):this['_removeSuggestion'](_0x4296a9);}}_0x13a092['size']>0x0&&this['_refreshSuggestionsChain'](_0x13a092);for(const _0x31e9cf of _0x469c09)this['fire']('suggestionChanged',_0x31e9cf);}),_0x278773['model']['on']('applyOperation',(_0x25d9de,_0x433deb)=>{const _0x429a51=_0x433deb[0x0];if(!this['_suggestions']['size'])return;if(!_0x429a51['isDocumentOperation'])return;if(_0x429a51['batch']['isUndo']||!_0x429a51['batch']['isLocal'])return;let _0x56eaed,_0x477b59;switch(_0x429a51['type']){case'insert':_0x56eaed=_0x278773['model']['createPositionAt'](_0x429a51['position']),_0x477b59=_0x56eaed['getShiftedBy'](_0x429a51['howMany']);break;case'split':_0x56eaed=_0x278773['model']['createPositionAt'](_0x429a51['splitPosition']),_0x477b59=_0x278773['model']['createPositionAt'](_0x429a51['moveTargetPosition']);break;case'move':_0x56eaed=_0x278773['model']['createPositionAt'](_0x429a51['targetPosition']),_0x477b59=_0x56eaed['getShiftedBy'](_0x429a51['howMany']);break;default:return;}const _0x51745d=_0x278773['model']['createRange'](_0x56eaed,_0x477b59);_0x278773['model']['change'](()=>{for(const {suggestion:_0x348b29,meta:_0x11d93b}of this['_findSuggestions'](_0x51745d)){if(_0x348b29['isMultiRange'])continue;if('formatInline'==_0x348b29['type'])continue;const _0x303fa1=this['_getAttributeKey'](_0x348b29);if(_0x303fa1&&this['_suggestionsConversion']['isBlockAttribute'](_0x303fa1)&&'split'!=_0x429a51['type'])continue;const _0x498f66=_0x348b29['data']&&_0x348b29['data']['multipleBlocks'];('formatBlock'!=_0x348b29['type']||'split'==_0x429a51['type']&&!_0x498f66)&&(_0x11d93b['containsRangeInObject']||'insertion'==_0x348b29['type']&&_0x11d93b['isOwn']||_0x348b29['getFirstRange']()['containsRange'](_0x51745d)&&this['_breakSuggestionMarker'](_0x348b29,_0x56eaed,_0x477b59));}});},{'priority':'lowest'}),_0x278773['model']['on']('deleteContent',(_0x39b97d,_0x550c6a)=>{const _0x12cdda=_0x550c6a[0x0],_0xac6169=_0x550c6a[0x1];if(_0xac6169&&_0xac6169['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x12cdda['isCollapsed'])return;const _0x3be5d2=_0x278773['model']['schema'],{start:_0x1a1aa5,end:_0x2d497a}=_0x12cdda['getFirstRange'](),_0x261113=_0x1a1aa5['nodeAfter']&&_0x3be5d2['isLimit'](_0x1a1aa5['nodeAfter'])?null:_0x3be5d2['getNearestSelectionRange'](_0x1a1aa5,'forward'),_0x149c3f=_0x2d497a['nodeBefore']&&_0x3be5d2['isLimit'](_0x2d497a['nodeBefore'])?null:_0x3be5d2['getNearestSelectionRange'](_0x2d497a,'backward'),_0x46fb95=_0x278773['model']['createRange'](_0x261113?_0x261113['start']:_0x1a1aa5,_0x149c3f?_0x149c3f['end']:_0x2d497a);_0x278773['model']['change'](_0x16cd91=>{this['markDeletion'](_0x46fb95);const _0x4d2b3e=_0x278773['model']['schema']['getNearestSelectionRange'](_0x46fb95['start']);_0x12cdda['is']('documentSelection')?_0x16cd91['setSelection'](_0x4d2b3e):_0x12cdda['setTo'](_0x4d2b3e);}),_0x39b97d['stop']();},{'priority':_0x3029c3['normal']+0xa}),_0x278773['model']['on']('insertContent',(_0x3c3dfe,_0x9d4b37)=>{const _0x404af8=_0x9d4b37[_0x9d4b37['length']-0x1];_0x404af8&&_0x404af8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x278773['model']['change'](()=>{let _0x4b5205=_0x278773['model']['insertContent'](_0x9d4b37[0x0],_0x9d4b37[0x1],_0x9d4b37[0x2],{'forceDefaultExecution':!0x0});if(!_0x4b5205)return;_0x3c3dfe['return']=_0x4b5205['clone']();const _0x42d102=_0x4b5205['end']['nodeBefore'],_0x3eb6c6=_0x278773['model']['schema'];_0x42d102&&_0x3eb6c6['isBlock'](_0x42d102)&&!_0x3eb6c6['isObject'](_0x42d102)&&(_0x4b5205=_0x278773['model']['createRange'](_0x4b5205['start'],_0x278773['model']['createPositionAt'](_0x42d102,'end'))),this['markInsertion'](_0x4b5205);}),_0x3c3dfe['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3dcf85=new AcceptSuggestionCommand(_0x278773,this['_suggestions']);_0x278773['commands']['add']('acceptSuggestion',_0x3dcf85),this['enableCommand']('acceptSuggestion');const _0x244e55=new DiscardSuggestionCommand(_0x278773,this['_suggestions']);_0x278773['commands']['add']('discardSuggestion',_0x244e55),this['enableCommand']('discardSuggestion'),_0x278773['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x278773,_0x3dcf85,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x278773['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x278773,_0x244e55,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x278773['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x278773,_0x3dcf85,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x278773['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x278773,_0x244e55,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x540c85=_0x278773['plugins']['get'](_0x181319);this['listenTo'](_0x540c85,'addComment',(_0x2d94f7,{threadId:_0x45c735})=>{const _0x365e03=this['_suggestions']['get'](_0x45c735);_0x365e03&&_0x365e03['commentThread']&&0x1===_0x365e03['commentThread']['length']&&this['_updateSuggestionData'](_0x45c735,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x540c85,'removeComment',(_0x3b9290,{threadId:_0x43054c})=>{const _0xea3948=this['_suggestions']['get'](_0x43054c);_0xea3948&&_0xea3948['commentThread']&&!_0xea3948['commentThread']['length']&&this['_updateSuggestionData'](_0x43054c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5c9058){const _0x363bc6=_0x60a0df([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x2f9c77=0x3d8d0df,_0x1d87f1=0x3df5b57^_0x2f9c77,_0x12097a=window[_0x60a0df([0x44,0x61,0x74,0x65])][_0x60a0df([0x6e,0x6f,0x77])](),_0x2dc9de=_0x5c9058[_0x60a0df([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4d83fd=new window[(_0x60a0df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d43f6=>{_0x2dc9de[_0x60a0df([0x6f,0x6e,0x63,0x65])](_0x60a0df([0x72,0x65,0x61,0x64,0x79]),_0x5d43f6);}),_0x175525={[_0x60a0df([0x6b,0x74,0x79])]:_0x60a0df([0x45,0x43]),[_0x60a0df([0x75,0x73,0x65])]:_0x60a0df([0x73,0x69,0x67]),[_0x60a0df([0x63,0x72,0x76])]:_0x60a0df([0x50,0x2d,0x32,0x35,0x36]),[_0x60a0df([0x78])]:_0x60a0df([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]),[_0x60a0df([0x79])]:_0x60a0df([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]),[_0x60a0df([0x61,0x6c,0x67])]:_0x60a0df([0x45,0x53,0x32,0x35,0x36])},_0xb92731=_0x2dc9de[_0x60a0df([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x60a0df([0x67,0x65,0x74])](_0x60a0df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2349a3(){let _0x2ac91e,_0x310d76=null,_0x4d182c=null;try{if(_0xb92731==_0x60a0df([0x47,0x50,0x4c]))return _0x60a0df([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2ac91e=_0x387ae4(),!_0x2ac91e)return _0x60a0df([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2ac91e[_0x60a0df([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d182c=_0x9076a4(_0x2ac91e[_0x60a0df([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2ac91e[_0x60a0df([0x6a,0x74,0x69])])),await _0x3669ce()?_0x587888()?_0x2ee112()?_0x60a0df([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4132b6()?(_0x2ac91e[_0x60a0df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x60a0df([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x310d76=_0x351e38(_0x60a0df([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x24bf72()):_0x60a0df([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x60a0df([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x60a0df([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x60a0df([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ee112(){const _0x591380=[_0x60a0df([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x60a0df([0x74,0x72,0x69,0x61,0x6c])][_0x60a0df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ac91e[_0x60a0df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x12097a/0x3e8:0xe10*_0x1d87f1;return _0x2ac91e[_0x60a0df([0x65,0x78,0x70])]<_0x591380;}function _0x587888(){const _0x4c6de6=_0x2ac91e[_0x60a0df([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4c6de6)return!0x1;if(_0x4c6de6[_0x60a0df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x60a0df([0x2a])))return!0x0;if(_0x4c6de6[_0x60a0df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x60a0df([0x54,0x43])))return!0x0;if(_0x4c6de6[_0x60a0df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x60a0df([0x52,0x54,0x43]))){if(_0x29dda8())return!0x0;if(_0x413699()||_0x3327b9())return!0x0;}return!0x1;}function _0x4132b6(){const _0x4541df=_0x2ac91e[_0x60a0df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4541df||0x0==_0x4541df[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3062db}=new URL(window[_0x60a0df([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4541df[_0x60a0df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3062db))return!0x0;const _0x61ee88=_0x3062db[_0x60a0df([0x73,0x70,0x6c,0x69,0x74])](_0x60a0df([0x2e]));return _0x4541df[_0x60a0df([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x98a509=>_0x98a509[_0x60a0df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x60a0df([0x2a])))[_0x60a0df([0x6d,0x61,0x70])](_0x1ea765=>_0x1ea765[_0x60a0df([0x73,0x70,0x6c,0x69,0x74])](_0x60a0df([0x2e])))[_0x60a0df([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5011a1=>_0x5011a1[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x61ee88[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x60a0df([0x6d,0x61,0x70])](_0x2ebeb7=>Array(_0x61ee88[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2ebeb7[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x60a0df([0x66,0x69,0x6c,0x6c])](_0x2ebeb7[0x0]===_0x60a0df([0x2a])?_0x60a0df([0x2a]):'')[_0x60a0df([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2ebeb7))[_0x60a0df([0x73,0x6f,0x6d,0x65])](_0xe12c7a=>_0x61ee88[_0x60a0df([0x65,0x76,0x65,0x72,0x79])]((_0x16936a,_0xe8b669)=>_0xe12c7a[_0xe8b669]===_0x16936a||_0xe12c7a[_0xe8b669]===_0x60a0df([0x2a])));}function _0x24bf72(){return _0x310d76&&_0x4d182c?new window[(_0x60a0df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32e1f4,_0x5ee2a2)=>{_0x310d76[_0x60a0df([0x74,0x68,0x65,0x6e])](_0x32e1f4,_0x5ee2a2),_0x4d182c[_0x60a0df([0x74,0x68,0x65,0x6e])](_0x31d3d2=>{_0x31d3d2!=_0x60a0df([0x56,0x61,0x6c,0x69,0x64])&&_0x32e1f4(_0x31d3d2);},_0x5ee2a2);}):_0x310d76||_0x4d182c||_0x60a0df([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9076a4(_0x41841b,_0x284662){return new window[(_0x60a0df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x835918=>{if(_0x47705c())return _0x835918(_0x60a0df([0x56,0x61,0x6c,0x69,0x64]));_0x457c20(),_0x2dc9de[_0x60a0df([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x60a0df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x376ea6=!0x1;const _0x383c5f=_0x4681a7();function _0x18b819(_0x40215e){return!!_0x40215e&&(typeof _0x40215e===_0x60a0df([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40215e===_0x60a0df([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40215e[_0x60a0df([0x74,0x68,0x65,0x6e])]===_0x60a0df([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40215e[_0x60a0df([0x63,0x61,0x74,0x63,0x68])]===_0x60a0df([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x232680(_0x2c1ce9){_0x580501(_0x2c1ce9)[_0x60a0df([0x74,0x68,0x65,0x6e])](_0x4e5321=>{if(!_0x4e5321||_0x4e5321[_0x60a0df([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x60a0df([0x6f,0x6b]))return _0x60a0df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ad8c3(_0x124c46(_0x383c5f+_0x284662))!=_0x4e5321[_0x60a0df([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x60a0df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x60a0df([0x56,0x61,0x6c,0x69,0x64]);})[_0x60a0df([0x74,0x68,0x65,0x6e])](_0x53f387=>(_0x2b450c(),_0x53f387),()=>{const _0x3a8fdc=_0x2d6b61();return null==_0x3a8fdc?(_0x2b450c(),_0x60a0df([0x56,0x61,0x6c,0x69,0x64])):_0x60a0df(_0x12097a-_0x3a8fdc>(0x27d454df^_0x2f9c77)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x60a0df([0x74,0x68,0x65,0x6e])](_0x835918)[_0x60a0df([0x63,0x61,0x74,0x63,0x68])](()=>{_0x835918(_0x60a0df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a32da=0x3ee3e5f^_0x2f9c77;function _0x2b450c(){const _0x48ddc1=_0x60a0df([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ad8c3(_0x124c46(_0x41841b)),_0x3736ac=_0x21f718(_0x1ad8c3(window[_0x60a0df([0x4d,0x61,0x74,0x68])][_0x60a0df([0x63,0x65,0x69,0x6c])](_0x12097a/_0x1a32da)));window[_0x60a0df([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x60a0df([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48ddc1,_0x3736ac);}function _0x2d6b61(){const _0x293b96=_0x60a0df([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ad8c3(_0x124c46(_0x41841b)),_0x2f84bb=window[_0x60a0df([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x60a0df([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x293b96);return _0x2f84bb?window[_0x60a0df([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21f718(_0x2f84bb),0x10)*_0x1a32da:null;}function _0x580501(_0x1bf2dd){return new window[(_0x60a0df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x577a22,_0x32fe75)=>{_0x1bf2dd[_0x60a0df([0x74,0x68,0x65,0x6e])](_0x577a22,_0x32fe75),window[_0x60a0df([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x32fe75,0x3d9041f^_0x2f9c77);});}}_0x2dc9de[_0x60a0df([0x6f,0x6e])](_0x60a0df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x28fe80,_0x490f55)=>{if(_0x490f55[0x0]!=_0x41841b)return _0x835918(_0x60a0df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x490f55[0x1]={..._0x490f55[0x1],[_0x60a0df([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x383c5f};},{[_0x60a0df([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x60a0df([0x68,0x69,0x67,0x68])}),_0x2dc9de[_0x60a0df([0x6f,0x6e])](_0x60a0df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a763b=>{_0x18b819(_0x4a763b[_0x60a0df([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x376ea6=!0x0,_0x232680(_0x4a763b[_0x60a0df([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x60a0df([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x60a0df([0x6c,0x6f,0x77])}),_0x4d83fd[_0x60a0df([0x74,0x68,0x65,0x6e])](()=>{_0x376ea6||_0x835918(_0x60a0df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47705c(){return _0x2dc9de[_0x60a0df([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x60a0df([0x76,0x69,0x65,0x77])][_0x60a0df([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x60a0df([0x61,0x75,0x74,0x6f]);}function _0x457c20(){_0x2dc9de[_0x60a0df([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x60a0df([0x76,0x69,0x65,0x77])][_0x60a0df([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x60a0df([0x61,0x75,0x74,0x6f]);}}function _0x351e38(_0x2b084c){const _0x12a004=[new window[(_0x60a0df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x435776=>setTimeout(_0x435776,0x3d1ee13^_0x2f9c77)),_0x4d83fd[_0x60a0df([0x74,0x68,0x65,0x6e])](()=>new window[(_0x60a0df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x447bb2=>{let _0x4f0347=0x0;_0x2dc9de[_0x60a0df([0x6d,0x6f,0x64,0x65,0x6c])][_0x60a0df([0x6f,0x6e])](_0x60a0df([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x13bc26,_0x246603)=>{_0x246603[0x0][_0x60a0df([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f0347++,_0x4f0347==(0x3d8d537^_0x2f9c77)&&(_0x447bb2(),_0x13bc26[_0x60a0df([0x6f,0x66,0x66])]());});}))];return window[_0x60a0df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x60a0df([0x72,0x61,0x63,0x65])](_0x12a004)[_0x60a0df([0x74,0x68,0x65,0x6e])](()=>_0x2b084c);}async function _0x50051c(){await _0x4d83fd,_0x2dc9de[_0x60a0df([0x6d,0x6f,0x64,0x65,0x6c])][_0x60a0df([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c4a61,_0x2dc9de[_0x60a0df([0x6d,0x6f,0x64,0x65,0x6c])][_0x60a0df([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c4a61,_0x2dc9de[_0x60a0df([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x60a0df([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x29dda8(){return _0x2ae574(_0x60a0df([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xae1836(_0x60a0df([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x60a0df([0x73,0x74,0x61,0x74,0x65])]==_0x60a0df([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x413699(){return _0x2ae574(_0x60a0df([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 _0x3327b9(){return _0x2ae574(_0x60a0df([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x47e173(_0x22e47f){const _0x5b3599=_0x13b7c2();_0x2dc9de[_0x5b3599]=_0x60a0df([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x22e47f,_0x22e47f!=_0x60a0df([0x56,0x61,0x6c,0x69,0x64])&&_0x50051c();}function _0x13b7c2(){const _0x1c830c=window[_0x60a0df([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x60a0df([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x60a0df([0x6e,0x6f,0x77])]())[_0x60a0df([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x60a0df([0x2e]),'');let _0x1ebfa8=_0x60a0df([0x52]);for(let _0x375e15=0x0;_0x375e15<_0x1c830c[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x375e15+=0x2){let _0x1caa7b=window[_0x60a0df([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c830c[_0x60a0df([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x375e15,_0x375e15+0x2));_0x1caa7b>=_0x363bc6[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1caa7b-=_0x363bc6[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ebfa8+=_0x363bc6[_0x1caa7b];}return _0x1ebfa8;}function _0x387ae4(){const _0xe35911=_0xb92731[_0x60a0df([0x73,0x70,0x6c,0x69,0x74])](_0x60a0df([0x2e]));if(0x3!=_0xe35911[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4fd149(_0xe35911[0x1]);function _0x4fd149(_0xf10473){const _0x255685=_0x2397de(_0xf10473);return _0x255685&&_0x3b6ed5()?_0x255685:null;function _0x3b6ed5(){const _0x280d9e=_0x255685[_0x60a0df([0x6a,0x74,0x69])],_0xf996d6=window[_0x60a0df([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x280d9e[_0x60a0df([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x280d9e[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd2b3d9={..._0x255685,[_0x60a0df([0x6a,0x74,0x69])]:_0x280d9e[_0x60a0df([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x280d9e[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd2b3d9[_0x60a0df([0x76,0x63])],_0x124c46(_0xd2b3d9)==_0xf996d6;}}}async function _0x3669ce(){let _0x22bbf5=!0x0;try{const _0x58f7f3=_0xb92731[_0x60a0df([0x73,0x70,0x6c,0x69,0x74])](_0x60a0df([0x2e])),[_0x2be054,_0x220325,_0x249407]=_0x58f7f3;return _0x2ca44f(_0x2be054),await _0x4ecd40(_0x2be054,_0x220325,_0x249407),_0x22bbf5;}catch{return!0x1;}function _0x2ca44f(_0x5363df){const _0x1b83b8=_0x2397de(_0x5363df);_0x1b83b8&&_0x1b83b8[_0x60a0df([0x61,0x6c,0x67])]==_0x60a0df([0x45,0x53,0x32,0x35,0x36])||(_0x22bbf5=!0x1);}async function _0x4ecd40(_0x4445e0,_0x543fc9,_0x23e730){const _0x15a506=window[_0x60a0df([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x60a0df([0x66,0x72,0x6f,0x6d])](_0x1c9569(_0x23e730),_0x3f1ce6=>_0x3f1ce6[_0x60a0df([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3805c8=new window[(_0x60a0df([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x60a0df([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4445e0+_0x60a0df([0x2e])+_0x543fc9),_0x5ba9b7=window[_0x60a0df([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x60a0df([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ba9b7)return;const _0x11d75d=await _0x5ba9b7[_0x60a0df([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x60a0df([0x6a,0x77,0x6b]),_0x175525,{[_0x60a0df([0x6e,0x61,0x6d,0x65])]:_0x60a0df([0x45,0x43,0x44,0x53,0x41]),[_0x60a0df([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x60a0df([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x60a0df([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ba9b7[_0x60a0df([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x60a0df([0x6e,0x61,0x6d,0x65])]:_0x60a0df([0x45,0x43,0x44,0x53,0x41]),[_0x60a0df([0x68,0x61,0x73,0x68])]:{[_0x60a0df([0x6e,0x61,0x6d,0x65])]:_0x60a0df([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11d75d,_0x15a506,_0x3805c8)||(_0x22bbf5=!0x1);}}function _0x2397de(_0x1be796){return _0x1be796[_0x60a0df([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x60a0df([0x65,0x79]))?JSON[_0x60a0df([0x70,0x61,0x72,0x73,0x65])](_0x1c9569(_0x1be796)):null;}function _0x1c9569(_0x652126){return window[_0x60a0df([0x61,0x74,0x6f,0x62])](_0x652126[_0x60a0df([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x60a0df([0x2b]))[_0x60a0df([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x60a0df([0x2f])));}function _0x124c46(_0x22b54c){let _0x179139=0x1505;function _0x3ec7a7(_0x576b94){for(let _0x4bb30b=0x0;_0x4bb30b<_0x576b94[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bb30b++){const _0x247f41=_0x576b94[_0x60a0df([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4bb30b);_0x179139=(_0x179139<<0x5)+_0x179139+_0x247f41,_0x179139&=_0x179139;}}function _0x24319c(_0x233621){Array[_0x60a0df([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x233621)?_0x233621[_0x60a0df([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x24319c):_0x233621&&typeof _0x233621==_0x60a0df([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x60a0df([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x233621)[_0x60a0df([0x73,0x6f,0x72,0x74])]()[_0x60a0df([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x51c22b,_0x181424])=>{_0x3ec7a7(_0x51c22b),_0x24319c(_0x181424);}):_0x3ec7a7(window[_0x60a0df([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x233621));}return _0x24319c(_0x22b54c),_0x179139>>>0x0;}function _0x1ad8c3(_0x5d36a9){return _0x5d36a9[_0x60a0df([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x60a0df([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x60a0df([0x30]));}function _0x21f718(_0x2fee64){return _0x2fee64[_0x60a0df([0x73,0x70,0x6c,0x69,0x74])]('')[_0x60a0df([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x60a0df([0x6a,0x6f,0x69,0x6e])]('');}function _0x2ae574(_0x4e5ab5){return _0x2dc9de[_0x60a0df([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x60a0df([0x68,0x61,0x73])](_0x4e5ab5);}function _0xae1836(_0x503eda){return _0x2dc9de[_0x60a0df([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x60a0df([0x67,0x65,0x74])](_0x503eda);}function _0x5c4a61(){}function _0x60a0df(_0x325914){return _0x325914['map'](_0x481117=>String['fromCharCode'](_0x481117))['join']('');}_0x47e173(await _0x2349a3());}(this);}set['adapter'](_0x59de9a){if(this['_adapter'])throw new _0x180e5c('track-changes-adapter-already-set',this);this['_adapter']=_0x59de9a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1c9261=!0x1,toJSON:_0x1b5591=!0x1}={}){const _0x4cf5cd=[];for(const _0x31802a of this['_suggestions']['values']())_0x1c9261&&!_0x31802a['isInContent']||_0x4cf5cd['push'](_0x31802a);return _0x1b5591?_0x4cf5cd['map'](_0x50d601=>_0x50d601['toJSON']()):_0x4cf5cd;}['getSuggestion'](_0x36dc78){const _0x1e6af2=this['_suggestions']['get'](_0x36dc78);if(!_0x1e6af2)throw new _0x180e5c('track-changes-suggestion-not-found',this);return _0x1e6af2;}['hasSuggestion'](_0x5c47fc){return this['_suggestions']['has'](_0x5c47fc);}['addSuggestionData'](_0x409ba6){const {authorId:_0x4ca103,id:_0x306909,originalSuggestionId:_0x325a52,attributes:_0xf36c5b}=_0x409ba6,[_0x488be6,_0x3f4e31]=_0x409ba6['type']['split'](':'),_0xf785d2=this['_suggestions']['get'](_0x306909)||this['_createSuggestion'](_0x488be6,_0x3f4e31,_0x306909,_0x4ca103,_0xf36c5b,_0x325a52);if(this['_addThreadToSuggestion'](_0xf785d2),this['_checkSuggestionCorrectness'](_0xf785d2,_0x488be6,_0x3f4e31||null,_0x4ca103),_0xf785d2['createdAt']=_0x409ba6['createdAt'],_0xf785d2['_isDataLoaded']=!0x0,_0xf36c5b&&_0xf36c5b['@external']){const _0x37e4ca=_0xf36c5b['@external'],_0x3c2588=this['_getExternalAuthor'](_0x37e4ca['authorName']);_0xf785d2['authoredAt']=_0x37e4ca['createdAt'],_0xf785d2['author']=_0x3c2588,_0xf785d2['isExternal']=!0x0;}else _0xf785d2['authoredAt']=_0x409ba6['createdAt'];switch(_0x409ba6['data']&&(_0xf785d2['data']=_0x409ba6['data']),_0x409ba6['attributes']&&(_0xf785d2['attributes']=_0x409ba6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xf785d2['_saved']=!0x0),this['_suggestionState']['get'](_0xf785d2)){case'notReady':this['_suggestionState']['set'](_0xf785d2,'dataReady');break;case'markerReady':_0xf785d2['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xf785d2])),this['_refreshSuggestionsChain'](new Set([_0xf785d2])),this['_suggestionState']['set'](_0xf785d2,'ready'),this['fire']('suggestionLoaded',_0xf785d2)):this['_suggestionState']['set'](_0xf785d2,'removed');}return _0xf785d2;}['acceptSuggestion'](_0x546837){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2bb2e2 of _0x546837['getAllAdjacentSuggestions']())_0x2bb2e2['accept']();});});}['discardSuggestion'](_0x3de58c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5ddd71 of _0x3de58c['getAllAdjacentSuggestions']())_0x5ddd71['discard']();});});}['enableCommand'](_0x5c0739,_0x537212){const _0x438ff3=this['editor']['commands']['get'](_0x5c0739);if(!_0x438ff3)throw new _0x180e5c('track-changes-command-not-found',this,{'commandName':_0x5c0739});if(this['_enabledCommands']['has'](_0x438ff3))throw new _0x180e5c('track-changes-enable-command-twice',this,{'commandName':_0x5c0739});this['_enabledCommands']['add'](_0x438ff3),_0x537212&&_0x438ff3['on']('execute',(_0x18b13d,_0x4e376b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4e376b['length']>0x0&&_0x4e376b[_0x4e376b['length']-0x1]&&_0x4e376b[_0x4e376b['length']-0x1]['forceDefaultExecution']?_0x4e376b['pop']():(_0x18b13d['return']=_0x537212((..._0x1d6f06)=>_0x438ff3['execute'](..._0x1d6f06,{'forceDefaultExecution':!0x0}),..._0x4e376b),_0x18b13d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x7dabdc){let _0x34e8c4,_0x4dc722;const _0x5a169b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x34e8c4=_0x7dabdc();}catch(_0x1d6017){_0x4dc722=_0x1d6017;}return _0x5a169b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4dc722&&_0x180e5c['rethrowUnexpectedError'](_0x4dc722,this),_0x34e8c4;}['markInsertion'](_0x1c5d77,_0x2721fa=null,_0xfca867={}){if(_0x1c5d77['isCollapsed'])return null;const _0x914e58=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xfca867['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x341cbd,meta:_0x276f02}of this['_findSuggestions'](_0x1c5d77,'insertion'))if(_0x276f02['isOwn']){if(!_0x276f02['isNextTo']){if(_0x276f02['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x341cbd,_0xfca867))continue;return _0x341cbd;}if(zt(_0x341cbd,_0xfca867))return _0x341cbd;this['_breakSuggestionMarker'](_0x341cbd,_0x1c5d77['start'],_0x1c5d77['end']);break;}if(_0x2721fa==_0x341cbd['subType']&&zt(_0x341cbd,_0xfca867)){const _0x268175=_0x341cbd['getFirstRange']();return _0x268175['start']['isEqual'](_0x1c5d77['end'])?this['_setSuggestionRange'](_0x341cbd,this['_model']['createRange'](_0x1c5d77['start'],_0x268175['end'])):this['_setSuggestionRange'](_0x341cbd,this['_model']['createRange'](_0x268175['start'],_0x1c5d77['end'])),_0x341cbd;}}const _0x29afb6=_0x4681a7(),_0x58cfcb=_0x914e58['id'],_0x432cfe=_0x2721fa?'insertion:'+_0x2721fa:'insertion',_0x267375=this['_setSuggestionData']({'id':_0x29afb6,'type':_0x432cfe,'createdAt':new Date(),'authorId':_0x58cfcb,'attributes':_0xfca867});return this['_addSuggestionMarker'](_0x432cfe,_0x29afb6,_0x58cfcb,_0x1c5d77),_0x267375;}['markMultiRangeInsertion'](_0x821e42,_0x6a02c7='multi',_0x5bf911={}){const _0x54cc9f=this['editor']['plugins']['get']('Users')['me'],_0x36d5ac=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x6a02c7,'join');this['_trackingSessionId']&&(_0x5bf911['trackingSessionId']=this['_trackingSessionId']);for(const _0x4e816f of this['getSuggestions']())if(_0x4e816f['author']['id']==_0x54cc9f['id']&&'insertion'==_0x4e816f['type']&&_0x4e816f['subType']==_0x6a02c7&&zt(_0x4e816f,_0x5bf911)&&(_0x36d5ac(_0x4e816f['getRanges'](),_0x821e42)||_0x36d5ac(_0x821e42,_0x4e816f['getRanges']()))){for(const _0x14bde3 of _0x821e42)_0x4e816f['addRange'](_0x14bde3);return _0x4e816f;}for(const {suggestion:_0xdc3641,meta:_0x2d71c6}of this['_findSuggestions'](_0x821e42,'insertion')){if(!_0x2d71c6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2d71c6['containsRangeInObject'])continue;if(!zt(_0xdc3641,_0x5bf911))continue;let _0x53d3a5=!0x0;for(const _0x312751 of _0xdc3641['getRanges']())for(const _0x2657ec of _0x821e42)if(!_0x312751['containsRange'](_0x2657ec)){_0x53d3a5=!0x1;break;}if(_0x53d3a5)return _0xdc3641;}const _0x20aa1b=_0x4681a7(),_0x54a4e0=_0x54cc9f['id'],_0x37f4d8='insertion:'+_0x6a02c7,_0x332041=this['_setSuggestionData']({'id':_0x20aa1b,'type':_0x37f4d8,'createdAt':new Date(),'authorId':_0x54a4e0,'attributes':_0x5bf911});for(const _0x27bc66 of _0x821e42)this['_addSuggestionMarker'](_0x37f4d8,_0x20aa1b,_0x54a4e0,_0x27bc66,Suggestion['getMultiRangeId']());return _0x332041;}['markInlineFormat'](_0x28dd97,_0x185507,_0x4b55d9=null,_0x3c4e9e={}){if(_0x4b55d9=_0x4b55d9||xt(_0x185507),_0x28dd97['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3c4e9e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4ff7a0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b55d9,'accept');return this['forceDefaultExecution'](()=>_0x4ff7a0([_0x28dd97],_0x185507,_0x3c4e9e)),null;}const _0x2b152b=this['editor']['plugins']['get']('Users')['me'],_0x17defc=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4150f5,meta:_0x55c04e}of this['_findSuggestions'](_0x28dd97,'insertion'))_0x55c04e['isOwn']&&!_0x55c04e['isInsideObject']&&_0x17defc['push'](..._0x4150f5['getRanges']());}const _0x2f2f06=function(_0x3de8bd,_0x3ad2b5){const _0x35ac65=[];for(const _0x24f963 of _0x3ad2b5){const _0x42e9d8=_0x3de8bd['getIntersection'](_0x24f963);_0x42e9d8&&_0x35ac65['push'](_0x42e9d8);}return _0x35ac65;}(_0x28dd97,_0x17defc),_0xed74d7=function(_0xd663fc,_0x488de5){const _0x4fafc1=[_0xd663fc];for(const _0x289a9c of _0x488de5){let _0x2b875e=0x0;for(;_0x2b875e<_0x4fafc1['length'];){const _0x3863d2=_0x4fafc1[_0x2b875e]['getDifference'](_0x289a9c);_0x4fafc1['splice'](_0x2b875e,0x1,..._0x3863d2),_0x2b875e+=_0x3863d2['length'];}}return _0x4fafc1;}(_0x28dd97,_0x17defc);_0x2f2f06['length']&&this['_model']['change'](()=>{for(const _0xe703b1 of _0x2f2f06){const _0x2084a5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b55d9,'accept');this['forceDefaultExecution'](()=>_0x2084a5([_0xe703b1],_0x185507,_0x3c4e9e));}});for(const _0x59a185 of _0xed74d7){let _0x4cb0e3=null,_0x1c3628=_0x59a185['start'],_0x4b030a=_0x59a185['end'];for(const {suggestion:_0x2b8c57,meta:_0x29d63a}of this['_findSuggestions'](_0x59a185,'formatInline')){if(!_0x29d63a['isOwn'])continue;if(_0x2b8c57['subType']!=_0x4b55d9)continue;if(!zt(_0x2b8c57,_0x3c4e9e))continue;const _0x4360d1=_0x2b8c57['getFirstRange']();if(_0x4360d1['containsRange'](_0x59a185,!0x0))return null;_0x1c3628=_0x1c3628['isBefore'](_0x4360d1['start'])?_0x1c3628:_0x4360d1['start'],_0x4b030a=_0x4b030a['isAfter'](_0x4360d1['end'])?_0x4b030a:_0x4360d1['end'],_0x4cb0e3?_0x4360d1['start']['isBefore'](_0x4cb0e3['getFirstRange']()['start'])?(_0x4cb0e3['removeMarkers'](),_0x4cb0e3=_0x2b8c57):_0x2b8c57['removeMarkers']():_0x4cb0e3=_0x2b8c57;}const _0x161cc0=this['_model']['createRange'](_0x1c3628,_0x4b030a);if(_0x4cb0e3)this['_setSuggestionRange'](_0x4cb0e3,_0x161cc0);else{const _0x1c3b1d=_0x4681a7(),_0x21cc3a=_0x2b152b['id'];this['_setSuggestionData']({'id':_0x1c3b1d,'type':'formatInline:'+_0x4b55d9,'data':_0x185507,'createdAt':new Date(),'authorId':_0x21cc3a,'attributes':_0x3c4e9e}),this['_addSuggestionMarker']('formatInline:'+_0x4b55d9,_0x1c3b1d,_0x21cc3a,_0x161cc0);}}return null;}['markBlockFormat'](_0x39f19a,_0x589f0f,_0x41583a=[],_0x4fb2e8=null,_0x4d9054={}){_0x589f0f['formatGroupId']||(_0x589f0f['formatGroupId']=_0x589f0f['commandName']),_0x589f0f['multipleBlocks']=_0x39f19a['is']('range'),_0x4fb2e8=_0x4fb2e8||xt(_0x589f0f);const _0x192b20=_0x41583a['map'](_0x45e3a5=>Vt(_0x45e3a5,this['_model'])),_0x3705c4=_0x39f19a['is']('range')?_0x39f19a:Vt(_0x39f19a,this['_model']);if(this['_trackingSessionId']&&(_0x4d9054['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x277b3a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fb2e8,'accept');return this['forceDefaultExecution'](()=>_0x277b3a([_0x3705c4],_0x589f0f,_0x4d9054)),null;}_0x192b20['push'](_0x3705c4);let _0x352a07=!0x0;for(const _0x23808c of _0x192b20)if(!this['_rangeIsInLocalUserInsertion'](_0x23808c)){_0x352a07=!0x1;break;}if(_0x352a07&&'always'!==this['_trackFormatChanges']){const _0x459d0e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fb2e8,'accept');return this['forceDefaultExecution'](()=>_0x459d0e([_0x3705c4],_0x589f0f,_0x4d9054)),null;}let _0x194d33=null,_0x232398=_0x3705c4['start'],_0x20035f=_0x3705c4['end'];for(const {suggestion:_0x50dfe3,meta:_0x49f8fd}of this['_findSuggestions'](_0x3705c4,'formatBlock')){if(!_0x49f8fd['isOwn'])continue;if(_0x49f8fd['isNextTo']||_0x49f8fd['containsRangeInObject']||_0x49f8fd['isInsideObject'])continue;if(_0x50dfe3['data']['formatGroupId']!=_0x589f0f['formatGroupId'])continue;if(!zt(_0x50dfe3,_0x4d9054))continue;const _0x2e3d29=_0x50dfe3['getFirstRange']();if(_0x50dfe3['subType']==_0x4fb2e8){if(_0x2e3d29['containsRange'](_0x3705c4,!0x0))return null;_0x232398=_0x232398['isBefore'](_0x2e3d29['start'])?_0x232398:_0x2e3d29['start'],_0x20035f=_0x20035f['isAfter'](_0x2e3d29['end'])?_0x20035f:_0x2e3d29['end'],_0x194d33?_0x2e3d29['start']['isBefore'](_0x194d33['getFirstRange']()['start'])?(_0x194d33['removeMarkers'](),_0x194d33=_0x50dfe3):_0x50dfe3['removeMarkers']():_0x194d33=_0x50dfe3;}else{const _0xa4474a=_0x3705c4['getIntersection'](_0x2e3d29);this['_cutOutSuggestionMarker'](_0x50dfe3,_0xa4474a);}}const _0x24bff8=this['editor']['plugins']['get']('Users')['me'],_0x24fa6b=_0x4681a7(),_0x5409f2=_0x24bff8['id'];if(_0x194d33)return this['_setSuggestionRange'](_0x194d33,this['_model']['createRange'](_0x232398,_0x20035f)),_0x194d33;{const _0x18fed9=this['_setSuggestionData']({'id':_0x24fa6b,'type':'formatBlock:'+_0x4fb2e8,'data':_0x589f0f,'createdAt':new Date(),'authorId':_0x5409f2,'attributes':_0x4d9054});return this['_addSuggestionMarker']('formatBlock:'+_0x4fb2e8,_0x24fa6b,_0x5409f2,this['_model']['createRange'](_0x232398,_0x20035f)),_0x18fed9;}}['markMultiRangeBlockFormat'](_0x41a40d,_0xe12c60,_0x220454=[],_0x149903=null,_0x2450cf={}){_0xe12c60['formatGroupId']||(_0xe12c60['formatGroupId']=_0xe12c60['commandName']);const _0x2f77aa=_0x41a40d[0x0];_0xe12c60['multipleBlocks']=_0x2f77aa['is']('range'),_0x149903=_0x149903||xt(_0xe12c60);const _0x34c9d0=_0x220454['map'](_0x138d7d=>Vt(_0x138d7d,this['_model'])),_0x2e1f55=_0x2f77aa['is']('range')?_0x41a40d:_0x41a40d['map'](_0x328603=>Vt(_0x328603,this['_model']));if(this['_trackingSessionId']&&(_0x2450cf['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xc57280=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x149903,'accept');return this['forceDefaultExecution'](()=>_0xc57280(_0x2e1f55,_0xe12c60,_0x2450cf)),null;}_0x34c9d0['push'](..._0x2e1f55);let _0x2ba5eb=!0x0;for(const _0xefd31e of _0x34c9d0)if(!this['_rangeIsInLocalUserInsertion'](_0xefd31e)){_0x2ba5eb=!0x1;break;}if(_0x2ba5eb&&'always'!==this['_trackFormatChanges']){const _0x498887=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x149903,'accept');return this['forceDefaultExecution'](()=>_0x498887(_0x2e1f55,_0xe12c60,_0x2450cf)),null;}const _0x59e580=this['editor']['plugins']['get']('Users')['me'];for(const _0x5b5eaa of this['getSuggestions']()){const _0x61d4c0=_0x5b5eaa['data'];if(_0x5b5eaa['author']['id']!=_0x59e580['id'])continue;if('formatBlock'!=_0x5b5eaa['type']||_0x61d4c0['formatGroupId']!=_0xe12c60['formatGroupId'])continue;if(!zt(_0x5b5eaa,_0x2450cf))continue;const _0x48a210=_0x5b5eaa['subType']==_0x149903;for(let _0x3564d7=0x0;_0x3564d7<_0x2e1f55['length'];_0x3564d7++){const _0x256de0=_0x2e1f55[_0x3564d7];for(const _0x163474 of _0x5b5eaa['getMarkers']()){const _0x420d2e=_0x163474['getRange']();if(_0x256de0['isEqual'](_0x420d2e)){_0x48a210?(_0x2e1f55['splice'](_0x3564d7,0x1),_0x3564d7--):_0x5b5eaa['removeMarker'](_0x163474['name']);break;}}}}if(0x0==_0x2e1f55['length'])return null;const _0x241c9c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x149903,'join');for(const _0x35c6c4 of this['getSuggestions']()){const _0x1f669d=_0x35c6c4['data'];if(_0x35c6c4['author']['id']==_0x59e580['id']&&('formatBlock'==_0x35c6c4['type']&&_0x1f669d['formatGroupId']==_0xe12c60['formatGroupId']&&_0x35c6c4['subType']==_0x149903&&zt(_0x35c6c4,_0x2450cf)&&(_0x241c9c(_0x35c6c4['getRanges'](),_0x2e1f55)||_0x241c9c(_0x2e1f55,_0x35c6c4['getRanges']())))){for(const _0x53686f of _0x2e1f55)_0x35c6c4['addRange'](_0x53686f);return _0x35c6c4;}}const _0x496184=_0x4681a7(),_0x51311b=_0x59e580['id'],_0x419aab='formatBlock:'+_0x149903,_0x1b229b=this['_setSuggestionData']({'id':_0x496184,'type':_0x419aab,'data':_0xe12c60,'createdAt':new Date(),'authorId':_0x51311b,'attributes':_0x2450cf});for(const _0x4c1309 of _0x2e1f55)this['_addSuggestionMarker'](_0x419aab,_0x496184,_0x51311b,_0x4c1309,Suggestion['getMultiRangeId']());return _0x1b229b;}['markDeletion'](_0x5da66a,_0x4b89bd=null,_0x3a661a={}){if(_0x5da66a['isCollapsed'])return null;const _0x2ff179=this['editor']['plugins']['get']('Users')['me'],_0x411548=new _0x418bbc(_0x5da66a['start'],_0x5da66a['end']);this['_trackingSessionId']&&(_0x3a661a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x14fa4e,meta:_0x4a4ded}of this['_findSuggestions'](_0x411548,'insertion'))if(_0x4a4ded['isOwn']&&!_0x4a4ded['isNextTo']){if(_0x14fa4e['isMultiRange']){const _0x1b26d9=_0x14fa4e['getRanges']()['filter'](_0x3ce451=>'$graveyard'!=_0x3ce451['root']['rootName']);_0x1b26d9['every'](_0x4fd988=>_0x411548['containsRange'](_0x4fd988,!0x0))&&_0x14fa4e['discard']();if(_0x1b26d9['some'](_0x434aa8=>_0x434aa8['containsRange'](_0x411548,!0x0))){const _0x2bab96=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b89bd,'accept');return this['forceDefaultExecution'](()=>_0x2bab96([_0x411548],null,_0x3a661a)),null;}}else{const _0x3f98c4=_0x411548['getIntersection'](_0x14fa4e['getFirstRange']());null!==_0x3f98c4&&_0x14fa4e['_onDiscard']([_0x3f98c4],null,_0x3a661a);}}if(_0x411548['detach'](),_0x411548['isCollapsed']||'$graveyard'==_0x411548['root']['rootName'])return null;let _0x2e9d55=null,_0x19131b=_0x411548['start'],_0x215ad6=_0x411548['end'];const _0x2bf4d0=this['_findSuggestions'](_0x411548,'deletion');for(const {suggestion:_0x3a432d,meta:_0x578170}of _0x2bf4d0){const _0x391f23=this['_model']['createRange'](_0x19131b,_0x215ad6);if(_0x578170['isOwn']&&(this['_mergeNestedSuggestions']||!_0x578170['containsRangeInObject']&&!_0x578170['isInsideObject'])){if(_0x3a432d['isMultiRange']){if(!zt(_0x3a432d,_0x3a661a))continue;let _0x133c3f=!0x0;for(const _0x37d7af of _0x3a432d['getRanges']()){if(_0x37d7af['containsRange'](_0x391f23,!0x0))return _0x3a432d;_0x391f23['containsRange'](_0x37d7af)||(_0x133c3f=!0x1);}_0x133c3f&&_0x3a432d['discard']();}else{const _0x5938bb=_0x3a432d['getFirstRange']();if(_0x5938bb['containsRange'](_0x391f23,!0x0))return _0x3a432d;if(!zt(_0x3a432d,_0x3a661a)){_0x391f23['containsRange'](_0x5938bb)?_0x3a432d['removeMarkers']():_0x5938bb['containsPosition'](_0x19131b)?_0x19131b=_0x5938bb['end']:_0x5938bb['containsPosition'](_0x215ad6)&&(_0x215ad6=_0x5938bb['start']);continue;}_0x19131b=_0x19131b['isBefore'](_0x5938bb['start'])?_0x19131b:_0x5938bb['start'],_0x215ad6=_0x215ad6['isAfter'](_0x5938bb['end'])?_0x215ad6:_0x5938bb['end'],_0x3a661a=Object['assign']({},_0x3a432d['attributes']),_0x2e9d55?_0x5938bb['start']['isBefore'](_0x2e9d55['getFirstRange']()['start'])?(_0x2e9d55['removeMarkers'](),_0x2e9d55=_0x3a432d):_0x3a432d['removeMarkers']():_0x2e9d55=_0x3a432d;}}}if(_0x2e9d55)return this['_setSuggestionRange'](_0x2e9d55,this['_model']['createRange'](_0x19131b,_0x215ad6)),_0x2e9d55;{const _0x13ac1f=_0x4681a7(),_0x37d1e8=this['_model']['createRange'](_0x19131b,_0x215ad6),_0x79db97=_0x2ff179['id'],_0x5c5122=_0x4b89bd?'deletion:'+_0x4b89bd:'deletion',_0x2ba840=this['_setSuggestionData']({'id':_0x13ac1f,'type':_0x5c5122,'createdAt':new Date(),'authorId':_0x79db97,'attributes':_0x3a661a});return this['_addSuggestionMarker'](_0x5c5122,_0x13ac1f,_0x79db97,_0x37d1e8),_0x2ba840;}}['markMultiRangeDeletion'](_0x3b81aa,_0x225164='multi',_0x5ca8fb={}){const _0x469a21=this['editor']['plugins']['get']('Users')['me'],_0x441ace=_0x3b81aa['map'](_0x1c23b3=>new _0x418bbc(_0x1c23b3['start'],_0x1c23b3['end'])),_0x2c7715=new Set();this['_trackingSessionId']&&(_0x5ca8fb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x578d9a,meta:_0x48b3b0}of this['_findSuggestions'](_0x441ace,'insertion'))_0x48b3b0['isOwn']&&!_0x48b3b0['isNextTo']&&_0x2c7715['add'](_0x578d9a);for(const _0x5898ea of _0x2c7715)if(_0x5898ea['isMultiRange']){const _0x522937=_0x5898ea['getRanges']();(!_0x5898ea['attributes']||!_0x5898ea['attributes']['skipNestingCheck'])&&(_0x522937['every'](_0x147ac5=>_0x441ace['some'](_0x1a91da=>_0x1a91da['containsRange'](_0x147ac5,!0x0)))&&_0x5898ea['discard']());if(_0x441ace['every'](_0x19c5de=>_0x522937['some'](_0x3b80ac=>_0x3b80ac['containsRange'](_0x19c5de,!0x0)))){const _0x75657e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x225164,'accept');return this['forceDefaultExecution'](()=>_0x75657e(_0x3b81aa,null,_0x5ca8fb)),null;}}else{const _0x882f9b=_0x5898ea['getFirstRange']();_0x441ace['some'](_0x4eadc1=>_0x4eadc1['containsRange'](_0x882f9b,!0x0))&&_0x5898ea['discard']();if(_0x441ace['every'](_0x25ee0b=>_0x882f9b['containsRange'](_0x25ee0b,!0x0))){const _0x4bb849=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x225164,'accept');return this['forceDefaultExecution'](()=>_0x4bb849(_0x441ace,null,_0x5ca8fb)),null;}}const _0xb308dc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x225164,'join');let _0x12e3e8=null;for(const _0x4c62cc of this['getSuggestions']())if(_0x4c62cc['author']['id']==_0x469a21['id']&&_0x4c62cc['isInContent']&&'deletion'==_0x4c62cc['type']&&_0x4c62cc['subType']==_0x225164&&zt(_0x4c62cc,_0x5ca8fb)&&(_0xb308dc(_0x4c62cc['getRanges'](),_0x441ace)||_0xb308dc(_0x441ace,_0x4c62cc['getRanges']()))){if(_0x12e3e8){if(_0x4c62cc['commentThread']&&_0x4c62cc['commentThread']['length'])continue;for(const _0xcb937d of _0x4c62cc['getRanges']())_0x12e3e8['isIntersectingWithRange'](_0xcb937d)||_0x12e3e8['addRange'](_0xcb937d);_0x4c62cc['removeMarkers']();}else{_0x12e3e8=_0x4c62cc;for(const _0x374973 of _0x441ace)_0x4c62cc['isIntersectingWithRange'](_0x374973)||_0x4c62cc['addRange'](_0x374973);}}if(_0x12e3e8)return _0x12e3e8;_0x2c7715['clear']();for(const {suggestion:_0x19d16d,meta:_0x1abfa6}of this['_findSuggestions'](_0x441ace,'deletion'))_0x1abfa6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1abfa6['containsRangeInObject']&&!_0x1abfa6['isInsideObject'])&&zt(_0x19d16d,_0x5ca8fb)&&_0x2c7715['add'](_0x19d16d);for(const _0x2b362d of _0x2c7715){const _0x37ca08=_0x2b362d['getRanges']();if(!_0x5ca8fb||!_0x5ca8fb['skipNestingCheck']){if(_0x441ace['every'](_0x3f8835=>_0x37ca08['some'](_0x1ee3e2=>_0x1ee3e2['containsRange'](_0x3f8835,!0x0))))return _0x2b362d;}(!_0x2b362d['attributes']||!_0x2b362d['attributes']['skipNestingCheck'])&&(_0x37ca08['every'](_0x1804b6=>_0x441ace['some'](_0x38f7f5=>_0x38f7f5['containsRange'](_0x1804b6,!0x0)))&&_0x2b362d['discard']());}const _0x2d1b54=_0x4681a7(),_0x128e0a=_0x469a21['id'],_0x23cf13='deletion:'+_0x225164,_0x1bb6b2=this['_setSuggestionData']({'id':_0x2d1b54,'type':_0x23cf13,'createdAt':new Date(),'authorId':_0x128e0a,'attributes':_0x5ca8fb});for(const _0x5eaee6 of _0x441ace)_0x5eaee6['detach'](),_0x5eaee6['isCollapsed']||'$graveyard'==_0x5eaee6['root']['rootName']||this['_addSuggestionMarker'](_0x23cf13,_0x2d1b54,_0x128e0a,_0x5eaee6,Suggestion['getMultiRangeId']());return _0x1bb6b2;}['markAttributeChange'](_0x49ce1d,_0x5b59ab,_0x3cdd21,_0x55425f,_0x25efa0){if(_0x49ce1d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x11d685=this['editor']['plugins']['get']('Users')['me']['id'],_0x1ce82d=Array['from'](this['_suggestions']['values']())['filter'](_0x3bb248=>'attribute'==_0x3bb248['type']&&_0x3bb248['data']['key']==_0x5b59ab&&_0x3bb248['isIntersectingWithRange'](_0x49ce1d));if(this['_trackingSessionId']&&(_0x25efa0['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x350d32=this['_findSuggestions'](_0x49ce1d,'insertion')['filter'](({meta:_0x10c493})=>_0x10c493['isOwn']&&!_0x10c493['isInsideObject']&&!_0x10c493['isNextTo'])['map'](({suggestion:_0x192972})=>_0x192972);_0x1ce82d['unshift'](..._0x350d32);}const _0xcc188e=new Map([[_0x49ce1d,_0x3cdd21]]);for(const _0x2d3f0c of _0x1ce82d){const _0x33b70c='attribute'==_0x2d3f0c['type']?_0x2d3f0c['data']['oldValue']:void 0x0,_0x1f7ebb=_0x2d3f0c['getFirstRange'](),_0x14f487=Array['from'](_0xcc188e['keys']())['find'](_0x54da05=>_0x54da05['isIntersecting'](_0x1f7ebb));if(!_0x14f487)continue;const _0x76ec13=_0x14f487['getDifference'](_0x1f7ebb);this['_suggestionsConversion']['isBlockAttribute'](_0x5b59ab)&&'insertion'==_0x2d3f0c['type']&&0x0!=_0x76ec13['length']||(_0xcc188e['delete'](_0x14f487),_0x76ec13['forEach'](_0x4f9bb3=>{_0xcc188e['set'](_0x4f9bb3,_0x3cdd21);}),'insertion'!=_0x2d3f0c['type']&&_0x33b70c!=_0x55425f&&_0xcc188e['set'](_0x14f487['getIntersection'](_0x1f7ebb),_0x33b70c));}const _0x1add11=[];for(const [_0x40b9c0,_0x1d225e]of _0xcc188e){const _0x5ebf5a=_0x4681a7(),_0x2752e3={'key':_0x5b59ab,'oldValue':_0x1d225e,'newValue':_0x55425f};_0x5b59ab['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':_0x5b59ab});const _0x34e2f6=('attribute:'+(_0x5b59ab+'|'+xt({'newValue':_0x55425f})))['substring'](0x0,0x3c),_0x55e337=this['_setSuggestionData']({'id':_0x5ebf5a,'type':_0x34e2f6,'data':_0x2752e3,'createdAt':new Date(),'authorId':_0x11d685,'attributes':_0x25efa0});_0x1add11['push'](_0x55e337),this['_addSuggestionMarker'](_0x34e2f6,_0x5ebf5a,_0x11d685,_0x40b9c0);}return _0x1add11;}['enableDefaultAttributesIntegration'](_0x4d3e16){this['enableCommand'](_0x4d3e16,(_0x5b649c,..._0x1bef31)=>{this['recordAttributeChanges'](()=>{_0x5b649c(..._0x1bef31);});});}['startTrackingSession'](_0x3b7071){return this['_trackingSessionId']=void 0x0!==_0x3b7071?_0x3b7071:_0x4681a7(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2fa856){return'attribute'==_0x2fa856['type']?Xt(_0x2fa856['subType']):null;}['_applyOperationsAsSuggestions'](_0xb2f041){if(0x0==_0xb2f041['length'])return;const _0x47d782=this['editor'],_0x4dacd6=_0x47d782['plugins']['get'](_0x42cf99),_0x30f581=[];_0x47d782['model']['change'](_0xb03d08=>{for(let _0x3bdb78=0x0;_0x3bdb78<_0xb2f041['length'];_0x3bdb78++){const _0x204bf8=_0xb2f041[_0x3bdb78];if(_0x204bf8['baseVersion']=_0x47d782['model']['document']['version'],_0x204bf8['isDocumentOperation']=!0x0,_0x4dacd6['isMarkedRemoveOperation'](_0x204bf8)){const _0x23eb9e=_0x2d0738(_0x204bf8['newRange'],_0x47d782['model']);_0x30f581['unshift'](_0x418bbc['fromRange'](_0x23eb9e));}else switch(_0x204bf8['type']){case'rename':{const _0x5d4c63=_0x204bf8['oldName'],_0x5d4df8=_0x204bf8['newName'];if(_0x5d4c63==_0x5d4df8)break;_0xb03d08['batch']['addOperation'](_0x204bf8),_0x47d782['model']['applyOperation'](_0x204bf8);const _0x569eb0='$elementName',_0x345fb7=_0x204bf8['position'],_0x1c7ff9=_0x47d782['model']['createRange'](_0x345fb7,_0x47d782['model']['createPositionAt'](_0x345fb7['nodeAfter'],'end'));this['markAttributeChange'](_0x1c7ff9,_0x569eb0,_0x5d4c63,_0x5d4df8,{'groupId':_0x4681a7()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2c82d8=_0x204bf8['oldValue'],_0x7ede02=_0x204bf8['newValue'];if(_0x2c82d8==_0x7ede02)break;_0xb03d08['batch']['addOperation'](_0x204bf8),_0x47d782['model']['applyOperation'](_0x204bf8);const _0x6d6022=_0x204bf8['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x6d6022))break;const _0x1031fb=_0x2d0738(_0x204bf8['range'],_0x47d782['model']);this['markAttributeChange'](_0x1031fb,_0x6d6022,_0x2c82d8,_0x7ede02,{'groupId':_0x4681a7()});break;}case'insert':{_0xb03d08['batch']['addOperation'](_0x204bf8),_0x47d782['model']['applyOperation'](_0x204bf8);if(_0xb2f041[_0x3bdb78+0x1]&&'move'==_0xb2f041[_0x3bdb78+0x1]['type'])break;const _0x5c91aa=_0x204bf8['position'],_0x121cb2=_0x204bf8['howMany'],_0x33f482=_0x2d0738(_0x47d782['model']['createRange'](_0x5c91aa,_0x5c91aa['getShiftedBy'](_0x121cb2)),_0x47d782['model']);this['markInsertion'](_0x33f482);break;}case'split':{_0xb03d08['batch']['addOperation'](_0x204bf8),_0x47d782['model']['applyOperation'](_0x204bf8);const _0x28d1e8=_0x204bf8['splitPosition'],_0x2b6187=_0x204bf8['moveTargetPosition'];this['markInsertion'](_0x47d782['model']['createRange'](_0x28d1e8,_0x2b6187));break;}case'move':case'remove':_0xb03d08['batch']['addOperation'](_0x204bf8),_0x47d782['model']['applyOperation'](_0x204bf8);}}for(const _0x7ae429 of _0x30f581)_0x7ae429['detach'](),this['markDeletion'](_0x7ae429);});}['_setSuggestionRange'](_0x5f441d,_0x1bd374){const _0x32dd98=_0x5f441d['getFirstMarker']();this['_model']['change'](_0x324026=>{_0x324026['updateMarker'](_0x32dd98,{'range':_0x1bd374});});}['_addThreadToSuggestion'](_0x30ead4){const _0x288975=_0x30ead4['id'],_0x21cfea=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x288975)||this['_commentsRepository']['addCommentThread']({'channelId':_0x21cfea,'threadId':_0x288975,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x53ac13=this['_commentsRepository']['getCommentThread'](_0x288975);_0x53ac13['unbind']('isRemovable'),_0x53ac13['isRemovable']=!0x1,_0x30ead4['commentThread']=_0x53ac13;}['_checkSuggestionCorrectness'](_0x123bcf,_0x4f2a24,_0x71857c,_0x5e36c0){if(_0x123bcf['type']!=_0x4f2a24||_0x123bcf['subType']!=_0x71857c||_0x123bcf['creator']['id']!=_0x5e36c0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x180e5c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x199f17,_0x5168d7){const _0x26a142=_0x199f17['getFirstRange']();if(_0x5168d7['isEqual'](_0x26a142))_0x199f17['removeMarkers']();else{if(_0x26a142['containsRange'](_0x5168d7)){const _0x49d32c=this['_model']['createPositionAt'](_0x5168d7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x199f17,this['_model']['createRange'](_0x26a142['start'],_0x49d32c));const _0x3fd183=_0x4681a7(),_0x4e9fcb=_0x199f17['creator']['id'],_0x82a078=_0x199f17['type']+':'+_0x199f17['subType'];this['_setSuggestionData']({'id':_0x3fd183,'type':_0x82a078,'createdAt':new Date(),'authorId':_0x4e9fcb,'data':_0x199f17['data'],'attributes':_0x199f17['attributes']});const _0x23168b=this['_model']['createPositionAt'](_0x5168d7['end']['parent'],'after'),_0x5d5e08=this['_model']['createRange'](_0x23168b,_0x26a142['end']);this['_addSuggestionMarker'](_0x82a078,_0x3fd183,_0x4e9fcb,_0x5d5e08);}else{if(_0x26a142['containsPosition'](_0x5168d7['start'])){const _0x4b03f5=this['_model']['createPositionAt'](_0x5168d7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x199f17,this['_model']['createRange'](_0x26a142['start'],_0x4b03f5));}else{const _0x46b587=this['_model']['createPositionAt'](_0x5168d7['end']['parent'],'after');this['_setSuggestionRange'](_0x199f17,this['_model']['createRange'](_0x46b587,_0x26a142['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3079ef){for(const {suggestion:_0x4e64bf,meta:_0x56c912}of this['_findSuggestions'](_0x3079ef,'insertion')){if(!_0x56c912['isOwn'])continue;const _0x5315bc=_0x4e64bf['getRanges']();for(const _0x58d796 of _0x5315bc)if(!_0x3079ef['getDifference'](_0x58d796)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xc092a9){return this['editor']['plugins']['get']('Users')['getUser'](_0xc092a9);}['_getExternalAuthor'](_0x3401b2){const _0x4eef12=this['editor']['plugins']['get']('Users'),_0x4ac6a5=_0x274975('external:'+_0x3401b2),_0x45295c=_0x4eef12['getUser'](_0x4ac6a5);return _0x45295c||_0x4eef12['addUser']({'id':_0x4ac6a5,'name':_0x3401b2});}['_createSuggestion'](_0x298c0e,_0x54ca38,_0x33b295,_0x2099cd,_0x396adc,_0x1488f3){const _0xc4221=this['_getAuthorFromId'](_0x2099cd);if(!_0xc4221)throw new _0x180e5c('track-changes-user-not-found',this,{'authorId':_0x2099cd,'suggestionId':_0x33b295});const _0x4a862f=this['_suggestionFactory']['buildSuggestion'](_0x298c0e,_0x54ca38,_0x33b295,_0xc4221,_0x396adc,_0x23fb0=>{this['_updateSuggestionData'](_0x33b295,{'attributes':_0x23fb0});const _0xbf2d59=this['getSuggestion'](_0x33b295);this['_joinWithAdjacentSuggestions'](new Set([_0xbf2d59])),this['_refreshSuggestionsChain'](new Set([_0xbf2d59]));},_0x1488f3);return this['listenTo'](_0x4a862f,'accept',()=>{this['_updateSuggestionData'](_0x33b295,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4a862f,'discard',()=>{this['_updateSuggestionData'](_0x33b295,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x33b295,_0x4a862f),this['_suggestionState']['set'](_0x4a862f,'notReady'),_0x4a862f;}['_breakSuggestionMarker'](_0x4858fc,_0x51255f,_0x362f87){const _0x475c91=_0x4858fc['getFirstRange'](),_0x272928=_0x475c91['start'],_0x1a4a59=_0x475c91['end'];this['_setSuggestionRange'](_0x4858fc,this['_model']['createRange'](_0x272928,_0x51255f));const _0x38ea3e=_0x4681a7(),_0x30e158=_0x4858fc['creator']['id'],_0x1ef0e3=_0x4858fc['type']+(_0x4858fc['subType']?':'+_0x4858fc['subType']:'');this['_setSuggestionData']({'id':_0x38ea3e,'type':_0x1ef0e3,'createdAt':new Date(),'authorId':_0x30e158,'originalSuggestionId':_0x4858fc['_originalSuggestionId']||_0x4858fc['id'],'attributes':_0x4858fc['attributes'],'data':_0x4858fc['data']});const _0x1071d9=this['_getAttributeKey'](_0x4858fc);('formatBlock'==_0x4858fc['type']||_0x1071d9&&this['_suggestionsConversion']['isBlockAttribute'](_0x1071d9))&&(_0x362f87=this['_model']['createPositionBefore'](_0x362f87['parent'])),this['_addSuggestionMarker'](_0x1ef0e3,_0x38ea3e,_0x30e158,this['_model']['createRange'](_0x362f87,_0x1a4a59));}['_findSuggestions'](_0x2af635,_0x4188ce=null){const _0x359bed=[],_0x52b193=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2af635)||(_0x2af635=[_0x2af635]);for(const _0x38a093 of this['getSuggestions']()){if(!_0x38a093['isInContent'])continue;if(_0x4188ce&&_0x38a093['type']!=_0x4188ce)continue;let _0x204813=!0x1;for(const _0x428c51 of _0x38a093['getRanges']()){for(const _0x161d16 of _0x2af635){const _0x1b351d=_0x161d16['start']['isEqual'](_0x428c51['end'])||_0x161d16['end']['isEqual'](_0x428c51['start']);if(_0x1b351d||_0x161d16['getIntersection'](_0x428c51)){const _0x2fb956=_0x161d16['containsRange'](_0x428c51)&&Dt(this['_model']['schema'],_0x428c51['start'],_0x161d16),_0x6ee180=_0x428c51['containsRange'](_0x161d16)&&Dt(this['_model']['schema'],_0x161d16['start'],_0x428c51);_0x359bed['push']({'suggestion':_0x38a093,'meta':{'isOwn':_0x52b193==_0x38a093['author'],'isNextTo':_0x1b351d,'isInsideObject':_0x2fb956,'containsRangeInObject':_0x6ee180}}),_0x204813=!0x0;break;}}if(_0x204813)break;}}return _0x359bed;}['_addSuggestionMarker'](_0x4bdc60,_0x337fc1,_0x1eb86e,_0xb7944,_0x14518c){this['_model']['change'](_0x1f7c10=>{let _0x4e0502='suggestion:'+_0x4bdc60+':'+_0x337fc1+':'+_0x1eb86e;_0x14518c&&(_0x4e0502=_0x4e0502+':'+_0x14518c),_0x1f7c10['addMarker'](_0x4e0502,{'range':_0xb7944,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x338088){const _0x4578ba=_0x338088['previous'],_0xd84a97=_0x338088['next'];_0x338088['previous']=null,_0x338088['next']=null,null!=_0x4578ba&&_0x4578ba['next']==_0x338088&&(_0x4578ba['next']=_0xd84a97),null!=_0xd84a97&&_0xd84a97['previous']==_0x338088&&(_0xd84a97['previous']=_0x4578ba),'ready'==this['_suggestionState']['get'](_0x338088)&&(this['_suggestionState']['set'](_0x338088,'removed'),this['fire']('suggestionUnloaded',_0x338088,_0x4578ba,_0xd84a97));}['_setSuggestionData'](_0x7ffa24){const _0x868713=_0x7ffa24['id'],_0x4aa234=this['addSuggestionData'](_0x7ffa24);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x475ddc=this['editor']['plugins']['get']('PendingActions'),_0x5e9180=_0x4aa234['hasComments'],_0x3a46a7=_0x4aa234['subType']?_0x4aa234['type']+':'+_0x4aa234['subType']:_0x4aa234['type'],_0x42cc27=this['editor']['locale'],_0x29a9b5=_0x475ddc['add'](Tt(_0x42cc27,'PENDING_ACTION_SUGGESTION')),_0x3123bf={'id':_0x868713,'type':_0x3a46a7,'hasComments':_0x5e9180,'data':_0x7ffa24['data']||null,'originalSuggestionId':_0x7ffa24['originalSuggestionId']||null,'attributes':_0x4aa234['attributes']};this['_adapter']['addSuggestion'](_0x3123bf)['then'](_0x4ef5e9=>{_0x4aa234['_saved']=!0x0,_0x475ddc['remove'](_0x29a9b5),_0x4ef5e9&&_0x4ef5e9['createdAt']&&(this['_suggestions']['get'](_0x868713)['createdAt']=_0x4ef5e9['createdAt']);})['catch'](_0xc01457=>{throw _0x219ccc('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4aa234['discard']();}),_0x4aa234['stopListening'](),this['_suggestions']['delete'](_0x4aa234['id']),this['_suggestionState']['delete'](_0x4aa234),_0xc01457;});}return _0x4aa234;}['_updateSuggestionData'](_0x2eaa06,_0x178330){const _0x55eff3=this['editor']['plugins']['get']('PendingActions'),_0x579cf2=this['getSuggestion'](_0x2eaa06);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x579cf2['_saved']){const _0x44de3c=_0x55eff3['add'](Tt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2eaa06,_0x178330)['then'](()=>{_0x55eff3['remove'](_0x44de3c);});}else _0x579cf2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2eaa06,_0x178330);});}}['_getSuggestionData'](_0x6dee6e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x180e5c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x6dee6e);}['_handleNewSuggestionMarker'](_0x1eff39){const {id:_0x5f183b,type:_0x329bcd,subType:_0x1af20e,authorId:_0x43f890}=_0x368712(_0x1eff39),_0x1aa176=this['_suggestions']['get'](_0x5f183b)||this['_createSuggestion'](_0x329bcd,_0x1af20e,_0x5f183b,_0x43f890,{});switch(this['_checkSuggestionCorrectness'](_0x1aa176,_0x329bcd,_0x1af20e,_0x43f890),this['_suggestionState']['get'](_0x1aa176)){case'notReady':this['_getSuggestionData'](_0x5f183b)['then'](_0x2e1085=>{let _0x108a50=Promise['resolve']();_0x2e1085['hasComments']&&(_0x108a50=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5f183b})),_0x108a50['then'](()=>{this['addSuggestionData'](_0x2e1085)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1aa176,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5f183b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1aa176,'ready'),this['fire']('suggestionLoaded',_0x1aa176);break;case'ready':this['fire']('suggestionChanged',_0x1aa176);}return _0x1aa176['addMarkerName'](_0x1eff39),_0x1aa176;}['_refreshSuggestionsChain'](_0x50a0f6){const _0x432540=Array['from'](_0x50a0f6),_0x2bdf42=_0x432540['filter'](_0x45fcae=>'attribute'==_0x45fcae['type']);this['_refreshAttributeSuggestionsChain'](_0x2bdf42);const _0x384353=_0x432540['filter'](_0x3f18ff=>!_0x3f18ff['isMultiRange']&&'attribute'!=_0x3f18ff['type']),_0x488813=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e031b=>!_0x4e031b['isMultiRange']&&'attribute'!=_0x4e031b['type']),_0x590bb4=_0x488813['filter'](_0xd83e44=>!_0x50a0f6['has'](_0xd83e44)),_0x2e524d=new Map(_0x488813['map'](_0x3994f1=>[_0x3994f1,this['_suggestionFactory']['getSuggestionCallback'](_0x3994f1['type'],_0x3994f1['subType'],'chain')])),_0x19718d=new Map(_0x488813['map'](_0x15e1fe=>[_0x15e1fe,_0x15e1fe['getFirstRange']()])),_0x3e25e1=new Set(),_0x2648c1=new Set();for(let _0x33eaae=0x0;_0x33eaae<_0x384353['length'];_0x33eaae++)_0x5b44c7(_0x384353[_0x33eaae],_0x384353,_0x33eaae+0x1);for(let _0x4ba12e=0x0;_0x4ba12e<_0x384353['length'];_0x4ba12e++)_0x5b44c7(_0x384353[_0x4ba12e],_0x590bb4,0x0);const _0x4c6653=new Set();for(let _0x400501=0x0;_0x400501<_0x384353['length'];_0x400501++){const _0xac813d=_0x384353[_0x400501];!_0x2648c1['has'](_0xac813d)&&_0xac813d['previous']&&(_0x4c6653['add'](_0xac813d['previous']),_0xac813d['previous']['next']===_0xac813d&&(_0xac813d['previous']['next']=null),_0xac813d['previous']=null),!_0x3e25e1['has'](_0xac813d)&&_0xac813d['next']&&(_0x4c6653['add'](_0xac813d['next']),_0xac813d['next']['previous']===_0xac813d&&(_0xac813d['next']['previous']=null),_0xac813d['next']=null);}function _0x5b44c7(_0x138e2e,_0x489d7e,_0x3a88fa){for(let _0x21af0f=_0x3a88fa;_0x21af0f<_0x489d7e['length'];_0x21af0f++){const _0x5ad01f=_0x13407c(_0x138e2e,_0x489d7e[_0x21af0f]);_0x5ad01f&&(_0x5ad01f[0x0]['next']=_0x5ad01f[0x1],_0x5ad01f[0x1]['previous']=_0x5ad01f[0x0],_0x3e25e1['add'](_0x5ad01f[0x0]),_0x2648c1['add'](_0x5ad01f[0x1]));}}function _0x13407c(_0x1793c5,_0x5e582c){if(_0x1793c5['author']['id']!==_0x5e582c['author']['id'])return null;const _0x1f3b0b=_0x2e524d['get'](_0x1793c5)(_0x1793c5,_0x5e582c,_0x19718d['get'](_0x1793c5),_0x19718d['get'](_0x5e582c));if(!_0x1f3b0b)return null;return _0x2e524d['get'](_0x5e582c)(_0x1793c5,_0x5e582c,_0x19718d['get'](_0x1793c5),_0x19718d['get'](_0x5e582c))?_0x1f3b0b[0x1]['commentThread']&&_0x1f3b0b[0x1]['commentThread']['length']?null:_0x1f3b0b:null;}_0x4c6653['size']&&this['_refreshSuggestionsChain'](_0x4c6653);}['_refreshAttributeSuggestionsChain'](_0x92d21){if(0x0==_0x92d21['length'])return;const _0x39086b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4fb86f=>'attribute'==_0x4fb86f['type']&&_0x4fb86f['_isDataLoaded']),_0x49bb80=[],_0x3763a9=new Map();for(const _0x9dce43 of _0x39086b){const _0x4b76ef=_0x274975(_0x9dce43['attributes']);_0x3763a9['has'](_0x4b76ef)||(_0x3763a9['set'](_0x4b76ef,_0x49bb80['length']),_0x49bb80['push']([]));const _0x278915=_0x3763a9['get'](_0x4b76ef);_0x49bb80[_0x278915]['push'](_0x9dce43);}!(function(){_0x49bb80['sort']((_0x4606d4,_0x223447)=>{const _0x96ee9=_0x4606d4[0x0]['createdAt'],_0x48ef4f=_0x223447[0x0]['createdAt'];return _0x96ee9==_0x48ef4f?_0x4606d4[0x0]['attributes']['groupId']<_0x223447[0x0]['attributes']['groupId']?-0x1:0x1:_0x96ee9<_0x48ef4f?-0x1:0x1;});for(const _0x4c6ea3 of _0x49bb80)_0x4c6ea3['sort']((_0x2f70d3,_0x327d5a)=>_0x2f70d3['id']<_0x327d5a['id']?-0x1:0x1);}());for(let _0x37b1ae=0x0;_0x37b1ae<_0x49bb80['length'];_0x37b1ae++){if(0x0==_0x49bb80[_0x37b1ae]['length'])continue;const _0x3cc20b=[];for(let _0x5745c9=_0x37b1ae+0x1;_0x5745c9<_0x49bb80['length'];_0x5745c9++)0x0!=_0x49bb80[_0x5745c9]['length']&&_0x438446(_0x49bb80[_0x37b1ae],_0x49bb80[_0x5745c9])&&_0x3cc20b['push'](_0x5745c9);for(const _0x7c802e of _0x3cc20b)_0x49bb80[_0x37b1ae]=_0x49bb80[_0x37b1ae]['concat'](_0x49bb80[_0x7c802e]),_0x49bb80[_0x7c802e]=[];}for(const _0x284318 of _0x49bb80)for(let _0x279032=0x0;_0x279032<_0x284318['length'];_0x279032++){const _0x275553=_0x284318[_0x279032+0x1]||null;_0x284318[_0x279032]['next']!==_0x275553&&(_0x284318[_0x279032]['next']=_0x275553);}for(const _0xc62a44 of _0x49bb80)for(let _0x3fba79=0x0;_0x3fba79<_0xc62a44['length'];_0x3fba79++){const _0x4ba2cd=_0xc62a44[_0x3fba79-0x1]||null;_0xc62a44[_0x3fba79]['previous']!==_0x4ba2cd&&(_0xc62a44[_0x3fba79]['previous']=_0x4ba2cd);}function _0x438446(_0xb7f557,_0x316916){if(_0xb7f557[0x0]['attributes']['groupId']!==_0x316916[0x0]['attributes']['groupId']&&_0xb7f557[0x0]['author']!==_0x316916[0x0]['author'])return!0x1;if(!function(_0x19c283,_0x2108a0){if(!_0x19c283['hasComments']&&!_0x2108a0['hasComments'])return!0x0;if(_0x19c283['hasComments']&&_0x2108a0['hasComments'])return!0x1;if(_0x19c283['hasComments']&&_0x2108a0['createdAt']<_0x19c283['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2108a0['hasComments']&&_0x19c283['createdAt']<_0x2108a0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xb7f557[0x0],_0x316916[0x0]))return!0x1;const _0x2d58c6=ot(_0xb7f557[0x0]['attributes'],['groupId','trackingSessionId']),_0x1e12b1=ot(_0x316916[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x2d58c6,_0x1e12b1))return!0x1;if(_0xb7f557[0x0]['attributes']['groupId']==_0x316916[0x0]['attributes']['groupId'])return!0x0;if(_0xb7f557[0x0]['attributes']['trackingSessionId']!==_0x316916[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xb7f557['every'](_0x2540b4=>_0x316916['some'](_0x504804=>_0x2540b4['getFirstRange']()['isEqual'](_0x504804['getFirstRange']())))&&_0x316916['every'](_0x18ca66=>_0xb7f557['some'](_0x3066b5=>_0x18ca66['getFirstRange']()['isEqual'](_0x3066b5['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3c89be){const _0xa1c6de=Array['from'](_0x3c89be),_0x287b82=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1e4f7d=_0x287b82['filter'](_0x2a8128=>!_0x3c89be['has'](_0x2a8128)),_0x25aef9=new Map(_0xa1c6de['map'](_0x51ffbf=>[_0x51ffbf,this['_suggestionFactory']['getSuggestionCallback'](_0x51ffbf['type'],_0x51ffbf['subType'],'join')])),_0x19bb16=new Map(_0x287b82['map'](_0x5cb69d=>[_0x5cb69d,_0x5cb69d['getRanges']()]));for(let _0x7710c=0x0;_0x7710c<_0xa1c6de['length'];_0x7710c++){if(_0xa2ef30(this,_0xa1c6de[_0x7710c],_0xa1c6de,_0x7710c+0x1))return!0x0;}for(let _0x3a8ac7=0x0;_0x3a8ac7<_0xa1c6de['length'];_0x3a8ac7++){if(_0xa2ef30(this,_0xa1c6de[_0x3a8ac7],_0x1e4f7d,0x0))return!0x0;}return!0x1;function _0xa2ef30(_0x4c264c,_0x53ef7a,_0x3e3b17,_0x3fd2d0){for(let _0x34ffd0=_0x3fd2d0;_0x34ffd0<_0x3e3b17['length'];_0x34ffd0++){const _0x5412c6=_0x3e3b17[_0x34ffd0];if(_0x5412c6['type']!==_0x53ef7a['type']||_0x5412c6['author']['id']!==_0x53ef7a['author']['id']||_0x5412c6['subType']!==_0x53ef7a['subType'])continue;if(!jt(_0x53ef7a,_0x5412c6))continue;if('attribute'==_0x53ef7a['type']&&_0x53ef7a['data']['oldValue']!=_0x5412c6['data']['oldValue'])continue;if('attribute'==_0x53ef7a['type']&&_0x4c264c['_suggestionsConversion']['isBlockAttribute'](_0x53ef7a['data']['key']))continue;if('formatBlock'==_0x53ef7a['type']){const _0x5b3230=_0x4c264c['editor']['model'],_0x1bdadd=_0x53ef7a['getContainedElement']();if(_0x1bdadd&&(_0x5b3230['schema']['isObject'](_0x1bdadd)||_0x5b3230['schema']['isLimit'](_0x1bdadd)))continue;}const _0x69a14a=_0x25aef9['get'](_0x53ef7a),_0x4b32bc=_0x19bb16['get'](_0x53ef7a),_0x5f50ea=_0x19bb16['get'](_0x5412c6),_0x5f2da7=_0x53ef7a['commentThread']&&_0x53ef7a['commentThread']['length'],_0x1c7855=_0x5412c6['commentThread']&&_0x5412c6['commentThread']['length'];if(!_0x5f2da7&&_0x69a14a(_0x5f50ea,_0x4b32bc))return _0x4c264c['_joinSuggestions'](_0x5412c6,_0x53ef7a),_0x19bb16['delete'](_0x53ef7a),!0x0;if(!_0x1c7855&&_0x69a14a(_0x4b32bc,_0x5f50ea))return _0x4c264c['_joinSuggestions'](_0x53ef7a,_0x5412c6),_0x19bb16['delete'](_0x5412c6),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3032dd,_0x1a218f){if(_0x3032dd['isMultiRange']){for(const _0x3fe5f3 of _0x1a218f['getRanges']())_0x3032dd['addRange'](_0x3fe5f3);}else{const _0x2fb10a=_0x1a218f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3032dd,this['_model']['createRange'](_0x3032dd['getFirstRange']()['start'],_0x2fb10a));}_0x1a218f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2882c9,_0x36087c,_0x11cac7){const _0x37a242=_0x2882c9['startsWith']('format')||_0x2882c9['startsWith']('attribute')?'FORMATTING':_0x2882c9['toUpperCase']();return Tt(this['editor']['locale'],_0x36087c+'_'+_0x37a242+'_SUGGESTION_ANNOUNCEMENT',_0x11cac7);}['_initAriaMarkerChangeAnnouncements'](){const _0x45a636=this['editor'];if(!_0x45a636['ui'])return;const {ariaLiveAnnouncer:_0x9e9435}=_0x45a636['ui'];_0x3b812a(this['_model'],({left:_0x29a2fb,entered:_0x302138})=>{for(const _0x11ed6c of _0x29a2fb){const {group:_0x34236b,type:_0x20664b}=_0x368712(_0x11ed6c['name']);if('suggestion'===_0x34236b){_0x9e9435['announce'](this['_getMarkerAnnouncementText'](_0x20664b,'LEAVE'));break;}}for(const _0x4343b5 of _0x302138){const {group:_0x494c0c,type:_0x143296}=_0x368712(_0x4343b5['name']);if('suggestion'===_0x494c0c){_0x9e9435['announce'](this['_getMarkerAnnouncementText'](_0x143296,'ENTER',_0x44b0b1(_0x3d6e5e)));break;}}});}['_processAttributeChanges'](_0x288283){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3d5d5b=this['editor'],_0x2393a9=_0x3d5d5b['model']['document']['differ']['getChanges']();if(0x0==_0x2393a9['length'])return!0x1;const _0x1b6123=[],_0x1627dd=_0x2393a9['filter'](_0x2e9141=>'attribute'==_0x2e9141['type']),_0x16ad4e=_0x2393a9['filter'](_0xf9430f=>'insert'==_0xf9430f['type']&&'$text'!=_0xf9430f['name']),_0xd3ba32=_0x2393a9['filter'](_0x1305ae=>'remove'==_0x1305ae['type']&&'$text'!=_0x1305ae['name']);for(const _0x2e7e8f of _0x1627dd)_0x1b6123['push']({'key':_0x2e7e8f['attributeKey'],'newValue':_0x2e7e8f['attributeNewValue'],'oldValue':_0x2e7e8f['attributeOldValue'],'range':$t(_0x2e7e8f['range'],_0x3d5d5b['model'])});for(const _0x2afc12 of _0x16ad4e){const _0x572627=_0xd3ba32['find'](_0x4057bb=>_0x4057bb['position']['isEqual'](_0x2afc12['position']));_0x572627&&_0x1b6123['push']({'key':Bt,'newValue':_0x2afc12['name'],'oldValue':_0x572627['name'],'range':_0x3d5d5b['model']['createRangeOn'](_0x2afc12['position']['nodeAfter'])});}return 0x0!=_0x1b6123['length']&&this['_reduceExistingSuggestions'](_0x288283,_0x1b6123);}['_processAttributeSuggestions'](_0xdaf187){let _0x2e6dc3=!0x1;const _0x34d26a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xbfaff5=>_0xbfaff5['data']['newRange']&&_0xbfaff5['name']['startsWith']('suggestion:attribute:'));for(const _0x503a76 of _0x34d26a){const {subType:_0x5b95f8,id:_0xf9104d}=_0x368712(_0x503a76['name']),_0x205215=_0x5b95f8['split']('|')[0x0];for(const _0x4d8f8c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4d8f8c['id']!=_0xf9104d&&'attribute'==_0x4d8f8c['type']&&_0x4d8f8c['data']&&_0x4d8f8c['data']['key']==_0x205215&&_0x4d8f8c['getFirstRange']()['isIntersecting'](_0x503a76['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4d8f8c,_0x503a76['data']['newRange'],_0xdaf187),_0x2e6dc3=!0x0);}return _0x2e6dc3;}['recordAttributeChanges'](_0x12f0b5){this['_recordAttributeSuggestions']=!0x0,_0x12f0b5();}['_reduceExistingSuggestions'](_0x20aae1,_0x25fce0){if(0x0==_0x25fce0['length'])return!0x1;let _0x1f5d7f=!0x1;for(const _0x1fa808 of _0x25fce0){const _0x2fb724=this['_findSuggestions'](_0x1fa808['range'],'attribute')['filter'](_0x70b5dd=>!_0x70b5dd['meta']['isNextTo'])['map'](_0x240ba1=>_0x240ba1['suggestion']),_0x2b9810=_0x274975({'newValue':_0x1fa808['newValue']});_0x2fb724['filter'](_0x35de2f=>{const [_0x3b7a30,_0xc1926e]=_0x35de2f['subType']['split']('|');return _0x3b7a30==_0x1fa808['key']&&_0xc1926e!=_0x2b9810;})['forEach'](_0x178ed2=>{this['_reduceSuggestionAttributeRange'](_0x178ed2,_0x1fa808['range'],_0x20aae1),_0x1f5d7f=!0x0;});}return _0x1f5d7f;}['_reduceSuggestionAttributeRange'](_0x5e866c,_0x553c9d,_0x24a5d8){const _0x1ff371=_0x5e866c['getFirstRange']()['getDifference'](_0x553c9d);0x0!==_0x1ff371['length']?0x1!==_0x1ff371['length']?this['_breakSuggestionMarker'](_0x5e866c,_0x553c9d['start'],_0x553c9d['end']):this['_setSuggestionRange'](_0x5e866c,_0x1ff371[0x0]):_0x24a5d8['removeMarker'](_0x5e866c['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3b9317){this['_editor']=_0x3b9317,this['_model']=_0x3b9317['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x71425c,_0x123021,_0x2fae9f,_0x4139df,_0x301f36,_0x58ecb6,_0xe1c129){return new Suggestion(this['_model'],{'type':_0x71425c,'subType':_0x123021,'id':_0x2fae9f,'originalSuggestionId':_0xe1c129,'author':_0x4139df,'creator':_0x4139df,'attributes':_0x301f36,'onAttributesChange':_0x58ecb6,'onAccept':(..._0x5c16b1)=>this['getSuggestionCallback'](_0x71425c,_0x123021,'accept')(..._0x5c16b1),'onDiscard':(..._0x14b664)=>this['getSuggestionCallback'](_0x71425c,_0x123021,'discard')(..._0x14b664)});}['registerCustomCallback'](_0x3aa13c,_0x7a62e6,_0x1f0fcf,_0x2ef95b){const _0x298413=_0x3aa13c+':'+_0x7a62e6+':'+_0x1f0fcf;this['_customCallbacks']['set'](_0x298413,_0x2ef95b);}['getSuggestionCallback'](_0x68a591,_0x520536,_0x4da02e){const _0x4cd574=_0x68a591+':'+_0x520536+':'+_0x4da02e;return this['_customCallbacks']['get'](_0x4cd574)||this['_defaultCallbacks']['get'](_0x68a591+':'+_0x4da02e);}['_registerDefaultCallbacks'](){const _0x4bdca5=()=>!0x1,_0x5668c3=_0x119c7c=>{_0x119c7c['sort']((_0xa22160,_0xc9ff72)=>_0xa22160['start']['isBefore'](_0xc9ff72['start'])?0x1:-0x1),this['_model']['change'](_0x149f93=>{for(const _0xfee7d7 of _0x119c7c){let _0x5600f1;_0x5600f1=_0xfee7d7['end']['isAtEnd']&&_0xfee7d7['end']['parent']==_0xfee7d7['start']['nodeAfter']?_0x149f93['createSelection'](_0xfee7d7['start']['nodeAfter'],'on'):_0x149f93['createSelection'](_0xfee7d7),this['_model']['deleteContent'](_0x5600f1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x350883=(_0x165c48,_0x248493)=>{_0x248493&&this['_model']['change'](_0x5c108e=>{const {commandName:_0x4f0262,commandParams:_0x3d2a48=[]}=_0x248493,_0x441caa=_0x165c48['map'](_0x10c704=>(vt(_0x10c704)&&(_0x10c704=this['_model']['createRange'](_0x10c704['end'])),_0x10c704))['filter'](_0x44ea91=>'$graveyard'!==_0x44ea91['root']['rootName']);if(_0x441caa['length']<0x1)return;const _0x107156=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x40c905=>_0x418bbc['fromRange'](_0x40c905));_0x5c108e['setSelection'](_0x441caa);for(const _0x9944c9 of this['_editor']['commands']['commands']())_0x9944c9['refresh']();_0x3d2a48['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4f0262,..._0x3d2a48);const _0x328c99=_0x107156['filter'](_0x33a8d8=>'$graveyard'!=_0x33a8d8['root']['rootName']);_0x328c99['length']>0x0&&_0x5c108e['setSelection'](_0x328c99);for(const _0x22a83a of _0x107156)_0x22a83a['detach']();});},_0x5dc86f=(_0x1f3074,_0x203d98)=>0x1==_0x1f3074['length']&&0x1==_0x203d98['length']&&_0x1f3074[0x0]['end']['isEqual'](_0x203d98[0x0]['start']),_0x13d09b=(_0x505796,_0x7c7d9f,_0x1185b8,_0x135de1)=>Wt(_0x505796,_0x7c7d9f,_0x1185b8,_0x135de1)?[_0x505796,_0x7c7d9f]:Wt(_0x7c7d9f,_0x505796,_0x135de1,_0x1185b8)?[_0x7c7d9f,_0x505796]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4bdca5),this['_defaultCallbacks']['set']('insertion:discard',_0x5668c3),this['_defaultCallbacks']['set']('insertion:join',_0x5dc86f),this['_defaultCallbacks']['set']('insertion:chain',_0x13d09b),this['_defaultCallbacks']['set']('deletion:accept',_0x5668c3),this['_defaultCallbacks']['set']('deletion:discard',_0x4bdca5),this['_defaultCallbacks']['set']('deletion:join',_0x5dc86f),this['_defaultCallbacks']['set']('deletion:chain',_0x13d09b),this['_defaultCallbacks']['set']('formatInline:accept',_0x350883),this['_defaultCallbacks']['set']('formatInline:discard',_0x4bdca5),this['_defaultCallbacks']['set']('formatInline:join',_0x5dc86f),this['_defaultCallbacks']['set']('formatInline:chain',_0x4bdca5),this['_defaultCallbacks']['set']('formatBlock:accept',_0x350883),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4bdca5),this['_defaultCallbacks']['set']('formatBlock:join',_0x5dc86f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4bdca5),this['_defaultCallbacks']['set']('attribute:accept',_0x4bdca5),this['_defaultCallbacks']['set']('attribute:discard',(_0x4443c9,_0x1b7542)=>{if(!_0x1b7542)return;const _0x49bd79=this['_editor']['plugins']['get'](_0x133a74);this['_model']['change'](_0x3bdeac=>{if(_0x1b7542['key']==Bt)for(const _0x5bf61a of _0x4443c9){const _0x3feabe=_0x5bf61a['start']['nodeAfter'],_0x5aa41d=_0x1b7542['oldValue'];_0x3bdeac['rename'](_0x3feabe,_0x5aa41d);}else{if(_0x49bd79['isBlockAttribute'](_0x1b7542['key'])){for(const _0x234268 of _0x4443c9)void 0x0!==_0x1b7542['oldValue']?_0x3bdeac['setAttribute'](_0x1b7542['key'],_0x1b7542['oldValue'],_0x234268['start']['nodeAfter']):_0x3bdeac['removeAttribute'](_0x1b7542['key'],_0x234268['start']['nodeAfter']);}else{for(const _0x4f18de of _0x4443c9)_0x1b7542['oldValue']?_0x3bdeac['setAttribute'](_0x1b7542['key'],_0x1b7542['oldValue'],_0x4f18de):_0x3bdeac['removeAttribute'](_0x1b7542['key'],_0x4f18de);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5dc86f);}}function Dt(_0x1708ca,_0x148d4e,_0x341815){for(const _0x175cb7 of _0x148d4e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x175cb7['root']==_0x175cb7)return!0x1;if(!_0x341815['containsItem'](_0x175cb7))return!0x1;if(_0x1708ca['isObject'](_0x175cb7)||_0x1708ca['isLimit'](_0x175cb7))return!0x0;}return!0x1;}function vt(_0x64d3f2){return _0x64d3f2['end']['parent']==_0x64d3f2['start']['nodeAfter']&&_0x64d3f2['end']['isAtStart'];}function Pt(_0x2d03e6,_0x279dd3,_0x50e7fd,_0x48a0aa){const _0xd39d2=_0x345514=>!_0x345514['item']['is']('$textProxy')&&!_0x48a0aa['isObject'](_0x345514['item']),_0x49d4c3=_0x2d03e6['start']['getLastMatchingPosition'](_0xd39d2),_0x29c901=_0x2d03e6['end']['getLastMatchingPosition'](_0xd39d2,{'direction':'backward'});return(!_0x2d03e6['start']['isEqual'](_0x49d4c3)||!_0x2d03e6['end']['isEqual'](_0x29c901))&&(_0x49d4c3['isBefore'](_0x29c901)?_0x50e7fd['updateMarker'](_0x279dd3,{'range':_0x50e7fd['createRange'](_0x49d4c3,_0x29c901)}):_0x50e7fd['removeMarker'](_0x279dd3),!0x0);}function xt(_0x26738a){return _0x274975(_0x26738a);}function Ut(_0x52356d){const _0x4fa479=_0x52356d['start']['nodeAfter'];return _0x4fa479&&_0x4fa479['is']('element');}function Gt(_0x441191){return vt(_0x441191)||function(_0x569dbd){return _0x569dbd['start']['parent']==_0x569dbd['end']['nodeBefore']&&_0x569dbd['start']['isAtEnd'];}(_0x441191);}function Ht(_0x386afc,_0x4eb440){try{const _0x441ded=_0x386afc['getRange']();for(const _0x3e6f43 of _0x4eb440)if(_0x386afc!==_0x3e6f43&&_0x441ded&&_0x441ded['isIntersecting'](_0x3e6f43['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function $t(_0x184a09,_0x37cf2a){return null==_0x184a09['end']['nodeBefore']&&_0x184a09['end']['parent']==_0x184a09['start']['nodeAfter']?Vt(_0x184a09['start']['nodeAfter'],_0x37cf2a):_0x184a09;}function Vt(_0x5d29db,_0x438f75){const _0x34461f=_0x438f75['schema']['isObject'](_0x5d29db)||_0x438f75['schema']['isSelectable'](_0x5d29db);return _0x438f75['createRange'](_0x438f75['createPositionAt'](_0x5d29db,'before'),_0x34461f?_0x438f75['createPositionAfter'](_0x5d29db):_0x438f75['createPositionAt'](_0x5d29db,'end'));}function Wt(_0x3b323e,_0x5e02d7,_0x5d64f5,_0x563bf9){return!!jt(_0x3b323e,_0x5e02d7)&&_0x5d64f5['end']['isEqual'](_0x563bf9['start']);}function jt(_0xecfade,_0x2b6ab6){if(!_0xecfade['_isDataLoaded']||!_0x2b6ab6['_isDataLoaded'])return!0x1;const _0x41ca27=new Set(Object['keys'](_0xecfade['attributes'])),_0x2c0e78=new Set(Object['keys'](_0x2b6ab6['attributes']));if(_0x41ca27['delete']('groupId'),_0x2c0e78['delete']('groupId'),0x0==_0x41ca27['size']&&0x0==_0x2c0e78['size'])return!0x0;if(_0x41ca27['size']!=_0x2c0e78['size'])return!0x1;const _0x4e680d={..._0xecfade['attributes']},_0x3e293f={..._0x2b6ab6['attributes']};return delete _0x4e680d['groupId'],delete _0x3e293f['groupId'],JSON['stringify'](_0x4e680d)==JSON['stringify'](_0x3e293f);}function zt(_0x4b2808,_0x2619ef){const _0x2442d1=Kt(_0x4b2808['attributes']),_0x478752=Kt(_0x2619ef);if(!_0x4b2808['_isDataLoaded'])return!0x1;for(const _0x24e52a of Object['keys'](_0x478752))if(!st(_0x2442d1[_0x24e52a],_0x478752[_0x24e52a]))return!0x1;return!0x0;}function Kt(_0xbd3bc1){const _0x411e10=Object['assign']({},_0xbd3bc1);return delete _0x411e10['skipNestingCheck'],delete _0x411e10['tablePasteChainId'],_0x411e10;}function Xt(_0x4e3c12){return _0x4e3c12['split']('|')[0x0];}class SuggestionController extends/* #__PURE__ -- @preserve */
26
- _0x2671d6(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x24d78f,_0x3da443,_0xb7ac93,_0x461257){super(),this['model']=_0x3da443,this['view']=_0xb7ac93,this['commentThreadController']=_0x461257,this['_editor']=_0x24d78f,this['_acceptCommand']=_0x24d78f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x24d78f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5144d5,_0x52cfc4)=>_0x5144d5||_0x52cfc4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3dcfb4=>_0x3dcfb4&&this['_editor']['model']['canEditAt'](_0x3da443['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x185360=>_0x185360&&this['_editor']['model']['canEditAt'](_0x3da443['getRanges']())),this['_pendingAction']=null,_0xb7ac93['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xb7ac93,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xb7ac93,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xb7ac93,'change:isDirty',()=>{_0xb7ac93['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 _0x113613=Tt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x113613);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class BaseSuggestionThreadView extends _0x3dabb4{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x546b4b,_0x35a026,_0xde16ca,_0x848fe){super(_0x546b4b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1b5838(_0x546b4b,Tt(_0x546b4b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x35a026['authoredAt']),this['bind']('authoredAt')['to'](_0x35a026),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',_0x35a026,'authoredAt',this,'descriptionParts',(_0x175c12,_0x481184,_0x543fbf)=>{const _0x4f922b=_0x543fbf['map'](_0x22bc0e=>ht(_0x22bc0e['content']))['join']('.\x20')+'.';return Tt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x175c12-0x1,_0x35a026['author']['name'],_0x481184?_0x848fe['formatDateTime'](_0x481184):'',new DOMParser()['parseFromString'](_0x4f922b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x25a70f(),this['focusTracker']=new _0x430cd1(),this['keystrokes']=new _0x49f1ea(),this['focusCycler']=new _0x1a7373({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4d3847=>_0x4d3847['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x35a026,this['_localUser']=_0xde16ca,this['_config']=_0x848fe,_0x848fe['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5c8496(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x568d54}=this['_config'];this['commentsListView']=new _0x568d54(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',_0x48dde2=>_0x48dde2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1600c2,_0x5b7a5f)=>_0x1600c2||!!_0x5b7a5f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x341e9e}=this['_config'],_0x4f74ab=new _0x341e9e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x38056d=_0x4f74ab['commentInputView'];return _0x4f74ab['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x38056d,'value',(_0x82e974,_0x978382,_0x28025d)=>!!_0x28025d||_0x82e974&&!_0x978382),_0x38056d['on']('submit',(_0x448622,_0x134d0f)=>{this['fire']('addComment',_0x134d0f),_0x38056d['editor']['setData']('');}),_0x38056d['on']('cancel',()=>this['focus']()),_0x38056d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4f74ab;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x1d9e17,_0x6e2c55,_0x2dadec,_0xeb401e){super(_0x1d9e17,_0x6e2c55,_0x2dadec,_0xeb401e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x494a2f=>_0x494a2f&&_0x494a2f[0x0]?_0x494a2f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3408e6,_0x3cd22a)=>{let _0x35a7d7='';for(const _0x3a7ab7 of _0x3408e6)_0x35a7d7+='<p>'+ht(_0x3a7ab7['content'],_0x3a7ab7['color'])+'</p>';return _0x3cd22a?_0x35a7d7:_0x332d04(_0x35a7d7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xeb401e['SuggestionView'](_0x1d9e17,_0x6e2c55,{'formatDateTime':_0xeb401e['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 _0x1fbc41=this['bindTemplate'],_0x1f583e=[this['suggestionView']];return this['commentsListView']&&_0x1f583e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1f583e['push'](this['commentThreadInputView']),_0x1f583e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1fbc41['if']('isActive','ck-suggestion-wrapper--active'),_0x1fbc41['to']('type',_0x2017db=>'ck-suggestion-'+_0x2017db),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':_0x1fbc41['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1f583e};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class SuggestionView extends _0x3dabb4{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5c5a4f,_0x4ef060,_0x5adce0){super(_0x5c5a4f),this['_model']=_0x4ef060,this['_config']=_0x5adce0,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4ef060),this['acceptButton']=this['_createButton'](Tt(_0x5c5a4f,'Accept\x20suggestion'),_0x4370cb,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Tt(_0x5c5a4f,'Discard\x20suggestion'),_0x7afe80,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2f641b(_0x5c5a4f,_0x4ef060['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x25a70f([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x430cd1(),this['keystrokes']=new _0x49f1ea(),this['focusCycler']=new _0x1a7373({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x164023=>_0x164023['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xaa592=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xaa592['innerHTML']=this['description'],this['on']('change:description',(_0x458e74,_0x3ca378,_0x38185f)=>{_0xaa592['innerHTML']=_0x38185f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x252f30=this['bindTemplate'],_0x114a03=[{'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':_0x252f30['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x252f30['to']('authoredAt',_0x51f220=>this['_config']['formatDateTime'](_0x51f220))}]}]},{'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']&&_0x114a03['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':_0x114a03}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Tt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Tt(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2a8bec,_0x5f5829,_0x421b82,_0x371bd8,_0x1a8da7){const _0x52973b=new _0x80ad2c(this['locale']);return _0x52973b['set']({'label':_0x2a8bec,'icon':_0x5f5829,'tooltip':!0x0,'tooltipPosition':_0x1a8da7}),_0x52973b['extendTemplate']({'attributes':{'class':_0x421b82}}),_0x52973b['on']('execute',()=>{this['fire'](_0x371bd8,this['_model']['id']);}),_0x52973b;}['_setupKeyboardNavigation'](){const _0x12b434=this['element'];this['keystrokes']['listenTo'](_0x12b434);for(const _0x5b8add of this['focusables'])this['focusTracker']['add'](_0x5b8add['element']),this['keystrokes']['listenTo'](_0x5b8add['element']);this['keystrokes']['set']('enter',(_0x578f40,_0x5ca021)=>{_0x12b434===_0x578f40['target']&&(this['focusCycler']['focusFirst'](),_0x5ca021());}),this['keystrokes']['set']('esc',(_0x54a8d6,_0x46cfdd)=>{_0x12b434!==_0x54a8d6['target']&&(this['focus'](),_0x46cfdd());});}}class TrackChangesUI extends _0x3ea3b4{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[TrackChangesEditing,_0x2735a2,_0x181319,_0x1a224d,_0x44a098];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b32ee){super(_0x4b32ee),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3b0e43=this['editor']['config'];_0x3b0e43['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x3b0e43['define']('trackChanges.SuggestionView',SuggestionView),_0x3b0e43['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3b0e43['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x32b822,_0x239159){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3a7fe6,_0x38fde6]of this['_handleControllerBuffer']){const _0x3fc54b=this['_suggestionToController']['has'](_0x3a7fe6);_0x3fc54b||_0x38fde6?_0x3fc54b&&_0x38fde6&&this['_destroyController'](_0x3a7fe6):this['_initializeController'](_0x3a7fe6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x44a098)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x32b822,_0x239159);}['init'](){const _0x34504d=this['editor'],_0x90019a=_0x34504d['plugins']['get'](TrackChangesEditing),_0x317d6d=_0x34504d['plugins']['get'](_0x1a224d),_0x3bbcd4=_0x34504d['plugins']['get'](_0x44a098),_0x1c9529=_0x34504d['plugins']['get'](_0x181319);this['_addUIComponentsToFactory'](),_0x3bbcd4['addSourceCollector'](()=>{const _0x325e08=[];for(const [_0x2f4267,_0x222b7a]of Array['from'](this['_suggestionToController'])){const _0x59d185=_0x2f4267['getAllAdjacentSuggestions'](),_0x2e8ceb=[];for(const _0x1c97d0 of _0x59d185){if(!_0x1c97d0['isInContent'])continue;if(_0x1c97d0['isMultiRange']){_0x2e8ceb['push'](..._0x1c97d0['getRanges']());continue;}const _0x2bb065=_0x1c97d0['getFirstRange']();if(_0x2e8ceb['length']>0x0){const _0xef4f4b=_0x2e8ceb[0x0]['getJoined'](_0x2bb065);if(_0xef4f4b){_0x2e8ceb[0x0]=_0xef4f4b;continue;}}_0x2e8ceb['push'](_0x2bb065);}_0x325e08['push']([_0x222b7a['view'],_0x2e8ceb]);}return _0x325e08;}),this['listenTo'](_0x90019a,'suggestionLoaded',(_0x37a800,_0x3d7cb6)=>{this['listenTo'](_0x3d7cb6,'change:previous',(_0x516954,_0x2302af,_0x215207,_0x2718a5)=>{_0x3d7cb6['isInContent']&&(null==_0x215207?(this['_updateController'](_0x2718a5['head']),this['_handleSuggestionControllerDelayed'](_0x3d7cb6,!0x1)):(this['_updateController'](_0x215207['head']),null==_0x2718a5&&this['_handleSuggestionControllerDelayed'](_0x3d7cb6,!0x0)));}),null!==_0x3d7cb6['previous']?this['_updateController'](_0x3d7cb6['head']):this['_handleSuggestionControllerDelayed'](_0x3d7cb6,!0x1);}),this['listenTo'](_0x90019a,'suggestionUnloaded',(_0x5a89b2,_0x17c1f7,_0x321857)=>{this['stopListening'](_0x17c1f7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x17c1f7),this['_suggestionToController']['has'](_0x17c1f7)&&this['_destroyController'](_0x17c1f7),_0x321857&&this['_updateController'](_0x321857['head']);}),this['listenTo'](_0x90019a,'suggestionChanged',(_0x6d4f47,_0x34dc7e)=>{this['_updateController'](_0x34dc7e);}),this['listenTo'](_0x317d6d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1c9529,'addComment',(_0x445ffe,{threadId:_0x394d8f,isFromAdapter:_0xb370e4})=>{if(_0xb370e4||!_0x90019a['hasSuggestion'](_0x394d8f))return;const _0x1a5db4=_0x90019a['getSuggestion'](_0x394d8f);this['_suggestionToController']['get'](_0x1a5db4)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xe07827=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x39303d;for(const _0x521a93 in _0xe07827){const _0x1918ec=_0x521a93,_0xd213a2=_0xe07827[_0x1918ec];if('trackChangesLicenseKeyValid'==_0xd213a2||'trackChangesLicenseKeyInvalid'==_0xd213a2||'trackChangesLicenseKeyExpired'==_0xd213a2||'trackChangesLicenseKeyDomainLimit'==_0xd213a2||'trackChangesLicenseKeyNotAllowed'==_0xd213a2||'trackChangesLicenseKeyEvaluationLimit'==_0xd213a2||'trackChangesLicenseKeyUsageLimit'==_0xd213a2){delete _0xe07827[_0x1918ec],_0x39303d=_0xd213a2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x39303d&&_0xe07827['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x39303d&&_0xe07827['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x39303d&&_0xe07827['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x39303d&&_0xe07827['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x39303d&&_0xe07827['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x39303d&&_0xe07827['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x30d59e){const _0xaa287a=this['_suggestionToController']['get'](_0x30d59e);if(!_0xaa287a)return null;return this['editor']['plugins']['get'](_0x1a224d)['getByInnerView'](_0xaa287a['view'])||null;}['getSuggestionForAnnotation'](_0x2ec80){const _0x204458=this['_viewToController']['get'](_0x2ec80['innerView']);return _0x204458?_0x204458['model']:null;}['_refreshActiveMarkers'](){const _0xec3bc5=this['editor']['plugins']['get'](_0x1a224d),_0x242c3a=this['editor']['plugins']['get'](TrackChangesEditing),_0x3184fd=Array['from'](_0xec3bc5['activeAnnotations'],_0x2c5cc5=>_0x2c5cc5['innerView'])['filter'](_0x4d87e9=>this['_viewToController']['has'](_0x4d87e9)),_0x371ffe=[];for(const _0x4f7692 of _0x3184fd){const _0x10ce98=this['_viewToController']['get'](_0x4f7692)['model']['getAllAdjacentSuggestions']();_0x371ffe['push'](..._0x10ce98['reduce']((_0x2f3967,_0x27625d)=>[..._0x2f3967,..._0x27625d['getMarkerNames']()],[]));}_0x242c3a['activeMarkers']=_0x371ffe;}['_addUIComponentsToFactory'](){const _0x418fe4=this['editor'],_0xddcaf7=_0x418fe4['locale'],_0x2f8e77=Tt(_0xddcaf7,'Track\x20changes'),_0x4d218d=new _0x3e5b65([{'type':'switchbutton','model':new _0x4f152d({'withText':!0x0,'isToggleable':!0x0,'label':_0x2f8e77,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4f152d({'withText':!0x0,'label':Tt(_0xddcaf7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4f152d({'withText':!0x0,'label':Tt(_0xddcaf7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4f152d({'withText':!0x0,'label':Tt(_0xddcaf7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4f152d({'withText':!0x0,'label':Tt(_0xddcaf7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x418fe4['plugins']['has']('TrackChangesPreview')&&_0x4d218d['addMany']([{'type':'separator'},{'type':'button','model':new _0x4f152d({'withText':!0x0,'label':Tt(_0xddcaf7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2d8f76 of _0x4d218d)if(Yt(_0x2d8f76)){const _0x39fb90=_0x418fe4['commands']['get'](_0x2d8f76['model']['commandName']);_0x2d8f76['model']['bind']('isOn','isEnabled')['to'](_0x39fb90,'value','isEnabled');}_0x418fe4['ui']['componentFactory']['add']('trackChanges',_0x2fbe5b=>this['_createToolbarButton'](_0x2fbe5b,_0x4d218d,_0x2f8e77)),_0x418fe4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x210cec=>this['_createMenuBarMenu'](_0x210cec,_0x4d218d,_0x2f8e77));}['_createToolbarButton'](_0x44e5a7,_0x47d759,_0x24a5e3){const _0x451e51=_0xe3101(_0x44e5a7,_0x140ced),_0x5edce3=this['editor']['commands']['get']('trackChanges');_0x451e51['buttonView']['set']({'tooltip':_0x24a5e3,'label':_0x24a5e3,'icon':_0x2a0832}),_0x451e51['buttonView']['bind']('isOn')['to'](_0x5edce3,'value'),_0x451e51['buttonView']['on']('execute',()=>{_0x5edce3['execute'](),this['editor']['editing']['view']['focus']();}),_0x14603c(_0x451e51,_0x47d759,{'role':'menu'});const _0x2df0cc=[];for(const _0x38deb0 of _0x47d759)Yt(_0x38deb0)&&_0x2df0cc['push'](this['editor']['commands']['get'](_0x38deb0['model']['commandName']));const _0x5e9d93=_0x451e51['buttonView'];return _0x5e9d93['actionView']['unbind']('isEnabled'),_0x5e9d93['arrowView']['unbind']('isEnabled'),_0x5e9d93['actionView']['bind']('isEnabled')['to'](_0x5edce3,'isEnabled'),_0x5e9d93['arrowView']['bind']('isEnabled')['toMany'](_0x2df0cc,'isEnabled',(..._0x2ee767)=>_0x2ee767['some'](_0x56b7d2=>_0x56b7d2)),_0x451e51['on']('execute',_0x183d0e=>{this['editor']['execute'](_0x183d0e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x451e51;}['_createMenuBarMenu'](_0x40e078,_0x4b4f25,_0xff61a0){const _0x3a1456=new _0x7f1e4f(_0x40e078),_0x34fb80=this['editor']['commands']['get']('trackChanges');_0x3a1456['buttonView']['set']({'label':_0xff61a0,'icon':_0x2a0832});const _0x2d1d61=new _0x51605c(_0x40e078);for(const _0x5a1d90 of _0x4b4f25){if('separator'==_0x5a1d90['type']){_0x2d1d61['items']['add'](new _0x2ebf0c(_0x40e078));continue;}const _0x1bd51c=new _0x43e5a5(_0x40e078,_0x3a1456),_0x9ee1d0=new _0x3ddcae(_0x40e078),_0xa59f9a=_0x5a1d90['model'];_0x9ee1d0['bind'](...Object['keys'](_0xa59f9a))['to'](_0xa59f9a),_0x9ee1d0['delegate']('execute')['to'](_0x3a1456),_0x9ee1d0['on']('execute',()=>{this['editor']['execute'](_0xa59f9a['commandName']),this['editor']['editing']['view']['focus']();}),_0x1bd51c['children']['add'](_0x9ee1d0),_0x2d1d61['items']['add'](_0x1bd51c);}return _0x3a1456['bind']('isEnabled')['to'](_0x34fb80,'isEnabled'),_0x3a1456['panelView']['children']['add'](_0x2d1d61),_0x3a1456;}['_initializeController'](_0x5dfdb1){const _0x518f95=this['editor'],_0x567e51=_0x518f95['config'],_0x51f274=_0x518f95['plugins']['get'](_0x1a224d),_0x174d69=_0x518f95['plugins']['get'](_0x181319),_0x56f1c6=_0x518f95['plugins']['get'](_0x44a098),_0x1f158e=_0x518f95['plugins']['get'](_0x2735a2)['me'],_0x17a945=_0x567e51['get']('trackChanges')['SuggestionThreadView'],_0x217b0b=_0x567e51['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x27082c,CommentThreadInputView:_0x8fa994}=_0x518f95['plugins']['get']('CommentsUI');let _0x3234f9,_0x293e15,_0x20784b;this['_annotationViews']['has'](_0x5dfdb1['id'])?(_0x293e15=this['_annotationViews']['get'](_0x5dfdb1['id']),_0x3234f9=_0x293e15['mainView']):(_0x3234f9=new _0x17a945(_0x518f95['locale'],_0x5dfdb1,_0x1f158e,{'disableComments':this['_disableComments'],'editorConfig':{..._0x567e51['get']('comments.editorConfig'),'licenseKey':_0x567e51['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x567e51['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x567e51['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x567e51['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2eaad4(_0x567e51['get']('locale'),_0x518f95['locale']),'CommentView':_0x567e51['get']('comments')['CommentView'],'CommentsListView':_0x27082c,'CommentThreadInputView':_0x8fa994,'SuggestionView':_0x217b0b}),_0x3234f9['suggestionView']['acceptButton']['on']('execute',()=>{_0x518f95['editing']['view']['focus']();}),_0x3234f9['suggestionView']['discardButton']['on']('execute',()=>{_0x518f95['editing']['view']['focus']();}),_0x293e15=_0x51f274['createAnnotationView'](this['editor']['locale'],_0x3234f9),_0x293e15['bind']('isDirty')['to'](_0x3234f9,'isDirty'),_0x293e15['bind']('length')['to'](_0x3234f9),_0x293e15['bind']('type')['to'](_0x3234f9,'type',_0x199e2a=>'suggestion-'+_0x199e2a),_0x3234f9['on']('escape',()=>{_0x20784b['fire']('escape');}),this['_annotationViews']['set'](_0x5dfdb1['id'],_0x293e15));const _0x3b8783=_0x174d69['createCommentThreadController'](_0x5dfdb1['commentThread'],_0x3234f9),_0xd227d6=new SuggestionController(_0x518f95,_0x5dfdb1,_0x3234f9,_0x3b8783),_0xd87d6c=_0x5dfdb1['getAllAdjacentSuggestions']()['filter'](_0x5ca7d5=>_0x5ca7d5['isInContent']);_0x3234f9['descriptionParts']=_0x518f95['plugins']['get'](TrackChangesEditing)['descriptionFactory']['getDescriptions'](_0xd87d6c),this['_suggestionToController']['set'](_0x5dfdb1,_0xd227d6),this['_viewToController']['set'](_0x3234f9,_0xd227d6);const _0x2390d2=()=>{const _0x2bf886=[],_0x3027ee=_0x5dfdb1['getAllAdjacentSuggestions']()['filter'](_0x328f23=>_0x328f23['isInContent']);for(const _0xb33c22 of _0x3027ee)_0x2bf886['push'](..._0xb33c22['getMarkers']());return _0x43e048(_0x518f95['editing'],_0x2bf886);};_0x20784b=_0x51f274['createAnnotation']({'view':_0x293e15,'target':_0x2390d2,'type':()=>'suggestion-'+_0xd227d6['view']['type'],'isVisible':!!_0x2390d2()}),_0x174d69['_bindAnnotationToEditors'](_0x3234f9,_0x20784b),_0x51f274['add'](_0x20784b),_0x56f1c6['registerAnnotation'](_0x20784b);}['_destroyController'](_0x79e7d7){const _0x30da04=this['editor']['plugins']['get'](_0x181319),_0x25a5a7=this['editor']['plugins']['get'](_0x1a224d),_0x9a2272=this['_suggestionToController']['get'](_0x79e7d7),_0x1958ae=_0x9a2272['view'],_0x2369e8=_0x25a5a7['getByInnerView'](_0x1958ae);_0x30da04['_unbindEditors'](_0x1958ae),_0x2369e8&&_0x25a5a7['remove'](_0x2369e8),this['_suggestionToController']['delete'](_0x79e7d7),this['_viewToController']['delete'](_0x1958ae),_0x9a2272['destroy']();}['_updateController'](_0x116115){if(!_0x116115['isInContent']||!this['_suggestionToController']['has'](_0x116115))return;const _0x2f4423=this['editor']['plugins']['get'](TrackChangesEditing),_0x5ce446=this['_suggestionToController']['get'](_0x116115),_0x2adab3=_0x116115['getAllAdjacentSuggestions']();_0x5ce446['view']['descriptionParts']=_0x2f4423['descriptionFactory']['getDescriptions'](_0x2adab3);}['destroy'](){for(const _0x276d55 of this['_suggestionToController']['keys']())this['_destroyController'](_0x276d55);for(const _0x3f8d23 of this['_annotationViews']['values']())_0x3f8d23['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Yt(_0x8a5632){return'model'in _0x8a5632;}class TrackChanges extends _0x3ea3b4{static get['requires'](){return[TrackChangesEditing,TrackChangesUI,_0x4b21f6];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4bef7e){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0x4bef7e;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x20690c){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x20690c);}['getSuggestions']({skipNotAttached:_0x589755=!0x1,toJSON:_0x545100=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x589755,'toJSON':_0x545100});}['getSuggestion'](_0x9c20a0){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0x9c20a0);}}const qt=['Pagination'];class TrackChangesData extends _0x3ea3b4{static get['requires'](){return[TrackChangesEditing];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x122bac=this['editor'];if(_0x122bac['config']['define']('trackChangesData.editorCreator',_0x563400=>{const _0x4955b6=_0x122bac['model']['document']['getRootNames']()['reduce']((_0x1be2b3,_0x4976ef)=>(_0x1be2b3[_0x4976ef]='',_0x1be2b3),{});return _0x122bac['constructor']['create'](_0x4955b6,_0x563400);}),'function'!=typeof _0x122bac['config']['get']('trackChangesData')['editorCreator'])throw new _0x180e5c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4fe368){return Zt(this['editor'],!0x0,_0x4fe368);}['getDataWithDiscardedSuggestions'](_0xc4ee58){return Zt(this['editor'],!0x1,_0xc4ee58);}}class TrackChangesDataGetter extends _0x3ea3b4{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36ed01){function _0x561806(_0x17d0f7){return _0x17d0f7['map'](_0x54f248=>String['fromCharCode'](_0x54f248))['join']('');}super(_0x36ed01),this['result']='end',_0x36ed01[_0x561806([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x561806([0x76,0x69,0x65,0x77])][_0x561806([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x561806([0x61,0x75,0x74,0x6f]),_0x36ed01[_0x561806([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x561806([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x561806([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x561806([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x561806([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Qt(_0x57bd74){return void 0x0!==_0x57bd74['getRootsAttributes'];}async function Zt(_0x3a116c,_0x1e9e00,_0x385bac){const _0x5450f0=_0x34f537(_0x3a116c,qt);if(_0x5450f0['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),Qt(_0x3a116c)){_0x5450f0['roots']=Object['create'](null);for(const _0x489287 of _0x3a116c['model']['document']['getRootNames']())_0x5450f0['roots'][_0x489287]={'modelAttributes':_0x3a116c['getRootAttributes'](_0x489287)};}const _0x27471a=document['createDocumentFragment'](),_0x5876da=_0x3a116c['config']['get']('trackChangesData')['editorCreator'],_0x5c28b1=await _0x5876da(_0x5450f0,()=>function(_0x54780e){const _0x56986c=document['createElement']('div');return _0x54780e['appendChild'](_0x56986c),_0x56986c;}(_0x27471a));!function(_0x4f34c6,_0x3041c0){const _0x48c61e=_0x4f34c6['model']['document']['getRootNames']()['reduce']((_0x4c3a49,_0x2a8cfe)=>(_0x4c3a49[_0x2a8cfe]=_0x4f34c6['data']['get']({'rootName':_0x2a8cfe}),_0x4c3a49),{}),_0x5bf3eb=_0x4f34c6['plugins']['get']('Users')['users']['map'](_0x370914=>({'id':_0x370914['id'],'name':_0x370914['name']})),_0x13b058=_0x4f34c6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x54442d=_0x4f34c6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x553c4e=_0x3041c0['plugins']['get']('Users'),_0x22580c=_0x3041c0['plugins']['get']('TrackChangesEditing'),_0xdfb933=_0x3041c0['plugins']['get']('CommentsRepository');for(const _0x4b1776 of _0xdfb933['getCommentThreads']())_0x4b1776['remove']();for(const _0x3df108 of _0x5bf3eb)_0x553c4e['getUser'](_0x3df108['id'])||_0x553c4e['addUser'](_0x3df108);_0x553c4e['me']||_0x553c4e['useAnonymousUser']();for(const _0x151501 of _0x54442d)_0xdfb933['addCommentThread'](_0x151501);for(const _0xa33e37 of _0x13b058)_0x22580c['addSuggestionData'](_0xa33e37);_0x3041c0['data']['set'](_0x48c61e);}(_0x3a116c,_0x5c28b1),_0x5c28b1['execute'](_0x1e9e00?'acceptAllSuggestions':'discardAllSuggestions');const _0x2a5290=Qt(_0x5c28b1)?_0x5c28b1['getFullData'](_0x385bac):_0x5c28b1['data']['get'](_0x385bac);return await _0x5c28b1['destroy'](),_0x2a5290;}class TrackChangesPreviewView extends _0x3dabb4{['options'];constructor(_0x2fd788,_0x22fb29){super(_0x2fd788),this['options']=_0x22fb29,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'](_0x15fac6,_0x566f47){if(!this['element'])return;const _0x162ae0=[];for(const [_0x1b9ee0,_0x2452af]of _0x15fac6){const _0x45c46d=document['createElement']('div');_0x45c46d['setAttribute']('data-ck-root-name',_0x1b9ee0),_0x45c46d['className']=_0x2452af['classes']+'\x20ck-track-changes-preview__root-container',_0x45c46d['innerHTML']=_0x2452af['content'],_0x162ae0['push'](_0x45c46d);}_0x566f47(this['element'],_0x162ae0),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends _0x14e120{constructor(_0x508e15){super(_0x508e15),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2235ee=this['editor'],_0x9b98ce=_0x2235ee['locale'],_0x121c7b=_0x2235ee['plugins']['get']('Dialog');let _0x473f08;const _0x277434=function(_0x1c9009){const _0x52ae71={};if('editables'in _0x1c9009['ui']['view']){for(const [_0x2bee67,_0x4d56bd]of Object['entries'](_0x1c9009['ui']['view']['editables']))_0x52ae71[_0x2bee67]=_0x4d56bd['element'];}else _0x52ae71[_0x1c9009['model']['document']['getRootNames']()[0x0]]=_0x1c9009['ui']['view']['editable']['element'];return _0x52ae71;}(_0x2235ee),_0x32b13d=function(_0xf201d0){let _0x5e3a74=0x0;for(const _0x1b1e79 of Object['values'](_0xf201d0))_0x5e3a74=Math['max'](_0x5e3a74,_0x1b1e79['getBoundingClientRect']()['width']);let _0x1767e3=0x0;for(const _0x1ae788 of Object['values'](_0xf201d0))_0x1767e3+=_0x1ae788['getBoundingClientRect']()['height'];const _0x42edb9=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x43747d=Math['min'](_0x1767e3,_0x42edb9);return{'width':_0x5e3a74,'height':_0x43747d};}(_0x277434);_0x121c7b['show']({'id':'finalContentPreview','title':Tt(_0x9b98ce,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x9b98ce,{'dialogRects':_0x32b13d}),'onHide':()=>{_0x473f08['detachFromDom']();},'onShow':()=>{_0x2235ee['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x15a0f4=>{const _0x4b692c=this['_standarizeRootsData'](_0x15a0f4,_0x2235ee,_0x277434);_0x121c7b['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4b692c,_0x2235ee['config']['get']('trackChanges.preview.renderFunction'));}),_0x473f08=new _0x16da8c(_0x9b98ce,[_0x121c7b['view']]),_0x473f08['attachToDom'](),_0x473f08['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2235ee['once']('destroy',()=>{_0x473f08['detachFromDom']();});const _0x1d70f9=_0x121c7b['view']['headerView']['class'];_0x121c7b['view']['headerView']['class']=_0x1d70f9?_0x1d70f9+'\x20ck-reset_all':'ck-reset_all',_0x121c7b['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x121c7b['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x6d00dd=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x561cc8=_0x6d00dd['previewMode'],_0x49b223={};if('$labels'===_0x561cc8){for(const _0x3ef5e5 of _0x6d00dd['getMergeFieldsIds']())_0x49b223[_0x3ef5e5]=_0x6d00dd['getLabel'](_0x3ef5e5)||_0x3ef5e5;}else{const _0x1a4f92='$defaultValues'===_0x561cc8?_0x6d00dd['getDefaultValues']():_0x6d00dd['getDataSetValues'](_0x561cc8,!0x0);for(const _0x4eac81 of Object['entries'](_0x1a4f92)){const [_0x3ac204,_0x9739a8]=_0x4eac81;_0x49b223[_0x3ac204]=null!==_0x9739a8?_0x9739a8:_0x6d00dd['getLabel'](_0x3ac204)||_0x3ac204;}}return{'mergeFieldsData':_0x49b223};}['_standarizeRootsData'](_0x1ffa18,_0x138bd0,_0xabff8c){let _0xa0be9d;if('string'==typeof _0x1ffa18){const _0x4a8f0e=_0x138bd0['model']['document']['getRootNames']()[0x0];_0xa0be9d={[_0x4a8f0e]:_0x1ffa18};}else _0xa0be9d=_0x1ffa18;const _0x40a541=this['_fixMediaEmbeds'](_0xa0be9d,_0x138bd0),_0xf7aef1=function(_0x158048,_0x43e0b9){for(const [_0x19dcba,_0x141bbc]of _0x158048)_0x141bbc['classes']=_0x43e0b9[_0x19dcba]['classList']['value']['replace']('ck-focused','');return _0x158048;}(this['_sortRoots'](_0x138bd0)['reduce']((_0x278108,_0x2883a7)=>(_0x278108['push']([_0x2883a7,{'content':_0x40a541[_0x2883a7],'classes':''}]),_0x278108),[]),_0xabff8c);return _0xf7aef1;}['_fixMediaEmbeds'](_0x430b7e,_0x46fb0b){if(!_0x46fb0b['plugins']['has']('MediaEmbedEditing'))return _0x430b7e;const _0x1d8af9=_0x46fb0b['plugins']['get']('MediaEmbedEditing');for(const [_0x21c50d,_0x1a3fbe]of Object['entries'](_0x430b7e)){const _0x5bec4e=document['createElement']('div');_0x5bec4e['innerHTML']=_0x1a3fbe,(_0x5bec4e['querySelectorAll']('figure.media')['forEach'](_0x363f96=>{const _0x2e73f6=_0x363f96['querySelector']('oembed');if(_0x2e73f6){const _0x45038b=_0x2e73f6['getAttribute']('url');if(_0x45038b){const _0x482ceb=_0x1d8af9['registry']['getMediaViewElement'](new et(_0x46fb0b['editing']['view']['document']),_0x45038b,{'elementName':'','renderForEditingView':!0x0}),_0x22667b=document['createElement']('div');_0x22667b['classList']['add']('ck-media__wrapper'),_0x482ceb['render'](_0x22667b,_0x46fb0b['editing']['view']['domConverter']),_0x2e73f6['replaceWith'](_0x22667b);}}}),_0x430b7e[_0x21c50d]=_0x5bec4e['innerHTML']);}return _0x430b7e;}['_sortRoots'](_0x5f9aaa){if(!function(_0x240782){return void 0x0!==_0x240782['getRootsAttributes'];}(_0x5f9aaa))return _0x5f9aaa['model']['document']['getRootNames']();const _0x281269=[],_0x2e6708=new Map();for(const _0x585049 of _0x5f9aaa['model']['document']['getRootNames']()){const _0x11954c=_0x5f9aaa['editing']['view']['getDomRoot'](_0x585049)['getClientRects']()['item'](0x0);_0x281269['push'](_0x585049),_0x2e6708['set'](_0x585049,_0x11954c);}return _0x281269['sort']((_0x1e9ac5,_0xcac34)=>{const _0xfaa34b=_0x2e6708['get'](_0x1e9ac5),_0x48ae5c=_0x2e6708['get'](_0xcac34);return _0xfaa34b['y']-_0x48ae5c['y']||_0xfaa34b['x']-_0x48ae5c['x'];}),_0x281269;}}class TrackChangesPreview extends _0x3ea3b4{static get['requires'](){return[TrackChangesData,_0x38eea3];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb3b47f){super(_0xb3b47f),_0xb3b47f['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0xb3b47f['config']['define']('trackChanges.preview.renderFunction',(_0x1f3884,_0x3827b1)=>{for(const _0x35a3d1 of _0x3827b1)_0x1f3884['appendChild'](_0x35a3d1);});}}export{AcceptSuggestionCommand,BaseSuggestionThreadView,DiscardSuggestionCommand,ExecuteOnAllSuggestionsCommand,ExecuteOnSelectedSuggestionsCommand,PreviewFinalContentCommand,Suggestion,SuggestionDescriptionFactory,SuggestionThreadView,SuggestionView,TrackChanges,TrackChangesCommand,TrackChangesData,TrackChangesDataGetter,TrackChangesEditing,TrackChangesPreview,TrackChangesUI};
23
+ import{Command as _0x2a8e78,Plugin as _0x203e6b,PendingActions as _0x226c6a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x300715,Annotations as _0x18743c,EditorAnnotations as _0x183fc3,Comments as _0x142b0b}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x2618c5,ObservableMixin as _0x1ca856,uid as _0x1e5a7d,priorities as _0xcf8801,insertToPriorityArray as _0x24355e,logWarning as _0x39db6c,getEnvKeystrokeText as _0x1d258e,FocusTracker as _0x5def1f,KeystrokeHandler as _0x7c07a3,Collection as _0xa0bdb5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4931a8,IconCancel as _0x39c270,IconTrackChanges as _0xefeca6}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x513476,View as _0x7acdaf,ViewCollection as _0x47db65,FocusCycler as _0x5602a4,UIModel as _0x3d4a24,createDropdown as _0x56fb5d,SplitButtonView as _0x1fc7da,addListToDropdown as _0x8a0123,MenuBarMenuView as _0x10e4a3,MenuBarMenuListView as _0x481bf4,ListSeparatorView as _0x1e805e,MenuBarMenuListItemView as _0x18a5b5,MenuBarMenuListItemButtonView as _0x47e243,BodyCollection as _0x234ad1,Dialog as _0x6c10b8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x4f787f,SuggestionsConversion as _0x540837,Users as _0x3771e4,DocumentCompare as _0x319f4e,fixElementSuggestionRange as _0x494da1,hashObject as _0x1fc623,surroundingMarkersDetector as _0x1a4c74,FOCUS_ANNOTATION_KEYSTROKE as _0x4eb651,AriaDescriptionView as _0x5b849f,setupThreadKeyboardNavigation as _0xdc32b2,trimHtml as _0x4e34a1,UserView as _0x15cd9a,LateFocusButtonView as _0x1f4595,getDateTimeFormatter as _0x59dff4,getAllMarkersDomElementsSorted as _0x521940,sanitizeEditorConfig as _0x49f7c3}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x10ec21,ModelLiveRange as _0x4c6b54,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class TrackChangesCommand extends _0x2a8e78{['_enabledCommands'];constructor(_0x420d3c,_0x348497){super(_0x420d3c),this['_enabledCommands']=_0x348497,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 _0x159b5e of this['editor']['commands']['commands']())_0x159b5e['affectsData']&&!this['_enabledCommands']['has'](_0x159b5e)&&_0x159b5e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3608b4 of this['editor']['commands']['commands']())_0x3608b4['affectsData']&&!this['_enabledCommands']['has'](_0x3608b4)&&_0x3608b4['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends _0x2a8e78{['_suggestions'];constructor(_0x20de2d,_0x481ad3){super(_0x20de2d),this['_suggestions']=_0x481ad3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xd4cd9e){const _0x223362=this['_suggestions']['get'](_0xd4cd9e);if(!_0x223362)throw new _0x2618c5('track-changes-accept-suggestion-not-found',this);const _0x5a919a=_0x223362['getRanges']();this['editor']['model']['canEditAt'](_0x5a919a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x223362);}}class DiscardSuggestionCommand extends _0x2a8e78{['_suggestions'];constructor(_0x315661,_0x920a3){super(_0x315661),this['_suggestions']=_0x920a3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3db907){const _0x279829=this['_suggestions']['get'](_0x3db907);if(!_0x279829)throw new _0x2618c5('track-changes-discard-suggestion-not-found',this);const _0x4c5df9=_0x279829['getRanges']();this['editor']['model']['canEditAt'](_0x4c5df9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x279829);}}function ht(_0x588296,_0x1e22b3){let _0x4855d8='';return _0x4855d8+=_0x588296['split']('*')['map']((_0x1bcb51,_0x1a3748)=>_0x1a3748%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+dt(_0x1bcb51)+'</span>':dt(_0x1bcb51))['join'](''),_0x1e22b3&&(_0x4855d8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1e22b3['value']+'\x22\x20title=\x22'+_0x1e22b3['title']+'\x22></span>'),_0x4855d8;}function dt(_0x2445f0){const _0x199c14=document['createElement']('span');return _0x199c14['innerText']=_0x2445f0,_0x199c14['innerHTML'];}function gt(_0x4dc144){return _0x4dc144['sort']((_0x25b1d1,_0x2b3fe3)=>'attribute'===_0x25b1d1['type']&&'attribute'!==_0x2b3fe3['type']?-0x1:'attribute'!==_0x25b1d1['type']&&'attribute'===_0x2b3fe3['type']?0x1:'deletion'==_0x25b1d1['type']&&'deletion'!=_0x2b3fe3['type']?-0x1:'deletion'!=_0x25b1d1['type']&&'deletion'==_0x2b3fe3['type']?0x1:0x0);}function ft(_0x3dea80,_0x51b5ac){let _0x3fd6d1,_0x2ca768=0x0;const _0x23a6d1=[],_0xcb93a7=_0x51b5ac['schema'];for(;_0x2ca768<_0x3dea80['length'];){const _0x400723=_0x3dea80[_0x2ca768],_0x5daf53=_0x3dea80[_0x2ca768+0x1];_0x3fd6d1||(_0x3fd6d1=_0x51b5ac['createPositionBefore'](_0x400723)),mt(_0x51b5ac,_0x400723,_0x5daf53)||(_0x23a6d1['push'](_0x51b5ac['createRange'](_0x3fd6d1,_0xcb93a7['isObject'](_0x400723)?_0x51b5ac['createPositionAfter'](_0x400723):_0x51b5ac['createPositionAt'](_0x400723,'end'))),_0x3fd6d1=null),_0x2ca768++;}return _0x23a6d1;}function mt(_0x283ec4,_0x2b1260,_0x525667){if(!_0x525667)return!0x1;const _0x113ba8=_0x283ec4['createPositionAfter'](_0x2b1260),_0x1ddfe4=_0x283ec4['createPositionBefore'](_0x525667);return _0x113ba8['isTouching'](_0x1ddfe4);}function Et(_0x9b73ca,_0x5b7dbb,_0x52801a){for(;_0x52801a['length'];){const _0x136a3a=_0x52801a['splice'](0x0,0x64);_0x9b73ca['change'](()=>{for(const _0x14a661 of _0x136a3a)_0x14a661['isInContent']&&_0x5b7dbb['execute'](_0x14a661['id']);});}}class ExecuteOnAllSuggestionsCommand extends _0x2a8e78{['_command'];['_suggestions'];constructor(_0x877118,_0x3b2878,_0x53657c){super(_0x877118),this['_command']=_0x3b2878,this['_suggestions']=_0x53657c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x267d1d=Array['from'](this['_suggestions']['values']())['some'](_0xc94ee9=>_0xc94ee9['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x267d1d;}['execute'](){const _0x460686=gt(Array['from'](this['_suggestions']['values']()));for(const _0x51df12 of _0x460686){const _0x3833e7=_0x51df12['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3833e7))return;}Et(this['editor']['model'],this['_command'],_0x460686);}}class ExecuteOnSelectedSuggestionsCommand extends _0x2a8e78{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x213bef,_0x32f54a,_0x137f0d){super(_0x213bef),this['_command']=_0x32f54a,this['_suggestions']=_0x137f0d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5582a0=this['editor']['model']['document']['selection'],_0x52a9aa=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x352311,_0x1b1eb2){const _0x2ff8ac=Array['from'](_0x352311['getRanges']()),_0x4dfb0a=new Set();for(const _0x1ebd83 of _0x1b1eb2)if(_0x1ebd83['isInContent']){for(const _0x50b6e2 of _0x2ff8ac)for(const _0x123274 of _0x1ebd83['getRanges']())(_0x50b6e2['isIntersecting'](_0x123274)||_0x352311['isCollapsed']&&!_0x1ebd83['isMultiRange']&&_0x1ebd83['next']&&_0x123274['end']['isTouching'](_0x50b6e2['start']))&&_0x4dfb0a['add'](_0x1ebd83);}return _0x4dfb0a;}(_0x5582a0,_0x52a9aa),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3491cf=gt(Array['from'](this['_selectedSuggestions']));for(const _0x450f28 of _0x3491cf){const _0x424296=_0x450f28['getRanges']();if(!this['editor']['model']['canEditAt'](_0x424296))return;}Et(this['editor']['model'],this['_command'],_0x3491cf);}}class Suggestion extends/* #__PURE__ -- @preserve */
24
+ _0x1ca856(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x28e10c,_0x139d6f){super(),this['id']=_0x139d6f['id'],this['type']=_0x139d6f['type'],this['subType']=_0x139d6f['subType']||null,this['author']=_0x139d6f['author'],this['creator']=_0x139d6f['creator']||_0x139d6f['author'],this['isExternal']=Boolean(_0x139d6f['attributes']&&_0x139d6f['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x139d6f['originalSuggestionId']||null,this['_model']=_0x28e10c,this['_onAccept']=_0x139d6f['onAccept'],this['_onDiscard']=_0x139d6f['onDiscard'],this['_onAttributesChange']=_0x139d6f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x139d6f['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 _0x41de64=this;for(;_0x41de64['previous'];)_0x41de64=_0x41de64['previous'];return _0x41de64;}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'](_0x27c09b){this['_markerNames']['add'](_0x27c09b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x32a0dd=>this['_model']['markers']['get'](_0x32a0dd))['filter'](_0x4ecc2a=>_0x4ecc2a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2fe05a=>{for(const _0x2ac0a8 of this['getMarkers']())_0x2fe05a['removeMarker'](_0x2ac0a8);}),this['_markerNames']['clear']();}['removeMarker'](_0x5d91d4){this['_model']['change'](_0x3f2766=>{_0x3f2766['removeMarker'](_0x5d91d4);}),this['_markerNames']['delete'](_0x5d91d4);}['addRange'](_0x282278){const _0x58f606='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x58f606),this['_model']['change'](_0x375949=>{_0x375949['addMarker'](_0x58f606,{'range':_0x282278,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5e9edf){for(const _0x4e14bc of this['getRanges']())if(_0x4e14bc['isIntersecting'](_0x5e9edf))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x245a3c=>_0x245a3c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x17c831,_0x305854)=>[..._0x17c831,..._0x305854['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x377a42=this['getRanges']();if(0x1!=_0x377a42['length'])return null;const _0x4ce950=_0x377a42[0x0],_0x53a4e0=_0x4ce950['start']['nodeAfter'],_0x5d683d=_0x4ce950['end']['nodeBefore'];return _0x53a4e0 instanceof _0x10ec21?_0x53a4e0!=_0x5d683d?null:_0x53a4e0: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 _0x55b339=[];let _0x52c775=this['head'];for(;_0x52c775;)_0x55b339['push'](_0x52c775),_0x52c775=_0x52c775['next'];return _0x55b339;}['setAttribute'](_0x53fc3c,_0x101846){const _0x4852e7=nt(this['attributes']);it(_0x4852e7,_0x53fc3c,_0x101846),st(_0x4852e7,this['attributes'])||(this['attributes']=_0x4852e7,this['_onAttributesChange'](_0x4852e7));}['removeAttribute'](_0x5b261d){const _0x30e93e=nt(this['attributes']);rt(_0x30e93e,_0x5b261d),st(_0x30e93e,this['attributes'])||(this['attributes']=_0x30e93e,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 _0x1e5a7d()['substr'](0x1,0x5);}}function Tt(_0xddc335,_0x1d41c2,_0x186c98){const _0xe41321=_0xddc335['t'],t=_0xddc335['t'];switch(_0x1d41c2){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',_0x186c98);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x186c98);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x186c98);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x186c98);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x186c98);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',_0x186c98);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x186c98);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',_0x186c98);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x186c98);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x186c98);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x186c98);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x186c98);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x186c98);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x186c98);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x186c98);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x186c98);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x186c98);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x186c98);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x186c98);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x186c98);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x186c98);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x186c98);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x186c98);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x186c98);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x186c98);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'},_0x186c98);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x186c98);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x186c98);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x186c98);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x186c98);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x186c98);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x186c98);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x186c98);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x186c98);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});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'},_0x186c98);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x186c98);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x186c98);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x186c98);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x186c98);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x186c98);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x186c98);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'},_0x186c98);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x186c98);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x186c98);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'},_0x186c98);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x186c98);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'},_0x186c98);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x186c98);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x186c98);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x186c98);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x186c98);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x186c98);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'},_0x186c98);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x186c98);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 _0xe41321({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x186c98);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xe41321({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x186c98);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x186c98);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'},_0x186c98);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'},_0x186c98);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'},_0x186c98);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1d41c2;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x21e598,_0x246dcf){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x21e598,this['_locale']=_0x246dcf;}['getDescriptions'](_0x4b4293){const _0xfe95f4=[],_0x435a6b=new Set(),_0x2412f8=new Set();for(let _0x3d1971=0x0;_0x3d1971<_0x4b4293['length'];_0x3d1971++){const _0x1854cb=_0x4b4293[_0x3d1971];if(!_0x1854cb['isInContent'])continue;const _0x14e44c=this['_handleCustomCallbackDescription'](_0x1854cb);if(_0x14e44c){if(null!=_0x1854cb['subType']){if(_0x435a6b['has'](_0x1854cb['subType']))continue;_0x435a6b['add'](_0x1854cb['subType']);}_0xfe95f4['push'](_0x14e44c);}else{if('attribute'==_0x1854cb['type']){const _0x185448=_0x1854cb['data']['key'];if(_0x2412f8['has'](_0x185448))continue;_0x2412f8['add'](_0x1854cb['data']['key']),_0x185448==Bt?this['_handleRenameSuggestionDescription'](_0xfe95f4,_0x1854cb):this['_handleAttributeSuggestionDescription'](_0xfe95f4,_0x1854cb);continue;}'insertion'!=_0x1854cb['type']&&'deletion'!=_0x1854cb['type']||this['_handleInsertRemoveSuggestionDescription'](_0xfe95f4,_0x1854cb,_0x4b4293[_0x3d1971+0x1]);}}return this['_resolveDescriptionItems'](_0xfe95f4);}['registerDescriptionCallback'](_0x2a5dfa){this['_customCallbacks']['push'](_0x2a5dfa);}['registerElementLabel'](_0x1c80e4,_0x38854a,_0x506dd2=_0xcf8801['normal']){'function'==typeof _0x1c80e4?_0x24355e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1c80e4,'label':_0x38854a,'priority':_0x506dd2}):this['_itemLabels']['set'](_0x1c80e4,_0x38854a);}['registerAttributeLabel'](_0xf871cc,_0x490db1){this['_attributeLabels']['set'](_0xf871cc,_0x490db1);}['getItemLabel'](_0x71a8de,_0x319003=0x1){let _0x2242c3;for(const _0x39f7fe of this['_itemLabelsCallbacks'])if(_0x39f7fe['matchingCallback'](_0x71a8de)){_0x2242c3=_0x39f7fe['label'];break;}return _0x2242c3||(_0x2242c3=this['_itemLabels']['get'](_0x71a8de['name'])),_0x2242c3?_0x2242c3(_0x319003):0x1!==_0x319003?_0x319003+'\x20'+_0x71a8de['name']+'s':''+_0x71a8de['name'];}['_addDescriptionItems'](_0x30f4fb,_0x385e62){const _0x66b532=_0x385e62['getFirstRange']()['getWalker'](),_0x135b49='insertion'==_0x385e62['type']?'add':'remove';for(const _0x14ff36 of _0x66b532){const _0x4ca69f=_0x14ff36['item'],_0x45cf8f=_0x30f4fb[_0x30f4fb['length']-0x1];if(_0x4ca69f['is']('$textProxy'))_0x45cf8f&&_0x45cf8f['type']['indexOf']('Container')>-0x1&&_0x30f4fb['pop'](),_0x45cf8f&&'text'==_0x45cf8f['type']?_0x45cf8f[_0x135b49]+=_0x4ca69f['data']:_0x30f4fb['push']({'type':'text','add':'add'==_0x135b49?_0x4ca69f['data']:'','remove':'remove'==_0x135b49?_0x4ca69f['data']:''});else{if(this['_schema']['isObject'](_0x4ca69f)){const _0x39c732=_0x4ca69f;if(_0x45cf8f&&_0x45cf8f['type']['indexOf']('Container')>-0x1&&_0x30f4fb['pop'](),'elementEnd'==_0x14ff36['type'])continue;_0x45cf8f&&_0x45cf8f['type']==_0x135b49+'Object'&&_0x45cf8f['element']['name']==_0x39c732['name']?_0x45cf8f['quantity']++:_0x30f4fb['push']({'type':_0x135b49+'Object','element':_0x39c732,'quantity':0x1}),_0x66b532['skip'](_0x408331=>!('elementEnd'==_0x408331['type']&&_0x408331['item']==_0x4ca69f));}else{if(this['_schema']['checkChild'](_0x4ca69f,'$text')||_0x4ca69f['is']('element','softBreak')){const _0x533899=_0x4ca69f;if('add'==_0x135b49&&'elementStart'==_0x14ff36['type']||'remove'==_0x135b49&&'elementEnd'==_0x14ff36['type'])continue;if(_0x45cf8f&&-0x1==_0x45cf8f['type']['indexOf']('Container')){'text'==_0x45cf8f['type']&&(_0x45cf8f[_0x135b49]+='\x0a');continue;}let _0x244799;if(_0x244799='add'==_0x135b49?_0x533899['nextSibling']&&!this['_schema']['isObject'](_0x533899['nextSibling'])?_0x533899['nextSibling']:null:_0x533899['previousSibling']&&!this['_schema']['isObject'](_0x533899['previousSibling'])?_0x533899['previousSibling']:null,_0x533899['isEmpty']||_0x244799&&_0x244799['isEmpty']){const _0x111629=_0x244799&&_0x244799['isEmpty']?_0x244799:_0x533899;_0x45cf8f&&_0x45cf8f['type']==_0x135b49+'EmptyContainer'&&_0x45cf8f['element']['name']==_0x111629['name']?_0x45cf8f['quantity']++:_0x30f4fb['push']({'type':_0x135b49+'EmptyContainer','element':_0x111629,'quantity':0x1});}else _0x30f4fb['push']({'type':_0x135b49+'Container','element':_0x533899});}}}}}['_resolveDescriptionItems'](_0x326cbd){const _0x3225ca=this['_locale'],_0x33b0ab=[],_0x232c20=[],_0xcac0a6=[];for(const _0x51ff49 of _0x326cbd)switch(_0x51ff49['type']){case'text':if(_0x51ff49['add']=_0x51ff49['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x51ff49['remove']=_0x51ff49['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x51ff49['add']&&''!=_0x51ff49['remove']){_0x33b0ab['push']({'type':'replace','content':Tt(_0x3225ca,'REPLACE_TEXT',['\x22'+_0x51ff49['remove']+'\x22','\x22'+_0x51ff49['add']+'\x22'])});continue;}if(null!=_0x51ff49['add']['match'](/^ +$/)){_0x33b0ab['push']({'type':'insertion','content':Tt(_0x3225ca,'*Insert:*\x20%0',Tt(_0x3225ca,'ELEMENT_SPACE',_0x51ff49['add']['length']))});continue;}if(null!=_0x51ff49['remove']['match'](/^ +$/)){_0x33b0ab['push']({'type':'deletion','content':Tt(_0x3225ca,'*Remove:*\x20%0',Tt(_0x3225ca,'ELEMENT_SPACE',_0x51ff49['remove']['length']))});continue;}if(''!=_0x51ff49['add']){_0x33b0ab['push']({'type':'insertion','content':Tt(_0x3225ca,'*Insert:*\x20%0','\x22'+_0x51ff49['add']+'\x22')});continue;}_0x33b0ab['push']({'type':'deletion','content':Tt(_0x3225ca,'*Remove:*\x20%0','\x22'+_0x51ff49['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x33b0ab['push']({'type':'insertion','content':Tt(_0x3225ca,'*Insert:*\x20%0',this['getItemLabel'](_0x51ff49['element'],_0x51ff49['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x33b0ab['push']({'type':'deletion','content':Tt(_0x3225ca,'*Remove:*\x20%0',this['getItemLabel'](_0x51ff49['element'],_0x51ff49['quantity']))});continue;case'addContainer':_0x33b0ab['push']({'type':'insertion','content':Tt(_0x3225ca,'*Split:*\x20%0',this['getItemLabel'](_0x51ff49['element'],_0x51ff49['quantity']))});continue;case'removeContainer':_0x33b0ab['push']({'type':'deletion','content':Tt(_0x3225ca,'*Merge:*\x20%0',this['getItemLabel'](_0x51ff49['element'],_0x51ff49['quantity']))});continue;case'addFormat':_0x232c20['push'](_0x51ff49['key']);continue;case'removeFormat':_0xcac0a6['push'](_0x51ff49['key']);continue;default:_0x33b0ab['push'](_0x51ff49);}if(_0x232c20['length']){const _0x1c7c11=_0x232c20['map'](_0x5dcf23=>this['_attributeLabels']['has'](_0x5dcf23)?this['_attributeLabels']['get'](_0x5dcf23):_0x5dcf23)['join'](',\x20');_0x33b0ab['push']({'type':'format','content':Tt(this['_locale'],'*Set\x20format:*\x20%0',_0x1c7c11)});}if(_0xcac0a6['length']){const _0x4c1d5b=_0xcac0a6['map'](_0x51cab7=>this['_attributeLabels']['has'](_0x51cab7)?this['_attributeLabels']['get'](_0x51cab7):_0x51cab7)['join'](',\x20');_0x33b0ab['push']({'type':'format','content':Tt(this['_locale'],'*Remove\x20format:*\x20%0',_0x4c1d5b)});}return _0x33b0ab;}['_handleCustomCallbackDescription'](_0xefef9d){for(const _0x3a7565 of this['_customCallbacks']){const _0x29bb29=_0x3a7565(_0xefef9d);if(_0x29bb29&&'type'in _0x29bb29)return _0x29bb29;}}['_handleAttributeSuggestionDescription'](_0x4a79ab,_0x511a36){const _0xed0815=_0x511a36['data'],_0x252cdd=void 0x0===_0xed0815['newValue']?'removeFormat':'addFormat';_0x4a79ab['push']({'type':_0x252cdd,'key':_0xed0815['key']});}['_handleRenameSuggestionDescription'](_0x42264a,_0x50e134){_0x42264a['push']({'type':'format','content':Tt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x50e134['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3ad2e2,_0x302342,_0x2ec368){if(this['_addDescriptionItems'](_0x3ad2e2,_0x302342),_0x2ec368&&_0x2ec368['getFirstRange']()&&!_0x302342['getFirstRange']()['end']['isEqual'](_0x2ec368['getFirstRange']()['start'])){const _0x22f79c=_0x3ad2e2[_0x3ad2e2['length']-0x1],_0x5ce050='insertion'==_0x302342['type']?'add':'remove';_0x22f79c&&'text'==_0x22f79c['type']&&(_0x22f79c[_0x5ce050]+='\x0a');}}}class TrackChangesAIAssistant extends _0x203e6b{['afterInit'](){const _0x5ee61e=this['editor'],_0x35f327=_0x5ee61e['plugins']['get']('TrackChangesEditing');_0x5ee61e['commands']['get']('showAIAssistant')&&_0x35f327['enableCommand']('showAIAssistant');}}class TrackChangesAI extends _0x203e6b{['afterInit'](){const _0x4425af=this['editor'],_0xe6095=_0x4425af['plugins']['get']('TrackChangesEditing');_0x4425af['commands']['get']('toggleAi')&&_0xe6095['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends _0x203e6b{['afterInit'](){const _0x27c643=this['editor'],_0x1c7371=_0x27c643['plugins']['get']('TrackChangesEditing');_0x27c643['commands']['get']('aiQuickAction')&&_0x1c7371['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends _0x203e6b{['afterInit'](){const _0x1d68f7=this['editor'],_0x4a59dc=_0x1d68f7['locale'];if(!_0x1d68f7['plugins']['has']('AlignmentEditing'))return;const _0x28c2c4=_0x1d68f7['plugins']['get']('TrackChangesEditing');_0x28c2c4['enableDefaultAttributesIntegration']('alignment'),_0x28c2c4['descriptionFactory']['registerAttributeLabel']('alignment',Tt(_0x4a59dc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x700f2a=this['editor'],_0xca5749=_0x700f2a['locale'];_0x700f2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f6876=>{if('formatBlock'!=_0x4f6876['type'])return;const {data:_0x470658}=_0x4f6876;if(_0x470658&&'alignment'==_0x470658['commandName']){const _0x5161db=_0x470658['commandParams'][0x0]['value'];return{'type':'format','content':Tt(_0xca5749,'*Format:*\x20%0',function(_0x30d21b){switch(_0x30d21b){case'left':return Tt(_0xca5749,'FORMAT_ALIGN_TO_LEFT');case'right':return Tt(_0xca5749,'FORMAT_ALIGN_TO_RIGHT');case'center':return Tt(_0xca5749,'FORMAT_ALIGN_TO_CENTER');case'justify':return Tt(_0xca5749,'FORMAT_JUSTIFY_TEXT');}}(_0x5161db))};}});}}const _t=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends _0x203e6b{['afterInit'](){const _0x4ff137=this['editor'],_0x1ed1a1=_0x4ff137['plugins']['get']('TrackChangesEditing'),_0x3a5e26=_0x4ff137['locale'];for(const _0x40eaf2 of _t){if(!_0x4ff137['plugins']['has'](_0x40eaf2))continue;const _0x2e1cb0=_0x40eaf2['slice'](0x0,-0x7)['toLowerCase'](),_0x4c6b01='FORMAT_'+_0x2e1cb0['toUpperCase']();_0x1ed1a1['enableDefaultAttributesIntegration'](_0x2e1cb0),_0x1ed1a1['descriptionFactory']['registerAttributeLabel'](_0x2e1cb0,Tt(_0x3a5e26,_0x4c6b01));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c60e9=this['editor'],_0x1e860d=_0x4c60e9['locale'],_0x9053a6=_0x4c60e9['plugins']['get']('TrackChangesEditing');function _0x13ec36(_0x4a8df9,_0x4fba11){_0x9053a6['descriptionFactory']['registerDescriptionCallback'](_0x3674aa=>{if('formatInline'!=_0x3674aa['type'])return;const {data:_0x45b25a}=_0x3674aa;return _0x45b25a&&_0x45b25a['commandName']===_0x4a8df9?_0x45b25a['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x1e860d,'*Format:*\x20%0',_0x4fba11)}:{'type':'format','content':Tt(_0x1e860d,'*Remove\x20format:*\x20%0',_0x4fba11)}:void 0x0;});}_0x13ec36('bold',Tt(_0x1e860d,'FORMAT_BOLD')),_0x13ec36('italic',Tt(_0x1e860d,'FORMAT_ITALIC')),_0x13ec36('underline',Tt(_0x1e860d,'FORMAT_UNDERLINE')),_0x13ec36('code',Tt(_0x1e860d,'FORMAT_CODE')),_0x13ec36('strikethrough',Tt(_0x1e860d,'FORMAT_STRIKETHROUGH')),_0x13ec36('subscript',Tt(_0x1e860d,'FORMAT_SUBSCRIPT')),_0x13ec36('superscript',Tt(_0x1e860d,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends _0x203e6b{['afterInit'](){const _0x579510=this['editor'],_0x37cd0b=_0x579510['locale'];if(!_0x579510['plugins']['has']('BlockQuoteEditing'))return;const _0x570c1e=_0x579510['plugins']['get']('TrackChangesEditing'),_0x5014dc=this['editor']['commands']['get']('blockQuote');_0x570c1e['enableCommand']('blockQuote',(_0x1d2800,_0x44ee74={})=>{const _0xdb01cb=this['editor']['model']['document']['selection'],_0xde64a3=_0x44ee74&&void 0x0!==_0x44ee74['forceValue']?_0x44ee74['forceValue']:!_0x5014dc['value'];let _0x225d49=[];if(_0xde64a3){const _0x5d51e8=Array['from'](_0xdb01cb['getSelectedBlocks']())['filter'](_0xf83566=>pt(_0xf83566)||function(_0x4663fc,_0x27adc6){const _0x24f5d8=_0x27adc6['createContext'](_0x4663fc['parent']);if(!_0x27adc6['checkChild'](_0x24f5d8,'blockQuote'))return!0x1;if(!_0x27adc6['checkChild'](_0x24f5d8['push']('blockQuote'),_0x4663fc))return!0x1;return!0x0;}(_0xf83566,this['editor']['model']['schema']));_0x225d49=ft(_0x5d51e8,_0x579510['model']);}else{const _0x288000=Array['from'](_0xdb01cb['getSelectedBlocks']())['filter'](_0x13ae09=>pt(_0x13ae09));_0x225d49=ft(_0x288000,_0x579510['model']);}_0x579510['model']['change'](()=>{for(const _0x286f78 of _0x225d49)_0x570c1e['markBlockFormat'](_0x286f78,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xde64a3}]});});}),_0x570c1e['descriptionFactory']['registerDescriptionCallback'](_0x2c75de=>{const {data:_0x29a76c}=_0x2c75de;if(_0x29a76c&&'blockQuote'==_0x29a76c['commandName']){const _0x1520fb=Tt(_0x37cd0b,'ELEMENT_BLOCK_QUOTE');return _0x29a76c['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x37cd0b,'*Set\x20format:*\x20%0',_0x1520fb)}:{'type':'format','content':Tt(_0x37cd0b,'*Remove\x20format:*\x20%0',_0x1520fb)};}});}}function pt(_0x5f421a){return'blockQuote'==_0x5f421a['parent']['name'];}class TrackChangesBookmark extends _0x203e6b{['afterInit'](){const _0x1d140e=this['editor'],_0x4fb4a2=_0x1d140e['locale'],_0xf60d9e=_0x1d140e['plugins']['get']('TrackChangesEditing');_0x1d140e['plugins']['has']('BookmarkEditing')&&(_0xf60d9e['enableCommand']('insertBookmark'),_0xf60d9e['enableDefaultAttributesIntegration']('updateBookmark'),_0xf60d9e['descriptionFactory']['registerDescriptionCallback'](_0x50235d=>{if('insertion'!=_0x50235d['type']&&'deletion'!=_0x50235d['type']&&'attribute'!=_0x50235d['type'])return;const _0x491d99=_0x50235d['getContainedElement']();if(null==_0x491d99)return;if(!_0x491d99['is']('element','bookmark'))return;const _0x3b1917=_0x491d99['getAttribute']('bookmarkId');if('insertion'==_0x50235d['type'])return{'type':'insertion','content':Tt(_0x4fb4a2,'*Insert:*\x20%0','\x22'+_0x3b1917+'\x22\x20'+Tt(_0x4fb4a2,'ELEMENT_BOOKMARK'))};if('deletion'==_0x50235d['type'])return{'type':'deletion','content':Tt(_0x4fb4a2,'*Remove:*\x20%0','\x22'+_0x3b1917+'\x22\x20'+Tt(_0x4fb4a2,'ELEMENT_BOOKMARK'))};const {data:_0x321011}=_0x50235d;if(!_0x321011||'bookmarkId'!=_0x321011['key'])return;return{'type':'format','content':Tt(_0x4fb4a2,'*Set\x20bookmark:*\x20%0','\x22'+_0x321011['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends _0x203e6b{['afterInit'](){const _0x595d1c=this['editor'];_0x595d1c['plugins']['has']('CaseChange')&&(_0x595d1c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x595d1c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x595d1c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends _0x203e6b{['afterInit'](){const _0x337df5=this['editor'];_0x337df5['commands']['get']('ckbox')&&_0x337df5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends _0x203e6b{['afterInit'](){const _0xe4d1a4=this['editor'];if(!_0xe4d1a4['plugins']['has']('CodeBlock'))return;const _0x59d792=_0xe4d1a4['plugins']['get']('TrackChangesEditing'),_0x4e2e1c=_0xe4d1a4['locale'],_0x330c4d=_0xe4d1a4['config']['get']('codeBlock')['languages'],_0x43fc07=_0xe4d1a4['commands']['get']('codeBlock');_0x59d792['enableCommand']('indentCodeBlock'),_0x59d792['enableCommand']('outdentCodeBlock'),_0x59d792['enableCommand']('codeBlock',(_0x48d200,_0xf92f13={})=>{const _0x5c02c8=_0xe4d1a4['model'],_0x5e862a=_0xe4d1a4['model']['document']['selection'],_0x216bdb=_0xf92f13&&void 0x0!==_0xf92f13['forceValue']?_0xf92f13['forceValue']:!_0x43fc07['value'];let _0x3c6445;_0xf92f13['language']||(_0xf92f13['language']=_0x330c4d[0x0]['language']),_0x3c6445=_0x216bdb?Array['from'](_0x5e862a['getSelectedBlocks']())['filter'](_0x47e06a=>Ct(_0x47e06a)||function(_0x4e1f7f,_0x3092a){if(_0x4e1f7f['is']('rootElement')||_0x3092a['isLimit'](_0x4e1f7f))return!0x1;return _0x3092a['checkChild'](_0x4e1f7f['parent'],'codeBlock');}(_0x47e06a,_0x5c02c8['schema'])):Array['from'](_0x5e862a['getSelectedBlocks']())['filter'](_0x42f0da=>Ct(_0x42f0da));const _0x467daa=ft(_0x3c6445,_0x5c02c8);_0x5c02c8['change'](()=>{for(const _0x5e609f of _0x467daa)_0x59d792['markBlockFormat'](_0x5e609f,{'commandName':'codeBlock','commandParams':[{..._0xf92f13,'forceValue':_0x216bdb}],'formatGroupId':'blockName'});});}),(_0x59d792['descriptionFactory']['registerElementLabel']('codeBlock',_0x4ea565=>Tt(_0x4e2e1c,'ELEMENT_CODE_BLOCK',_0x4ea565)),_0x59d792['descriptionFactory']['registerDescriptionCallback'](_0xbfe060=>{if('formatBlock'!=_0xbfe060['type'])return;const _0x217330=_0x4e2e1c['t'],{data:_0x1036a1}=_0xbfe060;if(!_0x1036a1||'codeBlock'!=_0x1036a1['commandName'])return;const _0x358181=_0x1036a1['commandParams'][0x0]['language'],_0x717c2a=_0x217330(_0x330c4d['find'](_0x54a427=>_0x54a427['language']===_0x358181)['label'])['toLowerCase']();return _0x1036a1['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x4e2e1c,'*Set\x20format:*\x20%0',Tt(_0x4e2e1c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x717c2a+')')}:{'type':'format','content':Tt(_0x4e2e1c,'*Remove\x20format:*\x20%0',Tt(_0x4e2e1c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function Ct(_0x414b1b){return'codeBlock'==_0x414b1b['name'];}class TrackChangesComments extends _0x203e6b{['afterInit'](){const _0x17a6ca=this['editor'];if(!_0x17a6ca['plugins']['has']('CommentsEditing'))return;_0x17a6ca['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends _0x203e6b{static get['requires'](){return[at];}['init'](){const _0x56a41e=this['editor'],_0x592345=_0x56a41e['plugins']['get']('TrackChangesEditing');_0x592345['enableCommand']('delete');const _0x65e4bf=_0x56a41e['commands']['get']('deleteForward');_0x592345['enableCommand']('deleteForward',(_0x1fab1a,_0x2a4b70={})=>{const _0x12cc7c=_0x56a41e['model']['createSelection'](_0x56a41e['model']['document']['selection']);_0x12cc7c['isCollapsed']&&_0x56a41e['model']['modifySelection'](_0x12cc7c,{'direction':'forward','unit':_0x2a4b70['unit']});const _0x5ceda3=_0x12cc7c['getFirstRange'](),_0xfcdb9f=_0x4c6b54['fromRange'](_0x5ceda3);let _0x39c640;_0x1fab1a(_0x2a4b70),_0x39c640='$graveyard'==_0xfcdb9f['root']['rootName']?_0x56a41e['model']['createRange'](_0x5ceda3['start']):_0x56a41e['model']['createRange'](_0xfcdb9f['start'],_0xfcdb9f['end']),_0xfcdb9f['detach'](),_0x56a41e['model']['enqueueChange'](_0x65e4bf['buffer']['batch'],_0x54bd0e=>{_0x65e4bf['buffer']['lock'](),_0x54bd0e['setSelection'](_0x54bd0e['createRange'](_0x39c640['end'])),_0x65e4bf['buffer']['unlock']();});});}}class TrackChangesList extends _0x203e6b{['afterInit'](){const _0x104654=this['editor'];if(!_0x104654['plugins']['has']('ListEditing'))return;const _0x24f731=_0x104654['locale'],_0x29cc3a=_0x104654['plugins']['get']('TrackChangesEditing'),_0x2be960=_0x104654['plugins']['has']('TodoListEditing'),_0x33673f=!!_0x104654['config']['get']('list.multiBlock');function _0x56661f(_0xcf652a){return{'type':'format','content':''+Tt(_0x24f731,'*Set\x20format:*\x20%0',_0xcf652a)};}function _0xe6cef7(_0x344764){return{'type':'format','content':''+Tt(_0x24f731,'*Remove\x20format:*\x20%0',_0x344764)};}_0x29cc3a['enableDefaultAttributesIntegration']('numberedList'),_0x29cc3a['enableDefaultAttributesIntegration']('bulletedList'),_0x29cc3a['enableDefaultAttributesIntegration']('customNumberedList'),_0x29cc3a['enableDefaultAttributesIntegration']('customBulletedList'),_0x29cc3a['enableDefaultAttributesIntegration']('indentList'),_0x29cc3a['enableDefaultAttributesIntegration']('outdentList'),_0x29cc3a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x29cc3a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x33673f&&(_0x29cc3a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x29cc3a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2be960&&(_0x29cc3a['enableDefaultAttributesIntegration']('todoList'),_0x29cc3a['enableDefaultAttributesIntegration']('checkTodoList'),_0x29cc3a['descriptionFactory']['registerDescriptionCallback'](_0x1a101a=>{const {data:_0x44af8f}=_0x1a101a;if(_0x44af8f&&'todoListChecked'==_0x44af8f['key'])return{'type':'format','content':_0x44af8f['newValue']?Tt(_0x24f731,'*Check\x20item*'):Tt(_0x24f731,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2a8701=>{if(_0x2a8701['batch']['isUndo'])return!0x1;let _0xe4f725=!0x1;const _0x272ef3=_0x29cc3a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x563b96=>'todoListChecked'===_0x29cc3a['_getAttributeKey'](_0x563b96));for(const _0x478fab of _0x272ef3){'todo'!=_0x478fab['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x29cc3a['_findSuggestions'](_0x478fab['getFirstRange'](),'attribute')['find'](_0x2ac3ce=>'listType'===_0x29cc3a['_getAttributeKey'](_0x2ac3ce['suggestion']))||(_0x2a8701['removeMarker'](_0x478fab['getFirstMarker']()),_0xe4f725=!0x0));}return _0xe4f725;})),_0x29cc3a['descriptionFactory']['registerAttributeLabel']('listIndent',Tt(_0x24f731,'FORMAT_INDENT'));const _0x14d2ac={'type':'format','content':''};_0x29cc3a['descriptionFactory']['registerDescriptionCallback'](_0x374a0a=>{const {data:_0x371823}=_0x374a0a;if(!_0x371823||'listType'!=_0x371823['key'])return;let _0xe7231a=_0x374a0a['head'];for(;_0xe7231a;){if(_0xe7231a['data']&&(('listStyle'==_0xe7231a['data']['key']||'listMarkerStyle'==_0xe7231a['data']['key'])&&(_0xe7231a['data']['newValue']&&'default'!=_0xe7231a['data']['newValue']||'default'!=_0xe7231a['data']['oldValue']&&!_0x371823['newValue'])||!_0x33673f&&_0xe7231a['data']['key']==Bt))return _0x14d2ac;_0xe7231a=_0xe7231a['next'];}if(null==_0x371823['newValue'])switch(_0x371823['oldValue']){case'bulleted':return _0xe6cef7(Tt(_0x24f731,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe6cef7(Tt(_0x24f731,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe6cef7(Tt(_0x24f731,'ELEMENT_TODO_LIST'));}switch(_0x371823['newValue']){case'bulleted':return _0x56661f(Tt(_0x24f731,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x56661f(Tt(_0x24f731,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x56661f(Tt(_0x24f731,'ELEMENT_TODO_LIST'));}}),_0x29cc3a['descriptionFactory']['registerDescriptionCallback'](_0x51341c=>{const {data:_0x1cd3a6}=_0x51341c;if(_0x1cd3a6&&'listIndent'==_0x1cd3a6['key'])return null==_0x1cd3a6['newValue']||null==_0x1cd3a6['oldValue']&&0x0==_0x1cd3a6['newValue']?_0x14d2ac:void 0x0;}),_0x29cc3a['descriptionFactory']['registerDescriptionCallback'](_0x4ee13c=>{if('attribute'!=_0x4ee13c['type'])return;const {data:_0x47edbe}=_0x4ee13c;if(!_0x47edbe||'listItemId'!=_0x47edbe['key'])return;const _0x1ec3da=kt(_0x4ee13c);return'newValue'==_0x1ec3da?{'type':'format','content':Tt(_0x24f731,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1ec3da?{'type':'format','content':Tt(_0x24f731,'*Split:*\x20list\x20item')}:_0x14d2ac;}),_0x104654['model']['document']['registerPostFixer'](_0x51333d=>this['listItemIdFixer'](_0x51333d)),_0x104654['model']['document']['registerPostFixer'](_0x1d2a85=>this['noTrackChangesFixer'](_0x1d2a85)),_0x104654['model']['document']['on']('change:data',(_0x31878d,_0x42df03)=>{if(_0x42df03['isUndo']||!_0x42df03['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x29db7d){if(_0x29db7d['batch']['isUndo']||!_0x29db7d['batch']['isLocal'])return!0x1;let _0x523f8f=!0x1;const _0x411127=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27fc03=>_0x27fc03['data']&&'listItemId'==_0x27fc03['data']['key'])['filter'](_0x9e6cb2=>_0x9e6cb2['data']['newValue']&&_0x9e6cb2['data']['oldValue']);for(const _0x3fc03f of _0x411127)kt(_0x3fc03f)||(_0x29db7d['removeMarker'](_0x3fc03f['getFirstMarker']()),_0x523f8f=!0x0);return _0x523f8f;}['noTrackChangesFixer'](_0x29f9dd){if(_0x29f9dd['batch']['isUndo']||!_0x29f9dd['batch']['isLocal'])return!0x1;const _0x218419=this['editor']['model']['document']['differ'],_0x394a66=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x394a66['trackChangesCommand']['value'])return!0x1;let _0x1ce0df=!0x1;const _0xaaa6b=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x444492=_0x218419['getChanges']()['filter'](_0x2b1c87=>'attribute'==_0x2b1c87['type'])['filter'](_0x5bcbef=>_0xaaa6b['has'](_0x5bcbef['attributeKey']));if(0x0==_0x444492['length'])return _0x1ce0df;const _0x78f407=new Set(_0x218419['getMarkersToAdd']()['filter'](_0x3e5ac4=>{if(!_0x3e5ac4['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x24b0a1=_0x4f787f(_0x3e5ac4['name'])['subType']['split']('|')[0x0];return _0xaaa6b['has'](_0x24b0a1);})['map'](_0x4fd549=>_0x4f787f(_0x4fd549['name'])['id']));for(const _0x1e23f7 of _0x444492){const _0x3723e7=_0x394a66['_findSuggestions'](_0x1e23f7['range'],'attribute')['filter'](_0x2684c1=>{if(_0x2684c1['meta']['isNextTo'])return!0x1;if(_0x78f407['has'](_0x2684c1['suggestion']['id']))return!0x1;const _0x106f10=_0x394a66['_getAttributeKey'](_0x2684c1['suggestion']);return _0xaaa6b['has'](_0x106f10);})['map'](_0x2eef70=>_0x2eef70['suggestion']);if(_0x3723e7['length']){for(const _0x31296c of _0x3723e7)_0x29f9dd['removeMarker'](_0x31296c['getFirstMarker']());_0x1ce0df=!0x0;}}return _0x1ce0df;}['assureChains'](){const _0x98ad=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb3ce92=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x57e591;const _0x153d8f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x55e455=>{if(_0x55e455['data']['oldRange']||!_0x55e455['data']['newRange'])return null;if(!_0x55e455['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x281ea5}=_0x4f787f(_0x55e455['name']);if(!_0x98ad['hasSuggestion'](_0x281ea5))return null;const _0x5cdca1=_0x98ad['getSuggestion'](_0x281ea5);return _0xb3ce92['includes'](_0x5cdca1['data']['key']);})['map'](_0x3cc939=>{const {id:_0x27af3e}=_0x4f787f(_0x3cc939['name']),_0x2ed59f=_0x98ad['getSuggestion'](_0x27af3e);return _0x57e591=_0x2ed59f['attributes']['groupId'],_0x2ed59f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x153d8f['size'])return;const _0x1f32ce=_0x98ad['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42158f=>'attribute'==_0x42158f['type']&&_0x42158f['data']&&_0xb3ce92['includes'](_0x42158f['data']['key'])&&_0x42158f['attributes']['groupId']!=_0x57e591)['map'](_0xf6a803=>({'listItem':_0xf6a803['getFirstRange']()['start']['nodeAfter'],'groupId':_0xf6a803['attributes']['groupId']})),_0x14018d=new Set();for(const {groupId:_0x57bd18,listItem:_0x149713}of _0x1f32ce)_0x153d8f['has'](_0x149713)&&_0x14018d['add'](_0x57bd18);for(const _0x2f5cd8 of _0x98ad['getSuggestions']())_0x14018d['has'](_0x2f5cd8['attributes']['groupId'])&&_0x2f5cd8['setAttribute']('groupId',_0x57e591);}['_supportLegacySuggestions'](){const _0x562b72=this['editor'],_0x701f37=_0x562b72['locale'],_0x1fd51d=_0x562b72['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1fd51d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x42c29a,_0x4c9e38){const _0x4f1c51=[];for(let _0x10882d of _0x42c29a)_0x10882d['start']['nodeAfter']===_0x10882d['end']['parent']&&(_0x10882d=_0x562b72['model']['createRange'](_0x562b72['model']['createPositionAt'](_0x10882d['start']['nodeAfter'],0x0))),_0x4f1c51['push'](_0x10882d);_0x562b72['model']['change'](_0x4644e9=>{const _0x2f5ffe=_0x562b72['model']['document']['selection'],_0x36433b=Array['from'](_0x2f5ffe['getRanges']())['map'](_0x3a951d=>_0x4c6b54['fromRange'](_0x3a951d));_0x4644e9['setSelection'](_0x4f1c51),_0x562b72['commands']['get'](_0x4c9e38['commandName'])['refresh'](),_0x4c9e38['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x562b72['execute'](_0x4c9e38['commandName'],..._0x4c9e38['commandParams']),_0x4644e9['setSelection'](_0x36433b);for(const _0x4ddb03 of _0x36433b)_0x4ddb03['detach']();});}),_0x1fd51d['descriptionFactory']['registerElementLabel'](function(_0x3df6ae){const _0x358381=!_0x562b72['model']['schema']['isObject'](_0x3df6ae),_0x4f8761=_0x3df6ae['previousSibling'],_0x5dcbad=_0x3df6ae['nextSibling'],_0x107fa9=_0x3df6ae['getAttribute']('listItemId'),_0x1c09c5=!_0x4f8761||_0x4f8761['getAttribute']('listItemId')!==_0x107fa9,_0x33453d=!_0x5dcbad||_0x5dcbad['getAttribute']('listItemId')!==_0x107fa9;return _0x358381&&Boolean(_0x107fa9)&&_0x1c09c5&&_0x33453d;},_0x4f67b4=>Tt(_0x701f37,'ELEMENT_LIST_ITEM',_0x4f67b4));}['_registerLegacyDescription'](){const _0x5f5d00=this['editor'],_0x15ab9d=_0x5f5d00['locale'];function _0x8c46c1(_0x5326b1){const _0x1ef9df=_0x5f5d00['commands']['get']('bulletedList')['value'],_0x275837=_0x5f5d00['commands']['get']('numberedList')['value'];return'numberedList'===_0x5326b1?_0x1ef9df:_0x275837;}_0x5f5d00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x497079){if('formatBlock'!=_0x497079['type'])return;const {data:_0x20c87d}=_0x497079;if(!_0x20c87d)return;let _0x4bd86c,_0x4d0a71,_0x560604,_0x1964d6;switch(_0x20c87d['commandName']){case'bulletedList':_0x560604=_0x20c87d['commandParams'][0x0]['forceValue'],_0x1964d6=_0x8c46c1(_0x20c87d['commandName']),_0x4bd86c=_0x560604?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1964d6&&_0x5f5d00['config']['get']('list.multiBlock')||(_0x4bd86c='*Change\x20to:*\x20%0'),_0x4d0a71={'type':'format','content':Tt(_0x15ab9d,_0x4bd86c,Tt(_0x15ab9d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x560604=_0x20c87d['commandParams'][0x0]['forceValue'],_0x1964d6=_0x8c46c1(_0x20c87d['commandName']),_0x4bd86c=_0x560604?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1964d6&&_0x5f5d00['config']['get']('list.multiBlock')||(_0x4bd86c='*Change\x20to:*\x20%0'),_0x4d0a71={'type':'format','content':Tt(_0x15ab9d,_0x4bd86c,Tt(_0x15ab9d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4bd86c='*Indent:*\x20%0',_0x4d0a71={'type':'format','content':Tt(_0x15ab9d,_0x4bd86c,Tt(_0x15ab9d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4bd86c=function(_0x259062){const _0x4c7b05=_0x259062['getFirstRange']();let _0x41be49=_0x4c7b05['start']['nodeAfter'];for(;_0x41be49&&_0x4c7b05['containsItem'](_0x41be49);){if(_0x41be49['getAttribute']('listIndent')>0x0)return!0x1;_0x41be49=_0x41be49['nextSibling'];}return!0x0;}(_0x497079)?Tt(_0x15ab9d,'*Format:*\x20remove\x20from\x20%0',Tt(_0x15ab9d,function(_0x5b3d6e){return'ELEMENT_'+_0x5b3d6e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x497079))):Tt(_0x15ab9d,'*Outdent:*\x20%0',Tt(_0x15ab9d,'ELEMENT_LIST_ITEM')),_0x4d0a71={'type':'format','content':_0x4bd86c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x20c87d['multipleBlocks']&&(_0x4bd86c='*Merge:*\x20%0',_0x4d0a71={'type':'deletion','content':Tt(_0x15ab9d,_0x4bd86c,Tt(_0x15ab9d,'ELEMENT_LIST_ITEM'))});}return _0x4d0a71;});}}function kt(_0x27aebb){let _0x584d6b=_0x27aebb['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x584d6b;){const _0x16899b=_0x584d6b['getAttribute']('listItemId');if(!_0x16899b)return!0x1;if(_0x16899b==_0x27aebb['data']['newValue'])return'newValue';if(_0x16899b==_0x27aebb['data']['oldValue'])return'oldValue';_0x584d6b=_0x584d6b['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends _0x203e6b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4384f7=this['editor']['config']['get']('list.properties'),_0xf08031=this['editor']['plugins']['get']('TrackChangesEditing');_0x4384f7['styles']&&_0xf08031['enableDefaultAttributesIntegration']('listStyle'),_0x4384f7['reversed']&&_0xf08031['enableDefaultAttributesIntegration']('listReversed'),_0x4384f7['startIndex']&&_0xf08031['enableDefaultAttributesIntegration']('listStart');const _0x4d3629={'type':'format','content':''};_0xf08031['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ca609=this['editor']['locale'];_0xf08031['descriptionFactory']['registerAttributeLabel']('listReversed',Tt(_0x4ca609,'FORMAT_LIST_REVERSED')),_0xf08031['descriptionFactory']['registerDescriptionCallback'](_0x2ba2b2=>{const {data:_0x295b91}=_0x2ba2b2;if(_0x295b91&&'listReversed'==_0x295b91['key'])return null==_0x295b91['newValue']||0x0==_0x295b91['newValue']&&null==_0x295b91['oldValue']?_0x4d3629:void 0x0;}),_0xf08031['descriptionFactory']['registerAttributeLabel']('listStart',Tt(_0x4ca609,'FORMAT_LIST_START')),_0xf08031['descriptionFactory']['registerDescriptionCallback'](_0x5c8d25=>{const {data:_0x6c6385}=_0x5c8d25;if(_0x6c6385&&'listStart'==_0x6c6385['key'])return null==_0x6c6385['newValue']||0x1==_0x6c6385['newValue']&&null==_0x6c6385['oldValue']?_0x4d3629:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x14b916=>{if(_0x14b916['batch']['isUndo'])return!0x1;let _0x1cb123=!0x1;const _0x2906f3=_0xf08031['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x281945=>{const _0x28d016=_0xf08031['_getAttributeKey'](_0x281945);return'listStart'==_0x28d016||'listReversed'==_0x28d016;});for(const _0x1d2156 of _0x2906f3){const _0x5537f2=_0x1d2156['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5537f2||'customNumbered'==_0x5537f2)continue;_0xf08031['_findSuggestions'](_0x1d2156['getFirstRange'](),'attribute')['find'](_0x54917b=>'listType'==_0xf08031['_getAttributeKey'](_0x54917b['suggestion']))||(_0x14b916['removeMarker'](_0x1d2156['getFirstMarker']()),_0x1cb123=!0x0);}return _0x1cb123;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x22d7a1){const _0x50644f=this['editor']['locale'],{data:_0x2b7976}=_0x22d7a1,_0x4239fa={'type':'format','content':''};if(!_0x2b7976||'listStyle'!=_0x2b7976['key'])return;if(!_0x2b7976['oldValue'])return'default'==_0x2b7976['newValue']?_0x4239fa:{'type':'format','content':''+Tt(_0x50644f,'*Set\x20format:*\x20%0',Tt(_0x50644f,this['_getTranslationKeyForListStyle'](_0x2b7976['newValue'])))};if(!_0x2b7976['newValue']){if('default'==_0x2b7976['oldValue'])return _0x4239fa;let _0x50505a=_0x22d7a1['head'];for(;_0x50505a;){if(_0x50505a['data']&&'listType'==_0x50505a['data']['key']&&_0x50505a['data']['newValue'])return _0x4239fa;_0x50505a=_0x50505a['next'];}return{'type':'format','content':''+Tt(_0x50644f,'*Remove\x20format:*\x20%0',Tt(_0x50644f,this['_getTranslationKeyForListStyle'](_0x2b7976['oldValue'])))};}if('default'!=_0x2b7976['newValue'])return{'type':'format','content':''+Tt(_0x50644f,'*Set\x20format:*\x20%0',Tt(_0x50644f,this['_getTranslationKeyForListStyle'](_0x2b7976['newValue'])))};let _0x5f20af=_0x22d7a1['head'];for(;_0x5f20af;){if(_0x5f20af['data']&&'listType'==_0x5f20af['data']['key']&&_0x5f20af['data']['newValue']&&_0x5f20af['data']['oldValue'])return _0x4239fa;_0x5f20af=_0x5f20af['next'];}return{'type':'format','content':Tt(_0x50644f,'*Set\x20format:*\x20%0',Tt(_0x50644f,'ELEMENT_'+_0x22d7a1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x27c597=this['editor'],_0x1fffde=_0x27c597['locale'];_0x27c597['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43dfcb=>{if('formatBlock'!=_0x43dfcb['type'])return;const {data:_0x20fcc9}=_0x43dfcb;if(!_0x20fcc9)return;let _0x5e21ed,_0x23067f;switch(_0x20fcc9['commandName']){case'listStyle':_0x5e21ed='*Change\x20to:*\x20%0',_0x23067f={'type':'format','content':Tt(_0x1fffde,_0x5e21ed,Tt(_0x1fffde,this['_getTranslationKeyForListStyle'](_0x20fcc9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5e21ed=_0x20fcc9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x23067f={'type':'format','content':Tt(_0x1fffde,_0x5e21ed)};break;case'listStart':_0x5e21ed='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x23067f={'type':'format','content':Tt(_0x1fffde,_0x5e21ed,_0x20fcc9['commandParams'][0x0]['startIndex'])};}return _0x23067f;});}['_getTranslationKeyForListStyle'](_0x479f09){return'ELEMENT_'+function(_0x45ed41){if(Lt['includes'](_0x45ed41))return'bulleted';if(It['includes'](_0x45ed41))return'numbered';return null;}(_0x479f09)['toUpperCase']()+'_LIST_'+_0x479f09['toUpperCase']()['replace'](/-/g,'_');}}const Lt=['disc','circle','square'],It=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class TrackChangesEmoji extends _0x203e6b{['afterInit'](){const _0x10aab6=this['editor'];_0x10aab6['commands']['get']('emoji')&&_0x10aab6['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends _0x203e6b{static get['requires'](){return[lt];}['init'](){const _0x5e9b5e=this['editor'],_0x16d2a5=_0x5e9b5e['plugins']['get']('TrackChangesEditing'),_0x168ba9=_0x5e9b5e['commands']['get']('enter');_0x16d2a5['enableCommand']('enter',()=>{_0x5e9b5e['model']['change'](_0x2e230e=>{const _0x1c7e93=_0x5e9b5e['model']['document']['selection'],_0x18160c=_0x1c7e93['getFirstPosition'](),_0x52b751=_0x4c6b54['fromRange'](_0x1c7e93['getFirstRange']());if(_0x168ba9['enterBlock'](_0x2e230e)){const _0x1e194d=_0x5e9b5e['model']['createPositionAt'](_0x18160c['parent']['nextSibling'],0x0),_0x41bc41=_0x2e230e['createRange'](_0x18160c,_0x1e194d);_0x16d2a5['markInsertion'](_0x41bc41);}else _0x2e230e['setSelection'](_0x2e230e['createRange'](_0x52b751['end']));_0x52b751['detach'](),_0x168ba9['fire']('afterExecute',{'writer':_0x2e230e});});});}}class TrackChangesFindAndReplace extends _0x203e6b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x7dae51=this['editor']['plugins']['get']('TrackChangesEditing');_0x7dae51['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x7dae51['enableCommand']('findNext'),_0x7dae51['enableCommand']('findPrevious'),_0x7dae51['enableCommand']('replace'),_0x7dae51['enableCommand']('replaceAll');}['handleFindCommand'](_0x2963da,_0x3408d0,_0x2d14fe={}){const _0x1083c9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2963da(_0x2be892=>{let _0x33c646=('string'==typeof _0x3408d0?_0x1083c9['findByTextCallback'](_0x3408d0,_0x2d14fe):_0x3408d0)(_0x2be892);Array['isArray'](_0x33c646)&&(_0x33c646={'results':_0x33c646,'searchText':'string'==typeof _0x3408d0?_0x3408d0:''});const _0x2eed8b=_0x33c646['results']['filter'](_0x76a001=>!0x1===this['_isInDeletionRange'](_0x76a001,_0x2be892['item']));return{..._0x33c646,'results':_0x2eed8b};},_0x2d14fe);}['_isInDeletionRange'](_0x56c964,_0x25cbb2){const _0x4075c1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x25cbb2,_0x56c964['start']),this['editor']['model']['createPositionAt'](_0x25cbb2,_0x56c964['end']));for(const _0x38740d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4075c1['getIntersection'](_0x38740d['getRange']()))return!0x0;return!0x1;}}const At=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class TrackChangesFont extends _0x203e6b{['afterInit'](){const _0x3eb47c=this['editor']['locale'],_0x3778f5=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x15ffdb,commandName:_0x31372f}of At)this['editor']['plugins']['has'](_0x15ffdb)&&_0x3778f5['enableDefaultAttributesIntegration'](_0x31372f);_0x3778f5['descriptionFactory']['registerAttributeLabel']('fontSize',Tt(_0x3eb47c,'FORMAT_FONT_SIZE')),_0x3778f5['descriptionFactory']['registerAttributeLabel']('fontFamily',Tt(_0x3eb47c,'FORMAT_FONT_FAMILY')),_0x3778f5['descriptionFactory']['registerAttributeLabel']('fontColor',Tt(_0x3eb47c,'FORMAT_FONT_COLOR')),_0x3778f5['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Tt(_0x3eb47c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x931a92=this['editor'],_0x15be9a=_0x931a92['locale'];_0x931a92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b3eb0=>{const _0x59b9fe=_0x15be9a['t'];if('formatInline'!=_0x5b3eb0['type'])return;const {data:_0x573625}=_0x5b3eb0;if(null!=_0x573625){if('fontSize'==_0x573625['commandName']){const _0x50eaa2=_0x573625['commandParams'][0x0]['value'];if(_0x50eaa2){const _0x4a7d57=_0x59b9fe(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3e351b=>_0x3e351b['model']==_0x50eaa2)['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x15be9a,'*Set\x20font\x20size:*\x20%0',_0x4a7d57)};}return{'type':'format','content':Tt(_0x15be9a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x573625['commandName']){const _0x13d00c=_0x573625['commandParams'][0x0]['value'];return _0x13d00c?{'type':'format','content':Tt(_0x15be9a,'*Set\x20font\x20family:*\x20%0',_0x13d00c)}:{'type':'format','content':Tt(_0x15be9a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x573625['commandName']){const _0x1cb26c=_0x573625['commandParams'][0x0]['value'];if(_0x1cb26c){const _0x342ab4=_0x513476(this['editor']['config']['get']('fontColor.colors'))['find'](_0x29956d=>_0x29956d['model']==_0x1cb26c);let _0x450816=_0x1cb26c,_0x3da329='';return _0x342ab4&&(_0x450816=_0x342ab4['label'],_0x3da329=_0x59b9fe(_0x450816)['toLowerCase']()),{'type':'format','content':Tt(_0x15be9a,'*Set\x20font\x20color:*\x20%0',_0x3da329)['trim'](),'color':{'value':_0x1cb26c,'title':_0x3da329||_0x450816}};}return{'type':'format','content':Tt(_0x15be9a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x573625['commandName']){const _0x3e96b6=_0x573625['commandParams'][0x0]['value'];if(_0x3e96b6){const _0x1c3bf0=_0x513476(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x11f833=>_0x11f833['model']==_0x3e96b6);let _0x40679e=_0x3e96b6,_0x366420='';return _0x1c3bf0&&(_0x40679e=_0x1c3bf0['label'],_0x366420=_0x59b9fe(_0x40679e)['toLowerCase']()),{'type':'format','content':Tt(_0x15be9a,'*Set\x20font\x20background\x20color:*\x20%0',_0x366420)['trim'](),'color':{'value':_0x3e96b6,'title':_0x366420||_0x40679e}};}return{'type':'format','content':Tt(_0x15be9a,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends _0x203e6b{['afterInit'](){const {plugins:_0x2b0347}=this['editor'];_0x2b0347['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2b0347['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x236ae7,plugins:_0x5417d7,commands:_0x434d23}=this['editor'],_0x4a55b2=_0x5417d7['get']('TrackChangesEditing');_0x434d23['get']('footnotesStyle')&&_0x4a55b2['enableDefaultAttributesIntegration']('footnotesStyle'),_0x434d23['get']('footnotesStart')&&_0x4a55b2['enableDefaultAttributesIntegration']('footnotesStart'),_0x4a55b2['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Tt(_0x236ae7,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x4a55b2['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Tt(_0x236ae7,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x3e63c0=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x57c125,commands:_0x187870}=this['editor'];_0x187870['get']('insertFootnote')&&_0x3e63c0['enableCommand']('insertFootnote'),_0x3e63c0['descriptionFactory']['registerElementLabel']('footnoteRef',_0x1b30f6=>Tt(_0x57c125,'ELEMENT_FOOTNOTE_REF',_0x1b30f6)),_0x3e63c0['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x766278=>Tt(_0x57c125,'ELEMENT_FOOTNOTE_DEFINITION',_0x766278)),_0x3e63c0['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x498a9e=>Tt(_0x57c125,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x498a9e));}}class TrackChangesFormatPainter extends _0x203e6b{['afterInit'](){const _0x49b387=this['editor'],_0x57b4be=_0x49b387['plugins']['get']('TrackChangesEditing'),_0x1c1bfb=_0x49b387['commands']['get']('copyFormat'),_0x48ef17=_0x49b387['commands']['get']('pasteFormat');_0x1c1bfb&&_0x48ef17&&(_0x57b4be['enableDefaultAttributesIntegration']('pasteFormat'),_0x57b4be['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x122535=this['editor'],_0x25b498=_0x122535['locale'];_0x122535['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x431261=>{if('formatBlock'!=_0x431261['type']&&'formatInline'!=_0x431261['type'])return;const {data:_0x2773c0}=_0x431261;if(_0x2773c0&&'pasteFormat'===_0x2773c0['commandName']){const _0xe373f7=[],_0x1fa0f0=_0x2773c0['commandParams'][0x0];for(const [_0x393e5c,_0x1ef054]of Object['entries'](_0x1fa0f0))_0xe373f7['push'](bt(_0x122535,_0x393e5c,_0x1ef054));return _0xe373f7['length']?{'type':'format','content':Tt(_0x25b498,'*Set\x20format\x20to:*\x20%0',_0xe373f7['join'](',\x20'))}:{'type':'format','content':Tt(_0x25b498,'*Remove\x20all\x20formatting*')};}});}}function bt(_0x251309,_0x1af8fc,_0x3f3518){const _0xfa81fe=_0x251309['locale']['t'],_0x16d771=_0x1af8fc['split'](/(?=[A-Z])/)['join']('\x20'),_0x18bd9f=_0xfa81fe(_0x16d771['charAt'](0x0)['toUpperCase']()+_0x16d771['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3f3518)return _0x18bd9f;if('fontColor'===_0x1af8fc||'fontBackgroundColor'===_0x1af8fc){const _0x527175=_0x513476(_0x251309['config']['get']('fontColor.colors'))['find'](_0xa66089=>_0xa66089['model']==_0x3f3518);return _0x18bd9f+'\x20('+(_0x527175?_0xfa81fe(_0x527175['label'])['toLowerCase']():_0x3f3518)+')';}if('fontSize'===_0x1af8fc&&isNaN(parseFloat(_0x3f3518))){const _0x46a413=_0x251309['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x251309['config']['get']('fontSize.options'))['find'](_0x42ca36=>_0x42ca36['model']==_0x3f3518);return _0x18bd9f+'\x20('+(_0x46a413?_0xfa81fe(_0x46a413['title'])['toLowerCase']():_0x3f3518)+')';}return _0x18bd9f+'\x20('+_0x3f3518+')';}class TrackChangesGeneralHtmlSupport extends _0x203e6b{['afterInit'](){const _0x2a8cb3=this['editor'];if(!_0x2a8cb3['plugins']['has']('GeneralHtmlSupport')||!_0x2a8cb3['plugins']['has']('DataSchema'))return;const _0x45a30a=_0x2a8cb3['plugins']['get']('TrackChangesEditing'),_0x14b75d=_0x2a8cb3['plugins']['get']('GeneralHtmlSupport'),_0x317d5b=_0x2a8cb3['plugins']['get']('DataSchema'),_0x332a22=_0x2a8cb3['locale'],_0x1ced1e=new Set(['htmlContent']);for(const _0x1f305a of _0x317d5b['getDefinitionsForView'](/.*/,!0x1)){const _0x5d5c0c=_0x1f305a['view'];_0x1ced1e['add'](_0x14b75d['getGhsAttributeNameForElement'](_0x5d5c0c)),_0x1f305a['model']['startsWith']('html')&&_0x45a30a['descriptionFactory']['registerElementLabel'](_0x1f305a['model'],_0x42121a=>Tt(_0x332a22,'ELEMENT_HTML_TAG',[_0x42121a,_0x5d5c0c]));}_0x45a30a['descriptionFactory']['registerAttributeLabel']('htmlContent',Tt(_0x332a22,'FORMAT_RAW_HTML_CONTENT')),_0x45a30a['descriptionFactory']['registerDescriptionCallback'](_0x4baba3=>{if('attribute'!==_0x4baba3['type'])return;const _0x1d686a=_0x4baba3['data'];if(!_0x1d686a||!_0x1ced1e['has'](_0x1d686a['key']))return;if('htmlContent'===_0x1d686a['key'])return{'type':'format','content':Tt(_0x332a22,'*Change\x20%0\x20content*',Tt(_0x332a22,'ELEMENT_RAW_HTML'))};const {setItems:_0x1c927f,removeItems:_0x27b978}=function(_0x3a24d7,_0x4ce8c7,_0x37423c){const _0x75aaee=[],_0x8131b5=[],_0x920514=_0x3a24d7['styles']??{},_0x561ae0=_0x4ce8c7['styles']??{};for(const _0x2ba845 of new Set([...Object['keys'](_0x920514),...Object['keys'](_0x561ae0)]))_0x920514[_0x2ba845]!==_0x561ae0[_0x2ba845]&&(void 0x0===_0x561ae0[_0x2ba845]?_0x8131b5['push'](_0x2ba845):_0x75aaee['push'](_0x2ba845+'\x20('+_0x561ae0[_0x2ba845]+')'));const _0x23df27=Tt(_0x37423c,'FORMAT_HTML_CLASS'),_0x54d292=new Set(_0x3a24d7['classes']??[]),_0x49beb0=new Set(_0x4ce8c7['classes']??[]),_0x346d41=[..._0x49beb0]['some'](_0x554b90=>!_0x54d292['has'](_0x554b90)),_0x44b278=[..._0x54d292]['some'](_0x41efae=>!_0x49beb0['has'](_0x41efae));_0x346d41&&_0x75aaee['push'](_0x23df27),_0x44b278&&_0x8131b5['push'](_0x23df27);const _0x1ff27e=Tt(_0x37423c,'FORMAT_HTML_ATTRIBUTE'),_0x1c03db=_0x3a24d7['attributes']??{},_0xae58e1=_0x4ce8c7['attributes']??{};let _0x57cd16=!0x1,_0x13cce7=!0x1;for(const _0x4dc515 of new Set([...Object['keys'](_0x1c03db),...Object['keys'](_0xae58e1)]))_0x1c03db[_0x4dc515]!==_0xae58e1[_0x4dc515]&&(void 0x0===_0xae58e1[_0x4dc515]?_0x13cce7=!0x0:_0x57cd16=!0x0);return _0x57cd16&&_0x75aaee['push'](_0x1ff27e),_0x13cce7&&_0x8131b5['push'](_0x1ff27e),{'setItems':_0x75aaee,'removeItems':_0x8131b5};}(_0x1d686a['oldValue']??{},_0x1d686a['newValue']??{},_0x332a22);if(!_0x1c927f['length']&&!_0x27b978['length'])return;const _0x488892=[];return _0x1c927f['length']&&_0x488892['push'](Tt(_0x332a22,'*Set\x20format:*\x20%0',_0x1c927f['join'](',\x20'))),_0x27b978['length']&&_0x488892['push'](Tt(_0x332a22,'*Remove\x20format:*\x20%0',_0x27b978['join'](',\x20'))),{'type':'format','content':_0x488892['join']('\x0a')};});}}class TrackChangesHeading extends _0x203e6b{['_headingOptions'];['afterInit'](){const _0x89aecd=this['editor'];if(!_0x89aecd['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x89aecd['config']['get']('heading.options');const _0x192e9d=_0x89aecd['locale'],_0xa42126=_0x89aecd['plugins']['get']('TrackChangesEditing');_0xa42126['enableDefaultAttributesIntegration']('heading');for(const _0x4aa454 of this['_headingOptions'])'paragraph'!=_0x4aa454['model']&&_0xa42126['descriptionFactory']['registerElementLabel'](_0x4aa454['model'],_0x43e589=>{const _0x2aec48=this['_getHeadingLevel'](_0x4aa454['model']);return null!==_0x2aec48?_0x3eedd2(_0x43e589,_0x2aec48):_0x41c1b3(_0x43e589,_0x4aa454['title']);});function _0x3eedd2(_0x4a020c,_0x1e7bf2){return Tt(_0x192e9d,'ELEMENT_HEADING',[_0x4a020c,_0x1e7bf2]);}function _0x41c1b3(_0x548c2b,_0x29d1eb){return Tt(_0x192e9d,'ELEMENT_HEADING_CUSTOM',[_0x548c2b,_0x29d1eb]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31d017=this['editor'],_0x15026b=_0x31d017['locale'];function _0x403678(_0x1ff929,_0x242b8c){return Tt(_0x15026b,'ELEMENT_HEADING_CUSTOM',[_0x1ff929,_0x242b8c]);}_0x31d017['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33a5e9=>{if('formatBlock'!=_0x33a5e9['type'])return;const {data:_0x3696f7}=_0x33a5e9;if(_0x3696f7&&'heading'==_0x3696f7['commandName']){const _0x2e4cae=_0x3696f7['commandParams'][0x0]['value'],_0x25fc31=this['_getHeadingLevel'](_0x2e4cae);if(null!==_0x25fc31)return{'type':'format','content':Tt(_0x15026b,'*Change\x20to:*\x20%0',(_0x5295f0=0x1,_0x11f6ea=_0x25fc31,Tt(_0x15026b,'ELEMENT_HEADING',[_0x5295f0,_0x11f6ea])))};const _0x457992=this['_headingOptions']['find'](_0x540056=>_0x540056['model']===_0x2e4cae)['title'];return{'type':'format','content':Tt(_0x15026b,'*Change\x20to:*\x20%0',_0x403678(0x1,_0x457992))};}var _0x5295f0,_0x11f6ea;});}['_getHeadingLevel'](_0x35f761){const _0x3b2cb7=_0x35f761['match'](/^heading(\d+)/);if(_0x3b2cb7)return _0x3b2cb7[0x1];const _0x379281=this['_headingOptions']?.['find'](_0x3a04c4=>_0x3a04c4['model']==_0x35f761);if(_0x379281&&_0x379281['view']){const _0xd3c8eb=_0x379281['view'],_0xfe1e84=(_0xd3c8eb['name']??_0xd3c8eb)['match'](/^h(\d+)/);if(_0xfe1e84)return _0xfe1e84[0x1];}return null;}}class TrackChangesHighlight extends _0x203e6b{['afterInit'](){const _0x4ec07e=this['editor'];if(!_0x4ec07e['plugins']['has']('HighlightEditing'))return;const _0x592ede=_0x4ec07e['plugins']['get']('TrackChangesEditing'),_0x557e90=_0x4ec07e['locale'];_0x592ede['enableDefaultAttributesIntegration']('highlight'),_0x592ede['descriptionFactory']['registerAttributeLabel']('highlight',Tt(_0x557e90,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x309310=this['editor'],_0x3292ae=_0x309310['locale'];_0x309310['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5da7e3=>{if('formatInline'!=_0x5da7e3['type'])return;const {data:_0x3e4407}=_0x5da7e3;if(_0x3e4407&&'highlight'==_0x3e4407['commandName']){const _0x5d2efd=_0x3292ae['t'],_0x11df5e=_0x3e4407['commandParams'][0x0]['value'];if(_0x11df5e){const _0x386830=_0x309310['config']['get']('highlight.options')['find'](_0x50d8df=>_0x50d8df['model']==_0x11df5e),_0x3d308c=_0x5d2efd(_0x386830['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x3292ae,'*Set\x20highlight:*\x20%0',_0x3d308c),'color':{'value':_0x386830['color'],'title':_0x386830['title']}};}return{'type':'format','content':Tt(_0x3292ae,'*Remove\x20highlight*',Tt(_0x3292ae,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends _0x203e6b{['afterInit'](){const _0x6c76d3=this['editor'];if(!_0x6c76d3['plugins']['has']('HorizontalLineEditing'))return;_0x6c76d3['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x141ac5=_0x6c76d3['plugins']['get']('TrackChangesEditing'),_0x469ca2=_0x6c76d3['locale'];_0x141ac5['descriptionFactory']['registerElementLabel']('horizontalLine',_0xf2a693=>Tt(_0x469ca2,'ELEMENT_HORIZONTAL_LINE',_0xf2a693));}}class TrackChangesHtmlEmbed extends _0x203e6b{['afterInit'](){const _0x26201e=this['editor'];if(!_0x26201e['plugins']['has']('HtmlEmbed'))return;const _0x5e09c1=_0x26201e['plugins']['get']('TrackChangesEditing'),_0x76ec34=_0x26201e['locale'];_0x5e09c1['descriptionFactory']['registerElementLabel']('rawHtml',_0x5402ca=>Tt(_0x76ec34,'ELEMENT_HTML_EMBED',_0x5402ca)),_0x5e09c1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5e09c1['descriptionFactory']['registerDescriptionCallback'](_0x3dcd57=>{if('attribute'!=_0x3dcd57['type'])return;const {data:_0x1d973d}=_0x3dcd57;if(_0x1d973d&&'value'==_0x1d973d['key']&&_0x3dcd57['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x287e8d=Tt(_0x76ec34,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x76ec34,'*Change\x20%0\x20content*',_0x287e8d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x295bd3=this['editor'],_0x1844ed=_0x295bd3['locale'];_0x295bd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x257160=>{if('formatBlock'!=_0x257160['type'])return;const {data:_0xfd7ee9}=_0x257160;if(_0xfd7ee9&&'htmlEmbed'==_0xfd7ee9['commandName']){const _0x42e236=Tt(_0x1844ed,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x1844ed,'*Change\x20%0\x20content*',_0x42e236)};}});}}class TrackChangesImage extends _0x203e6b{['afterInit'](){const _0x50e2c0=this['editor'];if(!_0x50e2c0['plugins']['has']('ImageEditing'))return;const _0x27034a=_0x50e2c0['plugins']['get']('TrackChangesEditing'),_0x30b96b=_0x50e2c0['plugins']['get']('ImageUtils'),_0x463e46=_0x50e2c0['locale'];_0x27034a['enableCommand']('insertImage'),_0x27034a['descriptionFactory']['registerElementLabel']('imageBlock',_0x43a08e=>Tt(_0x463e46,'ELEMENT_IMAGE',_0x43a08e)),_0x27034a['descriptionFactory']['registerElementLabel']('imageInline',_0xfe1258=>Tt(_0x463e46,'ELEMENT_INLINE_IMAGE',_0xfe1258)),_0x27034a['descriptionFactory']['registerElementLabel']('caption',()=>Tt(_0x463e46,'ELEMENT_CAPTION')),_0x50e2c0['plugins']['has']('ImageUploadEditing')&&_0x27034a['enableCommand']('uploadImage'),_0x50e2c0['plugins']['has']('ImageBlockEditing')&&_0x50e2c0['plugins']['has']('ImageInlineEditing')&&(_0x27034a['enableCommand']('imageTypeInline',(_0x5da4e5,_0x50b244)=>{const _0x1d3cb7=_0x30b96b['getClosestSelectedImageElement'](_0x50e2c0['model']['document']['selection']);_0x50e2c0['model']['change'](()=>{_0x27034a['markBlockFormat'](_0x1d3cb7,{'commandName':'imageTypeInline','commandParams':[_0x50b244]},[],'convertBlockImageToInline');});}),_0x27034a['enableCommand']('imageTypeBlock',(_0x446b6c,_0xf03ece)=>{_0x50e2c0['model']['change'](_0x38b1e2=>{let _0x3ab7b5=_0x30b96b['getClosestSelectedImageElement'](_0x50e2c0['model']['document']['selection']),_0x331f8f=_0x38b1e2['createRangeOn'](_0x3ab7b5);const _0x26a038=tt['fromPosition'](_0x331f8f['start'],'toPrevious'),_0x34c1bf=tt['fromPosition'](_0x331f8f['end'],'toNext');_0x27034a['forceDefaultExecution'](()=>_0x446b6c(_0xf03ece)),_0x3ab7b5=_0x30b96b['getClosestSelectedImageElement'](_0x50e2c0['model']['document']['selection']),_0x331f8f=_0x38b1e2['createRangeOn'](_0x3ab7b5);const _0xe7b706=_0x38b1e2['createRange'](_0x26a038,_0x34c1bf);_0x26a038['detach'](),_0x34c1bf['detach'](),_0x27034a['markBlockFormat'](_0x3ab7b5,{'commandName':'imageTypeInline','commandParams':[_0xf03ece]},[],'convertInlineImageToBlock'),_0xe7b706['start']['isBefore'](_0x331f8f['start'])&&_0x27034a['markInsertion'](_0x38b1e2['createRange'](_0xe7b706['start'],_0x331f8f['start']),'convertInlineImageToBlock'),_0x331f8f['end']['isBefore'](_0xe7b706['end'])&&_0x27034a['markInsertion'](_0x38b1e2['createRange'](_0x331f8f['end'],_0xe7b706['end']),'convertInlineImageToBlock');});}),_0x27034a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x27034a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x27034a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x27034a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x27034a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x27034a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x465dc7])=>{const _0x1e70f1=_0x27034a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4829a2=_0x465dc7['start'],_0xa81b7c=_0x465dc7['end'];const _0x2a512f=_0x50e2c0['model']['schema']['getNearestSelectionRange'](_0x4829a2,'backward'),_0x210364=_0x50e2c0['model']['schema']['getNearestSelectionRange'](_0xa81b7c,'forward');_0x2a512f['isCollapsed']&&(_0x4829a2=_0x2a512f['start']),_0x210364['isCollapsed']&&(_0xa81b7c=_0x210364['end']),_0x1e70f1([_0x50e2c0['model']['createRange'](_0x4829a2,_0xa81b7c)]);}),_0x27034a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1ae180),_0x27034a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1ae180)),_0x50e2c0['plugins']['has']('ImageCaptionEditing')&&(_0x27034a['enableCommand']('toggleImageCaption',(_0xca7bf6,_0x5e1731)=>{const _0x287f07=_0x50e2c0['plugins']['get']('ImageCaptionUtils');let _0x224390=_0x30b96b['getClosestSelectedImageElement'](_0x50e2c0['model']['document']['selection']),_0x18e5bd=_0x287f07['getCaptionFromImageModelElement'](_0x224390);_0x50e2c0['model']['change'](()=>{if(_0x18e5bd)return void _0x27034a['markDeletion'](_0x50e2c0['model']['createRangeOn'](_0x18e5bd));const _0x41ef5e=_0x30b96b['isBlockImage'](_0x224390);_0xca7bf6(_0x5e1731),_0x224390=_0x30b96b['getClosestSelectedImageElement'](_0x50e2c0['model']['document']['selection']),_0x18e5bd=_0x287f07['getCaptionFromImageModelElement'](_0x224390),_0x27034a['markInsertion'](_0x50e2c0['model']['createRangeOn'](_0x18e5bd),_0x41ef5e?null:'imageCaption');});}),_0x27034a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1ae180));const _0x48b07f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2359e3(_0x397055,_0x11c704){const _0x1e1c82=_0x48b07f['findIndex'](({type:_0x528fe2,subType:_0x4d4ac7})=>_0x397055['type']==_0x528fe2&&_0x397055['subType']==_0x4d4ac7),_0x4e5680=_0x48b07f['findIndex'](({type:_0x9b44e5,subType:_0x1a4e13})=>_0x11c704['type']==_0x9b44e5&&_0x11c704['subType']==_0x1a4e13);if(_0x1e1c82<0x0||_0x4e5680<0x0)return!0x1;const _0x2240cd=_0x397055['getFirstRange'](),_0x5d3672=_0x11c704['getFirstRange']();if((0x0==_0x1e1c82||0x1==_0x1e1c82)&&0x2==_0x4e5680&&_0x2240cd['isIntersecting'](_0x5d3672))return!0x0;if(0x2==_0x1e1c82&&0x3==_0x4e5680){const _0x2ad2ef=_0x27034a['_findSuggestions'](_0x2240cd,'insertion')['filter'](({suggestion:_0x336156,meta:_0x4c0017})=>_0x4c0017['isOwn']&&'convertInlineImageToBlock'==_0x336156['subType']);if(_0x2ad2ef['length']>0x1&&_0x5d3672['end']['isEqual'](_0x2240cd['start']))return!0x0;if(0x1==_0x2ad2ef['length']&&(_0x2240cd['start']['isEqual'](_0x5d3672['end'])||_0x2240cd['end']['isEqual'](_0x5d3672['start'])))return!0x0;}if(0x3==_0x1e1c82&&0x3==_0x4e5680&&_0x2240cd['start']['isBefore'](_0x5d3672['start'])){const _0x15292e=_0x2240cd['end']['nodeAfter'],_0x7dd10a=_0x5d3672['start']['nodeBefore'];return _0x30b96b['isBlockImage'](_0x15292e)&&_0x15292e===_0x7dd10a;}return!0x1;}function _0x1ae180(_0xa58387,_0xf22453){return _0x2359e3(_0xa58387,_0xf22453)?[_0xa58387,_0xf22453]:_0x2359e3(_0xf22453,_0xa58387)?[_0xf22453,_0xa58387]:null;}_0x50e2c0['plugins']['has']('ImageResize')&&(_0x27034a['enableDefaultAttributesIntegration']('resizeImage'),_0x27034a['descriptionFactory']['registerAttributeLabel']('resizedWidth',Tt(_0x463e46,'FORMAT_IMAGE_SIZE'))),_0x50e2c0['plugins']['has']('ImageTextAlternativeEditing')&&_0x27034a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x50e2c0['plugins']['has']('PictureEditing')&&_0x27034a['descriptionFactory']['registerDescriptionCallback'](_0x581f02=>{if('attribute'!=_0x581f02['type'])return;const {data:_0x409c89}=_0x581f02;return _0x409c89&&'sources'==_0x409c89['key']?{'type':'format','content':''}:void 0x0;}),_0x50e2c0['plugins']['has']('ImageSizeAttributes')&&_0x27034a['descriptionFactory']['registerDescriptionCallback'](_0x544409=>{if('attribute'!=_0x544409['type'])return;const {data:_0x3b6d23}=_0x544409;return!_0x3b6d23||'width'!=_0x3b6d23['key']&&'height'!=_0x3b6d23['key']?void 0x0:{'type':'format','content':''};}),_0x27034a['descriptionFactory']['registerDescriptionCallback'](_0x563bb4=>{if(!!_0x48b07f['find'](({type:_0x1dbf38,subType:_0x6fdccf})=>_0x563bb4['type']==_0x1dbf38&&_0x563bb4['subType']==_0x6fdccf))return _0x563bb4['previous']?{}:void 0x0;}),_0x27034a['descriptionFactory']['registerDescriptionCallback'](_0x357223=>{if('insertion'==_0x357223['type']||'deletion'==_0x357223['type']){const _0x480026=_0x357223['getContainedElement']();if(_0x480026&&_0x480026['is']('element','caption'))return{'type':'insertion'==_0x357223['type']?'addObject':'removeObject','element':_0x480026,'quantity':0x1};}}),_0x27034a['descriptionFactory']['registerDescriptionCallback'](_0x17c74e=>'formatBlock'==_0x17c74e['type']&&'convertInlineImageToBlock'==_0x17c74e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x17c74e['type']&&'convertBlockImageToInline'==_0x17c74e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x27034a['descriptionFactory']['registerDescriptionCallback'](_0x480d64=>{if('attribute'!=_0x480d64['type'])return;const {data:_0x238ca8}=_0x480d64;if(!_0x238ca8||'alt'!=_0x238ca8['key'])return;const _0x5d317c=_0x238ca8['newValue'];return _0x5d317c?{'type':'format','content':Tt(_0x463e46,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5d317c+'\x22')}:{'type':'format','content':Tt(_0x463e46,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x161d29=this['editor'],_0x4d7fef=_0x161d29['locale'];_0x161d29['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4680c6=>{if('formatBlock'!=_0x4680c6['type']&&'formatInline'!=_0x4680c6['type'])return;const {data:_0x597b38}=_0x4680c6;if(_0x597b38){if('imageTextAlternative'==_0x597b38['commandName']){const _0x4d19d5=_0x597b38['commandParams'][0x0]['newValue'];return _0x4d19d5?{'type':'format','content':Tt(_0x4d7fef,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4d19d5+'\x22')}:{'type':'format','content':Tt(_0x4d7fef,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x597b38['commandName']){const _0x49a06a=_0x597b38['commandParams'][0x0]['width'];return _0x49a06a?{'type':'format','content':Tt(_0x4d7fef,'*Set\x20image\x20width:*\x20%0',_0x49a06a)}:{'type':'format','content':Tt(_0x4d7fef,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends _0x203e6b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4bf318=this['editor']['locale'],_0x41b04e=this['editor']['plugins']['get']('TrackChangesEditing');_0x41b04e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x41b04e['descriptionFactory']['registerDescriptionCallback'](_0x1b9f4a=>{if('attribute'!=_0x1b9f4a['type'])return;const {data:_0x436d7b}=_0x1b9f4a;return _0x436d7b&&'src'==_0x436d7b['key']?_0x436d7b['newValue']&&_0x436d7b['oldValue']?{'type':'format','content':Tt(_0x4bf318,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4b4bb9=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b4bb9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4b4bb9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b4bb9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4b4bb9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x250924=this['editor'],_0x4fd66c=_0x250924['locale'];_0x250924['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e5f46=>{if('formatBlock'!=_0x4e5f46['type']&&'formatInline'!=_0x4e5f46['type'])return;const {data:_0x36bc3a}=_0x4e5f46;if(!_0x36bc3a||'replaceImageSource'!=_0x36bc3a['commandName'])return;return{'type':'format','content':Tt(_0x4fd66c,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends _0x203e6b{['afterInit'](){const _0xdf6fa8=this['editor'];if(!_0xdf6fa8['plugins']['has']('ImageStyleEditing'))return;const _0x2cf383=_0xdf6fa8['plugins']['get']('TrackChangesEditing'),_0x4fa04c=_0xdf6fa8['plugins']['get']('ImageUtils'),_0xbdf096={};_0x2cf383['enableCommand']('imageStyle',(_0x55d506,_0x5f468a)=>{const _0x1c7050=_0xdf6fa8['plugins']['get']('Users')['me'],_0x5f0ab1=_0xdf6fa8['commands']['get']('imageStyle');let _0x365bf5=_0x4fa04c['getClosestSelectedImageElement'](_0xdf6fa8['model']['document']['selection']),_0x60daed=_0xdf6fa8['model']['createRangeOn'](_0x365bf5),_0x12a991=_0x5f0ab1['value'];if(_0x12a991==_0x5f468a['value'])return;const _0x1f9aa6={'commandName':'imageStyle','commandParams':[_0x5f468a],'formatGroupId':_0x1e5a7d()};_0xdf6fa8['model']['change'](()=>{if(_0x2cf383['getSuggestions']()['filter'](_0x51ea22=>_0x51ea22['isInContent']&&_0x1c7050==_0x51ea22['author']&&('formatBlock'==_0x51ea22['type']||'formatInline'==_0x51ea22['type'])&&('imageStylePreApply'==_0x51ea22['subType']||'imageStylePostApply'==_0x51ea22['subType'])&&_0x51ea22['getFirstRange']()['isEqual'](_0x60daed))['forEach'](_0x2cf773=>_0x2cf383['discardSuggestion'](_0x2cf773['head'])),_0x365bf5=_0x4fa04c['getClosestSelectedImageElement'](_0xdf6fa8['model']['document']['selection']),_0x60daed=_0xdf6fa8['model']['createRangeOn'](_0x365bf5),_0x5f0ab1['refresh'](),_0xdf6fa8['commands']['get']('imageTypeInline')['refresh'](),_0xdf6fa8['commands']['get']('imageTypeBlock')['refresh'](),_0x12a991=_0x5f0ab1['value'],_0x12a991!=_0x5f468a['value'])return _0x4fa04c['isInlineImage'](_0x365bf5)&&_0x5f0ab1['shouldConvertImageType'](_0x5f468a['value'],_0x365bf5)?(_0x55d506({..._0x5f468a,'setImageSizes':!0x1}),_0x365bf5=_0x4fa04c['getClosestSelectedImageElement'](_0xdf6fa8['model']['document']['selection']),void _0x2cf383['markBlockFormat'](_0x365bf5,{..._0x1f9aa6,'commandReversedParams':[{'value':_0x12a991||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4fa04c['isBlockImage'](_0x365bf5)?_0x2cf383['markBlockFormat'](_0x365bf5,_0x1f9aa6,[],'imageStylePostApply'):_0x2cf383['markInlineFormat'](_0x60daed,_0x1f9aa6,'imageStylePostApply'));});});for(const _0x1bb9db of _0xdf6fa8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xbdf096[_0x1bb9db['name']]=_0x1bb9db['title']['toLowerCase']();_0x2cf383['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2cf383['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2cf383['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2cf383['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3016d9])=>{_0x4fa04c['setImageNaturalSizeAttributes'](_0x3016d9['getContainedElement']());}),_0x2cf383['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x44e120,_0x5b0f06)=>{_0x2cf383['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x44e120,{'commandName':_0x5b0f06['commandName'],'commandParams':_0x5b0f06['commandReversedParams']});}),_0x2cf383['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x26bc82,_0x25078b){if(_0x2f52f2(_0x26bc82,_0x25078b))return[_0x26bc82,_0x25078b];if(_0x2f52f2(_0x25078b,_0x26bc82))return[_0x25078b,_0x26bc82];return null;});const _0x26d8a6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2f52f2(_0x29ad81,_0x2026ed){const _0x443624=_0x26d8a6['findIndex'](({type:_0x1063d9,subType:_0x1453c8})=>_0x29ad81['type']==_0x1063d9&&_0x29ad81['subType']==_0x1453c8),_0x38e4a4=_0x26d8a6['findIndex'](({type:_0x444a81,subType:_0x4ba8bc})=>_0x2026ed['type']==_0x444a81&&_0x2026ed['subType']==_0x4ba8bc);if(_0x443624<0x0||_0x38e4a4<0x0)return!0x1;const _0x53d8ed=_0x29ad81['getFirstRange'](),_0x324f0b=_0x2026ed['getFirstRange']();if((0x0==_0x443624||0x1==_0x443624)&&0x2==_0x38e4a4&&_0x53d8ed['isIntersecting'](_0x324f0b))return!0x0;if(0x2==_0x443624&&0x3==_0x38e4a4){const _0x16e2b8=_0x2cf383['_findSuggestions'](_0x53d8ed,'insertion')['filter'](({suggestion:_0x4dd234,meta:_0x464c3e})=>_0x464c3e['isOwn']&&'convertInlineImageToBlock'==_0x4dd234['subType']);if(_0x16e2b8['length']>0x1&&_0x324f0b['end']['isEqual'](_0x53d8ed['start']))return!0x0;if(0x1==_0x16e2b8['length']&&(_0x53d8ed['start']['isEqual'](_0x324f0b['end'])||_0x53d8ed['end']['isEqual'](_0x324f0b['start'])))return!0x0;}if(0x3==_0x443624&&0x3==_0x38e4a4&&_0x53d8ed['start']['isBefore'](_0x324f0b['start'])){const _0x354545=_0x53d8ed['end']['nodeAfter'],_0x591f4d=_0x324f0b['start']['nodeBefore'];return _0x4fa04c['isBlockImage'](_0x354545)&&_0x354545===_0x591f4d;}return!0x1;}_0xdf6fa8['model']['document']['registerPostFixer'](()=>{let _0x29037b=!0x1;const _0x2e14e6=Array['from'](_0xdf6fa8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d933f,data:_0x1db605}of _0x2e14e6){const {group:_0x44fe0f,type:_0x25bcf4,subType:_0x5b7352,id:_0x3f60c4}=_0x4f787f(_0x4d933f);if('suggestion'==_0x44fe0f&&_0x2cf383['hasSuggestion'](_0x3f60c4)){if('formatBlock'==_0x25bcf4&&('imageStylePreApply'==_0x5b7352||'imageStylePostApply'==_0x5b7352)){const _0x241dda=_0x2cf383['getSuggestion'](_0x3f60c4);if(_0x1db605['newRange']){const _0x99a025=_0x241dda['getFirstRange']()['getContainedElement']();if(_0x4fa04c['isBlockImage'](_0x99a025))continue;_0x2cf383['discardSuggestion'](_0x241dda),_0x29037b=!0x0;}}if('insertion'==_0x25bcf4&&'imageCaption'==_0x5b7352&&!_0x1db605['newRange']){const _0x135bcf=_0x2cf383['getSuggestion'](_0x3f60c4);_0x135bcf['next']&&_0x135bcf['next']['isInContent']&&(_0x2cf383['discardSuggestion'](_0x135bcf['next']),_0x29037b=!0x0);}}}return _0x29037b;}),this['_registerLegacyDescription'](_0xbdf096);}['_registerLegacyDescription'](_0xc346e8){const _0xa24256=this['editor'],_0x144101=_0xa24256['locale'];_0xa24256['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2378d8=>{if('formatBlock'!=_0x2378d8['type']&&'formatInline'!=_0x2378d8['type'])return;const {data:_0x483e53}=_0x2378d8;if(!_0x483e53||'imageStyle'!=_0x483e53['commandName'])return;const _0x1c1978=_0x483e53['commandParams'][0x0]['value'];return _0x3038b0('side'===_0x1c1978?Tt(_0x144101,'FORMAT_SIDE_IMAGE'):_0xc346e8[_0x1c1978]||_0x1c1978);function _0x3038b0(_0x59bdd7){return{'type':'format','content':Tt(_0x144101,'*Format:*\x20%0',_0x59bdd7)};}});}}class TrackChangesImportWord extends _0x203e6b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x547d20){super(_0x547d20),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x43e3f5=this['editor'],_0x38b89b=_0x43e3f5['commands']['get']('importWord'),_0x1dc934=_0x43e3f5['commands']['get']('trackChanges');_0x38b89b&&(_0x38b89b['on']('execute',(_0x36c64f,[,_0x1618c9])=>{this['_trackChangesValueDuringImport']=_0x1dc934['value'],_0x1618c9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x38b89b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x38b89b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1dc934['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x43e3f5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2c9a3c,_0x114974){const {suggestions:_0x3381c6}=_0x114974,_0x1f2042=this['editor']['commands']['get']('trackChanges'),_0x1ff47a=_0x1f2042['value'];this['_trackChangesValueDuringImport']!==_0x1ff47a&&(_0x1f2042['execute'](),this['_trackChangesExecuted']=!0x0),_0x3381c6&&_0x3381c6['forEach'](({id:_0x16345d,type:_0x5687eb,author:_0x38d77a,created_at:_0x39d697})=>{const _0x58dd36={'id':_0x16345d,'type':_0x5687eb,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x38d77a,'createdAt':_0x39d697?new Date(_0x39d697):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x58dd36);});}}class TrackChangesIndent extends _0x203e6b{['afterInit'](){const _0x599c29=this['editor'],_0x154c6f=_0x599c29['plugins']['get']('TrackChangesEditing');if(_0x599c29['plugins']['has']('IndentEditing')&&(_0x154c6f['enableCommand']('indent'),_0x154c6f['enableCommand']('outdent')),_0x599c29['plugins']['has']('IndentBlock')){for(const _0x3ee22c of['indentBlock','outdentBlock'])_0x154c6f['enableDefaultAttributesIntegration'](_0x3ee22c);if(_0x599c29['plugins']['has']('ListEditing')){for(const _0x1dd878 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x154c6f['enableDefaultAttributesIntegration'](_0x1dd878);}}const _0x68e20d=_0x599c29['locale'];_0x154c6f['descriptionFactory']['registerAttributeLabel']('blockIndent',Tt(_0x68e20d,'FORMAT_INDENT')),_0x154c6f['descriptionFactory']['registerAttributeLabel']('blockIndentList',Tt(_0x68e20d,'FORMAT_INDENT')),_0x154c6f['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Tt(_0x68e20d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x537493=this['editor'],_0x311db5=_0x537493['locale'],_0x1a5311=_0x537493['plugins']['get']('TrackChangesEditing');_0x1a5311['descriptionFactory']['registerDescriptionCallback'](_0xd8057a=>{if('formatBlock'!=_0xd8057a['type'])return;const {data:_0x3141f9}=_0xd8057a;if(!_0x3141f9)return;if('indentBlock'!=_0x3141f9['commandName']&&'outdentBlock'!=_0x3141f9['commandName'])return;const _0xbe0885=_0xd8057a['getItems']()[0x0],_0x2ee1d0=_0x1a5311['descriptionFactory']['getItemLabel'](_0xbe0885);return'indentBlock'==_0x3141f9['commandName']?{'type':'format','content':Tt(_0x311db5,'*Indent:*\x20%0',_0x2ee1d0)}:'outdentBlock'==_0x3141f9['commandName']?{'type':'format','content':Tt(_0x311db5,'*Outdent:*\x20%0',_0x2ee1d0)}:void 0x0;});}}class TrackChangesInputCommand extends _0x203e6b{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class TrackChangesLink extends _0x203e6b{['afterInit'](){const _0x432c88=this['editor'];if(!_0x432c88['plugins']['has']('LinkEditing'))return;const _0x14749a=_0x432c88['plugins']['get']('TrackChangesEditing'),_0x1b7d62=_0x432c88['commands']['get']('link');_0x14749a['enableDefaultAttributesIntegration']('link'),_0x14749a['enableDefaultAttributesIntegration']('unlink');for(const _0x180db0 of _0x1b7d62['manualDecorators'])_0x14749a['descriptionFactory']['registerAttributeLabel'](_0x180db0['id'],'link\x20('+_0x180db0['label']['toLowerCase']()+')');_0x14749a['descriptionFactory']['registerDescriptionCallback'](_0x165b7b=>{if('attribute'!=_0x165b7b['type'])return;const {data:_0x1ad73e}=_0x165b7b;if(!_0x1ad73e||'linkHref'!=_0x1ad73e['key'])return;const _0x54c58b=_0x1ad73e['newValue'],_0x23da30=_0x432c88['locale'];return{'type':'format','content':null==_0x54c58b?Tt(_0x23da30,'*Remove\x20link*'):Tt(_0x23da30,'*Set\x20link:*\x20%0','\x22'+_0x54c58b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x595e00=this['editor'],_0x3dc036=_0x595e00['locale'];_0x595e00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24263a=>{if('formatInline'!=_0x24263a['type'])return;const {data:_0x3611ad}=_0x24263a;if(_0x3611ad){if('link'==_0x3611ad['commandName']){const _0x1e3c9a=_0x3611ad['commandParams'][0x0];return{'type':'format','content':Tt(_0x3dc036,'*Set\x20link:*\x20%0','\x22'+_0x1e3c9a+'\x22')};}return'unlink'==_0x3611ad['commandName']?{'type':'format','content':Tt(_0x3dc036,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends _0x203e6b{['afterInit'](){const _0x262399=this['editor'],_0x999dcc=_0x262399['locale'];if(!_0x262399['plugins']['has']('LegacyListEditing'))return;const _0x59d47e=_0x262399['plugins']['get']('TrackChangesEditing'),_0x179a20=_0x262399['plugins']['has']('LegacyTodoListEditing');function _0x11b858(_0x56e78b){return()=>{const _0x297026=_0x262399['model']['document']['selection'],_0x27e9c3=_0x262399['commands']['get'](_0x56e78b);if(_0x27e9c3['value'])return void _0x262399['execute']('paragraph',{});const _0x19b2d5=_0x56e78b['slice'](0x0,-0x4),_0x465056=function(_0x343b9f,_0x49a895,_0x466ead){let _0x52400c=Array['from'](_0x343b9f)['filter'](_0x13682e=>function(_0x2d8465,_0xcb3a55){return _0xcb3a55['checkChild'](_0x2d8465['parent'],'listItem')&&!_0xcb3a55['isObject'](_0x2d8465);}(_0x13682e,_0x466ead));_0x52400c=_0x52400c['filter'](_0x17c08f=>!_0x17c08f['is']('element','listItem')||_0x17c08f['getAttribute']('listType')!=_0x49a895);const _0x261a89=new Set();for(const _0x5ee651 of _0x52400c)_0x5ee651['is']('element','listItem')?_0x261a89['add'](St(_0x5ee651)):_0x261a89['add'](_0x5ee651);return Array['from'](_0x261a89);}(_0x297026['getSelectedBlocks'](),_0x19b2d5,_0x262399['model']['schema']);_0x262399['model']['change'](()=>{for(const _0x9e0798 of _0x465056)_0x59d47e['markBlockFormat'](_0x9e0798,{'commandName':_0x56e78b,'commandParams':[{'forceValue':!_0x27e9c3['value']}],'formatGroupId':'blockName'},Rt(_0x9e0798));});};}function _0x452120(_0x118180){return()=>{const _0xe04c50=function(_0x251a86){let _0x12a4dd=Array['from'](_0x251a86);const _0x16f287=_0x12a4dd['findIndex'](_0x4b9229=>'listItem'!=_0x4b9229['name']);return _0x16f287>-0x1&&(_0x12a4dd=_0x12a4dd['slice'](0x0,_0x16f287)),_0x12a4dd;}(_0x262399['model']['document']['selection']['getSelectedBlocks']()),_0x50c4e8=_0x262399['model']['createRange'](_0x262399['model']['createPositionAt'](_0xe04c50[0x0],'before'),_0x262399['model']['createPositionAt'](_0xe04c50[_0xe04c50['length']-0x1],'end'));_0x262399['model']['change'](()=>{_0x59d47e['markBlockFormat'](_0x50c4e8,{'commandName':_0x118180,'commandParams':[],'formatGroupId':'listIndent'},function(_0x54cc7b){const _0x45adf0=new Set();for(const _0x3c9ba1 of _0x54cc7b){let _0xeda2b8=_0x3c9ba1['nextSibling'];for(;_0xeda2b8&&_0xeda2b8['getAttribute']('listIndent')>_0x3c9ba1['getAttribute']('listIndent');)_0x45adf0['add'](_0xeda2b8),_0xeda2b8=_0xeda2b8['nextSibling'];}return Array['from'](_0x45adf0);}(_0xe04c50));});};}_0x59d47e['enableCommand']('numberedList',_0x11b858('numberedList')),_0x59d47e['enableCommand']('bulletedList',_0x11b858('bulletedList')),_0x179a20&&_0x59d47e['enableCommand']('todoList',_0x11b858('todoList')),_0x59d47e['enableCommand']('indentList',_0x452120('indentList')),_0x59d47e['enableCommand']('outdentList',_0x452120('outdentList')),_0x179a20&&_0x59d47e['enableCommand']('checkTodoList',()=>{const _0x576e00=_0x262399['commands']['get']('checkTodoList'),_0xcf057b=Array['from'](_0x576e00['_selectedElements']);_0xcf057b['filter'](_0x3dad97=>_0x3dad97['getAttribute']('todoListChecked')!=_0x576e00['value']),_0x262399['model']['change'](()=>{for(const _0x4febf0 of _0xcf057b)_0x59d47e['markBlockFormat'](_0x4febf0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x576e00['value']}]});});}),_0x59d47e['descriptionFactory']['registerElementLabel']('listItem',_0xe67996=>Tt(_0x999dcc,'ELEMENT_LIST_ITEM',_0xe67996)),_0x59d47e['descriptionFactory']['registerDescriptionCallback'](_0x558766=>{if('formatBlock'!=_0x558766['type']&&'formatInline'!=_0x558766['type'])return;const {data:_0x1667b9}=_0x558766;if(_0x1667b9){if('numberedList'==_0x1667b9['commandName']||'bulletedList'==_0x1667b9['commandName']||'todoList'==_0x1667b9['commandName'])switch(_0x1667b9['commandName']['replace']('List','')){case'bulleted':return _0x48b673(Tt(_0x999dcc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48b673(Tt(_0x999dcc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48b673(Tt(_0x999dcc,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1667b9['commandName'])return{'type':'format','content':Tt(_0x999dcc,'*Indent:*\x20%0',Tt(_0x999dcc,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1667b9['commandName'])return{'type':'format','content':Tt(_0x999dcc,'*Outdent:*\x20%0',Tt(_0x999dcc,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1667b9['commandName'])return _0x1667b9['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x999dcc,'*Check\x20item*')}:{'type':'format','content':Tt(_0x999dcc,'*Uncheck\x20item*')};}function _0x48b673(_0x1e7591){return{'type':'format','content':Tt(_0x999dcc,'*Change\x20to:*\x20%0',_0x1e7591)};}});}}function St(_0x2c6e67){const _0x2f8f4f=_0x2c6e67['getAttribute']('listIndent');if(0x0==_0x2f8f4f)return _0x2c6e67;let _0xd04f16=_0x2c6e67;for(;_0x2c6e67['previousSibling']&&_0x2c6e67['previousSibling']['is']('element','listItem');){const _0x329613=_0x2c6e67['previousSibling']['getAttribute']('listIndent');if(_0x329613==_0x2f8f4f)_0xd04f16=_0x2c6e67['previousSibling'];else{if(_0x329613<_0x2f8f4f)break;}_0x2c6e67=_0x2c6e67['previousSibling'];}return _0xd04f16;}function Rt(_0x134241){const _0x363503=[];if(_0x134241['is']('element','listItem')&&_0x134241['getAttribute']('listIndent')>0x0){let _0x3a1ec8=_0x134241['nextSibling'];for(;_0x3a1ec8&&'listItem'==_0x3a1ec8['name']&&_0x3a1ec8['getAttribute']('listIndent')==_0x134241['getAttribute']('listIndent');)_0x363503['push'](_0x3a1ec8),_0x3a1ec8=_0x3a1ec8['nextSibling'];}return _0x363503;}class TrackChangesLegacyListProperties extends _0x203e6b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4ed53f=this['editor']['config']['get']('list.properties'),_0x324613=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ed53f['styles']&&_0x324613['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4ed53f['reversed']&&_0x324613['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4ed53f['startIndex']&&_0x324613['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x324613['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2876ca,_0x2d7d7f={}){const _0x17bf48=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12e442=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x17bf48['markMultiRangeBlockFormat'](_0x12e442,{'commandName':'listStyle','commandParams':[{'type':_0x2d7d7f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xb89501,_0x2c3a53={}){const _0x430602=this['editor']['plugins']['get']('TrackChangesEditing'),_0x436a5f=this['_getSuggestionBlocks'](_0x109978=>_0x109978['is']('element','listItem')&&'numbered'===_0x109978['getAttribute']('listType'));if(_0x436a5f['length']<0x1)return;const _0x203913=_0x436a5f['map'](_0x36cbb3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x36cbb3,'before'),this['editor']['model']['createPositionAt'](_0x36cbb3,0x0)));this['editor']['model']['change'](()=>{_0x430602['markMultiRangeBlockFormat'](_0x203913,{'commandName':'listReversed','commandParams':[{'reversed':_0x2c3a53['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1ee92b,_0x49b367={}){const _0x240ecf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x567497=this['_getSuggestionBlocks'](_0x4e6a1f=>_0x4e6a1f['is']('element','listItem')&&'numbered'===_0x4e6a1f['getAttribute']('listType'));if(_0x567497['length']<0x1)return;const _0x4a84ff=_0x567497['map'](_0x4b931f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4b931f,'before'),this['editor']['model']['createPositionAt'](_0x4b931f,0x0)));this['editor']['model']['change'](()=>{_0x240ecf['markMultiRangeBlockFormat'](_0x4a84ff,{'commandName':'listStart','commandParams':[{'startIndex':_0x49b367['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x26b795){if('formatBlock'!=_0x26b795['type']&&'formatInline'!=_0x26b795['type'])return;const _0x4fbcf0=this['editor']['locale'],{data:_0x22554f}=_0x26b795;if(!_0x22554f)return;let _0x404d43,_0x43e955;switch(_0x22554f['commandName']){case'listStyle':_0x404d43='*Change\x20to:*\x20%0',_0x43e955={'type':'format','content':Tt(_0x4fbcf0,_0x404d43,Tt(_0x4fbcf0,this['_getTranslationKeyForListStyle'](_0x22554f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x404d43=_0x22554f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x43e955={'type':'format','content':Tt(_0x4fbcf0,_0x404d43)};break;case'listStart':_0x404d43='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x43e955={'type':'format','content':Tt(_0x4fbcf0,_0x404d43,_0x22554f['commandParams'][0x0]['startIndex'])};}return _0x43e955;}['_getSuggestionBlocksForListStyle'](){const _0x4503bd=this['editor']['plugins']['get']('LegacyListUtils');let _0x310a3a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x310a3a[0x0]?.['is']('element','listItem')&&_0x310a3a['unshift'](..._0x4503bd['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x310a3a[_0x310a3a['length']-0x1]?.['is']('element','listItem')&&_0x310a3a['push'](..._0x4503bd['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x310a3a=[...new Set(_0x310a3a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x310a3a=_0x310a3a['filter'](_0x2b0629=>_0x2b0629['is']('element','listItem'))),_0x310a3a;}['_getSuggestionBlocks'](_0x323579){const _0x4ef969=this['editor']['plugins']['get']('LegacyListUtils');let _0x11d6ee=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x323579)['map'](_0xefa162=>{const _0x1f2d30=this['editor']['model']['createPositionAt'](_0xefa162,0x0);return[..._0x4ef969['getSiblingNodes'](_0x1f2d30,'backward'),..._0x4ef969['getSiblingNodes'](_0x1f2d30,'forward')];})['flat']();return _0x11d6ee=[...new Set(_0x11d6ee)],_0x11d6ee;}['_getTranslationKeyForListStyle'](_0x532b4a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x532b4a)||'default')['toUpperCase']()+'_LIST_'+_0x532b4a['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends _0x203e6b{['afterInit'](){const _0x3c61a9=this['editor'];if(!_0x3c61a9['plugins']['has']('MediaEmbedEditing'))return;const _0x2cc47d=_0x3c61a9['plugins']['get']('TrackChangesEditing'),_0x451eb7=_0x3c61a9['locale'];_0x2cc47d['enableCommand']('mediaEmbed'),_0x2cc47d['descriptionFactory']['registerElementLabel']('media',_0x2aa7ca=>Tt(_0x451eb7,'ELEMENT_MEDIA',_0x2aa7ca)),_0x3c61a9['plugins']['has']('MediaEmbedResizeEditing')&&(_0x2cc47d['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x2cc47d['descriptionFactory']['registerDescriptionCallback'](_0x35c0cd=>{if('attribute'!=_0x35c0cd['type'])return;const {data:_0x1e3955}=_0x35c0cd;if(!_0x1e3955||'resizedWidth'!=_0x1e3955['key'])return;const _0x234e8b=_0x35c0cd['getContainedElement']();if(!_0x234e8b||!_0x234e8b['is']('element','media'))return;const _0x7c50ac=Tt(_0x451eb7,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Tt(_0x451eb7,'*Set\x20format:*\x20%0',_0x7c50ac)};}));}}class TrackChangesMediaEmbedStyle extends _0x203e6b{['afterInit'](){const _0x3c8691=this['editor'];if(!_0x3c8691['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x375e45=_0x3c8691['plugins']['get']('TrackChangesEditing'),_0x36e1a6=_0x3c8691['locale'],_0x171c3f=_0x3c8691['plugins']['get']('MediaEmbedStyleEditing'),_0xe82eb8={};for(const _0x57bf09 of _0x171c3f['normalizedStyles'])_0xe82eb8[_0x57bf09['name']]=_0x57bf09['title']['toLowerCase']();const _0x50b292=_0x171c3f['normalizedStyles']['find'](_0x139c2e=>_0x139c2e['isDefault'])?.['name'];_0x375e45['enableCommand']('mediaStyle',(_0x590692,_0x4e1f71)=>{const _0x1f9174=_0x3c8691['plugins']['get']('Users')['me'],_0x12c48d=_0x3c8691['commands']['get']('mediaStyle'),_0x73a666=function(_0x3dacd1){const _0x38ed6f=_0x3dacd1['model']['document']['selection']['getSelectedElement']();if(_0x38ed6f&&_0x38ed6f['is']('element','media'))return _0x38ed6f;return null;}(_0x3c8691);if(!_0x73a666)return;const _0x2f69f9=_0x3c8691['model']['createRangeOn'](_0x73a666);let _0x543eac=_0x12c48d['value'];if(_0x543eac==_0x4e1f71['value'])return;const _0x1d4393={'commandName':'mediaStyle','commandParams':[_0x4e1f71],'formatGroupId':_0x1e5a7d()};_0x3c8691['model']['change'](()=>{_0x375e45['getSuggestions']()['filter'](_0x4f5c89=>_0x4f5c89['isInContent']&&_0x1f9174==_0x4f5c89['author']&&'formatBlock'==_0x4f5c89['type']&&'mediaStylePostApply'==_0x4f5c89['subType']&&_0x4f5c89['getFirstRange']()['isEqual'](_0x2f69f9))['forEach'](_0x4ab496=>_0x375e45['discardSuggestion'](_0x4ab496['head'])),_0x12c48d['refresh'](),_0x543eac=_0x12c48d['value'],_0x543eac!=_0x4e1f71['value']&&_0x375e45['markBlockFormat'](_0x73a666,{..._0x1d4393,'commandReversedParams':[{'value':'string'==typeof _0x543eac?_0x543eac:null}]},[],'mediaStylePostApply');});}),_0x375e45['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x375e45['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0xb27c,_0x5b6899)=>{_0x375e45['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xb27c,{'commandName':_0x5b6899['commandName'],'commandParams':_0x5b6899['commandReversedParams']});}),_0x375e45['descriptionFactory']['registerDescriptionCallback'](_0x201a0b=>{if('formatBlock'!=_0x201a0b['type'])return;const {data:_0x141619}=_0x201a0b;if(!_0x141619||'mediaStyle'!=_0x141619['commandName'])return;const _0x2ade39=_0x141619['commandParams'][0x0]['value']||_0x50b292;if(!_0x2ade39)return;const _0x4917cb=_0xe82eb8[_0x2ade39]||_0x2ade39;return{'type':'format','content':Tt(_0x36e1a6,'*Format:*\x20%0',_0x4917cb)};});}}class TrackChangesMention extends _0x203e6b{['afterInit'](){const _0x5020a7=this['editor'];_0x5020a7['plugins']['has']('MentionEditing')&&_0x5020a7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends _0x203e6b{['afterInit'](){const _0x206588=this['editor'];if(!_0x206588['plugins']['has']('MergeFieldsEditing'))return;const _0x2ae3ff=_0x206588['plugins']['get']('TrackChangesEditing'),_0xfcb4db=_0x206588['locale'];_0x2ae3ff['enableCommand']('insertMergeField'),_0x2ae3ff['enableCommand']('insertMergeFieldBlock'),_0x2ae3ff['enableCommand']('insertMergeFieldImage'),_0x2ae3ff['descriptionFactory']['registerElementLabel']('mergeField',_0x1c64c7=>Tt(_0xfcb4db,'ELEMENT_MERGE_FIELD',_0x1c64c7)),_0x2ae3ff['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xe86bec=>Tt(_0xfcb4db,'ELEMENT_MERGE_FIELD',_0xe86bec)),_0x2ae3ff['descriptionFactory']['registerDescriptionCallback'](_0x7c69ac=>{if('insertion'!=_0x7c69ac['type']&&'deletion'!=_0x7c69ac['type'])return;const _0x3cd862=_0x7c69ac['getContainedElement']();if(null==_0x3cd862)return;const _0x39bcd1=_0x206588['plugins']['get']('MergeFieldsEditing');let _0x4db75d;switch(_0x39bcd1['getMergeFieldType'](_0x3cd862)){case null:return;case'image':{const _0x44e435=_0x39bcd1['unwrapAffixes'](_0x3cd862['getAttribute']('src'));_0x4db75d=_0x39bcd1['getLabel'](_0x44e435)||_0x44e435;break;}default:{const _0x10d1b0=_0x3cd862['getAttribute']('id');_0x4db75d=_0x39bcd1['getLabel'](_0x10d1b0)||_0x10d1b0;break;}}return'insertion'==_0x7c69ac['type']?{'type':'insertion','content':Tt(_0xfcb4db,'*Insert:*\x20%0','\x22'+_0x4db75d+'\x22\x20'+Tt(_0xfcb4db,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Tt(_0xfcb4db,'*Remove:*\x20%0','\x22'+_0x4db75d+'\x22\x20'+Tt(_0xfcb4db,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends _0x203e6b{['afterInit'](){const _0x4d0ec5=this['editor'],_0x89b0e1=_0x4d0ec5['plugins']['get']('TrackChangesEditing');_0x4d0ec5['plugins']['has']('MultiLevelList')&&(_0x89b0e1['enableDefaultAttributesIntegration']('multiLevelList'),_0x89b0e1['descriptionFactory']['registerDescriptionCallback'](_0x2ba504=>this['handleDescriptions'](_0x2ba504)));}['handleDescriptions'](_0x36bc44){const _0x47f715=this['editor']['locale'],{data:_0x315270}=_0x36bc44,_0x2500cf={'type':'format','content':''};if(_0x315270&&'listMarkerStyle'==_0x315270['key']){if(!_0x315270['oldValue'])return{'type':'format','content':Tt(_0x47f715,'*Set\x20format:*\x20%0',Tt(_0x47f715,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x315270['newValue']+')'};if(!_0x315270['newValue']){let _0xc858e5=_0x36bc44['head'];for(;_0xc858e5;){if(_0xc858e5['data']&&'listType'==_0xc858e5['data']['key']&&_0xc858e5['data']['newValue'])return _0x2500cf;_0xc858e5=_0xc858e5['next'];}return{'type':'format','content':Tt(_0x47f715,'*Remove\x20format:*\x20%0',Tt(_0x47f715,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x315270['oldValue']+')'};}}}}class TrackChangesPageBreak extends _0x203e6b{['afterInit'](){const _0x285b64=this['editor'];if(!_0x285b64['plugins']['has']('PageBreakEditing'))return;_0x285b64['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2efa7b=_0x285b64['plugins']['get']('TrackChangesEditing'),_0x311b20=_0x285b64['locale'];_0x2efa7b['descriptionFactory']['registerElementLabel']('pageBreak',_0x90257c=>Tt(_0x311b20,'ELEMENT_PAGE_BREAK',_0x90257c));}}class TrackChangesParagraph extends _0x203e6b{['afterInit'](){const _0x56a366=this['editor'];if(!_0x56a366['plugins']['has']('Paragraph'))return;const _0x110aae=_0x56a366['locale'],_0x6919e=_0x56a366['plugins']['get']('TrackChangesEditing');_0x6919e['descriptionFactory']['registerElementLabel']('paragraph',_0x3c5d0e=>Tt(_0x110aae,'ELEMENT_PARAGRAPH',_0x3c5d0e)),_0x6919e['enableDefaultAttributesIntegration']('paragraph'),_0x6919e['enableCommand']('insertParagraph');const _0x273eda=_0x6919e['descriptionFactory'];_0x273eda['registerDescriptionCallback'](_0x186bcf=>{if('insertion'!==_0x186bcf['type'])return;const {start:_0x2ef58b,end:_0x56d7a8}=_0x186bcf['getFirstRange']();if(!_0x2ef58b['isTouching'](_0x56d7a8)||!_0x2ef58b['nodeAfter'])return;const _0x45f312=_0x56a366['model']['schema'],_0x3963c2=_0x2ef58b['nodeAfter'];return _0x45f312['isBlock'](_0x3963c2)&&!_0x45f312['isLimit'](_0x3963c2)&&_0x45f312['checkChild'](_0x3963c2,'$text')?{'type':'insertion','content':Tt(_0x110aae,'*Insert:*\x20%0',_0x273eda['getItemLabel'](_0x3963c2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f23d7=this['editor'],_0x240abb=_0x1f23d7['locale'];_0x1f23d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2f756=>{if('formatBlock'!=_0xd2f756['type'])return;const {data:_0x20aed4}=_0xd2f756;return _0x20aed4&&'paragraph'==_0x20aed4['commandName']?{'type':'format','content':Tt(_0x240abb,'*Change\x20to:*\x20%0',Tt(_0x240abb,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends _0x203e6b{['afterInit'](){const _0x3825e9=this['editor'];_0x3825e9['commands']['get']('replaceSource')&&_0x3825e9['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends _0x203e6b{['afterInit'](){const _0xb21489=this['editor'];if(!_0xb21489['plugins']['has']('RemoveFormatEditing'))return;_0xb21489['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53ef9e=this['editor'];_0x53ef9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x75214e=>{if('formatBlock'!=_0x75214e['type']&&'formatInline'!=_0x75214e['type'])return;const {data:_0x903554}=_0x75214e;return _0x903554&&'removeFormat'==_0x903554['commandName']?{'type':'format','content':Tt(_0x53ef9e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends _0x203e6b{['afterInit'](){const _0x26b60c=this['editor'];if(!_0x26b60c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x26573c=_0x26b60c['plugins']['get']('TrackChangesEditing');_0x26573c['enableCommand']('goToPreviousRestrictedEditingException'),_0x26573c['enableCommand']('goToNextRestrictedEditingException');const _0x11559a=_0x26b60c['plugins']['get']('RestrictedEditingModeEditing');_0x11559a['enableCommand']('trackChanges'),_0x11559a['enableCommand']('acceptSuggestion'),_0x11559a['enableCommand']('discardSuggestion'),_0x11559a['enableCommand']('acceptAllSuggestions'),_0x11559a['enableCommand']('discardAllSuggestions'),_0x11559a['enableCommand']('acceptSelectedSuggestions'),_0x11559a['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends _0x203e6b{['afterInit'](){const _0x7fa5f3=this['editor'];if(!_0x7fa5f3['plugins']['has']('ShiftEnter'))return;const _0x461649=_0x7fa5f3['plugins']['get']('TrackChangesEditing');_0x461649['enableCommand']('shiftEnter'),_0x461649['descriptionFactory']['registerElementLabel']('softBreak',_0x596367=>Tt(_0x7fa5f3['locale'],'ELEMENT_LINE_BREAK',_0x596367));}}function yt(_0x5a6a7a,_0x9a0014,_0x5d553e){const _0x46da88=[];for(const _0x4f9085 of _0x9a0014['getItems']())_0x4f9085['hasAttribute'](_0x5a6a7a)&&_0x46da88['push'](_0x5d553e['createRangeOn'](_0x4f9085));return _0x46da88;}class TrackChangesStandardEditingMode extends _0x203e6b{['afterInit'](){const _0x1eec13=this['editor'],_0x5379f1=_0x1eec13['plugins']['get']('TrackChangesEditing');_0x1eec13['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x5379f1['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x39138d=this['editor'],_0x5c7245=_0x39138d['model'],_0xbbe919=_0x39138d['locale'],_0x40a1da=_0x39138d['plugins']['get']('TrackChangesEditing'),_0x44259e='restrictedEditingException',_0x11f258=_0x39138d['commands']['get'](_0x44259e);_0x40a1da['enableCommand'](_0x44259e,(_0x34a927,_0x254755={})=>{const _0x5183a8=_0x5c7245['document']['selection'];if(_0x5183a8['isCollapsed'])return void _0x34a927(_0x254755);const _0x39febc=void 0x0!==_0x254755['forceValue']?_0x254755['forceValue']:!_0x11f258['value'];_0x5c7245['change'](()=>{const _0x2e23d9=Array['from'](_0x5183a8['getRanges']());for(const _0x508667 of _0x2e23d9){const _0x5b34d1=_0x39febc?[_0x508667]:yt(_0x44259e,_0x508667,_0x5c7245);for(const _0x133ad4 of _0x5b34d1)_0x40a1da['markInlineFormat'](_0x133ad4,{'commandName':_0x44259e,'commandParams':[{'forceValue':_0x39febc}]});}});}),_0x40a1da['descriptionFactory']['registerDescriptionCallback'](_0x4f294e=>{if('formatBlock'!=_0x4f294e['type']&&'formatInline'!=_0x4f294e['type'])return;const {data:_0x467ae7}=_0x4f294e;return _0x467ae7&&_0x467ae7['commandName']==_0x44259e?_0x467ae7['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0xbbe919,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0xbbe919,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x1dc71f=this['editor'],_0x4dad88=_0x1dc71f['locale'],_0x26d3f9=_0x1dc71f['plugins']['get']('TrackChangesEditing'),_0x3c7aa8='restrictedEditingExceptionBlock',_0x44cd99=this['editor']['commands']['get'](_0x3c7aa8);_0x26d3f9['enableCommand'](_0x3c7aa8,(_0x580fbb,_0x3feda6={})=>{const _0x8a375e=this['editor']['model']['document']['selection'],_0xe64c54=_0x3feda6&&void 0x0!==_0x3feda6['forceValue']?_0x3feda6['forceValue']:!_0x44cd99['value'];let _0x53c6a1=[];if(_0xe64c54){const _0x35b012=Array['from'](_0x8a375e['getSelectedBlocks']())['filter'](_0x13eec9=>function(_0x1804fb){return!!_0x1804fb['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x13eec9)||function(_0x5d4d0d,_0xe04732){const _0x335e9e=_0xe04732['createContext'](_0x5d4d0d['parent']);if(!_0xe04732['checkChild'](_0x335e9e,'restrictedEditingException'))return!0x1;if(!_0xe04732['checkChild'](_0x335e9e['push']('restrictedEditingException'),_0x5d4d0d))return!0x1;return!0x0;}(_0x13eec9,this['editor']['model']['schema']));_0x53c6a1=ft(_0x35b012,_0x1dc71f['model']);}else{const _0x4b6c4d=Array['from'](_0x8a375e['getSelectedBlocks']())['map'](_0x51d8ad=>function(_0x51712d){let _0x57e238=_0x51712d;for(;_0x57e238['parent'];){if('restrictedEditingException'==_0x57e238['parent']['name'])return _0x57e238;_0x57e238=_0x57e238['parent'];}return null;}(_0x51d8ad))['filter'](_0x34834e=>!!_0x34834e);_0x53c6a1=ft(_0x4b6c4d,_0x1dc71f['model']);}_0x1dc71f['model']['change'](()=>{for(const _0x2d2e13 of _0x53c6a1)_0x26d3f9['markBlockFormat'](_0x2d2e13,{'commandName':_0x3c7aa8,'commandParams':[{'forceValue':_0xe64c54}]});});}),_0x26d3f9['descriptionFactory']['registerDescriptionCallback'](_0x17780b=>{const {data:_0x3db418}=_0x17780b;if(_0x3db418&&_0x3db418['commandName']==_0x3c7aa8)return _0x3db418['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x4dad88,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x4dad88,'FORMAT_RESTRICTED_DISABLED')};});}}class TrackChangesStylesDropdown extends _0x203e6b{['afterInit'](){const _0x3e1961=this['editor'];if(!_0x3e1961['plugins']['has']('Style')||!_0x3e1961['plugins']['has']('DataSchema'))return;_0x3e1961['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd57e79=this['editor'],_0x29061c=_0xd57e79['locale'];_0xd57e79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x344dff=>{if('formatBlock'!=_0x344dff['type']&&'formatInline'!=_0x344dff['type'])return;const {data:_0x1e30e3}=_0x344dff;return _0x1e30e3&&'style'===_0x1e30e3['commandName']?_0x1e30e3['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x29061c,'*Set\x20format:*\x20%0',_0x1e30e3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Tt(_0x29061c,'*Remove\x20format:*\x20%0',_0x1e30e3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends _0x203e6b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x560cea){super(_0x560cea),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x490285=this['editor'],_0x266455=_0x490285['model']['document']['selection'];if(!_0x490285['plugins']['has']('TableEditing'))return;const _0x1adc0a=_0x490285['locale'],_0x2095da=_0x490285['plugins']['get']('TrackChangesEditing'),_0x6523b7=_0x490285['plugins']['get']('TableUtils');_0x2095da['descriptionFactory']['registerElementLabel']('table',_0x358caf=>Tt(_0x1adc0a,'ELEMENT_TABLE',_0x358caf)),this['_setupColumnsRowsFixing'](),_0x2095da['enableCommand']('insertTable'),_0x2095da['enableCommand']('selectTableRow'),_0x2095da['enableCommand']('selectTableColumn');for(const _0x242435 of['insertTableRowAbove','insertTableRowBelow']){const _0x14aecf=_0x490285['commands']['get'](_0x242435);_0x2095da['enableCommand'](_0x242435,_0x482fd1=>{_0x490285['model']['change'](_0x4f4f92=>{_0x482fd1();const _0x3a324c='above'===_0x14aecf['order'],_0x5e06d4=_0x6523b7['getSelectionAffectedTableCells'](_0x266455),_0x21eeac=_0x6523b7['getRowIndexes'](_0x5e06d4),_0x3e3c7e=_0x3a324c?_0x21eeac['first']-0x1:_0x21eeac['last']+0x1,_0x17629c=_0x5e06d4[0x0]['findAncestor']('table'),_0x2f7b89=_0x6523b7['createTableWalker'](_0x17629c,{'startRow':_0x3e3c7e,'endRow':_0x3e3c7e}),_0x41f8dc=Array['from'](_0x2f7b89)['map'](_0x4e01c6=>_0x4f4f92['createRangeOn'](_0x4e01c6['cell']));_0x2095da['markMultiRangeInsertion'](_0x41f8dc,'tableRow');});});}for(const _0x418d97 of['insertTableColumnLeft','insertTableColumnRight']){const _0x36801c=_0x490285['commands']['get'](_0x418d97);_0x2095da['enableCommand'](_0x418d97,_0x25a0e1=>{_0x490285['model']['change'](_0x2cb551=>{_0x25a0e1();const _0x2df334='left'===_0x36801c['order'],_0x153a43=_0x6523b7['getSelectionAffectedTableCells'](_0x266455),_0x63a4b7=_0x6523b7['getColumnIndexes'](_0x153a43),_0x566419=_0x2df334?_0x63a4b7['first']-0x1:_0x63a4b7['last']+0x1,_0x45e1ff=_0x153a43[0x0]['findAncestor']('table'),_0x48f431=_0x6523b7['createTableWalker'](_0x45e1ff,{'startRow':0x0,'column':_0x566419,'includeAllSlots':!0x1}),_0x2f96dd=Array['from'](_0x48f431)['map'](_0x3a9ddf=>_0x2cb551['createRangeOn'](_0x3a9ddf['cell']));_0x2095da['markMultiRangeInsertion'](_0x2f96dd,'tableColumn');});});}for(const _0x57f6f4 of['removeTableRow','removeTableColumn']){const _0x4e0ba8=_0x57f6f4['substr'](0xb),_0x33d929=_0x4e0ba8['toLowerCase'](),_0x117323=_0x33d929['substr'](0x0,0x3)+'span',_0x38a45f='table'+_0x4e0ba8,_0x548583='min'+_0x4e0ba8,_0x2aa9c7='max'+_0x4e0ba8;_0x2095da['enableCommand'](_0x57f6f4,()=>{_0x490285['model']['change'](_0x5112b5=>{const _0x197e00=_0x6523b7['getSelectionAffectedTableCells'](_0x266455),_0x5a9841=_0x197e00[0x0]['findAncestor']('table');let _0x308ab8;if('removeTableRow'==_0x57f6f4){const _0x5f3f1d=_0x6523b7['getRowIndexes'](_0x197e00);_0x308ab8={'startRow':_0x5f3f1d['first'],'endRow':_0x5f3f1d['last'],'includeAllSlots':!0x0};}else{const _0x1c340c=_0x6523b7['getColumnIndexes'](_0x197e00);_0x308ab8={'startColumn':_0x1c340c['first'],'endColumn':_0x1c340c['last'],'includeAllSlots':!0x0};}const _0x359d79=_0x6523b7['createTableWalker'](_0x5a9841,_0x308ab8),_0x5ad6d5=Array['from'](_0x359d79)['map'](({cell:_0x24cfec})=>_0x24cfec),_0x275cda=Nt(_0x5ad6d5['filter'](_0x504977=>_0x504977['hasAttribute'](_0x117323))),_0x5822aa=Nt(_0x5ad6d5['filter'](_0x14420f=>!_0x14420f['hasAttribute'](_0x117323)))['map'](_0x18f3c0=>_0x5112b5['createRangeOn'](_0x18f3c0)),_0x212dd5=_0x2095da['markMultiRangeDeletion'](_0x5822aa,_0x38a45f);if(_0x212dd5&&('tableRow'==_0x212dd5['subType']||'tableColumn'==_0x212dd5['subType'])){const _0xa66193=this['_getSuggestionCoords'](_0x212dd5);for(const _0x437dd6 of _0x275cda){const _0x27ab23=_0x5112b5['createRangeOn'](_0x437dd6),_0x2d8e36=_0x6523b7['getCellLocation'](_0x437dd6),_0xc353ae=_0x437dd6['getAttribute'](_0x117323)-0x1,_0x38c668=_0xa66193[_0x548583],_0x231bc6=_0xa66193[_0x2aa9c7];_0x38c668<=_0x2d8e36[_0x33d929]&&_0x2d8e36[_0x33d929]+_0xc353ae<=_0x231bc6&&_0x212dd5['addRange'](_0x27ab23);}}});});}function _0x4d220a(_0x5bb9f9){const _0x12c484=Array['from'](_0x266455['getRanges']())['map'](_0x2ff7c8=>_0x4c6b54['fromRange'](_0x2ff7c8));_0x490285['model']['change'](_0x2bb2cb=>{const _0x2d20ef=_0x2bb2cb['batch'];_0x5bb9f9=_0x5bb9f9['filter'](_0x1af8ef=>'$graveyard'!=_0x1af8ef['root']['rootName']),_0x2bb2cb['setSelection'](_0x5bb9f9),_0x490285['commands']['get']('removeTableRow')['refresh'](),_0x490285['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x490285['model']['enqueueChange'](()=>{_0x490285['model']['enqueueChange'](_0x2d20ef,_0x139d08=>{const _0x354213=_0x12c484['filter'](_0xb79799=>'$graveyard'!=_0xb79799['root']['rootName']);_0x354213['length']>0x0&&_0x139d08['setSelection'](_0x354213);for(const _0x384e98 of _0x12c484)_0x384e98['detach']();});});});}function _0x5738d2(_0x238961){_0x490285['model']['change'](_0x287224=>{const _0x40d7f0=Array['from'](_0x266455['getRanges']())['map'](_0x294eb2=>_0x4c6b54['fromRange'](_0x294eb2)),_0x4bd9b3=[];for(const _0x476087 of _0x238961)for(const _0x200360 of _0x476087['getItems']({'shallow':!0x0}))_0x4bd9b3['push'](_0x200360);for(const _0x1671a9 of _0x4bd9b3)'$graveyard'!=_0x1671a9['root']['rootName']&&(_0x287224['setSelection'](_0x287224['createPositionAt'](_0x1671a9,0x0)),_0x490285['commands']['get']('removeTableColumn')['refresh'](),_0x490285['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x26c10f=_0x40d7f0['filter'](_0x323f18=>'$graveyard'!=_0x323f18['root']['rootName']);_0x26c10f['length']>0x0&&_0x287224['setSelection'](_0x26c10f);for(const _0x2dd4e3 of _0x40d7f0)_0x2dd4e3['detach']();});}function _0x1f5a50(_0x287de4,_0x18e75e){return _0x18e75e['every'](_0x23d8cf=>_0x287de4['some'](_0x3c308e=>_0x3c308e['end']['isEqual'](_0x23d8cf['start'])||_0x23d8cf['end']['isEqual'](_0x3c308e['start'])));}function _0x1b4f2d(_0x3bc8d8,_0x2a73c8){return!_0x3bc8d8['some'](_0x2d4300=>_0x2a73c8['some'](_0x3cb889=>_0x2d4300['isIntersecting'](_0x3cb889)))&&_0x3bc8d8['some'](_0x5b0afa=>_0x2a73c8['some'](_0x382d7b=>_0x5b0afa['end']['isTouching'](_0x382d7b['start'])));}_0x2095da['descriptionFactory']['registerDescriptionCallback'](_0x4349f3=>{if('insertion'!=_0x4349f3['type']&&'deletion'!=_0x4349f3['type'])return;const _0xe886aa=_0x4349f3['getContainedElement']();if(null!=_0xe886aa&&_0xe886aa['is']('element','table')){if('insertion'==_0x4349f3['type']){const _0x19bc0a=_0x4349f3['getItems']()['filter'](_0x3a8862=>_0x3a8862['is']('$textProxy'))['map'](_0x47a7ff=>_0x47a7ff['data']);if(_0x19bc0a['length'])return{'type':'insertion','content':Tt(_0x1adc0a,'*Insert:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x19bc0a['join']('\x20')+'\x22'))};}if('deletion'==_0x4349f3['type']){const _0x2a39c6=_0x4349f3['getItems']()['filter'](_0x28559a=>_0x28559a['is']('$textProxy'))['map'](_0x497e4e=>_0x497e4e['data']);if(_0x2a39c6['length'])return{'type':'deletion','content':Tt(_0x1adc0a,'*Remove:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2a39c6['join']('\x20')+'\x22'))};}}}),_0x2095da['descriptionFactory']['registerDescriptionCallback'](_0x7d2f22=>{if('tableRow'==_0x7d2f22['subType']){const _0xee47e6=_0x7d2f22['getItems']()['filter'](_0xc0fce1=>_0xc0fce1['is']('$textProxy'))['map'](_0x3cf07e=>_0x3cf07e['data']),_0x48332a=this['_getSuggestionCoords'](_0x7d2f22),_0x1ff571=_0x48332a['maxRow']-_0x48332a['minRow']+0x1;if('insertion'==_0x7d2f22['type'])return _0xee47e6['length']?{'type':'insertion','content':Tt(_0x1adc0a,'*Insert:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1ff571,'\x22'+_0xee47e6['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x1adc0a,'*Insert:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_ROW',_0x1ff571))};if('deletion'==_0x7d2f22['type'])return _0xee47e6['length']?{'type':'deletion','content':Tt(_0x1adc0a,'*Remove:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1ff571,'\x22'+_0xee47e6['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x1adc0a,'*Remove:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_ROW',_0x1ff571))};}if('tableColumn'==_0x7d2f22['subType']){const _0x16d5e0=_0x7d2f22['getItems']()['filter'](_0x182f7e=>_0x182f7e['is']('$textProxy'))['map'](_0x1fd0dc=>_0x1fd0dc['data']),_0x2d0385=this['_getSuggestionCoords'](_0x7d2f22),_0x23eef0=_0x2d0385['maxColumn']-_0x2d0385['minColumn']+0x1;if('insertion'==_0x7d2f22['type'])return _0x16d5e0['length']?{'type':'insertion','content':Tt(_0x1adc0a,'*Insert:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x23eef0,'\x22'+_0x16d5e0['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x1adc0a,'*Insert:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_COLUMN',_0x23eef0))};if('deletion'==_0x7d2f22['type'])return _0x16d5e0['length']?{'type':'deletion','content':Tt(_0x1adc0a,'*Remove:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x23eef0,'\x22'+_0x16d5e0['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x1adc0a,'*Remove:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_COLUMN',_0x23eef0))};}}),_0x2095da['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4d220a),_0x2095da['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4d220a),_0x2095da['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5738d2),_0x2095da['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5738d2),_0x2095da['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1f5a50),_0x2095da['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1f5a50),_0x2095da['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1b4f2d),_0x2095da['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1b4f2d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x9cd7b=this['editor'],_0x30a51b=_0x9cd7b['model']['document']['selection'];return(_0x31b2ed,_0x2a8bd5)=>{_0x9cd7b['model']['change'](_0x50b085=>{const {commandName:_0x347cb1,commandParams:_0x75d120}=_0x2a8bd5;let _0x1a6440=_0x31b2ed[0x0]['end']['nodeBefore'];_0x75d120&&_0x75d120[0x0]&&!0x1===_0x75d120[0x0]['forceValue']&&(_0x1a6440=_0x31b2ed[0x0]['start']['nodeAfter']);const _0x1bb65a=_0x50b085['createRangeIn'](_0x1a6440);if('$graveyard'==_0x1bb65a['root']['rootName'])return;const _0x308d7c=Array['from'](_0x30a51b['getRanges']())['map'](_0xcd8613=>_0x4c6b54['fromRange'](_0xcd8613));_0x50b085['setSelection'](_0x1bb65a),_0x9cd7b['commands']['get'](_0x347cb1)['refresh'](),_0x75d120['push']({'forceDefaultExecution':!0x0}),_0x9cd7b['execute'](_0x347cb1,..._0x75d120);const _0x5b2a5a=_0x308d7c['filter'](_0x526dbd=>'$graveyard'!=_0x526dbd['root']['rootName']);_0x5b2a5a['length']>0x0&&_0x50b085['setSelection'](_0x5b2a5a);for(const _0x2e3fc5 of _0x308d7c)_0x2e3fc5['detach']();});};}['_getCoordsForCells'](_0x4ce327){const _0x5af1d2=this['editor']['plugins']['get']('TableUtils');let _0x4a71a5=Number['MAX_SAFE_INTEGER'],_0xf24709=Number['MIN_SAFE_INTEGER'],_0x283dae=Number['MAX_SAFE_INTEGER'],_0x3d106a=Number['MIN_SAFE_INTEGER'];for(const _0x2ca958 of _0x4ce327){if('$graveyard'==_0x2ca958['root']['rootName'])continue;const {row:_0x2f89bc,column:_0x151d6e}=_0x5af1d2['getCellLocation'](_0x2ca958),_0x1cbcc6=_0x2ca958['hasAttribute']('rowspan')?_0x2ca958['getAttribute']('rowspan')-0x1:0x0,_0x1607ec=_0x2ca958['hasAttribute']('colspan')?_0x2ca958['getAttribute']('colspan')-0x1:0x0;_0x4a71a5=_0x2f89bc<_0x4a71a5?_0x2f89bc:_0x4a71a5,_0xf24709=_0x2f89bc+_0x1cbcc6>_0xf24709?_0x2f89bc+_0x1cbcc6:_0xf24709,_0x283dae=_0x151d6e<_0x283dae?_0x151d6e:_0x283dae,_0x3d106a=_0x151d6e+_0x1607ec>_0x3d106a?_0x151d6e+_0x1607ec:_0x3d106a;}return{'minRow':_0x4a71a5,'maxRow':_0xf24709,'minColumn':_0x283dae,'maxColumn':_0x3d106a};}['_setupColumnsRowsFixing'](){const _0x146a02=this['editor'],_0x2f626f=_0x146a02['plugins']['get']('TrackChangesEditing'),_0x2ce33f=_0x146a02['plugins']['get']('TableUtils');_0x146a02['model']['document']['on']('change:data',()=>{const _0x563ad4=Array['from'](_0x146a02['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15a8bf,data:_0x568c3f}of _0x563ad4){const {group:_0x4ca452,id:_0x2bc8d9,subType:_0x2315e3}=_0x4f787f(_0x15a8bf);if('suggestion'!=_0x4ca452)continue;if(null!=_0x568c3f['oldRange'])continue;const _0x36ce57=_0x2f626f['getSuggestion'](_0x2bc8d9);this['_tablePostFixingSubtypes']['includes'](_0x2315e3)&&this['_tableSuggestions']['add'](_0x36ce57);}},{'priority':'low'});const _0x133f1d=(_0x59f3bc,_0x507f0d)=>{let _0x5d0f8d=!0x1;const _0x3dc7db=_0x507f0d['createRangeOn'](_0x59f3bc),_0x897f4f=_0x59f3bc['findAncestor']('table'),_0x101b23=_0x2ce33f['getCellLocation'](_0x59f3bc);for(const _0x3cfa1f of this['_tableSuggestions']){const _0xec5afe=_0x3cfa1f['subType'],_0x414e1e=_0xec5afe['startsWith']('tablePaste'),_0x27cdcf=_0xec5afe['substr'](_0x414e1e?0xa:0x5),_0x41ad32=_0x27cdcf['toLowerCase'](),_0x52af66=_0x41ad32['substr'](0x0,0x3)+'span',_0x128fdd='min'+_0x27cdcf,_0x193079='max'+_0x27cdcf;if(!_0x3cfa1f['isInContent'])continue;if(_0x897f4f!=_0x3cfa1f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3cfa1f['isIntersectingWithRange'](_0x3dc7db))continue;const _0x567160=_0x59f3bc['hasAttribute'](_0x52af66)?_0x59f3bc['getAttribute'](_0x52af66)-0x1:0x0,_0x3a140c=this['_getSuggestionCoords'](_0x3cfa1f),_0x388c7d=_0x3a140c[_0x128fdd],_0x3bb98a=_0x3a140c[_0x193079];_0x388c7d<=_0x101b23[_0x41ad32]&&_0x101b23[_0x41ad32]+_0x567160<=_0x3bb98a&&(_0x3cfa1f['addRange'](_0x3dc7db),_0x5d0f8d=!0x0);}return _0x5d0f8d;};_0x146a02['model']['document']['registerPostFixer'](_0x1cd869=>{let _0x1374cc=!0x1;for(const _0x3ac011 of _0x146a02['model']['document']['differ']['getChanges']())if('insert'==_0x3ac011['type']){if('tableRow'==_0x3ac011['name']){for(const _0x30ddf5 of _0x3ac011['position']['nodeAfter']['getChildren']())_0x1374cc=_0x1374cc||_0x133f1d(_0x30ddf5,_0x1cd869);}else'tableCell'==_0x3ac011['name']&&(_0x1374cc=_0x1374cc||_0x133f1d(_0x3ac011['position']['nodeAfter'],_0x1cd869));}return _0x1374cc;});}['_getSuggestionCoords'](_0x2d7697){return this['_getCoordsForCells'](_0x2d7697['getRanges']()['map'](_0x52d459=>_0x52d459['start']['nodeAfter']));}}function Nt(_0x5a2934){return Array['from'](new Set(_0x5a2934)['values']());}class TrackChangesTableMergeSplit extends _0x203e6b{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x65dfcc=this['editor'],_0x33a83d=_0x65dfcc['model']['document']['selection'],_0x2234b6=_0x65dfcc['locale'];if(!_0x65dfcc['plugins']['has']('TableEditing'))return;const _0xf1966e=_0x65dfcc['plugins']['get']('TrackChangesEditing'),_0x1efd2b=_0x65dfcc['plugins']['get']('TableUtils'),_0xc0fae5=_0x65dfcc['plugins']['get'](TrackChangesTable);_0xc0fae5['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xf1966e['enableCommand']('mergeTableCells',()=>{const _0x1314e1=_0x1efd2b['getSelectionAffectedTableCells'](_0x65dfcc['model']['document']['selection']);_0x65dfcc['model']['change'](()=>{_0xf1966e['markMultiRangeBlockFormat'](_0x1314e1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x65dfcc['commands']['get']('mergeTableCells')['on']('execute',(_0x4a86b9,_0x2a186c)=>{_0x65dfcc['commands']['get']('trackChanges')['value']&&(_0x2a186c['length']>0x0&&_0x2a186c[_0x2a186c['length']-0x1]&&_0x2a186c[_0x2a186c['length']-0x1]['forceDefaultExecution']||_0xf1966e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4a86b9['stop']());},{'priority':'highest'});for(const _0x57bedc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2542e1=_0x65dfcc['commands']['get'](_0x57bedc);_0xf1966e['enableCommand'](_0x57bedc,()=>{const _0x222c7d=_0x65dfcc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x46c871=>_0x46c871['is']('element','tableCell')),_0x4d6b2f=_0x2542e1['value'];_0x65dfcc['model']['change'](()=>{_0xf1966e['markMultiRangeBlockFormat']([_0x222c7d,_0x4d6b2f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x436dbb of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1d6d1a=_0x65dfcc['commands']['get'](_0x436dbb);_0xf1966e['enableCommand'](_0x436dbb,()=>{const _0x334c5e=_0x1efd2b['getSelectionAffectedTableCells'](_0x65dfcc['model']['document']['selection'])[0x0],_0xa98f29=_0x334c5e['findAncestor']('table'),{column:_0x88f742,row:_0x33f588}=_0x1efd2b['getCellLocation'](_0x334c5e);let _0x26ce73=[];if('horizontally'==_0x1d6d1a['direction']){const _0x28f085=_0x1efd2b['createTableWalker'](_0xa98f29,{'startRow':_0x33f588,'endRow':_0x33f588,'includeAllSlots':!0x0});_0x26ce73=Array['from'](_0x28f085)['map'](_0x88c3fe=>_0x88c3fe['cell']);}else{const _0x1b212c=_0x1efd2b['createTableWalker'](_0xa98f29,{'column':_0x88f742,'includeAllSlots':!0x0});_0x26ce73=Array['from'](_0x1b212c)['map'](_0xa377b2=>_0xa377b2['cell']);}_0x65dfcc['model']['change'](_0x1cf365=>{_0xf1966e['markBlockFormat'](_0x1cf365['createRangeOn'](_0x334c5e),{'commandName':_0x436dbb,'commandParams':[]},_0x26ce73,_0x436dbb);});});}_0xf1966e['descriptionFactory']['registerDescriptionCallback'](_0x25fc18=>{if('formatBlock'!=_0x25fc18['type']&&'formatInline'!=_0x25fc18['type'])return;const {data:_0x433b56}=_0x25fc18;return _0x433b56&&'mergeTableCells'==_0x433b56['commandName']?{'type':'format','content':Tt(_0x2234b6,'*Merge\x20cells*')}:void 0x0;}),_0xf1966e['descriptionFactory']['registerDescriptionCallback'](_0x3090dc=>{if('formatBlock'!=_0x3090dc['type']&&'formatInline'!=_0x3090dc['type'])return;const {data:_0xaa19e3}=_0x3090dc;return _0xaa19e3?'splitTableCellVertically'==_0xaa19e3['commandName']?{'type':'format','content':Tt(_0x2234b6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xaa19e3['commandName']?{'type':'format','content':Tt(_0x2234b6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x468abe=_0xc0fae5['_acceptFormatSuggestionCallbackFactory']();for(const _0x5b02fd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xf1966e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b02fd,'accept',_0x468abe);for(const _0xcbfa6c of['splitTableCellVertically','splitTableCellHorizontally'])_0xf1966e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xcbfa6c,'accept',_0x468abe);_0xf1966e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2db98a=>{_0x65dfcc['model']['change'](_0xe878c9=>{const _0x437084=Array['from'](_0x33a83d['getRanges']())['map'](_0x938f30=>_0x4c6b54['fromRange'](_0x938f30));_0xe878c9['setSelection'](_0x2db98a),_0x65dfcc['commands']['get']('mergeTableCells')['refresh'](),_0x65dfcc['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4c485f=_0x437084['filter'](_0xceccd2=>'$graveyard'!=_0xceccd2['root']['rootName']);_0x4c485f['length']>0x0&&_0xe878c9['setSelection'](_0x4c485f);for(const _0x3e4a5d of _0x437084)_0x3e4a5d['detach']();});});for(const _0x42397d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1a5232=_0x65dfcc['commands']['get'](_0x42397d);_0x1a5232['on']('set:isEnabled',(_0x1a56f6,_0xd04d33,_0x1af5a1)=>{if(_0x1af5a1){const _0x5e6579=_0x65dfcc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x48a815=>_0x48a815['is']('element','tableCell'));this['_areMergableCells'](_0x1a5232['value'],_0x5e6579)||(_0x1a56f6['return']=!0x1,_0x1a56f6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x51b810=this['editor']['commands']['get']('mergeTableCells'),_0x2f8c2a=this['editor']['plugins']['get']('TableUtils');if(!_0x51b810['isEnabled'])return!0x1;const _0x2f3e5f=_0x2f8c2a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x9a2265 of _0x2f3e5f)for(const _0x47aede of _0x2f3e5f)if(_0x9a2265!=_0x47aede&&!this['_areMergableCells'](_0x9a2265,_0x47aede))return!0x1;return!0x0;}['_areMergableCells'](_0x433000,_0x1a7d41){const _0x552cb8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3066cf=this['editor']['model']['createRangeOn'](_0x433000),_0x2fa8d9=this['editor']['model']['createRangeOn'](_0x1a7d41),_0x696f47=new Set(),_0x52f566=new Set();for(const _0x51a3eb of _0x552cb8['getSuggestions']())if(('insertion'==_0x51a3eb['type']||'deletion'==_0x51a3eb['type']||'mergeTableCells'==_0x51a3eb['subType'])&&_0x51a3eb['isInContent']){for(const _0x44b78b of _0x51a3eb['getRanges']())_0x44b78b['containsRange'](_0x3066cf,!0x0)&&_0x696f47['add'](_0x51a3eb['type']+':'+_0x51a3eb['author']['id']),_0x44b78b['containsRange'](_0x2fa8d9,!0x0)&&_0x52f566['add'](_0x51a3eb['type']+':'+_0x51a3eb['author']['id']);}if(_0x696f47['size']!=_0x52f566['size'])return!0x1;for(const _0x1ccab9 of _0x696f47)if(!_0x52f566['has'](_0x1ccab9))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends _0x203e6b{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x37d39e=this['editor'];if(!_0x37d39e['plugins']['has']('TableEditing'))return;const _0x3caa25=_0x37d39e['locale'],_0x17c1dc=_0x37d39e['plugins']['get']('TrackChangesEditing');_0x17c1dc['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x17c1dc['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x17c1dc['descriptionFactory']['registerAttributeLabel']('headingRows',Tt(_0x3caa25,'FORMAT_HEADER_ROW')),_0x17c1dc['descriptionFactory']['registerAttributeLabel']('headingColumns',Tt(_0x3caa25,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x22609b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5532d4=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x22609b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5532d4),_0x22609b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5532d4),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x4a72ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ba8fc=this['editor']['plugins']['get']('TableUtils');function _0x19b271({showActiveMarker:_0x463f24=!0x0,setDataAttribute:_0x56cd60=!0x0}={}){return(_0x392fa0,_0x5e2744,_0x1a4a4b)=>{const {type:_0x56e1a5,id:_0xf80f20}=_0x4f787f(_0x5e2744['markerName']);if(!_0x4a72ce['hasSuggestion'](_0xf80f20))return;const _0x432f89=_0x4a72ce['getSuggestion'](_0xf80f20),_0x1f5914=_0x432f89['data'];if('formatBlock'!=_0x432f89['type']||!_0x1f5914||'setTableColumnHeader'!=_0x1f5914['commandName'])return;if(_0x5e2744['item'])return void _0x392fa0['stop']();if(!_0x1a4a4b['consumable']['consume'](_0x5e2744['markerRange'],_0x392fa0['name']))return;const _0xe9b840=_0x5e2744['markerRange']['start']['nodeAfter'],_0x4d77a2=_0x5e2744['markerRange']['end']['nodeBefore'],_0x1831be=_0xe9b840['parent']['parent'],{column:_0x47f4ca}=_0x1ba8fc['getCellLocation'](_0xe9b840),{column:_0x57382f}=_0x1ba8fc['getCellLocation'](_0x4d77a2);for(let _0x81046c=_0x47f4ca;_0x81046c<=_0x57382f;_0x81046c++){const _0x2c8f57=_0x1ba8fc['createTableWalker'](_0x1831be,{'column':_0x81046c,'includeAllSlots':!0x1});for(const _0x1e4095 of _0x2c8f57){const _0x4b5c5e=_0x1e4095['cell'],_0x3aa4ee=_0x1a4a4b['mapper']['toViewElement'](_0x4b5c5e);_0x1a4a4b['writer']['addClass']('ck-suggestion-marker-'+_0x56e1a5,_0x3aa4ee),_0x56cd60&&_0x1a4a4b['writer']['setAttribute']('data-suggestion',_0xf80f20,_0x3aa4ee),_0x1a4a4b['mapper']['bindElementToMarker'](_0x3aa4ee,_0x5e2744['markerName']),_0x463f24&&(_0x4a72ce['activeMarkers']['includes'](_0x5e2744['markerName'])?_0x1a4a4b['writer']['addClass']('ck-suggestion-marker--active',_0x3aa4ee):_0x1a4a4b['writer']['removeClass']('ck-suggestion-marker--active',_0x3aa4ee));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x19b271(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x99fcbf,_0x46b759,_0x163b79)=>{_0x163b79['options']['showSuggestionHighlights']&&_0x19b271({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x99fcbf,_0x46b759,_0x163b79);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1afb2e,_0x3de285,_0x2a6df3)=>{const {type:_0x94acd0,id:_0xdb42a8}=_0x4f787f(_0x3de285['markerName']);if(!_0x4a72ce['hasSuggestion'](_0xdb42a8))return;const _0x3b4642=_0x4a72ce['getSuggestion'](_0xdb42a8),_0x117402=_0x3b4642['data'];if('formatBlock'!=_0x3b4642['type']||!_0x117402||'setTableColumnHeader'!=_0x117402['commandName'])return;const _0x251d45=_0x2a6df3['mapper']['markerNameToElements'](_0x3de285['markerName']);if(_0x251d45){for(const _0xc5eb32 of _0x251d45)_0x2a6df3['writer']['removeClass']('ck-suggestion-marker-'+_0x94acd0,_0xc5eb32),_0x2a6df3['writer']['removeClass']('ck-suggestion-marker--active',_0xc5eb32),_0x2a6df3['writer']['removeAttribute']('data-suggestion',_0xc5eb32),_0x2a6df3['mapper']['unbindElementFromMarkerName'](_0xc5eb32,_0x3de285['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x2c93db=this['editor'],_0x1f7ad7=_0x2c93db['locale'];function _0x5e4835(_0xdb955b){return{'type':'format','content':Tt(_0x1f7ad7,'*Format:*\x20%0',_0xdb955b)};}_0x2c93db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x325d32=>{if('formatBlock'!=_0x325d32['type'])return;const {data:_0x25c176}=_0x325d32;if(_0x25c176){if('setTableRowHeader'==_0x25c176['commandName']){const _0x3f2742=_0x25c176['commandParams'][0x0]['forceValue'];return _0x5e4835(Tt(_0x1f7ad7,_0x3f2742?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x25c176['commandName']){const _0x1dcb21=_0x25c176['commandParams'][0x0]['forceValue'];return _0x5e4835(Tt(_0x1f7ad7,_0x1dcb21?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableFooters extends _0x203e6b{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x4c6e64=this['editor'];if(!_0x4c6e64['plugins']['has']('TableEditing')||!_0x4c6e64['config']['get']('table.enableFooters'))return;const _0x8a3484=_0x4c6e64['locale'],_0x5c62e2=_0x4c6e64['plugins']['get']('TrackChangesEditing');_0x5c62e2['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x5c62e2['descriptionFactory']['registerAttributeLabel']('footerRows',Tt(_0x8a3484,'FORMAT_FOOTER_ROW'));}}class TrackChangesTableLayout extends _0x203e6b{['afterInit'](){const _0x4f9df4=this['editor'],_0x3ae4cb=_0x4f9df4['locale'],_0x2076ed=_0x4f9df4['plugins']['get']('TrackChangesEditing');function _0x53655d(_0x483e7a){return{'type':'format','content':''+Tt(_0x3ae4cb,'*Set\x20table\x20type:*\x20%0',_0x483e7a)};}_0x4f9df4['plugins']['has']('TableLayout')&&(_0x2076ed['enableCommand']('insertTableLayout'),_0x2076ed['enableDefaultAttributesIntegration']('tableType'),_0x2076ed['descriptionFactory']['registerElementLabel'](_0x3f166e=>_0x3f166e['is']('element','table')&&'layout'===_0x3f166e['getAttribute']('tableType'),_0x347a16=>Tt(_0x3ae4cb,'ELEMENT_LAYOUT_TABLE',_0x347a16)),_0x2076ed['descriptionFactory']['registerDescriptionCallback'](_0x41f5e3=>{const {data:_0xa8670}=_0x41f5e3;if(_0xa8670&&'tableType'==_0xa8670['key'])switch(_0xa8670['newValue']){case'layout':return _0x53655d(Tt(_0x3ae4cb,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x53655d(Tt(_0x3ae4cb,'ELEMENT_CONTENT_TABLE'));}}));}}const Mt=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ot=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Mt['map'](_0x4bf834=>[_0x4bf834,null]));class TrackChangesTableClipboard extends _0x203e6b{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x378ac7=this['editor'];if(!_0x378ac7['plugins']['has']('TableClipboard'))return;const _0x529896=_0x378ac7['plugins']['get']('TrackChangesEditing'),_0xf411dc=_0x378ac7['plugins']['get']('TableUtils'),_0x482b2e=_0x378ac7['plugins']['get'](TrackChangesTable),_0x50a1ae=_0x378ac7['plugins']['get']('TableClipboard'),_0x4f045f=_0x378ac7['plugins']['get']('TableSelection'),_0x16e9ac=_0x378ac7['plugins']['get'](ut);_0x482b2e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x378ac7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x378ac7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5b0775=null,_0x32c01c=!0x1;_0x16e9ac['on']('contentInsertion',(_0x457b6c,_0x22db33)=>{_0x32c01c='paste'===_0x22db33['method'];}),_0x378ac7['model']['on']('insertContent',(_0x48fd16,_0x1b4b14)=>{if(!_0x32c01c&&null===_0x4f045f['getSelectedTableCells']())return;const [_0x5137e0,_0x2a0677]=_0x1b4b14,_0x589176=_0x1b4b14[_0x1b4b14['length']-0x1];_0x589176&&_0x589176['forceDefaultExecution']||_0x529896['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x120c2c,_0x24c1c2,_0x55433e,_0x5875bd,_0x2e916a){if(_0x24c1c2&&!_0x24c1c2['is']('documentSelection'))return!0x1;const _0xdfcfb=_0x2e916a['getTableIfOnlyTableInContent'](_0x120c2c,_0x55433e);if(!_0xdfcfb||!Ft(_0xdfcfb,void 0x0,_0x5875bd))return!0x1;const _0x2308a5=_0x5875bd['getSelectionAffectedTableCells'](_0x55433e['document']['selection']);if(!_0x2308a5['length'])return!0x1;const _0x2fc9bb=_0x2308a5[0x0]['findAncestor']('table'),_0x49b477=_0x5875bd['getRowIndexes'](_0x2308a5),_0xab5550=_0x5875bd['getColumnIndexes'](_0x2308a5),_0x1d2d78={'startRow':_0x49b477['first'],'endRow':_0x49b477['last'],'startColumn':_0xab5550['first'],'endColumn':_0xab5550['last']};return 0x1==_0x2308a5['length']&&(_0x1d2d78['endRow']+=_0x5875bd['getRows'](_0xdfcfb)-0x1,_0x1d2d78['endColumn']+=_0x5875bd['getColumns'](_0xdfcfb)-0x1),Ft(_0x2fc9bb,_0x1d2d78,_0x5875bd);}(_0x5137e0,_0x2a0677,_0x378ac7['model'],_0xf411dc,_0x50a1ae)&&(_0x48fd16['stop'](),_0x5b0775={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x378ac7['model']['change'](()=>{_0x378ac7['model']['insertContent'](_0x1b4b14[0x0],_0x1b4b14[0x1],_0x1b4b14[0x2],{'forceDefaultExecution':!0x0});const _0x22da38=_0x1e5a7d(),{rowInsertionRanges:_0x85ba2,columnInsertionRanges:_0x335025,insertionRanges:_0x5413a8,deletionRanges:_0x3fc7fd,cells:_0x4cd61f}=_0x5b0775;_0x85ba2['length']&&_0x529896['markMultiRangeInsertion'](_0x85ba2,'tablePasteRow',{'tablePasteChainId':_0x22da38}),_0x335025['length']&&_0x529896['markMultiRangeInsertion'](_0x335025,'tablePasteColumn',{'tablePasteChainId':_0x22da38}),_0x5413a8['length']&&(_0x529896['markMultiRangeInsertion'](_0x5413a8,'tablePaste',{'tablePasteChainId':_0x22da38,'skipNestingCheck':!0x0}),_0x5413a8['forEach'](_0x48a289=>_0x48a289['detach']?.())),_0x3fc7fd['length']&&(_0x529896['markMultiRangeDeletion'](_0x3fc7fd,'tablePaste',{'tablePasteChainId':_0x22da38,'skipNestingCheck':!0x0}),_0x3fc7fd['forEach'](_0x76ed5a=>_0x76ed5a['detach']?.()));const _0x13a893=_0x529896['markMultiRangeBlockFormat'](_0x4cd61f['map'](({element:_0x2ad931})=>_0x2ad931),{'formatGroupId':_0x1e5a7d()},[],'tablePasteCell',{'tablePasteChainId':_0x22da38});if(_0x13a893){const _0x4ac13d=_0x13a893['getMarkers'](),_0x4c5619=[];for(const {element:_0x870c8e,attributes:_0x42e56e}of _0x4cd61f){if(!_0x42e56e)continue;const _0x50ecf7=_0x378ac7['model']['createRangeOn'](_0x870c8e),_0x1779f5=_0x4ac13d['find'](_0x2443b4=>_0x2443b4['getRange']()['isEqual'](_0x50ecf7));_0x1779f5&&_0x4c5619['push']([_0x1779f5['name'],_0x42e56e]);}_0x4c5619['length']&&_0x13a893['setAttribute']('markerAttributes',Object['fromEntries'](_0x4c5619));}_0x5b0775=null;}));},{'priority':_0xcf8801['high']+0xa}),_0x16e9ac['on']('contentInsertion',()=>{_0x32c01c=!0x1;},{'priority':'lowest'}),_0x378ac7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x6f0b7a,_0x495474)=>{const [_0x3c94bd,_0x14e48f,,_0x2e9ab7]=_0x495474;if(!_0x5b0775)return;_0x6f0b7a['stop']();const _0x2281b0=_0x3c94bd['cell'],_0x3d8fb2=_0x14e48f,_0x569c3c=wt(_0x2281b0),_0x15e73b=wt(_0x3d8fb2);_0x6f0b7a['return']=_0x2281b0;let _0x396a0a=null,_0x12b3c5=null;if(_0x15e73b||_0x569c3c){if(_0x569c3c&&!_0x15e73b){_0x2e9ab7['remove'](_0x2281b0['getChild'](0x0));for(const _0x236067 of Array['from'](_0x3d8fb2['getChildren']()))_0x2e9ab7['insert'](_0x236067,_0x2281b0,'end');const _0x4d6fd5=_0x5b0775['rowInsertionIndexes']['includes'](_0x3c94bd['row']),_0xbe8e6f=_0x5b0775['columnInsertionIndexes']['includes'](_0x3c94bd['column']);_0x4d6fd5||_0xbe8e6f||(_0x396a0a=_0x4c6b54['fromRange'](_0x2e9ab7['createRangeIn'](_0x2281b0)));}else _0x15e73b&&!_0x569c3c&&(_0x12b3c5=_0x2e9ab7['createRangeIn'](_0x2281b0));}else{const _0x117612=_0x2e9ab7['createElement']('tableCellSuggestion'),_0x26c282=_0x2e9ab7['createElement']('tableCellSuggestion');_0x2e9ab7['wrap'](_0x2e9ab7['createRangeIn'](_0x2281b0),_0x26c282),_0x2e9ab7['insert'](_0x117612,_0x2281b0,0x0);for(const _0x58d28b of Array['from'](_0x3d8fb2['getChildren']()))_0x2e9ab7['insert'](_0x58d28b,_0x117612,'end');_0x396a0a=_0x4c6b54['fromRange'](_0x2e9ab7['createRangeOn'](_0x117612)),_0x12b3c5=_0x4c6b54['fromRange'](_0x2e9ab7['createRangeOn'](_0x26c282));}const _0x2917da=Array['from'](_0x3d8fb2['getAttributes']())['filter'](([_0x22c707])=>Mt['includes'](_0x22c707));_0x5b0775['cells']['push']({'element':_0x2281b0,'attributes':_0x2917da['length']?Object['fromEntries'](_0x2917da):null}),_0x396a0a&&_0x5b0775['insertionRanges']['push'](_0x396a0a),_0x12b3c5&&_0x5b0775['deletionRanges']['push'](_0x12b3c5);},{'priority':'high'}),_0xf411dc['on']('insertColumns',(_0x187ac3,_0x4b18a3)=>{const [_0x1f03be,_0x1aecf2={}]=_0x4b18a3;if(!_0x5b0775)return;const _0x55edb9=_0x1aecf2['at']||0x0,_0x57456d=_0x1aecf2['columns']||0x1;_0x5b0775['columnInsertionIndexes']=new Array(_0x57456d)['fill'](_0x55edb9)['map']((_0xfb4609,_0x1bb603)=>_0xfb4609+_0x1bb603);for(const {cell:_0x34729b}of _0xf411dc['createTableWalker'](_0x1f03be,{'startColumn':_0x55edb9,'endColumn':_0x55edb9+_0x57456d-0x1}))_0x5b0775['columnInsertionRanges']['push'](_0x378ac7['model']['createRangeOn'](_0x34729b));},{'priority':'low'}),_0xf411dc['on']('insertRows',(_0x267c56,_0x125084)=>{const [_0x25cd12,_0x370b99={}]=_0x125084;if(!_0x5b0775)return;const _0xb9f1c7=_0x370b99['at']||0x0,_0xf5a3b1=_0x370b99['rows']||0x1;_0x5b0775['rowInsertionIndexes']=new Array(_0xf5a3b1)['fill'](_0xb9f1c7)['map']((_0x11e806,_0x3cb65b)=>_0x11e806+_0x3cb65b);for(const {cell:_0x3d993d}of _0xf411dc['createTableWalker'](_0x25cd12,{'startRow':_0xb9f1c7,'endRow':_0xb9f1c7+_0xf5a3b1-0x1}))_0x5b0775['rowInsertionRanges']['push'](_0x378ac7['model']['createRangeOn'](_0x3d993d));},{'priority':'low'}),_0x529896['descriptionFactory']['registerDescriptionCallback'](_0x176368=>{if(_0x176368['subType']&&_0x176368['subType']['startsWith']('tablePaste'))return _0x176368['previous']?{}:{'type':'insertion','content':Tt(_0x378ac7['locale'],'*Replace\x20table\x20cells*')};});const _0x47ef9d=()=>!0x1;for(const _0x13ea53 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x529896['_suggestionFactory']['registerCustomCallback']('insertion',_0x13ea53,'join',_0x47ef9d),_0x529896['_suggestionFactory']['registerCustomCallback']('deletion',_0x13ea53,'join',_0x47ef9d),_0x529896['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x13ea53,'join',_0x47ef9d);_0x529896['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x47ef9d),_0x529896['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3e8ab,_0x5a2781,_0x2c7652)=>{const _0x43ca0c=_0x3e8ab['map'](_0x1c6d99=>_0x1c6d99['getContainedElement']())['filter'](_0xfd42ae=>_0xfd42ae),_0x176ce6=new Map(_0x43ca0c['map'](_0x5375a2=>[_0x5375a2,null]));if(_0x5b0775){for(const {element:_0x61a71,attributes:_0x46ff86}of _0x5b0775['cells'])_0x46ff86&&_0x176ce6['set'](_0x61a71,_0x46ff86);}else{if(_0x2c7652&&_0x2c7652['markerAttributes'])for(const [_0x39483a,_0x36a91e]of Object['entries'](_0x2c7652['markerAttributes'])){const _0x40bd20=_0x378ac7['model']['markers']['get'](_0x39483a),_0x5de9d5=_0x40bd20?_0x40bd20['getRange']()['getContainedElement']():null;_0x5de9d5&&_0x176ce6['set'](_0x5de9d5,_0x36a91e);}}_0x378ac7['model']['change'](_0x382261=>{for(const [_0x5e3358,_0x1b79e8]of _0x176ce6)_0x382261['setAttributes']({...Ot,..._0x1b79e8},_0x5e3358);});});const _0x4a5224=(_0x3076ec,_0x3f23f8)=>{_0x529896['_suggestionFactory']['registerCustomCallback'](_0x3076ec,'tablePaste',_0x3f23f8,(_0x3265de,_0x4e499a,_0x3e98a9)=>{_0x378ac7['model']['change'](_0x59daac=>{const _0x40bd08=[];for(const _0x410171 of _0x3265de){const _0x2ce8af=_0x410171['start']['nodeAfter'];_0x2ce8af['is']('element','tableCellSuggestion')&&_0x40bd08['push'](_0x2ce8af);}_0x529896['_suggestionFactory']['getSuggestionCallback'](_0x3076ec,null,_0x3f23f8)(_0x3265de,_0x4e499a,_0x3e98a9);for(const _0x499e6c of _0x40bd08)'$graveyard'!=_0x499e6c['root']['rootName']&&_0x59daac['unwrap'](_0x499e6c);});});};_0x4a5224('insertion','accept'),_0x4a5224('insertion','discard'),_0x4a5224('deletion','accept'),_0x4a5224('deletion','discard'),_0x529896['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x38b723=>{const _0x133c1d=_0x38b723['map'](_0x4b5ac6=>_0x4b5ac6['getContainedElement']()),_0x3b6f7e=_0x133c1d[0x0]['findAncestor']('table'),{minRow:_0x1340c3,maxRow:_0x916ec8}=_0x482b2e['_getCoordsForCells'](_0x133c1d);_0xf411dc['removeRows'](_0x3b6f7e,{'at':_0x1340c3,'rows':_0x916ec8-_0x1340c3+0x1});}),_0x529896['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1884d0=>{const _0x5507f5=_0x1884d0['map'](_0x5d9d62=>_0x5d9d62['getContainedElement']()),_0x8a1b2a=_0x5507f5[0x0]['findAncestor']('table'),{minColumn:_0x47943e,maxColumn:_0x10dde1}=_0x482b2e['_getCoordsForCells'](_0x5507f5);_0xf411dc['removeColumns'](_0x8a1b2a,{'at':_0x47943e,'columns':_0x10dde1-_0x47943e+0x1});});const _0x10a81b=(_0x90256,_0xc4c1a1)=>{if(!_0xc4c1a1['subType']||!_0xc4c1a1['subType']['startsWith']('tablePaste'))return;const _0x137404=_0xc4c1a1['attributes']['tablePasteChainId'],_0x3447f9=_0x529896['getSuggestions']()['filter'](_0x5585c3=>_0x5585c3['isInContent']&&_0x5585c3['attributes']&&_0x5585c3['attributes']['tablePasteChainId']==_0x137404);_0x3447f9['length']&&_0xc4c1a1['getAllAdjacentSuggestions']()['length']!=_0x3447f9['length']&&_0x3447f9['reduce']((_0x4c7e3d,_0x49794b)=>(_0x4c7e3d['next']=_0x49794b,_0x49794b['previous']=_0x4c7e3d,_0x49794b));};function _0x5e5762(_0x1392ed,_0x5aec58=!0x0){const {id:_0x4cee49,authorId:_0x2234e1}=_0x4f787f(_0x1392ed['markerName']),_0x42e66c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x53cc73=_0x529896['activeMarkers']['includes'](_0x1392ed['markerName']);return _0x53cc73&&_0x42e66c['push']('ck-suggestion-marker--active'),{'classes':_0x42e66c,'attributes':{'data-suggestion':_0x4cee49,'data-author-id':_0x2234e1},'priority':_0x53cc73&&_0x5aec58?0xbc2:0xbb8};}_0x529896['on']('suggestionLoaded',_0x10a81b,{'priority':'high'}),_0x529896['on']('suggestionUnloaded',_0x10a81b,{'priority':'high'}),_0x378ac7['model']['document']['registerPostFixer'](()=>{let _0x46ebd1=!0x1;const _0x25b7f6=Array['from'](_0x378ac7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a1fc,data:_0x3fcee3}of _0x25b7f6){const {group:_0x4652b5,type:_0x591369,id:_0x50c330}=_0x4f787f(_0x5a1fc);if('suggestion'!=_0x4652b5||'deletion'!=_0x591369||_0x3fcee3['oldRange'])continue;if(!_0x529896['hasSuggestion'](_0x50c330))continue;const _0x3be984=_0x529896['getSuggestion'](_0x50c330)['getRanges'](),_0x398fe4=_0x378ac7['plugins']['get']('Users')['me'];for(const _0x1dff8a of _0x529896['getSuggestions']()){if(!_0x1dff8a['isInContent']||_0x1dff8a['author']!=_0x398fe4)continue;if('formatBlock'!=_0x1dff8a['type']||'tablePasteCell'!=_0x1dff8a['subType'])continue;if(_0x1dff8a['getRanges']()['every'](_0x87170c=>_0x3be984['some'](_0x11c1ab=>_0x11c1ab['containsRange'](_0x87170c,!0x0)))){for(const _0x47e94e of _0x1dff8a['getAllAdjacentSuggestions']())_0x47e94e['isInContent']&&(_0x47e94e['discard'](),_0x46ebd1=!0x0);}}}return _0x46ebd1;}),_0x378ac7['model']['document']['registerPostFixer'](_0x50cb68=>{const _0x2eb583=_0x378ac7['commands']['get']('redo');if(!_0x2eb583||!_0x2eb583['_createdBatches']['has'](_0x50cb68['batch']))return!0x1;let _0x3cb9a6=!0x1;const _0xe83635=_0x378ac7['plugins']['get']('Users')['me'],_0x4fd813=_0x378ac7['model']['document']['differ']['getChanges'](),_0x554bfd=Array['from'](_0x378ac7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3530a1,data:_0x245537})=>{const {group:_0x1fb9fc,subType:_0x3fb9cf,authorId:_0x96fb81}=_0x4f787f(_0x3530a1);return'suggestion'==_0x1fb9fc&&'tablePaste'==_0x3fb9cf&&_0x96fb81==_0xe83635['id']&&!_0x245537['oldRange'];});for(const _0x18fa8a of _0x4fd813){if('insert'!=_0x18fa8a['type']||'tableCellSuggestion'!=_0x18fa8a['name']||0x1!=_0x18fa8a['length'])continue;const _0x1633b2=_0x50cb68['createRange'](_0x18fa8a['position'],_0x18fa8a['position']['getShiftedBy'](0x1));if(!_0x554bfd['find'](({data:_0x3aea58})=>_0x3aea58['newRange']['isEqual'](_0x1633b2))){for(const {name:_0x9b44fc,data:_0x5bc2d6}of _0x554bfd)if(_0x1633b2['containsRange'](_0x5bc2d6['newRange'])){_0x50cb68['updateMarker'](_0x9b44fc,{'range':_0x1633b2}),_0x3cb9a6=!0x0;break;}}}return _0x3cb9a6;}),_0x378ac7['model']['document']['registerPostFixer'](_0x512751=>{let _0x3a31b5=!0x1;const _0x399af2=_0x378ac7['plugins']['get']('Users')['me'],_0x26e2cb=_0x529896['getSuggestions']()['filter'](_0x1576f8=>_0x1576f8['isInContent']&&_0x1576f8['author']==_0x399af2),_0x20d005=new Set(),_0x10b731=new Set();for(const _0x4c1c80 of _0x26e2cb)if('tablePaste'==_0x4c1c80['subType'])for(const _0x304ecd of _0x4c1c80['getMarkers']()){const _0x2e74ed=_0x304ecd['getRange']()['getContainedElement']();if(_0x2e74ed){if(_0x2e74ed['is']('element','tableCellSuggestion')&&wt(_0x2e74ed)){_0x4c1c80['removeMarker'](_0x304ecd['name']),_0x20d005['add'](_0x2e74ed),_0x3a31b5=!0x0;const _0x52675e=_0x2e74ed['nextSibling'],_0x4a1175=_0x2e74ed['previousSibling'],_0x1bfe0c=_0x52675e&&_0x52675e['is']('element','tableCellSuggestion'),_0x154c4b=_0x4a1175&&_0x4a1175['is']('element','tableCellSuggestion');_0x1bfe0c&&!_0x20d005['has'](_0x52675e)&&_0x10b731['add'](_0x52675e),_0x154c4b&&!_0x20d005['has'](_0x4a1175)&&_0x10b731['add'](_0x4a1175);}else _0x2e74ed['is']('element','paragraph')&&_0x2e74ed['isEmpty']&&(_0x4c1c80['removeMarker'](_0x304ecd['name']),_0x3a31b5=!0x0);}}else{if('tablePasteCell'==_0x4c1c80['subType']){if(!_0x4c1c80['attributes']||!_0x4c1c80['attributes']['tablePasteChainId'])continue;const _0x3bcd8d=_0x4c1c80['attributes']['markerAttributes'];if(_0x3bcd8d&&Object['keys'](_0x3bcd8d)['length'])continue;const _0x368856=_0x4c1c80['attributes']['tablePasteChainId'];let _0x3ba2c9=!0x0,_0x1022a8=!0x0;for(const _0x1466d7 of _0x26e2cb)if(_0x1466d7['subType']&&_0x1466d7['subType']['startsWith']('tablePaste')){if(!_0x1466d7['attributes']['tablePasteChainId']){_0x1022a8=!0x1;break;}if(_0x1466d7['id']!=_0x4c1c80['id']&&_0x1466d7['attributes']['tablePasteChainId']==_0x368856){_0x3ba2c9=!0x1;break;}}_0x1022a8&&_0x3ba2c9&&(_0x4c1c80['removeMarkers'](),_0x3a31b5=!0x0);}}for(const _0x5ce948 of _0x20d005)_0x512751['remove'](_0x5ce948);for(const _0x5d6331 of _0x10b731)_0x512751['unwrap'](_0x5d6331);return _0x3a31b5;}),_0x378ac7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x283aa7=>_0x5e5762(_0x283aa7),'converterPriority':'high'}),_0x378ac7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2a39dc,_0xeef916)=>_0xeef916['options']['showSuggestionHighlights']?_0x5e5762(_0x2a39dc,!0x1):null,'converterPriority':'high'});const _0x4fd9b1=_0x378ac7['editing']['view'];this['listenTo'](_0x4fd9b1['document'],'clipboardOutput',(_0x58ef6d,_0x420a8b)=>{const _0x4594d4=[];for(const _0x4cc76e of _0x4fd9b1['createRangeIn'](_0x420a8b['content'])['getItems']())_0x4cc76e['is']('element','suggestion-td')&&_0x4594d4['push'](_0x4cc76e);_0x4fd9b1['change'](_0x25f13b=>{for(const _0x5b9eba of _0x4594d4)_0x25f13b['move'](_0x25f13b['createRangeIn'](_0x5b9eba),_0x25f13b['createPositionBefore'](_0x5b9eba)),_0x25f13b['remove'](_0x5b9eba);});});}}function wt(_0x4dccab){if(_0x4dccab['isEmpty'])return!0x0;const _0x59fe3=_0x4dccab['getChild'](0x0);return _0x59fe3['is']('element','paragraph')&&_0x59fe3['isEmpty'];}function Ft(_0x44345e,_0x3e9b41={},_0x189740){for(const {isAnchor:_0x35ae61,cellHeight:_0x5ce8d0,cellWidth:_0x21b25e}of _0x189740['createTableWalker'](_0x44345e,{'includeAllSlots':!0x0,..._0x3e9b41}))if(!_0x35ae61||0x1!=_0x5ce8d0||0x1!=_0x21b25e)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends _0x203e6b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3be106=this['editor']['plugins']['get']('TrackChangesEditing');_0x3be106['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3be106['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3be106['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3be106['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3be106['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3be106['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x243361,_0x2496ef){const _0x3e46cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x874386=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x10a14a=_0x2496ef['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4514da=_0x874386['getColumnGroupElement'](_0x10a14a);let _0x495a20=_0x4514da?_0x874386['getTableColumnsWidths'](_0x4514da):null,_0x1c062a=_0x10a14a['getAttribute']('tableWidth')||null;const _0x1beb75=_0x2496ef['tableWidth']||_0x1c062a,_0x1e6649=_0x2496ef['columnWidths']||_0x495a20,_0x59ed35=this['editor']['plugins']['get']('Users')['me'];for(const _0x5555d3 of _0x3e46cf['getSuggestions']()){const _0x492870=_0x5555d3['getContainedElement']();if('resizeTable'===_0x5555d3['subType']&&_0x492870===_0x10a14a){_0x5555d3['author']!==_0x59ed35&&_0x5555d3['discard']();const _0x2cb351=_0x5555d3['data']['commandParams'];_0x1c062a=_0x2cb351[0x0]['tableWidth'],_0x495a20=_0x2cb351[0x0]['columnWidths'];break;}}_0x243361({'table':_0x10a14a,'tableWidth':_0x1beb75,'columnWidths':_0x1e6649}),_0x3e46cf['markBlockFormat'](_0x10a14a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1c062a,'columnWidths':_0x495a20}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2ac0bc){if('formatBlock'!=_0x2ac0bc['type']&&'formatInline'!=_0x2ac0bc['type'])return;const {data:_0x549c29}=_0x2ac0bc;if(_0x549c29&&'resizeTable'===_0x549c29['formatGroupId']){const _0x10b1e3='*Format:*\x20resize\x20table';return{'type':'format','content':Tt(this['editor']['locale'],_0x10b1e3)};}}}class TrackChangesTemplate extends _0x203e6b{['afterInit'](){const _0x582716=this['editor'];_0x582716['plugins']['has']('Template')&&_0x582716['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends _0x203e6b{['afterInit'](){const _0x4bfacb=this['editor'];if(!_0x4bfacb['commands']['get']('insertTableOfContents'))return;_0x4bfacb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4dc6e4=_0x4bfacb['plugins']['get']('TrackChangesEditing'),_0xb40612=_0x4bfacb['locale'];_0x4dc6e4['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1f17de=>Tt(_0xb40612,'ELEMENT_TABLE_OF_CONTENTS',_0x1f17de));}}class TrackChangesTitle extends _0x203e6b{['afterInit'](){const _0xc7568b=this['editor'];if(!_0xc7568b['plugins']['has']('Title'))return;_0xc7568b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Tt(_0xc7568b['locale'],'ELEMENT_TITLE')),_0xc7568b['model']['document']['registerPostFixer'](_0x2d0d92=>{let _0x300862=!0x1;const _0x5b9802=Array['from'](_0xc7568b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1f324b,data:_0x2c9ede}of _0x5b9802){const {group:_0x1e823f}=_0x4f787f(_0x1f324b);if('suggestion'!==_0x1e823f||!_0x2c9ede['newRange'])continue;const _0x16cf81=_0x2c9ede['newRange'],_0x232ded=_0x16cf81['end']['nodeBefore'];if(!_0x232ded||!_0x232ded['is']('element','title-content'))continue;if(!_0x16cf81['start']['isTouching'](_0x16cf81['end']))continue;const _0x543b7c=_0xc7568b['model']['schema']['getNearestSelectionRange'](_0x16cf81['end'],'forward');if(_0x543b7c&&_0x543b7c['isCollapsed']){const _0x504b7e=_0x2d0d92['createRange'](_0x16cf81['start'],_0x543b7c['start']);_0x504b7e['isEqual'](_0x16cf81)||(_0x2d0d92['updateMarker'](_0x1f324b,{'range':_0x504b7e}),_0x300862=!0x0);}_0x300862||(_0x2d0d92['removeMarker'](_0x1f324b),_0x300862=!0x0);}return _0x300862;});}}class TrackChangesUploadcare extends _0x203e6b{['afterInit'](){const _0x39996a=this['editor'],_0x2022e4=_0x39996a['plugins']['get']('TrackChangesEditing');_0x39996a['plugins']['has']('Uploadcare')&&(_0x2022e4['enableCommand']('uploadcare'),_0x39996a['plugins']['has']('UploadcareImageEdit')&&(_0x2022e4['enableCommand']('uploadcareImageEdit'),_0x2022e4['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2022e4['descriptionFactory']['registerDescriptionCallback'](_0x2c71f3=>{if('attribute'!=_0x2c71f3['type'])return;const {data:_0x249dee}=_0x2c71f3;return _0x249dee&&'uploadcareImageId'==_0x249dee['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends _0x203e6b{['afterInit'](){const _0x32622a=this['editor'],_0x222be7=_0x32622a['plugins']['get']('TrackChangesEditing');_0x32622a['plugins']['has']('UndoEditing')&&(_0x222be7['enableCommand']('undo'),_0x222be7['enableCommand']('redo'));}}class TrackChangesTableCaption extends _0x203e6b{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x58254a=this['editor'];if(!_0x58254a['plugins']['has']('TableCaptionEditing'))return;_0x58254a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends _0x203e6b{['tableProperties'];['tableCellProperties'];constructor(_0x4e61a2){super(_0x4e61a2),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1213e8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x533b66 of this['tableProperties'])_0x1213e8['enableCommand'](_0x533b66,(_0x5288f1,_0x54e56d)=>{const _0x353578=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x533b66,[_0x353578],this['tableProperties'],'tableProperties',_0x5288f1,_0x54e56d);});_0x1213e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1213e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1213e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x27b003,_0x4adad6)=>this['handleDiscardAction'](this['tableProperties'],_0x27b003,_0x4adad6)),_0x1213e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x14f9ea of this['tableCellProperties'])this['editor']['commands']['get'](_0x14f9ea)&&_0x1213e8['enableCommand'](_0x14f9ea,(_0x153816,_0x369677)=>{const _0x3e3d76=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x14f9ea,_0x3e3d76,this['tableCellProperties'],'tableCellProperties',_0x153816,_0x369677);});_0x1213e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1213e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1213e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x506628,_0x5b793a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x506628,_0x5b793a)),_0x1213e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x1213e8['descriptionFactory']['registerAttributeLabel']('tableCellType',Tt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x1213e8['descriptionFactory']['registerDescriptionCallback'](_0x51cbcf=>this['handleSuggestionDescription'](_0x51cbcf)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x2cacb2,_0x224565,_0x2bcf76,_0x979664,_0x5b5306,_0x554c2e){const _0x1da7d9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x554c2e['batch'],()=>{for(const _0x3e810b of _0x224565){if(this['_getSuggestion'](_0x3e810b,_0x979664))_0x5b5306(_0x554c2e);else{const _0x3098d7={};for(const _0x3a09e3 of _0x2bcf76){const _0x48b92d=_0x3e810b['getAttribute'](_0x3a09e3);void 0x0!==_0x48b92d&&(_0x3098d7[_0x3a09e3]=_0x48b92d);}_0x5b5306(_0x554c2e),_0x1da7d9['markBlockFormat'](_0x3e810b,{'commandParams':[_0x3098d7]},[],_0x979664);}}});}['handleDiscardAction'](_0x1adae0,_0x306f78,_0x88bd64){const _0xfa2f83=_0x306f78[0x0]['start']['nodeAfter'],_0x107454=_0x88bd64['commandParams'][0x0];this['editor']['model']['change'](_0xe5fb7b=>{for(const _0x1c10a4 of _0x1adae0)void 0x0!==_0x107454[_0x1c10a4]?_0xe5fb7b['setAttribute'](_0x1c10a4,_0x107454[_0x1c10a4],_0xfa2f83):_0xe5fb7b['removeAttribute'](_0x1c10a4,_0xfa2f83);});}['handleSuggestionDescription'](_0x585add){if(_0x585add['data'])switch(_0x585add['subType']){case'tableProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xb0cd48,_0x3b62b9){const _0x34f8b0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xc9872e of _0x34f8b0['getSuggestions']({'skipNotAttached':!0x0})){const _0xe9588c=_0xc9872e['getContainedElement']();if(_0xc9872e['subType']===_0x3b62b9&&_0xe9588c===_0xb0cd48)return _0xc9872e;}return null;}['_registerTablePropertiesAttributes'](){const _0x2813b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54a210=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3af140 of _0x54a210){const _0x427cda=_0x3af140['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2813b5['descriptionFactory']['registerAttributeLabel'](_0x3af140,Tt(this['editor']['locale'],'FORMAT_'+_0x427cda));}}}class TrackChangesLineHeight extends _0x203e6b{['afterInit'](){const _0x2c23ac=this['editor'];if(!_0x2c23ac['plugins']['has']('LineHeight'))return;const _0x326f85=_0x2c23ac['plugins']['get']('TrackChangesEditing'),_0x4bba16=_0x2c23ac['locale'];_0x326f85['enableDefaultAttributesIntegration']('lineHeight'),_0x326f85['descriptionFactory']['registerAttributeLabel']('lineHeight',Tt(_0x4bba16,'FORMAT_LINE_HEIGHT'));}}const Bt='$elementName';class TrackChangesEditing extends _0x203e6b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x300715,_0x540837,_0x3771e4,_0x226c6a,_0x319f4e,TrackChangesAIAssistant,TrackChangesAI,TrackChangesAIQuickActions,TrackChangesAlignment,TrackChangesBasicStyles,TrackChangesBlockQuote,TrackChangesBookmark,TrackChangesCKBox,TrackChangesCaseChange,TrackChangesCodeBlock,TrackChangesComments,TrackChangesDeleteCommand,TrackChangesEmoji,TrackChangesEnterCommand,TrackChangesFindAndReplace,TrackChangesFont,TrackChangesFootnotes,TrackChangesFormatPainter,TrackChangesGeneralHtmlSupport,TrackChangesHeading,TrackChangesHighlight,TrackChangesHorizontalLine,TrackChangesHtmlEmbed,TrackChangesImage,TrackChangesImageStyle,TrackChangesImageReplace,TrackChangesImportWord,TrackChangesIndent,TrackChangesInputCommand,TrackChangesLegacyList,TrackChangesLegacyListProperties,TrackChangesMultiLevelList,TrackChangesLink,TrackChangesList,TrackChangesLineHeight,TrackChangesDocumentListProperties,TrackChangesMediaEmbed,TrackChangesMediaEmbedStyle,TrackChangesMention,TrackChangesMergeFields,TrackChangesPageBreak,TrackChangesParagraph,TrackChangesReplaceSourceCommand,TrackChangesRemoveFormat,TrackChangesRestrictedEditingMode,TrackChangesShiftEnterCommand,TrackChangesStandardEditingMode,TrackChangesStylesDropdown,TrackChangesTable,TrackChangesTableMergeSplit,TrackChangesTableHeadings,TrackChangesTableFooters,TrackChangesTableLayout,TrackChangesTableCaption,TrackChangesTableClipboard,TrackChangesTableColumnResize,TrackChangesTableOfContents,TrackChangesTableProperties,TrackChangesTemplate,TrackChangesTitle,TrackChangesUploadcare,TrackChangesUndo];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19b24b){super(_0x19b24b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3f895c,_0x3be037,_0x48351e,_0x4776d3)=>{this['_model']['change'](()=>{for(const _0x498ad7 of[..._0x4776d3,..._0x48351e])this['_model']['markers']['has'](_0x498ad7)&&_0x19b24b['editing']['reconvertMarker'](_0x498ad7);});}),this['descriptionFactory']=new SuggestionDescriptionFactory(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x19b24b['plugins']['get'](_0x300715),this['_suggestionsConversion']=_0x19b24b['plugins']['get'](_0x540837),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x19b24b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x19b24b['config']['get']('trackChanges.trackFormatChanges'),_0x19b24b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x19b24b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x19b24b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3595f2=this['editor'];_0x3595f2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2d50ff,{writer:_0x59a351})=>{let _0x4ce287='suggestion:'+_0x2d50ff['getAttribute']('suggestion-type')+':'+_0x2d50ff['getAttribute']('id');return _0x2d50ff['getAttribute']('marker-count')&&(_0x4ce287+=':'+_0x2d50ff['getAttribute']('marker-count')),_0x59a351['createElement']('$marker',{'data-name':_0x4ce287});}}),_0x3595f2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3595f2['model']['document']['registerPostFixer'](_0x38c47e=>{let _0x28c87c=!0x1;const _0x50f8b7=Array['from'](_0x3595f2['model']['document']['differ']['getChangedMarkers']()),_0xf81996=new Set();for(const {name:_0x5219ec,data:_0x4c8f64}of _0x50f8b7){const {group:_0x2277a6,type:_0x397830,subType:_0x47336b,id:_0x517cd7}=_0x4f787f(_0x5219ec);if('suggestion'!==_0x2277a6)continue;const _0xeafaf7=_0x47336b?'suggestion:'+_0x397830+':'+_0x47336b+':'+_0x517cd7:'suggestion:'+_0x397830+':'+_0x517cd7,_0x3d9692=_0x3595f2['model']['markers']['getMarkersGroup'](_0xeafaf7),_0x3c98a7=_0x3595f2['model']['markers']['get'](_0x5219ec),_0x405136=this['_suggestions']['get'](_0x517cd7);if(null!=_0x4c8f64['newRange']){'formatInline'==_0x397830&&(_0x28c87c=_0x28c87c||Pt(_0x4c8f64['newRange'],_0x5219ec,_0x38c47e,_0x3595f2['model']['schema']));const _0x3beb1b='attribute'==_0x397830&&this['_suggestionsConversion']['isBlockAttribute'](Xt(_0x47336b)),_0x317a7b='attribute'==_0x397830&&this['_suggestionsConversion']['isInlineAttribute'](Xt(_0x47336b));if(_0x4c8f64['newRange']['isCollapsed']||'$graveyard'==_0x4c8f64['newRange']['root']['rootName']||'formatBlock'==_0x397830&&!Ut(_0x4c8f64['newRange'])||_0x3beb1b&&!Ut(_0x4c8f64['newRange'])||_0x317a7b&&Gt(_0x4c8f64['newRange'])||'deletion'==_0x397830&&Gt(_0x4c8f64['newRange'])||_0x3c98a7&&Ht(_0x3c98a7,_0x3d9692))_0x38c47e['removeMarker'](_0x5219ec),_0x28c87c=!0x0;else{if(!_0x405136||!_0x405136['isInContent'])continue;if(_0x4c8f64['newRange']&&_0x4c8f64['oldRange']&&_0x4c8f64['newRange']['isEqual'](_0x4c8f64['oldRange']))continue;_0xf81996['add'](_0x405136);}}}return _0xf81996['size']>0x0&&(_0x28c87c=!!this['_joinWithAdjacentSuggestions'](_0xf81996)||_0x28c87c),_0x28c87c;}),_0x3595f2['model']['document']['registerPostFixer'](_0x570217=>{let _0x489c9d=!0x1;for(const _0x564845 of _0x3595f2['model']['document']['differ']['getChanges']())if('insert'==_0x564845['type'])for(const _0x305282 of this['_suggestions']['values']()){if(_0x305282['isMultiRange']||!_0x305282['isInContent'])continue;const _0x2e40ce='formatBlock'==_0x305282['type'],_0x24625d=this['_getAttributeKey'](_0x305282),_0x96a89f=_0x24625d&&this['_suggestionsConversion']['isBlockAttribute'](_0x24625d);if(!_0x2e40ce&&!_0x96a89f)continue;const _0x5c65ed=_0x305282['getFirstRange']();if(_0x5c65ed['start']['parent']!=_0x5c65ed['end']['parent']&&!_0x5c65ed['end']['isAtEnd']){const _0x4843af=_0x3595f2['model']['createPositionAt'](_0x5c65ed['start']['nodeAfter'],'end'),_0x470789=_0x3595f2['model']['createRange'](_0x5c65ed['start'],_0x4843af);_0x570217['updateMarker'](_0x305282['getFirstMarker'](),{'range':_0x470789}),_0x489c9d=!0x0;}}return _0x489c9d;}),_0x3595f2['model']['document']['registerPostFixer'](_0x4e073e=>this['_processAttributeChanges'](_0x4e073e)),_0x3595f2['model']['document']['registerPostFixer'](_0x38325c=>!_0x38325c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x38325c)),_0x3595f2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3595f2['model']['document']['on']('change:data',(_0x2962d2,_0x3fdda8)=>{if(!_0x3fdda8['isLocal']||_0x3fdda8['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3b4aad=_0x3595f2['model']['document']['differ']['getChanges']();if(0x0==_0x3b4aad['length'])return;const _0x394228=[],_0x3a300a=_0x3b4aad['filter'](_0xe05b7f=>'attribute'==_0xe05b7f['type']),_0x534d4a=_0x3b4aad['filter'](_0x5bc7e3=>'insert'==_0x5bc7e3['type']&&'$text'!=_0x5bc7e3['name']);for(const _0x3c8052 of _0x3a300a)this['_suggestionsConversion']['isRegisteredAttribute'](_0x3c8052['attributeKey'])&&_0x394228['push']({'key':_0x3c8052['attributeKey'],'newValue':_0x3c8052['attributeNewValue'],'oldValue':_0x3c8052['attributeOldValue'],'range':$t(_0x3c8052['range'],_0x3595f2['model'])});for(const _0x3177ee of _0x534d4a){if('rename'!=_0x3177ee['action']&&'refresh'!=_0x3177ee['action'])continue;const _0x5a5687=Vt(_0x3177ee['position']['nodeAfter'],_0x3595f2['model']),_0x24cea5=_0x3177ee['before'];'rename'==_0x3177ee['action']&&_0x394228['push']({'key':Bt,'newValue':_0x3177ee['name'],'oldValue':_0x24cea5['name'],'range':_0x5a5687});for(const [_0x191d48,_0x49c5f0]of _0x24cea5['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x191d48))continue;const _0xb271d=_0x3177ee['attributes']['get'](_0x191d48);_0x49c5f0!==_0xb271d&&_0x394228['push']({'key':_0x191d48,'newValue':_0xb271d,'oldValue':_0x49c5f0,'range':_0x5a5687});}for(const [_0x19c352,_0x501cd0]of _0x3177ee['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x19c352)&&(_0x24cea5['attributes']['has'](_0x19c352)||_0x394228['push']({'key':_0x19c352,'newValue':_0x501cd0,'oldValue':null,'range':_0x5a5687}));}0x0!=_0x394228['length']&&_0x3595f2['model']['enqueueChange'](_0x3fdda8,_0x1990f2=>{const _0x5c5b43=_0x1e5a7d();for(const {range:_0x10e5d1,key:_0x2d51ed,oldValue:_0x12634e,newValue:_0xe77b88}of _0x394228)this['markAttributeChange'](_0x10e5d1,_0x2d51ed,_0x12634e,_0xe77b88,{'groupId':_0x5c5b43});this['_reduceExistingSuggestions'](_0x1990f2,_0x394228);});},{'priority':'lowest'}),_0x3595f2['model']['markers']['on']('update:suggestion',(_0x1eb798,_0xaf2cdc,_0x2fec13)=>{if(null==_0x2fec13){const {id:_0x2952cf}=_0x4f787f(_0xaf2cdc['name']),_0x10a8cc=this['_suggestions']['get'](_0x2952cf);_0x10a8cc&&_0x10a8cc['addMarkerName'](_0xaf2cdc['name']);}}),_0x3595f2['model']['document']['on']('change:data',()=>{const _0x47f387=Array['from'](_0x3595f2['model']['document']['differ']['getChangedMarkers']())['filter'](_0xb7553=>'suggestion'===_0x4f787f(_0xb7553['name'])['group']);if(0x0===_0x47f387['length'])return;_0x47f387['sort']((_0x59fbad,_0x4800ca)=>{const _0x298448=_0x59fbad['data']['oldRange'],_0x206cee=_0x4800ca['data']['oldRange'];return null===_0x298448&&null===_0x206cee?0x0:null===_0x298448&&null!==_0x206cee?-0x1:null!==_0x298448&&null===_0x206cee?0x1:_0x298448['start']['isBefore'](_0x206cee['start'])?-0x1:0x1;});const _0x181786=new Set(),_0x15b399=new Set();for(const {name:_0x31aedf,data:_0x582163}of _0x47f387){const {id:_0x1d4377}=_0x4f787f(_0x31aedf);if(null===_0x582163['oldRange']){const _0x147af1=this['_handleNewSuggestionMarker'](_0x31aedf);_0x15b399['add'](_0x147af1);}else{const _0x394e33=this['_suggestions']['get'](_0x1d4377);null!==_0x582163['newRange']||_0x394e33['isInContent']?(_0x181786['add'](_0x394e33['head']),_0x15b399['add'](_0x394e33)):this['_removeSuggestion'](_0x394e33);}}_0x15b399['size']>0x0&&this['_refreshSuggestionsChain'](_0x15b399);for(const _0x4a5093 of _0x181786)this['fire']('suggestionChanged',_0x4a5093);}),_0x3595f2['model']['on']('applyOperation',(_0x155b11,_0x5da96a)=>{const _0x3ca503=_0x5da96a[0x0];if(!this['_suggestions']['size'])return;if(!_0x3ca503['isDocumentOperation'])return;if(_0x3ca503['batch']['isUndo']||!_0x3ca503['batch']['isLocal'])return;let _0x4f3bf2,_0x39f0e6;switch(_0x3ca503['type']){case'insert':_0x4f3bf2=_0x3595f2['model']['createPositionAt'](_0x3ca503['position']),_0x39f0e6=_0x4f3bf2['getShiftedBy'](_0x3ca503['howMany']);break;case'split':_0x4f3bf2=_0x3595f2['model']['createPositionAt'](_0x3ca503['splitPosition']),_0x39f0e6=_0x3595f2['model']['createPositionAt'](_0x3ca503['moveTargetPosition']);break;case'move':_0x4f3bf2=_0x3595f2['model']['createPositionAt'](_0x3ca503['targetPosition']),_0x39f0e6=_0x4f3bf2['getShiftedBy'](_0x3ca503['howMany']);break;default:return;}const _0xf5ed5c=_0x3595f2['model']['createRange'](_0x4f3bf2,_0x39f0e6);_0x3595f2['model']['change'](()=>{for(const {suggestion:_0x14e2a5,meta:_0x48fa68}of this['_findSuggestions'](_0xf5ed5c)){if(_0x14e2a5['isMultiRange'])continue;if('formatInline'==_0x14e2a5['type'])continue;const _0x1f3141=this['_getAttributeKey'](_0x14e2a5);if(_0x1f3141&&this['_suggestionsConversion']['isBlockAttribute'](_0x1f3141)&&'split'!=_0x3ca503['type'])continue;const _0x49c33f=_0x14e2a5['data']&&_0x14e2a5['data']['multipleBlocks'];('formatBlock'!=_0x14e2a5['type']||'split'==_0x3ca503['type']&&!_0x49c33f)&&(_0x48fa68['containsRangeInObject']||'insertion'==_0x14e2a5['type']&&_0x48fa68['isOwn']||_0x14e2a5['getFirstRange']()['containsRange'](_0xf5ed5c)&&this['_breakSuggestionMarker'](_0x14e2a5,_0x4f3bf2,_0x39f0e6));}});},{'priority':'lowest'}),_0x3595f2['model']['on']('deleteContent',(_0x3947f1,_0x4f06dd)=>{const _0x4ed79e=_0x4f06dd[0x0],_0x20ce70=_0x4f06dd[0x1];if(_0x20ce70&&_0x20ce70['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4ed79e['isCollapsed'])return;const _0x494775=_0x3595f2['model']['schema'],{start:_0x3b0bd8,end:_0x568e1b}=_0x4ed79e['getFirstRange'](),_0x22f182=_0x3b0bd8['nodeAfter']&&_0x494775['isLimit'](_0x3b0bd8['nodeAfter'])?null:_0x494775['getNearestSelectionRange'](_0x3b0bd8,'forward'),_0x250879=_0x568e1b['nodeBefore']&&_0x494775['isLimit'](_0x568e1b['nodeBefore'])?null:_0x494775['getNearestSelectionRange'](_0x568e1b,'backward'),_0x1946b5=_0x3595f2['model']['createRange'](_0x22f182?_0x22f182['start']:_0x3b0bd8,_0x250879?_0x250879['end']:_0x568e1b);_0x3595f2['model']['change'](_0xa56b87=>{this['markDeletion'](_0x1946b5);const _0x1755f2=_0x3595f2['model']['schema']['getNearestSelectionRange'](_0x1946b5['start']);_0x4ed79e['is']('documentSelection')?_0xa56b87['setSelection'](_0x1755f2):_0x4ed79e['setTo'](_0x1755f2);}),_0x3947f1['stop']();},{'priority':_0xcf8801['normal']+0xa}),_0x3595f2['model']['on']('insertContent',(_0x4da67e,_0x159b21)=>{const _0x20940b=_0x159b21[_0x159b21['length']-0x1];_0x20940b&&_0x20940b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3595f2['model']['change'](()=>{let _0x566818=_0x3595f2['model']['insertContent'](_0x159b21[0x0],_0x159b21[0x1],_0x159b21[0x2],{'forceDefaultExecution':!0x0});if(!_0x566818)return;_0x4da67e['return']=_0x566818['clone']();const _0x18e4f0=_0x566818['end']['nodeBefore'],_0x47216b=_0x3595f2['model']['schema'];_0x18e4f0&&_0x47216b['isBlock'](_0x18e4f0)&&!_0x47216b['isObject'](_0x18e4f0)&&(_0x566818=_0x3595f2['model']['createRange'](_0x566818['start'],_0x3595f2['model']['createPositionAt'](_0x18e4f0,'end'))),this['markInsertion'](_0x566818);}),_0x4da67e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x258476=new AcceptSuggestionCommand(_0x3595f2,this['_suggestions']);_0x3595f2['commands']['add']('acceptSuggestion',_0x258476),this['enableCommand']('acceptSuggestion');const _0x441a70=new DiscardSuggestionCommand(_0x3595f2,this['_suggestions']);_0x3595f2['commands']['add']('discardSuggestion',_0x441a70),this['enableCommand']('discardSuggestion'),_0x3595f2['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x3595f2,_0x258476,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3595f2['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x3595f2,_0x441a70,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3595f2['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x3595f2,_0x258476,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3595f2['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x3595f2,_0x441a70,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4543d4=_0x3595f2['plugins']['get'](_0x300715);this['listenTo'](_0x4543d4,'addComment',(_0x500bf6,{threadId:_0x543ed8})=>{const _0x50f2d5=this['_suggestions']['get'](_0x543ed8);_0x50f2d5&&_0x50f2d5['commentThread']&&0x1===_0x50f2d5['commentThread']['length']&&this['_updateSuggestionData'](_0x543ed8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4543d4,'removeComment',(_0x5a29c7,{threadId:_0x111538})=>{const _0x2659c7=this['_suggestions']['get'](_0x111538);_0x2659c7&&_0x2659c7['commentThread']&&!_0x2659c7['commentThread']['length']&&this['_updateSuggestionData'](_0x111538,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2f9aa0){const _0x39aa5e=_0x2233b1([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0xfcc9f1=0x3d8d0df,_0x4f05ce=0x3df5b7f^_0xfcc9f1,_0x2c4fab=window[_0x2233b1([0x44,0x61,0x74,0x65])][_0x2233b1([0x6e,0x6f,0x77])](),_0x4f7a8b=_0x2f9aa0[_0x2233b1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2683bc=new window[(_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49af47=>{_0x4f7a8b[_0x2233b1([0x6f,0x6e,0x63,0x65])](_0x2233b1([0x72,0x65,0x61,0x64,0x79]),_0x49af47);}),_0x564f24={[_0x2233b1([0x6b,0x74,0x79])]:_0x2233b1([0x45,0x43]),[_0x2233b1([0x75,0x73,0x65])]:_0x2233b1([0x73,0x69,0x67]),[_0x2233b1([0x63,0x72,0x76])]:_0x2233b1([0x50,0x2d,0x32,0x35,0x36]),[_0x2233b1([0x78])]:_0x2233b1([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]),[_0x2233b1([0x79])]:_0x2233b1([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]),[_0x2233b1([0x61,0x6c,0x67])]:_0x2233b1([0x45,0x53,0x32,0x35,0x36])},_0x590824=_0x4f7a8b[_0x2233b1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2233b1([0x67,0x65,0x74])](_0x2233b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x63ae69(){let _0x6d725c,_0x1ed348=null,_0x519b41=null;try{if(_0x590824==_0x2233b1([0x47,0x50,0x4c]))return _0x2233b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x6d725c=_0x345889(),!_0x6d725c)return _0x2233b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x6d725c[_0x2233b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x519b41=_0x2421b3(_0x6d725c[_0x2233b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x6d725c[_0x2233b1([0x6a,0x74,0x69])])),await _0x1a2d38()?_0x5887b2()?_0x2b7d92()?_0x2233b1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d3327()?(_0x6d725c[_0x2233b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2233b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1ed348=_0x2bc52f(_0x2233b1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x380016()):_0x2233b1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2233b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2233b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2233b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b7d92(){const _0x36fcd3=[_0x2233b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2233b1([0x74,0x72,0x69,0x61,0x6c])][_0x2233b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6d725c[_0x2233b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2c4fab/0x3e8:0xe10*_0x4f05ce;return _0x6d725c[_0x2233b1([0x65,0x78,0x70])]<_0x36fcd3;}function _0x5887b2(){const _0x2e9804=_0x6d725c[_0x2233b1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2e9804)return!0x1;if(_0x2e9804[_0x2233b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2233b1([0x2a])))return!0x0;if(_0x2e9804[_0x2233b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2233b1([0x54,0x43])))return!0x0;if(_0x2e9804[_0x2233b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2233b1([0x52,0x54,0x43]))){if(_0x104c8e())return!0x0;if(_0x516f43()||_0x3e8122())return!0x0;}return!0x1;}function _0x5d3327(){const _0x4c3655=_0x6d725c[_0x2233b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c3655||0x0==_0x4c3655[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x35378f}=new URL(window[_0x2233b1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4c3655[_0x2233b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35378f))return!0x0;const _0x28d04b=_0x35378f[_0x2233b1([0x73,0x70,0x6c,0x69,0x74])](_0x2233b1([0x2e]));return _0x4c3655[_0x2233b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e759c=>_0x3e759c[_0x2233b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2233b1([0x2a])))[_0x2233b1([0x6d,0x61,0x70])](_0x2f2290=>_0x2f2290[_0x2233b1([0x73,0x70,0x6c,0x69,0x74])](_0x2233b1([0x2e])))[_0x2233b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41283c=>_0x41283c[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28d04b[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2233b1([0x6d,0x61,0x70])](_0x2e9a00=>Array(_0x28d04b[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2e9a00[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2233b1([0x66,0x69,0x6c,0x6c])](_0x2e9a00[0x0]===_0x2233b1([0x2a])?_0x2233b1([0x2a]):'')[_0x2233b1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2e9a00))[_0x2233b1([0x73,0x6f,0x6d,0x65])](_0x1cd19a=>_0x28d04b[_0x2233b1([0x65,0x76,0x65,0x72,0x79])]((_0xb8cb7e,_0xe796bd)=>_0x1cd19a[_0xe796bd]===_0xb8cb7e||_0x1cd19a[_0xe796bd]===_0x2233b1([0x2a])));}function _0x380016(){return _0x1ed348&&_0x519b41?new window[(_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18ebff,_0x16f3a3)=>{_0x1ed348[_0x2233b1([0x74,0x68,0x65,0x6e])](_0x18ebff,_0x16f3a3),_0x519b41[_0x2233b1([0x74,0x68,0x65,0x6e])](_0x16d696=>{_0x16d696!=_0x2233b1([0x56,0x61,0x6c,0x69,0x64])&&_0x18ebff(_0x16d696);},_0x16f3a3);}):_0x1ed348||_0x519b41||_0x2233b1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2421b3(_0x1c71b4,_0xd5ffdc){return new window[(_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ead57=>{if(_0x27a7e9())return _0x5ead57(_0x2233b1([0x56,0x61,0x6c,0x69,0x64]));_0x1ee218(),_0x4f7a8b[_0x2233b1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2233b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb1ae61=!0x1;const _0x126e38=_0x1e5a7d();function _0xc5f7f4(_0x4f8ff1){return!!_0x4f8ff1&&(typeof _0x4f8ff1===_0x2233b1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f8ff1===_0x2233b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f8ff1[_0x2233b1([0x74,0x68,0x65,0x6e])]===_0x2233b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f8ff1[_0x2233b1([0x63,0x61,0x74,0x63,0x68])]===_0x2233b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e70ed(_0x1987df){_0x4e2eb7(_0x1987df)[_0x2233b1([0x74,0x68,0x65,0x6e])](_0x2d9bbc=>{if(!_0x2d9bbc||_0x2d9bbc[_0x2233b1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2233b1([0x6f,0x6b]))return _0x2233b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5600d0(_0x4f8825(_0x126e38+_0xd5ffdc))!=_0x2d9bbc[_0x2233b1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2233b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2233b1([0x56,0x61,0x6c,0x69,0x64]);})[_0x2233b1([0x74,0x68,0x65,0x6e])](_0x392e87=>(_0x503c61(),_0x392e87),()=>{const _0x157ece=_0x3ceaf1();return null==_0x157ece?(_0x503c61(),_0x2233b1([0x56,0x61,0x6c,0x69,0x64])):_0x2233b1(_0x2c4fab-_0x157ece>(0x27d454df^_0xfcc9f1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2233b1([0x74,0x68,0x65,0x6e])](_0x5ead57)[_0x2233b1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5ead57(_0x2233b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a3442=0x3ee3e5f^_0xfcc9f1;function _0x503c61(){const _0x15d101=_0x2233b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5600d0(_0x4f8825(_0x1c71b4)),_0xb89efc=_0x448d8d(_0x5600d0(window[_0x2233b1([0x4d,0x61,0x74,0x68])][_0x2233b1([0x63,0x65,0x69,0x6c])](_0x2c4fab/_0x2a3442)));window[_0x2233b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2233b1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15d101,_0xb89efc);}function _0x3ceaf1(){const _0x140099=_0x2233b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5600d0(_0x4f8825(_0x1c71b4)),_0x6b2898=window[_0x2233b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2233b1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x140099);return _0x6b2898?window[_0x2233b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x448d8d(_0x6b2898),0x10)*_0x2a3442:null;}function _0x4e2eb7(_0x529763){return new window[(_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x405c22,_0x39e8f2)=>{_0x529763[_0x2233b1([0x74,0x68,0x65,0x6e])](_0x405c22,_0x39e8f2),window[_0x2233b1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39e8f2,0x3d9041f^_0xfcc9f1);});}}_0x4f7a8b[_0x2233b1([0x6f,0x6e])](_0x2233b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e363c,_0xf338b9)=>{if(_0xf338b9[0x0]!=_0x1c71b4)return _0x5ead57(_0x2233b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xf338b9[0x1]={..._0xf338b9[0x1],[_0x2233b1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x126e38};},{[_0x2233b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2233b1([0x68,0x69,0x67,0x68])}),_0x4f7a8b[_0x2233b1([0x6f,0x6e])](_0x2233b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a2ed4=>{_0xc5f7f4(_0x4a2ed4[_0x2233b1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb1ae61=!0x0,_0x3e70ed(_0x4a2ed4[_0x2233b1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2233b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2233b1([0x6c,0x6f,0x77])}),_0x2683bc[_0x2233b1([0x74,0x68,0x65,0x6e])](()=>{_0xb1ae61||_0x5ead57(_0x2233b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27a7e9(){return _0x4f7a8b[_0x2233b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2233b1([0x76,0x69,0x65,0x77])][_0x2233b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2233b1([0x61,0x75,0x74,0x6f]);}function _0x1ee218(){_0x4f7a8b[_0x2233b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2233b1([0x76,0x69,0x65,0x77])][_0x2233b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2233b1([0x61,0x75,0x74,0x6f]);}}function _0x2bc52f(_0x2d1618){const _0x595587=[new window[(_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x591b93=>setTimeout(_0x591b93,0x3d1ee13^_0xfcc9f1)),_0x2683bc[_0x2233b1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4aed4f=>{let _0x256c79=0x0;_0x4f7a8b[_0x2233b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2233b1([0x6f,0x6e])](_0x2233b1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x261ca4,_0x405437)=>{_0x405437[0x0][_0x2233b1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x256c79++,_0x256c79==(0x3d8d537^_0xfcc9f1)&&(_0x4aed4f(),_0x261ca4[_0x2233b1([0x6f,0x66,0x66])]());});}))];return window[_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2233b1([0x72,0x61,0x63,0x65])](_0x595587)[_0x2233b1([0x74,0x68,0x65,0x6e])](()=>_0x2d1618);}async function _0x34e265(){await _0x2683bc,_0x4f7a8b[_0x2233b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2233b1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2125e9,_0x4f7a8b[_0x2233b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2233b1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2125e9,_0x4f7a8b[_0x2233b1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2233b1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x104c8e(){return _0x1e51af(_0x2233b1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1769e0(_0x2233b1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2233b1([0x73,0x74,0x61,0x74,0x65])]==_0x2233b1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x516f43(){return _0x1e51af(_0x2233b1([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 _0x3e8122(){return _0x1e51af(_0x2233b1([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x24d8c0(_0x1b9251){const _0x5a80f1=_0x3c08a1();_0x4f7a8b[_0x5a80f1]=_0x2233b1([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1b9251,_0x1b9251!=_0x2233b1([0x56,0x61,0x6c,0x69,0x64])&&_0x34e265();}function _0x3c08a1(){const _0x5bb1b4=window[_0x2233b1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2233b1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2233b1([0x6e,0x6f,0x77])]())[_0x2233b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2233b1([0x2e]),'');let _0x324b81=_0x2233b1([0x52]);for(let _0x4fea70=0x0;_0x4fea70<_0x5bb1b4[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fea70+=0x2){let _0xe35390=window[_0x2233b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bb1b4[_0x2233b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fea70,_0x4fea70+0x2));_0xe35390>=_0x39aa5e[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe35390-=_0x39aa5e[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x324b81+=_0x39aa5e[_0xe35390];}return _0x324b81;}function _0x345889(){const _0x3094f0=_0x590824[_0x2233b1([0x73,0x70,0x6c,0x69,0x74])](_0x2233b1([0x2e]));if(0x3!=_0x3094f0[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xaccc43(_0x3094f0[0x1]);function _0xaccc43(_0x17a7ea){const _0x534ca6=_0x3e940e(_0x17a7ea);return _0x534ca6&&_0x3a97ca()?_0x534ca6:null;function _0x3a97ca(){const _0x304e8d=_0x534ca6[_0x2233b1([0x6a,0x74,0x69])],_0x2852c4=window[_0x2233b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x304e8d[_0x2233b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x304e8d[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5516a7={..._0x534ca6,[_0x2233b1([0x6a,0x74,0x69])]:_0x304e8d[_0x2233b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x304e8d[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5516a7[_0x2233b1([0x76,0x63])],_0x4f8825(_0x5516a7)==_0x2852c4;}}}async function _0x1a2d38(){let _0x2984c2=!0x0;try{const _0x3a4dd4=_0x590824[_0x2233b1([0x73,0x70,0x6c,0x69,0x74])](_0x2233b1([0x2e])),[_0x3b80ea,_0x40f157,_0x59ce7c]=_0x3a4dd4;return _0x2dce7c(_0x3b80ea),await _0x2ff9bb(_0x3b80ea,_0x40f157,_0x59ce7c),_0x2984c2;}catch{return!0x1;}function _0x2dce7c(_0x5c10ed){const _0x27331e=_0x3e940e(_0x5c10ed);_0x27331e&&_0x27331e[_0x2233b1([0x61,0x6c,0x67])]==_0x2233b1([0x45,0x53,0x32,0x35,0x36])||(_0x2984c2=!0x1);}async function _0x2ff9bb(_0x189bfe,_0x419ea3,_0xe99e4d){const _0x4ea6ba=window[_0x2233b1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2233b1([0x66,0x72,0x6f,0x6d])](_0x8bc3d7(_0xe99e4d),_0x204bde=>_0x204bde[_0x2233b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4ed203=new window[(_0x2233b1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2233b1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x189bfe+_0x2233b1([0x2e])+_0x419ea3),_0x2453dd=window[_0x2233b1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2233b1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2453dd)return;const _0x534a94=await _0x2453dd[_0x2233b1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2233b1([0x6a,0x77,0x6b]),_0x564f24,{[_0x2233b1([0x6e,0x61,0x6d,0x65])]:_0x2233b1([0x45,0x43,0x44,0x53,0x41]),[_0x2233b1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2233b1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2233b1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2453dd[_0x2233b1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2233b1([0x6e,0x61,0x6d,0x65])]:_0x2233b1([0x45,0x43,0x44,0x53,0x41]),[_0x2233b1([0x68,0x61,0x73,0x68])]:{[_0x2233b1([0x6e,0x61,0x6d,0x65])]:_0x2233b1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x534a94,_0x4ea6ba,_0x4ed203)||(_0x2984c2=!0x1);}}function _0x3e940e(_0x3ce01e){return _0x3ce01e[_0x2233b1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2233b1([0x65,0x79]))?JSON[_0x2233b1([0x70,0x61,0x72,0x73,0x65])](_0x8bc3d7(_0x3ce01e)):null;}function _0x8bc3d7(_0x3422a9){return window[_0x2233b1([0x61,0x74,0x6f,0x62])](_0x3422a9[_0x2233b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2233b1([0x2b]))[_0x2233b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2233b1([0x2f])));}function _0x4f8825(_0x504237){let _0x3ad7fd=0x1505;function _0x22a800(_0x22ed91){for(let _0x2a69f2=0x0;_0x2a69f2<_0x22ed91[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a69f2++){const _0x767243=_0x22ed91[_0x2233b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2a69f2);_0x3ad7fd=(_0x3ad7fd<<0x5)+_0x3ad7fd+_0x767243,_0x3ad7fd&=_0x3ad7fd;}}function _0x504420(_0x2b31a4){Array[_0x2233b1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b31a4)?_0x2b31a4[_0x2233b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x504420):_0x2b31a4&&typeof _0x2b31a4==_0x2233b1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2233b1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b31a4)[_0x2233b1([0x73,0x6f,0x72,0x74])]()[_0x2233b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x402a92,_0x40d8a5])=>{_0x22a800(_0x402a92),_0x504420(_0x40d8a5);}):_0x22a800(window[_0x2233b1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b31a4));}return _0x504420(_0x504237),_0x3ad7fd>>>0x0;}function _0x5600d0(_0x5a77b0){return _0x5a77b0[_0x2233b1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2233b1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2233b1([0x30]));}function _0x448d8d(_0x1d14cd){return _0x1d14cd[_0x2233b1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2233b1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2233b1([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e51af(_0x23ce8a){return _0x4f7a8b[_0x2233b1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2233b1([0x68,0x61,0x73])](_0x23ce8a);}function _0x1769e0(_0x17df4c){return _0x4f7a8b[_0x2233b1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2233b1([0x67,0x65,0x74])](_0x17df4c);}function _0x2125e9(){}function _0x2233b1(_0x521564){return _0x521564['map'](_0x2008eb=>String['fromCharCode'](_0x2008eb))['join']('');}_0x24d8c0(await _0x63ae69());}(this);}set['adapter'](_0x545dc8){if(this['_adapter'])throw new _0x2618c5('track-changes-adapter-already-set',this);this['_adapter']=_0x545dc8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x17b6f3=!0x1,toJSON:_0x5300a0=!0x1}={}){const _0x4eea77=[];for(const _0x5b2909 of this['_suggestions']['values']())_0x17b6f3&&!_0x5b2909['isInContent']||_0x4eea77['push'](_0x5b2909);return _0x5300a0?_0x4eea77['map'](_0x7171b5=>_0x7171b5['toJSON']()):_0x4eea77;}['getSuggestion'](_0x96b25c){const _0x3e1c71=this['_suggestions']['get'](_0x96b25c);if(!_0x3e1c71)throw new _0x2618c5('track-changes-suggestion-not-found',this);return _0x3e1c71;}['hasSuggestion'](_0x35bb65){return this['_suggestions']['has'](_0x35bb65);}['addSuggestionData'](_0x24bdb7){const {authorId:_0x5e8726,id:_0x4cab32,originalSuggestionId:_0x4865ce,attributes:_0x3f26f8}=_0x24bdb7,[_0x58fa1c,_0x55d7b8]=_0x24bdb7['type']['split'](':'),_0x5924a0=this['_suggestions']['get'](_0x4cab32)||this['_createSuggestion'](_0x58fa1c,_0x55d7b8,_0x4cab32,_0x5e8726,_0x3f26f8,_0x4865ce);if(this['_addThreadToSuggestion'](_0x5924a0),this['_checkSuggestionCorrectness'](_0x5924a0,_0x58fa1c,_0x55d7b8||null,_0x5e8726),_0x5924a0['createdAt']=_0x24bdb7['createdAt'],_0x5924a0['_isDataLoaded']=!0x0,_0x3f26f8&&_0x3f26f8['@external']){const _0x981a06=_0x3f26f8['@external'],_0x267b12=this['_getExternalAuthor'](_0x981a06['authorName']);_0x5924a0['authoredAt']=_0x981a06['createdAt'],_0x5924a0['author']=_0x267b12,_0x5924a0['isExternal']=!0x0;}else _0x5924a0['authoredAt']=_0x24bdb7['createdAt'];switch(_0x24bdb7['data']&&(_0x5924a0['data']=_0x24bdb7['data']),_0x24bdb7['attributes']&&(_0x5924a0['attributes']=_0x24bdb7['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5924a0['_saved']=!0x0),this['_suggestionState']['get'](_0x5924a0)){case'notReady':this['_suggestionState']['set'](_0x5924a0,'dataReady');break;case'markerReady':_0x5924a0['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5924a0])),this['_refreshSuggestionsChain'](new Set([_0x5924a0])),this['_suggestionState']['set'](_0x5924a0,'ready'),this['fire']('suggestionLoaded',_0x5924a0)):this['_suggestionState']['set'](_0x5924a0,'removed');}return _0x5924a0;}['acceptSuggestion'](_0x40f843){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x18ab16 of _0x40f843['getAllAdjacentSuggestions']())_0x18ab16['accept']();});});}['discardSuggestion'](_0x1c8321){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x86c079 of _0x1c8321['getAllAdjacentSuggestions']())_0x86c079['discard']();});});}['enableCommand'](_0xd27674,_0x29523c){const _0x82af66=this['editor']['commands']['get'](_0xd27674);if(!_0x82af66)throw new _0x2618c5('track-changes-command-not-found',this,{'commandName':_0xd27674});if(this['_enabledCommands']['has'](_0x82af66))throw new _0x2618c5('track-changes-enable-command-twice',this,{'commandName':_0xd27674});this['_enabledCommands']['add'](_0x82af66),_0x29523c&&_0x82af66['on']('execute',(_0x24072a,_0x2aba68)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2aba68['length']>0x0&&_0x2aba68[_0x2aba68['length']-0x1]&&_0x2aba68[_0x2aba68['length']-0x1]['forceDefaultExecution']?_0x2aba68['pop']():(_0x24072a['return']=_0x29523c((..._0x14c94a)=>_0x82af66['execute'](..._0x14c94a,{'forceDefaultExecution':!0x0}),..._0x2aba68),_0x24072a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x227098){let _0x2a0cf2,_0x10a9c5;const _0x7b7bbd=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2a0cf2=_0x227098();}catch(_0x5d52df){_0x10a9c5=_0x5d52df;}return _0x7b7bbd||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x10a9c5&&_0x2618c5['rethrowUnexpectedError'](_0x10a9c5,this),_0x2a0cf2;}['markInsertion'](_0x46e8aa,_0x398410=null,_0x35910b={}){if(_0x46e8aa['isCollapsed'])return null;const _0x18a108=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x35910b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x144aac,meta:_0x1d4697}of this['_findSuggestions'](_0x46e8aa,'insertion'))if(_0x1d4697['isOwn']){if(!_0x1d4697['isNextTo']){if(_0x1d4697['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x144aac,_0x35910b))continue;return _0x144aac;}if(zt(_0x144aac,_0x35910b))return _0x144aac;this['_breakSuggestionMarker'](_0x144aac,_0x46e8aa['start'],_0x46e8aa['end']);break;}if(_0x398410==_0x144aac['subType']&&zt(_0x144aac,_0x35910b)){const _0x269f53=_0x144aac['getFirstRange']();return _0x269f53['start']['isEqual'](_0x46e8aa['end'])?this['_setSuggestionRange'](_0x144aac,this['_model']['createRange'](_0x46e8aa['start'],_0x269f53['end'])):this['_setSuggestionRange'](_0x144aac,this['_model']['createRange'](_0x269f53['start'],_0x46e8aa['end'])),_0x144aac;}}const _0x255409=_0x1e5a7d(),_0x549f6c=_0x18a108['id'],_0x5203f3=_0x398410?'insertion:'+_0x398410:'insertion',_0x587d05=this['_setSuggestionData']({'id':_0x255409,'type':_0x5203f3,'createdAt':new Date(),'authorId':_0x549f6c,'attributes':_0x35910b});return this['_addSuggestionMarker'](_0x5203f3,_0x255409,_0x549f6c,_0x46e8aa),_0x587d05;}['markMultiRangeInsertion'](_0x2593d7,_0x587bc7='multi',_0x4eee45={}){const _0x546a6f=this['editor']['plugins']['get']('Users')['me'],_0x3ba927=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x587bc7,'join');this['_trackingSessionId']&&(_0x4eee45['trackingSessionId']=this['_trackingSessionId']);for(const _0x118873 of this['getSuggestions']())if(_0x118873['author']['id']==_0x546a6f['id']&&'insertion'==_0x118873['type']&&_0x118873['subType']==_0x587bc7&&zt(_0x118873,_0x4eee45)&&(_0x3ba927(_0x118873['getRanges'](),_0x2593d7)||_0x3ba927(_0x2593d7,_0x118873['getRanges']()))){for(const _0x417711 of _0x2593d7)_0x118873['addRange'](_0x417711);return _0x118873;}for(const {suggestion:_0x208fe7,meta:_0xb1e04a}of this['_findSuggestions'](_0x2593d7,'insertion')){if(!_0xb1e04a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xb1e04a['containsRangeInObject'])continue;if(!zt(_0x208fe7,_0x4eee45))continue;let _0x241d66=!0x0;for(const _0x238219 of _0x208fe7['getRanges']())for(const _0xa0c42 of _0x2593d7)if(!_0x238219['containsRange'](_0xa0c42)){_0x241d66=!0x1;break;}if(_0x241d66)return _0x208fe7;}const _0x2528e4=_0x1e5a7d(),_0x5e9626=_0x546a6f['id'],_0x33935a='insertion:'+_0x587bc7,_0x1a0558=this['_setSuggestionData']({'id':_0x2528e4,'type':_0x33935a,'createdAt':new Date(),'authorId':_0x5e9626,'attributes':_0x4eee45});for(const _0x1cd8dc of _0x2593d7)this['_addSuggestionMarker'](_0x33935a,_0x2528e4,_0x5e9626,_0x1cd8dc,Suggestion['getMultiRangeId']());return _0x1a0558;}['markInlineFormat'](_0x42d137,_0x3cd967,_0xe93851=null,_0x106862={}){if(_0xe93851=_0xe93851||xt(_0x3cd967),_0x42d137['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x106862['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x58ff52=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe93851,'accept');return this['forceDefaultExecution'](()=>_0x58ff52([_0x42d137],_0x3cd967,_0x106862)),null;}const _0x3f8aa6=this['editor']['plugins']['get']('Users')['me'],_0xbc9ae1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x59ae9b,meta:_0x41564d}of this['_findSuggestions'](_0x42d137,'insertion'))_0x41564d['isOwn']&&!_0x41564d['isInsideObject']&&_0xbc9ae1['push'](..._0x59ae9b['getRanges']());}const _0x6fa705=function(_0x198c7f,_0x13f41a){const _0x224204=[];for(const _0x5b3e16 of _0x13f41a){const _0x43dec6=_0x198c7f['getIntersection'](_0x5b3e16);_0x43dec6&&_0x224204['push'](_0x43dec6);}return _0x224204;}(_0x42d137,_0xbc9ae1),_0x2d6aec=function(_0x5a1f74,_0x479159){const _0x5eda5e=[_0x5a1f74];for(const _0x953eea of _0x479159){let _0x423049=0x0;for(;_0x423049<_0x5eda5e['length'];){const _0x464365=_0x5eda5e[_0x423049]['getDifference'](_0x953eea);_0x5eda5e['splice'](_0x423049,0x1,..._0x464365),_0x423049+=_0x464365['length'];}}return _0x5eda5e;}(_0x42d137,_0xbc9ae1);_0x6fa705['length']&&this['_model']['change'](()=>{for(const _0x1dc95d of _0x6fa705){const _0x1c5ae3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe93851,'accept');this['forceDefaultExecution'](()=>_0x1c5ae3([_0x1dc95d],_0x3cd967,_0x106862));}});for(const _0x2c7e75 of _0x2d6aec){let _0x3b5321=null,_0x5e133b=_0x2c7e75['start'],_0x89b30f=_0x2c7e75['end'];for(const {suggestion:_0x29fbd5,meta:_0x4f2fbf}of this['_findSuggestions'](_0x2c7e75,'formatInline')){if(!_0x4f2fbf['isOwn'])continue;if(_0x29fbd5['subType']!=_0xe93851)continue;if(!zt(_0x29fbd5,_0x106862))continue;const _0x29f0b=_0x29fbd5['getFirstRange']();if(_0x29f0b['containsRange'](_0x2c7e75,!0x0))return null;_0x5e133b=_0x5e133b['isBefore'](_0x29f0b['start'])?_0x5e133b:_0x29f0b['start'],_0x89b30f=_0x89b30f['isAfter'](_0x29f0b['end'])?_0x89b30f:_0x29f0b['end'],_0x3b5321?_0x29f0b['start']['isBefore'](_0x3b5321['getFirstRange']()['start'])?(_0x3b5321['removeMarkers'](),_0x3b5321=_0x29fbd5):_0x29fbd5['removeMarkers']():_0x3b5321=_0x29fbd5;}const _0x1bbcd2=this['_model']['createRange'](_0x5e133b,_0x89b30f);if(_0x3b5321)this['_setSuggestionRange'](_0x3b5321,_0x1bbcd2);else{const _0x51876c=_0x1e5a7d(),_0x504f1a=_0x3f8aa6['id'];this['_setSuggestionData']({'id':_0x51876c,'type':'formatInline:'+_0xe93851,'data':_0x3cd967,'createdAt':new Date(),'authorId':_0x504f1a,'attributes':_0x106862}),this['_addSuggestionMarker']('formatInline:'+_0xe93851,_0x51876c,_0x504f1a,_0x1bbcd2);}}return null;}['markBlockFormat'](_0x43053e,_0x837b53,_0x37c55c=[],_0x4f9d15=null,_0x417927={}){_0x837b53['formatGroupId']||(_0x837b53['formatGroupId']=_0x837b53['commandName']),_0x837b53['multipleBlocks']=_0x43053e['is']('range'),_0x4f9d15=_0x4f9d15||xt(_0x837b53);const _0x57ddd5=_0x37c55c['map'](_0x3bb118=>Vt(_0x3bb118,this['_model'])),_0x68a509=_0x43053e['is']('range')?_0x43053e:Vt(_0x43053e,this['_model']);if(this['_trackingSessionId']&&(_0x417927['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x431da7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f9d15,'accept');return this['forceDefaultExecution'](()=>_0x431da7([_0x68a509],_0x837b53,_0x417927)),null;}_0x57ddd5['push'](_0x68a509);let _0x5a206d=!0x0;for(const _0x436a18 of _0x57ddd5)if(!this['_rangeIsInLocalUserInsertion'](_0x436a18)){_0x5a206d=!0x1;break;}if(_0x5a206d&&'always'!==this['_trackFormatChanges']){const _0x49eb0a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f9d15,'accept');return this['forceDefaultExecution'](()=>_0x49eb0a([_0x68a509],_0x837b53,_0x417927)),null;}let _0x157a97=null,_0xfbf0a3=_0x68a509['start'],_0xd3c722=_0x68a509['end'];for(const {suggestion:_0x5a541f,meta:_0x328677}of this['_findSuggestions'](_0x68a509,'formatBlock')){if(!_0x328677['isOwn'])continue;if(_0x328677['isNextTo']||_0x328677['containsRangeInObject']||_0x328677['isInsideObject'])continue;if(_0x5a541f['data']['formatGroupId']!=_0x837b53['formatGroupId'])continue;if(!zt(_0x5a541f,_0x417927))continue;const _0x4bd7ae=_0x5a541f['getFirstRange']();if(_0x5a541f['subType']==_0x4f9d15){if(_0x4bd7ae['containsRange'](_0x68a509,!0x0))return null;_0xfbf0a3=_0xfbf0a3['isBefore'](_0x4bd7ae['start'])?_0xfbf0a3:_0x4bd7ae['start'],_0xd3c722=_0xd3c722['isAfter'](_0x4bd7ae['end'])?_0xd3c722:_0x4bd7ae['end'],_0x157a97?_0x4bd7ae['start']['isBefore'](_0x157a97['getFirstRange']()['start'])?(_0x157a97['removeMarkers'](),_0x157a97=_0x5a541f):_0x5a541f['removeMarkers']():_0x157a97=_0x5a541f;}else{const _0x4505c6=_0x68a509['getIntersection'](_0x4bd7ae);this['_cutOutSuggestionMarker'](_0x5a541f,_0x4505c6);}}const _0x10ba12=this['editor']['plugins']['get']('Users')['me'],_0x56a4de=_0x1e5a7d(),_0x5bac29=_0x10ba12['id'];if(_0x157a97)return this['_setSuggestionRange'](_0x157a97,this['_model']['createRange'](_0xfbf0a3,_0xd3c722)),_0x157a97;{const _0x4b3fc7=this['_setSuggestionData']({'id':_0x56a4de,'type':'formatBlock:'+_0x4f9d15,'data':_0x837b53,'createdAt':new Date(),'authorId':_0x5bac29,'attributes':_0x417927});return this['_addSuggestionMarker']('formatBlock:'+_0x4f9d15,_0x56a4de,_0x5bac29,this['_model']['createRange'](_0xfbf0a3,_0xd3c722)),_0x4b3fc7;}}['markMultiRangeBlockFormat'](_0xc00cd2,_0x2f0a49,_0x1f6d89=[],_0x1c398=null,_0x27f26c={}){_0x2f0a49['formatGroupId']||(_0x2f0a49['formatGroupId']=_0x2f0a49['commandName']);const _0x5dbbeb=_0xc00cd2[0x0];_0x2f0a49['multipleBlocks']=_0x5dbbeb['is']('range'),_0x1c398=_0x1c398||xt(_0x2f0a49);const _0x478e9c=_0x1f6d89['map'](_0x4389c9=>Vt(_0x4389c9,this['_model'])),_0x60dbbe=_0x5dbbeb['is']('range')?_0xc00cd2:_0xc00cd2['map'](_0x47c73f=>Vt(_0x47c73f,this['_model']));if(this['_trackingSessionId']&&(_0x27f26c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x50224a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c398,'accept');return this['forceDefaultExecution'](()=>_0x50224a(_0x60dbbe,_0x2f0a49,_0x27f26c)),null;}_0x478e9c['push'](..._0x60dbbe);let _0x5c1f28=!0x0;for(const _0x2863ee of _0x478e9c)if(!this['_rangeIsInLocalUserInsertion'](_0x2863ee)){_0x5c1f28=!0x1;break;}if(_0x5c1f28&&'always'!==this['_trackFormatChanges']){const _0xd6e344=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c398,'accept');return this['forceDefaultExecution'](()=>_0xd6e344(_0x60dbbe,_0x2f0a49,_0x27f26c)),null;}const _0x5ece22=this['editor']['plugins']['get']('Users')['me'];for(const _0x9948cf of this['getSuggestions']()){const _0x2519fd=_0x9948cf['data'];if(_0x9948cf['author']['id']!=_0x5ece22['id'])continue;if('formatBlock'!=_0x9948cf['type']||_0x2519fd['formatGroupId']!=_0x2f0a49['formatGroupId'])continue;if(!zt(_0x9948cf,_0x27f26c))continue;const _0x9fcdfb=_0x9948cf['subType']==_0x1c398;for(let _0x547480=0x0;_0x547480<_0x60dbbe['length'];_0x547480++){const _0x181299=_0x60dbbe[_0x547480];for(const _0x15e5c0 of _0x9948cf['getMarkers']()){const _0x16fb47=_0x15e5c0['getRange']();if(_0x181299['isEqual'](_0x16fb47)){_0x9fcdfb?(_0x60dbbe['splice'](_0x547480,0x1),_0x547480--):_0x9948cf['removeMarker'](_0x15e5c0['name']);break;}}}}if(0x0==_0x60dbbe['length'])return null;const _0x5db80e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c398,'join');for(const _0x36df1e of this['getSuggestions']()){const _0x7e20a6=_0x36df1e['data'];if(_0x36df1e['author']['id']==_0x5ece22['id']&&('formatBlock'==_0x36df1e['type']&&_0x7e20a6['formatGroupId']==_0x2f0a49['formatGroupId']&&_0x36df1e['subType']==_0x1c398&&zt(_0x36df1e,_0x27f26c)&&(_0x5db80e(_0x36df1e['getRanges'](),_0x60dbbe)||_0x5db80e(_0x60dbbe,_0x36df1e['getRanges']())))){for(const _0x6fd097 of _0x60dbbe)_0x36df1e['addRange'](_0x6fd097);return _0x36df1e;}}const _0x4966f2=_0x1e5a7d(),_0x511718=_0x5ece22['id'],_0x49d195='formatBlock:'+_0x1c398,_0x1d1bc0=this['_setSuggestionData']({'id':_0x4966f2,'type':_0x49d195,'data':_0x2f0a49,'createdAt':new Date(),'authorId':_0x511718,'attributes':_0x27f26c});for(const _0x63ccf of _0x60dbbe)this['_addSuggestionMarker'](_0x49d195,_0x4966f2,_0x511718,_0x63ccf,Suggestion['getMultiRangeId']());return _0x1d1bc0;}['markDeletion'](_0x696cd,_0x47ded5=null,_0x1e5046={}){if(_0x696cd['isCollapsed'])return null;const _0x158289=this['editor']['plugins']['get']('Users')['me'],_0x2b0275=new _0x4c6b54(_0x696cd['start'],_0x696cd['end']);this['_trackingSessionId']&&(_0x1e5046['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xc6b919,meta:_0x141775}of this['_findSuggestions'](_0x2b0275,'insertion'))if(_0x141775['isOwn']&&!_0x141775['isNextTo']){if(_0xc6b919['isMultiRange']){const _0x3d4c20=_0xc6b919['getRanges']()['filter'](_0x4283d5=>'$graveyard'!=_0x4283d5['root']['rootName']);_0x3d4c20['every'](_0x4e1291=>_0x2b0275['containsRange'](_0x4e1291,!0x0))&&_0xc6b919['discard']();if(_0x3d4c20['some'](_0x2116f9=>_0x2116f9['containsRange'](_0x2b0275,!0x0))){const _0x5f7792=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47ded5,'accept');return this['forceDefaultExecution'](()=>_0x5f7792([_0x2b0275],null,_0x1e5046)),null;}}else{const _0x22ac17=_0x2b0275['getIntersection'](_0xc6b919['getFirstRange']());null!==_0x22ac17&&_0xc6b919['_onDiscard']([_0x22ac17],null,_0x1e5046);}}if(_0x2b0275['detach'](),_0x2b0275['isCollapsed']||'$graveyard'==_0x2b0275['root']['rootName'])return null;let _0x118809=null,_0x17b438=_0x2b0275['start'],_0x5b123a=_0x2b0275['end'];const _0x4e4182=this['_findSuggestions'](_0x2b0275,'deletion');for(const {suggestion:_0x2c07c7,meta:_0x49f5ec}of _0x4e4182){const _0x1e57e4=this['_model']['createRange'](_0x17b438,_0x5b123a);if(_0x49f5ec['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49f5ec['containsRangeInObject']&&!_0x49f5ec['isInsideObject'])){if(_0x2c07c7['isMultiRange']){if(!zt(_0x2c07c7,_0x1e5046))continue;let _0x773df0=!0x0;for(const _0x1ca694 of _0x2c07c7['getRanges']()){if(_0x1ca694['containsRange'](_0x1e57e4,!0x0))return _0x2c07c7;_0x1e57e4['containsRange'](_0x1ca694)||(_0x773df0=!0x1);}_0x773df0&&_0x2c07c7['discard']();}else{const _0x577f95=_0x2c07c7['getFirstRange']();if(_0x577f95['containsRange'](_0x1e57e4,!0x0))return _0x2c07c7;if(!zt(_0x2c07c7,_0x1e5046)){_0x1e57e4['containsRange'](_0x577f95)?_0x2c07c7['removeMarkers']():_0x577f95['containsPosition'](_0x17b438)?_0x17b438=_0x577f95['end']:_0x577f95['containsPosition'](_0x5b123a)&&(_0x5b123a=_0x577f95['start']);continue;}_0x17b438=_0x17b438['isBefore'](_0x577f95['start'])?_0x17b438:_0x577f95['start'],_0x5b123a=_0x5b123a['isAfter'](_0x577f95['end'])?_0x5b123a:_0x577f95['end'],_0x1e5046=Object['assign']({},_0x2c07c7['attributes']),_0x118809?_0x577f95['start']['isBefore'](_0x118809['getFirstRange']()['start'])?(_0x118809['removeMarkers'](),_0x118809=_0x2c07c7):_0x2c07c7['removeMarkers']():_0x118809=_0x2c07c7;}}}if(_0x118809)return this['_setSuggestionRange'](_0x118809,this['_model']['createRange'](_0x17b438,_0x5b123a)),_0x118809;{const _0x905bc=_0x1e5a7d(),_0x2f3782=this['_model']['createRange'](_0x17b438,_0x5b123a),_0x1ed209=_0x158289['id'],_0xdda4a2=_0x47ded5?'deletion:'+_0x47ded5:'deletion',_0x35f439=this['_setSuggestionData']({'id':_0x905bc,'type':_0xdda4a2,'createdAt':new Date(),'authorId':_0x1ed209,'attributes':_0x1e5046});return this['_addSuggestionMarker'](_0xdda4a2,_0x905bc,_0x1ed209,_0x2f3782),_0x35f439;}}['markMultiRangeDeletion'](_0x541a07,_0x64ef2a='multi',_0x23d3a4={}){const _0x385f75=this['editor']['plugins']['get']('Users')['me'],_0xdefd64=_0x541a07['map'](_0x5a26ee=>new _0x4c6b54(_0x5a26ee['start'],_0x5a26ee['end'])),_0x50c9fe=new Set();this['_trackingSessionId']&&(_0x23d3a4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xb5b688,meta:_0x10b044}of this['_findSuggestions'](_0xdefd64,'insertion'))_0x10b044['isOwn']&&!_0x10b044['isNextTo']&&_0x50c9fe['add'](_0xb5b688);for(const _0x351f7a of _0x50c9fe)if(_0x351f7a['isMultiRange']){const _0x51bc22=_0x351f7a['getRanges']();(!_0x351f7a['attributes']||!_0x351f7a['attributes']['skipNestingCheck'])&&(_0x51bc22['every'](_0x58fcd8=>_0xdefd64['some'](_0x3f1fcf=>_0x3f1fcf['containsRange'](_0x58fcd8,!0x0)))&&_0x351f7a['discard']());if(_0xdefd64['every'](_0x33d01c=>_0x51bc22['some'](_0x1e2206=>_0x1e2206['containsRange'](_0x33d01c,!0x0)))){const _0x381c7c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x64ef2a,'accept');return this['forceDefaultExecution'](()=>_0x381c7c(_0x541a07,null,_0x23d3a4)),null;}}else{const _0xc894eb=_0x351f7a['getFirstRange']();_0xdefd64['some'](_0x52d78c=>_0x52d78c['containsRange'](_0xc894eb,!0x0))&&_0x351f7a['discard']();if(_0xdefd64['every'](_0xbc56b2=>_0xc894eb['containsRange'](_0xbc56b2,!0x0))){const _0x1eee7c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x64ef2a,'accept');return this['forceDefaultExecution'](()=>_0x1eee7c(_0xdefd64,null,_0x23d3a4)),null;}}const _0x59a2a9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x64ef2a,'join');let _0x3e275e=null;for(const _0x483fb5 of this['getSuggestions']())if(_0x483fb5['author']['id']==_0x385f75['id']&&_0x483fb5['isInContent']&&'deletion'==_0x483fb5['type']&&_0x483fb5['subType']==_0x64ef2a&&zt(_0x483fb5,_0x23d3a4)&&(_0x59a2a9(_0x483fb5['getRanges'](),_0xdefd64)||_0x59a2a9(_0xdefd64,_0x483fb5['getRanges']()))){if(_0x3e275e){if(_0x483fb5['commentThread']&&_0x483fb5['commentThread']['length'])continue;for(const _0x10e646 of _0x483fb5['getRanges']())_0x3e275e['isIntersectingWithRange'](_0x10e646)||_0x3e275e['addRange'](_0x10e646);_0x483fb5['removeMarkers']();}else{_0x3e275e=_0x483fb5;for(const _0x2723ba of _0xdefd64)_0x483fb5['isIntersectingWithRange'](_0x2723ba)||_0x483fb5['addRange'](_0x2723ba);}}if(_0x3e275e)return _0x3e275e;_0x50c9fe['clear']();for(const {suggestion:_0x4e083d,meta:_0x9487d5}of this['_findSuggestions'](_0xdefd64,'deletion'))_0x9487d5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x9487d5['containsRangeInObject']&&!_0x9487d5['isInsideObject'])&&zt(_0x4e083d,_0x23d3a4)&&_0x50c9fe['add'](_0x4e083d);for(const _0x28cd4d of _0x50c9fe){const _0x14e59f=_0x28cd4d['getRanges']();if(!_0x23d3a4||!_0x23d3a4['skipNestingCheck']){if(_0xdefd64['every'](_0x2b5d0d=>_0x14e59f['some'](_0x4ff578=>_0x4ff578['containsRange'](_0x2b5d0d,!0x0))))return _0x28cd4d;}(!_0x28cd4d['attributes']||!_0x28cd4d['attributes']['skipNestingCheck'])&&(_0x14e59f['every'](_0x4e0724=>_0xdefd64['some'](_0x1acb08=>_0x1acb08['containsRange'](_0x4e0724,!0x0)))&&_0x28cd4d['discard']());}const _0x32150f=_0x1e5a7d(),_0x8e3e5c=_0x385f75['id'],_0x5b39c0='deletion:'+_0x64ef2a,_0x534b3b=this['_setSuggestionData']({'id':_0x32150f,'type':_0x5b39c0,'createdAt':new Date(),'authorId':_0x8e3e5c,'attributes':_0x23d3a4});for(const _0x2be20c of _0xdefd64)_0x2be20c['detach'](),_0x2be20c['isCollapsed']||'$graveyard'==_0x2be20c['root']['rootName']||this['_addSuggestionMarker'](_0x5b39c0,_0x32150f,_0x8e3e5c,_0x2be20c,Suggestion['getMultiRangeId']());return _0x534b3b;}['markAttributeChange'](_0x1e4223,_0x1df317,_0x379ba1,_0x2148b9,_0x26c167){if(_0x1e4223['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x145061=this['editor']['plugins']['get']('Users')['me']['id'],_0x5803f3=Array['from'](this['_suggestions']['values']())['filter'](_0x23527e=>'attribute'==_0x23527e['type']&&_0x23527e['data']['key']==_0x1df317&&_0x23527e['isIntersectingWithRange'](_0x1e4223));if(this['_trackingSessionId']&&(_0x26c167['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3061de=this['_findSuggestions'](_0x1e4223,'insertion')['filter'](({meta:_0x3ac433})=>_0x3ac433['isOwn']&&!_0x3ac433['isInsideObject']&&!_0x3ac433['isNextTo'])['map'](({suggestion:_0x32065f})=>_0x32065f);_0x5803f3['unshift'](..._0x3061de);}const _0x5e98f5=new Map([[_0x1e4223,_0x379ba1]]);for(const _0x566b01 of _0x5803f3){const _0x3fa3f1='attribute'==_0x566b01['type']?_0x566b01['data']['oldValue']:void 0x0,_0x281c3a=_0x566b01['getFirstRange'](),_0x3dcb2c=Array['from'](_0x5e98f5['keys']())['find'](_0x4067a8=>_0x4067a8['isIntersecting'](_0x281c3a));if(!_0x3dcb2c)continue;const _0x58201f=_0x3dcb2c['getDifference'](_0x281c3a);this['_suggestionsConversion']['isBlockAttribute'](_0x1df317)&&'insertion'==_0x566b01['type']&&0x0!=_0x58201f['length']||(_0x5e98f5['delete'](_0x3dcb2c),_0x58201f['forEach'](_0x5ea526=>{_0x5e98f5['set'](_0x5ea526,_0x379ba1);}),'insertion'!=_0x566b01['type']&&_0x3fa3f1!=_0x2148b9&&_0x5e98f5['set'](_0x3dcb2c['getIntersection'](_0x281c3a),_0x3fa3f1));}const _0x1628ff=[];for(const [_0x4e7b48,_0xd6fb25]of _0x5e98f5){const _0x122357=_0x1e5a7d(),_0x4fb747={'key':_0x1df317,'oldValue':_0xd6fb25,'newValue':_0x2148b9};_0x1df317['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':_0x1df317});const _0x3041f1=('attribute:'+(_0x1df317+'|'+xt({'newValue':_0x2148b9})))['substring'](0x0,0x3c),_0x30df3b=this['_setSuggestionData']({'id':_0x122357,'type':_0x3041f1,'data':_0x4fb747,'createdAt':new Date(),'authorId':_0x145061,'attributes':_0x26c167});_0x1628ff['push'](_0x30df3b),this['_addSuggestionMarker'](_0x3041f1,_0x122357,_0x145061,_0x4e7b48);}return _0x1628ff;}['enableDefaultAttributesIntegration'](_0x53db7c){this['enableCommand'](_0x53db7c,(_0x12e46e,..._0x271b47)=>{this['recordAttributeChanges'](()=>{_0x12e46e(..._0x271b47);});});}['startTrackingSession'](_0x5c9d76){return this['_trackingSessionId']=void 0x0!==_0x5c9d76?_0x5c9d76:_0x1e5a7d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x21462b){return'attribute'==_0x21462b['type']?Xt(_0x21462b['subType']):null;}['_applyOperationsAsSuggestions'](_0x3b5f00){if(0x0==_0x3b5f00['length'])return;const _0x2837ff=this['editor'],_0x30a368=_0x2837ff['plugins']['get'](_0x319f4e),_0x191a90=[];_0x2837ff['model']['change'](_0x531010=>{for(let _0x1eeb6a=0x0;_0x1eeb6a<_0x3b5f00['length'];_0x1eeb6a++){const _0x27e0b6=_0x3b5f00[_0x1eeb6a];if(_0x27e0b6['baseVersion']=_0x2837ff['model']['document']['version'],_0x27e0b6['isDocumentOperation']=!0x0,_0x30a368['isMarkedRemoveOperation'](_0x27e0b6)){const _0x1ca3c4=_0x494da1(_0x27e0b6['newRange'],_0x2837ff['model']);_0x191a90['unshift'](_0x4c6b54['fromRange'](_0x1ca3c4));}else switch(_0x27e0b6['type']){case'rename':{const _0x366a41=_0x27e0b6['oldName'],_0x12c8d9=_0x27e0b6['newName'];if(_0x366a41==_0x12c8d9)break;_0x531010['batch']['addOperation'](_0x27e0b6),_0x2837ff['model']['applyOperation'](_0x27e0b6);const _0x53c5a3='$elementName',_0x2efc9c=_0x27e0b6['position'],_0x1412be=_0x2837ff['model']['createRange'](_0x2efc9c,_0x2837ff['model']['createPositionAt'](_0x2efc9c['nodeAfter'],'end'));this['markAttributeChange'](_0x1412be,_0x53c5a3,_0x366a41,_0x12c8d9,{'groupId':_0x1e5a7d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xca76d8=_0x27e0b6['oldValue'],_0x373e2b=_0x27e0b6['newValue'];if(_0xca76d8==_0x373e2b)break;_0x531010['batch']['addOperation'](_0x27e0b6),_0x2837ff['model']['applyOperation'](_0x27e0b6);const _0x594712=_0x27e0b6['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x594712))break;const _0x21fa58=_0x494da1(_0x27e0b6['range'],_0x2837ff['model']);this['markAttributeChange'](_0x21fa58,_0x594712,_0xca76d8,_0x373e2b,{'groupId':_0x1e5a7d()});break;}case'insert':{_0x531010['batch']['addOperation'](_0x27e0b6),_0x2837ff['model']['applyOperation'](_0x27e0b6);if(_0x3b5f00[_0x1eeb6a+0x1]&&'move'==_0x3b5f00[_0x1eeb6a+0x1]['type'])break;const _0x455618=_0x27e0b6['position'],_0x20baf3=_0x27e0b6['howMany'],_0x1817f8=_0x494da1(_0x2837ff['model']['createRange'](_0x455618,_0x455618['getShiftedBy'](_0x20baf3)),_0x2837ff['model']);this['markInsertion'](_0x1817f8);break;}case'split':{_0x531010['batch']['addOperation'](_0x27e0b6),_0x2837ff['model']['applyOperation'](_0x27e0b6);const _0x2152e7=_0x27e0b6['splitPosition'],_0x53955f=_0x27e0b6['moveTargetPosition'];this['markInsertion'](_0x2837ff['model']['createRange'](_0x2152e7,_0x53955f));break;}case'move':case'remove':_0x531010['batch']['addOperation'](_0x27e0b6),_0x2837ff['model']['applyOperation'](_0x27e0b6);}}for(const _0x5cdcd0 of _0x191a90)_0x5cdcd0['detach'](),this['markDeletion'](_0x5cdcd0);});}['_setSuggestionRange'](_0x5a6e25,_0x190fdb){const _0x14a141=_0x5a6e25['getFirstMarker']();this['_model']['change'](_0x36c9b0=>{_0x36c9b0['updateMarker'](_0x14a141,{'range':_0x190fdb});});}['_addThreadToSuggestion'](_0x5f090c){const _0x2195d3=_0x5f090c['id'],_0x506865=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2195d3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x506865,'threadId':_0x2195d3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xc41793=this['_commentsRepository']['getCommentThread'](_0x2195d3);_0xc41793['unbind']('isRemovable'),_0xc41793['isRemovable']=!0x1,_0x5f090c['commentThread']=_0xc41793;}['_checkSuggestionCorrectness'](_0x1a5d5d,_0x1518d0,_0x212996,_0x276424){if(_0x1a5d5d['type']!=_0x1518d0||_0x1a5d5d['subType']!=_0x212996||_0x1a5d5d['creator']['id']!=_0x276424)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2618c5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2bb5bb,_0xa9b25c){const _0x5a60cd=_0x2bb5bb['getFirstRange']();if(_0xa9b25c['isEqual'](_0x5a60cd))_0x2bb5bb['removeMarkers']();else{if(_0x5a60cd['containsRange'](_0xa9b25c)){const _0x4105f8=this['_model']['createPositionAt'](_0xa9b25c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2bb5bb,this['_model']['createRange'](_0x5a60cd['start'],_0x4105f8));const _0x4197bb=_0x1e5a7d(),_0x46b10a=_0x2bb5bb['creator']['id'],_0x13aa13=_0x2bb5bb['type']+':'+_0x2bb5bb['subType'];this['_setSuggestionData']({'id':_0x4197bb,'type':_0x13aa13,'createdAt':new Date(),'authorId':_0x46b10a,'data':_0x2bb5bb['data'],'attributes':_0x2bb5bb['attributes']});const _0x734459=this['_model']['createPositionAt'](_0xa9b25c['end']['parent'],'after'),_0x1d266c=this['_model']['createRange'](_0x734459,_0x5a60cd['end']);this['_addSuggestionMarker'](_0x13aa13,_0x4197bb,_0x46b10a,_0x1d266c);}else{if(_0x5a60cd['containsPosition'](_0xa9b25c['start'])){const _0x53f101=this['_model']['createPositionAt'](_0xa9b25c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2bb5bb,this['_model']['createRange'](_0x5a60cd['start'],_0x53f101));}else{const _0x4fc1fe=this['_model']['createPositionAt'](_0xa9b25c['end']['parent'],'after');this['_setSuggestionRange'](_0x2bb5bb,this['_model']['createRange'](_0x4fc1fe,_0x5a60cd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x597ded){for(const {suggestion:_0x1792ca,meta:_0x46dfe0}of this['_findSuggestions'](_0x597ded,'insertion')){if(!_0x46dfe0['isOwn'])continue;const _0xc1b9df=_0x1792ca['getRanges']();for(const _0x23165b of _0xc1b9df)if(!_0x597ded['getDifference'](_0x23165b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x51e351){return this['editor']['plugins']['get']('Users')['getUser'](_0x51e351);}['_getExternalAuthor'](_0xee9493){const _0x12ba74=this['editor']['plugins']['get']('Users'),_0x27e1c1=_0x1fc623('external:'+_0xee9493),_0x237c81=_0x12ba74['getUser'](_0x27e1c1);return _0x237c81||_0x12ba74['addUser']({'id':_0x27e1c1,'name':_0xee9493});}['_createSuggestion'](_0x480f37,_0x17b961,_0x5b0ce4,_0x4c0c50,_0xfa39e8,_0x47e205){const _0x15b6e4=this['_getAuthorFromId'](_0x4c0c50);if(!_0x15b6e4)throw new _0x2618c5('track-changes-user-not-found',this,{'authorId':_0x4c0c50,'suggestionId':_0x5b0ce4});const _0x31cbe4=this['_suggestionFactory']['buildSuggestion'](_0x480f37,_0x17b961,_0x5b0ce4,_0x15b6e4,_0xfa39e8,_0x5c1426=>{this['_updateSuggestionData'](_0x5b0ce4,{'attributes':_0x5c1426});const _0x4b31d6=this['getSuggestion'](_0x5b0ce4);this['_joinWithAdjacentSuggestions'](new Set([_0x4b31d6])),this['_refreshSuggestionsChain'](new Set([_0x4b31d6]));},_0x47e205);return this['listenTo'](_0x31cbe4,'accept',()=>{this['_updateSuggestionData'](_0x5b0ce4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x31cbe4,'discard',()=>{this['_updateSuggestionData'](_0x5b0ce4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5b0ce4,_0x31cbe4),this['_suggestionState']['set'](_0x31cbe4,'notReady'),_0x31cbe4;}['_breakSuggestionMarker'](_0x5e2ee0,_0x1a4ef1,_0x517506){const _0x5d10a3=_0x5e2ee0['getFirstRange'](),_0x4a2fd5=_0x5d10a3['start'],_0x575d87=_0x5d10a3['end'];this['_setSuggestionRange'](_0x5e2ee0,this['_model']['createRange'](_0x4a2fd5,_0x1a4ef1));const _0x1b2535=_0x1e5a7d(),_0x12bd1d=_0x5e2ee0['creator']['id'],_0x577f18=_0x5e2ee0['type']+(_0x5e2ee0['subType']?':'+_0x5e2ee0['subType']:'');this['_setSuggestionData']({'id':_0x1b2535,'type':_0x577f18,'createdAt':new Date(),'authorId':_0x12bd1d,'originalSuggestionId':_0x5e2ee0['_originalSuggestionId']||_0x5e2ee0['id'],'attributes':_0x5e2ee0['attributes'],'data':_0x5e2ee0['data']});const _0x18ea48=this['_getAttributeKey'](_0x5e2ee0);('formatBlock'==_0x5e2ee0['type']||_0x18ea48&&this['_suggestionsConversion']['isBlockAttribute'](_0x18ea48))&&(_0x517506=this['_model']['createPositionBefore'](_0x517506['parent'])),this['_addSuggestionMarker'](_0x577f18,_0x1b2535,_0x12bd1d,this['_model']['createRange'](_0x517506,_0x575d87));}['_findSuggestions'](_0x116df1,_0x4dcae8=null){const _0x33b4c4=[],_0x42ba32=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x116df1)||(_0x116df1=[_0x116df1]);for(const _0x11b579 of this['getSuggestions']()){if(!_0x11b579['isInContent'])continue;if(_0x4dcae8&&_0x11b579['type']!=_0x4dcae8)continue;let _0x1a810b=!0x1;for(const _0x78f004 of _0x11b579['getRanges']()){for(const _0x363793 of _0x116df1){const _0x4378ca=_0x363793['start']['isEqual'](_0x78f004['end'])||_0x363793['end']['isEqual'](_0x78f004['start']);if(_0x4378ca||_0x363793['getIntersection'](_0x78f004)){const _0x2b3761=_0x363793['containsRange'](_0x78f004)&&Dt(this['_model']['schema'],_0x78f004['start'],_0x363793),_0x3e6b28=_0x78f004['containsRange'](_0x363793)&&Dt(this['_model']['schema'],_0x363793['start'],_0x78f004);_0x33b4c4['push']({'suggestion':_0x11b579,'meta':{'isOwn':_0x42ba32==_0x11b579['author'],'isNextTo':_0x4378ca,'isInsideObject':_0x2b3761,'containsRangeInObject':_0x3e6b28}}),_0x1a810b=!0x0;break;}}if(_0x1a810b)break;}}return _0x33b4c4;}['_addSuggestionMarker'](_0x161e3d,_0x4df4a8,_0x564c31,_0x4782fb,_0x10a1d8){this['_model']['change'](_0x56aff4=>{let _0x5344d8='suggestion:'+_0x161e3d+':'+_0x4df4a8+':'+_0x564c31;_0x10a1d8&&(_0x5344d8=_0x5344d8+':'+_0x10a1d8),_0x56aff4['addMarker'](_0x5344d8,{'range':_0x4782fb,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4a8a7d){const _0x4ce5ee=_0x4a8a7d['previous'],_0x5b163c=_0x4a8a7d['next'];_0x4a8a7d['previous']=null,_0x4a8a7d['next']=null,null!=_0x4ce5ee&&_0x4ce5ee['next']==_0x4a8a7d&&(_0x4ce5ee['next']=_0x5b163c),null!=_0x5b163c&&_0x5b163c['previous']==_0x4a8a7d&&(_0x5b163c['previous']=_0x4ce5ee),'ready'==this['_suggestionState']['get'](_0x4a8a7d)&&(this['_suggestionState']['set'](_0x4a8a7d,'removed'),this['fire']('suggestionUnloaded',_0x4a8a7d,_0x4ce5ee,_0x5b163c));}['_setSuggestionData'](_0x54fb54){const _0x23fb94=_0x54fb54['id'],_0x423aaf=this['addSuggestionData'](_0x54fb54);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2fb34d=this['editor']['plugins']['get']('PendingActions'),_0x3ff00e=_0x423aaf['hasComments'],_0x842ee3=_0x423aaf['subType']?_0x423aaf['type']+':'+_0x423aaf['subType']:_0x423aaf['type'],_0x43ceb3=this['editor']['locale'],_0x5562e0=_0x2fb34d['add'](Tt(_0x43ceb3,'PENDING_ACTION_SUGGESTION')),_0x547c38={'id':_0x23fb94,'type':_0x842ee3,'hasComments':_0x3ff00e,'data':_0x54fb54['data']||null,'originalSuggestionId':_0x54fb54['originalSuggestionId']||null,'attributes':_0x423aaf['attributes']};this['_adapter']['addSuggestion'](_0x547c38)['then'](_0xb6f1ad=>{_0x423aaf['_saved']=!0x0,_0x2fb34d['remove'](_0x5562e0),_0xb6f1ad&&_0xb6f1ad['createdAt']&&(this['_suggestions']['get'](_0x23fb94)['createdAt']=_0xb6f1ad['createdAt']);})['catch'](_0x490286=>{throw _0x39db6c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x423aaf['discard']();}),_0x423aaf['stopListening'](),this['_suggestions']['delete'](_0x423aaf['id']),this['_suggestionState']['delete'](_0x423aaf),_0x490286;});}return _0x423aaf;}['_updateSuggestionData'](_0x4f3fc1,_0x1387a2){const _0x1509bf=this['editor']['plugins']['get']('PendingActions'),_0x2d74bc=this['getSuggestion'](_0x4f3fc1);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2d74bc['_saved']){const _0x5dfa9b=_0x1509bf['add'](Tt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4f3fc1,_0x1387a2)['then'](()=>{_0x1509bf['remove'](_0x5dfa9b);});}else _0x2d74bc['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4f3fc1,_0x1387a2);});}}['_getSuggestionData'](_0x1aa8ee){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2618c5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1aa8ee);}['_handleNewSuggestionMarker'](_0x3acd3c){const {id:_0x6703e2,type:_0xa9264e,subType:_0x43cae3,authorId:_0x12ea0b}=_0x4f787f(_0x3acd3c),_0x281d61=this['_suggestions']['get'](_0x6703e2)||this['_createSuggestion'](_0xa9264e,_0x43cae3,_0x6703e2,_0x12ea0b,{});switch(this['_checkSuggestionCorrectness'](_0x281d61,_0xa9264e,_0x43cae3,_0x12ea0b),this['_suggestionState']['get'](_0x281d61)){case'notReady':this['_getSuggestionData'](_0x6703e2)['then'](_0x314f40=>{let _0x7d6a7e=Promise['resolve']();_0x314f40['hasComments']&&(_0x7d6a7e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x6703e2})),_0x7d6a7e['then'](()=>{this['addSuggestionData'](_0x314f40)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x281d61,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x6703e2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x281d61,'ready'),this['fire']('suggestionLoaded',_0x281d61);break;case'ready':this['fire']('suggestionChanged',_0x281d61);}return _0x281d61['addMarkerName'](_0x3acd3c),_0x281d61;}['_refreshSuggestionsChain'](_0x3bc1a8){const _0x368cc8=Array['from'](_0x3bc1a8),_0x5726e0=_0x368cc8['filter'](_0x2432cb=>'attribute'==_0x2432cb['type']);this['_refreshAttributeSuggestionsChain'](_0x5726e0);const _0x256a8c=_0x368cc8['filter'](_0x235c7c=>!_0x235c7c['isMultiRange']&&'attribute'!=_0x235c7c['type']),_0x2e3066=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e18a2=>!_0x1e18a2['isMultiRange']&&'attribute'!=_0x1e18a2['type']),_0x30d9bd=_0x2e3066['filter'](_0x4a57fc=>!_0x3bc1a8['has'](_0x4a57fc)),_0x525b46=new Map(_0x2e3066['map'](_0x1493c1=>[_0x1493c1,this['_suggestionFactory']['getSuggestionCallback'](_0x1493c1['type'],_0x1493c1['subType'],'chain')])),_0x5ba4c7=new Map(_0x2e3066['map'](_0x39b2b9=>[_0x39b2b9,_0x39b2b9['getFirstRange']()])),_0x4375f2=new Set(),_0x2ef8ae=new Set();for(let _0xb9aa2c=0x0;_0xb9aa2c<_0x256a8c['length'];_0xb9aa2c++)_0x55f671(_0x256a8c[_0xb9aa2c],_0x256a8c,_0xb9aa2c+0x1);for(let _0x156012=0x0;_0x156012<_0x256a8c['length'];_0x156012++)_0x55f671(_0x256a8c[_0x156012],_0x30d9bd,0x0);const _0xb5a061=new Set();for(let _0x4a489f=0x0;_0x4a489f<_0x256a8c['length'];_0x4a489f++){const _0x365ff4=_0x256a8c[_0x4a489f];!_0x2ef8ae['has'](_0x365ff4)&&_0x365ff4['previous']&&(_0xb5a061['add'](_0x365ff4['previous']),_0x365ff4['previous']['next']===_0x365ff4&&(_0x365ff4['previous']['next']=null),_0x365ff4['previous']=null),!_0x4375f2['has'](_0x365ff4)&&_0x365ff4['next']&&(_0xb5a061['add'](_0x365ff4['next']),_0x365ff4['next']['previous']===_0x365ff4&&(_0x365ff4['next']['previous']=null),_0x365ff4['next']=null);}function _0x55f671(_0x4eae2f,_0x250434,_0x5b2c6c){for(let _0x46c020=_0x5b2c6c;_0x46c020<_0x250434['length'];_0x46c020++){const _0xf0bcae=_0x27be2a(_0x4eae2f,_0x250434[_0x46c020]);_0xf0bcae&&(_0xf0bcae[0x0]['next']=_0xf0bcae[0x1],_0xf0bcae[0x1]['previous']=_0xf0bcae[0x0],_0x4375f2['add'](_0xf0bcae[0x0]),_0x2ef8ae['add'](_0xf0bcae[0x1]));}}function _0x27be2a(_0x1daf07,_0x32710f){if(_0x1daf07['author']['id']!==_0x32710f['author']['id'])return null;const _0x2078c4=_0x525b46['get'](_0x1daf07)(_0x1daf07,_0x32710f,_0x5ba4c7['get'](_0x1daf07),_0x5ba4c7['get'](_0x32710f));if(!_0x2078c4)return null;return _0x525b46['get'](_0x32710f)(_0x1daf07,_0x32710f,_0x5ba4c7['get'](_0x1daf07),_0x5ba4c7['get'](_0x32710f))?_0x2078c4[0x1]['commentThread']&&_0x2078c4[0x1]['commentThread']['length']?null:_0x2078c4:null;}_0xb5a061['size']&&this['_refreshSuggestionsChain'](_0xb5a061);}['_refreshAttributeSuggestionsChain'](_0x3c739a){if(0x0==_0x3c739a['length'])return;const _0x3b1c17=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x79af9d=>'attribute'==_0x79af9d['type']&&_0x79af9d['_isDataLoaded']),_0x194e41=[],_0x171672=new Map();for(const _0x433a94 of _0x3b1c17){const _0x511e59=_0x1fc623(_0x433a94['attributes']);_0x171672['has'](_0x511e59)||(_0x171672['set'](_0x511e59,_0x194e41['length']),_0x194e41['push']([]));const _0x393ee8=_0x171672['get'](_0x511e59);_0x194e41[_0x393ee8]['push'](_0x433a94);}!(function(){_0x194e41['sort']((_0x343127,_0x2b2646)=>{const _0x45481a=_0x343127[0x0]['createdAt'],_0x3508a8=_0x2b2646[0x0]['createdAt'];return _0x45481a==_0x3508a8?_0x343127[0x0]['attributes']['groupId']<_0x2b2646[0x0]['attributes']['groupId']?-0x1:0x1:_0x45481a<_0x3508a8?-0x1:0x1;});for(const _0x2c0a26 of _0x194e41)_0x2c0a26['sort']((_0x4179a2,_0x2bddc5)=>_0x4179a2['id']<_0x2bddc5['id']?-0x1:0x1);}());for(let _0x5c9de4=0x0;_0x5c9de4<_0x194e41['length'];_0x5c9de4++){if(0x0==_0x194e41[_0x5c9de4]['length'])continue;const _0x19f35c=[];for(let _0x232f69=_0x5c9de4+0x1;_0x232f69<_0x194e41['length'];_0x232f69++)0x0!=_0x194e41[_0x232f69]['length']&&_0x5f04ad(_0x194e41[_0x5c9de4],_0x194e41[_0x232f69])&&_0x19f35c['push'](_0x232f69);for(const _0x1f53f8 of _0x19f35c)_0x194e41[_0x5c9de4]=_0x194e41[_0x5c9de4]['concat'](_0x194e41[_0x1f53f8]),_0x194e41[_0x1f53f8]=[];}for(const _0x5ac8e6 of _0x194e41)for(let _0x1f6c6d=0x0;_0x1f6c6d<_0x5ac8e6['length'];_0x1f6c6d++){const _0x1d0386=_0x5ac8e6[_0x1f6c6d+0x1]||null;_0x5ac8e6[_0x1f6c6d]['next']!==_0x1d0386&&(_0x5ac8e6[_0x1f6c6d]['next']=_0x1d0386);}for(const _0x4211b8 of _0x194e41)for(let _0x4ea807=0x0;_0x4ea807<_0x4211b8['length'];_0x4ea807++){const _0x241cca=_0x4211b8[_0x4ea807-0x1]||null;_0x4211b8[_0x4ea807]['previous']!==_0x241cca&&(_0x4211b8[_0x4ea807]['previous']=_0x241cca);}function _0x5f04ad(_0x29925b,_0x438555){if(_0x29925b[0x0]['attributes']['groupId']!==_0x438555[0x0]['attributes']['groupId']&&_0x29925b[0x0]['author']!==_0x438555[0x0]['author'])return!0x1;if(!function(_0x4aefdd,_0x56190f){if(!_0x4aefdd['hasComments']&&!_0x56190f['hasComments'])return!0x0;if(_0x4aefdd['hasComments']&&_0x56190f['hasComments'])return!0x1;if(_0x4aefdd['hasComments']&&_0x56190f['createdAt']<_0x4aefdd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x56190f['hasComments']&&_0x4aefdd['createdAt']<_0x56190f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x29925b[0x0],_0x438555[0x0]))return!0x1;const _0x177f73=ot(_0x29925b[0x0]['attributes'],['groupId','trackingSessionId']),_0x27bedc=ot(_0x438555[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x177f73,_0x27bedc))return!0x1;if(_0x29925b[0x0]['attributes']['groupId']==_0x438555[0x0]['attributes']['groupId'])return!0x0;if(_0x29925b[0x0]['attributes']['trackingSessionId']!==_0x438555[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x29925b['every'](_0x5334c3=>_0x438555['some'](_0x380c14=>_0x5334c3['getFirstRange']()['isEqual'](_0x380c14['getFirstRange']())))&&_0x438555['every'](_0x259f49=>_0x29925b['some'](_0x6eed2a=>_0x259f49['getFirstRange']()['isEqual'](_0x6eed2a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x79c33b){const _0x8b4660=Array['from'](_0x79c33b),_0x4e6915=this['getSuggestions']({'skipNotAttached':!0x0}),_0x492976=_0x4e6915['filter'](_0x1add4d=>!_0x79c33b['has'](_0x1add4d)),_0x1a2502=new Map(_0x8b4660['map'](_0x2c9a76=>[_0x2c9a76,this['_suggestionFactory']['getSuggestionCallback'](_0x2c9a76['type'],_0x2c9a76['subType'],'join')])),_0x23bfe6=new Map(_0x4e6915['map'](_0x5dfe68=>[_0x5dfe68,_0x5dfe68['getRanges']()]));for(let _0xa389b3=0x0;_0xa389b3<_0x8b4660['length'];_0xa389b3++){if(_0xb5f176(this,_0x8b4660[_0xa389b3],_0x8b4660,_0xa389b3+0x1))return!0x0;}for(let _0x50fc90=0x0;_0x50fc90<_0x8b4660['length'];_0x50fc90++){if(_0xb5f176(this,_0x8b4660[_0x50fc90],_0x492976,0x0))return!0x0;}return!0x1;function _0xb5f176(_0x1e723f,_0x5bb651,_0xb7c3a,_0x31d115){for(let _0x1b5f9d=_0x31d115;_0x1b5f9d<_0xb7c3a['length'];_0x1b5f9d++){const _0x378518=_0xb7c3a[_0x1b5f9d];if(_0x378518['type']!==_0x5bb651['type']||_0x378518['author']['id']!==_0x5bb651['author']['id']||_0x378518['subType']!==_0x5bb651['subType'])continue;if(!jt(_0x5bb651,_0x378518))continue;if('attribute'==_0x5bb651['type']&&_0x5bb651['data']['oldValue']!=_0x378518['data']['oldValue'])continue;if('attribute'==_0x5bb651['type']&&_0x1e723f['_suggestionsConversion']['isBlockAttribute'](_0x5bb651['data']['key']))continue;if('formatBlock'==_0x5bb651['type']){const _0x1e0442=_0x1e723f['editor']['model'],_0x448184=_0x5bb651['getContainedElement']();if(_0x448184&&(_0x1e0442['schema']['isObject'](_0x448184)||_0x1e0442['schema']['isLimit'](_0x448184)))continue;}const _0x5b73c0=_0x1a2502['get'](_0x5bb651),_0xafc620=_0x23bfe6['get'](_0x5bb651),_0x5856af=_0x23bfe6['get'](_0x378518),_0x52ae76=_0x5bb651['commentThread']&&_0x5bb651['commentThread']['length'],_0x44b0a3=_0x378518['commentThread']&&_0x378518['commentThread']['length'];if(!_0x52ae76&&_0x5b73c0(_0x5856af,_0xafc620))return _0x1e723f['_joinSuggestions'](_0x378518,_0x5bb651),_0x23bfe6['delete'](_0x5bb651),!0x0;if(!_0x44b0a3&&_0x5b73c0(_0xafc620,_0x5856af))return _0x1e723f['_joinSuggestions'](_0x5bb651,_0x378518),_0x23bfe6['delete'](_0x378518),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5f1465,_0x41ad74){if(_0x5f1465['isMultiRange']){for(const _0x557856 of _0x41ad74['getRanges']())_0x5f1465['addRange'](_0x557856);}else{const _0x523a6d=_0x41ad74['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5f1465,this['_model']['createRange'](_0x5f1465['getFirstRange']()['start'],_0x523a6d));}_0x41ad74['removeMarkers']();}['_getMarkerAnnouncementText'](_0x372a6a,_0xff997a,_0x3ec2d2){const _0x6bba03=_0x372a6a['startsWith']('format')||_0x372a6a['startsWith']('attribute')?'FORMATTING':_0x372a6a['toUpperCase']();return Tt(this['editor']['locale'],_0xff997a+'_'+_0x6bba03+'_SUGGESTION_ANNOUNCEMENT',_0x3ec2d2);}['_initAriaMarkerChangeAnnouncements'](){const _0xb905ca=this['editor'];if(!_0xb905ca['ui'])return;const {ariaLiveAnnouncer:_0x38b796}=_0xb905ca['ui'];_0x1a4c74(this['_model'],({left:_0x2daaa6,entered:_0xbcf942})=>{for(const _0x5e383e of _0x2daaa6){const {group:_0x1e34ca,type:_0x5b7d8b}=_0x4f787f(_0x5e383e['name']);if('suggestion'===_0x1e34ca){_0x38b796['announce'](this['_getMarkerAnnouncementText'](_0x5b7d8b,'LEAVE'));break;}}for(const _0x40c0b4 of _0xbcf942){const {group:_0x518f83,type:_0x5dce09}=_0x4f787f(_0x40c0b4['name']);if('suggestion'===_0x518f83){_0x38b796['announce'](this['_getMarkerAnnouncementText'](_0x5dce09,'ENTER',_0x1d258e(_0x4eb651)));break;}}});}['_processAttributeChanges'](_0x32b897){if(this['_recordAttributeSuggestions'])return!0x1;const _0x34ab74=this['editor'],_0x237e20=_0x34ab74['model']['document']['differ']['getChanges']();if(0x0==_0x237e20['length'])return!0x1;const _0x27b1e5=[],_0x4720f5=_0x237e20['filter'](_0x7b3504=>'attribute'==_0x7b3504['type']),_0x168b41=_0x237e20['filter'](_0xc6b4a=>'insert'==_0xc6b4a['type']&&'$text'!=_0xc6b4a['name']),_0x143bb3=_0x237e20['filter'](_0x37620e=>'remove'==_0x37620e['type']&&'$text'!=_0x37620e['name']);for(const _0x58cea2 of _0x4720f5)_0x27b1e5['push']({'key':_0x58cea2['attributeKey'],'newValue':_0x58cea2['attributeNewValue'],'oldValue':_0x58cea2['attributeOldValue'],'range':$t(_0x58cea2['range'],_0x34ab74['model'])});for(const _0x482106 of _0x168b41){const _0x114a48=_0x143bb3['find'](_0x8b503f=>_0x8b503f['position']['isEqual'](_0x482106['position']));_0x114a48&&_0x27b1e5['push']({'key':Bt,'newValue':_0x482106['name'],'oldValue':_0x114a48['name'],'range':_0x34ab74['model']['createRangeOn'](_0x482106['position']['nodeAfter'])});}return 0x0!=_0x27b1e5['length']&&this['_reduceExistingSuggestions'](_0x32b897,_0x27b1e5);}['_processAttributeSuggestions'](_0x48f89a){let _0x3a0b48=!0x1;const _0x400662=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xbf8d9d=>_0xbf8d9d['data']['newRange']&&_0xbf8d9d['name']['startsWith']('suggestion:attribute:'));for(const _0x184d2f of _0x400662){const {subType:_0x45c198,id:_0x2fe882}=_0x4f787f(_0x184d2f['name']),_0x318c0b=_0x45c198['split']('|')[0x0];for(const _0x53b970 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x53b970['id']!=_0x2fe882&&'attribute'==_0x53b970['type']&&_0x53b970['data']&&_0x53b970['data']['key']==_0x318c0b&&_0x53b970['getFirstRange']()['isIntersecting'](_0x184d2f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x53b970,_0x184d2f['data']['newRange'],_0x48f89a),_0x3a0b48=!0x0);}return _0x3a0b48;}['recordAttributeChanges'](_0x33c68b){this['_recordAttributeSuggestions']=!0x0,_0x33c68b();}['_reduceExistingSuggestions'](_0x3e9437,_0x1c00d4){if(0x0==_0x1c00d4['length'])return!0x1;let _0x3dc94a=!0x1;for(const _0x5c33bb of _0x1c00d4){const _0x59210f=this['_findSuggestions'](_0x5c33bb['range'],'attribute')['filter'](_0x1d284f=>!_0x1d284f['meta']['isNextTo'])['map'](_0x55b7f8=>_0x55b7f8['suggestion']),_0x3cabc4=_0x1fc623({'newValue':_0x5c33bb['newValue']});_0x59210f['filter'](_0xc19ba2=>{const [_0x18af0a,_0x4fbbef]=_0xc19ba2['subType']['split']('|');return _0x18af0a==_0x5c33bb['key']&&_0x4fbbef!=_0x3cabc4;})['forEach'](_0x317942=>{this['_reduceSuggestionAttributeRange'](_0x317942,_0x5c33bb['range'],_0x3e9437),_0x3dc94a=!0x0;});}return _0x3dc94a;}['_reduceSuggestionAttributeRange'](_0x52a187,_0x663606,_0x5c0d64){const _0xa2031f=_0x52a187['getFirstRange']()['getDifference'](_0x663606);0x0!==_0xa2031f['length']?0x1!==_0xa2031f['length']?this['_breakSuggestionMarker'](_0x52a187,_0x663606['start'],_0x663606['end']):this['_setSuggestionRange'](_0x52a187,_0xa2031f[0x0]):_0x5c0d64['removeMarker'](_0x52a187['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x55c9bd){this['_editor']=_0x55c9bd,this['_model']=_0x55c9bd['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2e589b,_0xd9b9d2,_0x404511,_0x3eb02b,_0x22f1db,_0x1495f8,_0x27852a){return new Suggestion(this['_model'],{'type':_0x2e589b,'subType':_0xd9b9d2,'id':_0x404511,'originalSuggestionId':_0x27852a,'author':_0x3eb02b,'creator':_0x3eb02b,'attributes':_0x22f1db,'onAttributesChange':_0x1495f8,'onAccept':(..._0x5e462f)=>this['getSuggestionCallback'](_0x2e589b,_0xd9b9d2,'accept')(..._0x5e462f),'onDiscard':(..._0xcf937d)=>this['getSuggestionCallback'](_0x2e589b,_0xd9b9d2,'discard')(..._0xcf937d)});}['registerCustomCallback'](_0x743547,_0x20401a,_0xa69931,_0x27fcce){const _0x126271=_0x743547+':'+_0x20401a+':'+_0xa69931;this['_customCallbacks']['set'](_0x126271,_0x27fcce);}['getSuggestionCallback'](_0x220538,_0x4efe5e,_0x597aa1){const _0x59616a=_0x220538+':'+_0x4efe5e+':'+_0x597aa1;return this['_customCallbacks']['get'](_0x59616a)||this['_defaultCallbacks']['get'](_0x220538+':'+_0x597aa1);}['_registerDefaultCallbacks'](){const _0x264e8c=()=>!0x1,_0x8c58e6=_0x965602=>{_0x965602['sort']((_0x513c24,_0xd80a85)=>_0x513c24['start']['isBefore'](_0xd80a85['start'])?0x1:-0x1),this['_model']['change'](_0xdde8cb=>{for(const _0x356042 of _0x965602){let _0x5e69c4;_0x5e69c4=_0x356042['end']['isAtEnd']&&_0x356042['end']['parent']==_0x356042['start']['nodeAfter']?_0xdde8cb['createSelection'](_0x356042['start']['nodeAfter'],'on'):_0xdde8cb['createSelection'](_0x356042),this['_model']['deleteContent'](_0x5e69c4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3f1a61=(_0x4bab47,_0x10276d)=>{_0x10276d&&this['_model']['change'](_0x3851e4=>{const {commandName:_0x3a1186,commandParams:_0x45871e=[]}=_0x10276d,_0x238eec=_0x4bab47['map'](_0x1a944c=>(vt(_0x1a944c)&&(_0x1a944c=this['_model']['createRange'](_0x1a944c['end'])),_0x1a944c))['filter'](_0x4b1aaf=>'$graveyard'!==_0x4b1aaf['root']['rootName']);if(_0x238eec['length']<0x1)return;const _0x31bb4f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2cc699=>_0x4c6b54['fromRange'](_0x2cc699));_0x3851e4['setSelection'](_0x238eec);for(const _0x48962b of this['_editor']['commands']['commands']())_0x48962b['refresh']();_0x45871e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3a1186,..._0x45871e);const _0x19440d=_0x31bb4f['filter'](_0x4a3c4d=>'$graveyard'!=_0x4a3c4d['root']['rootName']);_0x19440d['length']>0x0&&_0x3851e4['setSelection'](_0x19440d);for(const _0x96b7cc of _0x31bb4f)_0x96b7cc['detach']();});},_0x511ead=(_0x54c059,_0xd62545)=>0x1==_0x54c059['length']&&0x1==_0xd62545['length']&&_0x54c059[0x0]['end']['isEqual'](_0xd62545[0x0]['start']),_0x23498e=(_0x21247c,_0xe4806a,_0x578823,_0x88ffc7)=>Wt(_0x21247c,_0xe4806a,_0x578823,_0x88ffc7)?[_0x21247c,_0xe4806a]:Wt(_0xe4806a,_0x21247c,_0x88ffc7,_0x578823)?[_0xe4806a,_0x21247c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x264e8c),this['_defaultCallbacks']['set']('insertion:discard',_0x8c58e6),this['_defaultCallbacks']['set']('insertion:join',_0x511ead),this['_defaultCallbacks']['set']('insertion:chain',_0x23498e),this['_defaultCallbacks']['set']('deletion:accept',_0x8c58e6),this['_defaultCallbacks']['set']('deletion:discard',_0x264e8c),this['_defaultCallbacks']['set']('deletion:join',_0x511ead),this['_defaultCallbacks']['set']('deletion:chain',_0x23498e),this['_defaultCallbacks']['set']('formatInline:accept',_0x3f1a61),this['_defaultCallbacks']['set']('formatInline:discard',_0x264e8c),this['_defaultCallbacks']['set']('formatInline:join',_0x511ead),this['_defaultCallbacks']['set']('formatInline:chain',_0x264e8c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3f1a61),this['_defaultCallbacks']['set']('formatBlock:discard',_0x264e8c),this['_defaultCallbacks']['set']('formatBlock:join',_0x511ead),this['_defaultCallbacks']['set']('formatBlock:chain',_0x264e8c),this['_defaultCallbacks']['set']('attribute:accept',_0x264e8c),this['_defaultCallbacks']['set']('attribute:discard',(_0x3e5fa4,_0x41d10c)=>{if(!_0x41d10c)return;const _0x194cd2=this['_editor']['plugins']['get'](_0x540837);this['_model']['change'](_0x3a9530=>{if(_0x41d10c['key']==Bt)for(const _0x4983d2 of _0x3e5fa4){const _0x5c5d1d=_0x4983d2['start']['nodeAfter'],_0x2c0292=_0x41d10c['oldValue'];_0x3a9530['rename'](_0x5c5d1d,_0x2c0292);}else{if(_0x194cd2['isBlockAttribute'](_0x41d10c['key'])){for(const _0x1653ee of _0x3e5fa4)void 0x0!==_0x41d10c['oldValue']?_0x3a9530['setAttribute'](_0x41d10c['key'],_0x41d10c['oldValue'],_0x1653ee['start']['nodeAfter']):_0x3a9530['removeAttribute'](_0x41d10c['key'],_0x1653ee['start']['nodeAfter']);}else{for(const _0x15bbca of _0x3e5fa4)_0x41d10c['oldValue']?_0x3a9530['setAttribute'](_0x41d10c['key'],_0x41d10c['oldValue'],_0x15bbca):_0x3a9530['removeAttribute'](_0x41d10c['key'],_0x15bbca);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x511ead);}}function Dt(_0x574cb3,_0x4e5b70,_0x529998){for(const _0x343b5c of _0x4e5b70['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x343b5c['root']==_0x343b5c)return!0x1;if(!_0x529998['containsItem'](_0x343b5c))return!0x1;if(_0x574cb3['isObject'](_0x343b5c)||_0x574cb3['isLimit'](_0x343b5c))return!0x0;}return!0x1;}function vt(_0x39fbff){return _0x39fbff['end']['parent']==_0x39fbff['start']['nodeAfter']&&_0x39fbff['end']['isAtStart'];}function Pt(_0x3cc182,_0x359311,_0xf439de,_0x5bc79c){const _0x330d90=_0x54d4f7=>!_0x54d4f7['item']['is']('$textProxy')&&!_0x5bc79c['isObject'](_0x54d4f7['item']),_0x144d20=_0x3cc182['start']['getLastMatchingPosition'](_0x330d90),_0x44deb3=_0x3cc182['end']['getLastMatchingPosition'](_0x330d90,{'direction':'backward'});return(!_0x3cc182['start']['isEqual'](_0x144d20)||!_0x3cc182['end']['isEqual'](_0x44deb3))&&(_0x144d20['isBefore'](_0x44deb3)?_0xf439de['updateMarker'](_0x359311,{'range':_0xf439de['createRange'](_0x144d20,_0x44deb3)}):_0xf439de['removeMarker'](_0x359311),!0x0);}function xt(_0x3b55c5){return _0x1fc623(_0x3b55c5);}function Ut(_0x56203e){const _0x467efc=_0x56203e['start']['nodeAfter'];return _0x467efc&&_0x467efc['is']('element');}function Gt(_0x5ae36e){return vt(_0x5ae36e)||function(_0x1bd351){return _0x1bd351['start']['parent']==_0x1bd351['end']['nodeBefore']&&_0x1bd351['start']['isAtEnd'];}(_0x5ae36e);}function Ht(_0x2a6069,_0x2524cd){try{const _0x182137=_0x2a6069['getRange']();for(const _0xd6bf38 of _0x2524cd)if(_0x2a6069!==_0xd6bf38&&_0x182137&&_0x182137['isIntersecting'](_0xd6bf38['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function $t(_0x4014dd,_0x164f99){return null==_0x4014dd['end']['nodeBefore']&&_0x4014dd['end']['parent']==_0x4014dd['start']['nodeAfter']?Vt(_0x4014dd['start']['nodeAfter'],_0x164f99):_0x4014dd;}function Vt(_0x2d0bd7,_0x33b795){const _0x4b3f34=_0x33b795['schema']['isObject'](_0x2d0bd7)||_0x33b795['schema']['isSelectable'](_0x2d0bd7);return _0x33b795['createRange'](_0x33b795['createPositionAt'](_0x2d0bd7,'before'),_0x4b3f34?_0x33b795['createPositionAfter'](_0x2d0bd7):_0x33b795['createPositionAt'](_0x2d0bd7,'end'));}function Wt(_0x158848,_0x43cd55,_0x3e211d,_0x442d37){return!!jt(_0x158848,_0x43cd55)&&_0x3e211d['end']['isEqual'](_0x442d37['start']);}function jt(_0x316ba1,_0x46f967){if(!_0x316ba1['_isDataLoaded']||!_0x46f967['_isDataLoaded'])return!0x1;const _0xeeeffc=new Set(Object['keys'](_0x316ba1['attributes'])),_0x259e6c=new Set(Object['keys'](_0x46f967['attributes']));if(_0xeeeffc['delete']('groupId'),_0x259e6c['delete']('groupId'),0x0==_0xeeeffc['size']&&0x0==_0x259e6c['size'])return!0x0;if(_0xeeeffc['size']!=_0x259e6c['size'])return!0x1;const _0x5aeff9={..._0x316ba1['attributes']},_0x2a13d9={..._0x46f967['attributes']};return delete _0x5aeff9['groupId'],delete _0x2a13d9['groupId'],JSON['stringify'](_0x5aeff9)==JSON['stringify'](_0x2a13d9);}function zt(_0x375b25,_0x52110c){const _0x5c5b83=Kt(_0x375b25['attributes']),_0x35d4d2=Kt(_0x52110c);if(!_0x375b25['_isDataLoaded'])return!0x1;for(const _0x31846d of Object['keys'](_0x35d4d2))if(!st(_0x5c5b83[_0x31846d],_0x35d4d2[_0x31846d]))return!0x1;return!0x0;}function Kt(_0x21a912){const _0x316304=Object['assign']({},_0x21a912);return delete _0x316304['skipNestingCheck'],delete _0x316304['tablePasteChainId'],_0x316304;}function Xt(_0x2a0c5c){return _0x2a0c5c['split']('|')[0x0];}class SuggestionController extends/* #__PURE__ -- @preserve */
26
+ _0x1ca856(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x30f2da,_0x193aef,_0x1d5e9a,_0x4b7fab){super(),this['model']=_0x193aef,this['view']=_0x1d5e9a,this['commentThreadController']=_0x4b7fab,this['_editor']=_0x30f2da,this['_acceptCommand']=_0x30f2da['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x30f2da['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2b4bf5,_0x1b1a65)=>_0x2b4bf5||_0x1b1a65),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4bc64c=>_0x4bc64c&&this['_editor']['model']['canEditAt'](_0x193aef['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x23590d=>_0x23590d&&this['_editor']['model']['canEditAt'](_0x193aef['getRanges']())),this['_pendingAction']=null,_0x1d5e9a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1d5e9a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1d5e9a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1d5e9a,'change:isDirty',()=>{_0x1d5e9a['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 _0xc44b78=Tt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xc44b78);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class BaseSuggestionThreadView extends _0x7acdaf{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4f5dd6,_0x261849,_0x189cc0,_0x2dbeda){super(_0x4f5dd6),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5b849f(_0x4f5dd6,Tt(_0x4f5dd6,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x261849['authoredAt']),this['bind']('authoredAt')['to'](_0x261849),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',_0x261849,'authoredAt',this,'descriptionParts',(_0x5cfd18,_0x73c21,_0x1fe534)=>{const _0x5701cf=_0x1fe534['map'](_0x28578b=>ht(_0x28578b['content']))['join']('.\x20')+'.';return Tt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5cfd18-0x1,_0x261849['author']['name'],_0x73c21?_0x2dbeda['formatDateTime'](_0x73c21):'',new DOMParser()['parseFromString'](_0x5701cf,'text/html')['body']['textContent']]);}),this['focusables']=new _0x47db65(),this['focusTracker']=new _0x5def1f(),this['keystrokes']=new _0x7c07a3(),this['focusCycler']=new _0x5602a4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x424886=>_0x424886['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x261849,this['_localUser']=_0x189cc0,this['_config']=_0x2dbeda,_0x2dbeda['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xdc32b2(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1fde34}=this['_config'];this['commentsListView']=new _0x1fde34(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',_0x1072a1=>_0x1072a1+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4e8643,_0x2bb3cd)=>_0x4e8643||!!_0x2bb3cd);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x208114}=this['_config'],_0x16e4bb=new _0x208114(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4c9323=_0x16e4bb['commentInputView'];return _0x16e4bb['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4c9323,'value',(_0x3e5b93,_0x4c702a,_0x20eaf0)=>!!_0x20eaf0||_0x3e5b93&&!_0x4c702a),_0x4c9323['on']('submit',(_0xb0af9b,_0x78fc3d)=>{this['fire']('addComment',_0x78fc3d),_0x4c9323['editor']['setData']('');}),_0x4c9323['on']('cancel',()=>this['focus']()),_0x4c9323['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x16e4bb;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x416f40,_0x4f2af5,_0x1dd847,_0x1df340){super(_0x416f40,_0x4f2af5,_0x1dd847,_0x1df340),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x280cf4=>_0x280cf4&&_0x280cf4[0x0]?_0x280cf4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x25d415,_0x2164a9)=>{let _0x402f32='';for(const _0x4ac60e of _0x25d415)_0x402f32+='<p>'+ht(_0x4ac60e['content'],_0x4ac60e['color'])+'</p>';return _0x2164a9?_0x402f32:_0x4e34a1(_0x402f32,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1df340['SuggestionView'](_0x416f40,_0x4f2af5,{'formatDateTime':_0x1df340['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 _0x1ea277=this['bindTemplate'],_0x3aa9f8=[this['suggestionView']];return this['commentsListView']&&_0x3aa9f8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3aa9f8['push'](this['commentThreadInputView']),_0x3aa9f8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1ea277['if']('isActive','ck-suggestion-wrapper--active'),_0x1ea277['to']('type',_0x435830=>'ck-suggestion-'+_0x435830),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':_0x1ea277['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3aa9f8};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class SuggestionView extends _0x7acdaf{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xdc5ab3,_0x189b9c,_0xa5022){super(_0xdc5ab3),this['_model']=_0x189b9c,this['_config']=_0xa5022,this['set']('description',''),this['bind']('authoredAt')['to'](_0x189b9c),this['acceptButton']=this['_createButton'](Tt(_0xdc5ab3,'Accept\x20suggestion'),_0x4931a8,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Tt(_0xdc5ab3,'Discard\x20suggestion'),_0x39c270,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x15cd9a(_0xdc5ab3,_0x189b9c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x47db65([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5def1f(),this['keystrokes']=new _0x7c07a3(),this['focusCycler']=new _0x5602a4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xef31d8=>_0xef31d8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x109e15=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x109e15['innerHTML']=this['description'],this['on']('change:description',(_0x33f5c9,_0x40f3dc,_0x163d1c)=>{_0x109e15['innerHTML']=_0x163d1c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1ab711=this['bindTemplate'],_0x42acae=[{'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':_0x1ab711['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1ab711['to']('authoredAt',_0x518725=>this['_config']['formatDateTime'](_0x518725))}]}]},{'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']&&_0x42acae['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':_0x42acae}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Tt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Tt(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x1e85bb,_0xf2636d,_0x329057,_0x1b558b,_0xf567a6){const _0x3c08f2=new _0x1f4595(this['locale']);return _0x3c08f2['set']({'label':_0x1e85bb,'icon':_0xf2636d,'tooltip':!0x0,'tooltipPosition':_0xf567a6}),_0x3c08f2['extendTemplate']({'attributes':{'class':_0x329057}}),_0x3c08f2['on']('execute',()=>{this['fire'](_0x1b558b,this['_model']['id']);}),_0x3c08f2;}['_setupKeyboardNavigation'](){const _0x478787=this['element'];this['keystrokes']['listenTo'](_0x478787);for(const _0x54bfcb of this['focusables'])this['focusTracker']['add'](_0x54bfcb['element']),this['keystrokes']['listenTo'](_0x54bfcb['element']);this['keystrokes']['set']('enter',(_0x15886e,_0x2c0c9a)=>{_0x478787===_0x15886e['target']&&(this['focusCycler']['focusFirst'](),_0x2c0c9a());}),this['keystrokes']['set']('esc',(_0x31f599,_0x4723d1)=>{_0x478787!==_0x31f599['target']&&(this['focus'](),_0x4723d1());});}}class TrackChangesUI extends _0x203e6b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[TrackChangesEditing,_0x3771e4,_0x300715,_0x18743c,_0x183fc3];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5925b3){super(_0x5925b3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x291382=this['editor']['config'];_0x291382['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x291382['define']('trackChanges.SuggestionView',SuggestionView),_0x291382['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x291382['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3d31ef,_0x499973){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x44912b,_0x13bc62]of this['_handleControllerBuffer']){const _0x419f27=this['_suggestionToController']['has'](_0x44912b);_0x419f27||_0x13bc62?_0x419f27&&_0x13bc62&&this['_destroyController'](_0x44912b):this['_initializeController'](_0x44912b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x183fc3)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3d31ef,_0x499973);}['init'](){const _0xb956fe=this['editor'],_0x45068c=_0xb956fe['plugins']['get'](TrackChangesEditing),_0x403349=_0xb956fe['plugins']['get'](_0x18743c),_0xe8db52=_0xb956fe['plugins']['get'](_0x183fc3),_0x4f9e29=_0xb956fe['plugins']['get'](_0x300715);this['_addUIComponentsToFactory'](),_0xe8db52['addSourceCollector'](()=>{const _0x39d423=[];for(const [_0x2c67d7,_0x452144]of Array['from'](this['_suggestionToController'])){const _0x5c5fc=_0x2c67d7['getAllAdjacentSuggestions'](),_0x454758=[];for(const _0x16097d of _0x5c5fc){if(!_0x16097d['isInContent'])continue;if(_0x16097d['isMultiRange']){_0x454758['push'](..._0x16097d['getRanges']());continue;}const _0x291177=_0x16097d['getFirstRange']();if(_0x454758['length']>0x0){const _0x1d2f50=_0x454758[0x0]['getJoined'](_0x291177);if(_0x1d2f50){_0x454758[0x0]=_0x1d2f50;continue;}}_0x454758['push'](_0x291177);}_0x39d423['push']([_0x452144['view'],_0x454758]);}return _0x39d423;}),this['listenTo'](_0x45068c,'suggestionLoaded',(_0x5ed4dc,_0x46dbd0)=>{this['listenTo'](_0x46dbd0,'change:previous',(_0x106328,_0x427744,_0x5acd4b,_0xacb76f)=>{_0x46dbd0['isInContent']&&(null==_0x5acd4b?(this['_updateController'](_0xacb76f['head']),this['_handleSuggestionControllerDelayed'](_0x46dbd0,!0x1)):(this['_updateController'](_0x5acd4b['head']),null==_0xacb76f&&this['_handleSuggestionControllerDelayed'](_0x46dbd0,!0x0)));}),null!==_0x46dbd0['previous']?this['_updateController'](_0x46dbd0['head']):this['_handleSuggestionControllerDelayed'](_0x46dbd0,!0x1);}),this['listenTo'](_0x45068c,'suggestionUnloaded',(_0x479177,_0xc43c9d,_0x39becb)=>{this['stopListening'](_0xc43c9d,'change:previous'),this['_handleControllerBuffer']['delete'](_0xc43c9d),this['_suggestionToController']['has'](_0xc43c9d)&&this['_destroyController'](_0xc43c9d),_0x39becb&&this['_updateController'](_0x39becb['head']);}),this['listenTo'](_0x45068c,'suggestionChanged',(_0x5044ec,_0x2ef702)=>{this['_updateController'](_0x2ef702);}),this['listenTo'](_0x403349,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4f9e29,'addComment',(_0x273957,{threadId:_0x34c82b,isFromAdapter:_0x72e9af})=>{if(_0x72e9af||!_0x45068c['hasSuggestion'](_0x34c82b))return;const _0x2f72cc=_0x45068c['getSuggestion'](_0x34c82b);this['_suggestionToController']['get'](_0x2f72cc)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x36e6e7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23581a;for(const _0x34a36f in _0x36e6e7){const _0xf7ecb8=_0x34a36f,_0x7b637b=_0x36e6e7[_0xf7ecb8];if('trackChangesLicenseKeyValid'==_0x7b637b||'trackChangesLicenseKeyInvalid'==_0x7b637b||'trackChangesLicenseKeyExpired'==_0x7b637b||'trackChangesLicenseKeyDomainLimit'==_0x7b637b||'trackChangesLicenseKeyNotAllowed'==_0x7b637b||'trackChangesLicenseKeyEvaluationLimit'==_0x7b637b||'trackChangesLicenseKeyUsageLimit'==_0x7b637b){delete _0x36e6e7[_0xf7ecb8],_0x23581a=_0x7b637b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x23581a&&_0x36e6e7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x23581a&&_0x36e6e7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x23581a&&_0x36e6e7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x23581a&&_0x36e6e7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x23581a&&_0x36e6e7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x23581a&&_0x36e6e7['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x40a874){const _0x2365cb=this['_suggestionToController']['get'](_0x40a874);if(!_0x2365cb)return null;return this['editor']['plugins']['get'](_0x18743c)['getByInnerView'](_0x2365cb['view'])||null;}['getSuggestionForAnnotation'](_0x3d038d){const _0x56df33=this['_viewToController']['get'](_0x3d038d['innerView']);return _0x56df33?_0x56df33['model']:null;}['_refreshActiveMarkers'](){const _0x548535=this['editor']['plugins']['get'](_0x18743c),_0x37f2a8=this['editor']['plugins']['get'](TrackChangesEditing),_0x50fd67=Array['from'](_0x548535['activeAnnotations'],_0x38b966=>_0x38b966['innerView'])['filter'](_0x44cb0e=>this['_viewToController']['has'](_0x44cb0e)),_0x445a35=[];for(const _0x394b3e of _0x50fd67){const _0x31480c=this['_viewToController']['get'](_0x394b3e)['model']['getAllAdjacentSuggestions']();_0x445a35['push'](..._0x31480c['reduce']((_0x32bb29,_0x10ad66)=>[..._0x32bb29,..._0x10ad66['getMarkerNames']()],[]));}_0x37f2a8['activeMarkers']=_0x445a35;}['_addUIComponentsToFactory'](){const _0x1080c0=this['editor'],_0x5ece4f=_0x1080c0['locale'],_0x4841a3=Tt(_0x5ece4f,'Track\x20changes'),_0x21b64e=new _0xa0bdb5([{'type':'switchbutton','model':new _0x3d4a24({'withText':!0x0,'isToggleable':!0x0,'label':_0x4841a3,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3d4a24({'withText':!0x0,'label':Tt(_0x5ece4f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3d4a24({'withText':!0x0,'label':Tt(_0x5ece4f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3d4a24({'withText':!0x0,'label':Tt(_0x5ece4f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3d4a24({'withText':!0x0,'label':Tt(_0x5ece4f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1080c0['plugins']['has']('TrackChangesPreview')&&_0x21b64e['addMany']([{'type':'separator'},{'type':'button','model':new _0x3d4a24({'withText':!0x0,'label':Tt(_0x5ece4f,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3da9db of _0x21b64e)if(Yt(_0x3da9db)){const _0x3e4aa1=_0x1080c0['commands']['get'](_0x3da9db['model']['commandName']);_0x3da9db['model']['bind']('isOn','isEnabled')['to'](_0x3e4aa1,'value','isEnabled');}_0x1080c0['ui']['componentFactory']['add']('trackChanges',_0x12bd75=>this['_createToolbarButton'](_0x12bd75,_0x21b64e,_0x4841a3)),_0x1080c0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4c72d4=>this['_createMenuBarMenu'](_0x4c72d4,_0x21b64e,_0x4841a3));}['_createToolbarButton'](_0x498077,_0x17ba74,_0x4d51c1){const _0x2650fa=_0x56fb5d(_0x498077,_0x1fc7da),_0x44807b=this['editor']['commands']['get']('trackChanges');_0x2650fa['buttonView']['set']({'tooltip':_0x4d51c1,'label':_0x4d51c1,'icon':_0xefeca6}),_0x2650fa['buttonView']['bind']('isOn')['to'](_0x44807b,'value'),_0x2650fa['buttonView']['on']('execute',()=>{_0x44807b['execute'](),this['editor']['editing']['view']['focus']();}),_0x8a0123(_0x2650fa,_0x17ba74,{'role':'menu'});const _0x1622dc=[];for(const _0x4d9a77 of _0x17ba74)Yt(_0x4d9a77)&&_0x1622dc['push'](this['editor']['commands']['get'](_0x4d9a77['model']['commandName']));const _0x519ffc=_0x2650fa['buttonView'];return _0x519ffc['actionView']['unbind']('isEnabled'),_0x519ffc['arrowView']['unbind']('isEnabled'),_0x519ffc['actionView']['bind']('isEnabled')['to'](_0x44807b,'isEnabled'),_0x519ffc['arrowView']['bind']('isEnabled')['toMany'](_0x1622dc,'isEnabled',(..._0x51d805)=>_0x51d805['some'](_0x4ae65d=>_0x4ae65d)),_0x2650fa['on']('execute',_0x8a1d42=>{this['editor']['execute'](_0x8a1d42['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2650fa;}['_createMenuBarMenu'](_0x462426,_0x3a7cb2,_0x20d0c3){const _0xcdb5f2=new _0x10e4a3(_0x462426),_0x25c82e=this['editor']['commands']['get']('trackChanges');_0xcdb5f2['buttonView']['set']({'label':_0x20d0c3,'icon':_0xefeca6});const _0x4a67a8=new _0x481bf4(_0x462426);for(const _0x8b2044 of _0x3a7cb2){if('separator'==_0x8b2044['type']){_0x4a67a8['items']['add'](new _0x1e805e(_0x462426));continue;}const _0x47aa07=new _0x18a5b5(_0x462426,_0xcdb5f2),_0x5eefa7=new _0x47e243(_0x462426),_0x3eb008=_0x8b2044['model'];_0x5eefa7['bind'](...Object['keys'](_0x3eb008))['to'](_0x3eb008),_0x5eefa7['delegate']('execute')['to'](_0xcdb5f2),_0x5eefa7['on']('execute',()=>{this['editor']['execute'](_0x3eb008['commandName']),this['editor']['editing']['view']['focus']();}),_0x47aa07['children']['add'](_0x5eefa7),_0x4a67a8['items']['add'](_0x47aa07);}return _0xcdb5f2['bind']('isEnabled')['to'](_0x25c82e,'isEnabled'),_0xcdb5f2['panelView']['children']['add'](_0x4a67a8),_0xcdb5f2;}['_initializeController'](_0x57589d){const _0x774832=this['editor'],_0x39f792=_0x774832['config'],_0x53ddf3=_0x774832['plugins']['get'](_0x18743c),_0x4c2e3c=_0x774832['plugins']['get'](_0x300715),_0xa1b311=_0x774832['plugins']['get'](_0x183fc3),_0x27cdb0=_0x774832['plugins']['get'](_0x3771e4)['me'],_0x5a21e9=_0x39f792['get']('trackChanges')['SuggestionThreadView'],_0x3fa233=_0x39f792['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xc758a8,CommentThreadInputView:_0xa36bb1}=_0x774832['plugins']['get']('CommentsUI');let _0x2e14c7,_0x255c25,_0x44e937;this['_annotationViews']['has'](_0x57589d['id'])?(_0x255c25=this['_annotationViews']['get'](_0x57589d['id']),_0x2e14c7=_0x255c25['mainView']):(_0x2e14c7=new _0x5a21e9(_0x774832['locale'],_0x57589d,_0x27cdb0,{'disableComments':this['_disableComments'],'editorConfig':{..._0x39f792['get']('comments.editorConfig'),'licenseKey':_0x39f792['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x39f792['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x39f792['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x39f792['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x59dff4(_0x39f792['get']('locale'),_0x774832['locale']),'CommentView':_0x39f792['get']('comments')['CommentView'],'CommentsListView':_0xc758a8,'CommentThreadInputView':_0xa36bb1,'SuggestionView':_0x3fa233}),_0x2e14c7['suggestionView']['acceptButton']['on']('execute',()=>{_0x774832['editing']['view']['focus']();}),_0x2e14c7['suggestionView']['discardButton']['on']('execute',()=>{_0x774832['editing']['view']['focus']();}),_0x255c25=_0x53ddf3['createAnnotationView'](this['editor']['locale'],_0x2e14c7),_0x255c25['bind']('isDirty')['to'](_0x2e14c7,'isDirty'),_0x255c25['bind']('length')['to'](_0x2e14c7),_0x255c25['bind']('type')['to'](_0x2e14c7,'type',_0x2a2c4a=>'suggestion-'+_0x2a2c4a),_0x2e14c7['on']('escape',()=>{_0x44e937['fire']('escape');}),this['_annotationViews']['set'](_0x57589d['id'],_0x255c25));const _0x192ad2=_0x4c2e3c['createCommentThreadController'](_0x57589d['commentThread'],_0x2e14c7),_0x51cf46=new SuggestionController(_0x774832,_0x57589d,_0x2e14c7,_0x192ad2),_0x2c1e61=_0x57589d['getAllAdjacentSuggestions']()['filter'](_0x53c484=>_0x53c484['isInContent']);_0x2e14c7['descriptionParts']=_0x774832['plugins']['get'](TrackChangesEditing)['descriptionFactory']['getDescriptions'](_0x2c1e61),this['_suggestionToController']['set'](_0x57589d,_0x51cf46),this['_viewToController']['set'](_0x2e14c7,_0x51cf46);const _0x394b57=()=>{const _0x769a2b=[],_0x4897dc=_0x57589d['getAllAdjacentSuggestions']()['filter'](_0x3a0d18=>_0x3a0d18['isInContent']);for(const _0x384273 of _0x4897dc)_0x769a2b['push'](..._0x384273['getMarkers']());return _0x521940(_0x774832['editing'],_0x769a2b);};_0x44e937=_0x53ddf3['createAnnotation']({'view':_0x255c25,'target':_0x394b57,'type':()=>'suggestion-'+_0x51cf46['view']['type'],'isVisible':!!_0x394b57()}),_0x4c2e3c['_bindAnnotationToEditors'](_0x2e14c7,_0x44e937),_0x53ddf3['add'](_0x44e937),_0xa1b311['registerAnnotation'](_0x44e937);}['_destroyController'](_0x41c34d){const _0x2aba02=this['editor']['plugins']['get'](_0x300715),_0x13d280=this['editor']['plugins']['get'](_0x18743c),_0x4ad8c8=this['_suggestionToController']['get'](_0x41c34d),_0x3e2b38=_0x4ad8c8['view'],_0x356470=_0x13d280['getByInnerView'](_0x3e2b38);_0x2aba02['_unbindEditors'](_0x3e2b38),_0x356470&&_0x13d280['remove'](_0x356470),this['_suggestionToController']['delete'](_0x41c34d),this['_viewToController']['delete'](_0x3e2b38),_0x4ad8c8['destroy']();}['_updateController'](_0x1f4bea){if(!_0x1f4bea['isInContent']||!this['_suggestionToController']['has'](_0x1f4bea))return;const _0x4363aa=this['editor']['plugins']['get'](TrackChangesEditing),_0x4ef1db=this['_suggestionToController']['get'](_0x1f4bea),_0x17fb90=_0x1f4bea['getAllAdjacentSuggestions']();_0x4ef1db['view']['descriptionParts']=_0x4363aa['descriptionFactory']['getDescriptions'](_0x17fb90);}['destroy'](){for(const _0x3cc798 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3cc798);for(const _0x3fa028 of this['_annotationViews']['values']())_0x3fa028['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Yt(_0x386716){return'model'in _0x386716;}class TrackChanges extends _0x203e6b{static get['requires'](){return[TrackChangesEditing,TrackChangesUI,_0x142b0b];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x409d4b){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0x409d4b;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x3a7484){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x3a7484);}['getSuggestions']({skipNotAttached:_0x5c7b7e=!0x1,toJSON:_0x4b55bd=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x5c7b7e,'toJSON':_0x4b55bd});}['getSuggestion'](_0xb54f4b){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0xb54f4b);}}const qt=['Pagination'];class TrackChangesData extends _0x203e6b{static get['requires'](){return[TrackChangesEditing];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x21d92c=this['editor'];if(_0x21d92c['config']['define']('trackChangesData.editorCreator',_0x4ada36=>{const _0x3f6756=_0x21d92c['model']['document']['getRootNames']()['reduce']((_0x16a77b,_0x2f9ce0)=>(_0x16a77b[_0x2f9ce0]='',_0x16a77b),{});return _0x21d92c['constructor']['create'](_0x3f6756,_0x4ada36);}),'function'!=typeof _0x21d92c['config']['get']('trackChangesData')['editorCreator'])throw new _0x2618c5('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5849bd){return Zt(this['editor'],!0x0,_0x5849bd);}['getDataWithDiscardedSuggestions'](_0x241426){return Zt(this['editor'],!0x1,_0x241426);}}class TrackChangesDataGetter extends _0x203e6b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x143900){function _0x1da775(_0xc7622f){return _0xc7622f['map'](_0x3833f8=>String['fromCharCode'](_0x3833f8))['join']('');}super(_0x143900),this['result']='end',_0x143900[_0x1da775([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1da775([0x76,0x69,0x65,0x77])][_0x1da775([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1da775([0x61,0x75,0x74,0x6f]),_0x143900[_0x1da775([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1da775([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1da775([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1da775([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1da775([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Qt(_0x2b70f5){return void 0x0!==_0x2b70f5['getRootsAttributes'];}async function Zt(_0x294e68,_0x3bee75,_0xa57a9e){const _0x585221=_0x49f7c3(_0x294e68,qt);if(_0x585221['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),Qt(_0x294e68)){_0x585221['roots']=Object['create'](null);for(const _0x25e840 of _0x294e68['model']['document']['getRootNames']())_0x585221['roots'][_0x25e840]={'modelAttributes':_0x294e68['getRootAttributes'](_0x25e840)};}const _0x3956f3=document['createDocumentFragment'](),_0x3d44fb=_0x294e68['config']['get']('trackChangesData')['editorCreator'],_0x45133a=await _0x3d44fb(_0x585221,()=>function(_0x3355a8){const _0x457a1a=document['createElement']('div');return _0x3355a8['appendChild'](_0x457a1a),_0x457a1a;}(_0x3956f3));!function(_0x42a654,_0x8b1e8d){const _0x81ae41=_0x42a654['model']['document']['getRootNames']()['reduce']((_0x346419,_0x28034b)=>(_0x346419[_0x28034b]=_0x42a654['data']['get']({'rootName':_0x28034b}),_0x346419),{}),_0xd8759a=_0x42a654['plugins']['get']('Users')['users']['map'](_0x3bcb18=>({'id':_0x3bcb18['id'],'name':_0x3bcb18['name']})),_0x2af500=_0x42a654['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x181ceb=_0x42a654['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3ee071=_0x8b1e8d['plugins']['get']('Users'),_0x18433d=_0x8b1e8d['plugins']['get']('TrackChangesEditing'),_0x52ffee=_0x8b1e8d['plugins']['get']('CommentsRepository');for(const _0x245c2a of _0x52ffee['getCommentThreads']())_0x245c2a['remove']();for(const _0x45acbd of _0xd8759a)_0x3ee071['getUser'](_0x45acbd['id'])||_0x3ee071['addUser'](_0x45acbd);_0x3ee071['me']||_0x3ee071['useAnonymousUser']();for(const _0x265389 of _0x181ceb)_0x52ffee['addCommentThread'](_0x265389);for(const _0x1df341 of _0x2af500)_0x18433d['addSuggestionData'](_0x1df341);_0x8b1e8d['data']['set'](_0x81ae41);}(_0x294e68,_0x45133a),_0x45133a['execute'](_0x3bee75?'acceptAllSuggestions':'discardAllSuggestions');const _0x2c5d7a=Qt(_0x45133a)?_0x45133a['getFullData'](_0xa57a9e):_0x45133a['data']['get'](_0xa57a9e);return await _0x45133a['destroy'](),_0x2c5d7a;}class TrackChangesPreviewView extends _0x7acdaf{['options'];constructor(_0x43fc29,_0x11b841){super(_0x43fc29),this['options']=_0x11b841,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'](_0x2be319,_0x5e9756){if(!this['element'])return;const _0x413261=[];for(const [_0x21906f,_0x36dbb8]of _0x2be319){const _0x25ab2f=document['createElement']('div');_0x25ab2f['setAttribute']('data-ck-root-name',_0x21906f),_0x25ab2f['className']=_0x36dbb8['classes']+'\x20ck-track-changes-preview__root-container',_0x25ab2f['innerHTML']=_0x36dbb8['content'],_0x413261['push'](_0x25ab2f);}_0x5e9756(this['element'],_0x413261),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends _0x2a8e78{constructor(_0x16e428){super(_0x16e428),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x536786=this['editor'],_0x382e65=_0x536786['locale'],_0x347a5b=_0x536786['plugins']['get']('Dialog');let _0x39dd39;const _0x1a4647=function(_0x1ef8be){const _0x12f58b={};if('editables'in _0x1ef8be['ui']['view']){for(const [_0x5b1a3b,_0x5f0e52]of Object['entries'](_0x1ef8be['ui']['view']['editables']))_0x12f58b[_0x5b1a3b]=_0x5f0e52['element'];}else _0x12f58b[_0x1ef8be['model']['document']['getRootNames']()[0x0]]=_0x1ef8be['ui']['view']['editable']['element'];return _0x12f58b;}(_0x536786),_0x26a7d9=function(_0x3bd368){let _0x268609=0x0;for(const _0x1d3113 of Object['values'](_0x3bd368))_0x268609=Math['max'](_0x268609,_0x1d3113['getBoundingClientRect']()['width']);let _0x5a18ba=0x0;for(const _0x402bc9 of Object['values'](_0x3bd368))_0x5a18ba+=_0x402bc9['getBoundingClientRect']()['height'];const _0x4bd44c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4fa4f5=Math['min'](_0x5a18ba,_0x4bd44c);return{'width':_0x268609,'height':_0x4fa4f5};}(_0x1a4647);_0x347a5b['show']({'id':'finalContentPreview','title':Tt(_0x382e65,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x382e65,{'dialogRects':_0x26a7d9}),'onHide':()=>{_0x39dd39['detachFromDom']();},'onShow':()=>{_0x536786['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x56a40a=>{const _0x25f5f7=this['_standarizeRootsData'](_0x56a40a,_0x536786,_0x1a4647);_0x347a5b['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x25f5f7,_0x536786['config']['get']('trackChanges.preview.renderFunction'));}),_0x39dd39=new _0x234ad1(_0x382e65,[_0x347a5b['view']]),_0x39dd39['attachToDom'](),_0x39dd39['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x536786['once']('destroy',()=>{_0x39dd39['detachFromDom']();});const _0x2e1596=_0x347a5b['view']['headerView']['class'];_0x347a5b['view']['headerView']['class']=_0x2e1596?_0x2e1596+'\x20ck-reset_all':'ck-reset_all',_0x347a5b['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x347a5b['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x14f1f2=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x34a52f=_0x14f1f2['previewMode'],_0x191ea7={};if('$labels'===_0x34a52f){for(const _0x2808e7 of _0x14f1f2['getMergeFieldsIds']())_0x191ea7[_0x2808e7]=_0x14f1f2['getLabel'](_0x2808e7)||_0x2808e7;}else{const _0x22582f='$defaultValues'===_0x34a52f?_0x14f1f2['getDefaultValues']():_0x14f1f2['getDataSetValues'](_0x34a52f,!0x0);for(const _0x5ea9f0 of Object['entries'](_0x22582f)){const [_0x8069d4,_0x233f08]=_0x5ea9f0;_0x191ea7[_0x8069d4]=null!==_0x233f08?_0x233f08:_0x14f1f2['getLabel'](_0x8069d4)||_0x8069d4;}}return{'mergeFieldsData':_0x191ea7};}['_standarizeRootsData'](_0x12e54b,_0x5801e6,_0x2c8a14){let _0x25ff1a;if('string'==typeof _0x12e54b){const _0x3eff0a=_0x5801e6['model']['document']['getRootNames']()[0x0];_0x25ff1a={[_0x3eff0a]:_0x12e54b};}else _0x25ff1a=_0x12e54b;const _0x5803e4=this['_fixMediaEmbeds'](_0x25ff1a,_0x5801e6),_0x37145b=function(_0xdc54b8,_0x2d1620){for(const [_0x105cfe,_0x5c7ce1]of _0xdc54b8)_0x5c7ce1['classes']=_0x2d1620[_0x105cfe]['classList']['value']['replace']('ck-focused','');return _0xdc54b8;}(this['_sortRoots'](_0x5801e6)['reduce']((_0x1f260e,_0x1a27b5)=>(_0x1f260e['push']([_0x1a27b5,{'content':_0x5803e4[_0x1a27b5],'classes':''}]),_0x1f260e),[]),_0x2c8a14);return _0x37145b;}['_fixMediaEmbeds'](_0x58608a,_0x4135a6){if(!_0x4135a6['plugins']['has']('MediaEmbedEditing'))return _0x58608a;const _0x487746=_0x4135a6['plugins']['get']('MediaEmbedEditing');for(const [_0x4a439d,_0x47a6a1]of Object['entries'](_0x58608a)){const _0x43e94e=document['createElement']('div');_0x43e94e['innerHTML']=_0x47a6a1,(_0x43e94e['querySelectorAll']('figure.media')['forEach'](_0x1ea322=>{const _0x1f247f=_0x1ea322['querySelector']('oembed');if(_0x1f247f){const _0x455a63=_0x1f247f['getAttribute']('url');if(_0x455a63){const _0x5554b4=_0x487746['registry']['getMediaViewElement'](new et(_0x4135a6['editing']['view']['document']),_0x455a63,{'elementName':'','renderForEditingView':!0x0}),_0x392055=document['createElement']('div');_0x392055['classList']['add']('ck-media__wrapper'),_0x5554b4['render'](_0x392055,_0x4135a6['editing']['view']['domConverter']),_0x1f247f['replaceWith'](_0x392055);}}}),_0x58608a[_0x4a439d]=_0x43e94e['innerHTML']);}return _0x58608a;}['_sortRoots'](_0xe09da9){if(!function(_0x479b1b){return void 0x0!==_0x479b1b['getRootsAttributes'];}(_0xe09da9))return _0xe09da9['model']['document']['getRootNames']();const _0x25c8f6=[],_0x28b3c8=new Map();for(const _0x52876e of _0xe09da9['model']['document']['getRootNames']()){const _0x15c54d=_0xe09da9['editing']['view']['getDomRoot'](_0x52876e)['getClientRects']()['item'](0x0);_0x25c8f6['push'](_0x52876e),_0x28b3c8['set'](_0x52876e,_0x15c54d);}return _0x25c8f6['sort']((_0x280669,_0x29f1f7)=>{const _0x1f1bb7=_0x28b3c8['get'](_0x280669),_0x663c9a=_0x28b3c8['get'](_0x29f1f7);return _0x1f1bb7['y']-_0x663c9a['y']||_0x1f1bb7['x']-_0x663c9a['x'];}),_0x25c8f6;}}class TrackChangesPreview extends _0x203e6b{static get['requires'](){return[TrackChangesData,_0x6c10b8];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59feb6){super(_0x59feb6),_0x59feb6['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0x59feb6['config']['define']('trackChanges.preview.renderFunction',(_0x53f7e2,_0x1a7c2e)=>{for(const _0x2f7512 of _0x1a7c2e)_0x53f7e2['appendChild'](_0x2f7512);});}}export{AcceptSuggestionCommand,BaseSuggestionThreadView,DiscardSuggestionCommand,ExecuteOnAllSuggestionsCommand,ExecuteOnSelectedSuggestionsCommand,PreviewFinalContentCommand,Suggestion,SuggestionDescriptionFactory,SuggestionThreadView,SuggestionView,TrackChanges,TrackChangesCommand,TrackChangesData,TrackChangesDataGetter,TrackChangesEditing,TrackChangesPreview,TrackChangesUI};