@ckeditor/ckeditor5-track-changes 48.5.0-alpha.3 → 48.5.0-alpha.5

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 _0x3b0b10,PendingActions as _0x305bdb,Plugin as _0x5cf544}from'@ckeditor/ckeditor5-core';import{Annotations as _0x5a86b5,Comments as _0x179390,CommentsRepository as _0x3f08e8,EditorAnnotations as _0x13b066}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x2faccb,Collection as _0x4dbd7f,FocusTracker as _0x5168be,KeystrokeHandler as _0x102cde,ObservableMixin as _0x37f228,getEnvKeystrokeText as _0x239078,insertToPriorityArray as _0x3e2cb1,logWarning as _0x5fc841,priorities as _0x3fd845,uid as _0x4aa562}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x3406c2,IconCancel as _0x2275d4,IconCheck as _0x1a9023,IconSparkle as _0xa2c210,IconTrackChanges as _0x1c9f01}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x108842,Dialog as _0x1f1a23,FocusCycler as _0x4a519b,ListSeparatorView as _0x2c8915,MenuBarMenuListItemButtonView as _0x51db7d,MenuBarMenuListItemView as _0x2248bd,MenuBarMenuListView as _0x56e832,MenuBarMenuView as _0x44568a,SplitButtonView as _0x3803ab,UIModel as _0x2d34e9,View as _0x4c905d,ViewCollection as _0x3be405,addListToDropdown as _0x2e2a83,createDropdown as _0x1b326e,normalizeColorOptions as _0xed1c81}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x23bc98,CollaborationUserColor as _0x5c15c6,FOCUS_ANNOTATION_KEYSTROKE as _0x4b3db1,LateFocusButtonView as _0x4594aa,PillView as _0x23e89f,SuggestionsConversion as _0x479c91,User as _0x2b2ea0,UserView as _0x4dfbd0,Users as _0x14ae03,fixElementSuggestionRange as _0x3afe45,getAllMarkersDomElementsSorted as _0x432206,getDateTimeFormatter as _0x53f4d4,hashObject as _0x43717f,isInvalidAttributeOperation as _0x13baab,sanitizeEditorConfig as _0x9d7e32,setupThreadKeyboardNavigation as _0x500825,splitSuggestionMarkerName as tt,surroundingMarkersDetector as et,trimHtml as nt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as it,ModelLivePosition as st,ModelLiveRange as rt,ViewDowncastWriter as ot}from'@ckeditor/ckeditor5-engine';import{cloneDeep as at,isEqual as ct,omit as lt,set as ut,unset as dt}from'es-toolkit/compat';import{ClipboardMarkersUtils as ht,ClipboardPipeline as gt}from'@ckeditor/ckeditor5-clipboard';import{Delete as ft,Input as mt}from'@ckeditor/ckeditor5-typing';import{Enter as Et}from'@ckeditor/ckeditor5-enter';var Tt=class extends _0x3b0b10{['_enabledCommands'];constructor(_0x39cc20,_0x2602bb){super(_0x39cc20),this['_enabledCommands']=_0x2602bb,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 _0x3443e9 of this['editor']['commands']['commands']())_0x3443e9['affectsData']&&!this['_enabledCommands']['has'](_0x3443e9)&&_0x3443e9['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x110d3b of this['editor']['commands']['commands']())_0x110d3b['affectsData']&&!this['_enabledCommands']['has'](_0x110d3b)&&_0x110d3b['clearForceDisabled']('TrackChangesCommand');}},_t=class extends _0x3b0b10{_suggestions;constructor(_0x57ece7,_0xc0071c){super(_0x57ece7),this['_suggestions']=_0xc0071c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x4df717){const _0x24e82e=this['_suggestions']['get'](_0x4df717);if(!_0x24e82e)throw new _0x2faccb('track-changes-accept-suggestion-not-found',this);const _0x38451b=_0x24e82e['getRanges']();this['editor']['model']['canEditAt'](_0x38451b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x24e82e);}},pt=class extends _0x3b0b10{_suggestions;constructor(_0x79377e,_0x5b6833){super(_0x79377e),this['_suggestions']=_0x5b6833,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x5cb6aa){const _0xd2f475=this['_suggestions']['get'](_0x5cb6aa);if(!_0xd2f475)throw new _0x2faccb('track-changes-discard-suggestion-not-found',this);const _0x4e7518=_0xd2f475['getRanges']();this['editor']['model']['canEditAt'](_0x4e7518)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xd2f475);}};function Lt(_0x3a1629,_0x58f87c){let _0x4be2a6='';return _0x4be2a6+=_0x3a1629['split']('*')['map']((_0xb106c,_0x5a99ce)=>_0x5a99ce%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+It(_0xb106c)+'</span>':It(_0xb106c))['join'](''),_0x58f87c&&(_0x4be2a6+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x58f87c['value']+'\x22\x20title=\x22'+_0x58f87c['title']+'\x22></span>'),_0x4be2a6;}function It(_0x5647ad){const _0x24a068=document['createElement']('span');return _0x24a068['innerText']=_0x5647ad,_0x24a068['innerHTML'];}function At(_0x7e9544){return _0x7e9544['sort']((_0x6448ac,_0x90f3d1)=>'attribute'===_0x6448ac['type']&&'attribute'!==_0x90f3d1['type']?-0x1:'attribute'!==_0x6448ac['type']&&'attribute'===_0x90f3d1['type']?0x1:'deletion'==_0x6448ac['type']&&'deletion'!=_0x90f3d1['type']?-0x1:'deletion'!=_0x6448ac['type']&&'deletion'==_0x90f3d1['type']?0x1:0x0);}function bt(_0x426529,_0x13a307){let _0x4c40d1,_0x39903b=0x0;const _0x3d1bca=[],_0x46c1e8=_0x13a307['schema'];for(;_0x39903b<_0x426529['length'];){const _0x1640a5=_0x426529[_0x39903b],_0x4b1eac=_0x426529[_0x39903b+0x1];_0x4c40d1||(_0x4c40d1=_0x13a307['createPositionBefore'](_0x1640a5)),kt(_0x13a307,_0x1640a5,_0x4b1eac)||(_0x3d1bca['push'](_0x13a307['createRange'](_0x4c40d1,_0x46c1e8['isObject'](_0x1640a5)?_0x13a307['createPositionAfter'](_0x1640a5):_0x13a307['createPositionAt'](_0x1640a5,'end'))),_0x4c40d1=null),_0x39903b++;}return _0x3d1bca;}function kt(_0x3365f6,_0x4094e2,_0x5caddb){if(!_0x5caddb)return!0x1;const _0x309383=_0x3365f6['createPositionAfter'](_0x4094e2),_0x1f0efb=_0x3365f6['createPositionBefore'](_0x5caddb);return _0x309383['isTouching'](_0x1f0efb);}function Ct(_0x4bfa0c,_0x46288a,_0x2d324c){for(;_0x2d324c['length'];){const _0xd07a64=_0x2d324c['splice'](0x0,0x64);_0x4bfa0c['change'](()=>{for(const _0x215008 of _0xd07a64)_0x215008['isInContent']&&_0x46288a['execute'](_0x215008['id']);});}}var Rt=class extends _0x3b0b10{['_command'];_suggestions;constructor(_0x146f56,_0x581908,_0x2a9b3d){super(_0x146f56),this['_command']=_0x581908,this['_suggestions']=_0x2a9b3d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2a2eb7=Array['from'](this['_suggestions']['values']())['some'](_0x49a18a=>_0x49a18a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2a2eb7;}execute(){const _0x335b51=At(Array['from'](this['_suggestions']['values']()));for(const _0x5bb7ac of _0x335b51){const _0xe2b3db=_0x5bb7ac['getRanges']();if(!this['editor']['model']['canEditAt'](_0xe2b3db))return;}Ct(this['editor']['model'],this['_command'],_0x335b51);}},yt=class extends _0x3b0b10{['_command'];_suggestions;_selectedSuggestions;constructor(_0xb422e1,_0x1632a8,_0x3daccb){super(_0xb422e1),this['_command']=_0x1632a8,this['_suggestions']=_0x3daccb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3a2d05=this['editor']['model']['document']['selection'],_0x3965f2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x12f0e9,_0x376e9b){const _0x313c44=Array['from'](_0x12f0e9['getRanges']()),_0x2eaed3=new Set();for(const _0x1f7c53 of _0x376e9b)if(_0x1f7c53['isInContent']){for(const _0x3c287e of _0x313c44)for(const _0x147f91 of _0x1f7c53['getRanges']())(_0x3c287e['isIntersecting'](_0x147f91)||_0x12f0e9['isCollapsed']&&!_0x1f7c53['isMultiRange']&&_0x1f7c53['next']&&_0x147f91['end']['isTouching'](_0x3c287e['start']))&&_0x2eaed3['add'](_0x1f7c53);}return _0x2eaed3;}(_0x3a2d05,_0x3965f2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x18ad73=At(Array['from'](this['_selectedSuggestions']));for(const _0x5d4a93 of _0x18ad73){const _0x577dd3=_0x5d4a93['getRanges']();if(!this['editor']['model']['canEditAt'](_0x577dd3))return;}Ct(this['editor']['model'],this['_command'],_0x18ad73);}};const Nt=/* #__PURE__ -- @preserve */
24
- _0x37f228();var St=class Suggestion extends Nt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x22aff8,_0x4a9cb1){super(),this['id']=_0x4a9cb1['id'],this['type']=_0x4a9cb1['type'],this['subType']=_0x4a9cb1['subType']||null,this['author']=_0x4a9cb1['author'],this['creator']=_0x4a9cb1['creator']||_0x4a9cb1['author'],this['data']=null,this['_originalSuggestionId']=_0x4a9cb1['originalSuggestionId']||null,this['_model']=_0x22aff8,this['_onAccept']=_0x4a9cb1['onAccept'],this['_onDiscard']=_0x4a9cb1['onDiscard'],this['_onAttributesChange']=_0x4a9cb1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4a9cb1['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x161040=this;for(;_0x161040['previous'];)_0x161040=_0x161040['previous'];return _0x161040;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x55b002){this['_markerNames']['add'](_0x55b002);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x48222a=>this['_model']['markers']['get'](_0x48222a))['filter'](_0x1cc812=>_0x1cc812);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x8c6fa=>{for(const _0xc8f3be of this['getMarkers']())_0x8c6fa['removeMarker'](_0xc8f3be);}),this['_markerNames']['clear']();}['removeMarker'](_0xf4c0d1){this['_model']['change'](_0x230261=>{_0x230261['removeMarker'](_0xf4c0d1);}),this['_markerNames']['delete'](_0xf4c0d1);}['addRange'](_0x91bc78){const _0x20d1f5='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x20d1f5),this['_model']['change'](_0x141c6f=>{_0x141c6f['addMarker'](_0x20d1f5,{'range':_0x91bc78,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x2a602d){for(const _0x14fe65 of this['getRanges']())if(_0x14fe65['isIntersecting'](_0x2a602d))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x3a4f20=>_0x3a4f20['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x33f71c,_0x22fba4)=>[..._0x33f71c,..._0x22fba4['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x258aa1=this['getRanges']();if(0x1!=_0x258aa1['length'])return null;const _0x20534c=_0x258aa1[0x0],_0x1580e1=_0x20534c['start']['nodeAfter'],_0x283319=_0x20534c['end']['nodeBefore'];return _0x1580e1 instanceof it?_0x1580e1!=_0x283319?null:_0x1580e1: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 _0x21261f=[];let _0xef1898=this['head'];for(;_0xef1898;)_0x21261f['push'](_0xef1898),_0xef1898=_0xef1898['next'];return _0x21261f;}setAttribute(_0x518349,_0x2614ed){const _0xefcf01=at(this['attributes']);ut(_0xefcf01,_0x518349,_0x2614ed),ct(_0xefcf01,this['attributes'])||(this['attributes']=_0xefcf01,this['_onAttributesChange'](_0xefcf01));}removeAttribute(_0x3d0fbf){const _0x3a53ff=at(this['attributes']);dt(_0x3a53ff,_0x3d0fbf),ct(_0x3a53ff,this['attributes'])||(this['attributes']=_0x3a53ff,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 _0x4aa562()['substr'](0x1,0x5);}};function Mt(_0x12f6d2,_0x5016fb,_0x13c94f){const _0x1a7c25=_0x12f6d2['t'],t=_0x12f6d2['t'];switch(_0x5016fb){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',_0x13c94f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x13c94f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x13c94f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x13c94f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x13c94f);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',_0x13c94f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x13c94f);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',_0x13c94f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x13c94f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x13c94f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x13c94f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x13c94f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x13c94f);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x13c94f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x13c94f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x13c94f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x13c94f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x13c94f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x13c94f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x13c94f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x13c94f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x13c94f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x13c94f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x13c94f);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x13c94f);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'},_0x13c94f);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x13c94f);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x13c94f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x13c94f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x13c94f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x13c94f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x13c94f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x13c94f);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'},_0x13c94f);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'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x13c94f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x13c94f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x13c94f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x13c94f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x13c94f);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'},_0x13c94f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x13c94f);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'},_0x13c94f);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'},_0x13c94f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x13c94f);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'},_0x13c94f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x13c94f);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'},_0x13c94f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x13c94f);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x13c94f);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x13c94f);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x13c94f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x13c94f);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'},_0x13c94f);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x13c94f);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x1a7c25({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x13c94f);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1a7c25({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x13c94f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x13c94f);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'},_0x13c94f);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'},_0x13c94f);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'},_0x13c94f);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5016fb;}}var Ot=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x1d38f7,_0x440e33){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1d38f7,this['_locale']=_0x440e33;}getDescriptions(_0x3f264f){const _0x201c1f=[],_0x43d832=new Set(),_0x138cfc=new Set();for(let _0x62efec=0x0;_0x62efec<_0x3f264f['length'];_0x62efec++){const _0x34c3ed=_0x3f264f[_0x62efec];if(!_0x34c3ed['isInContent'])continue;const _0x151afe=this['_handleCustomCallbackDescription'](_0x34c3ed);if(_0x151afe){if(null!=_0x34c3ed['subType']){if(_0x43d832['has'](_0x34c3ed['subType']))continue;_0x43d832['add'](_0x34c3ed['subType']);}_0x201c1f['push'](_0x151afe);}else{if('attribute'==_0x34c3ed['type']){const _0x48dd8f=_0x34c3ed['data']['key'];if(_0x138cfc['has'](_0x48dd8f))continue;_0x138cfc['add'](_0x34c3ed['data']['key']),'$elementName'==_0x48dd8f?this['_handleRenameSuggestionDescription'](_0x201c1f,_0x34c3ed):this['_handleAttributeSuggestionDescription'](_0x201c1f,_0x34c3ed);continue;}'insertion'!=_0x34c3ed['type']&&'deletion'!=_0x34c3ed['type']||this['_handleInsertRemoveSuggestionDescription'](_0x201c1f,_0x34c3ed,_0x3f264f[_0x62efec+0x1]);}}return this['_resolveDescriptionItems'](_0x201c1f);}registerDescriptionCallback(_0x2f7947){this['_customCallbacks']['push'](_0x2f7947);}registerElementLabel(_0x2ba3b9,_0x2f6ad7,_0x449dcb=_0x3fd845['normal']){'function'==typeof _0x2ba3b9?_0x3e2cb1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2ba3b9,'label':_0x2f6ad7,'priority':_0x449dcb}):this['_itemLabels']['set'](_0x2ba3b9,_0x2f6ad7);}registerAttributeLabel(_0x948b9f,_0x1bd6b0){this['_attributeLabels']['set'](_0x948b9f,_0x1bd6b0);}getItemLabel(_0x4cbd10,_0x4323f2=0x1){let _0x13b2b6;for(const _0x5532d5 of this['_itemLabelsCallbacks'])if(_0x5532d5['matchingCallback'](_0x4cbd10)){_0x13b2b6=_0x5532d5['label'];break;}return _0x13b2b6||(_0x13b2b6=this['_itemLabels']['get'](_0x4cbd10['name'])),_0x13b2b6?_0x13b2b6(_0x4323f2):0x1!==_0x4323f2?_0x4323f2+'\x20'+_0x4cbd10['name']+'s':''+_0x4cbd10['name'];}_addDescriptionItems(_0x8eb8d3,_0x3530fa){const _0x418f59=_0x3530fa['getFirstRange']()['getWalker'](),_0x31ffa3='insertion'==_0x3530fa['type']?'add':'remove';for(const _0x35e256 of _0x418f59){const _0x2b1fd5=_0x35e256['item'],_0x1d864f=_0x8eb8d3[_0x8eb8d3['length']-0x1];if(_0x2b1fd5['is']('$textProxy'))_0x1d864f&&_0x1d864f['type']['indexOf']('Container')>-0x1&&_0x8eb8d3['pop'](),_0x1d864f&&'text'==_0x1d864f['type']?_0x1d864f[_0x31ffa3]+=_0x2b1fd5['data']:_0x8eb8d3['push']({'type':'text','add':'add'==_0x31ffa3?_0x2b1fd5['data']:'','remove':'remove'==_0x31ffa3?_0x2b1fd5['data']:''});else{if(this['_schema']['isObject'](_0x2b1fd5)){const _0x3b0baa=_0x2b1fd5;if(_0x1d864f&&_0x1d864f['type']['indexOf']('Container')>-0x1&&_0x8eb8d3['pop'](),'elementEnd'==_0x35e256['type'])continue;_0x1d864f&&_0x1d864f['type']==_0x31ffa3+'Object'&&_0x1d864f['element']['name']==_0x3b0baa['name']?_0x1d864f['quantity']++:_0x8eb8d3['push']({'type':_0x31ffa3+'Object','element':_0x3b0baa,'quantity':0x1}),_0x418f59['skip'](_0xa47811=>!('elementEnd'==_0xa47811['type']&&_0xa47811['item']==_0x2b1fd5));}else{if(this['_schema']['checkChild'](_0x2b1fd5,'$text')||_0x2b1fd5['is']('element','softBreak')){const _0x2bb589=_0x2b1fd5;if('add'==_0x31ffa3&&'elementStart'==_0x35e256['type']||'remove'==_0x31ffa3&&'elementEnd'==_0x35e256['type'])continue;if(_0x1d864f&&-0x1==_0x1d864f['type']['indexOf']('Container')){'text'==_0x1d864f['type']&&(_0x1d864f[_0x31ffa3]+='\x0a');continue;}let _0x3323f4;if(_0x3323f4='add'==_0x31ffa3?_0x2bb589['nextSibling']&&!this['_schema']['isObject'](_0x2bb589['nextSibling'])?_0x2bb589['nextSibling']:null:_0x2bb589['previousSibling']&&!this['_schema']['isObject'](_0x2bb589['previousSibling'])?_0x2bb589['previousSibling']:null,_0x2bb589['isEmpty']||_0x3323f4&&_0x3323f4['isEmpty']){const _0x4b2e1f=_0x3323f4&&_0x3323f4['isEmpty']?_0x3323f4:_0x2bb589;_0x1d864f&&_0x1d864f['type']==_0x31ffa3+'EmptyContainer'&&_0x1d864f['element']['name']==_0x4b2e1f['name']?_0x1d864f['quantity']++:_0x8eb8d3['push']({'type':_0x31ffa3+'EmptyContainer','element':_0x4b2e1f,'quantity':0x1});}else _0x8eb8d3['push']({'type':_0x31ffa3+'Container','element':_0x2bb589});}}}}}_resolveDescriptionItems(_0x19c2d9){const _0x520b31=this['_locale'],_0x1fb583=[],_0xe52bfc=[],_0x5e2cc2=[];for(const _0x1cc37c of _0x19c2d9)switch(_0x1cc37c['type']){case'text':if(_0x1cc37c['add']=_0x1cc37c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1cc37c['remove']=_0x1cc37c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1cc37c['add']&&''!=_0x1cc37c['remove']){_0x1fb583['push']({'type':'replace','content':Mt(_0x520b31,'REPLACE_TEXT',['\x22'+_0x1cc37c['remove']+'\x22','\x22'+_0x1cc37c['add']+'\x22'])});continue;}if(null!=_0x1cc37c['add']['match'](/^ +$/)){_0x1fb583['push']({'type':'insertion','content':Mt(_0x520b31,'*Insert:*\x20%0',Mt(_0x520b31,'ELEMENT_SPACE',_0x1cc37c['add']['length']))});continue;}if(null!=_0x1cc37c['remove']['match'](/^ +$/)){_0x1fb583['push']({'type':'deletion','content':Mt(_0x520b31,'*Remove:*\x20%0',Mt(_0x520b31,'ELEMENT_SPACE',_0x1cc37c['remove']['length']))});continue;}if(''!=_0x1cc37c['add']){_0x1fb583['push']({'type':'insertion','content':Mt(_0x520b31,'*Insert:*\x20%0','\x22'+_0x1cc37c['add']+'\x22')});continue;}_0x1fb583['push']({'type':'deletion','content':Mt(_0x520b31,'*Remove:*\x20%0','\x22'+_0x1cc37c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1fb583['push']({'type':'insertion','content':Mt(_0x520b31,'*Insert:*\x20%0',this['getItemLabel'](_0x1cc37c['element'],_0x1cc37c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1fb583['push']({'type':'deletion','content':Mt(_0x520b31,'*Remove:*\x20%0',this['getItemLabel'](_0x1cc37c['element'],_0x1cc37c['quantity']))});continue;case'addContainer':_0x1fb583['push']({'type':'insertion','content':Mt(_0x520b31,'*Split:*\x20%0',this['getItemLabel'](_0x1cc37c['element'],_0x1cc37c['quantity']))});continue;case'removeContainer':_0x1fb583['push']({'type':'deletion','content':Mt(_0x520b31,'*Merge:*\x20%0',this['getItemLabel'](_0x1cc37c['element'],_0x1cc37c['quantity']))});continue;case'addFormat':_0xe52bfc['push'](_0x1cc37c['key']);continue;case'removeFormat':_0x5e2cc2['push'](_0x1cc37c['key']);continue;default:_0x1fb583['push'](_0x1cc37c);}if(_0xe52bfc['length']){const _0x144be3=_0xe52bfc['map'](_0x43fc82=>this['_attributeLabels']['has'](_0x43fc82)?this['_attributeLabels']['get'](_0x43fc82):_0x43fc82)['join'](',\x20');_0x1fb583['push']({'type':'format','content':Mt(this['_locale'],'*Set\x20format:*\x20%0',_0x144be3)});}if(_0x5e2cc2['length']){const _0x57b184=_0x5e2cc2['map'](_0x4b97d0=>this['_attributeLabels']['has'](_0x4b97d0)?this['_attributeLabels']['get'](_0x4b97d0):_0x4b97d0)['join'](',\x20');_0x1fb583['push']({'type':'format','content':Mt(this['_locale'],'*Remove\x20format:*\x20%0',_0x57b184)});}return _0x1fb583;}_handleCustomCallbackDescription(_0x8a5214){for(const _0x182289 of this['_customCallbacks']){const _0x2532a8=_0x182289(_0x8a5214);if(_0x2532a8&&'type'in _0x2532a8)return _0x2532a8;}}_handleAttributeSuggestionDescription(_0x699c72,_0x3debfb){const _0x24061a=_0x3debfb['data'],_0x237427=void 0x0===_0x24061a['newValue']?'removeFormat':'addFormat';_0x699c72['push']({'type':_0x237427,'key':_0x24061a['key']});}_handleRenameSuggestionDescription(_0xa25039,_0x2820fa){_0xa25039['push']({'type':'format','content':Mt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2820fa['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x221960,_0x104a42,_0x6c5e78){if(this['_addDescriptionItems'](_0x221960,_0x104a42),_0x6c5e78&&_0x6c5e78['getFirstRange']()&&!_0x104a42['getFirstRange']()['end']['isEqual'](_0x6c5e78['getFirstRange']()['start'])){const _0x3651ac=_0x221960[_0x221960['length']-0x1],_0x37b978='insertion'==_0x104a42['type']?'add':'remove';_0x3651ac&&'text'==_0x3651ac['type']&&(_0x3651ac[_0x37b978]+='\x0a');}}},wt=class extends _0x5cf544{afterInit(){const _0x374170=this['editor'],_0x309cd5=_0x374170['plugins']['get']('TrackChangesEditing');_0x374170['commands']['get']('showAIAssistant')&&_0x309cd5['enableCommand']('showAIAssistant');}},Ft=class extends _0x5cf544{afterInit(){const _0x1b9a2b=this['editor'],_0x1db18c=_0x1b9a2b['plugins']['get']('TrackChangesEditing');_0x1b9a2b['commands']['get']('toggleAi')&&_0x1db18c['enableCommand']('toggleAi');}},Bt=class extends _0x5cf544{afterInit(){const _0x54a557=this['editor'],_0x3f3e77=_0x54a557['plugins']['get']('TrackChangesEditing');_0x54a557['commands']['get']('aiQuickAction')&&_0x3f3e77['enableCommand']('aiQuickAction');}},vt=class extends _0x5cf544{afterInit(){const _0x243caf=this['editor'],_0x37a87d=_0x243caf['locale'];if(!_0x243caf['plugins']['has']('AlignmentEditing'))return;const _0x419398=_0x243caf['plugins']['get']('TrackChangesEditing');_0x419398['enableDefaultAttributesIntegration']('alignment'),_0x419398['descriptionFactory']['registerAttributeLabel']('alignment',Mt(_0x37a87d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x49ec15=this['editor'],_0x1016c8=_0x49ec15['locale'];_0x49ec15['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f2ba6=>{if('formatBlock'!=_0x2f2ba6['type'])return;const {data:_0x4da6ba}=_0x2f2ba6;if(_0x4da6ba&&'alignment'==_0x4da6ba['commandName']){const _0x367aba=_0x4da6ba['commandParams'][0x0]['value'];return{'type':'format','content':Mt(_0x1016c8,'*Format:*\x20%0',function(_0x59d153){switch(_0x59d153){case'left':return Mt(_0x1016c8,'FORMAT_ALIGN_TO_LEFT');case'right':return Mt(_0x1016c8,'FORMAT_ALIGN_TO_RIGHT');case'center':return Mt(_0x1016c8,'FORMAT_ALIGN_TO_CENTER');case'justify':return Mt(_0x1016c8,'FORMAT_JUSTIFY_TEXT');}}(_0x367aba))};}});}};const Dt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Ut=class extends _0x5cf544{afterInit(){const _0x24039b=this['editor'],_0x18c935=_0x24039b['plugins']['get']('TrackChangesEditing'),_0x4ea090=_0x24039b['locale'];for(const _0x24eb8c of Dt){if(!_0x24039b['plugins']['has'](_0x24eb8c))continue;const _0x198e1e=_0x24eb8c['slice'](0x0,-0x7)['toLowerCase'](),_0x547856='FORMAT_'+_0x198e1e['toUpperCase']();_0x18c935['enableDefaultAttributesIntegration'](_0x198e1e),_0x18c935['descriptionFactory']['registerAttributeLabel'](_0x198e1e,Mt(_0x4ea090,_0x547856));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x42a82e=this['editor'],_0x510d7d=_0x42a82e['locale'],_0x436d85=_0x42a82e['plugins']['get']('TrackChangesEditing');function _0x20077f(_0x35d728,_0x5605b1){_0x436d85['descriptionFactory']['registerDescriptionCallback'](_0x541f5e=>{if('formatInline'!=_0x541f5e['type'])return;const {data:_0x5b5a0e}=_0x541f5e;return _0x5b5a0e&&_0x5b5a0e['commandName']===_0x35d728?_0x5b5a0e['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x510d7d,'*Format:*\x20%0',_0x5605b1)}:{'type':'format','content':Mt(_0x510d7d,'*Remove\x20format:*\x20%0',_0x5605b1)}:void 0x0;});}_0x20077f('bold',Mt(_0x510d7d,'FORMAT_BOLD')),_0x20077f('italic',Mt(_0x510d7d,'FORMAT_ITALIC')),_0x20077f('underline',Mt(_0x510d7d,'FORMAT_UNDERLINE')),_0x20077f('code',Mt(_0x510d7d,'FORMAT_CODE')),_0x20077f('strikethrough',Mt(_0x510d7d,'FORMAT_STRIKETHROUGH')),_0x20077f('subscript',Mt(_0x510d7d,'FORMAT_SUBSCRIPT')),_0x20077f('superscript',Mt(_0x510d7d,'FORMAT_SUPERSCRIPT'));}},Pt=class extends _0x5cf544{afterInit(){const _0x59852e=this['editor'],_0x5de1bc=_0x59852e['locale'];if(!_0x59852e['plugins']['has']('BlockQuoteEditing'))return;const _0x155228=_0x59852e['plugins']['get']('TrackChangesEditing'),_0x4a55a7=this['editor']['commands']['get']('blockQuote');_0x155228['enableCommand']('blockQuote',(_0x3d4a0b,_0x5cc87b={})=>{const _0x59da9f=this['editor']['model']['document']['selection'],_0x5ba91a=_0x5cc87b&&void 0x0!==_0x5cc87b['forceValue']?_0x5cc87b['forceValue']:!_0x4a55a7['value'];let _0x52d462=[];if(_0x5ba91a){const _0x4923d8=Array['from'](_0x59da9f['getSelectedBlocks']())['filter'](_0x1e00fb=>xt(_0x1e00fb)||function(_0x47b172,_0x12765b){const _0x244535=_0x12765b['createContext'](_0x47b172['parent']);return!!_0x12765b['checkChild'](_0x244535,'blockQuote')&&!!_0x12765b['checkChild'](_0x244535['push']('blockQuote'),_0x47b172);}(_0x1e00fb,this['editor']['model']['schema']));_0x52d462=bt(_0x4923d8,_0x59852e['model']);}else{const _0x4b8717=Array['from'](_0x59da9f['getSelectedBlocks']())['filter'](_0x503266=>xt(_0x503266));_0x52d462=bt(_0x4b8717,_0x59852e['model']);}_0x59852e['model']['change'](()=>{for(const _0x2ef0f3 of _0x52d462)_0x155228['markBlockFormat'](_0x2ef0f3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5ba91a}]});});}),_0x155228['descriptionFactory']['registerDescriptionCallback'](_0x5dbbde=>{const {data:_0x3c37c4}=_0x5dbbde;if(_0x3c37c4&&'blockQuote'==_0x3c37c4['commandName']){const _0x31fe8a=Mt(_0x5de1bc,'ELEMENT_BLOCK_QUOTE');return _0x3c37c4['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x5de1bc,'*Set\x20format:*\x20%0',_0x31fe8a)}:{'type':'format','content':Mt(_0x5de1bc,'*Remove\x20format:*\x20%0',_0x31fe8a)};}});}};function xt(_0x1ee31e){return'blockQuote'==_0x1ee31e['parent']['name'];}var Gt=class extends _0x5cf544{afterInit(){const _0x39b6d2=this['editor'],_0x3d708b=_0x39b6d2['locale'],_0x54b265=_0x39b6d2['plugins']['get']('TrackChangesEditing');_0x39b6d2['plugins']['has']('BookmarkEditing')&&(_0x54b265['enableCommand']('insertBookmark'),_0x54b265['enableDefaultAttributesIntegration']('updateBookmark'),_0x54b265['descriptionFactory']['registerDescriptionCallback'](_0x47a809=>{if('insertion'!=_0x47a809['type']&&'deletion'!=_0x47a809['type']&&'attribute'!=_0x47a809['type'])return;const _0x3c2ffb=_0x47a809['getContainedElement']();if(null==_0x3c2ffb)return;if(!_0x3c2ffb['is']('element','bookmark'))return;const _0x33727b=_0x3c2ffb['getAttribute']('bookmarkId');if('insertion'==_0x47a809['type'])return{'type':'insertion','content':Mt(_0x3d708b,'*Insert:*\x20%0','\x22'+_0x33727b+'\x22\x20'+Mt(_0x3d708b,'ELEMENT_BOOKMARK'))};if('deletion'==_0x47a809['type'])return{'type':'deletion','content':Mt(_0x3d708b,'*Remove:*\x20%0','\x22'+_0x33727b+'\x22\x20'+Mt(_0x3d708b,'ELEMENT_BOOKMARK'))};const {data:_0xe3936e}=_0x47a809;return _0xe3936e&&'bookmarkId'==_0xe3936e['key']?{'type':'format','content':Mt(_0x3d708b,'*Set\x20bookmark:*\x20%0','\x22'+_0xe3936e['newValue']+'\x22')}:void 0x0;}));}},Ht=class extends _0x5cf544{afterInit(){const _0x1ec321=this['editor'];_0x1ec321['plugins']['has']('CaseChange')&&(_0x1ec321['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1ec321['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1ec321['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},$t=class extends _0x5cf544{afterInit(){const _0xb9b321=this['editor'];_0xb9b321['commands']['get']('ckbox')&&_0xb9b321['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Wt=class extends _0x5cf544{static get requires(){return[ht,gt];}constructor(_0x5c3648){super(_0x5c3648),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x245d35=this['editor'],_0x213b54=_0x245d35['plugins']['get']('ClipboardMarkersUtils'),_0x1a9151=_0x245d35['plugins']['get'](gt);_0x213b54['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x1a9151['on']('outputTransformation',(_0x2ee171,_0x21b59f)=>{const _0x3575ee=this['_getSuggestionEntries'](_0x21b59f);for(const [_0x47096e,_0x320dca]of _0x21b59f['content']['markers']){const _0x4c2c20=rt['_fromRangeInDocumentFragment'](_0x320dca,_0x245d35['model']);function _0x11a948(){_0x4c2c20['detach'](),_0x21b59f['content']['markers']['delete'](_0x47096e);}_0x4c2c20['on']('change:drop',_0x11a948),(_0x47096e['startsWith']('suggestion:')||_0x47096e['startsWith']('comment:'))&&_0x4c2c20['on']('change:range',()=>{_0x4c2c20['isCollapsed']&&_0x11a948();}),_0x21b59f['content']['markers']['set'](_0x47096e,_0x4c2c20);}const _0x5cc877=_0x3575ee['filter'](_0x3d4822=>'deletion'===_0x3d4822['meta']['type'])['map'](_0x4ecad=>_0x4ecad['modelRange']);if(this['_shouldSkipDeletions'](_0x5cc877,_0x21b59f['content']))return[..._0x3575ee]['forEach'](_0x11cc9d=>{_0x21b59f['content']['markers']['get'](_0x11cc9d['markerName'])['detach'](),_0x21b59f['content']['markers']['delete'](_0x11cc9d['markerName']);}),void this['_restoreRegularRanges'](_0x21b59f['content']['markers']);[..._0x3575ee]['forEach'](_0x3cb632=>{const _0x8d4596=_0x245d35['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x3cb632['meta']['type'],_0x3cb632['meta']['subType'],'accept'),{markerName:_0x1e078f,meta:_0x147626}=_0x3cb632;if(_0x21b59f['content']['markers']['has'](_0x1e078f)){switch(_0x147626['type']){case'deletion':if('tableRow'===_0x147626['subType']||'tableColumn'===_0x147626['subType']){if(!_0x245d35['plugins']['has']('TableUtils'))break;const _0xb78ae0=_0x245d35['plugins']['get']('TableUtils'),_0x1deaf7=_0xb78ae0['getSelectionAffectedTableCells'](_0x245d35['model']['createSelection'](_0x21b59f['content']['markers']['get'](_0x1e078f))),_0x32c577=_0x1deaf7[0x0]['findAncestor']('table');if('tableRow'===_0x147626['subType']){const {first:_0x15ae58,last:_0x13c164}=_0xb78ae0['getRowIndexes'](_0x1deaf7);_0xb78ae0['removeRows'](_0x32c577,{'at':_0x15ae58,'rows':_0x13c164-_0x15ae58+0x1});}else{const {first:_0x14176d,last:_0x1a59f6}=_0xb78ae0['getColumnIndexes'](_0x1deaf7);_0xb78ae0['removeColumns'](_0x32c577,{'at':_0x14176d,'columns':_0x1a59f6-_0x14176d+0x1});}break;}_0x8d4596([_0x21b59f['content']['markers']['get'](_0x1e078f)]);}_0x21b59f['content']['markers']['has'](_0x1e078f)&&(_0x21b59f['content']['markers']['get'](_0x1e078f)['detach'](),_0x21b59f['content']['markers']['delete'](_0x1e078f));}}),this['_restoreRegularRanges'](_0x21b59f['content']['markers']);});}_getSuggestionEntries(_0x2af4f1){const _0x660454=_0xe983cf=>'dragstart'===_0x2af4f1['method']?_0xe983cf['split'](':')['slice'](0x0,-0x1)['join'](':'):_0xe983cf;return Array['from'](_0x2af4f1['content']['markers'])['map'](([_0x1f9e64,_0x5a84e2])=>({'markerName':_0x1f9e64,'modelRange':_0x5a84e2,'meta':tt(_0x660454(_0x1f9e64))}))['filter'](({meta:_0x32c551})=>'suggestion'===_0x32c551['group']);}_shouldSkipDeletions(_0x5ba430,_0xe6fb98){if(!_0x5ba430['length'])return!0x1;let _0x5ae711=[this['editor']['model']['createRangeIn'](_0xe6fb98)];for(const _0x2ba690 of _0x5ba430)_0x5ae711=_0x5ae711['flatMap'](_0x5c61a4=>_0x5c61a4['getDifference'](_0x2ba690));return!_0x5ae711['some'](_0x5f2727=>this['editor']['model']['hasContent'](_0x5f2727,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x2ac7b7){[..._0x2ac7b7['keys']()]['forEach'](_0x4538b6=>{const _0x1c03b8=_0x2ac7b7['get'](_0x4538b6);_0x1c03b8['detach'](),_0x2ac7b7['set'](_0x4538b6,_0x1c03b8['toRange']());});}},Vt=class extends _0x5cf544{afterInit(){const _0x532e03=this['editor'];if(!_0x532e03['plugins']['has']('CodeBlock'))return;const _0x56b8d8=_0x532e03['plugins']['get']('TrackChangesEditing'),_0x327b6b=_0x532e03['locale'],_0x56ed43=_0x532e03['config']['get']('codeBlock')['languages'],_0x3345c2=_0x532e03['commands']['get']('codeBlock');_0x56b8d8['enableCommand']('indentCodeBlock'),_0x56b8d8['enableCommand']('outdentCodeBlock'),_0x56b8d8['enableCommand']('codeBlock',(_0x19b876,_0x28f10d={})=>{const _0x4ee62b=_0x532e03['model'],_0x1143bb=_0x532e03['model']['document']['selection'],_0x5a04da=_0x28f10d&&void 0x0!==_0x28f10d['forceValue']?_0x28f10d['forceValue']:!_0x3345c2['value'];let _0x10853a;_0x28f10d['language']||(_0x28f10d['language']=_0x56ed43[0x0]['language']),_0x10853a=_0x5a04da?Array['from'](_0x1143bb['getSelectedBlocks']())['filter'](_0x489a3d=>{return jt(_0x489a3d)||(_0x4e3b32=_0x489a3d,_0x5692e8=_0x4ee62b['schema'],!_0x4e3b32['is']('rootElement')&&!_0x5692e8['isLimit'](_0x4e3b32)&&_0x5692e8['checkChild'](_0x4e3b32['parent'],'codeBlock'));var _0x4e3b32,_0x5692e8;}):Array['from'](_0x1143bb['getSelectedBlocks']())['filter'](_0x46531f=>jt(_0x46531f));const _0x16ec82=bt(_0x10853a,_0x4ee62b);_0x4ee62b['change'](()=>{for(const _0x204c24 of _0x16ec82)_0x56b8d8['markBlockFormat'](_0x204c24,{'commandName':'codeBlock','commandParams':[{..._0x28f10d,'forceValue':_0x5a04da}],'formatGroupId':'blockName'});});}),(_0x56b8d8['descriptionFactory']['registerElementLabel']('codeBlock',_0x98e09b=>Mt(_0x327b6b,'ELEMENT_CODE_BLOCK',_0x98e09b)),_0x56b8d8['descriptionFactory']['registerDescriptionCallback'](_0x536afa=>{if('formatBlock'!=_0x536afa['type'])return;const _0x2fcab9=_0x327b6b['t'],{data:_0x366f05}=_0x536afa;if(!_0x366f05||'codeBlock'!=_0x366f05['commandName'])return;const _0x45b65f=_0x366f05['commandParams'][0x0]['language'],_0x232747=_0x2fcab9(_0x56ed43['find'](_0x14f71d=>_0x14f71d['language']===_0x45b65f)['label'])['toLowerCase']();return _0x366f05['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x327b6b,'*Set\x20format:*\x20%0',Mt(_0x327b6b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x232747+')')}:{'type':'format','content':Mt(_0x327b6b,'*Remove\x20format:*\x20%0',Mt(_0x327b6b,'ELEMENT_CODE_BLOCK',0x1))};}));}};function jt(_0x286e0c){return'codeBlock'==_0x286e0c['name'];}var zt=class extends _0x5cf544{afterInit(){const _0x25a564=this['editor'];_0x25a564['plugins']['has']('CommentsEditing')&&_0x25a564['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Kt=class extends _0x5cf544{static get requires(){return[ft];}init(){const _0x1f1d2e=this['editor'],_0x4dcd6c=_0x1f1d2e['plugins']['get']('TrackChangesEditing');_0x4dcd6c['enableCommand']('delete');const _0x2f2202=_0x1f1d2e['commands']['get']('deleteForward');_0x4dcd6c['enableCommand']('deleteForward',(_0x3329d8,_0x4fefef={})=>{const _0x5501f0=_0x1f1d2e['model']['createSelection'](_0x1f1d2e['model']['document']['selection']);_0x5501f0['isCollapsed']&&_0x1f1d2e['model']['modifySelection'](_0x5501f0,{'direction':'forward','unit':_0x4fefef['unit']});const _0x23a994=_0x5501f0['getFirstRange'](),_0x2a0920=rt['fromRange'](_0x23a994);let _0x2745dc;_0x3329d8(_0x4fefef),_0x2745dc='$graveyard'==_0x2a0920['root']['rootName']?_0x1f1d2e['model']['createRange'](_0x23a994['start']):_0x1f1d2e['model']['createRange'](_0x2a0920['start'],_0x2a0920['end']),_0x2a0920['detach'](),_0x1f1d2e['model']['enqueueChange'](_0x2f2202['buffer']['batch'],_0x4435e3=>{_0x2f2202['buffer']['lock'](),_0x4435e3['setSelection'](_0x4435e3['createRange'](_0x2745dc['end'])),_0x2f2202['buffer']['unlock']();});});}},Xt=class extends _0x5cf544{afterInit(){const _0x3e0218=this['editor'];if(!_0x3e0218['plugins']['has']('ListEditing'))return;const _0xcab2a2=_0x3e0218['locale'],_0xf5e1c3=_0x3e0218['plugins']['get']('TrackChangesEditing'),_0x1f93e5=_0x3e0218['plugins']['has']('TodoListEditing'),_0x1ae410=!!_0x3e0218['config']['get']('list.multiBlock');function _0x5d76b8(_0x2a4fe1){return{'type':'format','content':''+Mt(_0xcab2a2,'*Set\x20format:*\x20%0',_0x2a4fe1)};}function _0x3f7ee7(_0x31b90b){return{'type':'format','content':''+Mt(_0xcab2a2,'*Remove\x20format:*\x20%0',_0x31b90b)};}_0xf5e1c3['enableDefaultAttributesIntegration']('numberedList'),_0xf5e1c3['enableDefaultAttributesIntegration']('bulletedList'),_0xf5e1c3['enableDefaultAttributesIntegration']('customNumberedList'),_0xf5e1c3['enableDefaultAttributesIntegration']('customBulletedList'),_0xf5e1c3['enableDefaultAttributesIntegration']('indentList'),_0xf5e1c3['enableDefaultAttributesIntegration']('outdentList'),_0xf5e1c3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xf5e1c3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1ae410&&(_0xf5e1c3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xf5e1c3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1f93e5&&(_0xf5e1c3['enableDefaultAttributesIntegration']('todoList'),_0xf5e1c3['enableDefaultAttributesIntegration']('checkTodoList'),_0xf5e1c3['descriptionFactory']['registerDescriptionCallback'](_0x326e00=>{const {data:_0x16dc22}=_0x326e00;if(_0x16dc22&&'todoListChecked'==_0x16dc22['key'])return{'type':'format','content':_0x16dc22['newValue']?Mt(_0xcab2a2,'*Check\x20item*'):Mt(_0xcab2a2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1c54ce=>{if(_0x1c54ce['batch']['isUndo'])return!0x1;let _0x44a9ea=!0x1;const _0x46d780=_0xf5e1c3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7adc4c=>'todoListChecked'===_0xf5e1c3['_getAttributeKey'](_0x7adc4c));for(const _0x26a6e4 of _0x46d780)'todo'!=_0x26a6e4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xf5e1c3['_findSuggestions'](_0x26a6e4['getFirstRange'](),'attribute')['find'](_0x3a4120=>'listType'===_0xf5e1c3['_getAttributeKey'](_0x3a4120['suggestion']))||(_0x1c54ce['removeMarker'](_0x26a6e4['getFirstMarker']()),_0x44a9ea=!0x0));return _0x44a9ea;})),_0xf5e1c3['descriptionFactory']['registerAttributeLabel']('listIndent',Mt(_0xcab2a2,'FORMAT_INDENT'));const _0x75ee30={'type':'format','content':''};_0xf5e1c3['descriptionFactory']['registerDescriptionCallback'](_0x41751d=>{const {data:_0x39bb0a}=_0x41751d;if(!_0x39bb0a||'listType'!=_0x39bb0a['key'])return;let _0x4eebd7=_0x41751d['head'];for(;_0x4eebd7;){if(_0x4eebd7['data']&&(('listStyle'==_0x4eebd7['data']['key']||'listMarkerStyle'==_0x4eebd7['data']['key'])&&(_0x4eebd7['data']['newValue']&&'default'!=_0x4eebd7['data']['newValue']||'default'!=_0x4eebd7['data']['oldValue']&&!_0x39bb0a['newValue'])||!_0x1ae410&&'$elementName'==_0x4eebd7['data']['key']))return _0x75ee30;_0x4eebd7=_0x4eebd7['next'];}if(null==_0x39bb0a['newValue'])switch(_0x39bb0a['oldValue']){case'bulleted':return _0x3f7ee7(Mt(_0xcab2a2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3f7ee7(Mt(_0xcab2a2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3f7ee7(Mt(_0xcab2a2,'ELEMENT_TODO_LIST'));}switch(_0x39bb0a['newValue']){case'bulleted':return _0x5d76b8(Mt(_0xcab2a2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5d76b8(Mt(_0xcab2a2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5d76b8(Mt(_0xcab2a2,'ELEMENT_TODO_LIST'));}}),_0xf5e1c3['descriptionFactory']['registerDescriptionCallback'](_0x1c3af4=>{const {data:_0x29a71b}=_0x1c3af4;if(_0x29a71b&&'listIndent'==_0x29a71b['key'])return null==_0x29a71b['newValue']||null==_0x29a71b['oldValue']&&0x0==_0x29a71b['newValue']?_0x75ee30:void 0x0;}),_0xf5e1c3['descriptionFactory']['registerDescriptionCallback'](_0x26510c=>{if('attribute'!=_0x26510c['type'])return;const {data:_0x2d2406}=_0x26510c;if(!_0x2d2406||'listItemId'!=_0x2d2406['key'])return;const _0x257de5=qt(_0x26510c);return'newValue'==_0x257de5?{'type':'format','content':Mt(_0xcab2a2,'*Merge:*\x20list\x20item')}:'oldValue'==_0x257de5?{'type':'format','content':Mt(_0xcab2a2,'*Split:*\x20list\x20item')}:_0x75ee30;}),_0x3e0218['model']['document']['registerPostFixer'](_0x4b8671=>this['listItemIdFixer'](_0x4b8671)),_0x3e0218['model']['document']['registerPostFixer'](_0x4e1b3d=>this['noTrackChangesFixer'](_0x4e1b3d)),_0x3e0218['model']['document']['on']('change:data',(_0x385146,_0x3b29a3)=>{if(_0x3b29a3['isUndo']||!_0x3b29a3['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x47b180){if(_0x47b180['batch']['isUndo']||!_0x47b180['batch']['isLocal'])return!0x1;let _0x14929c=!0x1;const _0x435646=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d5ffd=>_0x3d5ffd['data']&&'listItemId'==_0x3d5ffd['data']['key'])['filter'](_0x5095ec=>_0x5095ec['data']['newValue']&&_0x5095ec['data']['oldValue']);for(const _0xa30e7a of _0x435646)qt(_0xa30e7a)||(_0x47b180['removeMarker'](_0xa30e7a['getFirstMarker']()),_0x14929c=!0x0);return _0x14929c;}['noTrackChangesFixer'](_0x569166){if(_0x569166['batch']['isUndo']||!_0x569166['batch']['isLocal'])return!0x1;const _0x2b3ea8=this['editor']['model']['document']['differ'],_0x1b472b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1b472b['trackChangesCommand']['value'])return!0x1;let _0x41fa5b=!0x1;const _0x371b79=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0xa6ac18=_0x2b3ea8['getChanges']()['filter'](_0x33b3ab=>'attribute'==_0x33b3ab['type'])['filter'](_0x34e5ac=>_0x371b79['has'](_0x34e5ac['attributeKey']));if(0x0==_0xa6ac18['length'])return _0x41fa5b;const _0x27f13b=new Set(_0x2b3ea8['getMarkersToAdd']()['filter'](_0x26982d=>{if(!_0x26982d['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x227e83=tt(_0x26982d['name'])['subType']['split']('|')[0x0];return _0x371b79['has'](_0x227e83);})['map'](_0x299865=>tt(_0x299865['name'])['id']));for(const _0x3ec82e of _0xa6ac18){const _0xfa4b14=_0x1b472b['_findSuggestions'](_0x3ec82e['range'],'attribute')['filter'](_0xefd9e5=>{if(_0xefd9e5['meta']['isNextTo'])return!0x1;if(_0x27f13b['has'](_0xefd9e5['suggestion']['id']))return!0x1;const _0x2ef361=_0x1b472b['_getAttributeKey'](_0xefd9e5['suggestion']);return _0x371b79['has'](_0x2ef361);})['map'](_0x2babcf=>_0x2babcf['suggestion']);if(_0xfa4b14['length']){for(const _0x38adf9 of _0xfa4b14)_0x569166['removeMarker'](_0x38adf9['getFirstMarker']());_0x41fa5b=!0x0;}}return _0x41fa5b;}['assureChains'](){const _0xc6b0ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d98fd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x316b6d;const _0x91c15d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1a746a=>{if(_0x1a746a['data']['oldRange']||!_0x1a746a['data']['newRange'])return null;if(!_0x1a746a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1a7079}=tt(_0x1a746a['name']);if(!_0xc6b0ac['hasSuggestion'](_0x1a7079))return null;const _0x1798dc=_0xc6b0ac['getSuggestion'](_0x1a7079);return _0x2d98fd['includes'](_0x1798dc['data']['key']);})['map'](_0x43d5b4=>{const {id:_0xc96906}=tt(_0x43d5b4['name']),_0x5aa729=_0xc6b0ac['getSuggestion'](_0xc96906);return _0x316b6d=_0x5aa729['attributes']['groupId'],_0x5aa729['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x91c15d['size'])return;const _0x369a75=_0xc6b0ac['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49e9ae=>'attribute'==_0x49e9ae['type']&&_0x49e9ae['data']&&_0x2d98fd['includes'](_0x49e9ae['data']['key'])&&_0x49e9ae['attributes']['groupId']!=_0x316b6d)['map'](_0x2b1c5e=>({'listItem':_0x2b1c5e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2b1c5e['attributes']['groupId']})),_0x555791=new Set();for(const {groupId:_0x15d117,listItem:_0x30a96a}of _0x369a75)_0x91c15d['has'](_0x30a96a)&&_0x555791['add'](_0x15d117);for(const _0x4e3d97 of _0xc6b0ac['getSuggestions']())_0x555791['has'](_0x4e3d97['attributes']['groupId'])&&_0x4e3d97['setAttribute']('groupId',_0x316b6d);}_supportLegacySuggestions(){const _0x1ac4a0=this['editor'],_0x5bb945=_0x1ac4a0['locale'],_0x582d14=_0x1ac4a0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x582d14['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x255914,_0x570af5){const _0x68ae1c=[];for(let _0x472a64 of _0x255914)_0x472a64['start']['nodeAfter']===_0x472a64['end']['parent']&&(_0x472a64=_0x1ac4a0['model']['createRange'](_0x1ac4a0['model']['createPositionAt'](_0x472a64['start']['nodeAfter'],0x0))),_0x68ae1c['push'](_0x472a64);_0x1ac4a0['model']['change'](_0x1571fd=>{const _0x12cc21=_0x1ac4a0['model']['document']['selection'],_0x39c080=Array['from'](_0x12cc21['getRanges']())['map'](_0x5759e1=>rt['fromRange'](_0x5759e1));_0x1571fd['setSelection'](_0x68ae1c),_0x1ac4a0['commands']['get'](_0x570af5['commandName'])['refresh'](),_0x570af5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1ac4a0['execute'](_0x570af5['commandName'],..._0x570af5['commandParams']),_0x1571fd['setSelection'](_0x39c080);for(const _0x3fade4 of _0x39c080)_0x3fade4['detach']();});}),_0x582d14['descriptionFactory']['registerElementLabel'](function(_0x2a6665){const _0xffbca=!_0x1ac4a0['model']['schema']['isObject'](_0x2a6665),_0x4e207c=_0x2a6665['previousSibling'],_0x189163=_0x2a6665['nextSibling'],_0x31a918=_0x2a6665['getAttribute']('listItemId'),_0x11fbbe=!_0x4e207c||_0x4e207c['getAttribute']('listItemId')!==_0x31a918,_0x405945=!_0x189163||_0x189163['getAttribute']('listItemId')!==_0x31a918;return _0xffbca&&Boolean(_0x31a918)&&_0x11fbbe&&_0x405945;},_0x34dd50=>Mt(_0x5bb945,'ELEMENT_LIST_ITEM',_0x34dd50));}_registerLegacyDescription(){const _0x1855e0=this['editor'],_0x40e4bc=_0x1855e0['locale'];function _0x2b1c15(_0x264696){const _0x1a30c0=_0x1855e0['commands']['get']('bulletedList')['value'],_0x5737c0=_0x1855e0['commands']['get']('numberedList')['value'];return'numberedList'===_0x264696?_0x1a30c0:_0x5737c0;}_0x1855e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3fa0a6){if('formatBlock'!=_0x3fa0a6['type'])return;const {data:_0x156015}=_0x3fa0a6;if(!_0x156015)return;let _0xa038aa,_0x5a2349,_0x5aa3ca,_0x3ce526;switch(_0x156015['commandName']){case'bulletedList':_0x5aa3ca=_0x156015['commandParams'][0x0]['forceValue'],_0x3ce526=_0x2b1c15(_0x156015['commandName']),_0xa038aa=_0x5aa3ca?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3ce526&&_0x1855e0['config']['get']('list.multiBlock')||(_0xa038aa='*Change\x20to:*\x20%0'),_0x5a2349={'type':'format','content':Mt(_0x40e4bc,_0xa038aa,Mt(_0x40e4bc,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5aa3ca=_0x156015['commandParams'][0x0]['forceValue'],_0x3ce526=_0x2b1c15(_0x156015['commandName']),_0xa038aa=_0x5aa3ca?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3ce526&&_0x1855e0['config']['get']('list.multiBlock')||(_0xa038aa='*Change\x20to:*\x20%0'),_0x5a2349={'type':'format','content':Mt(_0x40e4bc,_0xa038aa,Mt(_0x40e4bc,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xa038aa='*Indent:*\x20%0',_0x5a2349={'type':'format','content':Mt(_0x40e4bc,_0xa038aa,Mt(_0x40e4bc,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xa038aa=function(_0x5e9f3b){const _0x5d221d=_0x5e9f3b['getFirstRange']();let _0x2f90b8=_0x5d221d['start']['nodeAfter'];for(;_0x2f90b8&&_0x5d221d['containsItem'](_0x2f90b8);){if(_0x2f90b8['getAttribute']('listIndent')>0x0)return!0x1;_0x2f90b8=_0x2f90b8['nextSibling'];}return!0x0;}(_0x3fa0a6)?Mt(_0x40e4bc,'*Format:*\x20remove\x20from\x20%0',Mt(_0x40e4bc,function(_0x5246f0){return'ELEMENT_'+_0x5246f0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3fa0a6))):Mt(_0x40e4bc,'*Outdent:*\x20%0',Mt(_0x40e4bc,'ELEMENT_LIST_ITEM')),_0x5a2349={'type':'format','content':_0xa038aa};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x156015['multipleBlocks']&&(_0xa038aa='*Merge:*\x20%0',_0x5a2349={'type':'deletion','content':Mt(_0x40e4bc,_0xa038aa,Mt(_0x40e4bc,'ELEMENT_LIST_ITEM'))});}return _0x5a2349;});}};function qt(_0x175848){let _0x259cce=_0x175848['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x259cce;){const _0x1435ec=_0x259cce['getAttribute']('listItemId');if(!_0x1435ec)return!0x1;if(_0x1435ec==_0x175848['data']['newValue'])return'newValue';if(_0x1435ec==_0x175848['data']['oldValue'])return'oldValue';_0x259cce=_0x259cce['previousSibling'];}return!0x1;}var Yt=class extends _0x5cf544{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x86c0a6=this['editor']['config']['get']('list.properties'),_0x34157f=this['editor']['plugins']['get']('TrackChangesEditing');_0x86c0a6['styles']&&_0x34157f['enableDefaultAttributesIntegration']('listStyle'),_0x86c0a6['reversed']&&_0x34157f['enableDefaultAttributesIntegration']('listReversed'),_0x86c0a6['startIndex']&&_0x34157f['enableDefaultAttributesIntegration']('listStart');const _0x56f3db={'type':'format','content':''};_0x34157f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x104561=this['editor']['locale'];_0x34157f['descriptionFactory']['registerAttributeLabel']('listReversed',Mt(_0x104561,'FORMAT_LIST_REVERSED')),_0x34157f['descriptionFactory']['registerDescriptionCallback'](_0x56b1d6=>{const {data:_0x5b3135}=_0x56b1d6;if(_0x5b3135&&'listReversed'==_0x5b3135['key'])return null==_0x5b3135['newValue']||0x0==_0x5b3135['newValue']&&null==_0x5b3135['oldValue']?_0x56f3db:void 0x0;}),_0x34157f['descriptionFactory']['registerAttributeLabel']('listStart',Mt(_0x104561,'FORMAT_LIST_START')),_0x34157f['descriptionFactory']['registerDescriptionCallback'](_0xb22c96=>{const {data:_0x134f4a}=_0xb22c96;if(_0x134f4a&&'listStart'==_0x134f4a['key'])return null==_0x134f4a['newValue']||0x1==_0x134f4a['newValue']&&null==_0x134f4a['oldValue']?_0x56f3db:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x735ad4=>{if(_0x735ad4['batch']['isUndo'])return!0x1;let _0x58c7a6=!0x1;const _0xd8a3a=_0x34157f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c728a=>{const _0x143318=_0x34157f['_getAttributeKey'](_0x4c728a);return'listStart'==_0x143318||'listReversed'==_0x143318;});for(const _0x1aac41 of _0xd8a3a){const _0x4b03e3=_0x1aac41['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x4b03e3&&'customNumbered'!=_0x4b03e3&&(_0x34157f['_findSuggestions'](_0x1aac41['getFirstRange'](),'attribute')['find'](_0x4abce7=>'listType'==_0x34157f['_getAttributeKey'](_0x4abce7['suggestion']))||(_0x735ad4['removeMarker'](_0x1aac41['getFirstMarker']()),_0x58c7a6=!0x0));}return _0x58c7a6;}),this['_registerLegacyDescription']();}handleDescriptions(_0x2b4a78){const _0x4e8bf9=this['editor']['locale'],{data:_0x12cfbc}=_0x2b4a78,_0x392055={'type':'format','content':''};if(!_0x12cfbc||'listStyle'!=_0x12cfbc['key'])return;if(!_0x12cfbc['oldValue'])return'default'==_0x12cfbc['newValue']?_0x392055:{'type':'format','content':''+Mt(_0x4e8bf9,'*Set\x20format:*\x20%0',Mt(_0x4e8bf9,this['_getTranslationKeyForListStyle'](_0x12cfbc['newValue'])))};if(!_0x12cfbc['newValue']){if('default'==_0x12cfbc['oldValue'])return _0x392055;let _0x1c7b53=_0x2b4a78['head'];for(;_0x1c7b53;){if(_0x1c7b53['data']&&'listType'==_0x1c7b53['data']['key']&&_0x1c7b53['data']['newValue'])return _0x392055;_0x1c7b53=_0x1c7b53['next'];}return{'type':'format','content':''+Mt(_0x4e8bf9,'*Remove\x20format:*\x20%0',Mt(_0x4e8bf9,this['_getTranslationKeyForListStyle'](_0x12cfbc['oldValue'])))};}if('default'!=_0x12cfbc['newValue'])return{'type':'format','content':''+Mt(_0x4e8bf9,'*Set\x20format:*\x20%0',Mt(_0x4e8bf9,this['_getTranslationKeyForListStyle'](_0x12cfbc['newValue'])))};let _0x56f86d=_0x2b4a78['head'];for(;_0x56f86d;){if(_0x56f86d['data']&&'listType'==_0x56f86d['data']['key']&&_0x56f86d['data']['newValue']&&_0x56f86d['data']['oldValue'])return _0x392055;_0x56f86d=_0x56f86d['next'];}return{'type':'format','content':Mt(_0x4e8bf9,'*Set\x20format:*\x20%0',Mt(_0x4e8bf9,'ELEMENT_'+_0x2b4a78['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x497451=this['editor'],_0x209567=_0x497451['locale'];_0x497451['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x274f9=>{if('formatBlock'!=_0x274f9['type'])return;const {data:_0x599610}=_0x274f9;if(!_0x599610)return;let _0x5ae69f,_0x48db37;switch(_0x599610['commandName']){case'listStyle':_0x5ae69f='*Change\x20to:*\x20%0',_0x48db37={'type':'format','content':Mt(_0x209567,_0x5ae69f,Mt(_0x209567,this['_getTranslationKeyForListStyle'](_0x599610['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5ae69f=_0x599610['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x48db37={'type':'format','content':Mt(_0x209567,_0x5ae69f)};break;case'listStart':_0x5ae69f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x48db37={'type':'format','content':Mt(_0x209567,_0x5ae69f,_0x599610['commandParams'][0x0]['startIndex'])};}return _0x48db37;});}_getTranslationKeyForListStyle(_0x631f87){return'ELEMENT_'+(_0x4da04b=_0x631f87,Qt['includes'](_0x4da04b)?'bulleted':Zt['includes'](_0x4da04b)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x631f87['toUpperCase']()['replace'](/-/g,'_');var _0x4da04b;}};const Qt=['disc','circle','square'],Zt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Jt=class extends _0x5cf544{afterInit(){const _0xe3c715=this['editor'];_0xe3c715['commands']['get']('emoji')&&_0xe3c715['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},te=class extends _0x5cf544{static get requires(){return[Et];}init(){const _0x3631cb=this['editor'],_0x1d0644=_0x3631cb['plugins']['get']('TrackChangesEditing'),_0x5b554b=_0x3631cb['commands']['get']('enter');_0x1d0644['enableCommand']('enter',()=>{_0x3631cb['model']['change'](_0x38b5fb=>{const _0xd827e1=_0x3631cb['model']['document']['selection'],_0x182aa5=_0xd827e1['getFirstPosition'](),_0x197166=rt['fromRange'](_0xd827e1['getFirstRange']());if(_0x5b554b['enterBlock'](_0x38b5fb)){const _0xd1ec1=_0x3631cb['model']['createPositionAt'](_0x182aa5['parent']['nextSibling'],0x0),_0x40da98=_0x38b5fb['createRange'](_0x182aa5,_0xd1ec1);_0x1d0644['markInsertion'](_0x40da98);}else _0x38b5fb['setSelection'](_0x38b5fb['createRange'](_0x197166['end']));_0x197166['detach'](),_0x5b554b['fire']('afterExecute',{'writer':_0x38b5fb});});});}},ee=class extends _0x5cf544{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x294196=this['editor']['plugins']['get']('TrackChangesEditing');_0x294196['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x294196['enableCommand']('findNext'),_0x294196['enableCommand']('findPrevious'),_0x294196['enableCommand']('replace'),_0x294196['enableCommand']('replaceAll');}['handleFindCommand'](_0x15e8ba,_0x370f3c,_0x4293fe={}){const _0x4bb779=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x15e8ba(_0x466390=>{let _0x360e77=('string'==typeof _0x370f3c?_0x4bb779['findByTextCallback'](_0x370f3c,_0x4293fe):_0x370f3c)(_0x466390);Array['isArray'](_0x360e77)&&(_0x360e77={'results':_0x360e77,'searchText':'string'==typeof _0x370f3c?_0x370f3c:''});const _0x44fc09=_0x360e77['results']['filter'](_0x3bd073=>!0x1===this['_isInDeletionRange'](_0x3bd073,_0x466390['item']));return{..._0x360e77,'results':_0x44fc09};},_0x4293fe);}_isInDeletionRange(_0x38a03d,_0x3f9f32){const _0x23e691=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f9f32,_0x38a03d['start']),this['editor']['model']['createPositionAt'](_0x3f9f32,_0x38a03d['end']));for(const _0x19b63c of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x23e691['getIntersection'](_0x19b63c['getRange']()))return!0x0;return!0x1;}};const ne=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ie=class extends _0x5cf544{afterInit(){const _0x959c41=this['editor']['locale'],_0x1b01fb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x91a4bb,commandName:_0x111aa2}of ne)this['editor']['plugins']['has'](_0x91a4bb)&&_0x1b01fb['enableDefaultAttributesIntegration'](_0x111aa2);_0x1b01fb['descriptionFactory']['registerAttributeLabel']('fontSize',Mt(_0x959c41,'FORMAT_FONT_SIZE')),_0x1b01fb['descriptionFactory']['registerAttributeLabel']('fontFamily',Mt(_0x959c41,'FORMAT_FONT_FAMILY')),_0x1b01fb['descriptionFactory']['registerAttributeLabel']('fontColor',Mt(_0x959c41,'FORMAT_FONT_COLOR')),_0x1b01fb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Mt(_0x959c41,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xccaff1=this['editor'],_0x37732f=_0xccaff1['locale'];_0xccaff1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c8a5a=>{const _0x3713a1=_0x37732f['t'];if('formatInline'!=_0x1c8a5a['type'])return;const {data:_0xdddc4}=_0x1c8a5a;if(null!=_0xdddc4){if('fontSize'==_0xdddc4['commandName']){const _0x4538a2=_0xdddc4['commandParams'][0x0]['value'];if(_0x4538a2){const _0x16e049=_0x3713a1(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xad843d=>_0xad843d['model']==_0x4538a2)['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x37732f,'*Set\x20font\x20size:*\x20%0',_0x16e049)};}return{'type':'format','content':Mt(_0x37732f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xdddc4['commandName']){const _0x3c96a6=_0xdddc4['commandParams'][0x0]['value'];return _0x3c96a6?{'type':'format','content':Mt(_0x37732f,'*Set\x20font\x20family:*\x20%0',_0x3c96a6)}:{'type':'format','content':Mt(_0x37732f,'*Reset\x20font\x20family*')};}if('fontColor'==_0xdddc4['commandName']){const _0x55c308=_0xdddc4['commandParams'][0x0]['value'];if(_0x55c308){const _0x389378=_0xed1c81(this['editor']['config']['get']('fontColor.colors'))['find'](_0x292807=>_0x292807['model']==_0x55c308);let _0x218857=_0x55c308,_0x5dd445='';return _0x389378&&(_0x218857=_0x389378['label'],_0x5dd445=_0x3713a1(_0x218857)['toLowerCase']()),{'type':'format','content':Mt(_0x37732f,'*Set\x20font\x20color:*\x20%0',_0x5dd445)['trim'](),'color':{'value':_0x55c308,'title':_0x5dd445||_0x218857}};}return{'type':'format','content':Mt(_0x37732f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xdddc4['commandName']){const _0x5a9628=_0xdddc4['commandParams'][0x0]['value'];if(_0x5a9628){const _0x317b5b=_0xed1c81(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x28e946=>_0x28e946['model']==_0x5a9628);let _0x88d37a=_0x5a9628,_0x410368='';return _0x317b5b&&(_0x88d37a=_0x317b5b['label'],_0x410368=_0x3713a1(_0x88d37a)['toLowerCase']()),{'type':'format','content':Mt(_0x37732f,'*Set\x20font\x20background\x20color:*\x20%0',_0x410368)['trim'](),'color':{'value':_0x5a9628,'title':_0x410368||_0x88d37a}};}return{'type':'format','content':Mt(_0x37732f,'*Reset\x20font\x20background\x20color*')};}}});}},se=class extends _0x5cf544{afterInit(){const {plugins:_0x329a97}=this['editor'];_0x329a97['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x329a97['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x114af0,plugins:_0x275f73,commands:_0x2c3d1f}=this['editor'],_0x477adc=_0x275f73['get']('TrackChangesEditing');_0x2c3d1f['get']('footnotesStyle')&&_0x477adc['enableDefaultAttributesIntegration']('footnotesStyle'),_0x2c3d1f['get']('footnotesStart')&&_0x477adc['enableDefaultAttributesIntegration']('footnotesStart'),_0x477adc['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Mt(_0x114af0,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x477adc['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Mt(_0x114af0,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0xee46f6=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x473cd8,commands:_0xc1229c}=this['editor'];_0xc1229c['get']('insertFootnote')&&_0xee46f6['enableCommand']('insertFootnote'),_0xee46f6['descriptionFactory']['registerElementLabel']('footnoteRef',_0x3bb165=>Mt(_0x473cd8,'ELEMENT_FOOTNOTE_REF',_0x3bb165)),_0xee46f6['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x208f4c=>Mt(_0x473cd8,'ELEMENT_FOOTNOTE_DEFINITION',_0x208f4c)),_0xee46f6['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x13a338=>Mt(_0x473cd8,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x13a338));}},re=class extends _0x5cf544{afterInit(){const _0x5106e4=this['editor'],_0x56b579=_0x5106e4['plugins']['get']('TrackChangesEditing'),_0x170a59=_0x5106e4['commands']['get']('copyFormat'),_0x35eef5=_0x5106e4['commands']['get']('pasteFormat');_0x170a59&&_0x35eef5&&(_0x56b579['enableDefaultAttributesIntegration']('pasteFormat'),_0x56b579['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x1eeaea=this['editor'],_0x31627b=_0x1eeaea['locale'];_0x1eeaea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35c647=>{if('formatBlock'!=_0x35c647['type']&&'formatInline'!=_0x35c647['type'])return;const {data:_0x5cadae}=_0x35c647;if(_0x5cadae&&'pasteFormat'===_0x5cadae['commandName']){const _0x367235=[],_0x3b2a3a=_0x5cadae['commandParams'][0x0];for(const [_0xe7015e,_0x4298ed]of Object['entries'](_0x3b2a3a))_0x367235['push'](oe(_0x1eeaea,_0xe7015e,_0x4298ed));return _0x367235['length']?{'type':'format','content':Mt(_0x31627b,'*Set\x20format\x20to:*\x20%0',_0x367235['join'](',\x20'))}:{'type':'format','content':Mt(_0x31627b,'*Remove\x20all\x20formatting*')};}});}};function oe(_0x55e8ed,_0x4bfe91,_0x3b1e8e){const _0x3068de=_0x55e8ed['locale']['t'],_0x36c640=_0x4bfe91['split'](/(?=[A-Z])/)['join']('\x20'),_0x500644=_0x3068de(_0x36c640['charAt'](0x0)['toUpperCase']()+_0x36c640['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3b1e8e)return _0x500644;if('fontColor'===_0x4bfe91||'fontBackgroundColor'===_0x4bfe91){const _0x4693c6=_0xed1c81(_0x55e8ed['config']['get']('fontColor.colors'))['find'](_0x26c923=>_0x26c923['model']==_0x3b1e8e);return _0x500644+'\x20('+(_0x4693c6?_0x3068de(_0x4693c6['label'])['toLowerCase']():_0x3b1e8e)+')';}if('fontSize'===_0x4bfe91&&isNaN(parseFloat(_0x3b1e8e))){const _0x219840=_0x55e8ed['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x55e8ed['config']['get']('fontSize.options'))['find'](_0x1061f6=>_0x1061f6['model']==_0x3b1e8e);return _0x500644+'\x20('+(_0x219840?_0x3068de(_0x219840['title'])['toLowerCase']():_0x3b1e8e)+')';}return _0x500644+'\x20('+_0x3b1e8e+')';}var ae=class extends _0x5cf544{afterInit(){const _0x232eaa=this['editor'];if(!_0x232eaa['plugins']['has']('GeneralHtmlSupport')||!_0x232eaa['plugins']['has']('DataSchema'))return;const _0x3431e9=_0x232eaa['plugins']['get']('TrackChangesEditing'),_0x5dd1fa=_0x232eaa['plugins']['get']('GeneralHtmlSupport'),_0x2dcd01=_0x232eaa['plugins']['get']('DataSchema'),_0x376e2c=_0x232eaa['locale'],_0x18ba45=new Set(['htmlContent']);for(const _0x3279ec of _0x2dcd01['getDefinitionsForView'](/.*/,!0x1)){const _0x9e849=_0x3279ec['view'],_0x4531f9=_0x5dd1fa['getGhsAttributeNameForElement'](_0x9e849);_0x18ba45['add'](_0x4531f9),!_0x3279ec['isInline']||_0x3279ec['isObject']||'appliesToBlock'in _0x3279ec&&_0x3279ec['appliesToBlock']||_0x3431e9['descriptionFactory']['registerAttributeLabel'](_0x4531f9,_0x9e849),_0x3279ec['model']['startsWith']('html')&&_0x3431e9['descriptionFactory']['registerElementLabel'](_0x3279ec['model'],_0x1f56af=>Mt(_0x376e2c,'ELEMENT_HTML_TAG',[_0x1f56af,_0x9e849]));}_0x3431e9['descriptionFactory']['registerAttributeLabel']('htmlContent',Mt(_0x376e2c,'FORMAT_RAW_HTML_CONTENT')),_0x3431e9['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Mt(_0x376e2c,'FORMAT_HTML_LIST_ITEM')),_0x3431e9['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Mt(_0x376e2c,'FORMAT_HTML_BULLETED_LIST')),_0x3431e9['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Mt(_0x376e2c,'FORMAT_HTML_NUMBERED_LIST')),_0x3431e9['descriptionFactory']['registerDescriptionCallback'](_0x28ddce=>{if('attribute'!==_0x28ddce['type'])return;const _0x183016=_0x28ddce['data'];if(!_0x183016||!_0x18ba45['has'](_0x183016['key']))return;if('htmlContent'===_0x183016['key'])return{'type':'format','content':Mt(_0x376e2c,'*Change\x20%0\x20content*',Mt(_0x376e2c,'ELEMENT_RAW_HTML'))};const {setItems:_0xb52d8d,removeItems:_0x453d62}=function(_0x42b5bf,_0x1af225,_0x3d0ba7){const _0x30b642=[],_0x3e5414=[],_0x46225e=_0x42b5bf['styles']??{},_0x43eb4=_0x1af225['styles']??{};for(const _0x1fde29 of new Set([...Object['keys'](_0x46225e),...Object['keys'](_0x43eb4)]))_0x46225e[_0x1fde29]!==_0x43eb4[_0x1fde29]&&(void 0x0===_0x43eb4[_0x1fde29]?_0x3e5414['push'](_0x1fde29):_0x30b642['push'](_0x1fde29+'\x20('+_0x43eb4[_0x1fde29]+')'));const _0x1c2b95=Mt(_0x3d0ba7,'FORMAT_HTML_CLASS'),_0x29af32=new Set(_0x42b5bf['classes']??[]),_0x5930c5=new Set(_0x1af225['classes']??[]),_0x139332=[..._0x5930c5]['some'](_0x28195c=>!_0x29af32['has'](_0x28195c)),_0x489941=[..._0x29af32]['some'](_0x815b6f=>!_0x5930c5['has'](_0x815b6f));_0x139332&&_0x30b642['push'](_0x1c2b95),_0x489941&&_0x3e5414['push'](_0x1c2b95);const _0xef2621=Mt(_0x3d0ba7,'FORMAT_HTML_ATTRIBUTE'),_0x3b2ea2=_0x42b5bf['attributes']??{},_0x3b6842=_0x1af225['attributes']??{};let _0x43f205=!0x1,_0x51ef33=!0x1;for(const _0x4255c6 of new Set([...Object['keys'](_0x3b2ea2),...Object['keys'](_0x3b6842)]))_0x3b2ea2[_0x4255c6]!==_0x3b6842[_0x4255c6]&&(void 0x0===_0x3b6842[_0x4255c6]?_0x51ef33=!0x0:_0x43f205=!0x0);return _0x43f205&&_0x30b642['push'](_0xef2621),_0x51ef33&&_0x3e5414['push'](_0xef2621),{'setItems':_0x30b642,'removeItems':_0x3e5414};}(_0x183016['oldValue']??{},_0x183016['newValue']??{},_0x376e2c);if(!_0xb52d8d['length']&&!_0x453d62['length'])return;const _0x136174=[];return _0xb52d8d['length']&&_0x136174['push'](Mt(_0x376e2c,'*Set\x20format:*\x20%0',_0xb52d8d['join'](',\x20'))),_0x453d62['length']&&_0x136174['push'](Mt(_0x376e2c,'*Remove\x20format:*\x20%0',_0x453d62['join'](',\x20'))),{'type':'format','content':_0x136174['join']('\x0a')};});}},ce=class extends _0x5cf544{_headingOptions;afterInit(){const _0x5a6bf6=this['editor'];if(!_0x5a6bf6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5a6bf6['config']['get']('heading.options');const _0x5aac93=_0x5a6bf6['locale'],_0x36241b=_0x5a6bf6['plugins']['get']('TrackChangesEditing');_0x36241b['enableDefaultAttributesIntegration']('heading');for(const _0x438997 of this['_headingOptions'])'paragraph'!=_0x438997['model']&&_0x36241b['descriptionFactory']['registerElementLabel'](_0x438997['model'],_0x1ae8d3=>{const _0x2c3422=this['_getHeadingLevel'](_0x438997['model']);return null!==_0x2c3422?_0x19bbf6(_0x1ae8d3,_0x2c3422):_0x114376(_0x1ae8d3,_0x438997['title']);});function _0x19bbf6(_0x131d71,_0x154b00){return Mt(_0x5aac93,'ELEMENT_HEADING',[_0x131d71,_0x154b00]);}function _0x114376(_0x21f510,_0x2f3190){return Mt(_0x5aac93,'ELEMENT_HEADING_CUSTOM',[_0x21f510,_0x2f3190]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xbf1d50=this['editor'],_0x508dc6=_0xbf1d50['locale'];function _0x77df4b(_0x51c6c7,_0x40a0b0){return Mt(_0x508dc6,'ELEMENT_HEADING_CUSTOM',[_0x51c6c7,_0x40a0b0]);}_0xbf1d50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35153=>{if('formatBlock'!=_0x35153['type'])return;const {data:_0x4624b9}=_0x35153;if(_0x4624b9&&'heading'==_0x4624b9['commandName']){const _0x22d4aa=_0x4624b9['commandParams'][0x0]['value'],_0x304542=this['_getHeadingLevel'](_0x22d4aa);if(null!==_0x304542)return{'type':'format','content':Mt(_0x508dc6,'*Change\x20to:*\x20%0',(_0x3db2a8=0x1,_0x29d1a4=_0x304542,Mt(_0x508dc6,'ELEMENT_HEADING',[_0x3db2a8,_0x29d1a4])))};const _0x4b3460=this['_headingOptions']['find'](_0x39aa7e=>_0x39aa7e['model']===_0x22d4aa)['title'];return{'type':'format','content':Mt(_0x508dc6,'*Change\x20to:*\x20%0',_0x77df4b(0x1,_0x4b3460))};}var _0x3db2a8,_0x29d1a4;});}_getHeadingLevel(_0x51a698){const _0x5009d2=_0x51a698['match'](/^heading(\d+)/);if(_0x5009d2)return _0x5009d2[0x1];const _0x490e5e=this['_headingOptions']?.['find'](_0x1b913e=>_0x1b913e['model']==_0x51a698);if(_0x490e5e&&_0x490e5e['view']){const _0x4a9553=_0x490e5e['view'],_0x2290e7=(_0x4a9553['name']??_0x4a9553)['match'](/^h(\d+)/);if(_0x2290e7)return _0x2290e7[0x1];}return null;}},le=class extends _0x5cf544{afterInit(){const _0x1add90=this['editor'];if(!_0x1add90['plugins']['has']('HighlightEditing'))return;const _0x24ee0c=_0x1add90['plugins']['get']('TrackChangesEditing'),_0x3cc22b=_0x1add90['locale'];_0x24ee0c['enableDefaultAttributesIntegration']('highlight'),_0x24ee0c['descriptionFactory']['registerAttributeLabel']('highlight',Mt(_0x3cc22b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3a54df=this['editor'],_0x3550ea=_0x3a54df['locale'];_0x3a54df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8a35e6=>{if('formatInline'!=_0x8a35e6['type'])return;const {data:_0x3e7c17}=_0x8a35e6;if(_0x3e7c17&&'highlight'==_0x3e7c17['commandName']){const _0x468506=_0x3550ea['t'],_0x2df0e8=_0x3e7c17['commandParams'][0x0]['value'];if(_0x2df0e8){const _0x2a410d=_0x3a54df['config']['get']('highlight.options')['find'](_0x1255c7=>_0x1255c7['model']==_0x2df0e8),_0x3134ba=_0x468506(_0x2a410d['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x3550ea,'*Set\x20highlight:*\x20%0',_0x3134ba),'color':{'value':_0x2a410d['color'],'title':_0x2a410d['title']}};}return{'type':'format','content':Mt(_0x3550ea,'*Remove\x20highlight*',Mt(_0x3550ea,'FORMAT_HIGHLIGHT'))};}});}},ue=class extends _0x5cf544{afterInit(){const _0x393400=this['editor'];if(!_0x393400['plugins']['has']('HorizontalLineEditing'))return;_0x393400['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x33c88e=_0x393400['plugins']['get']('TrackChangesEditing'),_0x5a6144=_0x393400['locale'];_0x33c88e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4c2346=>Mt(_0x5a6144,'ELEMENT_HORIZONTAL_LINE',_0x4c2346));}},de=class extends _0x5cf544{afterInit(){const _0x409f1a=this['editor'];if(!_0x409f1a['plugins']['has']('HtmlEmbed'))return;const _0x4ed839=_0x409f1a['plugins']['get']('TrackChangesEditing'),_0x3f0c2e=_0x409f1a['locale'];_0x4ed839['descriptionFactory']['registerElementLabel']('rawHtml',_0x2be01e=>Mt(_0x3f0c2e,'ELEMENT_HTML_EMBED',_0x2be01e)),_0x4ed839['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4ed839['descriptionFactory']['registerDescriptionCallback'](_0x48c8df=>{if('attribute'!=_0x48c8df['type'])return;const {data:_0x3b837d}=_0x48c8df;if(_0x3b837d&&'value'==_0x3b837d['key']&&_0x48c8df['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x172d3f=Mt(_0x3f0c2e,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x3f0c2e,'*Change\x20%0\x20content*',_0x172d3f)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2705c8=this['editor'],_0x1de93b=_0x2705c8['locale'];_0x2705c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x594567=>{if('formatBlock'!=_0x594567['type'])return;const {data:_0x48a6a9}=_0x594567;if(_0x48a6a9&&'htmlEmbed'==_0x48a6a9['commandName']){const _0x39f40a=Mt(_0x1de93b,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x1de93b,'*Change\x20%0\x20content*',_0x39f40a)};}});}},he=class extends _0x5cf544{afterInit(){const _0x3e4d3c=this['editor'];if(!_0x3e4d3c['plugins']['has']('ImageEditing'))return;const _0x1d9db8=_0x3e4d3c['plugins']['get']('TrackChangesEditing'),_0x4cbfb7=_0x3e4d3c['plugins']['get']('ImageUtils'),_0x41ad9a=_0x3e4d3c['locale'];_0x1d9db8['enableCommand']('insertImage'),_0x1d9db8['descriptionFactory']['registerElementLabel']('imageBlock',_0x483697=>Mt(_0x41ad9a,'ELEMENT_IMAGE',_0x483697)),_0x1d9db8['descriptionFactory']['registerElementLabel']('imageInline',_0x309b3a=>Mt(_0x41ad9a,'ELEMENT_INLINE_IMAGE',_0x309b3a)),_0x1d9db8['descriptionFactory']['registerElementLabel']('caption',()=>Mt(_0x41ad9a,'ELEMENT_CAPTION')),_0x3e4d3c['plugins']['has']('ImageUploadEditing')&&_0x1d9db8['enableCommand']('uploadImage'),_0x3e4d3c['plugins']['has']('ImageBlockEditing')&&_0x3e4d3c['plugins']['has']('ImageInlineEditing')&&(_0x1d9db8['enableCommand']('imageTypeInline',(_0x11bba4,_0x58a0a9)=>{const _0x40bcc6=_0x4cbfb7['getClosestSelectedImageElement'](_0x3e4d3c['model']['document']['selection']);_0x3e4d3c['model']['change'](()=>{_0x1d9db8['markBlockFormat'](_0x40bcc6,{'commandName':'imageTypeInline','commandParams':[_0x58a0a9]},[],'convertBlockImageToInline');});}),_0x1d9db8['enableCommand']('imageTypeBlock',(_0x4649e3,_0x121581)=>{_0x3e4d3c['model']['change'](_0x5daf14=>{let _0x5c1e2f=_0x4cbfb7['getClosestSelectedImageElement'](_0x3e4d3c['model']['document']['selection']),_0x376764=_0x5daf14['createRangeOn'](_0x5c1e2f);const _0x424d06=st['fromPosition'](_0x376764['start'],'toPrevious'),_0x40d58b=st['fromPosition'](_0x376764['end'],'toNext');_0x1d9db8['forceDefaultExecution'](()=>_0x4649e3(_0x121581)),_0x5c1e2f=_0x4cbfb7['getClosestSelectedImageElement'](_0x3e4d3c['model']['document']['selection']),_0x376764=_0x5daf14['createRangeOn'](_0x5c1e2f);const _0x497600=_0x5daf14['createRange'](_0x424d06,_0x40d58b);_0x424d06['detach'](),_0x40d58b['detach'](),_0x1d9db8['markBlockFormat'](_0x5c1e2f,{'commandName':'imageTypeInline','commandParams':[_0x121581]},[],'convertInlineImageToBlock'),_0x497600['start']['isBefore'](_0x376764['start'])&&_0x1d9db8['markInsertion'](_0x5daf14['createRange'](_0x497600['start'],_0x376764['start']),'convertInlineImageToBlock'),_0x376764['end']['isBefore'](_0x497600['end'])&&_0x1d9db8['markInsertion'](_0x5daf14['createRange'](_0x376764['end'],_0x497600['end']),'convertInlineImageToBlock');});}),_0x1d9db8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1d9db8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1d9db8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1d9db8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1d9db8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1d9db8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3acbfe])=>{const _0x3d8ad2=_0x1d9db8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x9cdef6=_0x3acbfe['start'],_0x29b3e9=_0x3acbfe['end'];const _0x57e0fe=_0x3e4d3c['model']['schema']['getNearestSelectionRange'](_0x9cdef6,'backward'),_0x512968=_0x3e4d3c['model']['schema']['getNearestSelectionRange'](_0x29b3e9,'forward');_0x57e0fe['isCollapsed']&&(_0x9cdef6=_0x57e0fe['start']),_0x512968['isCollapsed']&&(_0x29b3e9=_0x512968['end']),_0x3d8ad2([_0x3e4d3c['model']['createRange'](_0x9cdef6,_0x29b3e9)]);}),_0x1d9db8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5ca291),_0x1d9db8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5ca291)),_0x3e4d3c['plugins']['has']('ImageCaptionEditing')&&(_0x1d9db8['enableCommand']('toggleImageCaption',(_0x384269,_0x6df244)=>{const _0x1972d7=_0x3e4d3c['plugins']['get']('ImageCaptionUtils');let _0x1cfc30=_0x4cbfb7['getClosestSelectedImageElement'](_0x3e4d3c['model']['document']['selection']),_0xb6ea43=_0x1972d7['getCaptionFromImageModelElement'](_0x1cfc30);_0x3e4d3c['model']['change'](()=>{if(_0xb6ea43)return void _0x1d9db8['markDeletion'](_0x3e4d3c['model']['createRangeOn'](_0xb6ea43));const _0xba2b8a=_0x4cbfb7['isBlockImage'](_0x1cfc30);_0x384269(_0x6df244),_0x1cfc30=_0x4cbfb7['getClosestSelectedImageElement'](_0x3e4d3c['model']['document']['selection']),_0xb6ea43=_0x1972d7['getCaptionFromImageModelElement'](_0x1cfc30),_0x1d9db8['markInsertion'](_0x3e4d3c['model']['createRangeOn'](_0xb6ea43),_0xba2b8a?null:'imageCaption');});}),_0x1d9db8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5ca291));const _0x2c7b32=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xd1d6d5(_0x5ab0ad,_0x3bd0ea){const _0x461881=_0x2c7b32['findIndex'](({type:_0x1eb03e,subType:_0x5dab60})=>_0x5ab0ad['type']==_0x1eb03e&&_0x5ab0ad['subType']==_0x5dab60),_0x45cd00=_0x2c7b32['findIndex'](({type:_0xe5a701,subType:_0x2e2679})=>_0x3bd0ea['type']==_0xe5a701&&_0x3bd0ea['subType']==_0x2e2679);if(_0x461881<0x0||_0x45cd00<0x0)return!0x1;const _0x27a610=_0x5ab0ad['getFirstRange'](),_0x41784b=_0x3bd0ea['getFirstRange']();if((0x0==_0x461881||0x1==_0x461881)&&0x2==_0x45cd00&&_0x27a610['isIntersecting'](_0x41784b))return!0x0;if(0x2==_0x461881&&0x3==_0x45cd00){const _0x264936=_0x1d9db8['_findSuggestions'](_0x27a610,'insertion')['filter'](({suggestion:_0x5ca913,meta:_0x13af21})=>_0x13af21['isOwn']&&'convertInlineImageToBlock'==_0x5ca913['subType']);if(_0x264936['length']>0x1&&_0x41784b['end']['isEqual'](_0x27a610['start']))return!0x0;if(0x1==_0x264936['length']&&(_0x27a610['start']['isEqual'](_0x41784b['end'])||_0x27a610['end']['isEqual'](_0x41784b['start'])))return!0x0;}if(0x3==_0x461881&&0x3==_0x45cd00&&_0x27a610['start']['isBefore'](_0x41784b['start'])){const _0x30e541=_0x27a610['end']['nodeAfter'],_0x4a23c9=_0x41784b['start']['nodeBefore'];return _0x4cbfb7['isBlockImage'](_0x30e541)&&_0x30e541===_0x4a23c9;}return!0x1;}function _0x5ca291(_0x3b3924,_0x54eeaf){return _0xd1d6d5(_0x3b3924,_0x54eeaf)?[_0x3b3924,_0x54eeaf]:_0xd1d6d5(_0x54eeaf,_0x3b3924)?[_0x54eeaf,_0x3b3924]:null;}_0x3e4d3c['plugins']['has']('ImageResize')&&(_0x1d9db8['enableDefaultAttributesIntegration']('resizeImage'),_0x1d9db8['descriptionFactory']['registerAttributeLabel']('resizedWidth',Mt(_0x41ad9a,'FORMAT_IMAGE_SIZE'))),_0x3e4d3c['plugins']['has']('ImageTextAlternativeEditing')&&_0x1d9db8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3e4d3c['plugins']['has']('PictureEditing')&&_0x1d9db8['descriptionFactory']['registerDescriptionCallback'](_0x138534=>{if('attribute'!=_0x138534['type'])return;const {data:_0x33bd0c}=_0x138534;return _0x33bd0c&&'sources'==_0x33bd0c['key']?{'type':'format','content':''}:void 0x0;}),_0x3e4d3c['plugins']['has']('ImageSizeAttributes')&&_0x1d9db8['descriptionFactory']['registerDescriptionCallback'](_0x3dcf57=>{if('attribute'!=_0x3dcf57['type'])return;const {data:_0x4eb03b}=_0x3dcf57;return!_0x4eb03b||'width'!=_0x4eb03b['key']&&'height'!=_0x4eb03b['key']?void 0x0:{'type':'format','content':''};}),_0x1d9db8['descriptionFactory']['registerDescriptionCallback'](_0x13e025=>{if(_0x2c7b32['find'](({type:_0x185d7e,subType:_0x3b8724})=>_0x13e025['type']==_0x185d7e&&_0x13e025['subType']==_0x3b8724))return _0x13e025['previous']?{}:void 0x0;}),_0x1d9db8['descriptionFactory']['registerDescriptionCallback'](_0x54e62b=>{if('insertion'==_0x54e62b['type']||'deletion'==_0x54e62b['type']){const _0x517728=_0x54e62b['getContainedElement']();if(_0x517728&&_0x517728['is']('element','caption'))return{'type':'insertion'==_0x54e62b['type']?'addObject':'removeObject','element':_0x517728,'quantity':0x1};}}),_0x1d9db8['descriptionFactory']['registerDescriptionCallback'](_0x18028b=>'formatBlock'==_0x18028b['type']&&'convertInlineImageToBlock'==_0x18028b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x18028b['type']&&'convertBlockImageToInline'==_0x18028b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1d9db8['descriptionFactory']['registerDescriptionCallback'](_0x1822d7=>{if('attribute'!=_0x1822d7['type'])return;const {data:_0x28ad35}=_0x1822d7;if(!_0x28ad35||'alt'!=_0x28ad35['key'])return;const _0x1d2357=_0x28ad35['newValue'];return _0x1d2357?{'type':'format','content':Mt(_0x41ad9a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1d2357+'\x22')}:{'type':'format','content':Mt(_0x41ad9a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x536345=this['editor'],_0x3bc306=_0x536345['locale'];_0x536345['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fa1c7=>{if('formatBlock'!=_0x3fa1c7['type']&&'formatInline'!=_0x3fa1c7['type'])return;const {data:_0x33d285}=_0x3fa1c7;if(_0x33d285){if('imageTextAlternative'==_0x33d285['commandName']){const _0x4e65ad=_0x33d285['commandParams'][0x0]['newValue'];return _0x4e65ad?{'type':'format','content':Mt(_0x3bc306,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4e65ad+'\x22')}:{'type':'format','content':Mt(_0x3bc306,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x33d285['commandName']){const _0x441c9e=_0x33d285['commandParams'][0x0]['width'];return _0x441c9e?{'type':'format','content':Mt(_0x3bc306,'*Set\x20image\x20width:*\x20%0',_0x441c9e)}:{'type':'format','content':Mt(_0x3bc306,'*Reset\x20image\x20width*')};}}});}},ge=class extends _0x5cf544{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x42c761=this['editor']['locale'],_0x2b4546=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b4546['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2b4546['descriptionFactory']['registerDescriptionCallback'](_0x428538=>{if('attribute'!=_0x428538['type'])return;const {data:_0x381730}=_0x428538;return _0x381730&&'src'==_0x381730['key']?_0x381730['newValue']&&_0x381730['oldValue']?{'type':'format','content':Mt(_0x42c761,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x3359d7=this['editor']['plugins']['get']('TrackChangesEditing');_0x3359d7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3359d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3359d7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3359d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1050e8=this['editor'],_0xa81af9=_0x1050e8['locale'];_0x1050e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe263a2=>{if('formatBlock'!=_0xe263a2['type']&&'formatInline'!=_0xe263a2['type'])return;const {data:_0x425ee6}=_0xe263a2;return _0x425ee6&&'replaceImageSource'==_0x425ee6['commandName']?{'type':'format','content':Mt(_0xa81af9,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},fe=class extends _0x5cf544{afterInit(){const _0xc781f6=this['editor'];if(!_0xc781f6['plugins']['has']('ImageStyleEditing'))return;const _0x661f94=_0xc781f6['plugins']['get']('TrackChangesEditing'),_0x21614b=_0xc781f6['plugins']['get']('ImageUtils'),_0xf02afa={};_0x661f94['enableCommand']('imageStyle',(_0x5c4c5d,_0x1c0523)=>{const _0x18fb3f=_0xc781f6['plugins']['get']('Users')['me'],_0x1478c3=_0xc781f6['commands']['get']('imageStyle');let _0x1dde52=_0x21614b['getClosestSelectedImageElement'](_0xc781f6['model']['document']['selection']),_0x4f615f=_0xc781f6['model']['createRangeOn'](_0x1dde52),_0x12ceca=_0x1478c3['value'];if(_0x12ceca==_0x1c0523['value'])return;if(_0x1c0523['value']&&_0x21614b['isInlineImage'](_0x1dde52)&&!_0x1478c3['isStyleEnabled'](_0x1c0523['value']))return;const _0x4329ab={'commandName':'imageStyle','commandParams':[_0x1c0523],'formatGroupId':_0x4aa562()};_0xc781f6['model']['change'](()=>{if(_0x661f94['getSuggestions']()['filter'](_0x505c37=>_0x505c37['isInContent']&&_0x18fb3f==_0x505c37['author']&&('formatBlock'==_0x505c37['type']||'formatInline'==_0x505c37['type'])&&('imageStylePreApply'==_0x505c37['subType']||'imageStylePostApply'==_0x505c37['subType'])&&_0x505c37['getFirstRange']()['isEqual'](_0x4f615f))['forEach'](_0x2f1680=>_0x661f94['discardSuggestion'](_0x2f1680['head'])),_0x1dde52=_0x21614b['getClosestSelectedImageElement'](_0xc781f6['model']['document']['selection']),_0x4f615f=_0xc781f6['model']['createRangeOn'](_0x1dde52),_0x1478c3['refresh'](),_0xc781f6['commands']['get']('imageTypeInline')['refresh'](),_0xc781f6['commands']['get']('imageTypeBlock')['refresh'](),_0x12ceca=_0x1478c3['value'],_0x12ceca!=_0x1c0523['value'])return _0x21614b['isInlineImage'](_0x1dde52)&&_0x1478c3['shouldConvertImageType'](_0x1c0523['value'],_0x1dde52)?(_0x5c4c5d({..._0x1c0523,'setImageSizes':!0x1}),_0x1dde52=_0x21614b['getClosestSelectedImageElement'](_0xc781f6['model']['document']['selection']),void _0x661f94['markBlockFormat'](_0x1dde52,{..._0x4329ab,'commandReversedParams':[{'value':_0x12ceca||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x21614b['isBlockImage'](_0x1dde52)?_0x661f94['markBlockFormat'](_0x1dde52,_0x4329ab,[],'imageStylePostApply'):_0x661f94['markInlineFormat'](_0x4f615f,_0x4329ab,'imageStylePostApply'));});});for(const _0xe7622d of _0xc781f6['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xf02afa[_0xe7622d['name']]=_0xe7622d['title']['toLowerCase']();_0x661f94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x661f94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x661f94['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x661f94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x26f800])=>{_0x21614b['setImageNaturalSizeAttributes'](_0x26f800['getContainedElement']());}),_0x661f94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4c3d00,_0x38d0f2)=>{_0x661f94['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4c3d00,{'commandName':_0x38d0f2['commandName'],'commandParams':_0x38d0f2['commandReversedParams']});}),_0x661f94['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3f3314,_0x4838bb){return _0x420092(_0x3f3314,_0x4838bb)?[_0x3f3314,_0x4838bb]:_0x420092(_0x4838bb,_0x3f3314)?[_0x4838bb,_0x3f3314]:null;});const _0x2bf77f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x420092(_0x1f3a72,_0x3650ba){const _0xc54420=_0x2bf77f['findIndex'](({type:_0x3fb171,subType:_0xfdc44b})=>_0x1f3a72['type']==_0x3fb171&&_0x1f3a72['subType']==_0xfdc44b),_0x172fa3=_0x2bf77f['findIndex'](({type:_0x35482a,subType:_0x3add17})=>_0x3650ba['type']==_0x35482a&&_0x3650ba['subType']==_0x3add17);if(_0xc54420<0x0||_0x172fa3<0x0)return!0x1;const _0x54556f=_0x1f3a72['getFirstRange'](),_0x120717=_0x3650ba['getFirstRange']();if((0x0==_0xc54420||0x1==_0xc54420)&&0x2==_0x172fa3&&_0x54556f['isIntersecting'](_0x120717))return!0x0;if(0x2==_0xc54420&&0x3==_0x172fa3){const _0x1f33ac=_0x661f94['_findSuggestions'](_0x54556f,'insertion')['filter'](({suggestion:_0xf5064e,meta:_0x1eb94e})=>_0x1eb94e['isOwn']&&'convertInlineImageToBlock'==_0xf5064e['subType']);if(_0x1f33ac['length']>0x1&&_0x120717['end']['isEqual'](_0x54556f['start']))return!0x0;if(0x1==_0x1f33ac['length']&&(_0x54556f['start']['isEqual'](_0x120717['end'])||_0x54556f['end']['isEqual'](_0x120717['start'])))return!0x0;}if(0x3==_0xc54420&&0x3==_0x172fa3&&_0x54556f['start']['isBefore'](_0x120717['start'])){const _0x27fd29=_0x54556f['end']['nodeAfter'],_0x15058d=_0x120717['start']['nodeBefore'];return _0x21614b['isBlockImage'](_0x27fd29)&&_0x27fd29===_0x15058d;}return!0x1;}_0xc781f6['model']['document']['registerPostFixer'](()=>{let _0x35ff29=!0x1;const _0x4a1bc3=Array['from'](_0xc781f6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x225a64,data:_0x58893c}of _0x4a1bc3){const {group:_0x2cc245,type:_0xceaea2,subType:_0x2c7f2b,id:_0x138f78}=tt(_0x225a64);if('suggestion'==_0x2cc245&&_0x661f94['hasSuggestion'](_0x138f78)){if('formatBlock'==_0xceaea2&&('imageStylePreApply'==_0x2c7f2b||'imageStylePostApply'==_0x2c7f2b)){const _0x1dfc8f=_0x661f94['getSuggestion'](_0x138f78);if(_0x58893c['newRange']){const _0x29ad1a=_0x1dfc8f['getFirstRange']()['getContainedElement']();if(_0x21614b['isBlockImage'](_0x29ad1a))continue;_0x661f94['discardSuggestion'](_0x1dfc8f),_0x35ff29=!0x0;}}if('insertion'==_0xceaea2&&'imageCaption'==_0x2c7f2b&&!_0x58893c['newRange']){const _0x2928e6=_0x661f94['getSuggestion'](_0x138f78);_0x2928e6['next']&&_0x2928e6['next']['isInContent']&&(_0x661f94['discardSuggestion'](_0x2928e6['next']),_0x35ff29=!0x0);}}}return _0x35ff29;}),this['_registerLegacyDescription'](_0xf02afa);}_registerLegacyDescription(_0x513dcd){const _0xc413fb=this['editor'],_0x176032=_0xc413fb['locale'];_0xc413fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x465f24=>{if('formatBlock'!=_0x465f24['type']&&'formatInline'!=_0x465f24['type'])return;const {data:_0x5ce715}=_0x465f24;if(!_0x5ce715||'imageStyle'!=_0x5ce715['commandName'])return;const _0x2d8508=_0x5ce715['commandParams'][0x0]['value'];return _0x3e2501('side'===_0x2d8508?Mt(_0x176032,'FORMAT_SIDE_IMAGE'):_0x513dcd[_0x2d8508]||_0x2d8508);function _0x3e2501(_0x5ad239){return{'type':'format','content':Mt(_0x176032,'*Format:*\x20%0',_0x5ad239)};}});}},me=class extends _0x5cf544{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x157c9d){super(_0x157c9d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x238b81=this['editor'],_0x1be41c=_0x238b81['commands']['get']('importWord'),_0x31d60a=_0x238b81['commands']['get']('trackChanges');_0x1be41c&&(_0x1be41c['on']('execute',(_0x43459b,[,_0x5e8475])=>{this['_trackChangesValueDuringImport']=_0x31d60a['value'],_0x5e8475['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1be41c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1be41c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x31d60a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x238b81['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x3dbfcb,_0x21054b){const {suggestions:_0x3eba30}=_0x21054b,_0x6d705a=this['editor']['commands']['get']('trackChanges'),_0x586c68=_0x6d705a['value'];this['_trackChangesValueDuringImport']!==_0x586c68&&(_0x6d705a['execute'](),this['_trackChangesExecuted']=!0x0),_0x3eba30&&_0x3eba30['forEach'](({id:_0xa4b879,type:_0x145117,author:_0x2f8f06,created_at:_0x5f06af})=>{const _0x38d7cd={'id':_0xa4b879,'type':_0x145117,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2f8f06,'createdAt':_0x5f06af?new Date(_0x5f06af):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x38d7cd);});}},Ee=class extends _0x5cf544{afterInit(){const _0x43ea54=this['editor'],_0x12c7e8=_0x43ea54['plugins']['get']('TrackChangesEditing');if(_0x43ea54['plugins']['has']('IndentEditing')&&(_0x12c7e8['enableCommand']('indent'),_0x12c7e8['enableCommand']('outdent')),_0x43ea54['plugins']['has']('IndentBlock')){for(const _0x5f5abc of['indentBlock','outdentBlock'])_0x12c7e8['enableDefaultAttributesIntegration'](_0x5f5abc);if(_0x43ea54['plugins']['has']('ListEditing')){for(const _0x19b5a1 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x12c7e8['enableDefaultAttributesIntegration'](_0x19b5a1);}}const _0x3479b0=_0x43ea54['locale'];_0x12c7e8['descriptionFactory']['registerAttributeLabel']('blockIndent',Mt(_0x3479b0,'FORMAT_INDENT')),_0x12c7e8['descriptionFactory']['registerAttributeLabel']('blockIndentList',Mt(_0x3479b0,'FORMAT_INDENT')),_0x12c7e8['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Mt(_0x3479b0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x33b55f=this['editor'],_0x56fed0=_0x33b55f['locale'],_0x39b2fc=_0x33b55f['plugins']['get']('TrackChangesEditing');_0x39b2fc['descriptionFactory']['registerDescriptionCallback'](_0x19d707=>{if('formatBlock'!=_0x19d707['type'])return;const {data:_0x50553b}=_0x19d707;if(!_0x50553b)return;if('indentBlock'!=_0x50553b['commandName']&&'outdentBlock'!=_0x50553b['commandName'])return;const _0x2e3ef7=_0x19d707['getItems']()[0x0],_0x4a31e9=_0x39b2fc['descriptionFactory']['getItemLabel'](_0x2e3ef7);return'indentBlock'==_0x50553b['commandName']?{'type':'format','content':Mt(_0x56fed0,'*Indent:*\x20%0',_0x4a31e9)}:'outdentBlock'==_0x50553b['commandName']?{'type':'format','content':Mt(_0x56fed0,'*Outdent:*\x20%0',_0x4a31e9)}:void 0x0;});}},Te=class extends _0x5cf544{static get requires(){return[mt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},_e=class extends _0x5cf544{afterInit(){const _0xf837c7=this['editor'];if(!_0xf837c7['plugins']['has']('LinkEditing'))return;const _0x2f933e=_0xf837c7['plugins']['get']('TrackChangesEditing'),_0x252ffe=_0xf837c7['commands']['get']('link');_0x2f933e['enableDefaultAttributesIntegration']('link'),_0x2f933e['enableDefaultAttributesIntegration']('unlink');for(const _0x4c285e of _0x252ffe['manualDecorators'])_0x2f933e['descriptionFactory']['registerAttributeLabel'](_0x4c285e['id'],'link\x20('+_0x4c285e['label']['toLowerCase']()+')');_0x2f933e['descriptionFactory']['registerDescriptionCallback'](_0x520013=>{if('attribute'!=_0x520013['type'])return;const {data:_0x16d451}=_0x520013;if(!_0x16d451||'linkHref'!=_0x16d451['key'])return;const _0x20ef8c=_0x16d451['newValue'],_0xb28d60=_0xf837c7['locale'];return{'type':'format','content':null==_0x20ef8c?Mt(_0xb28d60,'*Remove\x20link*'):Mt(_0xb28d60,'*Set\x20link:*\x20%0','\x22'+_0x20ef8c+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4920f9=this['editor'],_0x166f39=_0x4920f9['locale'];_0x4920f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20f78c=>{if('formatInline'!=_0x20f78c['type'])return;const {data:_0x49e131}=_0x20f78c;if(_0x49e131){if('link'==_0x49e131['commandName']){const _0x5c74c4=_0x49e131['commandParams'][0x0];return{'type':'format','content':Mt(_0x166f39,'*Set\x20link:*\x20%0','\x22'+_0x5c74c4+'\x22')};}return'unlink'==_0x49e131['commandName']?{'type':'format','content':Mt(_0x166f39,'*Remove\x20link*')}:void 0x0;}});}},pe=class extends _0x5cf544{afterInit(){const _0x1434a9=this['editor'],_0x2a9a5d=_0x1434a9['locale'];if(!_0x1434a9['plugins']['has']('LegacyListEditing'))return;const _0x5093e6=_0x1434a9['plugins']['get']('TrackChangesEditing'),_0x17fb90=_0x1434a9['plugins']['has']('LegacyTodoListEditing');function _0x5855cf(_0x1db2dc){return()=>{const _0x1ac035=_0x1434a9['model']['document']['selection'],_0x91f932=_0x1434a9['commands']['get'](_0x1db2dc);if(_0x91f932['value'])return void _0x1434a9['execute']('paragraph',{});const _0x2c0236=_0x1db2dc['slice'](0x0,-0x4),_0x47de60=function(_0x3d20bd,_0x5c2ec7,_0x5d77ad){let _0xe67c3c=Array['from'](_0x3d20bd)['filter'](_0x37e4db=>function(_0x21dd9f,_0x5e207f){return _0x5e207f['checkChild'](_0x21dd9f['parent'],'listItem')&&!_0x5e207f['isObject'](_0x21dd9f);}(_0x37e4db,_0x5d77ad));_0xe67c3c=_0xe67c3c['filter'](_0x229b32=>!_0x229b32['is']('element','listItem')||_0x229b32['getAttribute']('listType')!=_0x5c2ec7);const _0x3c0be7=new Set();for(const _0x427c85 of _0xe67c3c)_0x427c85['is']('element','listItem')?_0x3c0be7['add'](Le(_0x427c85)):_0x3c0be7['add'](_0x427c85);return Array['from'](_0x3c0be7);}(_0x1ac035['getSelectedBlocks'](),_0x2c0236,_0x1434a9['model']['schema']);_0x1434a9['model']['change'](()=>{for(const _0x3e1b9e of _0x47de60)_0x5093e6['markBlockFormat'](_0x3e1b9e,{'commandName':_0x1db2dc,'commandParams':[{'forceValue':!_0x91f932['value']}],'formatGroupId':'blockName'},Ie(_0x3e1b9e));});};}function _0x4c8350(_0x4616cd){return()=>{const _0xad660a=function(_0x141147){let _0x38e815=Array['from'](_0x141147);const _0x58101f=_0x38e815['findIndex'](_0x668474=>'listItem'!=_0x668474['name']);return _0x58101f>-0x1&&(_0x38e815=_0x38e815['slice'](0x0,_0x58101f)),_0x38e815;}(_0x1434a9['model']['document']['selection']['getSelectedBlocks']()),_0x35e9d2=_0x1434a9['model']['createRange'](_0x1434a9['model']['createPositionAt'](_0xad660a[0x0],'before'),_0x1434a9['model']['createPositionAt'](_0xad660a[_0xad660a['length']-0x1],'end'));_0x1434a9['model']['change'](()=>{_0x5093e6['markBlockFormat'](_0x35e9d2,{'commandName':_0x4616cd,'commandParams':[],'formatGroupId':'listIndent'},function(_0x560bdc){const _0x5496a9=new Set();for(const _0x333da of _0x560bdc){let _0x3b084c=_0x333da['nextSibling'];for(;_0x3b084c&&_0x3b084c['getAttribute']('listIndent')>_0x333da['getAttribute']('listIndent');)_0x5496a9['add'](_0x3b084c),_0x3b084c=_0x3b084c['nextSibling'];}return Array['from'](_0x5496a9);}(_0xad660a));});};}_0x5093e6['enableCommand']('numberedList',_0x5855cf('numberedList')),_0x5093e6['enableCommand']('bulletedList',_0x5855cf('bulletedList')),_0x17fb90&&_0x5093e6['enableCommand']('todoList',_0x5855cf('todoList')),_0x5093e6['enableCommand']('indentList',_0x4c8350('indentList')),_0x5093e6['enableCommand']('outdentList',_0x4c8350('outdentList')),_0x17fb90&&_0x5093e6['enableCommand']('checkTodoList',()=>{const _0x1bd857=_0x1434a9['commands']['get']('checkTodoList'),_0x11be95=Array['from'](_0x1bd857['_selectedElements']);_0x11be95['filter'](_0x29b452=>_0x29b452['getAttribute']('todoListChecked')!=_0x1bd857['value']),_0x1434a9['model']['change'](()=>{for(const _0x3ad465 of _0x11be95)_0x5093e6['markBlockFormat'](_0x3ad465,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1bd857['value']}]});});}),_0x5093e6['descriptionFactory']['registerElementLabel']('listItem',_0x198234=>Mt(_0x2a9a5d,'ELEMENT_LIST_ITEM',_0x198234)),_0x5093e6['descriptionFactory']['registerDescriptionCallback'](_0x2f8c5c=>{if('formatBlock'!=_0x2f8c5c['type']&&'formatInline'!=_0x2f8c5c['type'])return;const {data:_0xa2fb7c}=_0x2f8c5c;if(_0xa2fb7c){if('numberedList'==_0xa2fb7c['commandName']||'bulletedList'==_0xa2fb7c['commandName']||'todoList'==_0xa2fb7c['commandName'])switch(_0xa2fb7c['commandName']['replace']('List','')){case'bulleted':return _0x30423f(Mt(_0x2a9a5d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x30423f(Mt(_0x2a9a5d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x30423f(Mt(_0x2a9a5d,'ELEMENT_TODO_LIST'));}if('indentList'==_0xa2fb7c['commandName'])return{'type':'format','content':Mt(_0x2a9a5d,'*Indent:*\x20%0',Mt(_0x2a9a5d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xa2fb7c['commandName'])return{'type':'format','content':Mt(_0x2a9a5d,'*Outdent:*\x20%0',Mt(_0x2a9a5d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xa2fb7c['commandName'])return _0xa2fb7c['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x2a9a5d,'*Check\x20item*')}:{'type':'format','content':Mt(_0x2a9a5d,'*Uncheck\x20item*')};}function _0x30423f(_0x2fb31d){return{'type':'format','content':Mt(_0x2a9a5d,'*Change\x20to:*\x20%0',_0x2fb31d)};}});}};function Le(_0x38991c){const _0x2a313b=_0x38991c['getAttribute']('listIndent');if(0x0==_0x2a313b)return _0x38991c;let _0x39ee2d=_0x38991c;for(;_0x38991c['previousSibling']&&_0x38991c['previousSibling']['is']('element','listItem');){const _0x313dad=_0x38991c['previousSibling']['getAttribute']('listIndent');if(_0x313dad==_0x2a313b)_0x39ee2d=_0x38991c['previousSibling'];else{if(_0x313dad<_0x2a313b)break;}_0x38991c=_0x38991c['previousSibling'];}return _0x39ee2d;}function Ie(_0x9bffc6){const _0x4e30f6=[];if(_0x9bffc6['is']('element','listItem')&&_0x9bffc6['getAttribute']('listIndent')>0x0){let _0x3446c1=_0x9bffc6['nextSibling'];for(;_0x3446c1&&'listItem'==_0x3446c1['name']&&_0x3446c1['getAttribute']('listIndent')==_0x9bffc6['getAttribute']('listIndent');)_0x4e30f6['push'](_0x3446c1),_0x3446c1=_0x3446c1['nextSibling'];}return _0x4e30f6;}var Ae=class extends _0x5cf544{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x216f06=this['editor']['config']['get']('list.properties'),_0x22010c=this['editor']['plugins']['get']('TrackChangesEditing');_0x216f06['styles']&&_0x22010c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x216f06['reversed']&&_0x22010c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x216f06['startIndex']&&_0x22010c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x22010c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x44be48,_0x19c6a6={}){const _0x52288b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x437ad7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x52288b['markMultiRangeBlockFormat'](_0x437ad7,{'commandName':'listStyle','commandParams':[{'type':_0x19c6a6['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x53d054,_0x53ec57={}){const _0x41b20b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe6516f=this['_getSuggestionBlocks'](_0x4995e1=>_0x4995e1['is']('element','listItem')&&'numbered'===_0x4995e1['getAttribute']('listType'));if(_0xe6516f['length']<0x1)return;const _0x131c82=_0xe6516f['map'](_0x2066e9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2066e9,'before'),this['editor']['model']['createPositionAt'](_0x2066e9,0x0)));this['editor']['model']['change'](()=>{_0x41b20b['markMultiRangeBlockFormat'](_0x131c82,{'commandName':'listReversed','commandParams':[{'reversed':_0x53ec57['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x21a787,_0x3084f7={}){const _0x5cdc42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5556f8=this['_getSuggestionBlocks'](_0x21dcc8=>_0x21dcc8['is']('element','listItem')&&'numbered'===_0x21dcc8['getAttribute']('listType'));if(_0x5556f8['length']<0x1)return;const _0x411d51=_0x5556f8['map'](_0x435de3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x435de3,'before'),this['editor']['model']['createPositionAt'](_0x435de3,0x0)));this['editor']['model']['change'](()=>{_0x5cdc42['markMultiRangeBlockFormat'](_0x411d51,{'commandName':'listStart','commandParams':[{'startIndex':_0x3084f7['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x59cf16){if('formatBlock'!=_0x59cf16['type']&&'formatInline'!=_0x59cf16['type'])return;const _0x57641b=this['editor']['locale'],{data:_0x452641}=_0x59cf16;if(!_0x452641)return;let _0x42d7bf,_0x527630;switch(_0x452641['commandName']){case'listStyle':_0x42d7bf='*Change\x20to:*\x20%0',_0x527630={'type':'format','content':Mt(_0x57641b,_0x42d7bf,Mt(_0x57641b,this['_getTranslationKeyForListStyle'](_0x452641['commandParams'][0x0]['type'])))};break;case'listReversed':_0x42d7bf=_0x452641['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x527630={'type':'format','content':Mt(_0x57641b,_0x42d7bf)};break;case'listStart':_0x42d7bf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x527630={'type':'format','content':Mt(_0x57641b,_0x42d7bf,_0x452641['commandParams'][0x0]['startIndex'])};}return _0x527630;}_getSuggestionBlocksForListStyle(){const _0x40a484=this['editor']['plugins']['get']('LegacyListUtils');let _0x264bfc=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x264bfc[0x0]?.['is']('element','listItem')&&_0x264bfc['unshift'](..._0x40a484['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x264bfc[_0x264bfc['length']-0x1]?.['is']('element','listItem')&&_0x264bfc['push'](..._0x40a484['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x264bfc=[...new Set(_0x264bfc)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x264bfc=_0x264bfc['filter'](_0x522955=>_0x522955['is']('element','listItem'))),_0x264bfc;}_getSuggestionBlocks(_0x4d5013){const _0x26523d=this['editor']['plugins']['get']('LegacyListUtils');let _0x38dd9b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4d5013)['map'](_0x535c54=>{const _0x1a1552=this['editor']['model']['createPositionAt'](_0x535c54,0x0);return[..._0x26523d['getSiblingNodes'](_0x1a1552,'backward'),..._0x26523d['getSiblingNodes'](_0x1a1552,'forward')];})['flat']();return _0x38dd9b=[...new Set(_0x38dd9b)],_0x38dd9b;}_getTranslationKeyForListStyle(_0x3611a2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3611a2)||'default')['toUpperCase']()+'_LIST_'+_0x3611a2['toUpperCase']()['replace'](/-/g,'_');}},be=class extends _0x5cf544{afterInit(){const _0x439acc=this['editor'];if(!_0x439acc['plugins']['has']('MediaEmbedEditing'))return;const _0x4276bd=_0x439acc['plugins']['get']('TrackChangesEditing'),_0x57416a=_0x439acc['locale'];_0x4276bd['enableCommand']('mediaEmbed'),_0x4276bd['descriptionFactory']['registerElementLabel']('media',_0xfc5d50=>Mt(_0x57416a,'ELEMENT_MEDIA',_0xfc5d50)),_0x439acc['plugins']['has']('MediaEmbedResizeEditing')&&(_0x4276bd['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x4276bd['descriptionFactory']['registerDescriptionCallback'](_0x39fd48=>{if('attribute'!=_0x39fd48['type'])return;const {data:_0x3ebfd2}=_0x39fd48;if(!_0x3ebfd2||'resizedWidth'!=_0x3ebfd2['key'])return;const _0x12a055=_0x39fd48['getContainedElement']();if(!_0x12a055||!_0x12a055['is']('element','media'))return;const _0x571476=Mt(_0x57416a,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Mt(_0x57416a,'*Set\x20format:*\x20%0',_0x571476)};}));}},ke=class extends _0x5cf544{afterInit(){const _0x3c926a=this['editor'];if(!_0x3c926a['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x1a2534=_0x3c926a['plugins']['get']('TrackChangesEditing'),_0x35e97d=_0x3c926a['locale'],_0x587027=_0x3c926a['plugins']['get']('MediaEmbedStyleEditing'),_0x137182={};for(const _0x5642f6 of _0x587027['normalizedStyles'])_0x137182[_0x5642f6['name']]=_0x5642f6['title']['toLowerCase']();const _0x407757=_0x587027['normalizedStyles']['find'](_0x5acc90=>_0x5acc90['isDefault'])?.['name'];_0x1a2534['enableCommand']('mediaStyle',(_0x29f4cd,_0x315129)=>{const _0x23e004=_0x3c926a['plugins']['get']('Users')['me'],_0x2f90bb=_0x3c926a['commands']['get']('mediaStyle'),_0x2aba4c=function(_0x4cd55a){const _0x335f0f=_0x4cd55a['model']['document']['selection']['getSelectedElement']();return _0x335f0f&&_0x335f0f['is']('element','media')?_0x335f0f:null;}(_0x3c926a);if(!_0x2aba4c)return;const _0x3fc02f=_0x3c926a['model']['createRangeOn'](_0x2aba4c);let _0x495768=_0x2f90bb['value'];if(_0x495768==_0x315129['value'])return;const _0x143096={'commandName':'mediaStyle','commandParams':[_0x315129],'formatGroupId':_0x4aa562()};_0x3c926a['model']['change'](()=>{_0x1a2534['getSuggestions']()['filter'](_0x13e25a=>_0x13e25a['isInContent']&&_0x23e004==_0x13e25a['author']&&'formatBlock'==_0x13e25a['type']&&'mediaStylePostApply'==_0x13e25a['subType']&&_0x13e25a['getFirstRange']()['isEqual'](_0x3fc02f))['forEach'](_0x6b9ebc=>_0x1a2534['discardSuggestion'](_0x6b9ebc['head'])),_0x2f90bb['refresh'](),_0x495768=_0x2f90bb['value'],_0x495768!=_0x315129['value']&&_0x1a2534['markBlockFormat'](_0x2aba4c,{..._0x143096,'commandReversedParams':[{'value':'string'==typeof _0x495768?_0x495768:null}]},[],'mediaStylePostApply');});}),_0x1a2534['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x1a2534['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x5d3aed,_0x1243ed)=>{_0x1a2534['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5d3aed,{'commandName':_0x1243ed['commandName'],'commandParams':_0x1243ed['commandReversedParams']});}),_0x1a2534['descriptionFactory']['registerDescriptionCallback'](_0x31597b=>{if('formatBlock'!=_0x31597b['type'])return;const {data:_0x17dcd3}=_0x31597b;if(!_0x17dcd3||'mediaStyle'!=_0x17dcd3['commandName'])return;const _0x1788de=_0x17dcd3['commandParams'][0x0]['value']||_0x407757;if(!_0x1788de)return;const _0x5d133d=_0x137182[_0x1788de]||_0x1788de;return{'type':'format','content':Mt(_0x35e97d,'*Format:*\x20%0',_0x5d133d)};});}},Ce=class extends _0x5cf544{afterInit(){const _0x2461ea=this['editor'];_0x2461ea['plugins']['has']('MentionEditing')&&_0x2461ea['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Re=class extends _0x5cf544{afterInit(){const _0x3f7984=this['editor'];if(!_0x3f7984['plugins']['has']('MergeFieldsEditing'))return;const _0x116342=_0x3f7984['plugins']['get']('TrackChangesEditing'),_0x42f972=_0x3f7984['locale'];_0x116342['enableCommand']('insertMergeField'),_0x116342['enableCommand']('insertMergeFieldBlock'),_0x116342['enableCommand']('insertMergeFieldImage'),_0x116342['descriptionFactory']['registerElementLabel']('mergeField',_0x107633=>Mt(_0x42f972,'ELEMENT_MERGE_FIELD',_0x107633)),_0x116342['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3a54e1=>Mt(_0x42f972,'ELEMENT_MERGE_FIELD',_0x3a54e1)),_0x116342['descriptionFactory']['registerDescriptionCallback'](_0x15c073=>{if('insertion'!=_0x15c073['type']&&'deletion'!=_0x15c073['type'])return;const _0x4d85b1=_0x15c073['getContainedElement']();if(null==_0x4d85b1)return;const _0x6047f4=_0x3f7984['plugins']['get']('MergeFieldsEditing');let _0x26b043;switch(_0x6047f4['getMergeFieldType'](_0x4d85b1)){case null:return;case'image':{const _0x86b92b=_0x6047f4['unwrapAffixes'](_0x4d85b1['getAttribute']('src'));_0x26b043=_0x6047f4['getLabel'](_0x86b92b)||_0x86b92b;break;}default:{const _0x269bb7=_0x4d85b1['getAttribute']('id');_0x26b043=_0x6047f4['getLabel'](_0x269bb7)||_0x269bb7;break;}}return'insertion'==_0x15c073['type']?{'type':'insertion','content':Mt(_0x42f972,'*Insert:*\x20%0','\x22'+_0x26b043+'\x22\x20'+Mt(_0x42f972,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Mt(_0x42f972,'*Remove:*\x20%0','\x22'+_0x26b043+'\x22\x20'+Mt(_0x42f972,'ELEMENT_MERGE_FIELD'))};});}},ye=class extends _0x5cf544{afterInit(){const _0xcb4c4d=this['editor'],_0x526327=_0xcb4c4d['plugins']['get']('TrackChangesEditing');_0xcb4c4d['plugins']['has']('MultiLevelList')&&(_0x526327['enableDefaultAttributesIntegration']('multiLevelList'),_0x526327['descriptionFactory']['registerDescriptionCallback'](_0x1b5ab8=>this['handleDescriptions'](_0x1b5ab8)));}handleDescriptions(_0x330a22){const _0x379c86=this['editor']['locale'],{data:_0x230d84}=_0x330a22,_0x24de81={'type':'format','content':''};if(_0x230d84&&'listMarkerStyle'==_0x230d84['key']){if(!_0x230d84['oldValue'])return{'type':'format','content':Mt(_0x379c86,'*Set\x20format:*\x20%0',Mt(_0x379c86,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x230d84['newValue']+')'};if(!_0x230d84['newValue']){let _0x100899=_0x330a22['head'];for(;_0x100899;){if(_0x100899['data']&&'listType'==_0x100899['data']['key']&&_0x100899['data']['newValue'])return _0x24de81;_0x100899=_0x100899['next'];}return{'type':'format','content':Mt(_0x379c86,'*Remove\x20format:*\x20%0',Mt(_0x379c86,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x230d84['oldValue']+')'};}}}},Ne=class extends _0x5cf544{afterInit(){const _0x91ae51=this['editor'];if(!_0x91ae51['plugins']['has']('PageBreakEditing'))return;_0x91ae51['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x152bda=_0x91ae51['plugins']['get']('TrackChangesEditing'),_0x234c1e=_0x91ae51['locale'];_0x152bda['descriptionFactory']['registerElementLabel']('pageBreak',_0x34cff9=>Mt(_0x234c1e,'ELEMENT_PAGE_BREAK',_0x34cff9));}},Se=class extends _0x5cf544{afterInit(){const _0x1e0a75=this['editor'];if(!_0x1e0a75['plugins']['has']('Paragraph'))return;const _0x39ef09=_0x1e0a75['locale'],_0x25c643=_0x1e0a75['plugins']['get']('TrackChangesEditing');_0x25c643['descriptionFactory']['registerElementLabel']('paragraph',_0x4984f5=>Mt(_0x39ef09,'ELEMENT_PARAGRAPH',_0x4984f5)),_0x25c643['enableDefaultAttributesIntegration']('paragraph'),_0x25c643['enableCommand']('insertParagraph');const _0x89afce=_0x25c643['descriptionFactory'];_0x89afce['registerDescriptionCallback'](_0x3939df=>{if('insertion'!==_0x3939df['type'])return;const {start:_0x1a1124,end:_0x9f2ba0}=_0x3939df['getFirstRange']();if(!_0x1a1124['isTouching'](_0x9f2ba0)||!_0x1a1124['nodeAfter'])return;const _0x489c53=_0x1e0a75['model']['schema'],_0x41acc6=_0x1a1124['nodeAfter'];return _0x489c53['isBlock'](_0x41acc6)&&!_0x489c53['isLimit'](_0x41acc6)&&_0x489c53['checkChild'](_0x41acc6,'$text')?{'type':'insertion','content':Mt(_0x39ef09,'*Insert:*\x20%0',_0x89afce['getItemLabel'](_0x41acc6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x528d07=this['editor'],_0x12a0e8=_0x528d07['locale'];_0x528d07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x313ca4=>{if('formatBlock'!=_0x313ca4['type'])return;const {data:_0x59a5fc}=_0x313ca4;return _0x59a5fc&&'paragraph'==_0x59a5fc['commandName']?{'type':'format','content':Mt(_0x12a0e8,'*Change\x20to:*\x20%0',Mt(_0x12a0e8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Me=class extends _0x5cf544{afterInit(){const _0xb10964=this['editor'];_0xb10964['commands']['get']('replaceSource')&&_0xb10964['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Oe=class extends _0x5cf544{afterInit(){const _0x23f639=this['editor'];_0x23f639['plugins']['has']('RemoveFormatEditing')&&(_0x23f639['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x5852ab=this['editor'];_0x5852ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1620ef=>{if('formatBlock'!=_0x1620ef['type']&&'formatInline'!=_0x1620ef['type'])return;const {data:_0x3412c3}=_0x1620ef;return _0x3412c3&&'removeFormat'==_0x3412c3['commandName']?{'type':'format','content':Mt(_0x5852ab['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},we=class extends _0x5cf544{afterInit(){const _0x3b80cd=this['editor'];if(!_0x3b80cd['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3af426=_0x3b80cd['plugins']['get']('TrackChangesEditing');_0x3af426['enableCommand']('goToPreviousRestrictedEditingException'),_0x3af426['enableCommand']('goToNextRestrictedEditingException');const _0x159cba=_0x3b80cd['plugins']['get']('RestrictedEditingModeEditing');_0x159cba['enableCommand']('trackChanges'),_0x159cba['enableCommand']('acceptSuggestion'),_0x159cba['enableCommand']('discardSuggestion'),_0x159cba['enableCommand']('acceptAllSuggestions'),_0x159cba['enableCommand']('discardAllSuggestions'),_0x159cba['enableCommand']('acceptSelectedSuggestions'),_0x159cba['enableCommand']('discardSelectedSuggestions');}},Fe=class extends _0x5cf544{afterInit(){const _0x36240d=this['editor'];if(!_0x36240d['plugins']['has']('ShiftEnter'))return;const _0xb5d013=_0x36240d['plugins']['get']('TrackChangesEditing');_0xb5d013['enableCommand']('shiftEnter'),_0xb5d013['descriptionFactory']['registerElementLabel']('softBreak',_0x293643=>Mt(_0x36240d['locale'],'ELEMENT_LINE_BREAK',_0x293643));}};function Be(_0x3a7f2a,_0x162b65,_0x3b72ae){const _0x2cfceb=[];for(const _0xa9ade6 of _0x162b65['getItems']())_0xa9ade6['hasAttribute'](_0x3a7f2a)&&_0x2cfceb['push'](_0x3b72ae['createRangeOn'](_0xa9ade6));return _0x2cfceb;}var ve=class extends _0x5cf544{afterInit(){const _0x32a4de=this['editor'],_0xce3b9d=_0x32a4de['plugins']['get']('TrackChangesEditing');_0x32a4de['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0xce3b9d['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x5205c3=this['editor'],_0x5f3e22=_0x5205c3['model'],_0xd20284=_0x5205c3['locale'],_0x2434cf=_0x5205c3['plugins']['get']('TrackChangesEditing'),_0x4e0d7b='restrictedEditingException',_0x1ff99a=_0x5205c3['commands']['get'](_0x4e0d7b);_0x2434cf['enableCommand'](_0x4e0d7b,(_0x387628,_0x3354d5={})=>{const _0x37ea9b=_0x5f3e22['document']['selection'];if(_0x37ea9b['isCollapsed'])return void _0x387628(_0x3354d5);const _0xcd64a9=void 0x0!==_0x3354d5['forceValue']?_0x3354d5['forceValue']:!_0x1ff99a['value'];_0x5f3e22['change'](()=>{const _0x4916b9=Array['from'](_0x37ea9b['getRanges']());for(const _0x59e1d7 of _0x4916b9){const _0x2a7a0c=_0xcd64a9?[_0x59e1d7]:Be(_0x4e0d7b,_0x59e1d7,_0x5f3e22);for(const _0x308c1d of _0x2a7a0c)_0x2434cf['markInlineFormat'](_0x308c1d,{'commandName':_0x4e0d7b,'commandParams':[{'forceValue':_0xcd64a9}]});}});}),_0x2434cf['descriptionFactory']['registerDescriptionCallback'](_0x6ec3b=>{if('formatBlock'!=_0x6ec3b['type']&&'formatInline'!=_0x6ec3b['type'])return;const {data:_0x1b5d66}=_0x6ec3b;return _0x1b5d66&&_0x1b5d66['commandName']==_0x4e0d7b?_0x1b5d66['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0xd20284,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0xd20284,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0xca3cb5=this['editor'],_0x24b08d=_0xca3cb5['locale'],_0x38243a=_0xca3cb5['plugins']['get']('TrackChangesEditing'),_0x115e90='restrictedEditingExceptionBlock',_0x5676d8=this['editor']['commands']['get'](_0x115e90);_0x38243a['enableCommand'](_0x115e90,(_0x3b39da,_0x41d901={})=>{const _0x5e2a1f=this['editor']['model']['document']['selection'],_0x16fc6c=_0x41d901&&void 0x0!==_0x41d901['forceValue']?_0x41d901['forceValue']:!_0x5676d8['value'];let _0x49ac22=[];if(_0x16fc6c){const _0x2ed049=Array['from'](_0x5e2a1f['getSelectedBlocks']())['filter'](_0x91f907=>function(_0x4e800e){return!!_0x4e800e['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x91f907)||function(_0x51d6f1,_0x31ff45){const _0x58a8f1=_0x31ff45['createContext'](_0x51d6f1['parent']);return!!_0x31ff45['checkChild'](_0x58a8f1,'restrictedEditingException')&&!!_0x31ff45['checkChild'](_0x58a8f1['push']('restrictedEditingException'),_0x51d6f1);}(_0x91f907,this['editor']['model']['schema']));_0x49ac22=bt(_0x2ed049,_0xca3cb5['model']);}else{const _0x573eb4=Array['from'](_0x5e2a1f['getSelectedBlocks']())['map'](_0xd4ee72=>function(_0x2d14bf){let _0x107b81=_0x2d14bf;for(;_0x107b81['parent'];){if('restrictedEditingException'==_0x107b81['parent']['name'])return _0x107b81;_0x107b81=_0x107b81['parent'];}return null;}(_0xd4ee72))['filter'](_0x1276dd=>!!_0x1276dd);_0x49ac22=bt(_0x573eb4,_0xca3cb5['model']);}_0xca3cb5['model']['change'](()=>{for(const _0x59e998 of _0x49ac22)_0x38243a['markBlockFormat'](_0x59e998,{'commandName':_0x115e90,'commandParams':[{'forceValue':_0x16fc6c}]});});}),_0x38243a['descriptionFactory']['registerDescriptionCallback'](_0x370fbf=>{const {data:_0x54b64a}=_0x370fbf;if(_0x54b64a&&_0x54b64a['commandName']==_0x115e90)return _0x54b64a['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x24b08d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x24b08d,'FORMAT_RESTRICTED_DISABLED')};});}},De=class extends _0x5cf544{afterInit(){const _0x1f9164=this['editor'];_0x1f9164['plugins']['has']('Style')&&_0x1f9164['plugins']['has']('DataSchema')&&(_0x1f9164['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x5eac58=this['editor'],_0x2cabf4=_0x5eac58['locale'];_0x5eac58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b9554=>{if('formatBlock'!=_0x1b9554['type']&&'formatInline'!=_0x1b9554['type'])return;const {data:_0x5b539d}=_0x1b9554;return _0x5b539d&&'style'===_0x5b539d['commandName']?_0x5b539d['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x2cabf4,'*Set\x20format:*\x20%0',_0x5b539d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Mt(_0x2cabf4,'*Remove\x20format:*\x20%0',_0x5b539d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ue=class extends _0x5cf544{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x19bf77){super(_0x19bf77),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x5c851b=this['editor'],_0x36da0c=_0x5c851b['model']['document']['selection'];if(!_0x5c851b['plugins']['has']('TableEditing'))return;const _0x1f6883=_0x5c851b['locale'],_0x2345d7=_0x5c851b['plugins']['get']('TrackChangesEditing'),_0x43adfd=_0x5c851b['plugins']['get']('TableUtils');_0x2345d7['descriptionFactory']['registerElementLabel']('table',_0x14972c=>Mt(_0x1f6883,'ELEMENT_TABLE',_0x14972c)),this['_setupColumnsRowsFixing'](),_0x2345d7['enableCommand']('insertTable'),_0x2345d7['enableCommand']('selectTableRow'),_0x2345d7['enableCommand']('selectTableColumn');for(const _0x33f414 of['insertTableRowAbove','insertTableRowBelow']){const _0x157670=_0x5c851b['commands']['get'](_0x33f414);_0x2345d7['enableCommand'](_0x33f414,_0x41bc0e=>{_0x5c851b['model']['change'](_0x2ab0df=>{_0x41bc0e();const _0x48349b='above'===_0x157670['order'],_0x214ced=_0x43adfd['getSelectionAffectedTableCells'](_0x36da0c),_0x156cb2=_0x43adfd['getRowIndexes'](_0x214ced),_0x1bb033=_0x48349b?_0x156cb2['first']-0x1:_0x156cb2['last']+0x1,_0x272d58=_0x214ced[0x0]['findAncestor']('table'),_0x2d3a4f=_0x43adfd['createTableWalker'](_0x272d58,{'startRow':_0x1bb033,'endRow':_0x1bb033}),_0x6b892=Array['from'](_0x2d3a4f)['map'](_0x90cc27=>_0x2ab0df['createRangeOn'](_0x90cc27['cell']));_0x2345d7['markMultiRangeInsertion'](_0x6b892,'tableRow');});});}for(const _0x1c38ed of['insertTableColumnLeft','insertTableColumnRight']){const _0x1d43c5=_0x5c851b['commands']['get'](_0x1c38ed);_0x2345d7['enableCommand'](_0x1c38ed,_0x8d1bd2=>{_0x5c851b['model']['change'](_0x4e616e=>{_0x8d1bd2();const _0x490485='left'===_0x1d43c5['order'],_0x300c38=_0x43adfd['getSelectionAffectedTableCells'](_0x36da0c),_0x2160ef=_0x43adfd['getColumnIndexes'](_0x300c38),_0x1aaec4=_0x490485?_0x2160ef['first']-0x1:_0x2160ef['last']+0x1,_0x3e4a42=_0x300c38[0x0]['findAncestor']('table'),_0x986c89=_0x43adfd['createTableWalker'](_0x3e4a42,{'startRow':0x0,'column':_0x1aaec4,'includeAllSlots':!0x1}),_0x9eb39f=Array['from'](_0x986c89)['map'](_0x19061e=>_0x4e616e['createRangeOn'](_0x19061e['cell']));_0x2345d7['markMultiRangeInsertion'](_0x9eb39f,'tableColumn');});});}for(const _0x14641e of['removeTableRow','removeTableColumn']){const _0x196e23=_0x14641e['substr'](0xb),_0x32ddeb=_0x196e23['toLowerCase'](),_0x1f4e34=_0x32ddeb['substr'](0x0,0x3)+'span',_0x18f7d5='table'+_0x196e23,_0x37ea56='min'+_0x196e23,_0x53ebdd='max'+_0x196e23;_0x2345d7['enableCommand'](_0x14641e,()=>{_0x5c851b['model']['change'](_0x282dd0=>{const _0x222ade=_0x43adfd['getSelectionAffectedTableCells'](_0x36da0c),_0x5d271a=_0x222ade[0x0]['findAncestor']('table');let _0x156ece;if('removeTableRow'==_0x14641e){const _0x489c25=_0x43adfd['getRowIndexes'](_0x222ade);_0x156ece={'startRow':_0x489c25['first'],'endRow':_0x489c25['last'],'includeAllSlots':!0x0};}else{const _0x1a593b=_0x43adfd['getColumnIndexes'](_0x222ade);_0x156ece={'startColumn':_0x1a593b['first'],'endColumn':_0x1a593b['last'],'includeAllSlots':!0x0};}const _0xf56146=_0x43adfd['createTableWalker'](_0x5d271a,_0x156ece),_0xa05165=Array['from'](_0xf56146)['map'](({cell:_0x48d760})=>_0x48d760),_0x1c6d9e=Pe(_0xa05165['filter'](_0x336f23=>_0x336f23['hasAttribute'](_0x1f4e34))),_0x21a545=Pe(_0xa05165['filter'](_0x3a29d3=>!_0x3a29d3['hasAttribute'](_0x1f4e34)))['map'](_0x3d6014=>_0x282dd0['createRangeOn'](_0x3d6014)),_0x102786=_0x2345d7['markMultiRangeDeletion'](_0x21a545,_0x18f7d5);if(_0x102786&&('tableRow'==_0x102786['subType']||'tableColumn'==_0x102786['subType'])){const _0x55c806=this['_getSuggestionCoords'](_0x102786);for(const _0xa49304 of _0x1c6d9e){const _0x509bbc=_0x282dd0['createRangeOn'](_0xa49304),_0x1ffe5e=_0x43adfd['getCellLocation'](_0xa49304),_0x199f9e=_0xa49304['getAttribute'](_0x1f4e34)-0x1,_0xd4cca7=_0x55c806[_0x37ea56],_0x1d113e=_0x55c806[_0x53ebdd];_0xd4cca7<=_0x1ffe5e[_0x32ddeb]&&_0x1ffe5e[_0x32ddeb]+_0x199f9e<=_0x1d113e&&_0x102786['addRange'](_0x509bbc);}}});});}function _0x1dc52b(_0x527e46){const _0x14ba4a=Array['from'](_0x36da0c['getRanges']())['map'](_0x170785=>rt['fromRange'](_0x170785));_0x5c851b['model']['change'](_0x359b65=>{const _0x58173c=_0x359b65['batch'];_0x527e46=_0x527e46['filter'](_0x19bc62=>'$graveyard'!=_0x19bc62['root']['rootName']),_0x359b65['setSelection'](_0x527e46),_0x5c851b['commands']['get']('removeTableRow')['refresh'](),_0x5c851b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5c851b['model']['enqueueChange'](()=>{_0x5c851b['model']['enqueueChange'](_0x58173c,_0x1d39f4=>{const _0x75d2f=_0x14ba4a['filter'](_0x572529=>'$graveyard'!=_0x572529['root']['rootName']);_0x75d2f['length']>0x0&&_0x1d39f4['setSelection'](_0x75d2f);for(const _0x53505f of _0x14ba4a)_0x53505f['detach']();});});});}function _0x25d68(_0x12c3b4){_0x5c851b['model']['change'](_0x477dac=>{const _0x5c2f35=Array['from'](_0x36da0c['getRanges']())['map'](_0x3e2492=>rt['fromRange'](_0x3e2492)),_0x16c261=[];for(const _0x411a11 of _0x12c3b4)for(const _0x4a4d7f of _0x411a11['getItems']({'shallow':!0x0}))_0x16c261['push'](_0x4a4d7f);for(const _0x2bac67 of _0x16c261)'$graveyard'!=_0x2bac67['root']['rootName']&&(_0x477dac['setSelection'](_0x477dac['createPositionAt'](_0x2bac67,0x0)),_0x5c851b['commands']['get']('removeTableColumn')['refresh'](),_0x5c851b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xdcc52f=_0x5c2f35['filter'](_0x295975=>'$graveyard'!=_0x295975['root']['rootName']);_0xdcc52f['length']>0x0&&_0x477dac['setSelection'](_0xdcc52f);for(const _0x5c7fef of _0x5c2f35)_0x5c7fef['detach']();});}function _0x37fa63(_0x13c50b,_0x48e832){return _0x48e832['every'](_0x3ec803=>_0x13c50b['some'](_0x59e17f=>_0x59e17f['end']['isEqual'](_0x3ec803['start'])||_0x3ec803['end']['isEqual'](_0x59e17f['start'])));}function _0x3014fd(_0x20b41b,_0x44fadb){return!_0x20b41b['some'](_0x48ba3d=>_0x44fadb['some'](_0x768038=>_0x48ba3d['isIntersecting'](_0x768038)))&&_0x20b41b['some'](_0x50022d=>_0x44fadb['some'](_0x683ea5=>_0x50022d['end']['isTouching'](_0x683ea5['start'])));}_0x2345d7['descriptionFactory']['registerDescriptionCallback'](_0x1f3728=>{if('insertion'!=_0x1f3728['type']&&'deletion'!=_0x1f3728['type'])return;const _0x3a9333=_0x1f3728['getContainedElement']();if(null!=_0x3a9333&&_0x3a9333['is']('element','table')){if('insertion'==_0x1f3728['type']){const _0xe6d148=_0x1f3728['getItems']()['filter'](_0x24b85d=>_0x24b85d['is']('$textProxy'))['map'](_0x407c25=>_0x407c25['data']);if(_0xe6d148['length'])return{'type':'insertion','content':Mt(_0x1f6883,'*Insert:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xe6d148['join']('\x20')+'\x22'))};}if('deletion'==_0x1f3728['type']){const _0x11367f=_0x1f3728['getItems']()['filter'](_0x38ae95=>_0x38ae95['is']('$textProxy'))['map'](_0x215eba=>_0x215eba['data']);if(_0x11367f['length'])return{'type':'deletion','content':Mt(_0x1f6883,'*Remove:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x11367f['join']('\x20')+'\x22'))};}}}),_0x2345d7['descriptionFactory']['registerDescriptionCallback'](_0x1647a4=>{if('tableRow'==_0x1647a4['subType']){const _0xe2bc7e=_0x1647a4['getItems']()['filter'](_0x267e4b=>_0x267e4b['is']('$textProxy'))['map'](_0x3e0393=>_0x3e0393['data']),_0x40b0ab=this['_getSuggestionCoords'](_0x1647a4),_0x146754=_0x40b0ab['maxRow']-_0x40b0ab['minRow']+0x1;if('insertion'==_0x1647a4['type'])return _0xe2bc7e['length']?{'type':'insertion','content':Mt(_0x1f6883,'*Insert:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x146754,'\x22'+_0xe2bc7e['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x1f6883,'*Insert:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_ROW',_0x146754))};if('deletion'==_0x1647a4['type'])return _0xe2bc7e['length']?{'type':'deletion','content':Mt(_0x1f6883,'*Remove:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x146754,'\x22'+_0xe2bc7e['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x1f6883,'*Remove:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_ROW',_0x146754))};}if('tableColumn'==_0x1647a4['subType']){const _0x267326=_0x1647a4['getItems']()['filter'](_0x49320d=>_0x49320d['is']('$textProxy'))['map'](_0x9c5a6c=>_0x9c5a6c['data']),_0x5cd50c=this['_getSuggestionCoords'](_0x1647a4),_0x1d2487=_0x5cd50c['maxColumn']-_0x5cd50c['minColumn']+0x1;if('insertion'==_0x1647a4['type'])return _0x267326['length']?{'type':'insertion','content':Mt(_0x1f6883,'*Insert:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1d2487,'\x22'+_0x267326['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x1f6883,'*Insert:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_COLUMN',_0x1d2487))};if('deletion'==_0x1647a4['type'])return _0x267326['length']?{'type':'deletion','content':Mt(_0x1f6883,'*Remove:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1d2487,'\x22'+_0x267326['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x1f6883,'*Remove:*\x20%0',Mt(_0x1f6883,'ELEMENT_TABLE_COLUMN',_0x1d2487))};}}),_0x2345d7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1dc52b),_0x2345d7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1dc52b),_0x2345d7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x25d68),_0x2345d7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x25d68),_0x2345d7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x37fa63),_0x2345d7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x37fa63),_0x2345d7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3014fd),_0x2345d7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3014fd);}_acceptFormatSuggestionCallbackFactory(){const _0xf3a3fb=this['editor'],_0xc50932=_0xf3a3fb['model']['document']['selection'];return(_0x16e916,_0x195093)=>{_0xf3a3fb['model']['change'](_0x750093=>{const {commandName:_0x5cfa6f,commandParams:_0x3e030a}=_0x195093;let _0x5ea2ce=_0x16e916[0x0]['end']['nodeBefore'];_0x3e030a&&_0x3e030a[0x0]&&!0x1===_0x3e030a[0x0]['forceValue']&&(_0x5ea2ce=_0x16e916[0x0]['start']['nodeAfter']);const _0x536537=_0x750093['createRangeIn'](_0x5ea2ce);if('$graveyard'==_0x536537['root']['rootName'])return;const _0x5e5431=Array['from'](_0xc50932['getRanges']())['map'](_0x54b9bf=>rt['fromRange'](_0x54b9bf));_0x750093['setSelection'](_0x536537),_0xf3a3fb['commands']['get'](_0x5cfa6f)['refresh'](),_0x3e030a['push']({'forceDefaultExecution':!0x0}),_0xf3a3fb['execute'](_0x5cfa6f,..._0x3e030a);const _0x2dcfda=_0x5e5431['filter'](_0x27a235=>'$graveyard'!=_0x27a235['root']['rootName']);_0x2dcfda['length']>0x0&&_0x750093['setSelection'](_0x2dcfda);for(const _0x331960 of _0x5e5431)_0x331960['detach']();});};}_getCoordsForCells(_0x29f6ba){const _0x523958=this['editor']['plugins']['get']('TableUtils');let _0x573796=Number['MAX_SAFE_INTEGER'],_0x5000d7=Number['MIN_SAFE_INTEGER'],_0x1ceb2c=Number['MAX_SAFE_INTEGER'],_0x4060e1=Number['MIN_SAFE_INTEGER'];for(const _0x8a1b48 of _0x29f6ba){if('$graveyard'==_0x8a1b48['root']['rootName'])continue;const {row:_0x4a9b30,column:_0x526598}=_0x523958['getCellLocation'](_0x8a1b48),_0x4d82ee=_0x8a1b48['hasAttribute']('rowspan')?_0x8a1b48['getAttribute']('rowspan')-0x1:0x0,_0x3a71f5=_0x8a1b48['hasAttribute']('colspan')?_0x8a1b48['getAttribute']('colspan')-0x1:0x0;_0x573796=_0x4a9b30<_0x573796?_0x4a9b30:_0x573796,_0x5000d7=_0x4a9b30+_0x4d82ee>_0x5000d7?_0x4a9b30+_0x4d82ee:_0x5000d7,_0x1ceb2c=_0x526598<_0x1ceb2c?_0x526598:_0x1ceb2c,_0x4060e1=_0x526598+_0x3a71f5>_0x4060e1?_0x526598+_0x3a71f5:_0x4060e1;}return{'minRow':_0x573796,'maxRow':_0x5000d7,'minColumn':_0x1ceb2c,'maxColumn':_0x4060e1};}_setupColumnsRowsFixing(){const _0x5c21a2=this['editor'],_0x26bf83=_0x5c21a2['plugins']['get']('TrackChangesEditing'),_0x3025cb=_0x5c21a2['plugins']['get']('TableUtils');_0x5c21a2['model']['document']['on']('change:data',()=>{const _0x249398=Array['from'](_0x5c21a2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3bf557,data:_0x1cf413}of _0x249398){const {group:_0x2d0471,id:_0x307033,subType:_0x5667e6}=tt(_0x3bf557);if('suggestion'!=_0x2d0471)continue;if(null!=_0x1cf413['oldRange'])continue;const _0x34adfe=_0x26bf83['getSuggestion'](_0x307033);this['_tablePostFixingSubtypes']['includes'](_0x5667e6)&&this['_tableSuggestions']['add'](_0x34adfe);}},{'priority':'low'});const _0x1bbd4f=(_0x12db16,_0x3b04fe)=>{let _0x6cdb6a=!0x1;const _0xd16155=_0x3b04fe['createRangeOn'](_0x12db16),_0x12b6e7=_0x12db16['findAncestor']('table'),_0x4b2698=_0x3025cb['getCellLocation'](_0x12db16);for(const _0x14a354 of this['_tableSuggestions']){const _0x325484=_0x14a354['subType'],_0x51eff9=_0x325484['startsWith']('tablePaste'),_0xfaf181=_0x325484['substr'](_0x51eff9?0xa:0x5),_0x410c06=_0xfaf181['toLowerCase'](),_0x33c3d9=_0x410c06['substr'](0x0,0x3)+'span',_0x18dcdb='min'+_0xfaf181,_0x5f0c79='max'+_0xfaf181;if(!_0x14a354['isInContent'])continue;if(_0x12b6e7!=_0x14a354['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x14a354['isIntersectingWithRange'](_0xd16155))continue;const _0x229943=_0x12db16['hasAttribute'](_0x33c3d9)?_0x12db16['getAttribute'](_0x33c3d9)-0x1:0x0,_0x51e3ec=this['_getSuggestionCoords'](_0x14a354),_0x3721be=_0x51e3ec[_0x18dcdb],_0x2a4cbc=_0x51e3ec[_0x5f0c79];_0x3721be<=_0x4b2698[_0x410c06]&&_0x4b2698[_0x410c06]+_0x229943<=_0x2a4cbc&&(_0x14a354['addRange'](_0xd16155),_0x6cdb6a=!0x0);}return _0x6cdb6a;};_0x5c21a2['model']['document']['registerPostFixer'](_0x2302d1=>{let _0x37a252=!0x1;for(const _0xc13309 of _0x5c21a2['model']['document']['differ']['getChanges']())if('insert'==_0xc13309['type']){if('tableRow'==_0xc13309['name']){for(const _0x113739 of _0xc13309['position']['nodeAfter']['getChildren']())_0x37a252=_0x37a252||_0x1bbd4f(_0x113739,_0x2302d1);}else'tableCell'==_0xc13309['name']&&(_0x37a252=_0x37a252||_0x1bbd4f(_0xc13309['position']['nodeAfter'],_0x2302d1));}return _0x37a252;});}_getSuggestionCoords(_0x13ead8){return this['_getCoordsForCells'](_0x13ead8['getRanges']()['map'](_0x1d308c=>_0x1d308c['start']['nodeAfter']));}};function Pe(_0x495f04){return Array['from'](new Set(_0x495f04)['values']());}var xe=class extends _0x5cf544{static get requires(){return[Ue];}afterInit(){const _0x1e7a95=this['editor'],_0x5aafe9=_0x1e7a95['model']['document']['selection'],_0x4b32f3=_0x1e7a95['locale'];if(!_0x1e7a95['plugins']['has']('TableEditing'))return;const _0x45be78=_0x1e7a95['plugins']['get']('TrackChangesEditing'),_0x372de0=_0x1e7a95['plugins']['get']('TableUtils'),_0x1161c0=_0x1e7a95['plugins']['get'](Ue);_0x1161c0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x45be78['enableCommand']('mergeTableCells',()=>{const _0x6488a=_0x372de0['getSelectionAffectedTableCells'](_0x1e7a95['model']['document']['selection']);_0x1e7a95['model']['change'](()=>{_0x45be78['markMultiRangeBlockFormat'](_0x6488a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1e7a95['commands']['get']('mergeTableCells')['on']('execute',(_0x147a08,_0x1fb12b)=>{_0x1e7a95['commands']['get']('trackChanges')['value']&&(_0x1fb12b['length']>0x0&&_0x1fb12b[_0x1fb12b['length']-0x1]&&_0x1fb12b[_0x1fb12b['length']-0x1]['forceDefaultExecution']||_0x45be78['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x147a08['stop']());},{'priority':'highest'});for(const _0x5f5a00 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x59fb63=_0x1e7a95['commands']['get'](_0x5f5a00);_0x45be78['enableCommand'](_0x5f5a00,()=>{const _0x5d1333=_0x1e7a95['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x56ee03=>_0x56ee03['is']('element','tableCell')),_0x34d568=_0x59fb63['value'];_0x1e7a95['model']['change'](()=>{_0x45be78['markMultiRangeBlockFormat']([_0x5d1333,_0x34d568],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4f00c0 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2050bb=_0x1e7a95['commands']['get'](_0x4f00c0);_0x45be78['enableCommand'](_0x4f00c0,()=>{const _0x52a910=_0x372de0['getSelectionAffectedTableCells'](_0x1e7a95['model']['document']['selection']),_0x3f6cf3=_0x52a910[0x0]['findAncestor']('table'),_0x3fce34=new Set();for(const _0x1acb35 of _0x52a910){const {column:_0x540710,row:_0x5e6df8}=_0x372de0['getCellLocation'](_0x1acb35),_0x267c97='horizontally'==_0x2050bb['direction']?_0x372de0['createTableWalker'](_0x3f6cf3,{'startRow':_0x5e6df8,'endRow':_0x5e6df8,'includeAllSlots':!0x0}):_0x372de0['createTableWalker'](_0x3f6cf3,{'column':_0x540710,'includeAllSlots':!0x0});for(const {cell:_0x31180e}of _0x267c97)_0x3fce34['add'](_0x31180e);}_0x1e7a95['model']['change'](()=>{_0x45be78['markMultiRangeBlockFormat'](_0x52a910,{'commandName':_0x4f00c0,'commandParams':[]},Array['from'](_0x3fce34),_0x4f00c0);});});}_0x45be78['descriptionFactory']['registerDescriptionCallback'](_0xe0dc1=>{if('formatBlock'!=_0xe0dc1['type']&&'formatInline'!=_0xe0dc1['type'])return;const {data:_0x5e543b}=_0xe0dc1;return _0x5e543b&&'mergeTableCells'==_0x5e543b['commandName']?{'type':'format','content':Mt(_0x4b32f3,'*Merge\x20cells*')}:void 0x0;}),_0x45be78['descriptionFactory']['registerDescriptionCallback'](_0x40ebb5=>{if('formatBlock'!=_0x40ebb5['type']&&'formatInline'!=_0x40ebb5['type'])return;const {data:_0x46a4a7}=_0x40ebb5;return _0x46a4a7?'splitTableCellVertically'==_0x46a4a7['commandName']?{'type':'format','content':Mt(_0x4b32f3,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x46a4a7['commandName']?{'type':'format','content':Mt(_0x4b32f3,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1438a3=_0x1161c0['_acceptFormatSuggestionCallbackFactory']();for(const _0x3a03db of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x45be78['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a03db,'accept',_0x1438a3);for(const _0x727347 of['splitTableCellVertically','splitTableCellHorizontally'])_0x45be78['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x727347,'accept',_0x1845bc=>{_0x1e7a95['model']['change'](_0x34de53=>{const _0x931b83=Array['from'](_0x1845bc)['filter'](_0x16e794=>'$graveyard'!=_0x16e794['root']['rootName']&&!!_0x16e794['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x931b83['length'])return;const _0x163804=Array['from'](_0x5aafe9['getRanges']())['map'](_0x15fdea=>rt['fromRange'](_0x15fdea));_0x34de53['setSelection'](_0x931b83),_0x1e7a95['commands']['get'](_0x727347)['refresh'](),_0x1e7a95['execute'](_0x727347,{'forceDefaultExecution':!0x0});const _0x4d8fde=_0x163804['filter'](_0x412c32=>'$graveyard'!=_0x412c32['root']['rootName']);_0x4d8fde['length']>0x0&&_0x34de53['setSelection'](_0x4d8fde);for(const _0x921eea of _0x163804)_0x921eea['detach']();});});_0x45be78['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x325569=>{_0x1e7a95['model']['change'](_0x518edb=>{const _0x416209=Array['from'](_0x5aafe9['getRanges']())['map'](_0x28defa=>rt['fromRange'](_0x28defa));_0x518edb['setSelection'](_0x325569),_0x1e7a95['commands']['get']('mergeTableCells')['refresh'](),_0x1e7a95['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4d2662=_0x416209['filter'](_0x1d7aff=>'$graveyard'!=_0x1d7aff['root']['rootName']);_0x4d2662['length']>0x0&&_0x518edb['setSelection'](_0x4d2662);for(const _0x5c0bbe of _0x416209)_0x5c0bbe['detach']();});});for(const _0x339d53 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x21f27e=_0x1e7a95['commands']['get'](_0x339d53);_0x21f27e['on']('set:isEnabled',(_0x4c12df,_0x90ed36,_0x10dc17)=>{if(_0x10dc17){const _0x41023c=_0x1e7a95['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3bfd68=>_0x3bfd68['is']('element','tableCell'));this['_areMergableCells'](_0x21f27e['value'],_0x41023c)||(_0x4c12df['return']=!0x1,_0x4c12df['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x55b686=this['editor']['commands']['get']('mergeTableCells'),_0x3acebf=this['editor']['plugins']['get']('TableUtils');if(!_0x55b686['isEnabled'])return!0x1;const _0x41f2f3=_0x3acebf['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2b22f9 of _0x41f2f3)for(const _0x5b7ccb of _0x41f2f3)if(_0x2b22f9!=_0x5b7ccb&&!this['_areMergableCells'](_0x2b22f9,_0x5b7ccb))return!0x1;return!0x0;}['_areMergableCells'](_0x124b41,_0x47c450){const _0x2f6c45=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdf5520=this['editor']['model']['createRangeOn'](_0x124b41),_0x42ca12=this['editor']['model']['createRangeOn'](_0x47c450),_0x3f8627=new Set(),_0x192f0e=new Set();for(const _0x798fe7 of _0x2f6c45['getSuggestions']())if(('insertion'==_0x798fe7['type']||'deletion'==_0x798fe7['type']||'mergeTableCells'==_0x798fe7['subType'])&&_0x798fe7['isInContent']){for(const _0x462448 of _0x798fe7['getRanges']())_0x462448['containsRange'](_0xdf5520,!0x0)&&_0x3f8627['add'](_0x798fe7['type']+':'+_0x798fe7['author']['id']),_0x462448['containsRange'](_0x42ca12,!0x0)&&_0x192f0e['add'](_0x798fe7['type']+':'+_0x798fe7['author']['id']);}if(_0x3f8627['size']!=_0x192f0e['size'])return!0x1;for(const _0x180d81 of _0x3f8627)if(!_0x192f0e['has'](_0x180d81))return!0x1;return!0x0;}},Ge=class extends _0x5cf544{static get requires(){return[Ue];}afterInit(){const _0x417eb3=this['editor'];if(!_0x417eb3['plugins']['has']('TableEditing'))return;const _0x462901=_0x417eb3['locale'],_0x1ed05a=_0x417eb3['plugins']['get']('TrackChangesEditing');_0x1ed05a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1ed05a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1ed05a['descriptionFactory']['registerAttributeLabel']('headingRows',Mt(_0x462901,'FORMAT_HEADER_ROW')),_0x1ed05a['descriptionFactory']['registerAttributeLabel']('headingColumns',Mt(_0x462901,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x4b00c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18defc=this['editor']['plugins']['get'](Ue)['_acceptFormatSuggestionCallbackFactory']();_0x4b00c3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x18defc),_0x4b00c3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x18defc),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0xffbdee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x189989=this['editor']['plugins']['get']('TableUtils');function _0x2b822f({showActiveMarker:_0x23d5b5=!0x0,setDataAttribute:_0x5c12fb=!0x0}={}){return(_0x1dbd61,_0x56832d,_0x2b7b35)=>{const {type:_0x16703b,id:_0x37690c}=tt(_0x56832d['markerName']);if(!_0xffbdee['hasSuggestion'](_0x37690c))return;const _0x23322b=_0xffbdee['getSuggestion'](_0x37690c),_0x25d6e0=_0x23322b['data'];if('formatBlock'!=_0x23322b['type']||!_0x25d6e0||'setTableColumnHeader'!=_0x25d6e0['commandName'])return;if(_0x56832d['item'])return void _0x1dbd61['stop']();if(!_0x2b7b35['consumable']['consume'](_0x56832d['markerRange'],_0x1dbd61['name']))return;const _0x56f7ed=_0x56832d['markerRange']['start']['nodeAfter'],_0x22fdd3=_0x56832d['markerRange']['end']['nodeBefore'],_0x50e53c=_0x56f7ed['parent']['parent'],{column:_0x3f6c7c}=_0x189989['getCellLocation'](_0x56f7ed),{column:_0x467b8b}=_0x189989['getCellLocation'](_0x22fdd3);for(let _0x150f4b=_0x3f6c7c;_0x150f4b<=_0x467b8b;_0x150f4b++){const _0x56eb49=_0x189989['createTableWalker'](_0x50e53c,{'column':_0x150f4b,'includeAllSlots':!0x1});for(const _0x48ad0c of _0x56eb49){const _0x2e5bef=_0x48ad0c['cell'],_0x1b770e=_0x2b7b35['mapper']['toViewElement'](_0x2e5bef);_0x2b7b35['writer']['addClass']('ck-suggestion-marker-'+_0x16703b,_0x1b770e),_0x5c12fb&&_0x2b7b35['writer']['setAttribute']('data-suggestion',_0x37690c,_0x1b770e),_0x2b7b35['mapper']['bindElementToMarker'](_0x1b770e,_0x56832d['markerName']),_0x23d5b5&&(_0xffbdee['activeMarkers']['includes'](_0x56832d['markerName'])?_0x2b7b35['writer']['addClass']('ck-suggestion-marker--active',_0x1b770e):_0x2b7b35['writer']['removeClass']('ck-suggestion-marker--active',_0x1b770e));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2b822f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5555c2,_0x41426f,_0x2db4fb)=>{_0x2db4fb['options']['showSuggestionHighlights']&&_0x2b822f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5555c2,_0x41426f,_0x2db4fb);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x31c81c,_0x445919,_0x1a225c)=>{const {type:_0x584782,id:_0x555577}=tt(_0x445919['markerName']);if(!_0xffbdee['hasSuggestion'](_0x555577))return;const _0x3be3b0=_0xffbdee['getSuggestion'](_0x555577),_0x4c79d6=_0x3be3b0['data'];if('formatBlock'!=_0x3be3b0['type']||!_0x4c79d6||'setTableColumnHeader'!=_0x4c79d6['commandName'])return;const _0xe06eca=_0x1a225c['mapper']['markerNameToElements'](_0x445919['markerName']);if(_0xe06eca){for(const _0x514f22 of _0xe06eca)_0x1a225c['writer']['removeClass']('ck-suggestion-marker-'+_0x584782,_0x514f22),_0x1a225c['writer']['removeClass']('ck-suggestion-marker--active',_0x514f22),_0x1a225c['writer']['removeAttribute']('data-suggestion',_0x514f22),_0x1a225c['mapper']['unbindElementFromMarkerName'](_0x514f22,_0x445919['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x122a66=this['editor'],_0x4594db=_0x122a66['locale'];function _0x4e60df(_0x5c49c3){return{'type':'format','content':Mt(_0x4594db,'*Format:*\x20%0',_0x5c49c3)};}_0x122a66['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f1d30=>{if('formatBlock'!=_0x3f1d30['type'])return;const {data:_0x4d7512}=_0x3f1d30;return _0x4d7512?'setTableRowHeader'==_0x4d7512['commandName']?_0x4d7512['commandParams'][0x0]['forceValue']?_0x4e60df(Mt(_0x4594db,'FORMAT_HEADER_ROW')):_0x4e60df(Mt(_0x4594db,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x4d7512['commandName']?_0x4d7512['commandParams'][0x0]['forceValue']?_0x4e60df(Mt(_0x4594db,'FORMAT_HEADER_COLUMN')):_0x4e60df(Mt(_0x4594db,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},He=class extends _0x5cf544{static get requires(){return[Ue];}afterInit(){const _0x16ea3d=this['editor'];if(!_0x16ea3d['plugins']['has']('TableEditing')||!_0x16ea3d['config']['get']('table.enableFooters'))return;const _0x1384bd=_0x16ea3d['locale'],_0x4e07ad=_0x16ea3d['plugins']['get']('TrackChangesEditing');_0x4e07ad['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x4e07ad['descriptionFactory']['registerAttributeLabel']('footerRows',Mt(_0x1384bd,'FORMAT_FOOTER_ROW'));}},$e=class extends _0x5cf544{afterInit(){const _0x54cb51=this['editor'],_0x2b46de=_0x54cb51['locale'],_0x504bf7=_0x54cb51['plugins']['get']('TrackChangesEditing');function _0x53c5c1(_0x3516e0){return{'type':'format','content':''+Mt(_0x2b46de,'*Set\x20table\x20type:*\x20%0',_0x3516e0)};}_0x54cb51['plugins']['has']('TableLayout')&&(_0x504bf7['enableCommand']('insertTableLayout'),_0x504bf7['enableDefaultAttributesIntegration']('tableType'),_0x504bf7['descriptionFactory']['registerElementLabel'](_0x2f5af2=>_0x2f5af2['is']('element','table')&&'layout'===_0x2f5af2['getAttribute']('tableType'),_0x59f61d=>Mt(_0x2b46de,'ELEMENT_LAYOUT_TABLE',_0x59f61d)),_0x504bf7['descriptionFactory']['registerDescriptionCallback'](_0x179067=>{const {data:_0x781031}=_0x179067;if(_0x781031&&'tableType'==_0x781031['key'])switch(_0x781031['newValue']){case'layout':return _0x53c5c1(Mt(_0x2b46de,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x53c5c1(Mt(_0x2b46de,'ELEMENT_CONTENT_TABLE'));}}));}};const We=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ve=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](We['map'](_0x4db097=>[_0x4db097,null]));var je=class extends _0x5cf544{static get requires(){return[Ue];}afterInit(){const _0x3502a3=this['editor'];if(!_0x3502a3['plugins']['has']('TableClipboard'))return;const _0x4c39cf=_0x3502a3['plugins']['get']('TrackChangesEditing'),_0x41bccb=_0x3502a3['plugins']['get']('TableUtils'),_0xd9ca21=_0x3502a3['plugins']['get'](Ue),_0x5a07a3=_0x3502a3['plugins']['get']('TableClipboard'),_0x5b489d=_0x3502a3['plugins']['get']('TableSelection'),_0x5da6f4=_0x3502a3['plugins']['get'](gt);_0xd9ca21['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3502a3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3502a3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5403b4=null,_0x37ff7e=!0x1;_0x5da6f4['on']('contentInsertion',(_0x9152aa,_0x126d1d)=>{_0x37ff7e='paste'===_0x126d1d['method'];}),_0x3502a3['model']['on']('insertContent',(_0x2e0fad,_0x15261c)=>{if(!_0x37ff7e&&null===_0x5b489d['getSelectedTableCells']())return;const [_0xc47382,_0x1adf82]=_0x15261c,_0x3bba51=_0x15261c[_0x15261c['length']-0x1];_0x3bba51&&_0x3bba51['forceDefaultExecution']||_0x4c39cf['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4be625,_0x54172d,_0x41368d,_0xe35b3a,_0x5aeb2c){if(_0x54172d&&!_0x54172d['is']('documentSelection'))return!0x1;const _0x30cb56=_0x5aeb2c['getTableIfOnlyTableInContent'](_0x4be625,_0x41368d);if(!_0x30cb56||!Ke(_0x30cb56,void 0x0,_0xe35b3a))return!0x1;const _0xfed026=_0xe35b3a['getSelectionAffectedTableCells'](_0x41368d['document']['selection']);if(!_0xfed026['length'])return!0x1;const _0x3ee6a9=_0xfed026[0x0]['findAncestor']('table'),_0xe9beb=_0xe35b3a['getRowIndexes'](_0xfed026),_0x20cbde=_0xe35b3a['getColumnIndexes'](_0xfed026),_0x3d967e={'startRow':_0xe9beb['first'],'endRow':_0xe9beb['last'],'startColumn':_0x20cbde['first'],'endColumn':_0x20cbde['last']};return 0x1==_0xfed026['length']&&(_0x3d967e['endRow']+=_0xe35b3a['getRows'](_0x30cb56)-0x1,_0x3d967e['endColumn']+=_0xe35b3a['getColumns'](_0x30cb56)-0x1),Ke(_0x3ee6a9,_0x3d967e,_0xe35b3a);}(_0xc47382,_0x1adf82,_0x3502a3['model'],_0x41bccb,_0x5a07a3)&&(_0x2e0fad['stop'](),_0x5403b4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3502a3['model']['change'](()=>{_0x3502a3['model']['insertContent'](_0x15261c[0x0],_0x15261c[0x1],_0x15261c[0x2],{'forceDefaultExecution':!0x0});const _0x154107=_0x4aa562(),{rowInsertionRanges:_0x12a74c,columnInsertionRanges:_0x483e98,insertionRanges:_0x5cef0b,deletionRanges:_0x14f5e4,cells:_0x453001}=_0x5403b4;_0x12a74c['length']&&_0x4c39cf['markMultiRangeInsertion'](_0x12a74c,'tablePasteRow',{'tablePasteChainId':_0x154107}),_0x483e98['length']&&_0x4c39cf['markMultiRangeInsertion'](_0x483e98,'tablePasteColumn',{'tablePasteChainId':_0x154107}),_0x5cef0b['length']&&(_0x4c39cf['markMultiRangeInsertion'](_0x5cef0b,'tablePaste',{'tablePasteChainId':_0x154107,'skipNestingCheck':!0x0}),_0x5cef0b['forEach'](_0x2d3f60=>_0x2d3f60['detach']?.())),_0x14f5e4['length']&&(_0x4c39cf['markMultiRangeDeletion'](_0x14f5e4,'tablePaste',{'tablePasteChainId':_0x154107,'skipNestingCheck':!0x0}),_0x14f5e4['forEach'](_0x31ceac=>_0x31ceac['detach']?.()));const _0x4443c0=_0x4c39cf['markMultiRangeBlockFormat'](_0x453001['map'](({element:_0x2686fa})=>_0x2686fa),{'formatGroupId':_0x4aa562()},[],'tablePasteCell',{'tablePasteChainId':_0x154107});if(_0x4443c0){const _0x104d5d=_0x4443c0['getMarkers'](),_0x5439db=[];for(const {element:_0x5c632d,attributes:_0x32c345}of _0x453001){if(!_0x32c345)continue;const _0x9bae09=_0x3502a3['model']['createRangeOn'](_0x5c632d),_0x3f482b=_0x104d5d['find'](_0x27a6b0=>_0x27a6b0['getRange']()['isEqual'](_0x9bae09));_0x3f482b&&_0x5439db['push']([_0x3f482b['name'],_0x32c345]);}_0x5439db['length']&&_0x4443c0['setAttribute']('markerAttributes',Object['fromEntries'](_0x5439db));}_0x5403b4=null;}));},{'priority':_0x3fd845['high']+0xa}),_0x5da6f4['on']('contentInsertion',()=>{_0x37ff7e=!0x1;},{'priority':'lowest'}),_0x3502a3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x19e49c,_0x1c871e)=>{const [_0x482938,_0x4faa26,,_0x32ad8d]=_0x1c871e;if(!_0x5403b4)return;_0x19e49c['stop']();const _0x1242f0=_0x482938['cell'],_0x515ad1=_0x4faa26,_0x25a905=ze(_0x1242f0),_0x2888b0=ze(_0x515ad1);_0x19e49c['return']=_0x1242f0;let _0x3cf7a2=null,_0x484bed=null;if(_0x2888b0||_0x25a905){if(_0x25a905&&!_0x2888b0){_0x32ad8d['remove'](_0x1242f0['getChild'](0x0));for(const _0x1a8443 of Array['from'](_0x515ad1['getChildren']()))_0x32ad8d['insert'](_0x1a8443,_0x1242f0,'end');const _0x4da89e=_0x5403b4['rowInsertionIndexes']['includes'](_0x482938['row']),_0x69170a=_0x5403b4['columnInsertionIndexes']['includes'](_0x482938['column']);_0x4da89e||_0x69170a||(_0x3cf7a2=rt['fromRange'](_0x32ad8d['createRangeIn'](_0x1242f0)));}else _0x2888b0&&!_0x25a905&&(_0x484bed=_0x32ad8d['createRangeIn'](_0x1242f0));}else{const _0x3740e6=_0x32ad8d['createElement']('tableCellSuggestion'),_0x248969=_0x32ad8d['createElement']('tableCellSuggestion');_0x32ad8d['wrap'](_0x32ad8d['createRangeIn'](_0x1242f0),_0x248969),_0x32ad8d['insert'](_0x3740e6,_0x1242f0,0x0);for(const _0x1cbccb of Array['from'](_0x515ad1['getChildren']()))_0x32ad8d['insert'](_0x1cbccb,_0x3740e6,'end');_0x3cf7a2=rt['fromRange'](_0x32ad8d['createRangeOn'](_0x3740e6)),_0x484bed=rt['fromRange'](_0x32ad8d['createRangeOn'](_0x248969));}const _0x5886b9=Array['from'](_0x515ad1['getAttributes']())['filter'](([_0xe221c3])=>We['includes'](_0xe221c3));_0x5403b4['cells']['push']({'element':_0x1242f0,'attributes':_0x5886b9['length']?Object['fromEntries'](_0x5886b9):null}),_0x3cf7a2&&_0x5403b4['insertionRanges']['push'](_0x3cf7a2),_0x484bed&&_0x5403b4['deletionRanges']['push'](_0x484bed);},{'priority':'high'}),_0x41bccb['on']('insertColumns',(_0x1cf9ce,_0x1d50d9)=>{const [_0xc25d98,_0x418eb9={}]=_0x1d50d9;if(!_0x5403b4)return;const _0x2622b2=_0x418eb9['at']||0x0,_0x4121ab=_0x418eb9['columns']||0x1;_0x5403b4['columnInsertionIndexes']=new Array(_0x4121ab)['fill'](_0x2622b2)['map']((_0x545e19,_0x12d780)=>_0x545e19+_0x12d780);for(const {cell:_0x1426f2}of _0x41bccb['createTableWalker'](_0xc25d98,{'startColumn':_0x2622b2,'endColumn':_0x2622b2+_0x4121ab-0x1}))_0x5403b4['columnInsertionRanges']['push'](_0x3502a3['model']['createRangeOn'](_0x1426f2));},{'priority':'low'}),_0x41bccb['on']('insertRows',(_0x560810,_0x9a6b71)=>{const [_0x17bb1e,_0x26e1df={}]=_0x9a6b71;if(!_0x5403b4)return;const _0x410ac3=_0x26e1df['at']||0x0,_0x52debc=_0x26e1df['rows']||0x1;_0x5403b4['rowInsertionIndexes']=new Array(_0x52debc)['fill'](_0x410ac3)['map']((_0x1e542c,_0x277dc3)=>_0x1e542c+_0x277dc3);for(const {cell:_0x44d69e}of _0x41bccb['createTableWalker'](_0x17bb1e,{'startRow':_0x410ac3,'endRow':_0x410ac3+_0x52debc-0x1}))_0x5403b4['rowInsertionRanges']['push'](_0x3502a3['model']['createRangeOn'](_0x44d69e));},{'priority':'low'}),_0x4c39cf['descriptionFactory']['registerDescriptionCallback'](_0x4febd5=>{if(_0x4febd5['subType']&&_0x4febd5['subType']['startsWith']('tablePaste'))return _0x4febd5['previous']?{}:{'type':'insertion','content':Mt(_0x3502a3['locale'],'*Replace\x20table\x20cells*')};});const _0x196b2a=()=>!0x1;for(const _0x224ecd of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4c39cf['_suggestionFactory']['registerCustomCallback']('insertion',_0x224ecd,'join',_0x196b2a),_0x4c39cf['_suggestionFactory']['registerCustomCallback']('deletion',_0x224ecd,'join',_0x196b2a),_0x4c39cf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x224ecd,'join',_0x196b2a);_0x4c39cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x196b2a),_0x4c39cf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5d38f7,_0x5a25fd,_0x6e60d0)=>{const _0x989d0b=_0x5d38f7['map'](_0x39bdbc=>_0x39bdbc['getContainedElement']())['filter'](_0x387655=>_0x387655),_0x211e8d=new Map(_0x989d0b['map'](_0x16e9ab=>[_0x16e9ab,null]));if(_0x5403b4){for(const {element:_0x1e4c5e,attributes:_0x19b40e}of _0x5403b4['cells'])_0x19b40e&&_0x211e8d['set'](_0x1e4c5e,_0x19b40e);}else{if(_0x6e60d0&&_0x6e60d0['markerAttributes'])for(const [_0x572f4f,_0x5c2ab7]of Object['entries'](_0x6e60d0['markerAttributes'])){const _0x575d4b=_0x3502a3['model']['markers']['get'](_0x572f4f),_0x2ff1bd=_0x575d4b?_0x575d4b['getRange']()['getContainedElement']():null;_0x2ff1bd&&_0x211e8d['set'](_0x2ff1bd,_0x5c2ab7);}}_0x3502a3['model']['change'](_0x4e9b69=>{for(const [_0x198fc9,_0x57d309]of _0x211e8d)_0x4e9b69['setAttributes']({...Ve,..._0x57d309},_0x198fc9);});});const _0x23dbca=(_0x279ec3,_0x10010a)=>{_0x4c39cf['_suggestionFactory']['registerCustomCallback'](_0x279ec3,'tablePaste',_0x10010a,(_0x159ab4,_0x47315b,_0x45d3bc)=>{_0x3502a3['model']['change'](_0x3f413a=>{const _0x30e7cb=[];for(const _0xeb202a of _0x159ab4){const _0x4e067f=_0xeb202a['start']['nodeAfter'];_0x4e067f['is']('element','tableCellSuggestion')&&_0x30e7cb['push'](_0x4e067f);}_0x4c39cf['_suggestionFactory']['getSuggestionCallback'](_0x279ec3,null,_0x10010a)(_0x159ab4,_0x47315b,_0x45d3bc);for(const _0x118682 of _0x30e7cb)'$graveyard'!=_0x118682['root']['rootName']&&_0x3f413a['unwrap'](_0x118682);});});};_0x23dbca('insertion','accept'),_0x23dbca('insertion','discard'),_0x23dbca('deletion','accept'),_0x23dbca('deletion','discard'),_0x4c39cf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5ae0dd=>{const _0x42f1e2=_0x5ae0dd['map'](_0x195cca=>_0x195cca['getContainedElement']()),_0x2a6e9d=_0x42f1e2[0x0]['findAncestor']('table'),{minRow:_0x49f9d9,maxRow:_0x92c8ef}=_0xd9ca21['_getCoordsForCells'](_0x42f1e2);_0x41bccb['removeRows'](_0x2a6e9d,{'at':_0x49f9d9,'rows':_0x92c8ef-_0x49f9d9+0x1});}),_0x4c39cf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1c5986=>{const _0x1c4999=_0x1c5986['map'](_0x364d8e=>_0x364d8e['getContainedElement']()),_0x4defdd=_0x1c4999[0x0]['findAncestor']('table'),{minColumn:_0x5f4778,maxColumn:_0x3c983a}=_0xd9ca21['_getCoordsForCells'](_0x1c4999);_0x41bccb['removeColumns'](_0x4defdd,{'at':_0x5f4778,'columns':_0x3c983a-_0x5f4778+0x1});});const _0x10a8b4=(_0x551377,_0x421567)=>{if(!_0x421567['subType']||!_0x421567['subType']['startsWith']('tablePaste'))return;const _0x1ac73b=_0x421567['attributes']['tablePasteChainId'],_0x1add07=_0x4c39cf['getSuggestions']()['filter'](_0x588e5e=>_0x588e5e['isInContent']&&_0x588e5e['attributes']&&_0x588e5e['attributes']['tablePasteChainId']==_0x1ac73b);_0x1add07['length']&&_0x421567['getAllAdjacentSuggestions']()['length']!=_0x1add07['length']&&_0x1add07['reduce']((_0x35343f,_0x5b869d)=>(_0x35343f['next']=_0x5b869d,_0x5b869d['previous']=_0x35343f,_0x5b869d));};function _0x3d4ac7(_0x5c8345,_0x489313=!0x0){const {id:_0x53d448,authorId:_0x3efc5a}=tt(_0x5c8345['markerName']),_0x59a5f0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x16b9b8=_0x4c39cf['activeMarkers']['includes'](_0x5c8345['markerName']);return _0x16b9b8&&_0x59a5f0['push']('ck-suggestion-marker--active'),{'classes':_0x59a5f0,'attributes':{'data-suggestion':_0x53d448,'data-author-id':_0x3efc5a},'priority':_0x16b9b8&&_0x489313?0xbc2:0xbb8};}_0x4c39cf['on']('suggestionLoaded',_0x10a8b4,{'priority':'high'}),_0x4c39cf['on']('suggestionUnloaded',_0x10a8b4,{'priority':'high'}),_0x3502a3['model']['document']['registerPostFixer'](()=>{let _0x5a212a=!0x1;const _0x5c23e5=Array['from'](_0x3502a3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42b185,data:_0x16ec0c}of _0x5c23e5){const {group:_0x41c5ef,type:_0x4819a4,id:_0x5b9922}=tt(_0x42b185);if('suggestion'!=_0x41c5ef||'deletion'!=_0x4819a4||_0x16ec0c['oldRange'])continue;if(!_0x4c39cf['hasSuggestion'](_0x5b9922))continue;const _0x3b4654=_0x4c39cf['getSuggestion'](_0x5b9922)['getRanges'](),_0x5d5c71=_0x3502a3['plugins']['get']('Users')['me'];for(const _0x3cc255 of _0x4c39cf['getSuggestions']())if(_0x3cc255['isInContent']&&_0x3cc255['author']==_0x5d5c71&&'formatBlock'==_0x3cc255['type']&&'tablePasteCell'==_0x3cc255['subType']&&_0x3cc255['getRanges']()['every'](_0x7e8180=>_0x3b4654['some'](_0x1c7db7=>_0x1c7db7['containsRange'](_0x7e8180,!0x0)))){for(const _0x223f03 of _0x3cc255['getAllAdjacentSuggestions']())_0x223f03['isInContent']&&(_0x223f03['discard'](),_0x5a212a=!0x0);}}return _0x5a212a;}),_0x3502a3['model']['document']['registerPostFixer'](_0x52e47d=>{const _0x25e1f1=_0x3502a3['commands']['get']('redo');if(!_0x25e1f1||!_0x25e1f1['_createdBatches']['has'](_0x52e47d['batch']))return!0x1;let _0x418b93=!0x1;const _0x35a068=_0x3502a3['plugins']['get']('Users')['me'],_0x5db554=_0x3502a3['model']['document']['differ']['getChanges'](),_0xf20bf6=Array['from'](_0x3502a3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3d5d34,data:_0x1139aa})=>{const {group:_0x242011,subType:_0xe28300,authorId:_0x45b59c}=tt(_0x3d5d34);return'suggestion'==_0x242011&&'tablePaste'==_0xe28300&&_0x45b59c==_0x35a068['id']&&!_0x1139aa['oldRange'];});for(const _0x32f087 of _0x5db554){if('insert'!=_0x32f087['type']||'tableCellSuggestion'!=_0x32f087['name']||0x1!=_0x32f087['length'])continue;const _0xb68e0c=_0x52e47d['createRange'](_0x32f087['position'],_0x32f087['position']['getShiftedBy'](0x1));if(!_0xf20bf6['find'](({data:_0x139be1})=>_0x139be1['newRange']['isEqual'](_0xb68e0c))){for(const {name:_0x4d2996,data:_0x1ad5d4}of _0xf20bf6)if(_0xb68e0c['containsRange'](_0x1ad5d4['newRange'])){_0x52e47d['updateMarker'](_0x4d2996,{'range':_0xb68e0c}),_0x418b93=!0x0;break;}}}return _0x418b93;}),_0x3502a3['model']['document']['registerPostFixer'](_0x366e2a=>{let _0x2b3fec=!0x1;const _0x576823=_0x3502a3['plugins']['get']('Users')['me'],_0x244b17=_0x4c39cf['getSuggestions']()['filter'](_0x2f7754=>_0x2f7754['isInContent']&&_0x2f7754['author']==_0x576823),_0x4b0410=new Set(),_0x17d225=new Set();for(const _0x1f8ad4 of _0x244b17)if('tablePaste'==_0x1f8ad4['subType'])for(const _0x572b7c of _0x1f8ad4['getMarkers']()){const _0x56c798=_0x572b7c['getRange']()['getContainedElement']();if(_0x56c798){if(_0x56c798['is']('element','tableCellSuggestion')&&ze(_0x56c798)){_0x1f8ad4['removeMarker'](_0x572b7c['name']),_0x4b0410['add'](_0x56c798),_0x2b3fec=!0x0;const _0x1be2f1=_0x56c798['nextSibling'],_0x43bf93=_0x56c798['previousSibling'],_0x48175c=_0x1be2f1&&_0x1be2f1['is']('element','tableCellSuggestion'),_0x11ce6a=_0x43bf93&&_0x43bf93['is']('element','tableCellSuggestion');_0x48175c&&!_0x4b0410['has'](_0x1be2f1)&&_0x17d225['add'](_0x1be2f1),_0x11ce6a&&!_0x4b0410['has'](_0x43bf93)&&_0x17d225['add'](_0x43bf93);}else _0x56c798['is']('element','paragraph')&&_0x56c798['isEmpty']&&(_0x1f8ad4['removeMarker'](_0x572b7c['name']),_0x2b3fec=!0x0);}}else{if('tablePasteCell'==_0x1f8ad4['subType']){if(!_0x1f8ad4['attributes']||!_0x1f8ad4['attributes']['tablePasteChainId'])continue;const _0x204c55=_0x1f8ad4['attributes']['markerAttributes'];if(_0x204c55&&Object['keys'](_0x204c55)['length'])continue;const _0x12603f=_0x1f8ad4['attributes']['tablePasteChainId'];let _0x4e8dad=!0x0,_0x454984=!0x0;for(const _0x3db4ce of _0x244b17)if(_0x3db4ce['subType']&&_0x3db4ce['subType']['startsWith']('tablePaste')){if(!_0x3db4ce['attributes']['tablePasteChainId']){_0x454984=!0x1;break;}if(_0x3db4ce['id']!=_0x1f8ad4['id']&&_0x3db4ce['attributes']['tablePasteChainId']==_0x12603f){_0x4e8dad=!0x1;break;}}_0x454984&&_0x4e8dad&&(_0x1f8ad4['removeMarkers'](),_0x2b3fec=!0x0);}}for(const _0x3a1e90 of _0x4b0410)_0x366e2a['remove'](_0x3a1e90);for(const _0x26d34c of _0x17d225)_0x366e2a['unwrap'](_0x26d34c);return _0x2b3fec;}),_0x3502a3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x35220d=>_0x3d4ac7(_0x35220d),'converterPriority':'high'}),_0x3502a3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5df068,_0x336dd6)=>_0x336dd6['options']['showSuggestionHighlights']?_0x3d4ac7(_0x5df068,!0x1):null,'converterPriority':'high'});const _0x452074=_0x3502a3['editing']['view'];this['listenTo'](_0x452074['document'],'clipboardOutput',(_0xf2820a,_0x17d2d3)=>{const _0x146ddf=[];for(const _0x512a4a of _0x452074['createRangeIn'](_0x17d2d3['content'])['getItems']())_0x512a4a['is']('element','suggestion-td')&&_0x146ddf['push'](_0x512a4a);_0x452074['change'](_0x58f924=>{for(const _0x4c21b5 of _0x146ddf)_0x58f924['move'](_0x58f924['createRangeIn'](_0x4c21b5),_0x58f924['createPositionBefore'](_0x4c21b5)),_0x58f924['remove'](_0x4c21b5);});});}};function ze(_0x351bbd){if(_0x351bbd['isEmpty'])return!0x0;const _0x13714f=_0x351bbd['getChild'](0x0);return _0x13714f['is']('element','paragraph')&&_0x13714f['isEmpty'];}function Ke(_0x302f03,_0x57e894={},_0x3663ca){for(const {isAnchor:_0x5db541,cellHeight:_0x25c38e,cellWidth:_0x326027}of _0x3663ca['createTableWalker'](_0x302f03,{'includeAllSlots':!0x0,..._0x57e894}))if(!_0x5db541||0x1!=_0x25c38e||0x1!=_0x326027)return!0x1;return!0x0;}var Xe=class extends _0x5cf544{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xb460cf=this['editor']['plugins']['get']('TrackChangesEditing');_0xb460cf['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0xb460cf['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0xb460cf['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xb460cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x22522e=_0xb460cf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0xb460cf['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x27351c,_0x2f56b6)=>{_0x22522e(_0x27351c,_0x2f56b6),this['_restoreCellWidths'](_0x27351c[0x0]['start']['nodeAfter'],_0x2f56b6['commandParams'][0x0]['cellWidths']);}),_0xb460cf['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x2d0ff8,_0x1dcb5b){const _0x4e01b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b2dae=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x49178f=_0x1dcb5b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x76031=_0x3b2dae['getColumnGroupElement'](_0x49178f);let _0x49204c=_0x76031?_0x3b2dae['getTableColumnsWidths'](_0x76031):null,_0x4e2073=_0x49178f['getAttribute']('tableWidth')||null;const _0x1fcd89=_0x1dcb5b['tableWidth']||_0x4e2073,_0x4cf98a=_0x1dcb5b['columnWidths']||_0x49204c;let _0x34edb6=this['_getCellWidths'](_0x49178f);const _0x396c19=this['_foldResizeTableSuggestion'](_0x49178f);_0x396c19&&(_0x4e2073=_0x396c19['tableWidth'],_0x49204c=_0x396c19['columnWidths'],_0x34edb6=_0x396c19['cellWidths']||_0x34edb6),_0x2d0ff8({'table':_0x49178f,'tableWidth':_0x1fcd89,'columnWidths':_0x4cf98a}),_0x4e01b9['markBlockFormat'](_0x49178f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4e2073,'columnWidths':_0x49204c,'cellWidths':_0x34edb6}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x3b6950,_0xca7244={}){if(void 0x0===_0xca7244['value']||''===_0xca7244['value'])return void _0x3b6950(_0xca7244);const _0x20852c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ef2ec=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xaef722=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0xca7244['batch']||(_0xca7244['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0xca7244['batch'],()=>{const _0x4c112b=_0x4ef2ec['getColumnGroupElement'](_0xaef722);let _0x1f7de5=_0x4c112b?_0x4ef2ec['getTableColumnsWidths'](_0x4c112b):null,_0x26c0c0=_0xaef722['getAttribute']('tableWidth')||null,_0x17249d=this['_getCellWidths'](_0xaef722);const _0x496620=this['_foldResizeTableSuggestion'](_0xaef722,!0x0);_0x496620&&(_0x26c0c0=_0x496620['tableWidth'],_0x1f7de5=_0x496620['columnWidths'],_0x17249d=_0x496620['cellWidths']||_0x17249d),_0x3b6950(_0xca7244),_0x20852c['markBlockFormat'](_0xaef722,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x26c0c0,'columnWidths':_0x1f7de5,'cellWidths':_0x17249d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x48f9d7,_0x4382d4=!0x1){const _0x32af82=this['editor']['plugins']['get']('TrackChangesEditing'),_0x387497=this['editor']['plugins']['get']('Users')['me'];for(const _0x160974 of _0x32af82['getSuggestions']({'skipNotAttached':!0x0})){const _0x16f202=_0x160974['getContainedElement']();if('resizeTable'===_0x160974['subType']&&_0x16f202===_0x48f9d7){_0x160974['author']!==_0x387497&&(_0x4382d4?_0x160974['removeMarkers']():_0x160974['discard']());const _0x1f712e=_0x160974['data']['commandParams'];return{'tableWidth':_0x1f712e[0x0]['tableWidth'],'columnWidths':_0x1f712e[0x0]['columnWidths'],'cellWidths':_0x1f712e[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x15377f){const _0x401eb1=[];for(const _0x2e4116 of _0x15377f['getChildren']())if(_0x2e4116['is']('element','tableRow')){for(const _0x571d7d of _0x2e4116['getChildren']())_0x401eb1['push'](_0x571d7d['getAttribute']('tableCellWidth')||null);}return _0x401eb1;}_restoreCellWidths(_0x53af5e,_0x58db1a){_0x58db1a&&this['editor']['model']['change'](_0x1182af=>{let _0x1d0067=0x0;for(const _0x49a081 of _0x53af5e['getChildren']())if(_0x49a081['is']('element','tableRow'))for(const _0x657e20 of _0x49a081['getChildren']()){const _0x50c601=_0x58db1a[_0x1d0067++];_0x50c601&&_0x1182af['setAttribute']('tableCellWidth',_0x50c601,_0x657e20);}});}handleSuggestionDescription(_0x623380){if('formatBlock'!=_0x623380['type']&&'formatInline'!=_0x623380['type'])return;const {data:_0x1ee61f}=_0x623380;return _0x1ee61f&&'resizeTable'===_0x1ee61f['formatGroupId']?{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},qe=class extends _0x5cf544{afterInit(){const _0x2fcfd4=this['editor'];_0x2fcfd4['plugins']['has']('Template')&&_0x2fcfd4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ye=class extends _0x5cf544{afterInit(){const _0x4f97ae=this['editor'];if(!_0x4f97ae['commands']['get']('insertTableOfContents'))return;_0x4f97ae['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x540895=_0x4f97ae['plugins']['get']('TrackChangesEditing'),_0x474575=_0x4f97ae['locale'];_0x540895['descriptionFactory']['registerElementLabel']('tableOfContents',_0x55d98f=>Mt(_0x474575,'ELEMENT_TABLE_OF_CONTENTS',_0x55d98f));}},Qe=class extends _0x5cf544{afterInit(){const _0x3740b8=this['editor'];_0x3740b8['plugins']['has']('Title')&&(_0x3740b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Mt(_0x3740b8['locale'],'ELEMENT_TITLE')),_0x3740b8['model']['document']['registerPostFixer'](_0x57f7d6=>{let _0x5ec03e=!0x1;const _0x151570=Array['from'](_0x3740b8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31a7a0,data:_0x595e81}of _0x151570){const {group:_0x1834c6}=tt(_0x31a7a0);if('suggestion'!==_0x1834c6||!_0x595e81['newRange'])continue;const _0x45e4ab=_0x595e81['newRange'],_0x511c43=_0x45e4ab['end']['nodeBefore'];if(!_0x511c43||!_0x511c43['is']('element','title-content'))continue;if(!_0x45e4ab['start']['isTouching'](_0x45e4ab['end']))continue;const _0x4b93dc=_0x3740b8['model']['schema']['getNearestSelectionRange'](_0x45e4ab['end'],'forward');if(_0x4b93dc&&_0x4b93dc['isCollapsed']){const _0x5f36bb=_0x57f7d6['createRange'](_0x45e4ab['start'],_0x4b93dc['start']);_0x5f36bb['isEqual'](_0x45e4ab)||(_0x57f7d6['updateMarker'](_0x31a7a0,{'range':_0x5f36bb}),_0x5ec03e=!0x0);}_0x5ec03e||(_0x57f7d6['removeMarker'](_0x31a7a0),_0x5ec03e=!0x0);}return _0x5ec03e;}));}},Ze=class extends _0x5cf544{afterInit(){const _0xcf70ab=this['editor'],_0xba4158=_0xcf70ab['plugins']['get']('TrackChangesEditing');_0xcf70ab['plugins']['has']('Uploadcare')&&(_0xba4158['enableCommand']('uploadcare'),_0xcf70ab['plugins']['has']('UploadcareImageEdit')&&(_0xba4158['enableCommand']('uploadcareImageEdit'),_0xba4158['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xba4158['descriptionFactory']['registerDescriptionCallback'](_0x1c5e25=>{if('attribute'!=_0x1c5e25['type'])return;const {data:_0x5aef6a}=_0x1c5e25;return _0x5aef6a&&'uploadcareImageId'==_0x5aef6a['key']?{'type':'format','content':''}:void 0x0;})));}},Je=class extends _0x5cf544{afterInit(){const _0x5f056b=this['editor'],_0x575ddd=_0x5f056b['plugins']['get']('TrackChangesEditing');_0x5f056b['plugins']['has']('UndoEditing')&&(_0x575ddd['enableCommand']('undo'),_0x575ddd['enableCommand']('redo'));}},tn=class extends _0x5cf544{static get requires(){return[Ue];}afterInit(){const _0x529474=this['editor'];_0x529474['plugins']['has']('TableCaptionEditing')&&_0x529474['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},en=class extends _0x5cf544{tableProperties;tableCellProperties;constructor(_0x24c22a){super(_0x24c22a),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 _0x593b19=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5be9ef of this['tableProperties'])_0x593b19['enableCommand'](_0x5be9ef,(_0x83bcdf,_0x2f8fb7)=>{const _0x47ceb1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5be9ef,[_0x47ceb1],this['tableProperties'],'tableProperties',_0x83bcdf,_0x2f8fb7);});_0x593b19['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x593b19['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x593b19['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x43f5c7,_0x90b606)=>this['handleDiscardAction'](this['tableProperties'],_0x43f5c7,_0x90b606)),_0x593b19['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x417d2f of this['tableCellProperties'])this['editor']['commands']['get'](_0x417d2f)&&_0x593b19['enableCommand'](_0x417d2f,(_0xcca55b,_0x2651a5)=>{const _0x395175=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x417d2f,_0x395175,this['tableCellProperties'],'tableCellProperties',_0xcca55b,_0x2651a5);});_0x593b19['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x593b19['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x593b19['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2da066,_0x40dd86)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2da066,_0x40dd86)),_0x593b19['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x593b19['descriptionFactory']['registerAttributeLabel']('tableCellType',Mt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x593b19['descriptionFactory']['registerDescriptionCallback'](_0x32bfb1=>this['handleSuggestionDescription'](_0x32bfb1)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x1904c6,_0x1fa333,_0x55ccee,_0x4fd5a6,_0x44e7d8,_0x32d446){const _0xd5da29=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x32d446['batch'],()=>{for(const _0x3adc94 of _0x1fa333)if(this['_getSuggestion'](_0x3adc94,_0x4fd5a6))_0x44e7d8(_0x32d446);else{const _0x51706d={};for(const _0x3611ca of _0x55ccee){const _0x105c82=_0x3adc94['getAttribute'](_0x3611ca);void 0x0!==_0x105c82&&(_0x51706d[_0x3611ca]=_0x105c82);}const _0x4f2fec=this['_getResizedColumnWidths'](_0x3adc94);_0x4f2fec&&(_0x51706d['columnWidths']=_0x4f2fec),_0x44e7d8(_0x32d446),_0xd5da29['markBlockFormat'](_0x3adc94,{'commandParams':[_0x51706d]},[],_0x4fd5a6);}});}handleDiscardAction(_0x1f4d04,_0x1132ce,_0x54c369){const _0x5a28c1=_0x1132ce[0x0]['start']['nodeAfter'],_0x2cbbc2=_0x54c369['commandParams'][0x0];this['editor']['model']['change'](_0x5236ef=>{for(const _0xe10635 of _0x1f4d04)void 0x0!==_0x2cbbc2[_0xe10635]?_0x5236ef['setAttribute'](_0xe10635,_0x2cbbc2[_0xe10635],_0x5a28c1):_0x5236ef['removeAttribute'](_0xe10635,_0x5a28c1);if(_0x2cbbc2['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x320f4f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x10bd05=_0x320f4f['getColumnGroupElement'](_0x5a28c1);if(_0x10bd05){const _0x1e4523=_0x320f4f['getTableColumnsWidths'](_0x10bd05),_0x5211dc=_0x5a28c1['getAttribute']('tableWidth');if(('string'==typeof _0x5211dc&&_0x5211dc['trim']()['endsWith']('px'))!==_0x1e4523['some'](_0xf711de=>'string'==typeof _0xf711de&&_0xf711de['endsWith']('px'))){const _0x53837d=_0x320f4f['getTableColumnElements'](_0x10bd05);_0x2cbbc2['columnWidths']['forEach']((_0x3abd80,_0x3e9a71)=>{_0x53837d[_0x3e9a71]&&_0x5236ef['setAttribute']('columnWidth',_0x3abd80,_0x53837d[_0x3e9a71]);});}}}});}_getResizedColumnWidths(_0x2586ab){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x2586ab['is']('element','table'))return;const _0x2e5280=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x21b90f=_0x2e5280['getColumnGroupElement'](_0x2586ab);return _0x21b90f?_0x2e5280['getTableColumnsWidths'](_0x21b90f):void 0x0;}handleSuggestionDescription(_0x3ac0ef){if(_0x3ac0ef['data'])switch(_0x3ac0ef['subType']){case'tableProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x4fa13c,_0x50e295){const _0x2eea9c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x20c3f1 of _0x2eea9c['getSuggestions']({'skipNotAttached':!0x0})){const _0xd949c9=_0x20c3f1['getContainedElement']();if(_0x20c3f1['subType']===_0x50e295&&_0xd949c9===_0x4fa13c)return _0x20c3f1;}return null;}_registerTablePropertiesAttributes(){const _0x3a6a6e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c1c7d=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4bd6ef of _0x1c1c7d){const _0x100a7b=_0x4bd6ef['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x3a6a6e['descriptionFactory']['registerAttributeLabel'](_0x4bd6ef,Mt(this['editor']['locale'],'FORMAT_'+_0x100a7b));}}},nn=class extends _0x5cf544{afterInit(){const _0x53974e=this['editor'];if(!_0x53974e['plugins']['has']('LineHeight'))return;const _0x33abf4=_0x53974e['plugins']['get']('TrackChangesEditing'),_0x33398f=_0x53974e['locale'];_0x33abf4['enableDefaultAttributesIntegration']('lineHeight'),_0x33abf4['descriptionFactory']['registerAttributeLabel']('lineHeight',Mt(_0x33398f,'FORMAT_LINE_HEIGHT'));}};const sn='$elementName';function rn(_0x1d8c67){return'marker'==_0x1d8c67['type']&&_0x1d8c67['name']['startsWith']('$markedRemove');}var on=class extends _0x5cf544{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x3f08e8,_0x479c91,_0x14ae03,_0x305bdb,wt,Ft,Bt,vt,Ut,Pt,Gt,$t,Ht,Wt,Vt,zt,Kt,Jt,te,ee,ie,se,re,ae,ce,le,ue,de,he,fe,ge,me,Ee,Te,pe,Ae,ye,_e,Xt,nn,Yt,be,ke,Ce,Re,Ne,Se,Me,Oe,we,Fe,ve,De,Ue,xe,Ge,He,$e,tn,je,Xe,Ye,en,qe,Qe,Ze,Je];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7b5dcc){super(_0x7b5dcc),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xd6b2d7,_0x19388d,_0x2ca48b,_0x61b185)=>{this['_model']['change'](()=>{for(const _0x26ffb2 of[..._0x61b185,..._0x2ca48b])this['_model']['markers']['has'](_0x26ffb2)&&_0x7b5dcc['editing']['reconvertMarker'](_0x26ffb2);});}),this['descriptionFactory']=new Ot(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x7b5dcc['plugins']['get'](_0x3f08e8),this['_suggestionsConversion']=_0x7b5dcc['plugins']['get'](_0x479c91),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x7b5dcc['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x7b5dcc['config']['get']('trackChanges.trackFormatChanges'),_0x7b5dcc['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x7b5dcc['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Tt(_0x7b5dcc,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x39cb93=this['editor'];_0x39cb93['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3bbd64,{writer:_0x93732f})=>{let _0x4ea549='suggestion:'+_0x3bbd64['getAttribute']('suggestion-type')+':'+_0x3bbd64['getAttribute']('id');return _0x3bbd64['getAttribute']('marker-count')&&(_0x4ea549+=':'+_0x3bbd64['getAttribute']('marker-count')),_0x93732f['createElement']('$marker',{'data-name':_0x4ea549});}}),_0x39cb93['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x39cb93['model']['document']['registerPostFixer'](_0x3c3a2b=>{let _0x5e625a=!0x1;const _0x47e076=Array['from'](_0x39cb93['model']['document']['differ']['getChangedMarkers']()),_0xab13fb=new Set();for(const {name:_0x383b2b,data:_0x29c213}of _0x47e076){const {group:_0x2a5ba9,type:_0x397c37,subType:_0x9a422b,id:_0x589fdb}=tt(_0x383b2b);if('suggestion'!==_0x2a5ba9)continue;const _0x13c3ef=_0x9a422b?'suggestion:'+_0x397c37+':'+_0x9a422b+':'+_0x589fdb:'suggestion:'+_0x397c37+':'+_0x589fdb,_0x1d04a0=_0x39cb93['model']['markers']['getMarkersGroup'](_0x13c3ef),_0x57e765=_0x39cb93['model']['markers']['get'](_0x383b2b),_0x6880be=this['_suggestions']['get'](_0x589fdb);if(null!=_0x29c213['newRange']){'formatInline'==_0x397c37&&(_0x5e625a=_0x5e625a||un(_0x29c213['newRange'],_0x383b2b,_0x3c3a2b,_0x39cb93['model']['schema']));const _0x237451='attribute'==_0x397c37&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x9a422b)),_0x1a033d='attribute'==_0x397c37&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x9a422b));if(_0x29c213['newRange']['isCollapsed']||'$graveyard'==_0x29c213['newRange']['root']['rootName']||'formatBlock'==_0x397c37&&!hn(_0x29c213['newRange'])||_0x237451&&!hn(_0x29c213['newRange'])||_0x1a033d&&gn(_0x29c213['newRange'])||'deletion'==_0x397c37&&gn(_0x29c213['newRange'])||_0x57e765&&fn(_0x57e765,_0x1d04a0))_0x3c3a2b['removeMarker'](_0x383b2b),_0x5e625a=!0x0;else{if(!_0x6880be||!_0x6880be['isInContent'])continue;if(_0x29c213['newRange']&&_0x29c213['oldRange']&&_0x29c213['newRange']['isEqual'](_0x29c213['oldRange']))continue;_0xab13fb['add'](_0x6880be);}}}return _0xab13fb['size']>0x0&&(_0x5e625a=!!this['_joinWithAdjacentSuggestions'](_0xab13fb)||_0x5e625a),_0x5e625a;}),_0x39cb93['model']['document']['registerPostFixer'](_0x82a5bc=>{let _0x406311=!0x1;for(const _0x5ac81f of _0x39cb93['model']['document']['differ']['getChanges']())if('insert'==_0x5ac81f['type'])for(const _0x240add of this['_suggestions']['values']()){if(_0x240add['isMultiRange']||!_0x240add['isInContent'])continue;const _0xf20fbd='formatBlock'==_0x240add['type'],_0x2e1dc7=this['_getAttributeKey'](_0x240add),_0x48a665=_0x2e1dc7&&this['_suggestionsConversion']['isBlockAttribute'](_0x2e1dc7);if(!_0xf20fbd&&!_0x48a665)continue;const _0x22a2cd=_0x240add['getFirstRange']();if(_0x22a2cd['start']['parent']!=_0x22a2cd['end']['parent']&&!_0x22a2cd['end']['isAtEnd']){const _0x3a2665=_0x39cb93['model']['createPositionAt'](_0x22a2cd['start']['nodeAfter'],'end'),_0x11744e=_0x39cb93['model']['createRange'](_0x22a2cd['start'],_0x3a2665);_0x82a5bc['updateMarker'](_0x240add['getFirstMarker'](),{'range':_0x11744e}),_0x406311=!0x0;}}return _0x406311;}),_0x39cb93['model']['document']['registerPostFixer'](_0x2ba787=>this['_processAttributeChanges'](_0x2ba787)),_0x39cb93['model']['document']['registerPostFixer'](_0x880fa5=>!_0x880fa5['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x880fa5)),_0x39cb93['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x39cb93['model']['document']['on']('change:data',(_0x1717c8,_0x1756fb)=>{if(!_0x1756fb['isLocal']||_0x1756fb['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x30d0b8=_0x39cb93['model']['document']['differ']['getChanges']();if(0x0==_0x30d0b8['length'])return;const _0x25bb60=[],_0x337e85=_0x30d0b8['filter'](_0x528a9f=>'attribute'==_0x528a9f['type']),_0x2f04af=_0x30d0b8['filter'](_0xf168a4=>'insert'==_0xf168a4['type']&&'$text'!=_0xf168a4['name']);for(const _0x3674a1 of _0x337e85)this['_suggestionsConversion']['isRegisteredAttribute'](_0x3674a1['attributeKey'])&&_0x25bb60['push']({'key':_0x3674a1['attributeKey'],'newValue':_0x3674a1['attributeNewValue'],'oldValue':_0x3674a1['attributeOldValue'],'range':mn(_0x3674a1['range'],_0x39cb93['model'])});for(const _0x457230 of _0x2f04af){if('rename'!=_0x457230['action']&&'refresh'!=_0x457230['action'])continue;const _0x18dc4=En(_0x457230['position']['nodeAfter'],_0x39cb93['model']),_0x141516=_0x457230['before'];'rename'==_0x457230['action']&&_0x25bb60['push']({'key':sn,'newValue':_0x457230['name'],'oldValue':_0x141516['name'],'range':_0x18dc4});for(const [_0x431256,_0x3bb79c]of _0x141516['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x431256))continue;const _0x5f389f=_0x457230['attributes']['get'](_0x431256);_0x3bb79c!==_0x5f389f&&_0x25bb60['push']({'key':_0x431256,'newValue':_0x5f389f,'oldValue':_0x3bb79c,'range':_0x18dc4});}for(const [_0x31cbc2,_0x5ac962]of _0x457230['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x31cbc2)&&(_0x141516['attributes']['has'](_0x31cbc2)||_0x25bb60['push']({'key':_0x31cbc2,'newValue':_0x5ac962,'oldValue':null,'range':_0x18dc4}));}0x0!=_0x25bb60['length']&&_0x39cb93['model']['enqueueChange'](_0x1756fb,_0x3c1099=>{const _0xbd79b=_0x4aa562();for(const {range:_0x56a92e,key:_0x5e6381,oldValue:_0x2b84c6,newValue:_0x335a35}of _0x25bb60)this['markAttributeChange'](_0x56a92e,_0x5e6381,_0x2b84c6,_0x335a35,{'groupId':_0xbd79b});this['_reduceExistingSuggestions'](_0x3c1099,_0x25bb60);});},{'priority':'lowest'}),_0x39cb93['model']['markers']['on']('update:suggestion',(_0x11c1ed,_0x2f099a,_0x23cba7)=>{if(null==_0x23cba7){const {id:_0xbf14a2}=tt(_0x2f099a['name']),_0x43be18=this['_suggestions']['get'](_0xbf14a2);_0x43be18&&_0x43be18['addMarkerName'](_0x2f099a['name']);}}),_0x39cb93['model']['document']['on']('change:data',()=>{const _0x155840=Array['from'](_0x39cb93['model']['document']['differ']['getChangedMarkers']())['filter'](_0x11ca46=>'suggestion'===tt(_0x11ca46['name'])['group']);if(0x0===_0x155840['length'])return;_0x155840['sort']((_0x2dbbfb,_0x352d5b)=>{const _0x1869c4=_0x2dbbfb['data']['oldRange'],_0x6551c4=_0x352d5b['data']['oldRange'];return null===_0x1869c4&&null===_0x6551c4?0x0:null===_0x1869c4&&null!==_0x6551c4?-0x1:null!==_0x1869c4&&null===_0x6551c4?0x1:_0x1869c4['start']['isBefore'](_0x6551c4['start'])?-0x1:0x1;});const _0x600b07=new Set(),_0x1089cc=new Set();for(const {name:_0x2100f0,data:_0x3b29d2}of _0x155840){const {id:_0x2a89c0}=tt(_0x2100f0);if(null===_0x3b29d2['oldRange']){const _0x35ed73=this['_handleNewSuggestionMarker'](_0x2100f0);_0x1089cc['add'](_0x35ed73);}else{const _0x47c63a=this['_suggestions']['get'](_0x2a89c0);null!==_0x3b29d2['newRange']||_0x47c63a['isInContent']?(_0x600b07['add'](_0x47c63a['head']),_0x1089cc['add'](_0x47c63a)):this['_removeSuggestion'](_0x47c63a);}}_0x1089cc['size']>0x0&&this['_refreshSuggestionsChain'](_0x1089cc);for(const _0x8c0662 of _0x600b07)this['fire']('suggestionChanged',_0x8c0662);}),_0x39cb93['model']['on']('applyOperation',(_0x4fdec3,_0x3f1f4a)=>{const _0x344609=_0x3f1f4a[0x0];if(!this['_suggestions']['size'])return;if(!_0x344609['isDocumentOperation'])return;if(_0x344609['batch']['isUndo']||!_0x344609['batch']['isLocal'])return;let _0xe6383b,_0x4ac613;switch(_0x344609['type']){case'insert':_0xe6383b=_0x39cb93['model']['createPositionAt'](_0x344609['position']),_0x4ac613=_0xe6383b['getShiftedBy'](_0x344609['howMany']);break;case'split':_0xe6383b=_0x39cb93['model']['createPositionAt'](_0x344609['splitPosition']),_0x4ac613=_0x39cb93['model']['createPositionAt'](_0x344609['moveTargetPosition']);break;case'move':_0xe6383b=_0x39cb93['model']['createPositionAt'](_0x344609['targetPosition']),_0x4ac613=_0xe6383b['getShiftedBy'](_0x344609['howMany']);break;default:return;}const _0x44489c=_0x39cb93['model']['createRange'](_0xe6383b,_0x4ac613);_0x39cb93['model']['change'](()=>{for(const {suggestion:_0x4f336d,meta:_0x5710bf}of this['_findSuggestions'](_0x44489c)){if(_0x4f336d['isMultiRange'])continue;if('formatInline'==_0x4f336d['type'])continue;const _0x592c57=this['_getAttributeKey'](_0x4f336d);if(_0x592c57&&this['_suggestionsConversion']['isBlockAttribute'](_0x592c57)&&'split'!=_0x344609['type'])continue;const _0x1c8bef=_0x4f336d['data']&&_0x4f336d['data']['multipleBlocks'];('formatBlock'!=_0x4f336d['type']||'split'==_0x344609['type']&&!_0x1c8bef)&&(_0x5710bf['containsRangeInObject']||'insertion'==_0x4f336d['type']&&_0x5710bf['isOwn']||_0x4f336d['getFirstRange']()['containsRange'](_0x44489c)&&this['_breakSuggestionMarker'](_0x4f336d,_0xe6383b,_0x4ac613));}});},{'priority':'lowest'}),_0x39cb93['model']['on']('deleteContent',(_0x31dd39,_0x303157)=>{const _0x54429f=_0x303157[0x0],_0x45a140=_0x303157[0x1];if(_0x45a140&&_0x45a140['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x54429f['isCollapsed'])return;const _0x8d12f5=_0x39cb93['model']['schema'],{start:_0x1e3dd7,end:_0x555bea}=_0x54429f['getFirstRange'](),_0x2ead2f=_0x1e3dd7['nodeAfter']&&_0x8d12f5['isLimit'](_0x1e3dd7['nodeAfter'])?null:_0x8d12f5['getNearestSelectionRange'](_0x1e3dd7,'forward'),_0x505951=_0x555bea['nodeBefore']&&_0x8d12f5['isLimit'](_0x555bea['nodeBefore'])?null:_0x8d12f5['getNearestSelectionRange'](_0x555bea,'backward'),_0x11f877=_0x39cb93['model']['createRange'](_0x2ead2f?_0x2ead2f['start']:_0x1e3dd7,_0x505951?_0x505951['end']:_0x555bea);_0x39cb93['model']['change'](_0xc77ace=>{this['markDeletion'](_0x11f877);const _0x113d95=_0x39cb93['model']['schema']['getNearestSelectionRange'](_0x11f877['start']);_0x54429f['is']('documentSelection')?_0xc77ace['setSelection'](_0x113d95):_0x54429f['setTo'](_0x113d95);}),_0x31dd39['stop']();},{'priority':_0x3fd845['normal']+0xa}),_0x39cb93['model']['on']('insertContent',(_0x4a168c,_0x533e39)=>{const _0x1a2f85=_0x533e39[_0x533e39['length']-0x1];_0x1a2f85&&_0x1a2f85['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x39cb93['model']['change'](()=>{let _0x207fae=_0x39cb93['model']['insertContent'](_0x533e39[0x0],_0x533e39[0x1],_0x533e39[0x2],{'forceDefaultExecution':!0x0});if(!_0x207fae)return;_0x4a168c['return']=_0x207fae['clone']();const _0xeb409=_0x207fae['end']['nodeBefore'],_0x21d612=_0x39cb93['model']['schema'];_0xeb409&&_0x21d612['isBlock'](_0xeb409)&&!_0x21d612['isObject'](_0xeb409)&&(_0x207fae=_0x39cb93['model']['createRange'](_0x207fae['start'],_0x39cb93['model']['createPositionAt'](_0xeb409,'end'))),this['markInsertion'](_0x207fae);}),_0x4a168c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x268eff=new _t(_0x39cb93,this['_suggestions']);_0x39cb93['commands']['add']('acceptSuggestion',_0x268eff),this['enableCommand']('acceptSuggestion');const _0xf33c=new pt(_0x39cb93,this['_suggestions']);_0x39cb93['commands']['add']('discardSuggestion',_0xf33c),this['enableCommand']('discardSuggestion'),_0x39cb93['commands']['add']('acceptAllSuggestions',new Rt(_0x39cb93,_0x268eff,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x39cb93['commands']['add']('discardAllSuggestions',new Rt(_0x39cb93,_0xf33c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x39cb93['commands']['add']('acceptSelectedSuggestions',new yt(_0x39cb93,_0x268eff,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x39cb93['commands']['add']('discardSelectedSuggestions',new yt(_0x39cb93,_0xf33c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2b37b7=_0x39cb93['plugins']['get'](_0x3f08e8);this['listenTo'](_0x2b37b7,'addComment',(_0x31f2d2,{threadId:_0x1fdeec})=>{const _0x1770c7=this['_suggestions']['get'](_0x1fdeec);_0x1770c7&&_0x1770c7['commentThread']&&0x1===_0x1770c7['commentThread']['length']&&this['_updateSuggestionData'](_0x1fdeec,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2b37b7,'removeComment',(_0x5aedb,{threadId:_0xb4a53d})=>{const _0x15c050=this['_suggestions']['get'](_0xb4a53d);_0x15c050&&_0x15c050['commentThread']&&!_0x15c050['commentThread']['length']&&this['_updateSuggestionData'](_0xb4a53d,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x59ac5a){const _0xe2984f='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x54f542=0x79410,_0x1b1f96={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x45d791(_0x951b3a){const _0x1fa131=new window['Promise'](_0x574a32=>{_0x951b3a['once']('ready',_0x574a32);}),_0x1343c2=window['Date']['now'](),_0x4d98da=_0x951b3a['config']['get']('licenseKey');async function _0x32b5c7(){let _0x445ba5,_0x57ec5c=null,_0x1b52ce=null;try{return'GPL'==_0x4d98da?'NotAllowed':(_0x445ba5=_0x21f44f(),_0x445ba5?(_0x445ba5['usageEndpoint']&&(_0x1b52ce=_0x143997(_0x445ba5['usageEndpoint'],_0x445ba5['jti'])),await _0x14777d()?_0x42a0b4()?_0x9bd51a()?'Expired':_0x2f54da()?('evaluation'==_0x445ba5['licenseType']&&(_0x57ec5c=_0xf6366d('EvaluationLimit')),await _0x2a0d4b()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x9bd51a(){const _0x4d7e88=['evaluation','trial']['includes'](_0x445ba5['licenseType'])?_0x1343c2/0x3e8:0xe10*_0x54f542;return _0x445ba5['exp']<_0x4d7e88;}function _0x42a0b4(){const _0x1cb82e=_0x445ba5['features'];if(!_0x1cb82e)return!0x1;if(_0x1cb82e['includes']('*'))return!0x0;if(_0x1cb82e['includes']('TC'))return!0x0;if(_0x1cb82e['includes']('RTC')){if(_0x16a70c())return!0x0;if(_0x5ee5d8()||_0x58b05a())return!0x0;}return!0x1;}function _0x2f54da(){const _0x137576=_0x445ba5['licensedHosts'];if(!_0x137576||0x0==_0x137576['length'])return!0x0;const {hostname:_0x438b86}=new URL(window['location']['href']);if(_0x137576['includes'](_0x438b86))return!0x0;const _0x49ab90=_0x438b86['split']('.');return _0x137576['filter'](_0x39a108=>_0x39a108['includes']('*'))['map'](_0x180caf=>_0x180caf['split']('.'))['filter'](_0x5521e8=>_0x5521e8['length']<=_0x49ab90['length'])['map'](_0x42ef38=>Array(_0x49ab90['length']-_0x42ef38['length'])['fill']('*'===_0x42ef38[0x0]?'*':'')['concat'](_0x42ef38))['some'](_0x1e1e19=>_0x49ab90['every']((_0x4238f3,_0x31c3e7)=>_0x1e1e19[_0x31c3e7]===_0x4238f3||'*'===_0x1e1e19[_0x31c3e7]));}function _0x2a0d4b(){return _0x57ec5c&&_0x1b52ce?new window['Promise']((_0x58ce95,_0x1db0fc)=>{_0x57ec5c['then'](_0x58ce95,_0x1db0fc),_0x1b52ce['then'](_0x4b908c=>{'Valid'!=_0x4b908c&&_0x58ce95(_0x4b908c);},_0x1db0fc);}):_0x57ec5c||_0x1b52ce||'Valid';}}function _0x143997(_0x6b54ef,_0x40d05){return new window['Promise'](_0x5af9e4=>{if(_0xb08925())return _0x5af9e4('Valid');_0x39ce35(),_0x951b3a['decorate']('_sendUsageRequest');let _0x13e677=!0x1;const _0xa33677=_0x4aa562();function _0x3a5fb9(_0x1b1190){return!!_0x1b1190&&('object'==typeof _0x1b1190||'function'==typeof _0x1b1190)&&'function'==typeof _0x1b1190['then']&&'function'==typeof _0x1b1190['catch'];}function _0x37cd49(_0x4c75a1){_0x3a8409(_0x4c75a1)['then'](_0x371d59=>_0x371d59&&'ok'==_0x371d59['status']?_0xf450b2(_0x1b755d(_0xa33677+_0x40d05))!=_0x371d59['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x3506c4=>(_0x20710a(),_0x3506c4),()=>{const _0x472de8=_0x2f213f();return null==_0x472de8?(_0x20710a(),'Valid'):_0x1343c2-_0x472de8>0x240c8400?'UsageLimit':'Valid';})['then'](_0x5af9e4)['catch'](()=>{_0x5af9e4('UsageLimit');});const _0x298ea6=0x36ee80;function _0x20710a(){const _0x501886='llct-'+_0xf450b2(_0x1b755d(_0x6b54ef)),_0x18e6f9=_0x7625a5(_0xf450b2(window['Math']['ceil'](_0x1343c2/_0x298ea6)));window['localStorage']['setItem'](_0x501886,_0x18e6f9);}function _0x2f213f(){const _0xe1c1f3='llct-'+_0xf450b2(_0x1b755d(_0x6b54ef)),_0x38ad89=window['localStorage']['getItem'](_0xe1c1f3);return _0x38ad89?window['parseInt'](_0x7625a5(_0x38ad89),0x10)*_0x298ea6:null;}function _0x3a8409(_0x2e5bcf){return new window['Promise']((_0x30eee1,_0x568d88)=>{_0x2e5bcf['then'](_0x30eee1,_0x568d88),window['setTimeout'](_0x568d88,0x1d4c0);});}}_0x951b3a['on']('_sendUsageRequest',(_0x288921,_0x45ca9d)=>{if(_0x45ca9d[0x0]!=_0x6b54ef)return _0x5af9e4('UsageLimit');_0x45ca9d[0x1]={..._0x45ca9d[0x1],'requestId':_0xa33677};},{'priority':'high'}),_0x951b3a['on']('_sendUsageRequest',_0x10b96a=>{_0x3a5fb9(_0x10b96a['return'])&&(_0x13e677=!0x0,_0x37cd49(_0x10b96a['return']));},{'priority':'low'}),_0x1fa131['then'](()=>{_0x13e677||_0x5af9e4('UsageLimit');});});function _0xb08925(){return'auto'==_0x951b3a['editing']['view']['_overlayModeHint'];}function _0x39ce35(){_0x951b3a['editing']['view']['_overlayModeHint']='auto';}}function _0xf6366d(_0x48c814){const _0x2aad8a=[new window['Promise'](_0x15a6ff=>setTimeout(_0x15a6ff,0x93ecc)),_0x1fa131['then'](()=>new window['Promise'](_0x2f62db=>{let _0x27cee1=0x0;_0x951b3a['model']['on']('applyOperation',(_0x23707a,_0x2d579c)=>{_0x2d579c[0x0]['isDocumentOperation']&&_0x27cee1++,0x5e8==_0x27cee1&&(_0x2f62db(),_0x23707a['off']());});}))];return window['Promise']['race'](_0x2aad8a)['then'](()=>_0x48c814);}async function _0x441d6c(){await _0x1fa131,_0x951b3a['model']['change']=_0x13599f,_0x951b3a['model']['enqueueChange']=_0x13599f,_0x951b3a['enableReadOnlyMode']('model');}function _0x16a70c(){return _0x439243('WebSocketGateway')&&'connected'==_0x565c8a('WebSocketGateway')['state'];}function _0x5ee5d8(){return _0x439243('RevisionViewerIntegration');}function _0x58b05a(){return _0x439243('TrackChangesDataGetter');}function _0x419a7a(_0x498114){const _0x2243e=_0x32ec3e();_0x951b3a[_0x2243e]='trackChangesLicenseKey'+_0x498114,'Valid'!=_0x498114&&_0x441d6c();}function _0x32ec3e(){const _0x1f3422=window['String'](window['performance']['now']())['replace']('.','');let _0x2c896c='U';for(let _0x5286c4=0x0;_0x5286c4<_0x1f3422['length'];_0x5286c4+=0x2){let _0x175438=window['parseInt'](_0x1f3422['substring'](_0x5286c4,_0x5286c4+0x2));_0x175438>=0x3e&&(_0x175438-=0x3e),_0x2c896c+=_0xe2984f[_0x175438];}return _0x2c896c;}function _0x21f44f(){const _0x4cf157=_0x4d98da['split']('.');if(0x3!=_0x4cf157['length'])return null;return _0x820111(_0x4cf157[0x1]);function _0x820111(_0x4063de){const _0x512d30=_0xc0167e(_0x4063de);return _0x512d30&&_0x5375ac()?_0x512d30:null;function _0x5375ac(){const _0x3d170e=_0x512d30['jti'],_0x4b96e7=window['parseInt'](_0x3d170e['substring'](_0x3d170e['length']-0x8),0x10),_0x5348b1={..._0x512d30,'jti':_0x3d170e['substring'](0x0,_0x3d170e['length']-0x8)};return delete _0x5348b1['vc'],_0x1b755d(_0x5348b1)==_0x4b96e7;}}}async function _0x14777d(){let _0x307e0a=!0x0;try{const [_0x5b7304,_0x3db065,_0x17eada]=_0x4d98da['split']('.');return _0x228cd8(_0x5b7304),await _0x1bfe6e(_0x5b7304,_0x3db065,_0x17eada),_0x307e0a;}catch{return!0x1;}function _0x228cd8(_0x1ae06f){const _0x48e5c3=_0xc0167e(_0x1ae06f);_0x48e5c3&&'ES256'==_0x48e5c3['alg']||(_0x307e0a=!0x1);}async function _0x1bfe6e(_0x3da1eb,_0x5f2336,_0x4864cd){const _0x11bcc4=window['Uint8Array']['from'](_0x565b06(_0x4864cd),_0x39d21d=>_0x39d21d['charCodeAt'](0x0)),_0x54ce20=new window['TextEncoder']()['encode'](_0x3da1eb+'.'+_0x5f2336),_0xb41af=window['crypto']['subtle'];if(!_0xb41af)return;const _0x2cbaae=await _0xb41af['importKey']('jwk',_0x1b1f96,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0xb41af['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x2cbaae,_0x11bcc4,_0x54ce20)||(_0x307e0a=!0x1);}}function _0xc0167e(_0x566df3){return _0x566df3['startsWith']('ey')?JSON['parse'](_0x565b06(_0x566df3)):null;}function _0x565b06(_0x343c48){return window['atob'](_0x343c48['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1b755d(_0x980766){let _0x1e3900=0x1505;function _0x224958(_0x47a73d){for(let _0xc553c5=0x0;_0xc553c5<_0x47a73d['length'];_0xc553c5++){const _0x53b0d9=_0x47a73d['charCodeAt'](_0xc553c5);_0x1e3900=(_0x1e3900<<0x5)+_0x1e3900+_0x53b0d9,_0x1e3900&=_0x1e3900;}}function _0x16bcd3(_0x139844){Array['isArray'](_0x139844)?_0x139844['forEach'](_0x16bcd3):_0x139844&&'object'==typeof _0x139844?Object['entries'](_0x139844)['sort']()['forEach'](([_0x5c3316,_0x1393a8])=>{_0x224958(_0x5c3316),_0x16bcd3(_0x1393a8);}):_0x224958(window['String'](_0x139844));}return _0x16bcd3(_0x980766),_0x1e3900>>>0x0;}function _0xf450b2(_0x52a6d0){return _0x52a6d0['toString'](0x10)['padStart'](0x8,'0');}function _0x7625a5(_0x39d57c){return _0x39d57c['split']('')['reverse']()['join']('');}function _0x439243(_0x16b770){return _0x951b3a['plugins']['has'](_0x16b770);}function _0x565c8a(_0x4c703f){return _0x951b3a['plugins']['get'](_0x4c703f);}function _0x13599f(){}_0x419a7a(await _0x32b5c7());}_0x45d791(_0x59ac5a['editor']);}(this);}set adapter(_0x26f48b){if(this['_adapter'])throw new _0x2faccb('track-changes-adapter-already-set',this);this['_adapter']=_0x26f48b;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x57cce5=!0x1,toJSON:_0x4109ac=!0x1}={}){const _0x377314=[];for(const _0x2b72d6 of this['_suggestions']['values']())_0x57cce5&&!_0x2b72d6['isInContent']||_0x377314['push'](_0x2b72d6);return _0x4109ac?_0x377314['map'](_0x3fe75c=>_0x3fe75c['toJSON']()):_0x377314;}getSuggestion(_0xcebbcc){const _0x30bd1c=this['_suggestions']['get'](_0xcebbcc);if(!_0x30bd1c)throw new _0x2faccb('track-changes-suggestion-not-found',this);return _0x30bd1c;}hasSuggestion(_0x41f524){return this['_suggestions']['has'](_0x41f524);}addSuggestionData(_0xc926ed){const {authorId:_0x6c86cf,id:_0x508f5b,originalSuggestionId:_0xf9edfe,attributes:_0x39e6a5}=_0xc926ed,[_0x3336d9,_0x8bb3ab]=_0xc926ed['type']['split'](':'),_0x3a8234=this['_suggestions']['get'](_0x508f5b)||this['_createSuggestion'](_0x3336d9,_0x8bb3ab,_0x508f5b,_0x6c86cf,_0x39e6a5,_0xf9edfe);if(this['_addThreadToSuggestion'](_0x3a8234),this['_checkSuggestionCorrectness'](_0x3a8234,_0x3336d9,_0x8bb3ab||null,_0x6c86cf),_0x3a8234['createdAt']=_0xc926ed['createdAt'],_0x3a8234['_isDataLoaded']=!0x0,_0x39e6a5&&_0x39e6a5['@external']){const _0x26a635=_0x39e6a5['@external'],_0x32d668=this['_getExternalAuthor'](_0x26a635['authorName']);_0x3a8234['authoredAt']=_0x26a635['createdAt'],_0x3a8234['author']=_0x32d668;}else _0x3a8234['authoredAt']=_0xc926ed['createdAt'];switch(_0xc926ed['data']&&(_0x3a8234['data']=_0xc926ed['data']),_0xc926ed['attributes']&&(_0x3a8234['attributes']=_0xc926ed['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3a8234['_saved']=!0x0),this['_suggestionState']['get'](_0x3a8234)){case'notReady':this['_suggestionState']['set'](_0x3a8234,'dataReady');break;case'markerReady':_0x3a8234['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3a8234])),this['_refreshSuggestionsChain'](new Set([_0x3a8234])),this['_suggestionState']['set'](_0x3a8234,'ready'),this['fire']('suggestionLoaded',_0x3a8234)):this['_suggestionState']['set'](_0x3a8234,'removed');}return _0x3a8234;}acceptSuggestion(_0x1b9e99){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x465ee9 of _0x1b9e99['getAllAdjacentSuggestions']())_0x465ee9['accept']();});});}discardSuggestion(_0x24a482){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2219d4 of _0x24a482['getAllAdjacentSuggestions']())_0x2219d4['discard']();});});}['enableCommand'](_0x181489,_0xe54a9b){const _0xf0bc9f=this['editor']['commands']['get'](_0x181489);if(!_0xf0bc9f)throw new _0x2faccb('track-changes-command-not-found',this,{'commandName':_0x181489});if(this['_enabledCommands']['has'](_0xf0bc9f))throw new _0x2faccb('track-changes-enable-command-twice',this,{'commandName':_0x181489});this['_enabledCommands']['add'](_0xf0bc9f),_0xe54a9b&&_0xf0bc9f['on']('execute',(_0x4aa30d,_0x61ebe7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x61ebe7['length']>0x0&&_0x61ebe7[_0x61ebe7['length']-0x1]&&_0x61ebe7[_0x61ebe7['length']-0x1]['forceDefaultExecution']?_0x61ebe7['pop']():(_0x4aa30d['return']=_0xe54a9b((..._0x1e5c3d)=>_0xf0bc9f['execute'](..._0x1e5c3d,{'forceDefaultExecution':!0x0}),..._0x61ebe7),_0x4aa30d['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x349fdd){let _0x21e6cd,_0xe8bb1f;const _0x30c6a7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x21e6cd=_0x349fdd();}catch(_0x3cc775){_0xe8bb1f=_0x3cc775;}return _0x30c6a7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xe8bb1f&&_0x2faccb['rethrowUnexpectedError'](_0xe8bb1f,this),_0x21e6cd;}markInsertion(_0x44a9ba,_0x356265=null,_0x228265={}){if(_0x44a9ba['isCollapsed'])return null;const _0x405afe=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x228265['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xafb205,meta:_0x1ef398}of this['_findSuggestions'](_0x44a9ba,'insertion'))if(_0x1ef398['isOwn']){if(!_0x1ef398['isNextTo']){if(_0x1ef398['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0xafb205,_0x228265))continue;return _0xafb205;}if(pn(_0xafb205,_0x228265))return _0xafb205;this['_breakSuggestionMarker'](_0xafb205,_0x44a9ba['start'],_0x44a9ba['end']);break;}if(_0x356265==_0xafb205['subType']&&pn(_0xafb205,_0x228265)){const _0x18e39f=_0xafb205['getFirstRange']();return _0x18e39f['start']['isEqual'](_0x44a9ba['end'])?this['_setSuggestionRange'](_0xafb205,this['_model']['createRange'](_0x44a9ba['start'],_0x18e39f['end'])):this['_setSuggestionRange'](_0xafb205,this['_model']['createRange'](_0x18e39f['start'],_0x44a9ba['end'])),_0xafb205;}}const _0x2df163=_0x4aa562(),_0x4d88ab=_0x405afe['id'],_0x166f89=_0x356265?'insertion:'+_0x356265:'insertion',_0xc7d19c=this['_setSuggestionData']({'id':_0x2df163,'type':_0x166f89,'createdAt':new Date(),'authorId':_0x4d88ab,'attributes':_0x228265});return this['_addSuggestionMarker'](_0x166f89,_0x2df163,_0x4d88ab,_0x44a9ba),_0xc7d19c;}markMultiRangeInsertion(_0x1d9257,_0x1962ca='multi',_0x27a0b1={}){const _0x49d8ab=this['editor']['plugins']['get']('Users')['me'],_0xa1d85a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1962ca,'join');this['_trackingSessionId']&&(_0x27a0b1['trackingSessionId']=this['_trackingSessionId']);for(const _0x31a36f of this['getSuggestions']())if(_0x31a36f['author']['id']==_0x49d8ab['id']&&'insertion'==_0x31a36f['type']&&_0x31a36f['subType']==_0x1962ca&&pn(_0x31a36f,_0x27a0b1)&&(_0xa1d85a(_0x31a36f['getRanges'](),_0x1d9257)||_0xa1d85a(_0x1d9257,_0x31a36f['getRanges']()))){for(const _0x1da475 of _0x1d9257)_0x31a36f['addRange'](_0x1da475);return _0x31a36f;}for(const {suggestion:_0x3caefb,meta:_0x542ddf}of this['_findSuggestions'](_0x1d9257,'insertion')){if(!_0x542ddf['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x542ddf['containsRangeInObject'])continue;if(!pn(_0x3caefb,_0x27a0b1))continue;let _0x5a1d8d=!0x0;for(const _0x23def2 of _0x3caefb['getRanges']())for(const _0x5314e of _0x1d9257)if(!_0x23def2['containsRange'](_0x5314e)){_0x5a1d8d=!0x1;break;}if(_0x5a1d8d)return _0x3caefb;}const _0xf1609f=_0x4aa562(),_0x1c2e54=_0x49d8ab['id'],_0x3e7ce2='insertion:'+_0x1962ca,_0x5213e4=this['_setSuggestionData']({'id':_0xf1609f,'type':_0x3e7ce2,'createdAt':new Date(),'authorId':_0x1c2e54,'attributes':_0x27a0b1});for(const _0x4909e8 of _0x1d9257)this['_addSuggestionMarker'](_0x3e7ce2,_0xf1609f,_0x1c2e54,_0x4909e8,St['getMultiRangeId']());return _0x5213e4;}markInlineFormat(_0x109322,_0x19ec06,_0x178ba6=null,_0x581a3f={}){if(_0x178ba6=_0x178ba6||dn(_0x19ec06),_0x109322['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x581a3f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x26ff57=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x178ba6,'accept');return this['forceDefaultExecution'](()=>_0x26ff57([_0x109322],_0x19ec06,_0x581a3f)),null;}const _0x162b55=this['editor']['plugins']['get']('Users')['me'],_0x5c7844=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x106201,meta:_0x2620f2}of this['_findSuggestions'](_0x109322,'insertion'))_0x2620f2['isOwn']&&!_0x2620f2['isInsideObject']&&_0x5c7844['push'](..._0x106201['getRanges']());}const _0x183e95=function(_0x22693e,_0x22b09c){const _0x151d4f=[];for(const _0x4ae66e of _0x22b09c){const _0x28f8e6=_0x22693e['getIntersection'](_0x4ae66e);_0x28f8e6&&_0x151d4f['push'](_0x28f8e6);}return _0x151d4f;}(_0x109322,_0x5c7844),_0x253a2f=function(_0x10afaf,_0x161419){const _0xc3eb45=[_0x10afaf];for(const _0x41c975 of _0x161419){let _0x29640e=0x0;for(;_0x29640e<_0xc3eb45['length'];){const _0x3313ef=_0xc3eb45[_0x29640e]['getDifference'](_0x41c975);_0xc3eb45['splice'](_0x29640e,0x1,..._0x3313ef),_0x29640e+=_0x3313ef['length'];}}return _0xc3eb45;}(_0x109322,_0x5c7844);_0x183e95['length']&&this['_model']['change'](()=>{for(const _0x4ea74f of _0x183e95){const _0x47cf7e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x178ba6,'accept');this['forceDefaultExecution'](()=>_0x47cf7e([_0x4ea74f],_0x19ec06,_0x581a3f));}});for(const _0x1b7ab6 of _0x253a2f){let _0x318a0d=null,_0x3ad7e3=_0x1b7ab6['start'],_0x29a240=_0x1b7ab6['end'];for(const {suggestion:_0x573c62,meta:_0x4777fa}of this['_findSuggestions'](_0x1b7ab6,'formatInline')){if(!_0x4777fa['isOwn'])continue;if(_0x573c62['subType']!=_0x178ba6)continue;if(!pn(_0x573c62,_0x581a3f))continue;const _0x3da8b1=_0x573c62['getFirstRange']();if(_0x3da8b1['containsRange'](_0x1b7ab6,!0x0))return null;_0x3ad7e3=_0x3ad7e3['isBefore'](_0x3da8b1['start'])?_0x3ad7e3:_0x3da8b1['start'],_0x29a240=_0x29a240['isAfter'](_0x3da8b1['end'])?_0x29a240:_0x3da8b1['end'],_0x318a0d?_0x3da8b1['start']['isBefore'](_0x318a0d['getFirstRange']()['start'])?(_0x318a0d['removeMarkers'](),_0x318a0d=_0x573c62):_0x573c62['removeMarkers']():_0x318a0d=_0x573c62;}const _0x52a552=this['_model']['createRange'](_0x3ad7e3,_0x29a240);if(_0x318a0d)this['_setSuggestionRange'](_0x318a0d,_0x52a552);else{const _0x43a09d=_0x4aa562(),_0x4a2b94=_0x162b55['id'];this['_setSuggestionData']({'id':_0x43a09d,'type':'formatInline:'+_0x178ba6,'data':_0x19ec06,'createdAt':new Date(),'authorId':_0x4a2b94,'attributes':_0x581a3f}),this['_addSuggestionMarker']('formatInline:'+_0x178ba6,_0x43a09d,_0x4a2b94,_0x52a552);}}return null;}markBlockFormat(_0x512169,_0x47fcf8,_0x117f93=[],_0x5781ba=null,_0x4b3bdc={}){_0x47fcf8['formatGroupId']||(_0x47fcf8['formatGroupId']=_0x47fcf8['commandName']),_0x47fcf8['multipleBlocks']=_0x512169['is']('range'),_0x5781ba=_0x5781ba||dn(_0x47fcf8);const _0x5cd121=_0x117f93['map'](_0x48cf83=>En(_0x48cf83,this['_model'])),_0x3820d7=_0x512169['is']('range')?_0x512169:En(_0x512169,this['_model']);if(this['_trackingSessionId']&&(_0x4b3bdc['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x30a25b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5781ba,'accept');return this['forceDefaultExecution'](()=>_0x30a25b([_0x3820d7],_0x47fcf8,_0x4b3bdc)),null;}_0x5cd121['push'](_0x3820d7);let _0x2599b9=!0x0;for(const _0x56e5e3 of _0x5cd121)if(!this['_rangeIsInLocalUserInsertion'](_0x56e5e3)){_0x2599b9=!0x1;break;}if(_0x2599b9&&'always'!==this['_trackFormatChanges']){const _0x3dc640=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5781ba,'accept');return this['forceDefaultExecution'](()=>_0x3dc640([_0x3820d7],_0x47fcf8,_0x4b3bdc)),null;}let _0x1db289=null,_0x251ea9=_0x3820d7['start'],_0x4ff0d0=_0x3820d7['end'];for(const {suggestion:_0x34ea7d,meta:_0x418f7e}of this['_findSuggestions'](_0x3820d7,'formatBlock')){if(!_0x418f7e['isOwn'])continue;if(_0x418f7e['isNextTo']||_0x418f7e['containsRangeInObject']||_0x418f7e['isInsideObject'])continue;if(_0x34ea7d['data']['formatGroupId']!=_0x47fcf8['formatGroupId'])continue;if(!pn(_0x34ea7d,_0x4b3bdc))continue;const _0x5a4053=_0x34ea7d['getFirstRange']();if(_0x34ea7d['subType']==_0x5781ba){if(_0x5a4053['containsRange'](_0x3820d7,!0x0))return null;_0x251ea9=_0x251ea9['isBefore'](_0x5a4053['start'])?_0x251ea9:_0x5a4053['start'],_0x4ff0d0=_0x4ff0d0['isAfter'](_0x5a4053['end'])?_0x4ff0d0:_0x5a4053['end'],_0x1db289?_0x5a4053['start']['isBefore'](_0x1db289['getFirstRange']()['start'])?(_0x1db289['removeMarkers'](),_0x1db289=_0x34ea7d):_0x34ea7d['removeMarkers']():_0x1db289=_0x34ea7d;}else{const _0x38cf49=_0x3820d7['getIntersection'](_0x5a4053);this['_cutOutSuggestionMarker'](_0x34ea7d,_0x38cf49);}}const _0x1d0112=this['editor']['plugins']['get']('Users')['me'],_0x5f1443=_0x4aa562(),_0x371f8e=_0x1d0112['id'];if(_0x1db289)return this['_setSuggestionRange'](_0x1db289,this['_model']['createRange'](_0x251ea9,_0x4ff0d0)),_0x1db289;{const _0x25cc73=this['_setSuggestionData']({'id':_0x5f1443,'type':'formatBlock:'+_0x5781ba,'data':_0x47fcf8,'createdAt':new Date(),'authorId':_0x371f8e,'attributes':_0x4b3bdc});return this['_addSuggestionMarker']('formatBlock:'+_0x5781ba,_0x5f1443,_0x371f8e,this['_model']['createRange'](_0x251ea9,_0x4ff0d0)),_0x25cc73;}}markMultiRangeBlockFormat(_0x5df4e3,_0x2e86fa,_0x253e80=[],_0x5c6bbf=null,_0xe20b05={}){_0x2e86fa['formatGroupId']||(_0x2e86fa['formatGroupId']=_0x2e86fa['commandName']);const _0x2b188a=_0x5df4e3[0x0];_0x2e86fa['multipleBlocks']=_0x2b188a['is']('range'),_0x5c6bbf=_0x5c6bbf||dn(_0x2e86fa);const _0x3c10e2=_0x253e80['map'](_0x2a4ebb=>En(_0x2a4ebb,this['_model'])),_0x58135d=_0x2b188a['is']('range')?_0x5df4e3:_0x5df4e3['map'](_0x214838=>En(_0x214838,this['_model']));if(this['_trackingSessionId']&&(_0xe20b05['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x37024d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c6bbf,'accept');return this['forceDefaultExecution'](()=>_0x37024d(_0x58135d,_0x2e86fa,_0xe20b05)),null;}_0x3c10e2['push'](..._0x58135d);let _0x1fdbf7=!0x0;for(const _0x246e38 of _0x3c10e2)if(!this['_rangeIsInLocalUserInsertion'](_0x246e38)){_0x1fdbf7=!0x1;break;}if(_0x1fdbf7&&'always'!==this['_trackFormatChanges']){const _0x3d224e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c6bbf,'accept');return this['forceDefaultExecution'](()=>_0x3d224e(_0x58135d,_0x2e86fa,_0xe20b05)),null;}const _0x1e1765=this['editor']['plugins']['get']('Users')['me'];for(const _0x12d4df of this['getSuggestions']()){const _0xe389a9=_0x12d4df['data'];if(_0x12d4df['author']['id']!=_0x1e1765['id'])continue;if('formatBlock'!=_0x12d4df['type']||_0xe389a9['formatGroupId']!=_0x2e86fa['formatGroupId'])continue;if(!pn(_0x12d4df,_0xe20b05))continue;const _0x4e339e=_0x12d4df['subType']==_0x5c6bbf;for(let _0x2b1601=0x0;_0x2b1601<_0x58135d['length'];_0x2b1601++){const _0x3b29e1=_0x58135d[_0x2b1601];for(const _0xccfbfa of _0x12d4df['getMarkers']()){const _0x1229a8=_0xccfbfa['getRange']();if(_0x3b29e1['isEqual'](_0x1229a8)){_0x4e339e?(_0x58135d['splice'](_0x2b1601,0x1),_0x2b1601--):_0x12d4df['removeMarker'](_0xccfbfa['name']);break;}}}}if(0x0==_0x58135d['length'])return null;const _0x4290f3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c6bbf,'join');for(const _0x394c7d of this['getSuggestions']()){const _0xfb65f2=_0x394c7d['data'];if(_0x394c7d['author']['id']==_0x1e1765['id']&&('formatBlock'==_0x394c7d['type']&&_0xfb65f2['formatGroupId']==_0x2e86fa['formatGroupId']&&_0x394c7d['subType']==_0x5c6bbf&&pn(_0x394c7d,_0xe20b05)&&(_0x4290f3(_0x394c7d['getRanges'](),_0x58135d)||_0x4290f3(_0x58135d,_0x394c7d['getRanges']())))){for(const _0x780853 of _0x58135d)_0x394c7d['addRange'](_0x780853);return _0x394c7d;}}const _0x1382c1=_0x4aa562(),_0x169a27=_0x1e1765['id'],_0x39f2e6='formatBlock:'+_0x5c6bbf,_0x17b722=this['_setSuggestionData']({'id':_0x1382c1,'type':_0x39f2e6,'data':_0x2e86fa,'createdAt':new Date(),'authorId':_0x169a27,'attributes':_0xe20b05});for(const _0x9f0e72 of _0x58135d)this['_addSuggestionMarker'](_0x39f2e6,_0x1382c1,_0x169a27,_0x9f0e72,St['getMultiRangeId']());return _0x17b722;}markDeletion(_0x1ea0b5,_0x4b59c5=null,_0x364148={}){if(_0x1ea0b5['isCollapsed'])return null;const _0x2aa999=this['editor']['plugins']['get']('Users')['me'],_0x5f0260=new rt(_0x1ea0b5['start'],_0x1ea0b5['end']);this['_trackingSessionId']&&(_0x364148['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x53ec58,meta:_0x5249e5}of this['_findSuggestions'](_0x5f0260,'insertion'))if(_0x5249e5['isOwn']&&!_0x5249e5['isNextTo']){if(_0x53ec58['isMultiRange']){const _0x374c8c=_0x53ec58['getRanges']()['filter'](_0x502f7e=>'$graveyard'!=_0x502f7e['root']['rootName']);if(_0x374c8c['every'](_0x1d3c3c=>_0x5f0260['containsRange'](_0x1d3c3c,!0x0))&&_0x53ec58['discard'](),_0x374c8c['some'](_0xa59165=>_0xa59165['containsRange'](_0x5f0260,!0x0))){const _0x5e0ba5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b59c5,'accept');return this['forceDefaultExecution'](()=>_0x5e0ba5([_0x5f0260],null,_0x364148)),null;}}else{const _0x2772c0=_0x5f0260['getIntersection'](_0x53ec58['getFirstRange']());null!==_0x2772c0&&_0x53ec58['_onDiscard']([_0x2772c0],null,_0x364148);}}if(_0x5f0260['detach'](),_0x5f0260['isCollapsed']||'$graveyard'==_0x5f0260['root']['rootName'])return null;let _0x50cf28=null,_0x20aa47=_0x5f0260['start'],_0x276918=_0x5f0260['end'];const _0x3778d6=this['_findSuggestions'](_0x5f0260,'deletion');for(const {suggestion:_0x58c9c9,meta:_0x829b49}of _0x3778d6){const _0x4ba4b4=this['_model']['createRange'](_0x20aa47,_0x276918);if(_0x829b49['isOwn']&&(this['_mergeNestedSuggestions']||!_0x829b49['containsRangeInObject']&&!_0x829b49['isInsideObject'])){if(_0x58c9c9['isMultiRange']){if(!pn(_0x58c9c9,_0x364148))continue;let _0x9525a3=!0x0;for(const _0x396471 of _0x58c9c9['getRanges']()){if(_0x396471['containsRange'](_0x4ba4b4,!0x0))return _0x58c9c9;_0x4ba4b4['containsRange'](_0x396471)||(_0x9525a3=!0x1);}_0x9525a3&&_0x58c9c9['discard']();}else{const _0x39896e=_0x58c9c9['getFirstRange']();if(_0x39896e['containsRange'](_0x4ba4b4,!0x0))return _0x58c9c9;if(!pn(_0x58c9c9,_0x364148)){_0x4ba4b4['containsRange'](_0x39896e)?_0x58c9c9['removeMarkers']():_0x39896e['containsPosition'](_0x20aa47)?_0x20aa47=_0x39896e['end']:_0x39896e['containsPosition'](_0x276918)&&(_0x276918=_0x39896e['start']);continue;}_0x20aa47=_0x20aa47['isBefore'](_0x39896e['start'])?_0x20aa47:_0x39896e['start'],_0x276918=_0x276918['isAfter'](_0x39896e['end'])?_0x276918:_0x39896e['end'],_0x364148=Object['assign']({},_0x58c9c9['attributes']),_0x50cf28?_0x39896e['start']['isBefore'](_0x50cf28['getFirstRange']()['start'])?(_0x50cf28['removeMarkers'](),_0x50cf28=_0x58c9c9):_0x58c9c9['removeMarkers']():_0x50cf28=_0x58c9c9;}}}if(_0x50cf28)return this['_setSuggestionRange'](_0x50cf28,this['_model']['createRange'](_0x20aa47,_0x276918)),_0x50cf28;{const _0x1824ec=_0x4aa562(),_0x2c256e=this['_model']['createRange'](_0x20aa47,_0x276918),_0x410b65=_0x2aa999['id'],_0xe86bd8=_0x4b59c5?'deletion:'+_0x4b59c5:'deletion',_0x1e4e65=this['_setSuggestionData']({'id':_0x1824ec,'type':_0xe86bd8,'createdAt':new Date(),'authorId':_0x410b65,'attributes':_0x364148});return this['_addSuggestionMarker'](_0xe86bd8,_0x1824ec,_0x410b65,_0x2c256e),_0x1e4e65;}}markMultiRangeDeletion(_0x5d1df7,_0x32cf65='multi',_0x4f43e6={}){const _0x4a4d2c=this['editor']['plugins']['get']('Users')['me'],_0xf881e=_0x5d1df7['map'](_0x41f727=>new rt(_0x41f727['start'],_0x41f727['end'])),_0x1acf4a=new Set();this['_trackingSessionId']&&(_0x4f43e6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2b01f7,meta:_0x426032}of this['_findSuggestions'](_0xf881e,'insertion'))_0x426032['isOwn']&&!_0x426032['isNextTo']&&_0x1acf4a['add'](_0x2b01f7);for(const _0x4f6de1 of _0x1acf4a)if(_0x4f6de1['isMultiRange']){const _0x43c7d9=_0x4f6de1['getRanges']();if(_0x4f6de1['attributes']&&_0x4f6de1['attributes']['skipNestingCheck']||_0x43c7d9['every'](_0x45e2dc=>_0xf881e['some'](_0x46325c=>_0x46325c['containsRange'](_0x45e2dc,!0x0)))&&_0x4f6de1['discard'](),_0xf881e['every'](_0x59d7d1=>_0x43c7d9['some'](_0x5e4403=>_0x5e4403['containsRange'](_0x59d7d1,!0x0)))){const _0x1ccdf0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x32cf65,'accept');return this['forceDefaultExecution'](()=>_0x1ccdf0(_0x5d1df7,null,_0x4f43e6)),null;}}else{const _0x5eb68e=_0x4f6de1['getFirstRange']();if(_0xf881e['some'](_0x3bba52=>_0x3bba52['containsRange'](_0x5eb68e,!0x0))&&_0x4f6de1['discard'](),_0xf881e['every'](_0x49730d=>_0x5eb68e['containsRange'](_0x49730d,!0x0))){const _0xa6a9d8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x32cf65,'accept');return this['forceDefaultExecution'](()=>_0xa6a9d8(_0xf881e,null,_0x4f43e6)),null;}}const _0x1ebc7b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x32cf65,'join');let _0x193178=null;for(const _0x18aa2d of this['getSuggestions']())if(_0x18aa2d['author']['id']==_0x4a4d2c['id']&&_0x18aa2d['isInContent']&&'deletion'==_0x18aa2d['type']&&_0x18aa2d['subType']==_0x32cf65&&pn(_0x18aa2d,_0x4f43e6)&&(_0x1ebc7b(_0x18aa2d['getRanges'](),_0xf881e)||_0x1ebc7b(_0xf881e,_0x18aa2d['getRanges']()))){if(_0x193178){if(_0x18aa2d['commentThread']&&_0x18aa2d['commentThread']['length'])continue;for(const _0x4a33c9 of _0x18aa2d['getRanges']())_0x193178['isIntersectingWithRange'](_0x4a33c9)||_0x193178['addRange'](_0x4a33c9);_0x18aa2d['removeMarkers']();}else{_0x193178=_0x18aa2d;for(const _0x173df7 of _0xf881e)_0x18aa2d['isIntersectingWithRange'](_0x173df7)||_0x18aa2d['addRange'](_0x173df7);}}if(_0x193178)return _0x193178;_0x1acf4a['clear']();for(const {suggestion:_0x3edfd9,meta:_0x26de06}of this['_findSuggestions'](_0xf881e,'deletion'))_0x26de06['isOwn']&&(this['_mergeNestedSuggestions']||!_0x26de06['containsRangeInObject']&&!_0x26de06['isInsideObject'])&&pn(_0x3edfd9,_0x4f43e6)&&_0x1acf4a['add'](_0x3edfd9);for(const _0xdfa0e0 of _0x1acf4a){const _0x267168=_0xdfa0e0['getRanges']();if((!_0x4f43e6||!_0x4f43e6['skipNestingCheck'])&&_0xf881e['every'](_0x58f972=>_0x267168['some'](_0x1cf70c=>_0x1cf70c['containsRange'](_0x58f972,!0x0))))return _0xdfa0e0;_0xdfa0e0['attributes']&&_0xdfa0e0['attributes']['skipNestingCheck']||_0x267168['every'](_0x206547=>_0xf881e['some'](_0x2759b9=>_0x2759b9['containsRange'](_0x206547,!0x0)))&&_0xdfa0e0['discard']();}const _0x4f27c2=_0x4aa562(),_0x3d7631=_0x4a4d2c['id'],_0x58ddf9='deletion:'+_0x32cf65,_0x5543d7=this['_setSuggestionData']({'id':_0x4f27c2,'type':_0x58ddf9,'createdAt':new Date(),'authorId':_0x3d7631,'attributes':_0x4f43e6});for(const _0x2248e3 of _0xf881e)_0x2248e3['detach'](),_0x2248e3['isCollapsed']||'$graveyard'==_0x2248e3['root']['rootName']||this['_addSuggestionMarker'](_0x58ddf9,_0x4f27c2,_0x3d7631,_0x2248e3,St['getMultiRangeId']());return _0x5543d7;}markAttributeChange(_0x281b8c,_0x51f188,_0x32bda2,_0x41a218,_0x4752ca){if(_0x281b8c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x26c18b=this['editor']['plugins']['get']('Users')['me']['id'],_0x507e01=Array['from'](this['_suggestions']['values']())['filter'](_0x328a5f=>'attribute'==_0x328a5f['type']&&_0x328a5f['data']['key']==_0x51f188&&_0x328a5f['isIntersectingWithRange'](_0x281b8c));if(this['_trackingSessionId']&&(_0x4752ca['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1cfca5=this['_findSuggestions'](_0x281b8c,'insertion')['filter'](({meta:_0x59c827})=>_0x59c827['isOwn']&&!_0x59c827['isInsideObject']&&!_0x59c827['isNextTo'])['map'](({suggestion:_0x21f8ff})=>_0x21f8ff);_0x507e01['unshift'](..._0x1cfca5);}const _0x78850b=new Map([[_0x281b8c,_0x32bda2]]);for(const _0x109a6e of _0x507e01){const _0x59aacb='attribute'==_0x109a6e['type']?_0x109a6e['data']['oldValue']:void 0x0,_0x3a2387=_0x109a6e['getFirstRange'](),_0x12442c=Array['from'](_0x78850b['keys']())['find'](_0x65079f=>_0x65079f['isIntersecting'](_0x3a2387));if(!_0x12442c)continue;const _0x3dd61a=_0x12442c['getDifference'](_0x3a2387);this['_suggestionsConversion']['isBlockAttribute'](_0x51f188)&&'insertion'==_0x109a6e['type']&&0x0!=_0x3dd61a['length']||(_0x78850b['delete'](_0x12442c),_0x3dd61a['forEach'](_0x3c5109=>{_0x78850b['set'](_0x3c5109,_0x32bda2);}),'insertion'!=_0x109a6e['type']&&_0x59aacb!=_0x41a218&&_0x78850b['set'](_0x12442c['getIntersection'](_0x3a2387),_0x59aacb));}const _0x296aa7=[];for(const [_0x25ac51,_0x45cd89]of _0x78850b){const _0x2351e7=_0x4aa562(),_0x4dd103={'key':_0x51f188,'oldValue':_0x45cd89,'newValue':_0x41a218};_0x51f188['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':_0x51f188});const _0x1fd0ed=('attribute:'+_0x51f188+'|'+dn({'newValue':_0x41a218}))['substring'](0x0,0x3c),_0x190d5c=this['_setSuggestionData']({'id':_0x2351e7,'type':_0x1fd0ed,'data':_0x4dd103,'createdAt':new Date(),'authorId':_0x26c18b,'attributes':_0x4752ca});_0x296aa7['push'](_0x190d5c),this['_addSuggestionMarker'](_0x1fd0ed,_0x2351e7,_0x26c18b,_0x25ac51);}return _0x296aa7;}enableDefaultAttributesIntegration(_0x1a8f7c){this['enableCommand'](_0x1a8f7c,(_0x5cdaf8,..._0x2438ee)=>{this['recordAttributeChanges'](()=>{_0x5cdaf8(..._0x2438ee);});});}startTrackingSession(_0x1a284a){return this['_trackingSessionId']=void 0x0!==_0x1a284a?_0x1a284a:_0x4aa562(),this['_trackingSessionId'];}_getAttributeKey(_0x4992cf){return'attribute'==_0x4992cf['type']?In(_0x4992cf['subType']):null;}_applyOperationsAsSuggestions(_0x582189){if(0x0==_0x582189['length'])return;const _0x217815=this['editor'],_0x56d54e=[],_0x2d95ba=_0x1b573e=>{const _0x5d9ad3=_0x1b573e['_aiSource'];return _0x5d9ad3?{'@ai':{'type':_0x5d9ad3}}:{};},_0x128703=(_0x304a5c,_0x31dbc0,_0x1765af)=>{for(let _0x282fdc=_0x31dbc0;_0x282fdc<_0x304a5c['operations']['length'];_0x282fdc++)_0x304a5c['operations'][_0x282fdc]['_aiSource']=_0x1765af;};_0x217815['model']['change'](_0x5e0850=>{for(let _0x2fb6ca=0x0;_0x2fb6ca<_0x582189['length'];_0x2fb6ca++){const _0x289433=_0x582189[_0x2fb6ca],_0x441f80=_0x289433['_aiSource'],_0x20f960=_0x5e0850['batch']['operations']['length'];if(_0x289433['baseVersion']=_0x217815['model']['document']['version'],_0x289433['isDocumentOperation']=!0x0,!_0x13baab(_0x289433)){if(rn(_0x289433)){const _0x5e5e6d=_0x3afe45(_0x289433['newRange'],_0x217815['model']);_0x56d54e['unshift']({'range':rt['fromRange'](_0x5e5e6d),'opAttributes':_0x2d95ba(_0x289433),'aiSource':_0x441f80});}else{switch(_0x289433['type']){case'rename':{const _0x322274=_0x289433['oldName'],_0x5d3884=_0x289433['newName'];if(_0x322274==_0x5d3884)break;_0x5e0850['batch']['addOperation'](_0x289433),_0x217815['model']['applyOperation'](_0x289433);const _0x512548='$elementName',_0x4b3be8=_0x289433['position'],_0x488bfb=_0x217815['model']['createRange'](_0x4b3be8,_0x217815['model']['createPositionAt'](_0x4b3be8['nodeAfter'],'end'));this['markAttributeChange'](_0x488bfb,_0x512548,_0x322274,_0x5d3884,{..._0x2d95ba(_0x289433),'groupId':_0x4aa562()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1cb569=_0x289433['oldValue'],_0xea58e=_0x289433['newValue'];if(_0x1cb569==_0xea58e)break;_0x5e0850['batch']['addOperation'](_0x289433),_0x217815['model']['applyOperation'](_0x289433);const _0x30d292=_0x289433['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x30d292))break;const _0x3240bd=_0x3afe45(_0x289433['range'],_0x217815['model']);this['markAttributeChange'](_0x3240bd,_0x30d292,_0x1cb569,_0xea58e,{..._0x2d95ba(_0x289433),'groupId':_0x4aa562()});break;}case'insert':{if(_0x5e0850['batch']['addOperation'](_0x289433),_0x217815['model']['applyOperation'](_0x289433),_0x582189[_0x2fb6ca+0x1]&&'move'==_0x582189[_0x2fb6ca+0x1]['type'])break;const _0x3965de=_0x289433['position'],_0x310960=_0x289433['howMany'],_0x1a5a5c=_0x3afe45(_0x217815['model']['createRange'](_0x3965de,_0x3965de['getShiftedBy'](_0x310960)),_0x217815['model']);this['markInsertion'](_0x1a5a5c,null,{..._0x2d95ba(_0x289433)});break;}case'split':{_0x5e0850['batch']['addOperation'](_0x289433),_0x217815['model']['applyOperation'](_0x289433);const _0x54f55d=_0x289433['splitPosition'],_0xece1bc=_0x289433['moveTargetPosition'],_0x4bfc0d=_0x217815['model']['createRange'](_0x54f55d,_0xece1bc);this['markInsertion'](_0x4bfc0d,null,{..._0x2d95ba(_0x289433)});break;}case'move':case'remove':_0x5e0850['batch']['addOperation'](_0x289433),_0x217815['model']['applyOperation'](_0x289433);}_0x441f80&&_0x128703(_0x5e0850['batch'],_0x20f960,_0x441f80);}}}for(const {range:_0x356595,opAttributes:_0x454446,aiSource:_0xc946af}of _0x56d54e){const _0x1cb916=_0x5e0850['batch']['operations']['length'];_0x356595['detach'](),this['markDeletion'](_0x356595,null,{..._0x454446}),_0xc946af&&_0x128703(_0x5e0850['batch'],_0x1cb916,_0xc946af);}});}_setSuggestionRange(_0x125651,_0x50ba62){const _0x41d0d0=_0x125651['getFirstMarker']();this['_model']['change'](_0xbfbca1=>{_0xbfbca1['updateMarker'](_0x41d0d0,{'range':_0x50ba62});});}_addThreadToSuggestion(_0x20fba9){const _0x10b963=_0x20fba9['id'],_0x1d74fc=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x10b963)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1d74fc,'threadId':_0x10b963,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x143f70=this['_commentsRepository']['getCommentThread'](_0x10b963);_0x143f70['unbind']('isRemovable'),_0x143f70['isRemovable']=!0x1,_0x20fba9['commentThread']=_0x143f70;}_checkSuggestionCorrectness(_0x17a273,_0x329eb8,_0x12434c,_0x46dc67){if(_0x17a273['type']!=_0x329eb8||_0x17a273['subType']!=_0x12434c||_0x17a273['creator']['id']!=_0x46dc67)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2faccb('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x1ff406,_0x3c1b39){const _0x16e596=_0x1ff406['getFirstRange']();if(_0x3c1b39['isEqual'](_0x16e596))_0x1ff406['removeMarkers']();else{if(_0x16e596['containsRange'](_0x3c1b39)){const _0x42cb0e=this['_model']['createPositionAt'](_0x3c1b39['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1ff406,this['_model']['createRange'](_0x16e596['start'],_0x42cb0e));const _0x5b6bf3=_0x4aa562(),_0x2c5eaa=_0x1ff406['creator']['id'],_0x4a15e6=_0x1ff406['type']+':'+_0x1ff406['subType'];this['_setSuggestionData']({'id':_0x5b6bf3,'type':_0x4a15e6,'createdAt':new Date(),'authorId':_0x2c5eaa,'data':_0x1ff406['data'],'attributes':_0x1ff406['attributes']});const _0x2b4680=this['_model']['createPositionAt'](_0x3c1b39['end']['parent'],'after'),_0x1da904=this['_model']['createRange'](_0x2b4680,_0x16e596['end']);this['_addSuggestionMarker'](_0x4a15e6,_0x5b6bf3,_0x2c5eaa,_0x1da904);}else{if(_0x16e596['containsPosition'](_0x3c1b39['start'])){const _0x5c64d7=this['_model']['createPositionAt'](_0x3c1b39['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1ff406,this['_model']['createRange'](_0x16e596['start'],_0x5c64d7));}else{const _0x53671d=this['_model']['createPositionAt'](_0x3c1b39['end']['parent'],'after');this['_setSuggestionRange'](_0x1ff406,this['_model']['createRange'](_0x53671d,_0x16e596['end']));}}}}_rangeIsInLocalUserInsertion(_0x58fcf9){for(const {suggestion:_0x2062b4,meta:_0x5eb10b}of this['_findSuggestions'](_0x58fcf9,'insertion')){if(!_0x5eb10b['isOwn'])continue;const _0x84d9b4=_0x2062b4['getRanges']();for(const _0x2b7a39 of _0x84d9b4)if(!_0x58fcf9['getDifference'](_0x2b7a39)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x44f9bf){return this['editor']['plugins']['get']('Users')['getUser'](_0x44f9bf);}_getExternalAuthor(_0x1c141d){const _0x2d23a0=this['editor']['plugins']['get']('Users'),_0x5b47ec=_0x43717f('external:'+_0x1c141d),_0x48071d=_0x2d23a0['getUser'](_0x5b47ec);return _0x48071d||_0x2d23a0['addUser']({'id':_0x5b47ec,'name':_0x1c141d});}_createSuggestion(_0x3ed8d6,_0x1015a3,_0x44359b,_0x40acf6,_0x22a07c,_0x1bd618){const _0x586d86=this['_getAuthorFromId'](_0x40acf6);if(!_0x586d86)throw new _0x2faccb('track-changes-user-not-found',this,{'authorId':_0x40acf6,'suggestionId':_0x44359b});const _0x8e6b9b=this['_suggestionFactory']['buildSuggestion'](_0x3ed8d6,_0x1015a3,_0x44359b,_0x586d86,_0x22a07c,_0xd3aaa9=>{this['_updateSuggestionData'](_0x44359b,{'attributes':_0xd3aaa9});const _0x2b2819=this['getSuggestion'](_0x44359b);this['_joinWithAdjacentSuggestions'](new Set([_0x2b2819])),this['_refreshSuggestionsChain'](new Set([_0x2b2819]));},_0x1bd618);return this['listenTo'](_0x8e6b9b,'accept',()=>{this['_updateSuggestionData'](_0x44359b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x8e6b9b,'discard',()=>{this['_updateSuggestionData'](_0x44359b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x44359b,_0x8e6b9b),this['_suggestionState']['set'](_0x8e6b9b,'notReady'),_0x8e6b9b;}_breakSuggestionMarker(_0x3b72a5,_0x1164aa,_0x21abfa){const _0x414d11=_0x3b72a5['getFirstRange'](),_0x27611e=_0x414d11['start'],_0x404796=_0x414d11['end'];this['_setSuggestionRange'](_0x3b72a5,this['_model']['createRange'](_0x27611e,_0x1164aa));const _0x5f1b52=_0x4aa562(),_0x5ab331=_0x3b72a5['creator']['id'],_0x31a8da=_0x3b72a5['type']+(_0x3b72a5['subType']?':'+_0x3b72a5['subType']:'');this['_setSuggestionData']({'id':_0x5f1b52,'type':_0x31a8da,'createdAt':new Date(),'authorId':_0x5ab331,'originalSuggestionId':_0x3b72a5['_originalSuggestionId']||_0x3b72a5['id'],'attributes':_0x3b72a5['attributes'],'data':_0x3b72a5['data']});const _0x239d2f=this['_getAttributeKey'](_0x3b72a5);('formatBlock'==_0x3b72a5['type']||_0x239d2f&&this['_suggestionsConversion']['isBlockAttribute'](_0x239d2f))&&(_0x21abfa=this['_model']['createPositionBefore'](_0x21abfa['parent'])),this['_addSuggestionMarker'](_0x31a8da,_0x5f1b52,_0x5ab331,this['_model']['createRange'](_0x21abfa,_0x404796));}_findSuggestions(_0xcecd2c,_0x5cc856=null){const _0x4e211f=[],_0xc74800=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xcecd2c)||(_0xcecd2c=[_0xcecd2c]);for(const _0x440e01 of this['getSuggestions']()){if(!_0x440e01['isInContent'])continue;if(_0x5cc856&&_0x440e01['type']!=_0x5cc856)continue;let _0x50dd53=!0x1;for(const _0x5c9ffb of _0x440e01['getRanges']()){for(const _0x38c0fb of _0xcecd2c){const _0x5d4412=_0x38c0fb['start']['isEqual'](_0x5c9ffb['end'])||_0x38c0fb['end']['isEqual'](_0x5c9ffb['start']);if(_0x5d4412||_0x38c0fb['getIntersection'](_0x5c9ffb)){const _0x19ddc7=_0x38c0fb['containsRange'](_0x5c9ffb)&&cn(this['_model']['schema'],_0x5c9ffb['start'],_0x38c0fb),_0x4749d0=_0x5c9ffb['containsRange'](_0x38c0fb)&&cn(this['_model']['schema'],_0x38c0fb['start'],_0x5c9ffb);_0x4e211f['push']({'suggestion':_0x440e01,'meta':{'isOwn':_0xc74800==_0x440e01['author'],'isNextTo':_0x5d4412,'isInsideObject':_0x19ddc7,'containsRangeInObject':_0x4749d0}}),_0x50dd53=!0x0;break;}}if(_0x50dd53)break;}}return _0x4e211f;}_addSuggestionMarker(_0x4655ab,_0x476d42,_0x242adf,_0x4564a6,_0x18b390){this['_model']['change'](_0x1e9248=>{let _0x4754c1='suggestion:'+_0x4655ab+':'+_0x476d42+':'+_0x242adf;_0x18b390&&(_0x4754c1=_0x4754c1+':'+_0x18b390),_0x1e9248['addMarker'](_0x4754c1,{'range':_0x4564a6,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x21b90e){const _0x507285=_0x21b90e['previous'],_0x53d30e=_0x21b90e['next'];_0x21b90e['previous']=null,_0x21b90e['next']=null,null!=_0x507285&&_0x507285['next']==_0x21b90e&&(_0x507285['next']=_0x53d30e),null!=_0x53d30e&&_0x53d30e['previous']==_0x21b90e&&(_0x53d30e['previous']=_0x507285),'ready'==this['_suggestionState']['get'](_0x21b90e)&&(this['_suggestionState']['set'](_0x21b90e,'removed'),this['fire']('suggestionUnloaded',_0x21b90e,_0x507285,_0x53d30e));}_setSuggestionData(_0x42d78a){const _0x58a6f4=_0x42d78a['id'],_0x66cff6=this['addSuggestionData'](_0x42d78a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x41d352=this['editor']['plugins']['get']('PendingActions'),_0x17cf52=_0x66cff6['hasComments'],_0x4a31f4=_0x66cff6['subType']?_0x66cff6['type']+':'+_0x66cff6['subType']:_0x66cff6['type'],_0x51e249=this['editor']['locale'],_0x125e1b=_0x41d352['add'](Mt(_0x51e249,'PENDING_ACTION_SUGGESTION')),_0x3e593e={'id':_0x58a6f4,'type':_0x4a31f4,'hasComments':_0x17cf52,'data':_0x42d78a['data']||null,'originalSuggestionId':_0x42d78a['originalSuggestionId']||null,'attributes':_0x66cff6['attributes']};this['_adapter']['addSuggestion'](_0x3e593e)['then'](_0x54d866=>{_0x66cff6['_saved']=!0x0,_0x41d352['remove'](_0x125e1b),_0x54d866&&_0x54d866['createdAt']&&(this['_suggestions']['get'](_0x58a6f4)['createdAt']=_0x54d866['createdAt']);})['catch'](_0x3ac508=>{throw _0x5fc841('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x66cff6['discard']();}),_0x66cff6['stopListening'](),this['_suggestions']['delete'](_0x66cff6['id']),this['_suggestionState']['delete'](_0x66cff6),_0x3ac508;});}return _0x66cff6;}_updateSuggestionData(_0x2dcd82,_0x539fba){const _0x5efd12=this['editor']['plugins']['get']('PendingActions'),_0x2cf28f=this['getSuggestion'](_0x2dcd82);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2cf28f['_saved']){const _0x4df292=_0x5efd12['add'](Mt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2dcd82,_0x539fba)['then'](()=>{_0x5efd12['remove'](_0x4df292);});}else _0x2cf28f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2dcd82,_0x539fba);});}}_getSuggestionData(_0x3a4155){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2faccb('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3a4155);}_handleNewSuggestionMarker(_0x5c2f3e){const {id:_0x34b2f3,type:_0x25f257,subType:_0x59bf94,authorId:_0x1d287a}=tt(_0x5c2f3e),_0x11b9bc=this['_suggestions']['get'](_0x34b2f3)||this['_createSuggestion'](_0x25f257,_0x59bf94,_0x34b2f3,_0x1d287a,{});switch(this['_checkSuggestionCorrectness'](_0x11b9bc,_0x25f257,_0x59bf94,_0x1d287a),this['_suggestionState']['get'](_0x11b9bc)){case'notReady':this['_getSuggestionData'](_0x34b2f3)['then'](_0x511dd2=>{let _0x5126f3=Promise['resolve']();_0x511dd2['hasComments']&&(_0x5126f3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x34b2f3})),_0x5126f3['then'](()=>{this['addSuggestionData'](_0x511dd2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x11b9bc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x34b2f3,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x11b9bc,'ready'),this['fire']('suggestionLoaded',_0x11b9bc);break;case'ready':this['fire']('suggestionChanged',_0x11b9bc);}return _0x11b9bc['addMarkerName'](_0x5c2f3e),_0x11b9bc;}_refreshSuggestionsChain(_0x337b31){const _0x57dc41=Array['from'](_0x337b31),_0x207e32=_0x57dc41['filter'](_0x79b7eb=>'attribute'==_0x79b7eb['type']);this['_refreshAttributeSuggestionsChain'](_0x207e32);const _0x42c54e=_0x57dc41['filter'](_0x53efcd=>!_0x53efcd['isMultiRange']&&'attribute'!=_0x53efcd['type']),_0x323dca=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x520727=>!_0x520727['isMultiRange']&&'attribute'!=_0x520727['type']),_0x556d0c=_0x323dca['filter'](_0x3a73a9=>!_0x337b31['has'](_0x3a73a9)),_0xa0ef54=new Map(_0x323dca['map'](_0x81df3b=>[_0x81df3b,this['_suggestionFactory']['getSuggestionCallback'](_0x81df3b['type'],_0x81df3b['subType'],'chain')])),_0x2d9e57=new Map(_0x323dca['map'](_0x2d9fc0=>[_0x2d9fc0,_0x2d9fc0['getFirstRange']()])),_0x4f1531=new Set(),_0x6d96c5=new Set();for(let _0x534db2=0x0;_0x534db2<_0x42c54e['length'];_0x534db2++)_0x5d82b1(_0x42c54e[_0x534db2],_0x42c54e,_0x534db2+0x1);for(let _0x3ec027=0x0;_0x3ec027<_0x42c54e['length'];_0x3ec027++)_0x5d82b1(_0x42c54e[_0x3ec027],_0x556d0c,0x0);const _0x5a708a=new Set();for(let _0x267d7c=0x0;_0x267d7c<_0x42c54e['length'];_0x267d7c++){const _0x345c7a=_0x42c54e[_0x267d7c];!_0x6d96c5['has'](_0x345c7a)&&_0x345c7a['previous']&&(_0x5a708a['add'](_0x345c7a['previous']),_0x345c7a['previous']['next']===_0x345c7a&&(_0x345c7a['previous']['next']=null),_0x345c7a['previous']=null),!_0x4f1531['has'](_0x345c7a)&&_0x345c7a['next']&&(_0x5a708a['add'](_0x345c7a['next']),_0x345c7a['next']['previous']===_0x345c7a&&(_0x345c7a['next']['previous']=null),_0x345c7a['next']=null);}function _0x5d82b1(_0x5b3618,_0x53ccac,_0x3732fe){for(let _0x975fde=_0x3732fe;_0x975fde<_0x53ccac['length'];_0x975fde++){const _0x3c3246=_0x31af6a(_0x5b3618,_0x53ccac[_0x975fde]);_0x3c3246&&(_0x3c3246[0x0]['next']=_0x3c3246[0x1],_0x3c3246[0x1]['previous']=_0x3c3246[0x0],_0x4f1531['add'](_0x3c3246[0x0]),_0x6d96c5['add'](_0x3c3246[0x1]));}}function _0x31af6a(_0x23a82a,_0x2d86aa){if(_0x23a82a['author']['id']!==_0x2d86aa['author']['id'])return null;const _0x2f60b9=_0xa0ef54['get'](_0x23a82a)(_0x23a82a,_0x2d86aa,_0x2d9e57['get'](_0x23a82a),_0x2d9e57['get'](_0x2d86aa));return _0x2f60b9&&_0xa0ef54['get'](_0x2d86aa)(_0x23a82a,_0x2d86aa,_0x2d9e57['get'](_0x23a82a),_0x2d9e57['get'](_0x2d86aa))?_0x2f60b9[0x1]['commentThread']&&_0x2f60b9[0x1]['commentThread']['length']?null:_0x2f60b9:null;}_0x5a708a['size']&&this['_refreshSuggestionsChain'](_0x5a708a);}_refreshAttributeSuggestionsChain(_0x7857fd){if(0x0==_0x7857fd['length'])return;const _0x275dfb=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23b50e=>'attribute'==_0x23b50e['type']&&_0x23b50e['_isDataLoaded']),_0x5c8d80=[],_0x1512bf=new Map();for(const _0x546b12 of _0x275dfb){const _0x3dc70f=_0x43717f(_0x546b12['attributes']);_0x1512bf['has'](_0x3dc70f)||(_0x1512bf['set'](_0x3dc70f,_0x5c8d80['length']),_0x5c8d80['push']([])),_0x5c8d80[_0x1512bf['get'](_0x3dc70f)]['push'](_0x546b12);}!(function(){_0x5c8d80['sort']((_0x47a9d4,_0x473824)=>{const _0x1781b8=_0x47a9d4[0x0]['createdAt'],_0x22ab04=_0x473824[0x0]['createdAt'];return _0x1781b8==_0x22ab04?_0x47a9d4[0x0]['attributes']['groupId']<_0x473824[0x0]['attributes']['groupId']?-0x1:0x1:_0x1781b8<_0x22ab04?-0x1:0x1;});for(const _0x5ac6fa of _0x5c8d80)_0x5ac6fa['sort']((_0x3f6564,_0x4c5d09)=>_0x3f6564['id']<_0x4c5d09['id']?-0x1:0x1);}());for(let _0x1b8e20=0x0;_0x1b8e20<_0x5c8d80['length'];_0x1b8e20++){if(0x0==_0x5c8d80[_0x1b8e20]['length'])continue;const _0x3b3c48=[];for(let _0x103216=_0x1b8e20+0x1;_0x103216<_0x5c8d80['length'];_0x103216++)0x0!=_0x5c8d80[_0x103216]['length']&&_0x52ae7c(_0x5c8d80[_0x1b8e20],_0x5c8d80[_0x103216])&&_0x3b3c48['push'](_0x103216);for(const _0x14a953 of _0x3b3c48)_0x5c8d80[_0x1b8e20]=_0x5c8d80[_0x1b8e20]['concat'](_0x5c8d80[_0x14a953]),_0x5c8d80[_0x14a953]=[];}for(const _0x5ab88a of _0x5c8d80)for(let _0x252f6a=0x0;_0x252f6a<_0x5ab88a['length'];_0x252f6a++){const _0x22e40d=_0x5ab88a[_0x252f6a+0x1]||null;_0x5ab88a[_0x252f6a]['next']!==_0x22e40d&&(_0x5ab88a[_0x252f6a]['next']=_0x22e40d);}for(const _0x3f019d of _0x5c8d80)for(let _0x1438b4=0x0;_0x1438b4<_0x3f019d['length'];_0x1438b4++){const _0x1e89c2=_0x3f019d[_0x1438b4-0x1]||null;_0x3f019d[_0x1438b4]['previous']!==_0x1e89c2&&(_0x3f019d[_0x1438b4]['previous']=_0x1e89c2);}function _0x52ae7c(_0x180966,_0x529c19){if(_0x180966[0x0]['attributes']['groupId']!==_0x529c19[0x0]['attributes']['groupId']&&_0x180966[0x0]['author']!==_0x529c19[0x0]['author'])return!0x1;if(!function(_0x489dcc,_0xf5e2a1){return!_0x489dcc['hasComments']&&!_0xf5e2a1['hasComments']||(!_0x489dcc['hasComments']||!_0xf5e2a1['hasComments'])&&(!!(_0x489dcc['hasComments']&&_0xf5e2a1['createdAt']<_0x489dcc['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0xf5e2a1['hasComments']&&_0x489dcc['createdAt']<_0xf5e2a1['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x180966[0x0],_0x529c19[0x0]))return!0x1;const _0x433a0d=lt(_0x180966[0x0]['attributes'],['groupId','trackingSessionId']),_0x1b8e94=lt(_0x529c19[0x0]['attributes'],['groupId','trackingSessionId']);return!!ct(_0x433a0d,_0x1b8e94)&&(_0x180966[0x0]['attributes']['groupId']==_0x529c19[0x0]['attributes']['groupId']||_0x180966[0x0]['attributes']['trackingSessionId']===_0x529c19[0x0]['attributes']['trackingSessionId']&&(!!_0x180966['every'](_0x3e164c=>_0x529c19['some'](_0x252246=>_0x3e164c['getFirstRange']()['isEqual'](_0x252246['getFirstRange']())))&&_0x529c19['every'](_0x2cbf93=>_0x180966['some'](_0x3a37a1=>_0x2cbf93['getFirstRange']()['isEqual'](_0x3a37a1['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x34d5fa){const _0x419152=Array['from'](_0x34d5fa),_0x5ae4ae=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1b6b9a=_0x5ae4ae['filter'](_0x38a0f3=>!_0x34d5fa['has'](_0x38a0f3)),_0x2a0554=new Map(_0x419152['map'](_0x54108a=>[_0x54108a,this['_suggestionFactory']['getSuggestionCallback'](_0x54108a['type'],_0x54108a['subType'],'join')])),_0x25b41d=new Map(_0x5ae4ae['map'](_0x10ad3d=>[_0x10ad3d,_0x10ad3d['getRanges']()]));for(let _0x429a61=0x0;_0x429a61<_0x419152['length'];_0x429a61++)if(_0xf8827e(this,_0x419152[_0x429a61],_0x419152,_0x429a61+0x1))return!0x0;for(let _0x504def=0x0;_0x504def<_0x419152['length'];_0x504def++)if(_0xf8827e(this,_0x419152[_0x504def],_0x1b6b9a,0x0))return!0x0;return!0x1;function _0xf8827e(_0x5cc1a1,_0x3c0e39,_0x48a846,_0x252bba){for(let _0x403e25=_0x252bba;_0x403e25<_0x48a846['length'];_0x403e25++){const _0x4fb764=_0x48a846[_0x403e25];if(_0x4fb764['type']!==_0x3c0e39['type']||_0x4fb764['author']['id']!==_0x3c0e39['author']['id']||_0x4fb764['subType']!==_0x3c0e39['subType'])continue;if(!_n(_0x3c0e39,_0x4fb764))continue;if('attribute'==_0x3c0e39['type']&&_0x3c0e39['data']['oldValue']!=_0x4fb764['data']['oldValue'])continue;if('attribute'==_0x3c0e39['type']&&_0x5cc1a1['_suggestionsConversion']['isBlockAttribute'](_0x3c0e39['data']['key']))continue;if('formatBlock'==_0x3c0e39['type']){const _0x47393c=_0x5cc1a1['editor']['model'],_0x419439=_0x3c0e39['getContainedElement']();if(_0x419439&&(_0x47393c['schema']['isObject'](_0x419439)||_0x47393c['schema']['isLimit'](_0x419439)))continue;}const _0x15fb6f=_0x2a0554['get'](_0x3c0e39),_0x347668=_0x25b41d['get'](_0x3c0e39),_0x43c118=_0x25b41d['get'](_0x4fb764),_0x530bde=_0x3c0e39['commentThread']&&_0x3c0e39['commentThread']['length'],_0xfcb286=_0x4fb764['commentThread']&&_0x4fb764['commentThread']['length'];if(!_0x530bde&&_0x15fb6f(_0x43c118,_0x347668))return _0x5cc1a1['_joinSuggestions'](_0x4fb764,_0x3c0e39),_0x25b41d['delete'](_0x3c0e39),!0x0;if(!_0xfcb286&&_0x15fb6f(_0x347668,_0x43c118))return _0x5cc1a1['_joinSuggestions'](_0x3c0e39,_0x4fb764),_0x25b41d['delete'](_0x4fb764),!0x0;}return!0x1;}}_joinSuggestions(_0x1e1c25,_0x30ad5c){if(_0x1e1c25['isMultiRange']){for(const _0xacc0f4 of _0x30ad5c['getRanges']())_0x1e1c25['addRange'](_0xacc0f4);}else{const _0x54ad3f=_0x30ad5c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1e1c25,this['_model']['createRange'](_0x1e1c25['getFirstRange']()['start'],_0x54ad3f));}_0x30ad5c['removeMarkers']();}_getMarkerAnnouncementText(_0x77cc7d,_0x2ceab7,_0x107e59){const _0x3f352f=_0x77cc7d['startsWith']('format')||_0x77cc7d['startsWith']('attribute')?'FORMATTING':_0x77cc7d['toUpperCase']();return Mt(this['editor']['locale'],_0x2ceab7+'_'+_0x3f352f+'_SUGGESTION_ANNOUNCEMENT',_0x107e59);}_initAriaMarkerChangeAnnouncements(){const _0x4cad1e=this['editor'];if(!_0x4cad1e['ui'])return;const {ariaLiveAnnouncer:_0x2a0189}=_0x4cad1e['ui'];et(this['_model'],({left:_0x4e6082,entered:_0x300b34})=>{for(const _0x4f3cfe of _0x4e6082){const {group:_0x4ebb51,type:_0x24dbe8}=tt(_0x4f3cfe['name']);if('suggestion'===_0x4ebb51){_0x2a0189['announce'](this['_getMarkerAnnouncementText'](_0x24dbe8,'LEAVE'));break;}}for(const _0x23231b of _0x300b34){const {group:_0x48a278,type:_0x9d83c8}=tt(_0x23231b['name']);if('suggestion'===_0x48a278){_0x2a0189['announce'](this['_getMarkerAnnouncementText'](_0x9d83c8,'ENTER',_0x239078(_0x4b3db1)));break;}}});}_processAttributeChanges(_0x371047){if(this['_recordAttributeSuggestions'])return!0x1;const _0x461d2b=this['editor'],_0x1dff88=_0x461d2b['model']['document']['differ']['getChanges']();if(0x0==_0x1dff88['length'])return!0x1;const _0x272260=[],_0x94c6f5=_0x1dff88['filter'](_0xc3b455=>'attribute'==_0xc3b455['type']),_0x23f818=_0x1dff88['filter'](_0x12e5e2=>'insert'==_0x12e5e2['type']&&'$text'!=_0x12e5e2['name']),_0x4681ed=_0x1dff88['filter'](_0xdaee82=>'remove'==_0xdaee82['type']&&'$text'!=_0xdaee82['name']);for(const _0x2572c2 of _0x94c6f5)_0x272260['push']({'key':_0x2572c2['attributeKey'],'newValue':_0x2572c2['attributeNewValue'],'oldValue':_0x2572c2['attributeOldValue'],'range':mn(_0x2572c2['range'],_0x461d2b['model'])});for(const _0x5ea08d of _0x23f818){const _0x3d86f9=_0x4681ed['find'](_0x4345ce=>_0x4345ce['position']['isEqual'](_0x5ea08d['position']));_0x3d86f9&&_0x272260['push']({'key':sn,'newValue':_0x5ea08d['name'],'oldValue':_0x3d86f9['name'],'range':_0x461d2b['model']['createRangeOn'](_0x5ea08d['position']['nodeAfter'])});}return 0x0!=_0x272260['length']&&this['_reduceExistingSuggestions'](_0x371047,_0x272260);}_processAttributeSuggestions(_0x100a88){let _0x27ed26=!0x1;const _0x5582c2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4f4f74=>_0x4f4f74['data']['newRange']&&_0x4f4f74['name']['startsWith']('suggestion:attribute:'));for(const _0x58e6fb of _0x5582c2){const {subType:_0x3e0a8d,id:_0x29a879}=tt(_0x58e6fb['name']),_0x5406ab=_0x3e0a8d['split']('|')[0x0];for(const _0x3e02fb of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3e02fb['id']!=_0x29a879&&'attribute'==_0x3e02fb['type']&&_0x3e02fb['data']&&_0x3e02fb['data']['key']==_0x5406ab&&_0x3e02fb['getFirstRange']()['isIntersecting'](_0x58e6fb['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3e02fb,_0x58e6fb['data']['newRange'],_0x100a88),_0x27ed26=!0x0);}return _0x27ed26;}recordAttributeChanges(_0x37b4b8){this['_recordAttributeSuggestions']=!0x0,_0x37b4b8();}_reduceExistingSuggestions(_0x1092fd,_0x4675ef){if(0x0==_0x4675ef['length'])return!0x1;let _0x4c31b5=!0x1;for(const _0xa453ac of _0x4675ef){const _0x5e6292=this['_findSuggestions'](_0xa453ac['range'],'attribute')['filter'](_0x5546e7=>!_0x5546e7['meta']['isNextTo'])['map'](_0x1611c9=>_0x1611c9['suggestion']),_0x2f8590=_0x43717f({'newValue':_0xa453ac['newValue']});_0x5e6292['filter'](_0x250dd7=>{const [_0x4d59ad,_0x472f33]=_0x250dd7['subType']['split']('|');return _0x4d59ad==_0xa453ac['key']&&_0x472f33!=_0x2f8590;})['forEach'](_0x5c97e4=>{this['_reduceSuggestionAttributeRange'](_0x5c97e4,_0xa453ac['range'],_0x1092fd),_0x4c31b5=!0x0;});}return _0x4c31b5;}_reduceSuggestionAttributeRange(_0x37b2cf,_0x17ddc0,_0x5e4cfe){const _0x5adc66=_0x37b2cf['getFirstRange']()['getDifference'](_0x17ddc0);0x0!==_0x5adc66['length']?0x1!==_0x5adc66['length']?this['_breakSuggestionMarker'](_0x37b2cf,_0x17ddc0['start'],_0x17ddc0['end']):this['_setSuggestionRange'](_0x37b2cf,_0x5adc66[0x0]):_0x5e4cfe['removeMarker'](_0x37b2cf['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x2806f6){this['_editor']=_0x2806f6,this['_model']=_0x2806f6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x5979ad,_0x13c0bc,_0x19c083,_0xcfdaa8,_0x4dfb53,_0x4a1b24,_0xfa11ff){return new St(this['_model'],{'type':_0x5979ad,'subType':_0x13c0bc,'id':_0x19c083,'originalSuggestionId':_0xfa11ff,'author':_0xcfdaa8,'creator':_0xcfdaa8,'attributes':_0x4dfb53,'onAttributesChange':_0x4a1b24,'onAccept':(..._0xfae173)=>this['getSuggestionCallback'](_0x5979ad,_0x13c0bc,'accept')(..._0xfae173),'onDiscard':(..._0x5166d3)=>this['getSuggestionCallback'](_0x5979ad,_0x13c0bc,'discard')(..._0x5166d3)});}registerCustomCallback(_0x3260c,_0x2c7f14,_0x1a7094,_0x19042d){const _0x3e7aa0=_0x3260c+':'+_0x2c7f14+':'+_0x1a7094;this['_customCallbacks']['set'](_0x3e7aa0,_0x19042d);}getSuggestionCallback(_0x437833,_0x550af0,_0x4ea04a){const _0x50f7f1=_0x437833+':'+_0x550af0+':'+_0x4ea04a;return this['_customCallbacks']['get'](_0x50f7f1)||this['_defaultCallbacks']['get'](_0x437833+':'+_0x4ea04a);}_registerDefaultCallbacks(){const _0x366e4a=()=>!0x1,_0x1b4db0=_0x45dc72=>{_0x45dc72['sort']((_0x2359fd,_0x216717)=>_0x2359fd['start']['isBefore'](_0x216717['start'])?0x1:-0x1),this['_model']['change'](_0x1cf78a=>{for(const _0xa15c3 of _0x45dc72){let _0x361ac9;_0x361ac9=_0xa15c3['end']['isAtEnd']&&_0xa15c3['end']['parent']==_0xa15c3['start']['nodeAfter']?_0x1cf78a['createSelection'](_0xa15c3['start']['nodeAfter'],'on'):_0x1cf78a['createSelection'](_0xa15c3),this['_model']['deleteContent'](_0x361ac9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4aa447=(_0x3108d2,_0x4441da)=>{_0x4441da&&this['_model']['change'](_0x5f1d01=>{const {commandName:_0x5c6412,commandParams:_0x3774cc=[]}=_0x4441da,_0x1c3d49=_0x3108d2['map'](_0x43a5c8=>(ln(_0x43a5c8)&&(_0x43a5c8=this['_model']['createRange'](_0x43a5c8['end'])),_0x43a5c8))['filter'](_0x52d1c2=>'$graveyard'!==_0x52d1c2['root']['rootName']);if(_0x1c3d49['length']<0x1)return;const _0x113f6a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5274d3=>rt['fromRange'](_0x5274d3));_0x5f1d01['setSelection'](_0x1c3d49);for(const _0x3057c9 of this['_editor']['commands']['commands']())_0x3057c9['refresh']();_0x3774cc['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5c6412,..._0x3774cc);const _0x74559=_0x113f6a['filter'](_0x52cc75=>'$graveyard'!=_0x52cc75['root']['rootName']);_0x74559['length']>0x0&&_0x5f1d01['setSelection'](_0x74559);for(const _0xd3a2fb of _0x113f6a)_0xd3a2fb['detach']();});},_0x19db74=(_0x479945,_0x46432b)=>0x1==_0x479945['length']&&0x1==_0x46432b['length']&&_0x479945[0x0]['end']['isEqual'](_0x46432b[0x0]['start']),_0x3eb1b5=(_0x54000d,_0x210f83,_0x20dc96,_0x119d6b)=>Tn(_0x54000d,_0x210f83,_0x20dc96,_0x119d6b)?[_0x54000d,_0x210f83]:Tn(_0x210f83,_0x54000d,_0x119d6b,_0x20dc96)?[_0x210f83,_0x54000d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x366e4a),this['_defaultCallbacks']['set']('insertion:discard',_0x1b4db0),this['_defaultCallbacks']['set']('insertion:join',_0x19db74),this['_defaultCallbacks']['set']('insertion:chain',_0x3eb1b5),this['_defaultCallbacks']['set']('deletion:accept',(_0x2d019c,_0xa047ef,_0x5d04be)=>{const _0x5a76fd=(_0x5d04be?.['@ai'])?.['type'];_0x5a76fd?this['_model']['change'](_0x192282=>{const _0x36af2d=_0x192282['batch']['operations']['length'];_0x1b4db0(_0x2d019c);for(let _0xf2ae8c=_0x36af2d;_0xf2ae8c<_0x192282['batch']['operations']['length'];_0xf2ae8c++)_0x192282['batch']['operations'][_0xf2ae8c]['_aiSource']=_0x5a76fd;}):_0x1b4db0(_0x2d019c);}),this['_defaultCallbacks']['set']('deletion:discard',_0x366e4a),this['_defaultCallbacks']['set']('deletion:join',_0x19db74),this['_defaultCallbacks']['set']('deletion:chain',_0x3eb1b5),this['_defaultCallbacks']['set']('formatInline:accept',_0x4aa447),this['_defaultCallbacks']['set']('formatInline:discard',_0x366e4a),this['_defaultCallbacks']['set']('formatInline:join',_0x19db74),this['_defaultCallbacks']['set']('formatInline:chain',_0x366e4a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4aa447),this['_defaultCallbacks']['set']('formatBlock:discard',_0x366e4a),this['_defaultCallbacks']['set']('formatBlock:join',_0x19db74),this['_defaultCallbacks']['set']('formatBlock:chain',_0x366e4a),this['_defaultCallbacks']['set']('attribute:accept',_0x366e4a),this['_defaultCallbacks']['set']('attribute:discard',(_0x499390,_0x87876d)=>{if(!_0x87876d)return;const _0x2087a7=this['_editor']['plugins']['get'](_0x479c91);this['_model']['change'](_0x4ee821=>{if('$elementName'==_0x87876d['key'])for(const _0x1850c1 of _0x499390){const _0x3b33e0=_0x1850c1['start']['nodeAfter'],_0x3a6657=_0x87876d['oldValue'];_0x4ee821['rename'](_0x3b33e0,_0x3a6657);}else{if(_0x2087a7['isBlockAttribute'](_0x87876d['key'])){for(const _0x1214db of _0x499390)void 0x0!==_0x87876d['oldValue']?_0x4ee821['setAttribute'](_0x87876d['key'],_0x87876d['oldValue'],_0x1214db['start']['nodeAfter']):_0x4ee821['removeAttribute'](_0x87876d['key'],_0x1214db['start']['nodeAfter']);}else{for(const _0x4cc0bb of _0x499390)_0x87876d['oldValue']?_0x4ee821['setAttribute'](_0x87876d['key'],_0x87876d['oldValue'],_0x4cc0bb):_0x4ee821['removeAttribute'](_0x87876d['key'],_0x4cc0bb);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x19db74);}};function cn(_0x45f046,_0x5b5639,_0x793205){for(const _0x2112e6 of _0x5b5639['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2112e6['root']==_0x2112e6)return!0x1;if(!_0x793205['containsItem'](_0x2112e6))return!0x1;if(_0x45f046['isObject'](_0x2112e6)||_0x45f046['isLimit'](_0x2112e6))return!0x0;}return!0x1;}function ln(_0x3062b4){return _0x3062b4['end']['parent']==_0x3062b4['start']['nodeAfter']&&_0x3062b4['end']['isAtStart'];}function un(_0x325d0f,_0x5eff6e,_0x2a6401,_0xab693f){const _0x42226e=_0x12180a=>!_0x12180a['item']['is']('$textProxy')&&!_0xab693f['isObject'](_0x12180a['item']),_0x4b7eb=_0x325d0f['start']['getLastMatchingPosition'](_0x42226e),_0x2895ec=_0x325d0f['end']['getLastMatchingPosition'](_0x42226e,{'direction':'backward'});return(!_0x325d0f['start']['isEqual'](_0x4b7eb)||!_0x325d0f['end']['isEqual'](_0x2895ec))&&(_0x4b7eb['isBefore'](_0x2895ec)?_0x2a6401['updateMarker'](_0x5eff6e,{'range':_0x2a6401['createRange'](_0x4b7eb,_0x2895ec)}):_0x2a6401['removeMarker'](_0x5eff6e),!0x0);}function dn(_0x26c88f){return _0x43717f(_0x26c88f);}function hn(_0x1c28f7){const _0x43a472=_0x1c28f7['start']['nodeAfter'];return _0x43a472&&_0x43a472['is']('element');}function gn(_0x46edf3){return ln(_0x46edf3)||function(_0x1a2d53){return _0x1a2d53['start']['parent']==_0x1a2d53['end']['nodeBefore']&&_0x1a2d53['start']['isAtEnd'];}(_0x46edf3);}function fn(_0x2a22ab,_0x4dde47){try{const _0x1d7145=_0x2a22ab['getRange']();for(const _0x520518 of _0x4dde47)if(_0x2a22ab!==_0x520518&&_0x1d7145&&_0x1d7145['isIntersecting'](_0x520518['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0x3ba13f,_0x5741d7){return null==_0x3ba13f['end']['nodeBefore']&&_0x3ba13f['end']['parent']==_0x3ba13f['start']['nodeAfter']?En(_0x3ba13f['start']['nodeAfter'],_0x5741d7):_0x3ba13f;}function En(_0x406853,_0x1467d6){const _0x5891c8=_0x1467d6['schema']['isObject'](_0x406853)||_0x1467d6['schema']['isSelectable'](_0x406853);return _0x1467d6['createRange'](_0x1467d6['createPositionAt'](_0x406853,'before'),_0x5891c8?_0x1467d6['createPositionAfter'](_0x406853):_0x1467d6['createPositionAt'](_0x406853,'end'));}function Tn(_0x20f26b,_0x18f999,_0xeee4bc,_0x4d5993){return!!_n(_0x20f26b,_0x18f999)&&_0xeee4bc['end']['isEqual'](_0x4d5993['start']);}function _n(_0x13183e,_0x58920e){if(!_0x13183e['_isDataLoaded']||!_0x58920e['_isDataLoaded'])return!0x1;const _0x30c943=new Set(Object['keys'](_0x13183e['attributes'])),_0x474686=new Set(Object['keys'](_0x58920e['attributes']));if(_0x30c943['delete']('groupId'),_0x474686['delete']('groupId'),0x0==_0x30c943['size']&&0x0==_0x474686['size'])return!0x0;if(_0x30c943['size']!=_0x474686['size'])return!0x1;const _0x1051a8={..._0x13183e['attributes']},_0x46740d={..._0x58920e['attributes']};return delete _0x1051a8['groupId'],delete _0x46740d['groupId'],JSON['stringify'](_0x1051a8)==JSON['stringify'](_0x46740d);}function pn(_0x36ad05,_0x3e5c78){const _0x16e43e=Ln(_0x36ad05['attributes']),_0x117eaa=Ln(_0x3e5c78);if(!_0x36ad05['_isDataLoaded'])return!0x1;if(!ct(_0x16e43e['@ai'],_0x117eaa['@ai']))return!0x1;for(const _0x518937 of Object['keys'](_0x117eaa))if(!ct(_0x16e43e[_0x518937],_0x117eaa[_0x518937]))return!0x1;return!0x0;}function Ln(_0x31e310){const _0x1e06cd=Object['assign']({},_0x31e310);return delete _0x1e06cd['skipNestingCheck'],delete _0x1e06cd['tablePasteChainId'],_0x1e06cd;}function In(_0x1b8d70){return _0x1b8d70['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
26
- _0x37f228();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x4d38ee,_0x377583,_0x154703,_0x445435){super(),this['model']=_0x377583,this['view']=_0x154703,this['commentThreadController']=_0x445435,this['_editor']=_0x4d38ee,this['_acceptCommand']=_0x4d38ee['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4d38ee['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x121df2,_0x599b1e)=>_0x121df2||_0x599b1e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5c88bf=>_0x5c88bf&&this['_editor']['model']['canEditAt'](_0x377583['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1c181e=>_0x1c181e&&this['_editor']['model']['canEditAt'](_0x377583['getRanges']())),this['_pendingAction']=null,_0x154703['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x154703,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x154703,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x154703,'change:isDirty',()=>{_0x154703['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 _0x51a096=Mt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x51a096);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},kn=class extends _0x4c905d{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x696e1c,_0x4987be,_0x24abe9,_0x591d68){super(_0x696e1c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x23bc98(_0x696e1c,Mt(_0x696e1c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4987be['authoredAt']),this['bind']('authoredAt')['to'](_0x4987be),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',_0x4987be,'authoredAt',this,'descriptionParts',(_0x469ffb,_0x122c5e,_0x257952)=>{const _0x446b64=_0x257952['map'](_0x43017b=>Lt(_0x43017b['content']))['join']('.\x20')+'.',_0x11c174=_0x4987be['aiSource']&&'author'===_0x591d68['showAISource']?_0x591d68['aiAuthor']['name']:_0x4987be['author']['name'],_0x21b69c=Mt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x469ffb-0x1,_0x11c174,_0x122c5e?_0x591d68['formatDateTime'](_0x122c5e):'',new DOMParser()['parseFromString'](_0x446b64,'text/html')['body']['textContent']]);return _0x4987be['aiSource']&&'pill'===_0x591d68['showAISource']?_0x21b69c+'\x20'+Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x21b69c;}),this['focusables']=new _0x3be405(),this['focusTracker']=new _0x5168be(),this['keystrokes']=new _0x102cde(),this['focusCycler']=new _0x4a519b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x52a41f=>_0x52a41f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4987be,this['_localUser']=_0x24abe9,this['_config']=_0x591d68,_0x591d68['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x500825(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x3de0c9}=this['_config'];this['commentsListView']=new _0x3de0c9(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',_0x18a34a=>_0x18a34a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4463e8,_0x30b5db)=>_0x4463e8||!!_0x30b5db);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x419257}=this['_config'],_0x2f171a=new _0x419257(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3c07f5=_0x2f171a['commentInputView'];return _0x2f171a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3c07f5,'value',(_0xecfb74,_0x50dfdf,_0xaa0a75)=>!!_0xaa0a75||_0xecfb74&&!_0x50dfdf),_0x3c07f5['on']('submit',(_0x4d4f8e,_0x1870ef)=>{this['fire']('addComment',_0x1870ef),_0x3c07f5['editor']['setData']('');}),_0x3c07f5['on']('cancel',()=>this['focus']()),_0x3c07f5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2f171a;}},Cn=class extends kn{suggestionView;_descriptionElement;constructor(_0x550d72,_0xa40399,_0x222216,_0xcf60b8){super(_0x550d72,_0xa40399,_0x222216,_0xcf60b8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xdc50d2=>_0xdc50d2&&_0xdc50d2[0x0]?_0xdc50d2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4c4d08,_0x58c837)=>{let _0x426a92='';for(const _0x4210fa of _0x4c4d08)_0x426a92+='<p>'+Lt(_0x4210fa['content'],_0x4210fa['color'])+'</p>';return _0x58c837?_0x426a92:nt(_0x426a92,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xcf60b8['SuggestionView'](_0x550d72,_0xa40399,{'formatDateTime':_0xcf60b8['formatDateTime'],'showAISource':_0xcf60b8['showAISource'],'aiAuthor':_0xcf60b8['aiAuthor']}),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 _0x59fb3a=this['bindTemplate'],_0x3e3942=[this['suggestionView']];return this['commentsListView']&&_0x3e3942['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3e3942['push'](this['commentThreadInputView']),_0x3e3942['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x59fb3a['if']('isActive','ck-suggestion-wrapper--active'),_0x59fb3a['to']('type',_0x53cfbe=>'ck-suggestion-'+_0x53cfbe),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':_0x59fb3a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3e3942};}['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));}},Rn=class extends _0x4c905d{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0xce0839,_0x1bca68,_0xd46a6c){super(_0xce0839),this['_model']=_0x1bca68,this['_config']=_0xd46a6c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1bca68),this['acceptButton']=this['_createButton'](Mt(_0xce0839,'Accept\x20suggestion'),_0x1a9023,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Mt(_0xce0839,'Discard\x20suggestion'),_0x2275d4,'ck-suggestion--discard','discardSuggestion','sw');const _0xa6beb0=!!_0x1bca68['aiSource']&&'author'===_0xd46a6c['showAISource'],_0x35e212=_0xa6beb0?this['_createAIUser'](_0xd46a6c['aiAuthor']):_0x1bca68['author'],_0x21826a=_0xa6beb0&&!_0xd46a6c['aiAuthor']['avatar']?_0x3406c2:void 0x0;this['userView']=new _0x4dfbd0(_0xce0839,_0x35e212,this['getUserViewNotificationText'](),_0x21826a),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3be405([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5168be(),this['keystrokes']=new _0x102cde(),this['focusCycler']=new _0x4a519b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2b728e=>_0x2b728e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x47279f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x47279f['innerHTML']=this['description'],this['on']('change:description',(_0x1c4153,_0x3c3b13,_0xe4f9fb)=>{_0x47279f['innerHTML']=_0xe4f9fb;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x11a30f=this['bindTemplate'],_0x4fadbc=[{'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':_0x11a30f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x11a30f['to']('authoredAt',_0x11a476=>this['_config']['formatDateTime'](_0x11a476))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x4fadbc['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x2c7e34=new _0x23e89f(this['locale']);_0x2c7e34['set']({'icon':_0xa2c210,'label':Mt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x4fadbc['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x2c7e34]});}return{'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':_0x4fadbc}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Mt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Mt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x2f3f66){return new _0x2b2ea0({'id':'ck-ai-author','name':_0x2f3f66['name'],'avatar':_0x2f3f66['avatar'],'color':new _0x5c15c6(0x0)});}_createButton(_0x30484d,_0x291796,_0x4061c0,_0x2588cc,_0x5330db){const _0x28b9f6=new _0x4594aa(this['locale']);return _0x28b9f6['set']({'label':_0x30484d,'icon':_0x291796,'tooltip':!0x0,'tooltipPosition':_0x5330db}),_0x28b9f6['extendTemplate']({'attributes':{'class':_0x4061c0}}),_0x28b9f6['on']('execute',()=>{this['fire'](_0x2588cc,this['_model']['id']);}),_0x28b9f6;}_setupKeyboardNavigation(){const _0x19c583=this['element'];this['keystrokes']['listenTo'](_0x19c583);for(const _0x159827 of this['focusables'])this['focusTracker']['add'](_0x159827['element']),this['keystrokes']['listenTo'](_0x159827['element']);this['keystrokes']['set']('enter',(_0x32d516,_0x38d61e)=>{_0x19c583===_0x32d516['target']&&(this['focusCycler']['focusFirst'](),_0x38d61e());}),this['keystrokes']['set']('esc',(_0x5bb9c1,_0x411e03)=>{_0x19c583!==_0x5bb9c1['target']&&(this['focus'](),_0x411e03());});}},yn=class extends _0x5cf544{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0x14ae03,_0x3f08e8,_0x5a86b5,_0x13b066];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3bf8ad){super(_0x3bf8ad),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x41faf5=this['editor']['config'];_0x41faf5['define']('trackChanges.SuggestionThreadView',Cn),_0x41faf5['define']('trackChanges.SuggestionView',Rn),_0x41faf5['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x41faf5['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x56d7db,_0x3a9322){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x411a71,_0x266885]of this['_handleControllerBuffer']){const _0x273213=this['_suggestionToController']['has'](_0x411a71);_0x273213||_0x266885?_0x273213&&_0x266885&&this['_destroyController'](_0x411a71):this['_initializeController'](_0x411a71);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x13b066)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x56d7db,_0x3a9322);}init(){const _0x70c67a=this['editor'],_0x4107df=_0x70c67a['plugins']['get'](on),_0x290542=_0x70c67a['plugins']['get'](_0x5a86b5),_0x5cda14=_0x70c67a['plugins']['get'](_0x13b066),_0x3b2344=_0x70c67a['plugins']['get'](_0x3f08e8);this['_addUIComponentsToFactory'](),_0x5cda14['addSourceCollector'](()=>{const _0x191729=[];for(const [_0x3a6b42,_0x46c3b0]of Array['from'](this['_suggestionToController'])){const _0x3295e5=_0x3a6b42['getAllAdjacentSuggestions'](),_0x330c71=[];for(const _0x363499 of _0x3295e5){if(!_0x363499['isInContent'])continue;if(_0x363499['isMultiRange']){_0x330c71['push'](..._0x363499['getRanges']());continue;}const _0x22f109=_0x363499['getFirstRange']();if(_0x330c71['length']>0x0){const _0x5ce807=_0x330c71[0x0]['getJoined'](_0x22f109);if(_0x5ce807){_0x330c71[0x0]=_0x5ce807;continue;}}_0x330c71['push'](_0x22f109);}_0x191729['push']([_0x46c3b0['view'],_0x330c71]);}return _0x191729;}),this['listenTo'](_0x4107df,'suggestionLoaded',(_0x5ce567,_0x17fcf8)=>{this['listenTo'](_0x17fcf8,'change:previous',(_0x271b6a,_0x2c2d61,_0x341355,_0x2193bf)=>{_0x17fcf8['isInContent']&&(null==_0x341355?(this['_updateController'](_0x2193bf['head']),this['_handleSuggestionControllerDelayed'](_0x17fcf8,!0x1)):(this['_updateController'](_0x341355['head']),null==_0x2193bf&&this['_handleSuggestionControllerDelayed'](_0x17fcf8,!0x0)));}),null!==_0x17fcf8['previous']?this['_updateController'](_0x17fcf8['head']):this['_handleSuggestionControllerDelayed'](_0x17fcf8,!0x1);}),this['listenTo'](_0x4107df,'suggestionUnloaded',(_0x4d4b23,_0x3c333f,_0x4a5be6)=>{this['stopListening'](_0x3c333f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3c333f),this['_suggestionToController']['has'](_0x3c333f)&&this['_destroyController'](_0x3c333f),_0x4a5be6&&this['_updateController'](_0x4a5be6['head']);}),this['listenTo'](_0x4107df,'suggestionChanged',(_0x602b5e,_0x334939)=>{this['_updateController'](_0x334939);}),this['listenTo'](_0x290542,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3b2344,'addComment',(_0x1baf68,{threadId:_0x4ff356,isFromAdapter:_0x24d83f})=>{if(_0x24d83f||!_0x4107df['hasSuggestion'](_0x4ff356))return;const _0x31cb50=_0x4107df['getSuggestion'](_0x4ff356);this['_suggestionToController']['get'](_0x31cb50)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x477643=[this['editor']];for(const _0x1b5968 of _0x477643){let _0x17b09e;for(const _0x2729a1 in _0x1b5968){const _0x314f7e=_0x2729a1,_0x25cfed=_0x1b5968[_0x314f7e];if('trackChangesLicenseKeyValid'==_0x25cfed||'trackChangesLicenseKeyInvalid'==_0x25cfed||'trackChangesLicenseKeyExpired'==_0x25cfed||'trackChangesLicenseKeyDomainLimit'==_0x25cfed||'trackChangesLicenseKeyNotAllowed'==_0x25cfed||'trackChangesLicenseKeyEvaluationLimit'==_0x25cfed||'trackChangesLicenseKeyUsageLimit'==_0x25cfed){delete _0x1b5968[_0x314f7e],_0x17b09e=_0x25cfed,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x17b09e&&_0x1b5968['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x17b09e&&_0x1b5968['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x17b09e&&_0x1b5968['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x17b09e&&_0x1b5968['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x17b09e&&_0x1b5968['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x17b09e&&_0x1b5968['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x168b61){const _0x39c187=this['_suggestionToController']['get'](_0x168b61);return _0x39c187&&this['editor']['plugins']['get'](_0x5a86b5)['getByInnerView'](_0x39c187['view'])||null;}getSuggestionForAnnotation(_0x479a33){const _0x510097=this['_viewToController']['get'](_0x479a33['innerView']);return _0x510097?_0x510097['model']:null;}_refreshActiveMarkers(){const _0x29f174=this['editor']['plugins']['get'](_0x5a86b5),_0x244306=this['editor']['plugins']['get'](on),_0x2b6f73=Array['from'](_0x29f174['activeAnnotations'],_0x224c61=>_0x224c61['innerView'])['filter'](_0x517f24=>this['_viewToController']['has'](_0x517f24)),_0x2caa11=[];for(const _0x529ca0 of _0x2b6f73){const _0x11b128=this['_viewToController']['get'](_0x529ca0)['model']['getAllAdjacentSuggestions']();_0x2caa11['push'](..._0x11b128['reduce']((_0x4137cc,_0x5da43a)=>[..._0x4137cc,..._0x5da43a['getMarkerNames']()],[]));}_0x244306['activeMarkers']=_0x2caa11;}_addUIComponentsToFactory(){const _0x43fceb=this['editor'],_0x5a3d24=_0x43fceb['locale'],_0x50d6d7=Mt(_0x5a3d24,'Track\x20changes'),_0x85ab71=new _0x4dbd7f([{'type':'switchbutton','model':new _0x2d34e9({'withText':!0x0,'isToggleable':!0x0,'label':_0x50d6d7,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2d34e9({'withText':!0x0,'label':Mt(_0x5a3d24,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d34e9({'withText':!0x0,'label':Mt(_0x5a3d24,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d34e9({'withText':!0x0,'label':Mt(_0x5a3d24,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d34e9({'withText':!0x0,'label':Mt(_0x5a3d24,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x43fceb['plugins']['has']('TrackChangesPreview')&&_0x85ab71['addMany']([{'type':'separator'},{'type':'button','model':new _0x2d34e9({'withText':!0x0,'label':Mt(_0x5a3d24,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xb529b3 of _0x85ab71)if(Nn(_0xb529b3)){const _0xb602e=_0x43fceb['commands']['get'](_0xb529b3['model']['commandName']);_0xb529b3['model']['bind']('isOn','isEnabled')['to'](_0xb602e,'value','isEnabled');}_0x43fceb['ui']['componentFactory']['add']('trackChanges',_0x462129=>this['_createToolbarButton'](_0x462129,_0x85ab71,_0x50d6d7)),_0x43fceb['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2beac5=>this['_createMenuBarMenu'](_0x2beac5,_0x85ab71,_0x50d6d7));}_createToolbarButton(_0x50b06b,_0xdaaa01,_0x3e3b0d){const _0x404514=_0x1b326e(_0x50b06b,_0x3803ab),_0x42a718=this['editor']['commands']['get']('trackChanges');_0x404514['buttonView']['set']({'tooltip':_0x3e3b0d,'label':_0x3e3b0d,'icon':_0x1c9f01}),_0x404514['buttonView']['bind']('isOn')['to'](_0x42a718,'value'),_0x404514['buttonView']['on']('execute',()=>{_0x42a718['execute'](),this['editor']['editing']['view']['focus']();}),_0x2e2a83(_0x404514,_0xdaaa01,{'role':'menu'});const _0x10eac3=[];for(const _0x295323 of _0xdaaa01)Nn(_0x295323)&&_0x10eac3['push'](this['editor']['commands']['get'](_0x295323['model']['commandName']));const _0x1ba5e9=_0x404514['buttonView'];return _0x1ba5e9['actionView']['unbind']('isEnabled'),_0x1ba5e9['arrowView']['unbind']('isEnabled'),_0x1ba5e9['actionView']['bind']('isEnabled')['to'](_0x42a718,'isEnabled'),_0x1ba5e9['arrowView']['bind']('isEnabled')['toMany'](_0x10eac3,'isEnabled',(..._0x326429)=>_0x326429['some'](_0x2ed67e=>_0x2ed67e)),_0x404514['on']('execute',_0x1fb99e=>{this['editor']['execute'](_0x1fb99e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x404514;}_createMenuBarMenu(_0x304e58,_0x2ca8c9,_0x174f3c){const _0x3aa4c1=new _0x44568a(_0x304e58),_0x205d9e=this['editor']['commands']['get']('trackChanges');_0x3aa4c1['buttonView']['set']({'label':_0x174f3c,'icon':_0x1c9f01});const _0x3ef1da=new _0x56e832(_0x304e58);for(const _0x17fd12 of _0x2ca8c9){if('separator'==_0x17fd12['type']){_0x3ef1da['items']['add'](new _0x2c8915(_0x304e58));continue;}const _0x1d99e9=new _0x2248bd(_0x304e58,_0x3aa4c1),_0x2a0edb=new _0x51db7d(_0x304e58),_0x385637=_0x17fd12['model'];_0x2a0edb['bind'](...Object['keys'](_0x385637))['to'](_0x385637),_0x2a0edb['delegate']('execute')['to'](_0x3aa4c1),_0x2a0edb['on']('execute',()=>{this['editor']['execute'](_0x385637['commandName']),this['editor']['editing']['view']['focus']();}),_0x1d99e9['children']['add'](_0x2a0edb),_0x3ef1da['items']['add'](_0x1d99e9);}return _0x3aa4c1['bind']('isEnabled')['to'](_0x205d9e,'isEnabled'),_0x3aa4c1['panelView']['children']['add'](_0x3ef1da),_0x3aa4c1;}_initializeController(_0x177f32){const _0x5f6dc2=this['editor'],_0x2e0c6c=_0x5f6dc2['config'],_0x2e5b2a=_0x5f6dc2['plugins']['get'](_0x5a86b5),_0x2770d3=_0x5f6dc2['plugins']['get'](_0x3f08e8),_0x355975=_0x5f6dc2['plugins']['get'](_0x13b066),_0x47031b=_0x5f6dc2['plugins']['get'](_0x14ae03)['me'],_0x36769b=_0x2e0c6c['get']('trackChanges')['SuggestionThreadView'],_0x75563c=_0x2e0c6c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4022b8,CommentThreadInputView:_0xd45350}=_0x5f6dc2['plugins']['get']('CommentsUI');let _0x3ba563,_0x2a0d1f,_0x48a7aa;this['_annotationViews']['has'](_0x177f32['id'])?(_0x2a0d1f=this['_annotationViews']['get'](_0x177f32['id']),_0x3ba563=_0x2a0d1f['mainView']):(_0x3ba563=new _0x36769b(_0x5f6dc2['locale'],_0x177f32,_0x47031b,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2e0c6c['get']('comments.editorConfig'),'licenseKey':_0x2e0c6c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2e0c6c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2e0c6c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2e0c6c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x53f4d4(_0x2e0c6c['get']('locale'),_0x5f6dc2['locale']),'CommentView':_0x2e0c6c['get']('comments')['CommentView'],'CommentsListView':_0x4022b8,'CommentThreadInputView':_0xd45350,'SuggestionView':_0x75563c,'showAISource':_0x2e0c6c['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x2e0c6c['get']('trackChanges.aiAuthor'),'name':_0x2e0c6c['get']('trackChanges.aiAuthor')?.['name']||Mt(_0x5f6dc2['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x3ba563['suggestionView']['acceptButton']['on']('execute',()=>{_0x5f6dc2['editing']['view']['focus']();}),_0x3ba563['suggestionView']['discardButton']['on']('execute',()=>{_0x5f6dc2['editing']['view']['focus']();}),_0x2a0d1f=_0x2e5b2a['createAnnotationView'](this['editor']['locale'],_0x3ba563),_0x2a0d1f['bind']('isDirty')['to'](_0x3ba563,'isDirty'),_0x2a0d1f['bind']('length')['to'](_0x3ba563),_0x2a0d1f['bind']('type')['to'](_0x3ba563,'type',_0x1e76dc=>'suggestion-'+_0x1e76dc),_0x3ba563['on']('escape',()=>{_0x48a7aa['fire']('escape');}),this['_annotationViews']['set'](_0x177f32['id'],_0x2a0d1f));const _0x2c697c=_0x2770d3['createCommentThreadController'](_0x177f32['commentThread'],_0x3ba563),_0x49fd0a=new bn(_0x5f6dc2,_0x177f32,_0x3ba563,_0x2c697c),_0x4e81c7=_0x177f32['getAllAdjacentSuggestions']()['filter'](_0x56652d=>_0x56652d['isInContent']);_0x3ba563['descriptionParts']=_0x5f6dc2['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x4e81c7),this['_suggestionToController']['set'](_0x177f32,_0x49fd0a),this['_viewToController']['set'](_0x3ba563,_0x49fd0a);const _0x3e7a96=()=>{const _0x1db951=[],_0x236b16=_0x177f32['getAllAdjacentSuggestions']()['filter'](_0xcfea55=>_0xcfea55['isInContent']);for(const _0x220eec of _0x236b16)_0x1db951['push'](..._0x220eec['getMarkers']());return _0x432206(_0x5f6dc2['editing'],_0x1db951);};_0x48a7aa=_0x2e5b2a['createAnnotation']({'view':_0x2a0d1f,'target':_0x3e7a96,'type':()=>'suggestion-'+_0x49fd0a['view']['type'],'isVisible':!!_0x3e7a96()}),_0x2770d3['_bindAnnotationToEditors'](_0x3ba563,_0x48a7aa),_0x2e5b2a['add'](_0x48a7aa),_0x355975['registerAnnotation'](_0x48a7aa);}_destroyController(_0x13b657){const _0xce3159=this['editor']['plugins']['get'](_0x3f08e8),_0x3d5748=this['editor']['plugins']['get'](_0x5a86b5),_0x5c2157=this['_suggestionToController']['get'](_0x13b657),_0x1be5f3=_0x5c2157['view'],_0x5606d2=_0x3d5748['getByInnerView'](_0x1be5f3);_0xce3159['_unbindEditors'](_0x1be5f3),_0x5606d2&&_0x3d5748['remove'](_0x5606d2),this['_suggestionToController']['delete'](_0x13b657),this['_viewToController']['delete'](_0x1be5f3),_0x5c2157['destroy']();}_updateController(_0x613faa){if(!_0x613faa['isInContent']||!this['_suggestionToController']['has'](_0x613faa))return;const _0x6b4052=this['editor']['plugins']['get'](on),_0x37f262=this['_suggestionToController']['get'](_0x613faa),_0x116c5b=_0x613faa['getAllAdjacentSuggestions']();_0x37f262['view']['descriptionParts']=_0x6b4052['descriptionFactory']['getDescriptions'](_0x116c5b);}destroy(){for(const _0x18d41a of this['_suggestionToController']['keys']())this['_destroyController'](_0x18d41a);for(const _0x3ef718 of this['_annotationViews']['values']())_0x3ef718['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x30a070){return'model'in _0x30a070;}var Sn=class extends _0x5cf544{static get requires(){return[on,yn,_0x179390];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x3eb561){this['editor']['plugins']['get'](on)['adapter']=_0x3eb561;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0x47f967){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0x47f967);}getSuggestions({skipNotAttached:_0x5bc382=!0x1,toJSON:_0x6c7d38=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x5bc382,'toJSON':_0x6c7d38});}getSuggestion(_0x5164ed){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x5164ed);}};const Mn=['Pagination'];var On=class extends _0x5cf544{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x2331ad=this['editor'];if(_0x2331ad['config']['define']('trackChangesData.editorCreator',_0x4d07f4=>{const _0xfe2618=_0x2331ad['model']['document']['getRootNames']()['reduce']((_0x2554cc,_0x113d6f)=>(_0x2554cc[_0x113d6f]='',_0x2554cc),{});return _0x2331ad['constructor']['create'](_0xfe2618,_0x4d07f4);}),'function'!=typeof _0x2331ad['config']['get']('trackChangesData')['editorCreator'])throw new _0x2faccb('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x5635c1){return Bn(this['editor'],!0x0,_0x5635c1);}getDataWithDiscardedSuggestions(_0xd68f71){return Bn(this['editor'],!0x1,_0xd68f71);}},wn=class extends _0x5cf544{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a1e11){super(_0x5a1e11),this['result']='end',_0x5a1e11['editing']['view']['_overlayModeHint']='auto',_0x5a1e11['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}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 Fn(_0xd0934d){return void 0x0!==_0xd0934d['getRootsAttributes'];}async function Bn(_0x4be9ef,_0x346492,_0x281efc){const _0x332e78=_0x9d7e32(_0x4be9ef,Mn);if(_0x332e78['plugins']['push'](on,wn),Fn(_0x4be9ef)){_0x332e78['roots']=Object['create'](null);for(const _0x455bd8 of _0x4be9ef['model']['document']['getRootNames']())_0x332e78['roots'][_0x455bd8]={'modelAttributes':_0x4be9ef['getRootAttributes'](_0x455bd8)};}const _0x595ae3=document['createDocumentFragment'](),_0x530812=_0x4be9ef['config']['get']('trackChangesData')['editorCreator'],_0x287444=await _0x530812(_0x332e78,()=>function(_0x34fd1b){const _0x4f05ed=document['createElement']('div');return _0x34fd1b['appendChild'](_0x4f05ed),_0x4f05ed;}(_0x595ae3));!function(_0x24e504,_0x10fa20){const _0x3dc94c=_0x24e504['model']['document']['getRootNames']()['reduce']((_0x165423,_0x279937)=>(_0x165423[_0x279937]=_0x24e504['data']['get']({'rootName':_0x279937}),_0x165423),{}),_0x5bdc57=_0x24e504['plugins']['get']('Users')['users']['map'](_0x56f416=>({'id':_0x56f416['id'],'name':_0x56f416['name']})),_0x2c36a0=_0x24e504['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4af5f5=_0x24e504['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3fdcce=_0x10fa20['plugins']['get']('Users'),_0x36f242=_0x10fa20['plugins']['get']('TrackChangesEditing'),_0x58c325=_0x10fa20['plugins']['get']('CommentsRepository');for(const _0x2a1df8 of _0x58c325['getCommentThreads']())_0x2a1df8['remove']();for(const _0x5db580 of _0x5bdc57)_0x3fdcce['getUser'](_0x5db580['id'])||_0x3fdcce['addUser'](_0x5db580);_0x3fdcce['me']||_0x3fdcce['useAnonymousUser']();for(const _0x50c2de of _0x4af5f5)_0x58c325['addCommentThread'](_0x50c2de);for(const _0x1a5872 of _0x2c36a0)_0x36f242['addSuggestionData'](_0x1a5872);_0x10fa20['data']['set'](_0x3dc94c);}(_0x4be9ef,_0x287444),_0x287444['execute'](_0x346492?'acceptAllSuggestions':'discardAllSuggestions');const _0x135269=Fn(_0x287444)?_0x287444['getFullData'](_0x281efc):_0x287444['data']['get'](_0x281efc);return await _0x287444['destroy'](),_0x135269;}var vn=class extends _0x4c905d{options;constructor(_0x4e7bb5,_0x325409){super(_0x4e7bb5),this['options']=_0x325409,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(_0x1a9a56,_0xc07cdf){if(!this['element'])return;const _0x4230be=[];for(const [_0x379e84,_0x10a03c]of _0x1a9a56){const _0x523a6c=document['createElement']('div');_0x523a6c['setAttribute']('data-ck-root-name',_0x379e84),_0x523a6c['className']=_0x10a03c['classes']+'\x20ck-track-changes-preview__root-container',_0x523a6c['innerHTML']=_0x10a03c['content'],_0x4230be['push'](_0x523a6c);}_0xc07cdf(this['element'],_0x4230be),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0x3b0b10{constructor(_0x26e631){super(_0x26e631),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x3c6e11=this['editor'],_0x1a0f58=_0x3c6e11['locale'],_0x5f1a35=_0x3c6e11['plugins']['get']('Dialog');let _0x46bb50;const _0x1a8fc8=function(_0x37adf9){const _0x3372d9={};if('editables'in _0x37adf9['ui']['view']){for(const [_0x2b06c2,_0x261be1]of Object['entries'](_0x37adf9['ui']['view']['editables']))_0x3372d9[_0x2b06c2]=_0x261be1['element'];}else _0x3372d9[_0x37adf9['model']['document']['getRootNames']()[0x0]]=_0x37adf9['ui']['view']['editable']['element'];return _0x3372d9;}(_0x3c6e11),_0x535f3b=function(_0x5407bd){let _0x31fc30=0x0;for(const _0x502d57 of Object['values'](_0x5407bd))_0x31fc30=Math['max'](_0x31fc30,_0x502d57['getBoundingClientRect']()['width']);let _0x48df60=0x0;for(const _0x32e9a1 of Object['values'](_0x5407bd))_0x48df60+=_0x32e9a1['getBoundingClientRect']()['height'];const _0x20124e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x31fc30,'height':Math['min'](_0x48df60,_0x20124e)};}(_0x1a8fc8);_0x5f1a35['show']({'id':'finalContentPreview','title':Mt(_0x1a0f58,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0x1a0f58,{'dialogRects':_0x535f3b}),'onHide':()=>{_0x46bb50['detachFromDom']();},'onShow':()=>{_0x3c6e11['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3e9a86=>{const _0x145e67=this['_standarizeRootsData'](_0x3e9a86,_0x3c6e11,_0x1a8fc8);_0x5f1a35['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x145e67,_0x3c6e11['config']['get']('trackChanges.preview.renderFunction'));}),_0x46bb50=new _0x108842(_0x1a0f58,[_0x5f1a35['view']]),_0x46bb50['attachToDom'](),_0x46bb50['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3c6e11['once']('destroy',()=>{_0x46bb50['detachFromDom']();});const _0x5a7544=_0x5f1a35['view']['headerView']['class'];_0x5f1a35['view']['headerView']['class']=_0x5a7544?_0x5a7544+'\x20ck-reset_all':'ck-reset_all',_0x5f1a35['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5f1a35['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2884a0=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x42a9a2=_0x2884a0['previewMode'],_0x348f82={};if('$labels'===_0x42a9a2){for(const _0x55eb85 of _0x2884a0['getMergeFieldsIds']())_0x348f82[_0x55eb85]=_0x2884a0['getLabel'](_0x55eb85)||_0x55eb85;}else{const _0x1d8031='$defaultValues'===_0x42a9a2?_0x2884a0['getDefaultValues']():_0x2884a0['getDataSetValues'](_0x42a9a2,!0x0);for(const _0x1b75ae of Object['entries'](_0x1d8031)){const [_0x2575c1,_0x1fd0a1]=_0x1b75ae;_0x348f82[_0x2575c1]=null!==_0x1fd0a1?_0x1fd0a1:_0x2884a0['getLabel'](_0x2575c1)||_0x2575c1;}}return{'mergeFieldsData':_0x348f82};}_standarizeRootsData(_0x22683f,_0x2f16d5,_0x20ba2c){let _0x3dadec;_0x3dadec='string'==typeof _0x22683f?{[_0x2f16d5['model']['document']['getRootNames']()[0x0]]:_0x22683f}:_0x22683f;const _0x514f3e=this['_fixMediaEmbeds'](_0x3dadec,_0x2f16d5);return function(_0x2b149c,_0x46e633){for(const [_0x2faf88,_0x32ba1b]of _0x2b149c)_0x32ba1b['classes']=_0x46e633[_0x2faf88]['classList']['value']['replace']('ck-focused','');return _0x2b149c;}(this['_sortRoots'](_0x2f16d5)['reduce']((_0x15a806,_0x47451c)=>(_0x15a806['push']([_0x47451c,{'content':_0x514f3e[_0x47451c],'classes':''}]),_0x15a806),[]),_0x20ba2c);}['_fixMediaEmbeds'](_0x44032f,_0x2a05ed){if(!_0x2a05ed['plugins']['has']('MediaEmbedEditing'))return _0x44032f;const _0x4b274c=_0x2a05ed['plugins']['get']('MediaEmbedEditing');for(const [_0x5725b4,_0x3dff3b]of Object['entries'](_0x44032f)){const _0x243f9f=document['createElement']('div');_0x243f9f['innerHTML']=_0x3dff3b,_0x243f9f['querySelectorAll']('figure.media')['forEach'](_0x55f408=>{const _0xcf54dd=_0x55f408['querySelector']('oembed');if(_0xcf54dd){const _0x25bf7b=_0xcf54dd['getAttribute']('url');if(_0x25bf7b){const _0x2f47ee=_0x4b274c['registry']['getMediaViewElement'](new ot(_0x2a05ed['editing']['view']['document']),_0x25bf7b,{'elementName':'','renderForEditingView':!0x0}),_0x150d3f=document['createElement']('div');_0x150d3f['classList']['add']('ck-media__wrapper'),_0x2f47ee['render'](_0x150d3f,_0x2a05ed['editing']['view']['domConverter']),_0xcf54dd['replaceWith'](_0x150d3f);}}}),_0x44032f[_0x5725b4]=_0x243f9f['innerHTML'];}return _0x44032f;}_sortRoots(_0x58e9f4){if(!function(_0x258119){return void 0x0!==_0x258119['getRootsAttributes'];}(_0x58e9f4))return _0x58e9f4['model']['document']['getRootNames']();const _0x1bed39=[],_0x1f2a10=new Map();for(const _0x5be5e8 of _0x58e9f4['model']['document']['getRootNames']()){const _0x7b6c9e=_0x58e9f4['editing']['view']['getDomRoot'](_0x5be5e8)['getClientRects']()['item'](0x0);_0x1bed39['push'](_0x5be5e8),_0x1f2a10['set'](_0x5be5e8,_0x7b6c9e);}return _0x1bed39['sort']((_0x286c6a,_0x4ee4f5)=>{const _0x105072=_0x1f2a10['get'](_0x286c6a),_0x152389=_0x1f2a10['get'](_0x4ee4f5);return _0x105072['y']-_0x152389['y']||_0x105072['x']-_0x152389['x'];}),_0x1bed39;}},Un=class extends _0x5cf544{static get requires(){return[On,_0x1f1a23];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b970b){super(_0x3b970b),_0x3b970b['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x3b970b['config']['define']('trackChanges.preview.renderFunction',(_0x2bb3be,_0x39dafa)=>{for(const _0x227d44 of _0x39dafa)_0x2bb3be['appendChild'](_0x227d44);});}};export{_t as AcceptSuggestionCommand,kn as BaseSuggestionThreadView,pt as DiscardSuggestionCommand,Rt as ExecuteOnAllSuggestionsCommand,yt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,St as Suggestion,Ot as SuggestionDescriptionFactory,Cn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,Tt as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};
23
+ import{Command as _0x3fbb21,PendingActions as _0x471eed,Plugin as _0x5d30aa}from'@ckeditor/ckeditor5-core';import{Annotations as _0x111010,Comments as _0x201340,CommentsRepository as _0x3f1c40,EditorAnnotations as _0x45827d}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x2e8152,Collection as _0xcd4097,FocusTracker as _0xd0a211,KeystrokeHandler as _0x224894,ObservableMixin as _0x1e7d4b,getEnvKeystrokeText as _0x2da848,insertToPriorityArray as _0x479b9d,logWarning as _0x100db6,priorities as _0x35f7ae,uid as _0x592457}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x41e32b,IconCancel as _0x5be361,IconCheck as _0x4a6bdc,IconSparkle as _0x4749c0,IconTrackChanges as _0x325b0e}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x5270e2,Dialog as _0x5349e9,FocusCycler as _0x1f4a4b,ListSeparatorView as _0x24d717,MenuBarMenuListItemButtonView as _0x45bfb6,MenuBarMenuListItemView as _0x3a5f85,MenuBarMenuListView as _0x6db6a,MenuBarMenuView as _0x4f66c4,SplitButtonView as _0x2404b6,UIModel as _0x140be0,View as _0xb2df0c,ViewCollection as _0x5430c2,addListToDropdown as _0x1b2046,createDropdown as _0x39b52a,normalizeColorOptions as _0xe0e1a3}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x42f564,CollaborationUserColor as _0x54c0f7,FOCUS_ANNOTATION_KEYSTROKE as _0x37652e,LateFocusButtonView as _0x373d52,PillView as _0x1b1d33,SuggestionsConversion as _0x3bdd00,User as _0xb6a227,UserView as _0x4ca672,Users as _0x3a5db0,fixElementSuggestionRange as _0x2d22de,getAllMarkersDomElementsSorted as _0x54047b,getDateTimeFormatter as _0x27bc5a,hashObject as _0x38de7e,isInvalidAttributeOperation as _0x1ee3f4,sanitizeEditorConfig as _0x3e0377,setupThreadKeyboardNavigation as _0x4e378f,splitSuggestionMarkerName as tt,surroundingMarkersDetector as et,trimHtml as nt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as it,ModelLivePosition as st,ModelLiveRange as rt,ViewDowncastWriter as ot}from'@ckeditor/ckeditor5-engine';import{cloneDeep as at,isEqual as ct,omit as lt,set as ut,unset as dt}from'es-toolkit/compat';import{ClipboardMarkersUtils as ht,ClipboardPipeline as gt}from'@ckeditor/ckeditor5-clipboard';import{Delete as ft,Input as mt}from'@ckeditor/ckeditor5-typing';import{Enter as Et}from'@ckeditor/ckeditor5-enter';var Tt=class extends _0x3fbb21{['_enabledCommands'];constructor(_0x5b57f7,_0x2aeb56){super(_0x5b57f7),this['_enabledCommands']=_0x2aeb56,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 _0x3ec083 of this['editor']['commands']['commands']())_0x3ec083['affectsData']&&!this['_enabledCommands']['has'](_0x3ec083)&&_0x3ec083['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xbfe231 of this['editor']['commands']['commands']())_0xbfe231['affectsData']&&!this['_enabledCommands']['has'](_0xbfe231)&&_0xbfe231['clearForceDisabled']('TrackChangesCommand');}},_t=class extends _0x3fbb21{_suggestions;constructor(_0x2f34c5,_0x276e97){super(_0x2f34c5),this['_suggestions']=_0x276e97,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x407fb4){const _0x261be7=this['_suggestions']['get'](_0x407fb4);if(!_0x261be7)throw new _0x2e8152('track-changes-accept-suggestion-not-found',this);const _0x280aca=_0x261be7['getRanges']();this['editor']['model']['canEditAt'](_0x280aca)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x261be7);}},pt=class extends _0x3fbb21{_suggestions;constructor(_0x2315a8,_0x402f68){super(_0x2315a8),this['_suggestions']=_0x402f68,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x348d16){const _0x1382d4=this['_suggestions']['get'](_0x348d16);if(!_0x1382d4)throw new _0x2e8152('track-changes-discard-suggestion-not-found',this);const _0x2f4691=_0x1382d4['getRanges']();this['editor']['model']['canEditAt'](_0x2f4691)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1382d4);}};function Lt(_0x3913ee,_0xe1c9d7){let _0x11a2c6='';return _0x11a2c6+=_0x3913ee['split']('*')['map']((_0x3337d6,_0x3281ad)=>_0x3281ad%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+It(_0x3337d6)+'</span>':It(_0x3337d6))['join'](''),_0xe1c9d7&&(_0x11a2c6+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xe1c9d7['value']+'\x22\x20title=\x22'+_0xe1c9d7['title']+'\x22></span>'),_0x11a2c6;}function It(_0x5173a9){const _0xf458b7=document['createElement']('span');return _0xf458b7['innerText']=_0x5173a9,_0xf458b7['innerHTML'];}function At(_0x5a46b6){return _0x5a46b6['sort']((_0x29b041,_0x1d9fb1)=>'attribute'===_0x29b041['type']&&'attribute'!==_0x1d9fb1['type']?-0x1:'attribute'!==_0x29b041['type']&&'attribute'===_0x1d9fb1['type']?0x1:'deletion'==_0x29b041['type']&&'deletion'!=_0x1d9fb1['type']?-0x1:'deletion'!=_0x29b041['type']&&'deletion'==_0x1d9fb1['type']?0x1:0x0);}function bt(_0x49779f,_0x54a4cf){let _0x313aaa,_0x5056bf=0x0;const _0x4dcb0e=[],_0x1448d4=_0x54a4cf['schema'];for(;_0x5056bf<_0x49779f['length'];){const _0x4b1ae7=_0x49779f[_0x5056bf],_0x21d9ad=_0x49779f[_0x5056bf+0x1];_0x313aaa||(_0x313aaa=_0x54a4cf['createPositionBefore'](_0x4b1ae7)),kt(_0x54a4cf,_0x4b1ae7,_0x21d9ad)||(_0x4dcb0e['push'](_0x54a4cf['createRange'](_0x313aaa,_0x1448d4['isObject'](_0x4b1ae7)?_0x54a4cf['createPositionAfter'](_0x4b1ae7):_0x54a4cf['createPositionAt'](_0x4b1ae7,'end'))),_0x313aaa=null),_0x5056bf++;}return _0x4dcb0e;}function kt(_0x2278f4,_0xe58227,_0x43eeff){if(!_0x43eeff)return!0x1;const _0x5a95e2=_0x2278f4['createPositionAfter'](_0xe58227),_0x3a5322=_0x2278f4['createPositionBefore'](_0x43eeff);return _0x5a95e2['isTouching'](_0x3a5322);}function Ct(_0x4305cc,_0x160493,_0x581200){for(;_0x581200['length'];){const _0x5ddc4d=_0x581200['splice'](0x0,0x64);_0x4305cc['change'](()=>{for(const _0x56e263 of _0x5ddc4d)_0x56e263['isInContent']&&_0x160493['execute'](_0x56e263['id']);});}}var Rt=class extends _0x3fbb21{['_command'];_suggestions;constructor(_0x1f067a,_0x1619ff,_0x54f8e){super(_0x1f067a),this['_command']=_0x1619ff,this['_suggestions']=_0x54f8e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4d74b8=Array['from'](this['_suggestions']['values']())['some'](_0x57018e=>_0x57018e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4d74b8;}execute(){const _0x100516=At(Array['from'](this['_suggestions']['values']()));for(const _0x36d7b5 of _0x100516){const _0x201be3=_0x36d7b5['getRanges']();if(!this['editor']['model']['canEditAt'](_0x201be3))return;}Ct(this['editor']['model'],this['_command'],_0x100516);}},yt=class extends _0x3fbb21{['_command'];_suggestions;_selectedSuggestions;constructor(_0x383aeb,_0x24e6c3,_0x1636d6){super(_0x383aeb),this['_command']=_0x24e6c3,this['_suggestions']=_0x1636d6,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4d4d8e=this['editor']['model']['document']['selection'],_0x5c41ef=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5375c7,_0x59ea4a){const _0x5b1042=Array['from'](_0x5375c7['getRanges']()),_0xb522a0=new Set();for(const _0x53fc9c of _0x59ea4a)if(_0x53fc9c['isInContent']){for(const _0x1de4c3 of _0x5b1042)for(const _0x5278b3 of _0x53fc9c['getRanges']())(_0x1de4c3['isIntersecting'](_0x5278b3)||_0x5375c7['isCollapsed']&&!_0x53fc9c['isMultiRange']&&_0x53fc9c['next']&&_0x5278b3['end']['isTouching'](_0x1de4c3['start']))&&_0xb522a0['add'](_0x53fc9c);}return _0xb522a0;}(_0x4d4d8e,_0x5c41ef),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x463533=At(Array['from'](this['_selectedSuggestions']));for(const _0x28d543 of _0x463533){const _0x1acb5e=_0x28d543['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1acb5e))return;}Ct(this['editor']['model'],this['_command'],_0x463533);}};const Nt=/* #__PURE__ -- @preserve */
24
+ _0x1e7d4b();var St=class Suggestion extends Nt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x370fc6,_0x5c41c6){super(),this['id']=_0x5c41c6['id'],this['type']=_0x5c41c6['type'],this['subType']=_0x5c41c6['subType']||null,this['author']=_0x5c41c6['author'],this['creator']=_0x5c41c6['creator']||_0x5c41c6['author'],this['data']=null,this['_originalSuggestionId']=_0x5c41c6['originalSuggestionId']||null,this['_model']=_0x370fc6,this['_onAccept']=_0x5c41c6['onAccept'],this['_onDiscard']=_0x5c41c6['onDiscard'],this['_onAttributesChange']=_0x5c41c6['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5c41c6['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x1ed548=this;for(;_0x1ed548['previous'];)_0x1ed548=_0x1ed548['previous'];return _0x1ed548;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x1381ed){this['_markerNames']['add'](_0x1381ed);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0xe18a2f=>this['_model']['markers']['get'](_0xe18a2f))['filter'](_0x537657=>_0x537657);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xa329c1=>{for(const _0x271986 of this['getMarkers']())_0xa329c1['removeMarker'](_0x271986);}),this['_markerNames']['clear']();}['removeMarker'](_0x2eea71){this['_model']['change'](_0x5e294d=>{_0x5e294d['removeMarker'](_0x2eea71);}),this['_markerNames']['delete'](_0x2eea71);}['addRange'](_0x39566d){const _0x4cc97e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x4cc97e),this['_model']['change'](_0x13e32f=>{_0x13e32f['addMarker'](_0x4cc97e,{'range':_0x39566d,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x564dfb){for(const _0x46efc3 of this['getRanges']())if(_0x46efc3['isIntersecting'](_0x564dfb))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x555185=>_0x555185['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x22d967,_0x214f93)=>[..._0x22d967,..._0x214f93['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x25f317=this['getRanges']();if(0x1!=_0x25f317['length'])return null;const _0x28eb20=_0x25f317[0x0],_0x5901f2=_0x28eb20['start']['nodeAfter'],_0x349a60=_0x28eb20['end']['nodeBefore'];return _0x5901f2 instanceof it?_0x5901f2!=_0x349a60?null:_0x5901f2: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 _0x5a882c=[];let _0x479e76=this['head'];for(;_0x479e76;)_0x5a882c['push'](_0x479e76),_0x479e76=_0x479e76['next'];return _0x5a882c;}setAttribute(_0x47e89a,_0x2e5cef){const _0x204dd6=at(this['attributes']);ut(_0x204dd6,_0x47e89a,_0x2e5cef),ct(_0x204dd6,this['attributes'])||(this['attributes']=_0x204dd6,this['_onAttributesChange'](_0x204dd6));}removeAttribute(_0x23b69a){const _0x2bbea5=at(this['attributes']);dt(_0x2bbea5,_0x23b69a),ct(_0x2bbea5,this['attributes'])||(this['attributes']=_0x2bbea5,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 _0x592457()['substr'](0x1,0x5);}};function Mt(_0x303395,_0x2407eb,_0x46a064){const _0x5d14b7=_0x303395['t'],t=_0x303395['t'];switch(_0x2407eb){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',_0x46a064);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x46a064);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x46a064);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x46a064);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x46a064);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',_0x46a064);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x46a064);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',_0x46a064);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x46a064);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x46a064);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x46a064);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x46a064);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x46a064);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x46a064);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x46a064);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x46a064);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x46a064);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x46a064);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x46a064);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x46a064);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x46a064);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x46a064);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x46a064);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x46a064);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x46a064);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'},_0x46a064);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x46a064);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x46a064);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x46a064);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x46a064);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x46a064);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x46a064);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x46a064);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'},_0x46a064);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'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x46a064);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x46a064);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x46a064);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x46a064);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x46a064);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'},_0x46a064);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x46a064);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'},_0x46a064);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'},_0x46a064);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x46a064);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'},_0x46a064);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x46a064);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'},_0x46a064);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x46a064);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x46a064);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x46a064);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x46a064);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x46a064);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'},_0x46a064);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x46a064);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x5d14b7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x46a064);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5d14b7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x46a064);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x46a064);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'},_0x46a064);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'},_0x46a064);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'},_0x46a064);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2407eb;}}var Ot=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x499144,_0x5f492f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x499144,this['_locale']=_0x5f492f;}getDescriptions(_0xa93db0){const _0x2e576b=[],_0x1e7e5c=new Set(),_0x4a35fa=new Set();for(let _0x2135f1=0x0;_0x2135f1<_0xa93db0['length'];_0x2135f1++){const _0x1ce4ff=_0xa93db0[_0x2135f1];if(!_0x1ce4ff['isInContent'])continue;const _0x381433=this['_handleCustomCallbackDescription'](_0x1ce4ff);if(_0x381433){if(null!=_0x1ce4ff['subType']){if(_0x1e7e5c['has'](_0x1ce4ff['subType']))continue;_0x1e7e5c['add'](_0x1ce4ff['subType']);}_0x2e576b['push'](_0x381433);}else{if('attribute'==_0x1ce4ff['type']){const _0xab6443=_0x1ce4ff['data']['key'];if(_0x4a35fa['has'](_0xab6443))continue;_0x4a35fa['add'](_0x1ce4ff['data']['key']),'$elementName'==_0xab6443?this['_handleRenameSuggestionDescription'](_0x2e576b,_0x1ce4ff):this['_handleAttributeSuggestionDescription'](_0x2e576b,_0x1ce4ff);continue;}'insertion'!=_0x1ce4ff['type']&&'deletion'!=_0x1ce4ff['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2e576b,_0x1ce4ff,_0xa93db0[_0x2135f1+0x1]);}}return this['_resolveDescriptionItems'](_0x2e576b);}registerDescriptionCallback(_0x5c14a7){this['_customCallbacks']['push'](_0x5c14a7);}registerElementLabel(_0x24ab9f,_0x4d1fd0,_0x49d763=_0x35f7ae['normal']){'function'==typeof _0x24ab9f?_0x479b9d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x24ab9f,'label':_0x4d1fd0,'priority':_0x49d763}):this['_itemLabels']['set'](_0x24ab9f,_0x4d1fd0);}registerAttributeLabel(_0x2d94bd,_0x10f15d){this['_attributeLabels']['set'](_0x2d94bd,_0x10f15d);}getItemLabel(_0x1201d8,_0x85b85=0x1){let _0x1abafc;for(const _0x2c9f76 of this['_itemLabelsCallbacks'])if(_0x2c9f76['matchingCallback'](_0x1201d8)){_0x1abafc=_0x2c9f76['label'];break;}return _0x1abafc||(_0x1abafc=this['_itemLabels']['get'](_0x1201d8['name'])),_0x1abafc?_0x1abafc(_0x85b85):0x1!==_0x85b85?_0x85b85+'\x20'+_0x1201d8['name']+'s':''+_0x1201d8['name'];}_addDescriptionItems(_0x3aeeee,_0x1568cf){const _0x5bd7e9=_0x1568cf['getFirstRange']()['getWalker'](),_0x2f9b51='insertion'==_0x1568cf['type']?'add':'remove';for(const _0x18ebcd of _0x5bd7e9){const _0x48d41a=_0x18ebcd['item'],_0x5655c6=_0x3aeeee[_0x3aeeee['length']-0x1];if(_0x48d41a['is']('$textProxy'))_0x5655c6&&_0x5655c6['type']['indexOf']('Container')>-0x1&&_0x3aeeee['pop'](),_0x5655c6&&'text'==_0x5655c6['type']?_0x5655c6[_0x2f9b51]+=_0x48d41a['data']:_0x3aeeee['push']({'type':'text','add':'add'==_0x2f9b51?_0x48d41a['data']:'','remove':'remove'==_0x2f9b51?_0x48d41a['data']:''});else{if(this['_schema']['isObject'](_0x48d41a)){const _0x224868=_0x48d41a;if(_0x5655c6&&_0x5655c6['type']['indexOf']('Container')>-0x1&&_0x3aeeee['pop'](),'elementEnd'==_0x18ebcd['type'])continue;_0x5655c6&&_0x5655c6['type']==_0x2f9b51+'Object'&&_0x5655c6['element']['name']==_0x224868['name']?_0x5655c6['quantity']++:_0x3aeeee['push']({'type':_0x2f9b51+'Object','element':_0x224868,'quantity':0x1}),_0x5bd7e9['skip'](_0x11a9f7=>!('elementEnd'==_0x11a9f7['type']&&_0x11a9f7['item']==_0x48d41a));}else{if(this['_schema']['checkChild'](_0x48d41a,'$text')||_0x48d41a['is']('element','softBreak')){const _0x988e4d=_0x48d41a;if('add'==_0x2f9b51&&'elementStart'==_0x18ebcd['type']||'remove'==_0x2f9b51&&'elementEnd'==_0x18ebcd['type'])continue;if(_0x5655c6&&-0x1==_0x5655c6['type']['indexOf']('Container')){'text'==_0x5655c6['type']&&(_0x5655c6[_0x2f9b51]+='\x0a');continue;}let _0x1aaeae;if(_0x1aaeae='add'==_0x2f9b51?_0x988e4d['nextSibling']&&!this['_schema']['isObject'](_0x988e4d['nextSibling'])?_0x988e4d['nextSibling']:null:_0x988e4d['previousSibling']&&!this['_schema']['isObject'](_0x988e4d['previousSibling'])?_0x988e4d['previousSibling']:null,_0x988e4d['isEmpty']||_0x1aaeae&&_0x1aaeae['isEmpty']){const _0x701213=_0x1aaeae&&_0x1aaeae['isEmpty']?_0x1aaeae:_0x988e4d;_0x5655c6&&_0x5655c6['type']==_0x2f9b51+'EmptyContainer'&&_0x5655c6['element']['name']==_0x701213['name']?_0x5655c6['quantity']++:_0x3aeeee['push']({'type':_0x2f9b51+'EmptyContainer','element':_0x701213,'quantity':0x1});}else _0x3aeeee['push']({'type':_0x2f9b51+'Container','element':_0x988e4d});}}}}}_resolveDescriptionItems(_0x5408bb){const _0x4430cb=this['_locale'],_0x207075=[],_0x5f4e94=[],_0x61606c=[];for(const _0x4e7ad5 of _0x5408bb)switch(_0x4e7ad5['type']){case'text':if(_0x4e7ad5['add']=_0x4e7ad5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4e7ad5['remove']=_0x4e7ad5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4e7ad5['add']&&''!=_0x4e7ad5['remove']){_0x207075['push']({'type':'replace','content':Mt(_0x4430cb,'REPLACE_TEXT',['\x22'+_0x4e7ad5['remove']+'\x22','\x22'+_0x4e7ad5['add']+'\x22'])});continue;}if(null!=_0x4e7ad5['add']['match'](/^ +$/)){_0x207075['push']({'type':'insertion','content':Mt(_0x4430cb,'*Insert:*\x20%0',Mt(_0x4430cb,'ELEMENT_SPACE',_0x4e7ad5['add']['length']))});continue;}if(null!=_0x4e7ad5['remove']['match'](/^ +$/)){_0x207075['push']({'type':'deletion','content':Mt(_0x4430cb,'*Remove:*\x20%0',Mt(_0x4430cb,'ELEMENT_SPACE',_0x4e7ad5['remove']['length']))});continue;}if(''!=_0x4e7ad5['add']){_0x207075['push']({'type':'insertion','content':Mt(_0x4430cb,'*Insert:*\x20%0','\x22'+_0x4e7ad5['add']+'\x22')});continue;}_0x207075['push']({'type':'deletion','content':Mt(_0x4430cb,'*Remove:*\x20%0','\x22'+_0x4e7ad5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x207075['push']({'type':'insertion','content':Mt(_0x4430cb,'*Insert:*\x20%0',this['getItemLabel'](_0x4e7ad5['element'],_0x4e7ad5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x207075['push']({'type':'deletion','content':Mt(_0x4430cb,'*Remove:*\x20%0',this['getItemLabel'](_0x4e7ad5['element'],_0x4e7ad5['quantity']))});continue;case'addContainer':_0x207075['push']({'type':'insertion','content':Mt(_0x4430cb,'*Split:*\x20%0',this['getItemLabel'](_0x4e7ad5['element'],_0x4e7ad5['quantity']))});continue;case'removeContainer':_0x207075['push']({'type':'deletion','content':Mt(_0x4430cb,'*Merge:*\x20%0',this['getItemLabel'](_0x4e7ad5['element'],_0x4e7ad5['quantity']))});continue;case'addFormat':_0x5f4e94['push'](_0x4e7ad5['key']);continue;case'removeFormat':_0x61606c['push'](_0x4e7ad5['key']);continue;default:_0x207075['push'](_0x4e7ad5);}if(_0x5f4e94['length']){const _0x5bc5f1=_0x5f4e94['map'](_0x44a108=>this['_attributeLabels']['has'](_0x44a108)?this['_attributeLabels']['get'](_0x44a108):_0x44a108)['join'](',\x20');_0x207075['push']({'type':'format','content':Mt(this['_locale'],'*Set\x20format:*\x20%0',_0x5bc5f1)});}if(_0x61606c['length']){const _0x61bfca=_0x61606c['map'](_0x793157=>this['_attributeLabels']['has'](_0x793157)?this['_attributeLabels']['get'](_0x793157):_0x793157)['join'](',\x20');_0x207075['push']({'type':'format','content':Mt(this['_locale'],'*Remove\x20format:*\x20%0',_0x61bfca)});}return _0x207075;}_handleCustomCallbackDescription(_0x591ccb){for(const _0x1eab8b of this['_customCallbacks']){const _0x529d50=_0x1eab8b(_0x591ccb);if(_0x529d50&&'type'in _0x529d50)return _0x529d50;}}_handleAttributeSuggestionDescription(_0x140d01,_0x41abb9){const _0x255c05=_0x41abb9['data'],_0xe1ed71=void 0x0===_0x255c05['newValue']?'removeFormat':'addFormat';_0x140d01['push']({'type':_0xe1ed71,'key':_0x255c05['key']});}_handleRenameSuggestionDescription(_0xfcc46b,_0x2301bb){_0xfcc46b['push']({'type':'format','content':Mt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2301bb['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x1ea874,_0x30b5a2,_0x21aff7){if(this['_addDescriptionItems'](_0x1ea874,_0x30b5a2),_0x21aff7&&_0x21aff7['getFirstRange']()&&!_0x30b5a2['getFirstRange']()['end']['isEqual'](_0x21aff7['getFirstRange']()['start'])){const _0x54f7fc=_0x1ea874[_0x1ea874['length']-0x1],_0x2a9981='insertion'==_0x30b5a2['type']?'add':'remove';_0x54f7fc&&'text'==_0x54f7fc['type']&&(_0x54f7fc[_0x2a9981]+='\x0a');}}},wt=class extends _0x5d30aa{afterInit(){const _0x5c423=this['editor'],_0x390525=_0x5c423['plugins']['get']('TrackChangesEditing');_0x5c423['commands']['get']('showAIAssistant')&&_0x390525['enableCommand']('showAIAssistant');}},Ft=class extends _0x5d30aa{afterInit(){const _0x2dd900=this['editor'],_0x4f5215=_0x2dd900['plugins']['get']('TrackChangesEditing');_0x2dd900['commands']['get']('toggleAi')&&_0x4f5215['enableCommand']('toggleAi');}},Bt=class extends _0x5d30aa{afterInit(){const _0x21ac67=this['editor'],_0x1070d2=_0x21ac67['plugins']['get']('TrackChangesEditing');_0x21ac67['commands']['get']('aiQuickAction')&&_0x1070d2['enableCommand']('aiQuickAction');}},vt=class extends _0x5d30aa{afterInit(){const _0x41affa=this['editor'],_0x475e68=_0x41affa['locale'];if(!_0x41affa['plugins']['has']('AlignmentEditing'))return;const _0x2c4e85=_0x41affa['plugins']['get']('TrackChangesEditing');_0x2c4e85['enableDefaultAttributesIntegration']('alignment'),_0x2c4e85['descriptionFactory']['registerAttributeLabel']('alignment',Mt(_0x475e68,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xc122a2=this['editor'],_0x4c17d0=_0xc122a2['locale'];_0xc122a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b43d0=>{if('formatBlock'!=_0x5b43d0['type'])return;const {data:_0x29e098}=_0x5b43d0;if(_0x29e098&&'alignment'==_0x29e098['commandName']){const _0x1cab7e=_0x29e098['commandParams'][0x0]['value'];return{'type':'format','content':Mt(_0x4c17d0,'*Format:*\x20%0',function(_0x41bdcb){switch(_0x41bdcb){case'left':return Mt(_0x4c17d0,'FORMAT_ALIGN_TO_LEFT');case'right':return Mt(_0x4c17d0,'FORMAT_ALIGN_TO_RIGHT');case'center':return Mt(_0x4c17d0,'FORMAT_ALIGN_TO_CENTER');case'justify':return Mt(_0x4c17d0,'FORMAT_JUSTIFY_TEXT');}}(_0x1cab7e))};}});}};const Dt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Ut=class extends _0x5d30aa{afterInit(){const _0x54ad82=this['editor'],_0x2e5d9f=_0x54ad82['plugins']['get']('TrackChangesEditing'),_0x19f8a1=_0x54ad82['locale'];for(const _0x5639ec of Dt){if(!_0x54ad82['plugins']['has'](_0x5639ec))continue;const _0x2ce4cd=_0x5639ec['slice'](0x0,-0x7)['toLowerCase'](),_0x457604='FORMAT_'+_0x2ce4cd['toUpperCase']();_0x2e5d9f['enableDefaultAttributesIntegration'](_0x2ce4cd),_0x2e5d9f['descriptionFactory']['registerAttributeLabel'](_0x2ce4cd,Mt(_0x19f8a1,_0x457604));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x15f2d6=this['editor'],_0x56c5f3=_0x15f2d6['locale'],_0x50b97d=_0x15f2d6['plugins']['get']('TrackChangesEditing');function _0x1912f0(_0x157df2,_0x3e0d94){_0x50b97d['descriptionFactory']['registerDescriptionCallback'](_0x14aba2=>{if('formatInline'!=_0x14aba2['type'])return;const {data:_0x466470}=_0x14aba2;return _0x466470&&_0x466470['commandName']===_0x157df2?_0x466470['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x56c5f3,'*Format:*\x20%0',_0x3e0d94)}:{'type':'format','content':Mt(_0x56c5f3,'*Remove\x20format:*\x20%0',_0x3e0d94)}:void 0x0;});}_0x1912f0('bold',Mt(_0x56c5f3,'FORMAT_BOLD')),_0x1912f0('italic',Mt(_0x56c5f3,'FORMAT_ITALIC')),_0x1912f0('underline',Mt(_0x56c5f3,'FORMAT_UNDERLINE')),_0x1912f0('code',Mt(_0x56c5f3,'FORMAT_CODE')),_0x1912f0('strikethrough',Mt(_0x56c5f3,'FORMAT_STRIKETHROUGH')),_0x1912f0('subscript',Mt(_0x56c5f3,'FORMAT_SUBSCRIPT')),_0x1912f0('superscript',Mt(_0x56c5f3,'FORMAT_SUPERSCRIPT'));}},Pt=class extends _0x5d30aa{afterInit(){const _0x55c57b=this['editor'],_0x58b61e=_0x55c57b['locale'];if(!_0x55c57b['plugins']['has']('BlockQuoteEditing'))return;const _0x2244e8=_0x55c57b['plugins']['get']('TrackChangesEditing'),_0x16780c=this['editor']['commands']['get']('blockQuote');_0x2244e8['enableCommand']('blockQuote',(_0x5ad8ea,_0x5d5c71={})=>{const _0x3f7232=this['editor']['model']['document']['selection'],_0x225047=_0x5d5c71&&void 0x0!==_0x5d5c71['forceValue']?_0x5d5c71['forceValue']:!_0x16780c['value'];let _0x56c06a=[];if(_0x225047){const _0x13958d=Array['from'](_0x3f7232['getSelectedBlocks']())['filter'](_0x4ea58c=>xt(_0x4ea58c)||function(_0x5b6a10,_0x3b2a13){const _0x98f298=_0x3b2a13['createContext'](_0x5b6a10['parent']);return!!_0x3b2a13['checkChild'](_0x98f298,'blockQuote')&&!!_0x3b2a13['checkChild'](_0x98f298['push']('blockQuote'),_0x5b6a10);}(_0x4ea58c,this['editor']['model']['schema']));_0x56c06a=bt(_0x13958d,_0x55c57b['model']);}else{const _0x376791=Array['from'](_0x3f7232['getSelectedBlocks']())['filter'](_0x3871b3=>xt(_0x3871b3));_0x56c06a=bt(_0x376791,_0x55c57b['model']);}_0x55c57b['model']['change'](()=>{for(const _0x10228c of _0x56c06a)_0x2244e8['markBlockFormat'](_0x10228c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x225047}]});});}),_0x2244e8['descriptionFactory']['registerDescriptionCallback'](_0x1843fd=>{const {data:_0x3d467c}=_0x1843fd;if(_0x3d467c&&'blockQuote'==_0x3d467c['commandName']){const _0x32659c=Mt(_0x58b61e,'ELEMENT_BLOCK_QUOTE');return _0x3d467c['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x58b61e,'*Set\x20format:*\x20%0',_0x32659c)}:{'type':'format','content':Mt(_0x58b61e,'*Remove\x20format:*\x20%0',_0x32659c)};}});}};function xt(_0x55fa60){return'blockQuote'==_0x55fa60['parent']['name'];}var Gt=class extends _0x5d30aa{afterInit(){const _0x5283a0=this['editor'],_0x3b91dc=_0x5283a0['locale'],_0x2a61f4=_0x5283a0['plugins']['get']('TrackChangesEditing');_0x5283a0['plugins']['has']('BookmarkEditing')&&(_0x2a61f4['enableCommand']('insertBookmark'),_0x2a61f4['enableDefaultAttributesIntegration']('updateBookmark'),_0x2a61f4['descriptionFactory']['registerDescriptionCallback'](_0xc843c=>{if('insertion'!=_0xc843c['type']&&'deletion'!=_0xc843c['type']&&'attribute'!=_0xc843c['type'])return;const _0x429f06=_0xc843c['getContainedElement']();if(null==_0x429f06)return;if(!_0x429f06['is']('element','bookmark'))return;const _0x33873b=_0x429f06['getAttribute']('bookmarkId');if('insertion'==_0xc843c['type'])return{'type':'insertion','content':Mt(_0x3b91dc,'*Insert:*\x20%0','\x22'+_0x33873b+'\x22\x20'+Mt(_0x3b91dc,'ELEMENT_BOOKMARK'))};if('deletion'==_0xc843c['type'])return{'type':'deletion','content':Mt(_0x3b91dc,'*Remove:*\x20%0','\x22'+_0x33873b+'\x22\x20'+Mt(_0x3b91dc,'ELEMENT_BOOKMARK'))};const {data:_0x21977b}=_0xc843c;return _0x21977b&&'bookmarkId'==_0x21977b['key']?{'type':'format','content':Mt(_0x3b91dc,'*Set\x20bookmark:*\x20%0','\x22'+_0x21977b['newValue']+'\x22')}:void 0x0;}));}},Ht=class extends _0x5d30aa{afterInit(){const _0x5e18db=this['editor'];_0x5e18db['plugins']['has']('CaseChange')&&(_0x5e18db['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5e18db['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5e18db['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},$t=class extends _0x5d30aa{afterInit(){const _0x3a9570=this['editor'];_0x3a9570['commands']['get']('ckbox')&&_0x3a9570['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Wt=class extends _0x5d30aa{static get requires(){return[ht,gt];}constructor(_0x4de6b3){super(_0x4de6b3),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x144a2f=this['editor'],_0x4722be=_0x144a2f['plugins']['get']('ClipboardMarkersUtils'),_0x57ea22=_0x144a2f['plugins']['get'](gt);_0x4722be['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x57ea22['on']('outputTransformation',(_0x1e5e5e,_0x5adb9e)=>{const _0x3c8f7b=this['_getSuggestionEntries'](_0x5adb9e);for(const [_0x4c8ba2,_0x2a1d15]of _0x5adb9e['content']['markers']){const _0x1e31a8=rt['_fromRangeInDocumentFragment'](_0x2a1d15,_0x144a2f['model']);function _0xdb67ab(){_0x1e31a8['detach'](),_0x5adb9e['content']['markers']['delete'](_0x4c8ba2);}_0x1e31a8['on']('change:drop',_0xdb67ab),(_0x4c8ba2['startsWith']('suggestion:')||_0x4c8ba2['startsWith']('comment:'))&&_0x1e31a8['on']('change:range',()=>{_0x1e31a8['isCollapsed']&&_0xdb67ab();}),_0x5adb9e['content']['markers']['set'](_0x4c8ba2,_0x1e31a8);}const _0x4b470f=_0x3c8f7b['filter'](_0x37deba=>'deletion'===_0x37deba['meta']['type'])['map'](_0xadfd45=>_0xadfd45['modelRange']);if(this['_shouldSkipDeletions'](_0x4b470f,_0x5adb9e['content']))return[..._0x3c8f7b]['forEach'](_0x3ac266=>{_0x5adb9e['content']['markers']['get'](_0x3ac266['markerName'])['detach'](),_0x5adb9e['content']['markers']['delete'](_0x3ac266['markerName']);}),void this['_restoreRegularRanges'](_0x5adb9e['content']['markers']);[..._0x3c8f7b]['forEach'](_0x7d96f5=>{const _0x121ac7=_0x144a2f['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x7d96f5['meta']['type'],_0x7d96f5['meta']['subType'],'accept'),{markerName:_0x118745,meta:_0x476a58}=_0x7d96f5;if(_0x5adb9e['content']['markers']['has'](_0x118745)){switch(_0x476a58['type']){case'deletion':if('tableRow'===_0x476a58['subType']||'tableColumn'===_0x476a58['subType']){if(!_0x144a2f['plugins']['has']('TableUtils'))break;const _0x518f9a=_0x144a2f['plugins']['get']('TableUtils'),_0x3619b1=_0x518f9a['getSelectionAffectedTableCells'](_0x144a2f['model']['createSelection'](_0x5adb9e['content']['markers']['get'](_0x118745))),_0x53c9d5=_0x3619b1[0x0]['findAncestor']('table');if('tableRow'===_0x476a58['subType']){const {first:_0x309c74,last:_0x14e739}=_0x518f9a['getRowIndexes'](_0x3619b1);_0x518f9a['removeRows'](_0x53c9d5,{'at':_0x309c74,'rows':_0x14e739-_0x309c74+0x1});}else{const {first:_0x4c4ed3,last:_0x43225b}=_0x518f9a['getColumnIndexes'](_0x3619b1);_0x518f9a['removeColumns'](_0x53c9d5,{'at':_0x4c4ed3,'columns':_0x43225b-_0x4c4ed3+0x1});}break;}_0x121ac7([_0x5adb9e['content']['markers']['get'](_0x118745)]);}_0x5adb9e['content']['markers']['has'](_0x118745)&&(_0x5adb9e['content']['markers']['get'](_0x118745)['detach'](),_0x5adb9e['content']['markers']['delete'](_0x118745));}}),this['_restoreRegularRanges'](_0x5adb9e['content']['markers']);});}_getSuggestionEntries(_0x4b27ad){const _0x3c967e=_0x3e7512=>'dragstart'===_0x4b27ad['method']?_0x3e7512['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x3e7512;return Array['from'](_0x4b27ad['content']['markers'])['map'](([_0x40106f,_0xed341a])=>({'markerName':_0x40106f,'modelRange':_0xed341a,'meta':tt(_0x3c967e(_0x40106f))}))['filter'](({meta:_0x3666a8})=>'suggestion'===_0x3666a8['group']);}_shouldSkipDeletions(_0x1f6169,_0x5530ff){if(!_0x1f6169['length'])return!0x1;let _0xb88242=[this['editor']['model']['createRangeIn'](_0x5530ff)];for(const _0x541547 of _0x1f6169)_0xb88242=_0xb88242['flatMap'](_0x3a9f3a=>_0x3a9f3a['getDifference'](_0x541547));return!_0xb88242['some'](_0x22c171=>this['editor']['model']['hasContent'](_0x22c171,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x2cad3b){[..._0x2cad3b['keys']()]['forEach'](_0x1c7433=>{const _0x59ce71=_0x2cad3b['get'](_0x1c7433);_0x59ce71['detach'](),_0x2cad3b['set'](_0x1c7433,_0x59ce71['toRange']());});}},Vt=class extends _0x5d30aa{afterInit(){const _0x27a137=this['editor'];if(!_0x27a137['plugins']['has']('CodeBlock'))return;const _0x3c5718=_0x27a137['plugins']['get']('TrackChangesEditing'),_0x130ec5=_0x27a137['locale'],_0x10bb7b=_0x27a137['config']['get']('codeBlock')['languages'],_0x58ddd7=_0x27a137['commands']['get']('codeBlock');_0x3c5718['enableCommand']('indentCodeBlock'),_0x3c5718['enableCommand']('outdentCodeBlock'),_0x3c5718['enableCommand']('codeBlock',(_0x4df9e0,_0x5d6d9d={})=>{const _0x3aabe2=_0x27a137['model'],_0x3be871=_0x27a137['model']['document']['selection'],_0x13b6fa=_0x5d6d9d&&void 0x0!==_0x5d6d9d['forceValue']?_0x5d6d9d['forceValue']:!_0x58ddd7['value'];let _0x1ce165;_0x5d6d9d['language']||(_0x5d6d9d['language']=_0x10bb7b[0x0]['language']),_0x1ce165=_0x13b6fa?Array['from'](_0x3be871['getSelectedBlocks']())['filter'](_0x55c6f4=>{return jt(_0x55c6f4)||(_0x6cceb0=_0x55c6f4,_0xb487dd=_0x3aabe2['schema'],!_0x6cceb0['is']('rootElement')&&!_0xb487dd['isLimit'](_0x6cceb0)&&_0xb487dd['checkChild'](_0x6cceb0['parent'],'codeBlock'));var _0x6cceb0,_0xb487dd;}):Array['from'](_0x3be871['getSelectedBlocks']())['filter'](_0x41416b=>jt(_0x41416b));const _0x36bdc9=bt(_0x1ce165,_0x3aabe2);_0x3aabe2['change'](()=>{for(const _0x3f6968 of _0x36bdc9)_0x3c5718['markBlockFormat'](_0x3f6968,{'commandName':'codeBlock','commandParams':[{..._0x5d6d9d,'forceValue':_0x13b6fa}],'formatGroupId':'blockName'});});}),(_0x3c5718['descriptionFactory']['registerElementLabel']('codeBlock',_0xd9527b=>Mt(_0x130ec5,'ELEMENT_CODE_BLOCK',_0xd9527b)),_0x3c5718['descriptionFactory']['registerDescriptionCallback'](_0x1e561c=>{if('formatBlock'!=_0x1e561c['type'])return;const _0x583836=_0x130ec5['t'],{data:_0x23c085}=_0x1e561c;if(!_0x23c085||'codeBlock'!=_0x23c085['commandName'])return;const _0x5ac204=_0x23c085['commandParams'][0x0]['language'],_0x1fbbae=_0x583836(_0x10bb7b['find'](_0x112a8b=>_0x112a8b['language']===_0x5ac204)['label'])['toLowerCase']();return _0x23c085['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x130ec5,'*Set\x20format:*\x20%0',Mt(_0x130ec5,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1fbbae+')')}:{'type':'format','content':Mt(_0x130ec5,'*Remove\x20format:*\x20%0',Mt(_0x130ec5,'ELEMENT_CODE_BLOCK',0x1))};}));}};function jt(_0x10d23e){return'codeBlock'==_0x10d23e['name'];}var zt=class extends _0x5d30aa{afterInit(){const _0x2a10f9=this['editor'];_0x2a10f9['plugins']['has']('CommentsEditing')&&_0x2a10f9['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Kt=class extends _0x5d30aa{static get requires(){return[ft];}init(){const _0x169ca8=this['editor'],_0x531da7=_0x169ca8['plugins']['get']('TrackChangesEditing');_0x531da7['enableCommand']('delete');const _0x5ed4c7=_0x169ca8['commands']['get']('deleteForward');_0x531da7['enableCommand']('deleteForward',(_0x2e7945,_0x1f0988={})=>{const _0x3a1077=_0x169ca8['model']['createSelection'](_0x169ca8['model']['document']['selection']);_0x3a1077['isCollapsed']&&_0x169ca8['model']['modifySelection'](_0x3a1077,{'direction':'forward','unit':_0x1f0988['unit']});const _0x2f6a97=_0x3a1077['getFirstRange'](),_0x249b0f=rt['fromRange'](_0x2f6a97);let _0xff511e;_0x2e7945(_0x1f0988),_0xff511e='$graveyard'==_0x249b0f['root']['rootName']?_0x169ca8['model']['createRange'](_0x2f6a97['start']):_0x169ca8['model']['createRange'](_0x249b0f['start'],_0x249b0f['end']),_0x249b0f['detach'](),_0x169ca8['model']['enqueueChange'](_0x5ed4c7['buffer']['batch'],_0xcd718d=>{_0x5ed4c7['buffer']['lock'](),_0xcd718d['setSelection'](_0xcd718d['createRange'](_0xff511e['end'])),_0x5ed4c7['buffer']['unlock']();});});}},Xt=class extends _0x5d30aa{afterInit(){const _0x153d74=this['editor'];if(!_0x153d74['plugins']['has']('ListEditing'))return;const _0x57209d=_0x153d74['locale'],_0x57ad74=_0x153d74['plugins']['get']('TrackChangesEditing'),_0x40552d=_0x153d74['plugins']['has']('TodoListEditing'),_0x2c8f83=!!_0x153d74['config']['get']('list.multiBlock');function _0x5b3371(_0x2b5dc8){return{'type':'format','content':''+Mt(_0x57209d,'*Set\x20format:*\x20%0',_0x2b5dc8)};}function _0x38610b(_0x239950){return{'type':'format','content':''+Mt(_0x57209d,'*Remove\x20format:*\x20%0',_0x239950)};}_0x57ad74['enableDefaultAttributesIntegration']('numberedList'),_0x57ad74['enableDefaultAttributesIntegration']('bulletedList'),_0x57ad74['enableDefaultAttributesIntegration']('customNumberedList'),_0x57ad74['enableDefaultAttributesIntegration']('customBulletedList'),_0x57ad74['enableDefaultAttributesIntegration']('indentList'),_0x57ad74['enableDefaultAttributesIntegration']('outdentList'),_0x57ad74['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x57ad74['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2c8f83&&(_0x57ad74['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x57ad74['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x40552d&&(_0x57ad74['enableDefaultAttributesIntegration']('todoList'),_0x57ad74['enableDefaultAttributesIntegration']('checkTodoList'),_0x57ad74['descriptionFactory']['registerDescriptionCallback'](_0x4e85f1=>{const {data:_0x135239}=_0x4e85f1;if(_0x135239&&'todoListChecked'==_0x135239['key'])return{'type':'format','content':_0x135239['newValue']?Mt(_0x57209d,'*Check\x20item*'):Mt(_0x57209d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x366699=>{if(_0x366699['batch']['isUndo'])return!0x1;let _0x53d9e2=!0x1;const _0x5cb3bb=_0x57ad74['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d1754=>'todoListChecked'===_0x57ad74['_getAttributeKey'](_0x1d1754));for(const _0x4435f4 of _0x5cb3bb)'todo'!=_0x4435f4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x57ad74['_findSuggestions'](_0x4435f4['getFirstRange'](),'attribute')['find'](_0x4401e3=>'listType'===_0x57ad74['_getAttributeKey'](_0x4401e3['suggestion']))||(_0x366699['removeMarker'](_0x4435f4['getFirstMarker']()),_0x53d9e2=!0x0));return _0x53d9e2;})),_0x57ad74['descriptionFactory']['registerAttributeLabel']('listIndent',Mt(_0x57209d,'FORMAT_INDENT'));const _0x2a2ed5={'type':'format','content':''};_0x57ad74['descriptionFactory']['registerDescriptionCallback'](_0x69d768=>{const {data:_0x125c41}=_0x69d768;if(!_0x125c41||'listType'!=_0x125c41['key'])return;let _0xe87299=_0x69d768['head'];for(;_0xe87299;){if(_0xe87299['data']&&(('listStyle'==_0xe87299['data']['key']||'listMarkerStyle'==_0xe87299['data']['key'])&&(_0xe87299['data']['newValue']&&'default'!=_0xe87299['data']['newValue']||'default'!=_0xe87299['data']['oldValue']&&!_0x125c41['newValue'])||!_0x2c8f83&&'$elementName'==_0xe87299['data']['key']))return _0x2a2ed5;_0xe87299=_0xe87299['next'];}if(null==_0x125c41['newValue'])switch(_0x125c41['oldValue']){case'bulleted':return _0x38610b(Mt(_0x57209d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x38610b(Mt(_0x57209d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x38610b(Mt(_0x57209d,'ELEMENT_TODO_LIST'));}switch(_0x125c41['newValue']){case'bulleted':return _0x5b3371(Mt(_0x57209d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b3371(Mt(_0x57209d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b3371(Mt(_0x57209d,'ELEMENT_TODO_LIST'));}}),_0x57ad74['descriptionFactory']['registerDescriptionCallback'](_0x351898=>{const {data:_0x529b2f}=_0x351898;if(_0x529b2f&&'listIndent'==_0x529b2f['key'])return null==_0x529b2f['newValue']||null==_0x529b2f['oldValue']&&0x0==_0x529b2f['newValue']?_0x2a2ed5:void 0x0;}),_0x57ad74['descriptionFactory']['registerDescriptionCallback'](_0x12770a=>{if('attribute'!=_0x12770a['type'])return;const {data:_0x186303}=_0x12770a;if(!_0x186303||'listItemId'!=_0x186303['key'])return;const _0x28300c=qt(_0x12770a);return'newValue'==_0x28300c?{'type':'format','content':Mt(_0x57209d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x28300c?{'type':'format','content':Mt(_0x57209d,'*Split:*\x20list\x20item')}:_0x2a2ed5;}),_0x153d74['model']['document']['registerPostFixer'](_0x1ba1c6=>this['listItemIdFixer'](_0x1ba1c6)),_0x153d74['model']['document']['registerPostFixer'](_0x2dd29d=>this['noTrackChangesFixer'](_0x2dd29d)),_0x153d74['model']['document']['on']('change:data',(_0x2cb8f4,_0x1e23da)=>{if(_0x1e23da['isUndo']||!_0x1e23da['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x28f87c){if(_0x28f87c['batch']['isUndo']||!_0x28f87c['batch']['isLocal'])return!0x1;let _0x156e0d=!0x1;const _0x48702a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b1172=>_0x3b1172['data']&&'listItemId'==_0x3b1172['data']['key'])['filter'](_0xc4d181=>_0xc4d181['data']['newValue']&&_0xc4d181['data']['oldValue']);for(const _0x5c0ca2 of _0x48702a)qt(_0x5c0ca2)||(_0x28f87c['removeMarker'](_0x5c0ca2['getFirstMarker']()),_0x156e0d=!0x0);return _0x156e0d;}['noTrackChangesFixer'](_0x158c21){if(_0x158c21['batch']['isUndo']||!_0x158c21['batch']['isLocal'])return!0x1;const _0xe3aad5=this['editor']['model']['document']['differ'],_0x52aada=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x52aada['trackChangesCommand']['value'])return!0x1;let _0x16b8a1=!0x1;const _0x4987ca=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x2385ed=_0xe3aad5['getChanges']()['filter'](_0x4ac902=>'attribute'==_0x4ac902['type'])['filter'](_0x468d49=>_0x4987ca['has'](_0x468d49['attributeKey']));if(0x0==_0x2385ed['length'])return _0x16b8a1;const _0x2bcfe8=new Set(_0xe3aad5['getMarkersToAdd']()['filter'](_0x37656a=>{if(!_0x37656a['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x2ac0a2=tt(_0x37656a['name'])['subType']['split']('|')[0x0];return _0x4987ca['has'](_0x2ac0a2);})['map'](_0x1e5792=>tt(_0x1e5792['name'])['id']));for(const _0x4b7d91 of _0x2385ed){const _0x2fe935=_0x52aada['_findSuggestions'](_0x4b7d91['range'],'attribute')['filter'](_0x116cab=>{if(_0x116cab['meta']['isNextTo'])return!0x1;if(_0x2bcfe8['has'](_0x116cab['suggestion']['id']))return!0x1;const _0x7f8750=_0x52aada['_getAttributeKey'](_0x116cab['suggestion']);return _0x4987ca['has'](_0x7f8750);})['map'](_0x89fc0=>_0x89fc0['suggestion']);if(_0x2fe935['length']){for(const _0x4400c9 of _0x2fe935)_0x158c21['removeMarker'](_0x4400c9['getFirstMarker']());_0x16b8a1=!0x0;}}return _0x16b8a1;}['assureChains'](){const _0x522bb0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x159275=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x567e8c;const _0xde16e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3fb1ff=>{if(_0x3fb1ff['data']['oldRange']||!_0x3fb1ff['data']['newRange'])return null;if(!_0x3fb1ff['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x113c17}=tt(_0x3fb1ff['name']);if(!_0x522bb0['hasSuggestion'](_0x113c17))return null;const _0x3be725=_0x522bb0['getSuggestion'](_0x113c17);return _0x159275['includes'](_0x3be725['data']['key']);})['map'](_0x194a40=>{const {id:_0x2a9b0a}=tt(_0x194a40['name']),_0xf20e8d=_0x522bb0['getSuggestion'](_0x2a9b0a);return _0x567e8c=_0xf20e8d['attributes']['groupId'],_0xf20e8d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xde16e['size'])return;const _0x56a647=_0x522bb0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50d36b=>'attribute'==_0x50d36b['type']&&_0x50d36b['data']&&_0x159275['includes'](_0x50d36b['data']['key'])&&_0x50d36b['attributes']['groupId']!=_0x567e8c)['map'](_0x19d2e1=>({'listItem':_0x19d2e1['getFirstRange']()['start']['nodeAfter'],'groupId':_0x19d2e1['attributes']['groupId']})),_0x549b75=new Set();for(const {groupId:_0x1e62a8,listItem:_0x24be6b}of _0x56a647)_0xde16e['has'](_0x24be6b)&&_0x549b75['add'](_0x1e62a8);for(const _0x405223 of _0x522bb0['getSuggestions']())_0x549b75['has'](_0x405223['attributes']['groupId'])&&_0x405223['setAttribute']('groupId',_0x567e8c);}_supportLegacySuggestions(){const _0x32da49=this['editor'],_0xc2ba1f=_0x32da49['locale'],_0x172670=_0x32da49['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x172670['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3af556,_0x36a84e){const _0x583263=[];for(let _0x5a6a4b of _0x3af556)_0x5a6a4b['start']['nodeAfter']===_0x5a6a4b['end']['parent']&&(_0x5a6a4b=_0x32da49['model']['createRange'](_0x32da49['model']['createPositionAt'](_0x5a6a4b['start']['nodeAfter'],0x0))),_0x583263['push'](_0x5a6a4b);_0x32da49['model']['change'](_0x1d9cc5=>{const _0x315544=_0x32da49['model']['document']['selection'],_0x430eed=Array['from'](_0x315544['getRanges']())['map'](_0x4f586d=>rt['fromRange'](_0x4f586d));_0x1d9cc5['setSelection'](_0x583263),_0x32da49['commands']['get'](_0x36a84e['commandName'])['refresh'](),_0x36a84e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x32da49['execute'](_0x36a84e['commandName'],..._0x36a84e['commandParams']),_0x1d9cc5['setSelection'](_0x430eed);for(const _0x2a8396 of _0x430eed)_0x2a8396['detach']();});}),_0x172670['descriptionFactory']['registerElementLabel'](function(_0x2c04f2){const _0x2b2378=!_0x32da49['model']['schema']['isObject'](_0x2c04f2),_0x7a69b6=_0x2c04f2['previousSibling'],_0x2194d7=_0x2c04f2['nextSibling'],_0x509f98=_0x2c04f2['getAttribute']('listItemId'),_0x57df4f=!_0x7a69b6||_0x7a69b6['getAttribute']('listItemId')!==_0x509f98,_0x344499=!_0x2194d7||_0x2194d7['getAttribute']('listItemId')!==_0x509f98;return _0x2b2378&&Boolean(_0x509f98)&&_0x57df4f&&_0x344499;},_0x34b3a6=>Mt(_0xc2ba1f,'ELEMENT_LIST_ITEM',_0x34b3a6));}_registerLegacyDescription(){const _0x8f67d1=this['editor'],_0x3a7f02=_0x8f67d1['locale'];function _0x1f266a(_0x32969f){const _0x4a1c6e=_0x8f67d1['commands']['get']('bulletedList')['value'],_0x2dcdd1=_0x8f67d1['commands']['get']('numberedList')['value'];return'numberedList'===_0x32969f?_0x4a1c6e:_0x2dcdd1;}_0x8f67d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xb26c14){if('formatBlock'!=_0xb26c14['type'])return;const {data:_0x4721b6}=_0xb26c14;if(!_0x4721b6)return;let _0x5609b3,_0x17c45d,_0x50dfd6,_0x5bedb1;switch(_0x4721b6['commandName']){case'bulletedList':_0x50dfd6=_0x4721b6['commandParams'][0x0]['forceValue'],_0x5bedb1=_0x1f266a(_0x4721b6['commandName']),_0x5609b3=_0x50dfd6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5bedb1&&_0x8f67d1['config']['get']('list.multiBlock')||(_0x5609b3='*Change\x20to:*\x20%0'),_0x17c45d={'type':'format','content':Mt(_0x3a7f02,_0x5609b3,Mt(_0x3a7f02,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x50dfd6=_0x4721b6['commandParams'][0x0]['forceValue'],_0x5bedb1=_0x1f266a(_0x4721b6['commandName']),_0x5609b3=_0x50dfd6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5bedb1&&_0x8f67d1['config']['get']('list.multiBlock')||(_0x5609b3='*Change\x20to:*\x20%0'),_0x17c45d={'type':'format','content':Mt(_0x3a7f02,_0x5609b3,Mt(_0x3a7f02,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5609b3='*Indent:*\x20%0',_0x17c45d={'type':'format','content':Mt(_0x3a7f02,_0x5609b3,Mt(_0x3a7f02,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5609b3=function(_0x415ec3){const _0x25a04c=_0x415ec3['getFirstRange']();let _0xd8eea=_0x25a04c['start']['nodeAfter'];for(;_0xd8eea&&_0x25a04c['containsItem'](_0xd8eea);){if(_0xd8eea['getAttribute']('listIndent')>0x0)return!0x1;_0xd8eea=_0xd8eea['nextSibling'];}return!0x0;}(_0xb26c14)?Mt(_0x3a7f02,'*Format:*\x20remove\x20from\x20%0',Mt(_0x3a7f02,function(_0xc26586){return'ELEMENT_'+_0xc26586['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xb26c14))):Mt(_0x3a7f02,'*Outdent:*\x20%0',Mt(_0x3a7f02,'ELEMENT_LIST_ITEM')),_0x17c45d={'type':'format','content':_0x5609b3};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4721b6['multipleBlocks']&&(_0x5609b3='*Merge:*\x20%0',_0x17c45d={'type':'deletion','content':Mt(_0x3a7f02,_0x5609b3,Mt(_0x3a7f02,'ELEMENT_LIST_ITEM'))});}return _0x17c45d;});}};function qt(_0x4d10bc){let _0x3aa0e8=_0x4d10bc['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3aa0e8;){const _0x298d24=_0x3aa0e8['getAttribute']('listItemId');if(!_0x298d24)return!0x1;if(_0x298d24==_0x4d10bc['data']['newValue'])return'newValue';if(_0x298d24==_0x4d10bc['data']['oldValue'])return'oldValue';_0x3aa0e8=_0x3aa0e8['previousSibling'];}return!0x1;}var Yt=class extends _0x5d30aa{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2693d7=this['editor']['config']['get']('list.properties'),_0xc7a40=this['editor']['plugins']['get']('TrackChangesEditing');_0x2693d7['styles']&&_0xc7a40['enableDefaultAttributesIntegration']('listStyle'),_0x2693d7['reversed']&&_0xc7a40['enableDefaultAttributesIntegration']('listReversed'),_0x2693d7['startIndex']&&_0xc7a40['enableDefaultAttributesIntegration']('listStart');const _0x46d5da={'type':'format','content':''};_0xc7a40['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x24c20a=this['editor']['locale'];_0xc7a40['descriptionFactory']['registerAttributeLabel']('listReversed',Mt(_0x24c20a,'FORMAT_LIST_REVERSED')),_0xc7a40['descriptionFactory']['registerDescriptionCallback'](_0x3050ff=>{const {data:_0xb9a7e6}=_0x3050ff;if(_0xb9a7e6&&'listReversed'==_0xb9a7e6['key'])return null==_0xb9a7e6['newValue']||0x0==_0xb9a7e6['newValue']&&null==_0xb9a7e6['oldValue']?_0x46d5da:void 0x0;}),_0xc7a40['descriptionFactory']['registerAttributeLabel']('listStart',Mt(_0x24c20a,'FORMAT_LIST_START')),_0xc7a40['descriptionFactory']['registerDescriptionCallback'](_0x30d755=>{const {data:_0x288b58}=_0x30d755;if(_0x288b58&&'listStart'==_0x288b58['key'])return null==_0x288b58['newValue']||0x1==_0x288b58['newValue']&&null==_0x288b58['oldValue']?_0x46d5da:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xf670f5=>{if(_0xf670f5['batch']['isUndo'])return!0x1;let _0x17d0e9=!0x1;const _0xcec4b=_0xc7a40['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x82b3f4=>{const _0x28b0b8=_0xc7a40['_getAttributeKey'](_0x82b3f4);return'listStart'==_0x28b0b8||'listReversed'==_0x28b0b8;});for(const _0x46397f of _0xcec4b){const _0x253701=_0x46397f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x253701&&'customNumbered'!=_0x253701&&(_0xc7a40['_findSuggestions'](_0x46397f['getFirstRange'](),'attribute')['find'](_0xed9446=>'listType'==_0xc7a40['_getAttributeKey'](_0xed9446['suggestion']))||(_0xf670f5['removeMarker'](_0x46397f['getFirstMarker']()),_0x17d0e9=!0x0));}return _0x17d0e9;}),this['_registerLegacyDescription']();}handleDescriptions(_0x1be6ff){const _0xf1af46=this['editor']['locale'],{data:_0xd96692}=_0x1be6ff,_0x2516a3={'type':'format','content':''};if(!_0xd96692||'listStyle'!=_0xd96692['key'])return;if(!_0xd96692['oldValue'])return'default'==_0xd96692['newValue']?_0x2516a3:{'type':'format','content':''+Mt(_0xf1af46,'*Set\x20format:*\x20%0',Mt(_0xf1af46,this['_getTranslationKeyForListStyle'](_0xd96692['newValue'])))};if(!_0xd96692['newValue']){if('default'==_0xd96692['oldValue'])return _0x2516a3;let _0x1bea93=_0x1be6ff['head'];for(;_0x1bea93;){if(_0x1bea93['data']&&'listType'==_0x1bea93['data']['key']&&_0x1bea93['data']['newValue'])return _0x2516a3;_0x1bea93=_0x1bea93['next'];}return{'type':'format','content':''+Mt(_0xf1af46,'*Remove\x20format:*\x20%0',Mt(_0xf1af46,this['_getTranslationKeyForListStyle'](_0xd96692['oldValue'])))};}if('default'!=_0xd96692['newValue'])return{'type':'format','content':''+Mt(_0xf1af46,'*Set\x20format:*\x20%0',Mt(_0xf1af46,this['_getTranslationKeyForListStyle'](_0xd96692['newValue'])))};let _0xb193c5=_0x1be6ff['head'];for(;_0xb193c5;){if(_0xb193c5['data']&&'listType'==_0xb193c5['data']['key']&&_0xb193c5['data']['newValue']&&_0xb193c5['data']['oldValue'])return _0x2516a3;_0xb193c5=_0xb193c5['next'];}return{'type':'format','content':Mt(_0xf1af46,'*Set\x20format:*\x20%0',Mt(_0xf1af46,'ELEMENT_'+_0x1be6ff['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x11cb02=this['editor'],_0xe6fa4c=_0x11cb02['locale'];_0x11cb02['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1395d9=>{if('formatBlock'!=_0x1395d9['type'])return;const {data:_0xda65e3}=_0x1395d9;if(!_0xda65e3)return;let _0x5c6061,_0x1b67ae;switch(_0xda65e3['commandName']){case'listStyle':_0x5c6061='*Change\x20to:*\x20%0',_0x1b67ae={'type':'format','content':Mt(_0xe6fa4c,_0x5c6061,Mt(_0xe6fa4c,this['_getTranslationKeyForListStyle'](_0xda65e3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5c6061=_0xda65e3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1b67ae={'type':'format','content':Mt(_0xe6fa4c,_0x5c6061)};break;case'listStart':_0x5c6061='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1b67ae={'type':'format','content':Mt(_0xe6fa4c,_0x5c6061,_0xda65e3['commandParams'][0x0]['startIndex'])};}return _0x1b67ae;});}_getTranslationKeyForListStyle(_0x41ce8a){return'ELEMENT_'+(_0x463249=_0x41ce8a,Qt['includes'](_0x463249)?'bulleted':Zt['includes'](_0x463249)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x41ce8a['toUpperCase']()['replace'](/-/g,'_');var _0x463249;}};const Qt=['disc','circle','square'],Zt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Jt=class extends _0x5d30aa{afterInit(){const _0x3ea810=this['editor'];_0x3ea810['commands']['get']('emoji')&&_0x3ea810['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},te=class extends _0x5d30aa{static get requires(){return[Et];}init(){const _0x200e5e=this['editor'],_0x17379b=_0x200e5e['plugins']['get']('TrackChangesEditing'),_0xbeaf04=_0x200e5e['commands']['get']('enter');_0x17379b['enableCommand']('enter',()=>{_0x200e5e['model']['change'](_0x4a46ba=>{const _0x2c5c9b=_0x200e5e['model']['document']['selection'],_0x1f3767=_0x2c5c9b['getFirstPosition'](),_0x56951e=rt['fromRange'](_0x2c5c9b['getFirstRange']());if(_0xbeaf04['enterBlock'](_0x4a46ba)){const _0x56e099=_0x200e5e['model']['createPositionAt'](_0x1f3767['parent']['nextSibling'],0x0),_0x3e8a7f=_0x4a46ba['createRange'](_0x1f3767,_0x56e099);_0x17379b['markInsertion'](_0x3e8a7f);}else _0x4a46ba['setSelection'](_0x4a46ba['createRange'](_0x56951e['end']));_0x56951e['detach'](),_0xbeaf04['fire']('afterExecute',{'writer':_0x4a46ba});});});}},ee=class extends _0x5d30aa{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x6e477e=this['editor']['plugins']['get']('TrackChangesEditing');_0x6e477e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x6e477e['enableCommand']('findNext'),_0x6e477e['enableCommand']('findPrevious'),_0x6e477e['enableCommand']('replace'),_0x6e477e['enableCommand']('replaceAll');}['handleFindCommand'](_0x630fd7,_0x5b2ebe,_0x47c4d9={}){const _0x3a470a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x630fd7(_0x227509=>{let _0x5c94ca=('string'==typeof _0x5b2ebe?_0x3a470a['findByTextCallback'](_0x5b2ebe,_0x47c4d9):_0x5b2ebe)(_0x227509);Array['isArray'](_0x5c94ca)&&(_0x5c94ca={'results':_0x5c94ca,'searchText':'string'==typeof _0x5b2ebe?_0x5b2ebe:''});const _0x160a05=_0x5c94ca['results']['filter'](_0x41a93c=>!0x1===this['_isInDeletionRange'](_0x41a93c,_0x227509['item']));return{..._0x5c94ca,'results':_0x160a05};},_0x47c4d9);}_isInDeletionRange(_0x667884,_0x491a3d){const _0xe62905=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x491a3d,_0x667884['start']),this['editor']['model']['createPositionAt'](_0x491a3d,_0x667884['end']));for(const _0x9e7e55 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xe62905['getIntersection'](_0x9e7e55['getRange']()))return!0x0;return!0x1;}};const ne=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ie=class extends _0x5d30aa{afterInit(){const _0xe6d55b=this['editor']['locale'],_0x2e58f3=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x36b6e4,commandName:_0x533223}of ne)this['editor']['plugins']['has'](_0x36b6e4)&&_0x2e58f3['enableDefaultAttributesIntegration'](_0x533223);_0x2e58f3['descriptionFactory']['registerAttributeLabel']('fontSize',Mt(_0xe6d55b,'FORMAT_FONT_SIZE')),_0x2e58f3['descriptionFactory']['registerAttributeLabel']('fontFamily',Mt(_0xe6d55b,'FORMAT_FONT_FAMILY')),_0x2e58f3['descriptionFactory']['registerAttributeLabel']('fontColor',Mt(_0xe6d55b,'FORMAT_FONT_COLOR')),_0x2e58f3['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Mt(_0xe6d55b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2d9674=this['editor'],_0x44efa0=_0x2d9674['locale'];_0x2d9674['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5155bc=>{const _0x1cae79=_0x44efa0['t'];if('formatInline'!=_0x5155bc['type'])return;const {data:_0x1544de}=_0x5155bc;if(null!=_0x1544de){if('fontSize'==_0x1544de['commandName']){const _0x43bd0d=_0x1544de['commandParams'][0x0]['value'];if(_0x43bd0d){const _0x550a15=_0x1cae79(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2eec52=>_0x2eec52['model']==_0x43bd0d)['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x44efa0,'*Set\x20font\x20size:*\x20%0',_0x550a15)};}return{'type':'format','content':Mt(_0x44efa0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1544de['commandName']){const _0x3bad8b=_0x1544de['commandParams'][0x0]['value'];return _0x3bad8b?{'type':'format','content':Mt(_0x44efa0,'*Set\x20font\x20family:*\x20%0',_0x3bad8b)}:{'type':'format','content':Mt(_0x44efa0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1544de['commandName']){const _0x5ee062=_0x1544de['commandParams'][0x0]['value'];if(_0x5ee062){const _0x770ab=_0xe0e1a3(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5ef17e=>_0x5ef17e['model']==_0x5ee062);let _0x401b98=_0x5ee062,_0x814204='';return _0x770ab&&(_0x401b98=_0x770ab['label'],_0x814204=_0x1cae79(_0x401b98)['toLowerCase']()),{'type':'format','content':Mt(_0x44efa0,'*Set\x20font\x20color:*\x20%0',_0x814204)['trim'](),'color':{'value':_0x5ee062,'title':_0x814204||_0x401b98}};}return{'type':'format','content':Mt(_0x44efa0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1544de['commandName']){const _0x45d14d=_0x1544de['commandParams'][0x0]['value'];if(_0x45d14d){const _0x3ac296=_0xe0e1a3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x16ff1f=>_0x16ff1f['model']==_0x45d14d);let _0x1a70bc=_0x45d14d,_0x384bb2='';return _0x3ac296&&(_0x1a70bc=_0x3ac296['label'],_0x384bb2=_0x1cae79(_0x1a70bc)['toLowerCase']()),{'type':'format','content':Mt(_0x44efa0,'*Set\x20font\x20background\x20color:*\x20%0',_0x384bb2)['trim'](),'color':{'value':_0x45d14d,'title':_0x384bb2||_0x1a70bc}};}return{'type':'format','content':Mt(_0x44efa0,'*Reset\x20font\x20background\x20color*')};}}});}},se=class extends _0x5d30aa{afterInit(){const {plugins:_0x391ac0}=this['editor'];_0x391ac0['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x391ac0['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x15222d,plugins:_0x4f0f81,commands:_0x1842c1}=this['editor'],_0xc48859=_0x4f0f81['get']('TrackChangesEditing');_0x1842c1['get']('footnotesStyle')&&_0xc48859['enableDefaultAttributesIntegration']('footnotesStyle'),_0x1842c1['get']('footnotesStart')&&_0xc48859['enableDefaultAttributesIntegration']('footnotesStart'),_0xc48859['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Mt(_0x15222d,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xc48859['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Mt(_0x15222d,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0xd896ac=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4d9b48,commands:_0x5d0f44}=this['editor'];_0x5d0f44['get']('insertFootnote')&&_0xd896ac['enableCommand']('insertFootnote'),_0xd896ac['descriptionFactory']['registerElementLabel']('footnoteRef',_0x3f9403=>Mt(_0x4d9b48,'ELEMENT_FOOTNOTE_REF',_0x3f9403)),_0xd896ac['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x5aa068=>Mt(_0x4d9b48,'ELEMENT_FOOTNOTE_DEFINITION',_0x5aa068)),_0xd896ac['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3ad731=>Mt(_0x4d9b48,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3ad731));}},re=class extends _0x5d30aa{afterInit(){const _0x224211=this['editor'],_0x11f650=_0x224211['plugins']['get']('TrackChangesEditing'),_0x4e39dd=_0x224211['commands']['get']('copyFormat'),_0x494147=_0x224211['commands']['get']('pasteFormat');_0x4e39dd&&_0x494147&&(_0x11f650['enableDefaultAttributesIntegration']('pasteFormat'),_0x11f650['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x34618b=this['editor'],_0x545899=_0x34618b['locale'];_0x34618b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x573881=>{if('formatBlock'!=_0x573881['type']&&'formatInline'!=_0x573881['type'])return;const {data:_0x2d22da}=_0x573881;if(_0x2d22da&&'pasteFormat'===_0x2d22da['commandName']){const _0x1f15be=[],_0x4a5087=_0x2d22da['commandParams'][0x0];for(const [_0x2a1817,_0x449949]of Object['entries'](_0x4a5087))_0x1f15be['push'](oe(_0x34618b,_0x2a1817,_0x449949));return _0x1f15be['length']?{'type':'format','content':Mt(_0x545899,'*Set\x20format\x20to:*\x20%0',_0x1f15be['join'](',\x20'))}:{'type':'format','content':Mt(_0x545899,'*Remove\x20all\x20formatting*')};}});}};function oe(_0x366c13,_0x508be4,_0x2b57b0){const _0x143aee=_0x366c13['locale']['t'],_0x24389a=_0x508be4['split'](/(?=[A-Z])/)['join']('\x20'),_0xadbe40=_0x143aee(_0x24389a['charAt'](0x0)['toUpperCase']()+_0x24389a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2b57b0)return _0xadbe40;if('fontColor'===_0x508be4||'fontBackgroundColor'===_0x508be4){const _0x1dfa79=_0xe0e1a3(_0x366c13['config']['get']('fontColor.colors'))['find'](_0x1a229e=>_0x1a229e['model']==_0x2b57b0);return _0xadbe40+'\x20('+(_0x1dfa79?_0x143aee(_0x1dfa79['label'])['toLowerCase']():_0x2b57b0)+')';}if('fontSize'===_0x508be4&&isNaN(parseFloat(_0x2b57b0))){const _0x256449=_0x366c13['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x366c13['config']['get']('fontSize.options'))['find'](_0x2ad687=>_0x2ad687['model']==_0x2b57b0);return _0xadbe40+'\x20('+(_0x256449?_0x143aee(_0x256449['title'])['toLowerCase']():_0x2b57b0)+')';}return _0xadbe40+'\x20('+_0x2b57b0+')';}var ae=class extends _0x5d30aa{afterInit(){const _0x2b14c8=this['editor'];if(!_0x2b14c8['plugins']['has']('GeneralHtmlSupport')||!_0x2b14c8['plugins']['has']('DataSchema'))return;const _0x2770ea=_0x2b14c8['plugins']['get']('TrackChangesEditing'),_0x449259=_0x2b14c8['plugins']['get']('GeneralHtmlSupport'),_0x4643e5=_0x2b14c8['plugins']['get']('DataSchema'),_0x271774=_0x2b14c8['locale'],_0x6aa9b=new Set(['htmlContent']);for(const _0x2e0a1f of _0x4643e5['getDefinitionsForView'](/.*/,!0x1)){const _0x5488a2=_0x2e0a1f['view'],_0x48e66b=_0x449259['getGhsAttributeNameForElement'](_0x5488a2);_0x6aa9b['add'](_0x48e66b),!_0x2e0a1f['isInline']||_0x2e0a1f['isObject']||'appliesToBlock'in _0x2e0a1f&&_0x2e0a1f['appliesToBlock']||_0x2770ea['descriptionFactory']['registerAttributeLabel'](_0x48e66b,_0x5488a2),_0x2e0a1f['model']['startsWith']('html')&&_0x2770ea['descriptionFactory']['registerElementLabel'](_0x2e0a1f['model'],_0x13921f=>Mt(_0x271774,'ELEMENT_HTML_TAG',[_0x13921f,_0x5488a2]));}_0x2770ea['descriptionFactory']['registerAttributeLabel']('htmlContent',Mt(_0x271774,'FORMAT_RAW_HTML_CONTENT')),_0x2770ea['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Mt(_0x271774,'FORMAT_HTML_LIST_ITEM')),_0x2770ea['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Mt(_0x271774,'FORMAT_HTML_BULLETED_LIST')),_0x2770ea['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Mt(_0x271774,'FORMAT_HTML_NUMBERED_LIST')),_0x2770ea['descriptionFactory']['registerDescriptionCallback'](_0x12170d=>{if('attribute'!==_0x12170d['type'])return;const _0x35c5f2=_0x12170d['data'];if(!_0x35c5f2||!_0x6aa9b['has'](_0x35c5f2['key']))return;if('htmlContent'===_0x35c5f2['key'])return{'type':'format','content':Mt(_0x271774,'*Change\x20%0\x20content*',Mt(_0x271774,'ELEMENT_RAW_HTML'))};const {setItems:_0x18420b,removeItems:_0x169b99}=function(_0x3d4489,_0x4910a8,_0x295d10){const _0x337d9f=[],_0x33341d=[],_0x14375f=_0x3d4489['styles']??{},_0x218ef1=_0x4910a8['styles']??{};for(const _0x30ecbb of new Set([...Object['keys'](_0x14375f),...Object['keys'](_0x218ef1)]))_0x14375f[_0x30ecbb]!==_0x218ef1[_0x30ecbb]&&(void 0x0===_0x218ef1[_0x30ecbb]?_0x33341d['push'](_0x30ecbb):_0x337d9f['push'](_0x30ecbb+'\x20('+_0x218ef1[_0x30ecbb]+')'));const _0x1db47c=Mt(_0x295d10,'FORMAT_HTML_CLASS'),_0x5a8d5e=new Set(_0x3d4489['classes']??[]),_0x32ac45=new Set(_0x4910a8['classes']??[]),_0x3fa67e=[..._0x32ac45]['some'](_0x6a7759=>!_0x5a8d5e['has'](_0x6a7759)),_0x3a3385=[..._0x5a8d5e]['some'](_0x552bc2=>!_0x32ac45['has'](_0x552bc2));_0x3fa67e&&_0x337d9f['push'](_0x1db47c),_0x3a3385&&_0x33341d['push'](_0x1db47c);const _0x425976=Mt(_0x295d10,'FORMAT_HTML_ATTRIBUTE'),_0x2b5cf5=_0x3d4489['attributes']??{},_0x7fb15f=_0x4910a8['attributes']??{};let _0x43c418=!0x1,_0xa554c6=!0x1;for(const _0x532ddd of new Set([...Object['keys'](_0x2b5cf5),...Object['keys'](_0x7fb15f)]))_0x2b5cf5[_0x532ddd]!==_0x7fb15f[_0x532ddd]&&(void 0x0===_0x7fb15f[_0x532ddd]?_0xa554c6=!0x0:_0x43c418=!0x0);return _0x43c418&&_0x337d9f['push'](_0x425976),_0xa554c6&&_0x33341d['push'](_0x425976),{'setItems':_0x337d9f,'removeItems':_0x33341d};}(_0x35c5f2['oldValue']??{},_0x35c5f2['newValue']??{},_0x271774);if(!_0x18420b['length']&&!_0x169b99['length'])return;const _0x5db7d8=[];return _0x18420b['length']&&_0x5db7d8['push'](Mt(_0x271774,'*Set\x20format:*\x20%0',_0x18420b['join'](',\x20'))),_0x169b99['length']&&_0x5db7d8['push'](Mt(_0x271774,'*Remove\x20format:*\x20%0',_0x169b99['join'](',\x20'))),{'type':'format','content':_0x5db7d8['join']('\x0a')};});}},ce=class extends _0x5d30aa{_headingOptions;afterInit(){const _0x62203b=this['editor'];if(!_0x62203b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x62203b['config']['get']('heading.options');const _0xe08944=_0x62203b['locale'],_0x2fa8cd=_0x62203b['plugins']['get']('TrackChangesEditing');_0x2fa8cd['enableDefaultAttributesIntegration']('heading');for(const _0x43e39f of this['_headingOptions'])'paragraph'!=_0x43e39f['model']&&_0x2fa8cd['descriptionFactory']['registerElementLabel'](_0x43e39f['model'],_0x1f8558=>{const _0x47f096=this['_getHeadingLevel'](_0x43e39f['model']);return null!==_0x47f096?_0x500eff(_0x1f8558,_0x47f096):_0x106cc2(_0x1f8558,_0x43e39f['title']);});function _0x500eff(_0x15f7a9,_0x5ae4fa){return Mt(_0xe08944,'ELEMENT_HEADING',[_0x15f7a9,_0x5ae4fa]);}function _0x106cc2(_0x213942,_0x4e0272){return Mt(_0xe08944,'ELEMENT_HEADING_CUSTOM',[_0x213942,_0x4e0272]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2e4ddd=this['editor'],_0x51b923=_0x2e4ddd['locale'];function _0x27990c(_0x2f2986,_0x57b696){return Mt(_0x51b923,'ELEMENT_HEADING_CUSTOM',[_0x2f2986,_0x57b696]);}_0x2e4ddd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ae0b5=>{if('formatBlock'!=_0x3ae0b5['type'])return;const {data:_0x24310b}=_0x3ae0b5;if(_0x24310b&&'heading'==_0x24310b['commandName']){const _0x497d87=_0x24310b['commandParams'][0x0]['value'],_0x44bafa=this['_getHeadingLevel'](_0x497d87);if(null!==_0x44bafa)return{'type':'format','content':Mt(_0x51b923,'*Change\x20to:*\x20%0',(_0x1abe9f=0x1,_0x25071b=_0x44bafa,Mt(_0x51b923,'ELEMENT_HEADING',[_0x1abe9f,_0x25071b])))};const _0x3b7739=this['_headingOptions']['find'](_0x75e76c=>_0x75e76c['model']===_0x497d87)['title'];return{'type':'format','content':Mt(_0x51b923,'*Change\x20to:*\x20%0',_0x27990c(0x1,_0x3b7739))};}var _0x1abe9f,_0x25071b;});}_getHeadingLevel(_0x71cd4c){const _0x250fd5=_0x71cd4c['match'](/^heading(\d+)/);if(_0x250fd5)return _0x250fd5[0x1];const _0x15f04e=this['_headingOptions']?.['find'](_0x58dfa0=>_0x58dfa0['model']==_0x71cd4c);if(_0x15f04e&&_0x15f04e['view']){const _0x21cfb0=_0x15f04e['view'],_0x49a921=(_0x21cfb0['name']??_0x21cfb0)['match'](/^h(\d+)/);if(_0x49a921)return _0x49a921[0x1];}return null;}},le=class extends _0x5d30aa{afterInit(){const _0x3327d8=this['editor'];if(!_0x3327d8['plugins']['has']('HighlightEditing'))return;const _0x31d9d2=_0x3327d8['plugins']['get']('TrackChangesEditing'),_0x443cdb=_0x3327d8['locale'];_0x31d9d2['enableDefaultAttributesIntegration']('highlight'),_0x31d9d2['descriptionFactory']['registerAttributeLabel']('highlight',Mt(_0x443cdb,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4a1242=this['editor'],_0x14bcb7=_0x4a1242['locale'];_0x4a1242['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f8adb=>{if('formatInline'!=_0x2f8adb['type'])return;const {data:_0x18b4cf}=_0x2f8adb;if(_0x18b4cf&&'highlight'==_0x18b4cf['commandName']){const _0x2d9770=_0x14bcb7['t'],_0x5a6112=_0x18b4cf['commandParams'][0x0]['value'];if(_0x5a6112){const _0x104a65=_0x4a1242['config']['get']('highlight.options')['find'](_0x5b4d19=>_0x5b4d19['model']==_0x5a6112),_0x4e9b10=_0x2d9770(_0x104a65['title'])['toLowerCase']();return{'type':'format','content':Mt(_0x14bcb7,'*Set\x20highlight:*\x20%0',_0x4e9b10),'color':{'value':_0x104a65['color'],'title':_0x104a65['title']}};}return{'type':'format','content':Mt(_0x14bcb7,'*Remove\x20highlight*',Mt(_0x14bcb7,'FORMAT_HIGHLIGHT'))};}});}},ue=class extends _0x5d30aa{afterInit(){const _0x3cfbd9=this['editor'];if(!_0x3cfbd9['plugins']['has']('HorizontalLineEditing'))return;_0x3cfbd9['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x110ba1=_0x3cfbd9['plugins']['get']('TrackChangesEditing'),_0x174762=_0x3cfbd9['locale'];_0x110ba1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x30d828=>Mt(_0x174762,'ELEMENT_HORIZONTAL_LINE',_0x30d828));}},de=class extends _0x5d30aa{afterInit(){const _0x32a428=this['editor'];if(!_0x32a428['plugins']['has']('HtmlEmbed'))return;const _0x536b64=_0x32a428['plugins']['get']('TrackChangesEditing'),_0x274e7c=_0x32a428['locale'];_0x536b64['descriptionFactory']['registerElementLabel']('rawHtml',_0x26f036=>Mt(_0x274e7c,'ELEMENT_HTML_EMBED',_0x26f036)),_0x536b64['enableDefaultAttributesIntegration']('htmlEmbed'),_0x536b64['descriptionFactory']['registerDescriptionCallback'](_0x1785f7=>{if('attribute'!=_0x1785f7['type'])return;const {data:_0x2d3947}=_0x1785f7;if(_0x2d3947&&'value'==_0x2d3947['key']&&_0x1785f7['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x48f637=Mt(_0x274e7c,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x274e7c,'*Change\x20%0\x20content*',_0x48f637)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5c20f7=this['editor'],_0x413eea=_0x5c20f7['locale'];_0x5c20f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a373b=>{if('formatBlock'!=_0x1a373b['type'])return;const {data:_0x44c672}=_0x1a373b;if(_0x44c672&&'htmlEmbed'==_0x44c672['commandName']){const _0x2043ce=Mt(_0x413eea,'ELEMENT_HTML_EMBED');return{'type':'format','content':Mt(_0x413eea,'*Change\x20%0\x20content*',_0x2043ce)};}});}},he=class extends _0x5d30aa{afterInit(){const _0x2f8bdd=this['editor'];if(!_0x2f8bdd['plugins']['has']('ImageEditing'))return;const _0x1291a0=_0x2f8bdd['plugins']['get']('TrackChangesEditing'),_0x5d54bc=_0x2f8bdd['plugins']['get']('ImageUtils'),_0x33565e=_0x2f8bdd['locale'];_0x1291a0['enableCommand']('insertImage'),_0x1291a0['descriptionFactory']['registerElementLabel']('imageBlock',_0x2478f5=>Mt(_0x33565e,'ELEMENT_IMAGE',_0x2478f5)),_0x1291a0['descriptionFactory']['registerElementLabel']('imageInline',_0x29bdb4=>Mt(_0x33565e,'ELEMENT_INLINE_IMAGE',_0x29bdb4)),_0x1291a0['descriptionFactory']['registerElementLabel']('caption',()=>Mt(_0x33565e,'ELEMENT_CAPTION')),_0x2f8bdd['plugins']['has']('ImageUploadEditing')&&_0x1291a0['enableCommand']('uploadImage'),_0x2f8bdd['plugins']['has']('ImageBlockEditing')&&_0x2f8bdd['plugins']['has']('ImageInlineEditing')&&(_0x1291a0['enableCommand']('imageTypeInline',(_0x4855be,_0x57bdd0)=>{const _0x5a7b2e=_0x5d54bc['getClosestSelectedImageElement'](_0x2f8bdd['model']['document']['selection']);_0x2f8bdd['model']['change'](()=>{_0x1291a0['markBlockFormat'](_0x5a7b2e,{'commandName':'imageTypeInline','commandParams':[_0x57bdd0]},[],'convertBlockImageToInline');});}),_0x1291a0['enableCommand']('imageTypeBlock',(_0x51e3d1,_0x518d28)=>{_0x2f8bdd['model']['change'](_0x17f348=>{let _0x2eb1c0=_0x5d54bc['getClosestSelectedImageElement'](_0x2f8bdd['model']['document']['selection']),_0x486c86=_0x17f348['createRangeOn'](_0x2eb1c0);const _0x429ddf=st['fromPosition'](_0x486c86['start'],'toPrevious'),_0xccecb7=st['fromPosition'](_0x486c86['end'],'toNext');_0x1291a0['forceDefaultExecution'](()=>_0x51e3d1(_0x518d28)),_0x2eb1c0=_0x5d54bc['getClosestSelectedImageElement'](_0x2f8bdd['model']['document']['selection']),_0x486c86=_0x17f348['createRangeOn'](_0x2eb1c0);const _0x5130cf=_0x17f348['createRange'](_0x429ddf,_0xccecb7);_0x429ddf['detach'](),_0xccecb7['detach'](),_0x1291a0['markBlockFormat'](_0x2eb1c0,{'commandName':'imageTypeInline','commandParams':[_0x518d28]},[],'convertInlineImageToBlock'),_0x5130cf['start']['isBefore'](_0x486c86['start'])&&_0x1291a0['markInsertion'](_0x17f348['createRange'](_0x5130cf['start'],_0x486c86['start']),'convertInlineImageToBlock'),_0x486c86['end']['isBefore'](_0x5130cf['end'])&&_0x1291a0['markInsertion'](_0x17f348['createRange'](_0x486c86['end'],_0x5130cf['end']),'convertInlineImageToBlock');});}),_0x1291a0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1291a0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1291a0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1291a0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1291a0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1291a0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x545bda])=>{const _0x115f0a=_0x1291a0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1cfa25=_0x545bda['start'],_0x3294e4=_0x545bda['end'];const _0x58dda6=_0x2f8bdd['model']['schema']['getNearestSelectionRange'](_0x1cfa25,'backward'),_0x54e57b=_0x2f8bdd['model']['schema']['getNearestSelectionRange'](_0x3294e4,'forward');_0x58dda6['isCollapsed']&&(_0x1cfa25=_0x58dda6['start']),_0x54e57b['isCollapsed']&&(_0x3294e4=_0x54e57b['end']),_0x115f0a([_0x2f8bdd['model']['createRange'](_0x1cfa25,_0x3294e4)]);}),_0x1291a0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x397985),_0x1291a0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x397985)),_0x2f8bdd['plugins']['has']('ImageCaptionEditing')&&(_0x1291a0['enableCommand']('toggleImageCaption',(_0xb5e3ea,_0x314a9d)=>{const _0x48b0a7=_0x2f8bdd['plugins']['get']('ImageCaptionUtils');let _0x450365=_0x5d54bc['getClosestSelectedImageElement'](_0x2f8bdd['model']['document']['selection']),_0x33d083=_0x48b0a7['getCaptionFromImageModelElement'](_0x450365);_0x2f8bdd['model']['change'](()=>{if(_0x33d083)return void _0x1291a0['markDeletion'](_0x2f8bdd['model']['createRangeOn'](_0x33d083));const _0x54ff49=_0x5d54bc['isBlockImage'](_0x450365);_0xb5e3ea(_0x314a9d),_0x450365=_0x5d54bc['getClosestSelectedImageElement'](_0x2f8bdd['model']['document']['selection']),_0x33d083=_0x48b0a7['getCaptionFromImageModelElement'](_0x450365),_0x1291a0['markInsertion'](_0x2f8bdd['model']['createRangeOn'](_0x33d083),_0x54ff49?null:'imageCaption');});}),_0x1291a0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x397985));const _0x164c81=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x344be5(_0x18257e,_0xeefe2d){const _0x2a0c83=_0x164c81['findIndex'](({type:_0x3a699d,subType:_0x4a327f})=>_0x18257e['type']==_0x3a699d&&_0x18257e['subType']==_0x4a327f),_0x59aadc=_0x164c81['findIndex'](({type:_0x45dd61,subType:_0x47a44a})=>_0xeefe2d['type']==_0x45dd61&&_0xeefe2d['subType']==_0x47a44a);if(_0x2a0c83<0x0||_0x59aadc<0x0)return!0x1;const _0x5dbce8=_0x18257e['getFirstRange'](),_0x444fc8=_0xeefe2d['getFirstRange']();if((0x0==_0x2a0c83||0x1==_0x2a0c83)&&0x2==_0x59aadc&&_0x5dbce8['isIntersecting'](_0x444fc8))return!0x0;if(0x2==_0x2a0c83&&0x3==_0x59aadc){const _0x475d3b=_0x1291a0['_findSuggestions'](_0x5dbce8,'insertion')['filter'](({suggestion:_0xea8d8,meta:_0x5140b8})=>_0x5140b8['isOwn']&&'convertInlineImageToBlock'==_0xea8d8['subType']);if(_0x475d3b['length']>0x1&&_0x444fc8['end']['isEqual'](_0x5dbce8['start']))return!0x0;if(0x1==_0x475d3b['length']&&(_0x5dbce8['start']['isEqual'](_0x444fc8['end'])||_0x5dbce8['end']['isEqual'](_0x444fc8['start'])))return!0x0;}if(0x3==_0x2a0c83&&0x3==_0x59aadc&&_0x5dbce8['start']['isBefore'](_0x444fc8['start'])){const _0x2c115d=_0x5dbce8['end']['nodeAfter'],_0x536fbe=_0x444fc8['start']['nodeBefore'];return _0x5d54bc['isBlockImage'](_0x2c115d)&&_0x2c115d===_0x536fbe;}return!0x1;}function _0x397985(_0x3aaaa6,_0xc643fb){return _0x344be5(_0x3aaaa6,_0xc643fb)?[_0x3aaaa6,_0xc643fb]:_0x344be5(_0xc643fb,_0x3aaaa6)?[_0xc643fb,_0x3aaaa6]:null;}_0x2f8bdd['plugins']['has']('ImageResize')&&(_0x1291a0['enableDefaultAttributesIntegration']('resizeImage'),_0x1291a0['descriptionFactory']['registerAttributeLabel']('resizedWidth',Mt(_0x33565e,'FORMAT_IMAGE_SIZE'))),_0x2f8bdd['plugins']['has']('ImageTextAlternativeEditing')&&_0x1291a0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2f8bdd['plugins']['has']('PictureEditing')&&_0x1291a0['descriptionFactory']['registerDescriptionCallback'](_0x393177=>{if('attribute'!=_0x393177['type'])return;const {data:_0x3c031c}=_0x393177;return _0x3c031c&&'sources'==_0x3c031c['key']?{'type':'format','content':''}:void 0x0;}),_0x2f8bdd['plugins']['has']('ImageSizeAttributes')&&_0x1291a0['descriptionFactory']['registerDescriptionCallback'](_0x22af61=>{if('attribute'!=_0x22af61['type'])return;const {data:_0xacd8b}=_0x22af61;return!_0xacd8b||'width'!=_0xacd8b['key']&&'height'!=_0xacd8b['key']?void 0x0:{'type':'format','content':''};}),_0x1291a0['descriptionFactory']['registerDescriptionCallback'](_0x7f40b4=>{if(_0x164c81['find'](({type:_0x66aa98,subType:_0x4c4862})=>_0x7f40b4['type']==_0x66aa98&&_0x7f40b4['subType']==_0x4c4862))return _0x7f40b4['previous']?{}:void 0x0;}),_0x1291a0['descriptionFactory']['registerDescriptionCallback'](_0x4ad209=>{if('insertion'==_0x4ad209['type']||'deletion'==_0x4ad209['type']){const _0x4d6404=_0x4ad209['getContainedElement']();if(_0x4d6404&&_0x4d6404['is']('element','caption'))return{'type':'insertion'==_0x4ad209['type']?'addObject':'removeObject','element':_0x4d6404,'quantity':0x1};}}),_0x1291a0['descriptionFactory']['registerDescriptionCallback'](_0x2bcd09=>'formatBlock'==_0x2bcd09['type']&&'convertInlineImageToBlock'==_0x2bcd09['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2bcd09['type']&&'convertBlockImageToInline'==_0x2bcd09['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1291a0['descriptionFactory']['registerDescriptionCallback'](_0x149f17=>{if('attribute'!=_0x149f17['type'])return;const {data:_0x3e6344}=_0x149f17;if(!_0x3e6344||'alt'!=_0x3e6344['key'])return;const _0x43fe84=_0x3e6344['newValue'];return _0x43fe84?{'type':'format','content':Mt(_0x33565e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x43fe84+'\x22')}:{'type':'format','content':Mt(_0x33565e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5d5594=this['editor'],_0x40c099=_0x5d5594['locale'];_0x5d5594['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a121f=>{if('formatBlock'!=_0x5a121f['type']&&'formatInline'!=_0x5a121f['type'])return;const {data:_0x5d9ca2}=_0x5a121f;if(_0x5d9ca2){if('imageTextAlternative'==_0x5d9ca2['commandName']){const _0x29684c=_0x5d9ca2['commandParams'][0x0]['newValue'];return _0x29684c?{'type':'format','content':Mt(_0x40c099,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x29684c+'\x22')}:{'type':'format','content':Mt(_0x40c099,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5d9ca2['commandName']){const _0x3a76ee=_0x5d9ca2['commandParams'][0x0]['width'];return _0x3a76ee?{'type':'format','content':Mt(_0x40c099,'*Set\x20image\x20width:*\x20%0',_0x3a76ee)}:{'type':'format','content':Mt(_0x40c099,'*Reset\x20image\x20width*')};}}});}},ge=class extends _0x5d30aa{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1cba2c=this['editor']['locale'],_0x2faaf7=this['editor']['plugins']['get']('TrackChangesEditing');_0x2faaf7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2faaf7['descriptionFactory']['registerDescriptionCallback'](_0x4a8448=>{if('attribute'!=_0x4a8448['type'])return;const {data:_0x39bb70}=_0x4a8448;return _0x39bb70&&'src'==_0x39bb70['key']?_0x39bb70['newValue']&&_0x39bb70['oldValue']?{'type':'format','content':Mt(_0x1cba2c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x325dc5=this['editor']['plugins']['get']('TrackChangesEditing');_0x325dc5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x325dc5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x325dc5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x325dc5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5b4bfd=this['editor'],_0x563f88=_0x5b4bfd['locale'];_0x5b4bfd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x380960=>{if('formatBlock'!=_0x380960['type']&&'formatInline'!=_0x380960['type'])return;const {data:_0x5e2ccb}=_0x380960;return _0x5e2ccb&&'replaceImageSource'==_0x5e2ccb['commandName']?{'type':'format','content':Mt(_0x563f88,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},fe=class extends _0x5d30aa{afterInit(){const _0x22d365=this['editor'];if(!_0x22d365['plugins']['has']('ImageStyleEditing'))return;const _0x1350c5=_0x22d365['plugins']['get']('TrackChangesEditing'),_0x5ecbda=_0x22d365['plugins']['get']('ImageUtils'),_0x4949c3={};_0x1350c5['enableCommand']('imageStyle',(_0x5e66c4,_0x5ec519)=>{const _0x462d98=_0x22d365['plugins']['get']('Users')['me'],_0x10fbae=_0x22d365['commands']['get']('imageStyle');let _0x505593=_0x5ecbda['getClosestSelectedImageElement'](_0x22d365['model']['document']['selection']),_0x550eef=_0x22d365['model']['createRangeOn'](_0x505593),_0x3a872f=_0x10fbae['value'];if(_0x3a872f==_0x5ec519['value'])return;if(_0x5ec519['value']&&_0x5ecbda['isInlineImage'](_0x505593)&&!_0x10fbae['isStyleEnabled'](_0x5ec519['value']))return;const _0x4a1e86={'commandName':'imageStyle','commandParams':[_0x5ec519],'formatGroupId':_0x592457()};_0x22d365['model']['change'](()=>{if(_0x1350c5['getSuggestions']()['filter'](_0x5c9d62=>_0x5c9d62['isInContent']&&_0x462d98==_0x5c9d62['author']&&('formatBlock'==_0x5c9d62['type']||'formatInline'==_0x5c9d62['type'])&&('imageStylePreApply'==_0x5c9d62['subType']||'imageStylePostApply'==_0x5c9d62['subType'])&&_0x5c9d62['getFirstRange']()['isEqual'](_0x550eef))['forEach'](_0x50796d=>_0x1350c5['discardSuggestion'](_0x50796d['head'])),_0x505593=_0x5ecbda['getClosestSelectedImageElement'](_0x22d365['model']['document']['selection']),_0x550eef=_0x22d365['model']['createRangeOn'](_0x505593),_0x10fbae['refresh'](),_0x22d365['commands']['get']('imageTypeInline')['refresh'](),_0x22d365['commands']['get']('imageTypeBlock')['refresh'](),_0x3a872f=_0x10fbae['value'],_0x3a872f!=_0x5ec519['value'])return _0x5ecbda['isInlineImage'](_0x505593)&&_0x10fbae['shouldConvertImageType'](_0x5ec519['value'],_0x505593)?(_0x5e66c4({..._0x5ec519,'setImageSizes':!0x1}),_0x505593=_0x5ecbda['getClosestSelectedImageElement'](_0x22d365['model']['document']['selection']),void _0x1350c5['markBlockFormat'](_0x505593,{..._0x4a1e86,'commandReversedParams':[{'value':_0x3a872f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5ecbda['isBlockImage'](_0x505593)?_0x1350c5['markBlockFormat'](_0x505593,_0x4a1e86,[],'imageStylePostApply'):_0x1350c5['markInlineFormat'](_0x550eef,_0x4a1e86,'imageStylePostApply'));});});for(const _0x300508 of _0x22d365['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4949c3[_0x300508['name']]=_0x300508['title']['toLowerCase']();_0x1350c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1350c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1350c5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1350c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4195f5])=>{_0x5ecbda['setImageNaturalSizeAttributes'](_0x4195f5['getContainedElement']());}),_0x1350c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2989cb,_0x3fc922)=>{_0x1350c5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2989cb,{'commandName':_0x3fc922['commandName'],'commandParams':_0x3fc922['commandReversedParams']});}),_0x1350c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3900d8,_0x44ee70){return _0x486297(_0x3900d8,_0x44ee70)?[_0x3900d8,_0x44ee70]:_0x486297(_0x44ee70,_0x3900d8)?[_0x44ee70,_0x3900d8]:null;});const _0x3e05a4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x486297(_0x21b705,_0x1e795b){const _0x10825a=_0x3e05a4['findIndex'](({type:_0x5d3db7,subType:_0x282a41})=>_0x21b705['type']==_0x5d3db7&&_0x21b705['subType']==_0x282a41),_0x317890=_0x3e05a4['findIndex'](({type:_0x41b03b,subType:_0x3a9fb9})=>_0x1e795b['type']==_0x41b03b&&_0x1e795b['subType']==_0x3a9fb9);if(_0x10825a<0x0||_0x317890<0x0)return!0x1;const _0x2a00c7=_0x21b705['getFirstRange'](),_0x589734=_0x1e795b['getFirstRange']();if((0x0==_0x10825a||0x1==_0x10825a)&&0x2==_0x317890&&_0x2a00c7['isIntersecting'](_0x589734))return!0x0;if(0x2==_0x10825a&&0x3==_0x317890){const _0x13976a=_0x1350c5['_findSuggestions'](_0x2a00c7,'insertion')['filter'](({suggestion:_0x36fdf8,meta:_0x1e7296})=>_0x1e7296['isOwn']&&'convertInlineImageToBlock'==_0x36fdf8['subType']);if(_0x13976a['length']>0x1&&_0x589734['end']['isEqual'](_0x2a00c7['start']))return!0x0;if(0x1==_0x13976a['length']&&(_0x2a00c7['start']['isEqual'](_0x589734['end'])||_0x2a00c7['end']['isEqual'](_0x589734['start'])))return!0x0;}if(0x3==_0x10825a&&0x3==_0x317890&&_0x2a00c7['start']['isBefore'](_0x589734['start'])){const _0x17431d=_0x2a00c7['end']['nodeAfter'],_0x15e64e=_0x589734['start']['nodeBefore'];return _0x5ecbda['isBlockImage'](_0x17431d)&&_0x17431d===_0x15e64e;}return!0x1;}_0x22d365['model']['document']['registerPostFixer'](()=>{let _0x361ba0=!0x1;const _0x53285c=Array['from'](_0x22d365['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x919432,data:_0x20370a}of _0x53285c){const {group:_0x1d3d30,type:_0x47ffc8,subType:_0xca93e9,id:_0x171769}=tt(_0x919432);if('suggestion'==_0x1d3d30&&_0x1350c5['hasSuggestion'](_0x171769)){if('formatBlock'==_0x47ffc8&&('imageStylePreApply'==_0xca93e9||'imageStylePostApply'==_0xca93e9)){const _0x351982=_0x1350c5['getSuggestion'](_0x171769);if(_0x20370a['newRange']){const _0x3ba701=_0x351982['getFirstRange']()['getContainedElement']();if(_0x5ecbda['isBlockImage'](_0x3ba701))continue;_0x1350c5['discardSuggestion'](_0x351982),_0x361ba0=!0x0;}}if('insertion'==_0x47ffc8&&'imageCaption'==_0xca93e9&&!_0x20370a['newRange']){const _0x1c714d=_0x1350c5['getSuggestion'](_0x171769);_0x1c714d['next']&&_0x1c714d['next']['isInContent']&&(_0x1350c5['discardSuggestion'](_0x1c714d['next']),_0x361ba0=!0x0);}}}return _0x361ba0;}),this['_registerLegacyDescription'](_0x4949c3);}_registerLegacyDescription(_0x4d6546){const _0x3cada2=this['editor'],_0x463a22=_0x3cada2['locale'];_0x3cada2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x558582=>{if('formatBlock'!=_0x558582['type']&&'formatInline'!=_0x558582['type'])return;const {data:_0x49d0d9}=_0x558582;if(!_0x49d0d9||'imageStyle'!=_0x49d0d9['commandName'])return;const _0xe8bfde=_0x49d0d9['commandParams'][0x0]['value'];return _0x5cae93('side'===_0xe8bfde?Mt(_0x463a22,'FORMAT_SIDE_IMAGE'):_0x4d6546[_0xe8bfde]||_0xe8bfde);function _0x5cae93(_0x117f68){return{'type':'format','content':Mt(_0x463a22,'*Format:*\x20%0',_0x117f68)};}});}},me=class extends _0x5d30aa{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x54730d){super(_0x54730d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x24af0f=this['editor'],_0x433ffb=_0x24af0f['commands']['get']('importWord'),_0x59079a=_0x24af0f['commands']['get']('trackChanges');_0x433ffb&&(_0x433ffb['on']('execute',(_0x3ea192,[,_0x149f9b])=>{this['_trackChangesValueDuringImport']=_0x59079a['value'],_0x149f9b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x433ffb,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x433ffb,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x59079a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x24af0f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x4bff0c,_0x458a47){const {suggestions:_0x5665fd}=_0x458a47,_0x546b13=this['editor']['commands']['get']('trackChanges'),_0x48e1d3=_0x546b13['value'];this['_trackChangesValueDuringImport']!==_0x48e1d3&&(_0x546b13['execute'](),this['_trackChangesExecuted']=!0x0),_0x5665fd&&_0x5665fd['forEach'](({id:_0x17d8b2,type:_0x25ea95,author:_0x4f7dc,created_at:_0x3191f0})=>{const _0x1d4173={'id':_0x17d8b2,'type':_0x25ea95,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4f7dc,'createdAt':_0x3191f0?new Date(_0x3191f0):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1d4173);});}},Ee=class extends _0x5d30aa{afterInit(){const _0x4a908f=this['editor'],_0x3719f9=_0x4a908f['plugins']['get']('TrackChangesEditing');if(_0x4a908f['plugins']['has']('IndentEditing')&&(_0x3719f9['enableCommand']('indent'),_0x3719f9['enableCommand']('outdent')),_0x4a908f['plugins']['has']('IndentBlock')){for(const _0x5305bf of['indentBlock','outdentBlock'])_0x3719f9['enableDefaultAttributesIntegration'](_0x5305bf);if(_0x4a908f['plugins']['has']('ListEditing')){for(const _0x735825 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3719f9['enableDefaultAttributesIntegration'](_0x735825);}}const _0x501e1c=_0x4a908f['locale'];_0x3719f9['descriptionFactory']['registerAttributeLabel']('blockIndent',Mt(_0x501e1c,'FORMAT_INDENT')),_0x3719f9['descriptionFactory']['registerAttributeLabel']('blockIndentList',Mt(_0x501e1c,'FORMAT_INDENT')),_0x3719f9['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Mt(_0x501e1c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x13d650=this['editor'],_0x43de5a=_0x13d650['locale'],_0x238717=_0x13d650['plugins']['get']('TrackChangesEditing');_0x238717['descriptionFactory']['registerDescriptionCallback'](_0x224010=>{if('formatBlock'!=_0x224010['type'])return;const {data:_0x229eb9}=_0x224010;if(!_0x229eb9)return;if('indentBlock'!=_0x229eb9['commandName']&&'outdentBlock'!=_0x229eb9['commandName'])return;const _0x147b50=_0x224010['getItems']()[0x0],_0x21079d=_0x238717['descriptionFactory']['getItemLabel'](_0x147b50);return'indentBlock'==_0x229eb9['commandName']?{'type':'format','content':Mt(_0x43de5a,'*Indent:*\x20%0',_0x21079d)}:'outdentBlock'==_0x229eb9['commandName']?{'type':'format','content':Mt(_0x43de5a,'*Outdent:*\x20%0',_0x21079d)}:void 0x0;});}},Te=class extends _0x5d30aa{static get requires(){return[mt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},_e=class extends _0x5d30aa{afterInit(){const _0x2be5b9=this['editor'];if(!_0x2be5b9['plugins']['has']('LinkEditing'))return;const _0x35640e=_0x2be5b9['plugins']['get']('TrackChangesEditing'),_0x334f4d=_0x2be5b9['commands']['get']('link');_0x35640e['enableDefaultAttributesIntegration']('link'),_0x35640e['enableDefaultAttributesIntegration']('unlink');for(const _0x3d8016 of _0x334f4d['manualDecorators'])_0x35640e['descriptionFactory']['registerAttributeLabel'](_0x3d8016['id'],'link\x20('+_0x3d8016['label']['toLowerCase']()+')');_0x35640e['descriptionFactory']['registerDescriptionCallback'](_0x541239=>{if('attribute'!=_0x541239['type'])return;const {data:_0x2a6a32}=_0x541239;if(!_0x2a6a32||'linkHref'!=_0x2a6a32['key'])return;const _0x5020cf=_0x2a6a32['newValue'],_0x41fe3f=_0x2be5b9['locale'];return{'type':'format','content':null==_0x5020cf?Mt(_0x41fe3f,'*Remove\x20link*'):Mt(_0x41fe3f,'*Set\x20link:*\x20%0','\x22'+_0x5020cf+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x173ac9=this['editor'],_0x2e6c67=_0x173ac9['locale'];_0x173ac9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26365e=>{if('formatInline'!=_0x26365e['type'])return;const {data:_0x8d4c9d}=_0x26365e;if(_0x8d4c9d){if('link'==_0x8d4c9d['commandName']){const _0x8c96a0=_0x8d4c9d['commandParams'][0x0];return{'type':'format','content':Mt(_0x2e6c67,'*Set\x20link:*\x20%0','\x22'+_0x8c96a0+'\x22')};}return'unlink'==_0x8d4c9d['commandName']?{'type':'format','content':Mt(_0x2e6c67,'*Remove\x20link*')}:void 0x0;}});}},pe=class extends _0x5d30aa{afterInit(){const _0x74a9d3=this['editor'],_0x3225a0=_0x74a9d3['locale'];if(!_0x74a9d3['plugins']['has']('LegacyListEditing'))return;const _0x791f3c=_0x74a9d3['plugins']['get']('TrackChangesEditing'),_0x13ae14=_0x74a9d3['plugins']['has']('LegacyTodoListEditing');function _0x15acc2(_0x355628){return()=>{const _0xf579b4=_0x74a9d3['model']['document']['selection'],_0x4cc869=_0x74a9d3['commands']['get'](_0x355628);if(_0x4cc869['value'])return void _0x74a9d3['execute']('paragraph',{});const _0x163b5e=_0x355628['slice'](0x0,-0x4),_0x41ac92=function(_0x10dcc8,_0x2ac05f,_0x331206){let _0x7c6691=Array['from'](_0x10dcc8)['filter'](_0x2ef38c=>function(_0x287699,_0x1931bc){return _0x1931bc['checkChild'](_0x287699['parent'],'listItem')&&!_0x1931bc['isObject'](_0x287699);}(_0x2ef38c,_0x331206));_0x7c6691=_0x7c6691['filter'](_0x1fda4e=>!_0x1fda4e['is']('element','listItem')||_0x1fda4e['getAttribute']('listType')!=_0x2ac05f);const _0x5d4e56=new Set();for(const _0x14cf95 of _0x7c6691)_0x14cf95['is']('element','listItem')?_0x5d4e56['add'](Le(_0x14cf95)):_0x5d4e56['add'](_0x14cf95);return Array['from'](_0x5d4e56);}(_0xf579b4['getSelectedBlocks'](),_0x163b5e,_0x74a9d3['model']['schema']);_0x74a9d3['model']['change'](()=>{for(const _0x417388 of _0x41ac92)_0x791f3c['markBlockFormat'](_0x417388,{'commandName':_0x355628,'commandParams':[{'forceValue':!_0x4cc869['value']}],'formatGroupId':'blockName'},Ie(_0x417388));});};}function _0x97b5ec(_0x3eb169){return()=>{const _0x4a68ee=function(_0x5a2805){let _0x395d2f=Array['from'](_0x5a2805);const _0x2365a6=_0x395d2f['findIndex'](_0x13b149=>'listItem'!=_0x13b149['name']);return _0x2365a6>-0x1&&(_0x395d2f=_0x395d2f['slice'](0x0,_0x2365a6)),_0x395d2f;}(_0x74a9d3['model']['document']['selection']['getSelectedBlocks']()),_0x496df0=_0x74a9d3['model']['createRange'](_0x74a9d3['model']['createPositionAt'](_0x4a68ee[0x0],'before'),_0x74a9d3['model']['createPositionAt'](_0x4a68ee[_0x4a68ee['length']-0x1],'end'));_0x74a9d3['model']['change'](()=>{_0x791f3c['markBlockFormat'](_0x496df0,{'commandName':_0x3eb169,'commandParams':[],'formatGroupId':'listIndent'},function(_0x386010){const _0x4a3d32=new Set();for(const _0x3eca32 of _0x386010){let _0x4fa23c=_0x3eca32['nextSibling'];for(;_0x4fa23c&&_0x4fa23c['getAttribute']('listIndent')>_0x3eca32['getAttribute']('listIndent');)_0x4a3d32['add'](_0x4fa23c),_0x4fa23c=_0x4fa23c['nextSibling'];}return Array['from'](_0x4a3d32);}(_0x4a68ee));});};}_0x791f3c['enableCommand']('numberedList',_0x15acc2('numberedList')),_0x791f3c['enableCommand']('bulletedList',_0x15acc2('bulletedList')),_0x13ae14&&_0x791f3c['enableCommand']('todoList',_0x15acc2('todoList')),_0x791f3c['enableCommand']('indentList',_0x97b5ec('indentList')),_0x791f3c['enableCommand']('outdentList',_0x97b5ec('outdentList')),_0x13ae14&&_0x791f3c['enableCommand']('checkTodoList',()=>{const _0x1b07b7=_0x74a9d3['commands']['get']('checkTodoList'),_0x2fe1=Array['from'](_0x1b07b7['_selectedElements']);_0x2fe1['filter'](_0x2fb2a2=>_0x2fb2a2['getAttribute']('todoListChecked')!=_0x1b07b7['value']),_0x74a9d3['model']['change'](()=>{for(const _0x406d1f of _0x2fe1)_0x791f3c['markBlockFormat'](_0x406d1f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1b07b7['value']}]});});}),_0x791f3c['descriptionFactory']['registerElementLabel']('listItem',_0x1487f3=>Mt(_0x3225a0,'ELEMENT_LIST_ITEM',_0x1487f3)),_0x791f3c['descriptionFactory']['registerDescriptionCallback'](_0x3131d5=>{if('formatBlock'!=_0x3131d5['type']&&'formatInline'!=_0x3131d5['type'])return;const {data:_0x366f5f}=_0x3131d5;if(_0x366f5f){if('numberedList'==_0x366f5f['commandName']||'bulletedList'==_0x366f5f['commandName']||'todoList'==_0x366f5f['commandName'])switch(_0x366f5f['commandName']['replace']('List','')){case'bulleted':return _0x378b8f(Mt(_0x3225a0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x378b8f(Mt(_0x3225a0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x378b8f(Mt(_0x3225a0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x366f5f['commandName'])return{'type':'format','content':Mt(_0x3225a0,'*Indent:*\x20%0',Mt(_0x3225a0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x366f5f['commandName'])return{'type':'format','content':Mt(_0x3225a0,'*Outdent:*\x20%0',Mt(_0x3225a0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x366f5f['commandName'])return _0x366f5f['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x3225a0,'*Check\x20item*')}:{'type':'format','content':Mt(_0x3225a0,'*Uncheck\x20item*')};}function _0x378b8f(_0x25870c){return{'type':'format','content':Mt(_0x3225a0,'*Change\x20to:*\x20%0',_0x25870c)};}});}};function Le(_0x1cf4e7){const _0x30b26e=_0x1cf4e7['getAttribute']('listIndent');if(0x0==_0x30b26e)return _0x1cf4e7;let _0x32d08f=_0x1cf4e7;for(;_0x1cf4e7['previousSibling']&&_0x1cf4e7['previousSibling']['is']('element','listItem');){const _0x256800=_0x1cf4e7['previousSibling']['getAttribute']('listIndent');if(_0x256800==_0x30b26e)_0x32d08f=_0x1cf4e7['previousSibling'];else{if(_0x256800<_0x30b26e)break;}_0x1cf4e7=_0x1cf4e7['previousSibling'];}return _0x32d08f;}function Ie(_0x57be03){const _0x31bcb4=[];if(_0x57be03['is']('element','listItem')&&_0x57be03['getAttribute']('listIndent')>0x0){let _0x4e9f18=_0x57be03['nextSibling'];for(;_0x4e9f18&&'listItem'==_0x4e9f18['name']&&_0x4e9f18['getAttribute']('listIndent')==_0x57be03['getAttribute']('listIndent');)_0x31bcb4['push'](_0x4e9f18),_0x4e9f18=_0x4e9f18['nextSibling'];}return _0x31bcb4;}var Ae=class extends _0x5d30aa{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x24fd03=this['editor']['config']['get']('list.properties'),_0xece022=this['editor']['plugins']['get']('TrackChangesEditing');_0x24fd03['styles']&&_0xece022['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x24fd03['reversed']&&_0xece022['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x24fd03['startIndex']&&_0xece022['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xece022['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x1670e,_0x1df120={}){const _0xc45104=this['editor']['plugins']['get']('TrackChangesEditing'),_0x224880=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xc45104['markMultiRangeBlockFormat'](_0x224880,{'commandName':'listStyle','commandParams':[{'type':_0x1df120['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x1bbc8c,_0x582e2f={}){const _0x105b8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26306b=this['_getSuggestionBlocks'](_0x1f5394=>_0x1f5394['is']('element','listItem')&&'numbered'===_0x1f5394['getAttribute']('listType'));if(_0x26306b['length']<0x1)return;const _0x407151=_0x26306b['map'](_0x559f8a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x559f8a,'before'),this['editor']['model']['createPositionAt'](_0x559f8a,0x0)));this['editor']['model']['change'](()=>{_0x105b8e['markMultiRangeBlockFormat'](_0x407151,{'commandName':'listReversed','commandParams':[{'reversed':_0x582e2f['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x122350,_0x47f367={}){const _0x19359e=this['editor']['plugins']['get']('TrackChangesEditing'),_0xecf13b=this['_getSuggestionBlocks'](_0x8f15b2=>_0x8f15b2['is']('element','listItem')&&'numbered'===_0x8f15b2['getAttribute']('listType'));if(_0xecf13b['length']<0x1)return;const _0x3ab8b7=_0xecf13b['map'](_0x41f272=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x41f272,'before'),this['editor']['model']['createPositionAt'](_0x41f272,0x0)));this['editor']['model']['change'](()=>{_0x19359e['markMultiRangeBlockFormat'](_0x3ab8b7,{'commandName':'listStart','commandParams':[{'startIndex':_0x47f367['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x30cb32){if('formatBlock'!=_0x30cb32['type']&&'formatInline'!=_0x30cb32['type'])return;const _0x141b06=this['editor']['locale'],{data:_0x37330b}=_0x30cb32;if(!_0x37330b)return;let _0xa303c4,_0x4eca31;switch(_0x37330b['commandName']){case'listStyle':_0xa303c4='*Change\x20to:*\x20%0',_0x4eca31={'type':'format','content':Mt(_0x141b06,_0xa303c4,Mt(_0x141b06,this['_getTranslationKeyForListStyle'](_0x37330b['commandParams'][0x0]['type'])))};break;case'listReversed':_0xa303c4=_0x37330b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4eca31={'type':'format','content':Mt(_0x141b06,_0xa303c4)};break;case'listStart':_0xa303c4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4eca31={'type':'format','content':Mt(_0x141b06,_0xa303c4,_0x37330b['commandParams'][0x0]['startIndex'])};}return _0x4eca31;}_getSuggestionBlocksForListStyle(){const _0x46b3f6=this['editor']['plugins']['get']('LegacyListUtils');let _0x419a09=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x419a09[0x0]?.['is']('element','listItem')&&_0x419a09['unshift'](..._0x46b3f6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x419a09[_0x419a09['length']-0x1]?.['is']('element','listItem')&&_0x419a09['push'](..._0x46b3f6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x419a09=[...new Set(_0x419a09)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x419a09=_0x419a09['filter'](_0xadb953=>_0xadb953['is']('element','listItem'))),_0x419a09;}_getSuggestionBlocks(_0x42f57c){const _0x432de3=this['editor']['plugins']['get']('LegacyListUtils');let _0x158366=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x42f57c)['map'](_0x35ed60=>{const _0x33f946=this['editor']['model']['createPositionAt'](_0x35ed60,0x0);return[..._0x432de3['getSiblingNodes'](_0x33f946,'backward'),..._0x432de3['getSiblingNodes'](_0x33f946,'forward')];})['flat']();return _0x158366=[...new Set(_0x158366)],_0x158366;}_getTranslationKeyForListStyle(_0x524339){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x524339)||'default')['toUpperCase']()+'_LIST_'+_0x524339['toUpperCase']()['replace'](/-/g,'_');}},be=class extends _0x5d30aa{afterInit(){const _0x20ab06=this['editor'];if(!_0x20ab06['plugins']['has']('MediaEmbedEditing'))return;const _0x1dd32c=_0x20ab06['plugins']['get']('TrackChangesEditing'),_0x11bdde=_0x20ab06['locale'];_0x1dd32c['enableCommand']('mediaEmbed'),_0x1dd32c['descriptionFactory']['registerElementLabel']('media',_0x159804=>Mt(_0x11bdde,'ELEMENT_MEDIA',_0x159804)),_0x20ab06['plugins']['has']('MediaEmbedResizeEditing')&&(_0x1dd32c['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x1dd32c['descriptionFactory']['registerDescriptionCallback'](_0x146c80=>{if('attribute'!=_0x146c80['type'])return;const {data:_0x2b795e}=_0x146c80;if(!_0x2b795e||'resizedWidth'!=_0x2b795e['key'])return;const _0x4db878=_0x146c80['getContainedElement']();if(!_0x4db878||!_0x4db878['is']('element','media'))return;const _0x29d78c=Mt(_0x11bdde,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Mt(_0x11bdde,'*Set\x20format:*\x20%0',_0x29d78c)};}));}},ke=class extends _0x5d30aa{afterInit(){const _0x509655=this['editor'];if(!_0x509655['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x52464a=_0x509655['plugins']['get']('TrackChangesEditing'),_0x49ae2a=_0x509655['locale'],_0x2a4480=_0x509655['plugins']['get']('MediaEmbedStyleEditing'),_0xdf0789={};for(const _0x1b6bd2 of _0x2a4480['normalizedStyles'])_0xdf0789[_0x1b6bd2['name']]=_0x1b6bd2['title']['toLowerCase']();const _0x22d724=_0x2a4480['normalizedStyles']['find'](_0x23ad5a=>_0x23ad5a['isDefault'])?.['name'];_0x52464a['enableCommand']('mediaStyle',(_0x15bc26,_0x269154)=>{const _0x24e2f4=_0x509655['plugins']['get']('Users')['me'],_0x5c31b3=_0x509655['commands']['get']('mediaStyle'),_0x2b77cf=function(_0x352b97){const _0x3cbefd=_0x352b97['model']['document']['selection']['getSelectedElement']();return _0x3cbefd&&_0x3cbefd['is']('element','media')?_0x3cbefd:null;}(_0x509655);if(!_0x2b77cf)return;const _0x56e85e=_0x509655['model']['createRangeOn'](_0x2b77cf);let _0x5efc93=_0x5c31b3['value'];if(_0x5efc93==_0x269154['value'])return;const _0x154bd9={'commandName':'mediaStyle','commandParams':[_0x269154],'formatGroupId':_0x592457()};_0x509655['model']['change'](()=>{_0x52464a['getSuggestions']()['filter'](_0x3de94f=>_0x3de94f['isInContent']&&_0x24e2f4==_0x3de94f['author']&&'formatBlock'==_0x3de94f['type']&&'mediaStylePostApply'==_0x3de94f['subType']&&_0x3de94f['getFirstRange']()['isEqual'](_0x56e85e))['forEach'](_0x43700c=>_0x52464a['discardSuggestion'](_0x43700c['head'])),_0x5c31b3['refresh'](),_0x5efc93=_0x5c31b3['value'],_0x5efc93!=_0x269154['value']&&_0x52464a['markBlockFormat'](_0x2b77cf,{..._0x154bd9,'commandReversedParams':[{'value':'string'==typeof _0x5efc93?_0x5efc93:null}]},[],'mediaStylePostApply');});}),_0x52464a['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x52464a['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x5ea2ee,_0x25e43e)=>{_0x52464a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5ea2ee,{'commandName':_0x25e43e['commandName'],'commandParams':_0x25e43e['commandReversedParams']});}),_0x52464a['descriptionFactory']['registerDescriptionCallback'](_0x342878=>{if('formatBlock'!=_0x342878['type'])return;const {data:_0x576a29}=_0x342878;if(!_0x576a29||'mediaStyle'!=_0x576a29['commandName'])return;const _0x473d44=_0x576a29['commandParams'][0x0]['value']||_0x22d724;if(!_0x473d44)return;const _0x54c78e=_0xdf0789[_0x473d44]||_0x473d44;return{'type':'format','content':Mt(_0x49ae2a,'*Format:*\x20%0',_0x54c78e)};});}},Ce=class extends _0x5d30aa{afterInit(){const _0x4be74e=this['editor'];_0x4be74e['plugins']['has']('MentionEditing')&&_0x4be74e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Re=class extends _0x5d30aa{afterInit(){const _0x5ef2b9=this['editor'];if(!_0x5ef2b9['plugins']['has']('MergeFieldsEditing'))return;const _0x344d4c=_0x5ef2b9['plugins']['get']('TrackChangesEditing'),_0x5d862c=_0x5ef2b9['locale'];_0x344d4c['enableCommand']('insertMergeField'),_0x344d4c['enableCommand']('insertMergeFieldBlock'),_0x344d4c['enableCommand']('insertMergeFieldImage'),_0x344d4c['descriptionFactory']['registerElementLabel']('mergeField',_0x3928ec=>Mt(_0x5d862c,'ELEMENT_MERGE_FIELD',_0x3928ec)),_0x344d4c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x8220f4=>Mt(_0x5d862c,'ELEMENT_MERGE_FIELD',_0x8220f4)),_0x344d4c['descriptionFactory']['registerDescriptionCallback'](_0x12dff=>{if('insertion'!=_0x12dff['type']&&'deletion'!=_0x12dff['type'])return;const _0x18b5ab=_0x12dff['getContainedElement']();if(null==_0x18b5ab)return;const _0x3cc24e=_0x5ef2b9['plugins']['get']('MergeFieldsEditing');let _0x3a7a4e;switch(_0x3cc24e['getMergeFieldType'](_0x18b5ab)){case null:return;case'image':{const _0x504d82=_0x3cc24e['unwrapAffixes'](_0x18b5ab['getAttribute']('src'));_0x3a7a4e=_0x3cc24e['getLabel'](_0x504d82)||_0x504d82;break;}default:{const _0x1e860e=_0x18b5ab['getAttribute']('id');_0x3a7a4e=_0x3cc24e['getLabel'](_0x1e860e)||_0x1e860e;break;}}return'insertion'==_0x12dff['type']?{'type':'insertion','content':Mt(_0x5d862c,'*Insert:*\x20%0','\x22'+_0x3a7a4e+'\x22\x20'+Mt(_0x5d862c,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Mt(_0x5d862c,'*Remove:*\x20%0','\x22'+_0x3a7a4e+'\x22\x20'+Mt(_0x5d862c,'ELEMENT_MERGE_FIELD'))};});}},ye=class extends _0x5d30aa{afterInit(){const _0x5c0002=this['editor'],_0x570ca9=_0x5c0002['plugins']['get']('TrackChangesEditing');_0x5c0002['plugins']['has']('MultiLevelList')&&(_0x570ca9['enableDefaultAttributesIntegration']('multiLevelList'),_0x570ca9['descriptionFactory']['registerDescriptionCallback'](_0x1979cd=>this['handleDescriptions'](_0x1979cd)));}handleDescriptions(_0x3a9301){const _0x5b1683=this['editor']['locale'],{data:_0x5e7aba}=_0x3a9301,_0x21726c={'type':'format','content':''};if(_0x5e7aba&&'listMarkerStyle'==_0x5e7aba['key']){if(!_0x5e7aba['oldValue'])return{'type':'format','content':Mt(_0x5b1683,'*Set\x20format:*\x20%0',Mt(_0x5b1683,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5e7aba['newValue']+')'};if(!_0x5e7aba['newValue']){let _0x73354d=_0x3a9301['head'];for(;_0x73354d;){if(_0x73354d['data']&&'listType'==_0x73354d['data']['key']&&_0x73354d['data']['newValue'])return _0x21726c;_0x73354d=_0x73354d['next'];}return{'type':'format','content':Mt(_0x5b1683,'*Remove\x20format:*\x20%0',Mt(_0x5b1683,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5e7aba['oldValue']+')'};}}}},Ne=class extends _0x5d30aa{afterInit(){const _0x27a7a1=this['editor'];if(!_0x27a7a1['plugins']['has']('PageBreakEditing'))return;_0x27a7a1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5338d2=_0x27a7a1['plugins']['get']('TrackChangesEditing'),_0x304924=_0x27a7a1['locale'];_0x5338d2['descriptionFactory']['registerElementLabel']('pageBreak',_0x2e2c89=>Mt(_0x304924,'ELEMENT_PAGE_BREAK',_0x2e2c89));}},Se=class extends _0x5d30aa{afterInit(){const _0x49e2b1=this['editor'];if(!_0x49e2b1['plugins']['has']('Paragraph'))return;const _0x35e6c3=_0x49e2b1['locale'],_0x34cece=_0x49e2b1['plugins']['get']('TrackChangesEditing');_0x34cece['descriptionFactory']['registerElementLabel']('paragraph',_0x54a33a=>Mt(_0x35e6c3,'ELEMENT_PARAGRAPH',_0x54a33a)),_0x34cece['enableDefaultAttributesIntegration']('paragraph'),_0x34cece['enableCommand']('insertParagraph');const _0x546849=_0x34cece['descriptionFactory'];_0x546849['registerDescriptionCallback'](_0x2f77fa=>{if('insertion'!==_0x2f77fa['type'])return;const {start:_0x563865,end:_0x498410}=_0x2f77fa['getFirstRange']();if(!_0x563865['isTouching'](_0x498410)||!_0x563865['nodeAfter'])return;const _0x342814=_0x49e2b1['model']['schema'],_0x71803=_0x563865['nodeAfter'];return _0x342814['isBlock'](_0x71803)&&!_0x342814['isLimit'](_0x71803)&&_0x342814['checkChild'](_0x71803,'$text')?{'type':'insertion','content':Mt(_0x35e6c3,'*Insert:*\x20%0',_0x546849['getItemLabel'](_0x71803,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x273a2c=this['editor'],_0x244474=_0x273a2c['locale'];_0x273a2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x362bd1=>{if('formatBlock'!=_0x362bd1['type'])return;const {data:_0x37408e}=_0x362bd1;return _0x37408e&&'paragraph'==_0x37408e['commandName']?{'type':'format','content':Mt(_0x244474,'*Change\x20to:*\x20%0',Mt(_0x244474,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Me=class extends _0x5d30aa{afterInit(){const _0x16f427=this['editor'];_0x16f427['commands']['get']('replaceSource')&&_0x16f427['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Oe=class extends _0x5d30aa{afterInit(){const _0x53ee5b=this['editor'];_0x53ee5b['plugins']['has']('RemoveFormatEditing')&&(_0x53ee5b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x992cbd=this['editor'];_0x992cbd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a4e2=>{if('formatBlock'!=_0x1a4e2['type']&&'formatInline'!=_0x1a4e2['type'])return;const {data:_0x3059c0}=_0x1a4e2;return _0x3059c0&&'removeFormat'==_0x3059c0['commandName']?{'type':'format','content':Mt(_0x992cbd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},we=class extends _0x5d30aa{afterInit(){const _0x444be5=this['editor'];if(!_0x444be5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x243c4c=_0x444be5['plugins']['get']('TrackChangesEditing');_0x243c4c['enableCommand']('goToPreviousRestrictedEditingException'),_0x243c4c['enableCommand']('goToNextRestrictedEditingException');const _0x5ba380=_0x444be5['plugins']['get']('RestrictedEditingModeEditing');_0x5ba380['enableCommand']('trackChanges'),_0x5ba380['enableCommand']('acceptSuggestion'),_0x5ba380['enableCommand']('discardSuggestion'),_0x5ba380['enableCommand']('acceptAllSuggestions'),_0x5ba380['enableCommand']('discardAllSuggestions'),_0x5ba380['enableCommand']('acceptSelectedSuggestions'),_0x5ba380['enableCommand']('discardSelectedSuggestions');}},Fe=class extends _0x5d30aa{afterInit(){const _0x25bd90=this['editor'];if(!_0x25bd90['plugins']['has']('ShiftEnter'))return;const _0xdb72b4=_0x25bd90['plugins']['get']('TrackChangesEditing');_0xdb72b4['enableCommand']('shiftEnter'),_0xdb72b4['descriptionFactory']['registerElementLabel']('softBreak',_0x1a4489=>Mt(_0x25bd90['locale'],'ELEMENT_LINE_BREAK',_0x1a4489));}};function Be(_0x36282c,_0x1542bc,_0x49a30d){const _0x795310=[];for(const _0x1af7a5 of _0x1542bc['getItems']())_0x1af7a5['hasAttribute'](_0x36282c)&&_0x795310['push'](_0x49a30d['createRangeOn'](_0x1af7a5));return _0x795310;}var ve=class extends _0x5d30aa{afterInit(){const _0xfdcb6=this['editor'],_0x157955=_0xfdcb6['plugins']['get']('TrackChangesEditing');_0xfdcb6['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x157955['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0xe876a=this['editor'],_0x4f8c1c=_0xe876a['model'],_0x5c325d=_0xe876a['locale'],_0x220d8d=_0xe876a['plugins']['get']('TrackChangesEditing'),_0x513ab6='restrictedEditingException',_0x1f0c50=_0xe876a['commands']['get'](_0x513ab6);_0x220d8d['enableCommand'](_0x513ab6,(_0x5ac35a,_0xaa0046={})=>{const _0x2f8228=_0x4f8c1c['document']['selection'];if(_0x2f8228['isCollapsed'])return void _0x5ac35a(_0xaa0046);const _0x51aa58=void 0x0!==_0xaa0046['forceValue']?_0xaa0046['forceValue']:!_0x1f0c50['value'];_0x4f8c1c['change'](()=>{const _0x5cceb2=Array['from'](_0x2f8228['getRanges']());for(const _0x4e2857 of _0x5cceb2){const _0x91bcf5=_0x51aa58?[_0x4e2857]:Be(_0x513ab6,_0x4e2857,_0x4f8c1c);for(const _0xf849 of _0x91bcf5)_0x220d8d['markInlineFormat'](_0xf849,{'commandName':_0x513ab6,'commandParams':[{'forceValue':_0x51aa58}]});}});}),_0x220d8d['descriptionFactory']['registerDescriptionCallback'](_0x553be6=>{if('formatBlock'!=_0x553be6['type']&&'formatInline'!=_0x553be6['type'])return;const {data:_0x5786dd}=_0x553be6;return _0x5786dd&&_0x5786dd['commandName']==_0x513ab6?_0x5786dd['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x5c325d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x5c325d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x6dbb39=this['editor'],_0x1b24a1=_0x6dbb39['locale'],_0xfc4c55=_0x6dbb39['plugins']['get']('TrackChangesEditing'),_0x16d9cc='restrictedEditingExceptionBlock',_0x3fe352=this['editor']['commands']['get'](_0x16d9cc);_0xfc4c55['enableCommand'](_0x16d9cc,(_0x23e188,_0x4b9d8e={})=>{const _0x16dd14=this['editor']['model']['document']['selection'],_0x520bb2=_0x4b9d8e&&void 0x0!==_0x4b9d8e['forceValue']?_0x4b9d8e['forceValue']:!_0x3fe352['value'];let _0x254098=[];if(_0x520bb2){const _0x1b17be=Array['from'](_0x16dd14['getSelectedBlocks']())['filter'](_0x3316b5=>function(_0x28441e){return!!_0x28441e['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x3316b5)||function(_0x554ba4,_0x120979){const _0x15fbef=_0x120979['createContext'](_0x554ba4['parent']);return!!_0x120979['checkChild'](_0x15fbef,'restrictedEditingException')&&!!_0x120979['checkChild'](_0x15fbef['push']('restrictedEditingException'),_0x554ba4);}(_0x3316b5,this['editor']['model']['schema']));_0x254098=bt(_0x1b17be,_0x6dbb39['model']);}else{const _0x53cb0f=Array['from'](_0x16dd14['getSelectedBlocks']())['map'](_0x3f2ee0=>function(_0xfe36b){let _0x4b7701=_0xfe36b;for(;_0x4b7701['parent'];){if('restrictedEditingException'==_0x4b7701['parent']['name'])return _0x4b7701;_0x4b7701=_0x4b7701['parent'];}return null;}(_0x3f2ee0))['filter'](_0x4cbff1=>!!_0x4cbff1);_0x254098=bt(_0x53cb0f,_0x6dbb39['model']);}_0x6dbb39['model']['change'](()=>{for(const _0x5ced99 of _0x254098)_0xfc4c55['markBlockFormat'](_0x5ced99,{'commandName':_0x16d9cc,'commandParams':[{'forceValue':_0x520bb2}]});});}),_0xfc4c55['descriptionFactory']['registerDescriptionCallback'](_0x394375=>{const {data:_0x1e8813}=_0x394375;if(_0x1e8813&&_0x1e8813['commandName']==_0x16d9cc)return _0x1e8813['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x1b24a1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Mt(_0x1b24a1,'FORMAT_RESTRICTED_DISABLED')};});}},De=class extends _0x5d30aa{afterInit(){const _0x53d152=this['editor'];_0x53d152['plugins']['has']('Style')&&_0x53d152['plugins']['has']('DataSchema')&&(_0x53d152['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x15cecc=this['editor'],_0x2bb011=_0x15cecc['locale'];_0x15cecc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15382c=>{if('formatBlock'!=_0x15382c['type']&&'formatInline'!=_0x15382c['type'])return;const {data:_0x3d757f}=_0x15382c;return _0x3d757f&&'style'===_0x3d757f['commandName']?_0x3d757f['commandParams'][0x0]['forceValue']?{'type':'format','content':Mt(_0x2bb011,'*Set\x20format:*\x20%0',_0x3d757f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Mt(_0x2bb011,'*Remove\x20format:*\x20%0',_0x3d757f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ue=class extends _0x5d30aa{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x9f5f2e){super(_0x9f5f2e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x35a3ef=this['editor'],_0x366178=_0x35a3ef['model']['document']['selection'];if(!_0x35a3ef['plugins']['has']('TableEditing'))return;const _0x24b541=_0x35a3ef['locale'],_0x10cce7=_0x35a3ef['plugins']['get']('TrackChangesEditing'),_0x5c4ebb=_0x35a3ef['plugins']['get']('TableUtils');_0x10cce7['descriptionFactory']['registerElementLabel']('table',_0x2841bd=>Mt(_0x24b541,'ELEMENT_TABLE',_0x2841bd)),this['_setupColumnsRowsFixing'](),_0x10cce7['enableCommand']('insertTable'),_0x10cce7['enableCommand']('selectTableRow'),_0x10cce7['enableCommand']('selectTableColumn');for(const _0x3eb49c of['insertTableRowAbove','insertTableRowBelow']){const _0x1d2e45=_0x35a3ef['commands']['get'](_0x3eb49c);_0x10cce7['enableCommand'](_0x3eb49c,_0x43ebb5=>{_0x35a3ef['model']['change'](_0x205d06=>{_0x43ebb5();const _0x48c0c3='above'===_0x1d2e45['order'],_0x3e3399=_0x5c4ebb['getSelectionAffectedTableCells'](_0x366178),_0xe81b09=_0x5c4ebb['getRowIndexes'](_0x3e3399),_0x2761cf=_0x48c0c3?_0xe81b09['first']-0x1:_0xe81b09['last']+0x1,_0x2f9475=_0x3e3399[0x0]['findAncestor']('table'),_0xe0a69e=_0x5c4ebb['createTableWalker'](_0x2f9475,{'startRow':_0x2761cf,'endRow':_0x2761cf}),_0x3594be=Array['from'](_0xe0a69e)['map'](_0x431fd2=>_0x205d06['createRangeOn'](_0x431fd2['cell']));_0x10cce7['markMultiRangeInsertion'](_0x3594be,'tableRow');});});}for(const _0x508175 of['insertTableColumnLeft','insertTableColumnRight']){const _0x51b78c=_0x35a3ef['commands']['get'](_0x508175);_0x10cce7['enableCommand'](_0x508175,_0x39d1b3=>{_0x35a3ef['model']['change'](_0x5af3ac=>{_0x39d1b3();const _0x2d8d16='left'===_0x51b78c['order'],_0xc74169=_0x5c4ebb['getSelectionAffectedTableCells'](_0x366178),_0x591c73=_0x5c4ebb['getColumnIndexes'](_0xc74169),_0x457225=_0x2d8d16?_0x591c73['first']-0x1:_0x591c73['last']+0x1,_0x38a11d=_0xc74169[0x0]['findAncestor']('table'),_0x33dc07=_0x5c4ebb['createTableWalker'](_0x38a11d,{'startRow':0x0,'column':_0x457225,'includeAllSlots':!0x1}),_0xf2213e=Array['from'](_0x33dc07)['map'](_0x4f1774=>_0x5af3ac['createRangeOn'](_0x4f1774['cell']));_0x10cce7['markMultiRangeInsertion'](_0xf2213e,'tableColumn');});});}for(const _0x44df81 of['removeTableRow','removeTableColumn']){const _0x2d8a12=_0x44df81['substr'](0xb),_0x3110af=_0x2d8a12['toLowerCase'](),_0x108085=_0x3110af['substr'](0x0,0x3)+'span',_0x3b86d3='table'+_0x2d8a12,_0x327dc='min'+_0x2d8a12,_0x4f3348='max'+_0x2d8a12;_0x10cce7['enableCommand'](_0x44df81,()=>{_0x35a3ef['model']['change'](_0x1039e8=>{const _0x52f1dc=_0x5c4ebb['getSelectionAffectedTableCells'](_0x366178),_0x24e39d=_0x52f1dc[0x0]['findAncestor']('table');let _0x231efa;if('removeTableRow'==_0x44df81){const _0xe11077=_0x5c4ebb['getRowIndexes'](_0x52f1dc);_0x231efa={'startRow':_0xe11077['first'],'endRow':_0xe11077['last'],'includeAllSlots':!0x0};}else{const _0x5c7a83=_0x5c4ebb['getColumnIndexes'](_0x52f1dc);_0x231efa={'startColumn':_0x5c7a83['first'],'endColumn':_0x5c7a83['last'],'includeAllSlots':!0x0};}const _0x5e6ce8=_0x5c4ebb['createTableWalker'](_0x24e39d,_0x231efa),_0x2d3369=Array['from'](_0x5e6ce8)['map'](({cell:_0x4eae21})=>_0x4eae21),_0x35752e=Pe(_0x2d3369['filter'](_0x3e2406=>_0x3e2406['hasAttribute'](_0x108085))),_0x3b70d4=Pe(_0x2d3369['filter'](_0x3290ba=>!_0x3290ba['hasAttribute'](_0x108085)))['map'](_0x43a75e=>_0x1039e8['createRangeOn'](_0x43a75e)),_0x4bfd38=_0x10cce7['markMultiRangeDeletion'](_0x3b70d4,_0x3b86d3);if(_0x4bfd38&&('tableRow'==_0x4bfd38['subType']||'tableColumn'==_0x4bfd38['subType'])){const _0x5c1ffd=this['_getSuggestionCoords'](_0x4bfd38);for(const _0x31b96a of _0x35752e){const _0x30fb74=_0x1039e8['createRangeOn'](_0x31b96a),_0x490e4c=_0x5c4ebb['getCellLocation'](_0x31b96a),_0x450fa9=_0x31b96a['getAttribute'](_0x108085)-0x1,_0x5c8a5f=_0x5c1ffd[_0x327dc],_0x1add22=_0x5c1ffd[_0x4f3348];_0x5c8a5f<=_0x490e4c[_0x3110af]&&_0x490e4c[_0x3110af]+_0x450fa9<=_0x1add22&&_0x4bfd38['addRange'](_0x30fb74);}}});});}function _0x5e20e0(_0xecd737){const _0x40c017=Array['from'](_0x366178['getRanges']())['map'](_0xf131e4=>rt['fromRange'](_0xf131e4));_0x35a3ef['model']['change'](_0x368146=>{const _0xa693e8=_0x368146['batch'];_0xecd737=_0xecd737['filter'](_0x450e28=>'$graveyard'!=_0x450e28['root']['rootName']),_0x368146['setSelection'](_0xecd737),_0x35a3ef['commands']['get']('removeTableRow')['refresh'](),_0x35a3ef['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x35a3ef['model']['enqueueChange'](()=>{_0x35a3ef['model']['enqueueChange'](_0xa693e8,_0x5378a2=>{const _0x311164=_0x40c017['filter'](_0x384d1a=>'$graveyard'!=_0x384d1a['root']['rootName']);_0x311164['length']>0x0&&_0x5378a2['setSelection'](_0x311164);for(const _0x4a971a of _0x40c017)_0x4a971a['detach']();});});});}function _0x26ce00(_0x2bc64f){_0x35a3ef['model']['change'](_0x15d845=>{const _0x402405=Array['from'](_0x366178['getRanges']())['map'](_0x2156d2=>rt['fromRange'](_0x2156d2)),_0x2dfbe7=[];for(const _0x4bfb41 of _0x2bc64f)for(const _0x27ba91 of _0x4bfb41['getItems']({'shallow':!0x0}))_0x2dfbe7['push'](_0x27ba91);for(const _0x349db2 of _0x2dfbe7)'$graveyard'!=_0x349db2['root']['rootName']&&(_0x15d845['setSelection'](_0x15d845['createPositionAt'](_0x349db2,0x0)),_0x35a3ef['commands']['get']('removeTableColumn')['refresh'](),_0x35a3ef['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3847f1=_0x402405['filter'](_0x35897a=>'$graveyard'!=_0x35897a['root']['rootName']);_0x3847f1['length']>0x0&&_0x15d845['setSelection'](_0x3847f1);for(const _0x43e4c5 of _0x402405)_0x43e4c5['detach']();});}function _0x48946c(_0x1f0f52,_0x5380ae){return _0x5380ae['every'](_0x472b60=>_0x1f0f52['some'](_0x3a0946=>_0x3a0946['end']['isEqual'](_0x472b60['start'])||_0x472b60['end']['isEqual'](_0x3a0946['start'])));}function _0x28879b(_0x33f3ef,_0x23383d){return!_0x33f3ef['some'](_0x4195fe=>_0x23383d['some'](_0x5190bc=>_0x4195fe['isIntersecting'](_0x5190bc)))&&_0x33f3ef['some'](_0x2332a7=>_0x23383d['some'](_0x342ae5=>_0x2332a7['end']['isTouching'](_0x342ae5['start'])));}_0x10cce7['descriptionFactory']['registerDescriptionCallback'](_0x3395f1=>{if('insertion'!=_0x3395f1['type']&&'deletion'!=_0x3395f1['type'])return;const _0xcccf59=_0x3395f1['getContainedElement']();if(null!=_0xcccf59&&_0xcccf59['is']('element','table')){if('insertion'==_0x3395f1['type']){const _0x19a7f1=_0x3395f1['getItems']()['filter'](_0x25c8fd=>_0x25c8fd['is']('$textProxy'))['map'](_0x20b63d=>_0x20b63d['data']);if(_0x19a7f1['length'])return{'type':'insertion','content':Mt(_0x24b541,'*Insert:*\x20%0',Mt(_0x24b541,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x19a7f1['join']('\x20')+'\x22'))};}if('deletion'==_0x3395f1['type']){const _0x5463f5=_0x3395f1['getItems']()['filter'](_0x264f3c=>_0x264f3c['is']('$textProxy'))['map'](_0x3b0dc9=>_0x3b0dc9['data']);if(_0x5463f5['length'])return{'type':'deletion','content':Mt(_0x24b541,'*Remove:*\x20%0',Mt(_0x24b541,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5463f5['join']('\x20')+'\x22'))};}}}),_0x10cce7['descriptionFactory']['registerDescriptionCallback'](_0x169811=>{if('tableRow'==_0x169811['subType']){const _0x25cdcd=_0x169811['getItems']()['filter'](_0x6b6332=>_0x6b6332['is']('$textProxy'))['map'](_0x10ab73=>_0x10ab73['data']),_0x1ed71b=this['_getSuggestionCoords'](_0x169811),_0x1516c0=_0x1ed71b['maxRow']-_0x1ed71b['minRow']+0x1;if('insertion'==_0x169811['type'])return _0x25cdcd['length']?{'type':'insertion','content':Mt(_0x24b541,'*Insert:*\x20%0',Mt(_0x24b541,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1516c0,'\x22'+_0x25cdcd['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x24b541,'*Insert:*\x20%0',Mt(_0x24b541,'ELEMENT_TABLE_ROW',_0x1516c0))};if('deletion'==_0x169811['type'])return _0x25cdcd['length']?{'type':'deletion','content':Mt(_0x24b541,'*Remove:*\x20%0',Mt(_0x24b541,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1516c0,'\x22'+_0x25cdcd['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x24b541,'*Remove:*\x20%0',Mt(_0x24b541,'ELEMENT_TABLE_ROW',_0x1516c0))};}if('tableColumn'==_0x169811['subType']){const _0x391024=_0x169811['getItems']()['filter'](_0x6d0750=>_0x6d0750['is']('$textProxy'))['map'](_0x1b7734=>_0x1b7734['data']),_0x5e571e=this['_getSuggestionCoords'](_0x169811),_0xfa8f7=_0x5e571e['maxColumn']-_0x5e571e['minColumn']+0x1;if('insertion'==_0x169811['type'])return _0x391024['length']?{'type':'insertion','content':Mt(_0x24b541,'*Insert:*\x20%0',Mt(_0x24b541,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xfa8f7,'\x22'+_0x391024['join']('\x20')+'\x22']))}:{'type':'insertion','content':Mt(_0x24b541,'*Insert:*\x20%0',Mt(_0x24b541,'ELEMENT_TABLE_COLUMN',_0xfa8f7))};if('deletion'==_0x169811['type'])return _0x391024['length']?{'type':'deletion','content':Mt(_0x24b541,'*Remove:*\x20%0',Mt(_0x24b541,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xfa8f7,'\x22'+_0x391024['join']('\x20')+'\x22']))}:{'type':'deletion','content':Mt(_0x24b541,'*Remove:*\x20%0',Mt(_0x24b541,'ELEMENT_TABLE_COLUMN',_0xfa8f7))};}}),_0x10cce7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5e20e0),_0x10cce7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5e20e0),_0x10cce7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x26ce00),_0x10cce7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x26ce00),_0x10cce7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x48946c),_0x10cce7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x48946c),_0x10cce7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x28879b),_0x10cce7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x28879b);}_acceptFormatSuggestionCallbackFactory(){const _0xa96b2a=this['editor'],_0x406a3e=_0xa96b2a['model']['document']['selection'];return(_0x36108f,_0x45b369)=>{_0xa96b2a['model']['change'](_0x3a20e4=>{const {commandName:_0x2495cf,commandParams:_0x2892c2}=_0x45b369;let _0x332d2b=_0x36108f[0x0]['end']['nodeBefore'];_0x2892c2&&_0x2892c2[0x0]&&!0x1===_0x2892c2[0x0]['forceValue']&&(_0x332d2b=_0x36108f[0x0]['start']['nodeAfter']);const _0x2dddb8=_0x3a20e4['createRangeIn'](_0x332d2b);if('$graveyard'==_0x2dddb8['root']['rootName'])return;const _0x23c4d6=Array['from'](_0x406a3e['getRanges']())['map'](_0x5cdee6=>rt['fromRange'](_0x5cdee6));_0x3a20e4['setSelection'](_0x2dddb8),_0xa96b2a['commands']['get'](_0x2495cf)['refresh'](),_0x2892c2['push']({'forceDefaultExecution':!0x0}),_0xa96b2a['execute'](_0x2495cf,..._0x2892c2);const _0x364f28=_0x23c4d6['filter'](_0x1d9491=>'$graveyard'!=_0x1d9491['root']['rootName']);_0x364f28['length']>0x0&&_0x3a20e4['setSelection'](_0x364f28);for(const _0x2e7216 of _0x23c4d6)_0x2e7216['detach']();});};}_getCoordsForCells(_0xb6641f){const _0x94062d=this['editor']['plugins']['get']('TableUtils');let _0x4aadb3=Number['MAX_SAFE_INTEGER'],_0x25f51a=Number['MIN_SAFE_INTEGER'],_0x4f4a1f=Number['MAX_SAFE_INTEGER'],_0x375f3f=Number['MIN_SAFE_INTEGER'];for(const _0x52b0b3 of _0xb6641f){if('$graveyard'==_0x52b0b3['root']['rootName'])continue;const {row:_0x2d64ba,column:_0x356ee9}=_0x94062d['getCellLocation'](_0x52b0b3),_0x12753d=_0x52b0b3['hasAttribute']('rowspan')?_0x52b0b3['getAttribute']('rowspan')-0x1:0x0,_0x7f34f9=_0x52b0b3['hasAttribute']('colspan')?_0x52b0b3['getAttribute']('colspan')-0x1:0x0;_0x4aadb3=_0x2d64ba<_0x4aadb3?_0x2d64ba:_0x4aadb3,_0x25f51a=_0x2d64ba+_0x12753d>_0x25f51a?_0x2d64ba+_0x12753d:_0x25f51a,_0x4f4a1f=_0x356ee9<_0x4f4a1f?_0x356ee9:_0x4f4a1f,_0x375f3f=_0x356ee9+_0x7f34f9>_0x375f3f?_0x356ee9+_0x7f34f9:_0x375f3f;}return{'minRow':_0x4aadb3,'maxRow':_0x25f51a,'minColumn':_0x4f4a1f,'maxColumn':_0x375f3f};}_setupColumnsRowsFixing(){const _0x26a85f=this['editor'],_0x1c79d8=_0x26a85f['plugins']['get']('TrackChangesEditing'),_0x4c011e=_0x26a85f['plugins']['get']('TableUtils');_0x26a85f['model']['document']['on']('change:data',()=>{const _0x155348=Array['from'](_0x26a85f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c53e2,data:_0x5c7cf3}of _0x155348){const {group:_0x530da3,id:_0x23e207,subType:_0x267f21}=tt(_0x5c53e2);if('suggestion'!=_0x530da3)continue;if(null!=_0x5c7cf3['oldRange'])continue;const _0x2ef3e7=_0x1c79d8['getSuggestion'](_0x23e207);this['_tablePostFixingSubtypes']['includes'](_0x267f21)&&this['_tableSuggestions']['add'](_0x2ef3e7);}},{'priority':'low'});const _0xcec488=(_0x57a409,_0x462bbf)=>{let _0x293544=!0x1;const _0x4ebd66=_0x462bbf['createRangeOn'](_0x57a409),_0x3a3b54=_0x57a409['findAncestor']('table'),_0x2fb3c2=_0x4c011e['getCellLocation'](_0x57a409);for(const _0x361783 of this['_tableSuggestions']){const _0x1bbb01=_0x361783['subType'],_0x4ac5e1=_0x1bbb01['startsWith']('tablePaste'),_0x28e622=_0x1bbb01['substr'](_0x4ac5e1?0xa:0x5),_0x4d3179=_0x28e622['toLowerCase'](),_0x4534bb=_0x4d3179['substr'](0x0,0x3)+'span',_0x30872a='min'+_0x28e622,_0x5f4d12='max'+_0x28e622;if(!_0x361783['isInContent'])continue;if(_0x3a3b54!=_0x361783['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x361783['isIntersectingWithRange'](_0x4ebd66))continue;const _0x4b5846=_0x57a409['hasAttribute'](_0x4534bb)?_0x57a409['getAttribute'](_0x4534bb)-0x1:0x0,_0x41e8da=this['_getSuggestionCoords'](_0x361783),_0x16ad8a=_0x41e8da[_0x30872a],_0x4d5b66=_0x41e8da[_0x5f4d12];_0x16ad8a<=_0x2fb3c2[_0x4d3179]&&_0x2fb3c2[_0x4d3179]+_0x4b5846<=_0x4d5b66&&(_0x361783['addRange'](_0x4ebd66),_0x293544=!0x0);}return _0x293544;};_0x26a85f['model']['document']['registerPostFixer'](_0x2eb94d=>{let _0x105b60=!0x1;for(const _0x225bc9 of _0x26a85f['model']['document']['differ']['getChanges']())if('insert'==_0x225bc9['type']){if('tableRow'==_0x225bc9['name']){for(const _0x48f607 of _0x225bc9['position']['nodeAfter']['getChildren']())_0x105b60=_0x105b60||_0xcec488(_0x48f607,_0x2eb94d);}else'tableCell'==_0x225bc9['name']&&(_0x105b60=_0x105b60||_0xcec488(_0x225bc9['position']['nodeAfter'],_0x2eb94d));}return _0x105b60;});}_getSuggestionCoords(_0x368667){return this['_getCoordsForCells'](_0x368667['getRanges']()['map'](_0x11cbc1=>_0x11cbc1['start']['nodeAfter']));}};function Pe(_0x2db508){return Array['from'](new Set(_0x2db508)['values']());}var xe=class extends _0x5d30aa{static get requires(){return[Ue];}afterInit(){const _0x2f7b88=this['editor'],_0x21f06d=_0x2f7b88['model']['document']['selection'],_0x1f1909=_0x2f7b88['locale'];if(!_0x2f7b88['plugins']['has']('TableEditing'))return;const _0x1c0e8f=_0x2f7b88['plugins']['get']('TrackChangesEditing'),_0x3b0d88=_0x2f7b88['plugins']['get']('TableUtils'),_0x56b283=_0x2f7b88['plugins']['get'](Ue);_0x56b283['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1c0e8f['enableCommand']('mergeTableCells',()=>{const _0x1d24b1=_0x3b0d88['getSelectionAffectedTableCells'](_0x2f7b88['model']['document']['selection']);_0x2f7b88['model']['change'](()=>{_0x1c0e8f['markMultiRangeBlockFormat'](_0x1d24b1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2f7b88['commands']['get']('mergeTableCells')['on']('execute',(_0x23bc63,_0x4787bd)=>{_0x2f7b88['commands']['get']('trackChanges')['value']&&(_0x4787bd['length']>0x0&&_0x4787bd[_0x4787bd['length']-0x1]&&_0x4787bd[_0x4787bd['length']-0x1]['forceDefaultExecution']||_0x1c0e8f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x23bc63['stop']());},{'priority':'highest'});for(const _0x18198e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x98bc0a=_0x2f7b88['commands']['get'](_0x18198e);_0x1c0e8f['enableCommand'](_0x18198e,()=>{const _0x4ca464=_0x2f7b88['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x42429a=>_0x42429a['is']('element','tableCell')),_0x278c06=_0x98bc0a['value'];_0x2f7b88['model']['change'](()=>{_0x1c0e8f['markMultiRangeBlockFormat']([_0x4ca464,_0x278c06],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x19fc32 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5c3cb1=_0x2f7b88['commands']['get'](_0x19fc32);_0x1c0e8f['enableCommand'](_0x19fc32,()=>{const _0x4542f5=_0x3b0d88['getSelectionAffectedTableCells'](_0x2f7b88['model']['document']['selection']),_0x420196=_0x4542f5[0x0]['findAncestor']('table'),_0x559038=new Set();for(const _0xdb748e of _0x4542f5){const {column:_0x2fb46a,row:_0x884f12}=_0x3b0d88['getCellLocation'](_0xdb748e),_0x38fc0e='horizontally'==_0x5c3cb1['direction']?_0x3b0d88['createTableWalker'](_0x420196,{'startRow':_0x884f12,'endRow':_0x884f12,'includeAllSlots':!0x0}):_0x3b0d88['createTableWalker'](_0x420196,{'column':_0x2fb46a,'includeAllSlots':!0x0});for(const {cell:_0x390531}of _0x38fc0e)_0x559038['add'](_0x390531);}_0x2f7b88['model']['change'](()=>{_0x1c0e8f['markMultiRangeBlockFormat'](_0x4542f5,{'commandName':_0x19fc32,'commandParams':[]},Array['from'](_0x559038),_0x19fc32);});});}_0x1c0e8f['descriptionFactory']['registerDescriptionCallback'](_0x2362a4=>{if('formatBlock'!=_0x2362a4['type']&&'formatInline'!=_0x2362a4['type'])return;const {data:_0x4e7b7d}=_0x2362a4;return _0x4e7b7d&&'mergeTableCells'==_0x4e7b7d['commandName']?{'type':'format','content':Mt(_0x1f1909,'*Merge\x20cells*')}:void 0x0;}),_0x1c0e8f['descriptionFactory']['registerDescriptionCallback'](_0x27b9e5=>{if('formatBlock'!=_0x27b9e5['type']&&'formatInline'!=_0x27b9e5['type'])return;const {data:_0x4f33df}=_0x27b9e5;return _0x4f33df?'splitTableCellVertically'==_0x4f33df['commandName']?{'type':'format','content':Mt(_0x1f1909,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4f33df['commandName']?{'type':'format','content':Mt(_0x1f1909,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2ec007=_0x56b283['_acceptFormatSuggestionCallbackFactory']();for(const _0x137045 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1c0e8f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x137045,'accept',_0x2ec007);for(const _0x27509e of['splitTableCellVertically','splitTableCellHorizontally'])_0x1c0e8f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x27509e,'accept',_0x493a8e=>{_0x2f7b88['model']['change'](_0x58c001=>{const _0x3b090e=Array['from'](_0x493a8e)['filter'](_0x3019bc=>'$graveyard'!=_0x3019bc['root']['rootName']&&!!_0x3019bc['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x3b090e['length'])return;const _0x1770fa=Array['from'](_0x21f06d['getRanges']())['map'](_0x404d09=>rt['fromRange'](_0x404d09));_0x58c001['setSelection'](_0x3b090e),_0x2f7b88['commands']['get'](_0x27509e)['refresh'](),_0x2f7b88['execute'](_0x27509e,{'forceDefaultExecution':!0x0});const _0xd65a78=_0x1770fa['filter'](_0x1bcca4=>'$graveyard'!=_0x1bcca4['root']['rootName']);_0xd65a78['length']>0x0&&_0x58c001['setSelection'](_0xd65a78);for(const _0xf7d117 of _0x1770fa)_0xf7d117['detach']();});});_0x1c0e8f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2a88fe=>{_0x2f7b88['model']['change'](_0x405180=>{const _0x1b33fd=Array['from'](_0x21f06d['getRanges']())['map'](_0x3aad71=>rt['fromRange'](_0x3aad71));_0x405180['setSelection'](_0x2a88fe),_0x2f7b88['commands']['get']('mergeTableCells')['refresh'](),_0x2f7b88['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x447453=_0x1b33fd['filter'](_0x5f1bb3=>'$graveyard'!=_0x5f1bb3['root']['rootName']);_0x447453['length']>0x0&&_0x405180['setSelection'](_0x447453);for(const _0x5c0349 of _0x1b33fd)_0x5c0349['detach']();});});for(const _0x109e3f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x260335=_0x2f7b88['commands']['get'](_0x109e3f);_0x260335['on']('set:isEnabled',(_0x498535,_0xa19b6f,_0x48209d)=>{if(_0x48209d){const _0x1e349c=_0x2f7b88['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5a1427=>_0x5a1427['is']('element','tableCell'));this['_areMergableCells'](_0x260335['value'],_0x1e349c)||(_0x498535['return']=!0x1,_0x498535['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0xd73b51=this['editor']['commands']['get']('mergeTableCells'),_0x37706c=this['editor']['plugins']['get']('TableUtils');if(!_0xd73b51['isEnabled'])return!0x1;const _0x15cb3c=_0x37706c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x317ab2 of _0x15cb3c)for(const _0x360cc1 of _0x15cb3c)if(_0x317ab2!=_0x360cc1&&!this['_areMergableCells'](_0x317ab2,_0x360cc1))return!0x1;return!0x0;}['_areMergableCells'](_0x50c6bc,_0x8faee7){const _0x3e8af3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4dc309=this['editor']['model']['createRangeOn'](_0x50c6bc),_0x4a881e=this['editor']['model']['createRangeOn'](_0x8faee7),_0x3739f0=new Set(),_0x538980=new Set();for(const _0x4a75fb of _0x3e8af3['getSuggestions']())if(('insertion'==_0x4a75fb['type']||'deletion'==_0x4a75fb['type']||'mergeTableCells'==_0x4a75fb['subType'])&&_0x4a75fb['isInContent']){for(const _0x1495f8 of _0x4a75fb['getRanges']())_0x1495f8['containsRange'](_0x4dc309,!0x0)&&_0x3739f0['add'](_0x4a75fb['type']+':'+_0x4a75fb['author']['id']),_0x1495f8['containsRange'](_0x4a881e,!0x0)&&_0x538980['add'](_0x4a75fb['type']+':'+_0x4a75fb['author']['id']);}if(_0x3739f0['size']!=_0x538980['size'])return!0x1;for(const _0x48346d of _0x3739f0)if(!_0x538980['has'](_0x48346d))return!0x1;return!0x0;}},Ge=class extends _0x5d30aa{static get requires(){return[Ue];}afterInit(){const _0x35d7ae=this['editor'];if(!_0x35d7ae['plugins']['has']('TableEditing'))return;const _0x13fe34=_0x35d7ae['locale'],_0x35c13d=_0x35d7ae['plugins']['get']('TrackChangesEditing');_0x35c13d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x35c13d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x35c13d['descriptionFactory']['registerAttributeLabel']('headingRows',Mt(_0x13fe34,'FORMAT_HEADER_ROW')),_0x35c13d['descriptionFactory']['registerAttributeLabel']('headingColumns',Mt(_0x13fe34,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x529bce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x453302=this['editor']['plugins']['get'](Ue)['_acceptFormatSuggestionCallbackFactory']();_0x529bce['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x453302),_0x529bce['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x453302),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x2b29f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x197350=this['editor']['plugins']['get']('TableUtils');function _0x48d38b({showActiveMarker:_0x29f651=!0x0,setDataAttribute:_0x2ff66d=!0x0}={}){return(_0x4e1c75,_0x25e07c,_0x1489d3)=>{const {type:_0x54e789,id:_0x4deb50}=tt(_0x25e07c['markerName']);if(!_0x2b29f0['hasSuggestion'](_0x4deb50))return;const _0x575208=_0x2b29f0['getSuggestion'](_0x4deb50),_0x192b5d=_0x575208['data'];if('formatBlock'!=_0x575208['type']||!_0x192b5d||'setTableColumnHeader'!=_0x192b5d['commandName'])return;if(_0x25e07c['item'])return void _0x4e1c75['stop']();if(!_0x1489d3['consumable']['consume'](_0x25e07c['markerRange'],_0x4e1c75['name']))return;const _0x44c322=_0x25e07c['markerRange']['start']['nodeAfter'],_0x1f32da=_0x25e07c['markerRange']['end']['nodeBefore'],_0xd328b9=_0x44c322['parent']['parent'],{column:_0x4780e9}=_0x197350['getCellLocation'](_0x44c322),{column:_0x10f464}=_0x197350['getCellLocation'](_0x1f32da);for(let _0x2b1c15=_0x4780e9;_0x2b1c15<=_0x10f464;_0x2b1c15++){const _0x4ef58a=_0x197350['createTableWalker'](_0xd328b9,{'column':_0x2b1c15,'includeAllSlots':!0x1});for(const _0x446db9 of _0x4ef58a){const _0x57978a=_0x446db9['cell'],_0x14d1e8=_0x1489d3['mapper']['toViewElement'](_0x57978a);_0x1489d3['writer']['addClass']('ck-suggestion-marker-'+_0x54e789,_0x14d1e8),_0x2ff66d&&_0x1489d3['writer']['setAttribute']('data-suggestion',_0x4deb50,_0x14d1e8),_0x1489d3['mapper']['bindElementToMarker'](_0x14d1e8,_0x25e07c['markerName']),_0x29f651&&(_0x2b29f0['activeMarkers']['includes'](_0x25e07c['markerName'])?_0x1489d3['writer']['addClass']('ck-suggestion-marker--active',_0x14d1e8):_0x1489d3['writer']['removeClass']('ck-suggestion-marker--active',_0x14d1e8));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x48d38b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x51b9b5,_0x21d845,_0x5c3ef7)=>{_0x5c3ef7['options']['showSuggestionHighlights']&&_0x48d38b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x51b9b5,_0x21d845,_0x5c3ef7);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3b9a93,_0x3d3d28,_0x2b7b9b)=>{const {type:_0x18932d,id:_0x114fa1}=tt(_0x3d3d28['markerName']);if(!_0x2b29f0['hasSuggestion'](_0x114fa1))return;const _0x2accd4=_0x2b29f0['getSuggestion'](_0x114fa1),_0x52e58f=_0x2accd4['data'];if('formatBlock'!=_0x2accd4['type']||!_0x52e58f||'setTableColumnHeader'!=_0x52e58f['commandName'])return;const _0x380879=_0x2b7b9b['mapper']['markerNameToElements'](_0x3d3d28['markerName']);if(_0x380879){for(const _0x350478 of _0x380879)_0x2b7b9b['writer']['removeClass']('ck-suggestion-marker-'+_0x18932d,_0x350478),_0x2b7b9b['writer']['removeClass']('ck-suggestion-marker--active',_0x350478),_0x2b7b9b['writer']['removeAttribute']('data-suggestion',_0x350478),_0x2b7b9b['mapper']['unbindElementFromMarkerName'](_0x350478,_0x3d3d28['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x1de079=this['editor'],_0x4654d5=_0x1de079['locale'];function _0x3f70d1(_0x57eb6e){return{'type':'format','content':Mt(_0x4654d5,'*Format:*\x20%0',_0x57eb6e)};}_0x1de079['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b5e97=>{if('formatBlock'!=_0x1b5e97['type'])return;const {data:_0x3da053}=_0x1b5e97;return _0x3da053?'setTableRowHeader'==_0x3da053['commandName']?_0x3da053['commandParams'][0x0]['forceValue']?_0x3f70d1(Mt(_0x4654d5,'FORMAT_HEADER_ROW')):_0x3f70d1(Mt(_0x4654d5,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x3da053['commandName']?_0x3da053['commandParams'][0x0]['forceValue']?_0x3f70d1(Mt(_0x4654d5,'FORMAT_HEADER_COLUMN')):_0x3f70d1(Mt(_0x4654d5,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},He=class extends _0x5d30aa{static get requires(){return[Ue];}afterInit(){const _0x18abae=this['editor'];if(!_0x18abae['plugins']['has']('TableEditing')||!_0x18abae['config']['get']('table.enableFooters'))return;const _0x441a32=_0x18abae['locale'],_0x431b9b=_0x18abae['plugins']['get']('TrackChangesEditing');_0x431b9b['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x431b9b['descriptionFactory']['registerAttributeLabel']('footerRows',Mt(_0x441a32,'FORMAT_FOOTER_ROW'));}},$e=class extends _0x5d30aa{afterInit(){const _0x3910e5=this['editor'],_0x42d4ca=_0x3910e5['locale'],_0x171cfa=_0x3910e5['plugins']['get']('TrackChangesEditing');function _0x4d6362(_0x386a51){return{'type':'format','content':''+Mt(_0x42d4ca,'*Set\x20table\x20type:*\x20%0',_0x386a51)};}_0x3910e5['plugins']['has']('TableLayout')&&(_0x171cfa['enableCommand']('insertTableLayout'),_0x171cfa['enableDefaultAttributesIntegration']('tableType'),_0x171cfa['descriptionFactory']['registerElementLabel'](_0x73f706=>_0x73f706['is']('element','table')&&'layout'===_0x73f706['getAttribute']('tableType'),_0x573f5a=>Mt(_0x42d4ca,'ELEMENT_LAYOUT_TABLE',_0x573f5a)),_0x171cfa['descriptionFactory']['registerDescriptionCallback'](_0x3ff003=>{const {data:_0x47dddd}=_0x3ff003;if(_0x47dddd&&'tableType'==_0x47dddd['key'])switch(_0x47dddd['newValue']){case'layout':return _0x4d6362(Mt(_0x42d4ca,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4d6362(Mt(_0x42d4ca,'ELEMENT_CONTENT_TABLE'));}}));}};const We=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ve=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](We['map'](_0xf13802=>[_0xf13802,null]));var je=class extends _0x5d30aa{static get requires(){return[Ue];}afterInit(){const _0xfacf9c=this['editor'];if(!_0xfacf9c['plugins']['has']('TableClipboard'))return;const _0x1ed27c=_0xfacf9c['plugins']['get']('TrackChangesEditing'),_0x380c6b=_0xfacf9c['plugins']['get']('TableUtils'),_0x3efdfe=_0xfacf9c['plugins']['get'](Ue),_0xfde66e=_0xfacf9c['plugins']['get']('TableClipboard'),_0xe910b6=_0xfacf9c['plugins']['get']('TableSelection'),_0x8c858c=_0xfacf9c['plugins']['get'](gt);_0x3efdfe['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xfacf9c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xfacf9c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x48a3f5=null,_0x3f2673=!0x1;_0x8c858c['on']('contentInsertion',(_0x4e1982,_0x39fd04)=>{_0x3f2673='paste'===_0x39fd04['method'];}),_0xfacf9c['model']['on']('insertContent',(_0xb24131,_0x1c032e)=>{if(!_0x3f2673&&null===_0xe910b6['getSelectedTableCells']())return;const [_0x539222,_0x3a4181]=_0x1c032e,_0x5b5369=_0x1c032e[_0x1c032e['length']-0x1];_0x5b5369&&_0x5b5369['forceDefaultExecution']||_0x1ed27c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5660f1,_0x2120f2,_0x1ffef5,_0x480320,_0x2cff50){if(_0x2120f2&&!_0x2120f2['is']('documentSelection'))return!0x1;const _0x15da19=_0x2cff50['getTableIfOnlyTableInContent'](_0x5660f1,_0x1ffef5);if(!_0x15da19||!Ke(_0x15da19,void 0x0,_0x480320))return!0x1;const _0x2a2fa7=_0x480320['getSelectionAffectedTableCells'](_0x1ffef5['document']['selection']);if(!_0x2a2fa7['length'])return!0x1;const _0x3cb148=_0x2a2fa7[0x0]['findAncestor']('table'),_0x5ad7=_0x480320['getRowIndexes'](_0x2a2fa7),_0x3c31c7=_0x480320['getColumnIndexes'](_0x2a2fa7),_0x31dbef={'startRow':_0x5ad7['first'],'endRow':_0x5ad7['last'],'startColumn':_0x3c31c7['first'],'endColumn':_0x3c31c7['last']};return 0x1==_0x2a2fa7['length']&&(_0x31dbef['endRow']+=_0x480320['getRows'](_0x15da19)-0x1,_0x31dbef['endColumn']+=_0x480320['getColumns'](_0x15da19)-0x1),Ke(_0x3cb148,_0x31dbef,_0x480320);}(_0x539222,_0x3a4181,_0xfacf9c['model'],_0x380c6b,_0xfde66e)&&(_0xb24131['stop'](),_0x48a3f5={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xfacf9c['model']['change'](()=>{_0xfacf9c['model']['insertContent'](_0x1c032e[0x0],_0x1c032e[0x1],_0x1c032e[0x2],{'forceDefaultExecution':!0x0});const _0x2689f1=_0x592457(),{rowInsertionRanges:_0x4d76c9,columnInsertionRanges:_0x3bcd74,insertionRanges:_0x3ce8e0,deletionRanges:_0x576eb0,cells:_0x274154}=_0x48a3f5;_0x4d76c9['length']&&_0x1ed27c['markMultiRangeInsertion'](_0x4d76c9,'tablePasteRow',{'tablePasteChainId':_0x2689f1}),_0x3bcd74['length']&&_0x1ed27c['markMultiRangeInsertion'](_0x3bcd74,'tablePasteColumn',{'tablePasteChainId':_0x2689f1}),_0x3ce8e0['length']&&(_0x1ed27c['markMultiRangeInsertion'](_0x3ce8e0,'tablePaste',{'tablePasteChainId':_0x2689f1,'skipNestingCheck':!0x0}),_0x3ce8e0['forEach'](_0x14d576=>_0x14d576['detach']?.())),_0x576eb0['length']&&(_0x1ed27c['markMultiRangeDeletion'](_0x576eb0,'tablePaste',{'tablePasteChainId':_0x2689f1,'skipNestingCheck':!0x0}),_0x576eb0['forEach'](_0x19b4a2=>_0x19b4a2['detach']?.()));const _0x210f51=_0x1ed27c['markMultiRangeBlockFormat'](_0x274154['map'](({element:_0x378db5})=>_0x378db5),{'formatGroupId':_0x592457()},[],'tablePasteCell',{'tablePasteChainId':_0x2689f1});if(_0x210f51){const _0x888bdd=_0x210f51['getMarkers'](),_0x399ea2=[];for(const {element:_0x2a82bd,attributes:_0x38ae3d}of _0x274154){if(!_0x38ae3d)continue;const _0xc9e305=_0xfacf9c['model']['createRangeOn'](_0x2a82bd),_0x8ca122=_0x888bdd['find'](_0x149de1=>_0x149de1['getRange']()['isEqual'](_0xc9e305));_0x8ca122&&_0x399ea2['push']([_0x8ca122['name'],_0x38ae3d]);}_0x399ea2['length']&&_0x210f51['setAttribute']('markerAttributes',Object['fromEntries'](_0x399ea2));}_0x48a3f5=null;}));},{'priority':_0x35f7ae['high']+0xa}),_0x8c858c['on']('contentInsertion',()=>{_0x3f2673=!0x1;},{'priority':'lowest'}),_0xfacf9c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x22049a,_0x3e1089)=>{const [_0xba4357,_0x85b47e,,_0x5842a1]=_0x3e1089;if(!_0x48a3f5)return;_0x22049a['stop']();const _0x233b64=_0xba4357['cell'],_0x47365b=_0x85b47e,_0x477ca5=ze(_0x233b64),_0x1c9af9=ze(_0x47365b);_0x22049a['return']=_0x233b64;let _0x52e34e=null,_0x3e5a23=null;if(_0x1c9af9||_0x477ca5){if(_0x477ca5&&!_0x1c9af9){_0x5842a1['remove'](_0x233b64['getChild'](0x0));for(const _0x7ea520 of Array['from'](_0x47365b['getChildren']()))_0x5842a1['insert'](_0x7ea520,_0x233b64,'end');const _0x2c3b36=_0x48a3f5['rowInsertionIndexes']['includes'](_0xba4357['row']),_0x5c39b5=_0x48a3f5['columnInsertionIndexes']['includes'](_0xba4357['column']);_0x2c3b36||_0x5c39b5||(_0x52e34e=rt['fromRange'](_0x5842a1['createRangeIn'](_0x233b64)));}else _0x1c9af9&&!_0x477ca5&&(_0x3e5a23=_0x5842a1['createRangeIn'](_0x233b64));}else{const _0x41d83a=_0x5842a1['createElement']('tableCellSuggestion'),_0x988df5=_0x5842a1['createElement']('tableCellSuggestion');_0x5842a1['wrap'](_0x5842a1['createRangeIn'](_0x233b64),_0x988df5),_0x5842a1['insert'](_0x41d83a,_0x233b64,0x0);for(const _0x284731 of Array['from'](_0x47365b['getChildren']()))_0x5842a1['insert'](_0x284731,_0x41d83a,'end');_0x52e34e=rt['fromRange'](_0x5842a1['createRangeOn'](_0x41d83a)),_0x3e5a23=rt['fromRange'](_0x5842a1['createRangeOn'](_0x988df5));}const _0x651f38=Array['from'](_0x47365b['getAttributes']())['filter'](([_0x3e681e])=>We['includes'](_0x3e681e));_0x48a3f5['cells']['push']({'element':_0x233b64,'attributes':_0x651f38['length']?Object['fromEntries'](_0x651f38):null}),_0x52e34e&&_0x48a3f5['insertionRanges']['push'](_0x52e34e),_0x3e5a23&&_0x48a3f5['deletionRanges']['push'](_0x3e5a23);},{'priority':'high'}),_0x380c6b['on']('insertColumns',(_0x1449bc,_0x3402ad)=>{const [_0x5a94dd,_0x2450fe={}]=_0x3402ad;if(!_0x48a3f5)return;const _0x43c60b=_0x2450fe['at']||0x0,_0x268230=_0x2450fe['columns']||0x1;_0x48a3f5['columnInsertionIndexes']=new Array(_0x268230)['fill'](_0x43c60b)['map']((_0x34468c,_0x2d93a4)=>_0x34468c+_0x2d93a4);for(const {cell:_0x219ea4}of _0x380c6b['createTableWalker'](_0x5a94dd,{'startColumn':_0x43c60b,'endColumn':_0x43c60b+_0x268230-0x1}))_0x48a3f5['columnInsertionRanges']['push'](_0xfacf9c['model']['createRangeOn'](_0x219ea4));},{'priority':'low'}),_0x380c6b['on']('insertRows',(_0x5f6038,_0x566a01)=>{const [_0x5f1452,_0x119257={}]=_0x566a01;if(!_0x48a3f5)return;const _0x34bda4=_0x119257['at']||0x0,_0x16edf7=_0x119257['rows']||0x1;_0x48a3f5['rowInsertionIndexes']=new Array(_0x16edf7)['fill'](_0x34bda4)['map']((_0x2e8d68,_0x241f6e)=>_0x2e8d68+_0x241f6e);for(const {cell:_0x40b5ba}of _0x380c6b['createTableWalker'](_0x5f1452,{'startRow':_0x34bda4,'endRow':_0x34bda4+_0x16edf7-0x1}))_0x48a3f5['rowInsertionRanges']['push'](_0xfacf9c['model']['createRangeOn'](_0x40b5ba));},{'priority':'low'}),_0x1ed27c['descriptionFactory']['registerDescriptionCallback'](_0x5d970a=>{if(_0x5d970a['subType']&&_0x5d970a['subType']['startsWith']('tablePaste'))return _0x5d970a['previous']?{}:{'type':'insertion','content':Mt(_0xfacf9c['locale'],'*Replace\x20table\x20cells*')};});const _0x34f488=()=>!0x1;for(const _0x1e5ed6 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1ed27c['_suggestionFactory']['registerCustomCallback']('insertion',_0x1e5ed6,'join',_0x34f488),_0x1ed27c['_suggestionFactory']['registerCustomCallback']('deletion',_0x1e5ed6,'join',_0x34f488),_0x1ed27c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e5ed6,'join',_0x34f488);_0x1ed27c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x34f488),_0x1ed27c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x77c11d,_0x437dd5,_0xebdc12)=>{const _0x21f0c5=_0x77c11d['map'](_0x40facc=>_0x40facc['getContainedElement']())['filter'](_0x5501ea=>_0x5501ea),_0x186fd0=new Map(_0x21f0c5['map'](_0x1d1261=>[_0x1d1261,null]));if(_0x48a3f5){for(const {element:_0x2a05a7,attributes:_0xacc47e}of _0x48a3f5['cells'])_0xacc47e&&_0x186fd0['set'](_0x2a05a7,_0xacc47e);}else{if(_0xebdc12&&_0xebdc12['markerAttributes'])for(const [_0x5aa173,_0x7a261b]of Object['entries'](_0xebdc12['markerAttributes'])){const _0x1a2727=_0xfacf9c['model']['markers']['get'](_0x5aa173),_0x20277a=_0x1a2727?_0x1a2727['getRange']()['getContainedElement']():null;_0x20277a&&_0x186fd0['set'](_0x20277a,_0x7a261b);}}_0xfacf9c['model']['change'](_0x19ced5=>{for(const [_0x547871,_0x1191ce]of _0x186fd0)_0x19ced5['setAttributes']({...Ve,..._0x1191ce},_0x547871);});});const _0x2ef393=(_0x3f397b,_0x211a65)=>{_0x1ed27c['_suggestionFactory']['registerCustomCallback'](_0x3f397b,'tablePaste',_0x211a65,(_0x20fc8e,_0x59397b,_0x1bec78)=>{_0xfacf9c['model']['change'](_0x440c4a=>{const _0x510ff6=[];for(const _0xed9a60 of _0x20fc8e){const _0x5da8b3=_0xed9a60['start']['nodeAfter'];_0x5da8b3['is']('element','tableCellSuggestion')&&_0x510ff6['push'](_0x5da8b3);}_0x1ed27c['_suggestionFactory']['getSuggestionCallback'](_0x3f397b,null,_0x211a65)(_0x20fc8e,_0x59397b,_0x1bec78);for(const _0x52626d of _0x510ff6)'$graveyard'!=_0x52626d['root']['rootName']&&_0x440c4a['unwrap'](_0x52626d);});});};_0x2ef393('insertion','accept'),_0x2ef393('insertion','discard'),_0x2ef393('deletion','accept'),_0x2ef393('deletion','discard'),_0x1ed27c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3b49d1=>{const _0x9ca7c3=_0x3b49d1['map'](_0x26db19=>_0x26db19['getContainedElement']()),_0x4253b1=_0x9ca7c3[0x0]['findAncestor']('table'),{minRow:_0xf18bfd,maxRow:_0x532414}=_0x3efdfe['_getCoordsForCells'](_0x9ca7c3);_0x380c6b['removeRows'](_0x4253b1,{'at':_0xf18bfd,'rows':_0x532414-_0xf18bfd+0x1});}),_0x1ed27c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3c6414=>{const _0x319565=_0x3c6414['map'](_0x33a3a2=>_0x33a3a2['getContainedElement']()),_0x5a9a78=_0x319565[0x0]['findAncestor']('table'),{minColumn:_0x30f90f,maxColumn:_0x2a08d1}=_0x3efdfe['_getCoordsForCells'](_0x319565);_0x380c6b['removeColumns'](_0x5a9a78,{'at':_0x30f90f,'columns':_0x2a08d1-_0x30f90f+0x1});});const _0x43086d=(_0xe65815,_0x433229)=>{if(!_0x433229['subType']||!_0x433229['subType']['startsWith']('tablePaste'))return;const _0x32c58f=_0x433229['attributes']['tablePasteChainId'],_0x377d7e=_0x1ed27c['getSuggestions']()['filter'](_0x510ad8=>_0x510ad8['isInContent']&&_0x510ad8['attributes']&&_0x510ad8['attributes']['tablePasteChainId']==_0x32c58f);_0x377d7e['length']&&_0x433229['getAllAdjacentSuggestions']()['length']!=_0x377d7e['length']&&_0x377d7e['reduce']((_0x192834,_0x3481fe)=>(_0x192834['next']=_0x3481fe,_0x3481fe['previous']=_0x192834,_0x3481fe));};function _0x3f7e5f(_0x61d56f,_0x4dca2d=!0x0){const {id:_0x725ccf,authorId:_0x4da891}=tt(_0x61d56f['markerName']),_0x500ecf=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x40c84a=_0x1ed27c['activeMarkers']['includes'](_0x61d56f['markerName']);return _0x40c84a&&_0x500ecf['push']('ck-suggestion-marker--active'),{'classes':_0x500ecf,'attributes':{'data-suggestion':_0x725ccf,'data-author-id':_0x4da891},'priority':_0x40c84a&&_0x4dca2d?0xbc2:0xbb8};}_0x1ed27c['on']('suggestionLoaded',_0x43086d,{'priority':'high'}),_0x1ed27c['on']('suggestionUnloaded',_0x43086d,{'priority':'high'}),_0xfacf9c['model']['document']['registerPostFixer'](()=>{let _0x35bdbd=!0x1;const _0x49d286=Array['from'](_0xfacf9c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2fdd1d,data:_0x4d73d7}of _0x49d286){const {group:_0x2353b8,type:_0x5c9ca2,id:_0x23093a}=tt(_0x2fdd1d);if('suggestion'!=_0x2353b8||'deletion'!=_0x5c9ca2||_0x4d73d7['oldRange'])continue;if(!_0x1ed27c['hasSuggestion'](_0x23093a))continue;const _0x2e6aae=_0x1ed27c['getSuggestion'](_0x23093a)['getRanges'](),_0x3a2e23=_0xfacf9c['plugins']['get']('Users')['me'];for(const _0x397151 of _0x1ed27c['getSuggestions']())if(_0x397151['isInContent']&&_0x397151['author']==_0x3a2e23&&'formatBlock'==_0x397151['type']&&'tablePasteCell'==_0x397151['subType']&&_0x397151['getRanges']()['every'](_0x12973a=>_0x2e6aae['some'](_0x3e45b9=>_0x3e45b9['containsRange'](_0x12973a,!0x0)))){for(const _0x4ee308 of _0x397151['getAllAdjacentSuggestions']())_0x4ee308['isInContent']&&(_0x4ee308['discard'](),_0x35bdbd=!0x0);}}return _0x35bdbd;}),_0xfacf9c['model']['document']['registerPostFixer'](_0x189aaf=>{const _0x5a1c90=_0xfacf9c['commands']['get']('redo');if(!_0x5a1c90||!_0x5a1c90['_createdBatches']['has'](_0x189aaf['batch']))return!0x1;let _0x178c5a=!0x1;const _0x4a84bd=_0xfacf9c['plugins']['get']('Users')['me'],_0x44b68b=_0xfacf9c['model']['document']['differ']['getChanges'](),_0x39d76f=Array['from'](_0xfacf9c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x368cf2,data:_0x1f46a0})=>{const {group:_0x214435,subType:_0x2c4179,authorId:_0x2c5c94}=tt(_0x368cf2);return'suggestion'==_0x214435&&'tablePaste'==_0x2c4179&&_0x2c5c94==_0x4a84bd['id']&&!_0x1f46a0['oldRange'];});for(const _0x59c5ed of _0x44b68b){if('insert'!=_0x59c5ed['type']||'tableCellSuggestion'!=_0x59c5ed['name']||0x1!=_0x59c5ed['length'])continue;const _0x4dbee8=_0x189aaf['createRange'](_0x59c5ed['position'],_0x59c5ed['position']['getShiftedBy'](0x1));if(!_0x39d76f['find'](({data:_0x299e90})=>_0x299e90['newRange']['isEqual'](_0x4dbee8))){for(const {name:_0x9c226e,data:_0x2d0a8c}of _0x39d76f)if(_0x4dbee8['containsRange'](_0x2d0a8c['newRange'])){_0x189aaf['updateMarker'](_0x9c226e,{'range':_0x4dbee8}),_0x178c5a=!0x0;break;}}}return _0x178c5a;}),_0xfacf9c['model']['document']['registerPostFixer'](_0x19e8b4=>{let _0x1d8c00=!0x1;const _0x5bec2d=_0xfacf9c['plugins']['get']('Users')['me'],_0x5a6150=_0x1ed27c['getSuggestions']()['filter'](_0x937205=>_0x937205['isInContent']&&_0x937205['author']==_0x5bec2d),_0x5da069=new Set(),_0x1ed8f5=new Set();for(const _0xbfe00d of _0x5a6150)if('tablePaste'==_0xbfe00d['subType'])for(const _0x2321c3 of _0xbfe00d['getMarkers']()){const _0x29f037=_0x2321c3['getRange']()['getContainedElement']();if(_0x29f037){if(_0x29f037['is']('element','tableCellSuggestion')&&ze(_0x29f037)){_0xbfe00d['removeMarker'](_0x2321c3['name']),_0x5da069['add'](_0x29f037),_0x1d8c00=!0x0;const _0x2a40ce=_0x29f037['nextSibling'],_0x41aebe=_0x29f037['previousSibling'],_0x4ec0d1=_0x2a40ce&&_0x2a40ce['is']('element','tableCellSuggestion'),_0x3e57e7=_0x41aebe&&_0x41aebe['is']('element','tableCellSuggestion');_0x4ec0d1&&!_0x5da069['has'](_0x2a40ce)&&_0x1ed8f5['add'](_0x2a40ce),_0x3e57e7&&!_0x5da069['has'](_0x41aebe)&&_0x1ed8f5['add'](_0x41aebe);}else _0x29f037['is']('element','paragraph')&&_0x29f037['isEmpty']&&(_0xbfe00d['removeMarker'](_0x2321c3['name']),_0x1d8c00=!0x0);}}else{if('tablePasteCell'==_0xbfe00d['subType']){if(!_0xbfe00d['attributes']||!_0xbfe00d['attributes']['tablePasteChainId'])continue;const _0x407441=_0xbfe00d['attributes']['markerAttributes'];if(_0x407441&&Object['keys'](_0x407441)['length'])continue;const _0x46223e=_0xbfe00d['attributes']['tablePasteChainId'];let _0x4b49d0=!0x0,_0x544090=!0x0;for(const _0x215594 of _0x5a6150)if(_0x215594['subType']&&_0x215594['subType']['startsWith']('tablePaste')){if(!_0x215594['attributes']['tablePasteChainId']){_0x544090=!0x1;break;}if(_0x215594['id']!=_0xbfe00d['id']&&_0x215594['attributes']['tablePasteChainId']==_0x46223e){_0x4b49d0=!0x1;break;}}_0x544090&&_0x4b49d0&&(_0xbfe00d['removeMarkers'](),_0x1d8c00=!0x0);}}for(const _0x42b8c0 of _0x5da069)_0x19e8b4['remove'](_0x42b8c0);for(const _0x45afaa of _0x1ed8f5)_0x19e8b4['unwrap'](_0x45afaa);return _0x1d8c00;}),_0xfacf9c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x34fb6c=>_0x3f7e5f(_0x34fb6c),'converterPriority':'high'}),_0xfacf9c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x26b3c8,_0x32642e)=>_0x32642e['options']['showSuggestionHighlights']?_0x3f7e5f(_0x26b3c8,!0x1):null,'converterPriority':'high'});const _0x3b5422=_0xfacf9c['editing']['view'];this['listenTo'](_0x3b5422['document'],'clipboardOutput',(_0x3ed311,_0x748893)=>{const _0x1a3846=[];for(const _0x52c371 of _0x3b5422['createRangeIn'](_0x748893['content'])['getItems']())_0x52c371['is']('element','suggestion-td')&&_0x1a3846['push'](_0x52c371);_0x3b5422['change'](_0x213a87=>{for(const _0x2f3821 of _0x1a3846)_0x213a87['move'](_0x213a87['createRangeIn'](_0x2f3821),_0x213a87['createPositionBefore'](_0x2f3821)),_0x213a87['remove'](_0x2f3821);});});}};function ze(_0x55e63f){if(_0x55e63f['isEmpty'])return!0x0;const _0x18dfd0=_0x55e63f['getChild'](0x0);return _0x18dfd0['is']('element','paragraph')&&_0x18dfd0['isEmpty'];}function Ke(_0x3507ba,_0x20424b={},_0x1b6df5){for(const {isAnchor:_0x212e4f,cellHeight:_0x10e765,cellWidth:_0xba818e}of _0x1b6df5['createTableWalker'](_0x3507ba,{'includeAllSlots':!0x0,..._0x20424b}))if(!_0x212e4f||0x1!=_0x10e765||0x1!=_0xba818e)return!0x1;return!0x0;}var Xe=class extends _0x5d30aa{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x57a3cb=this['editor']['plugins']['get']('TrackChangesEditing');_0x57a3cb['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x57a3cb['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x57a3cb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x57a3cb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x3a3f93=_0x57a3cb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x57a3cb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x3b21bc,_0x2ee440)=>{_0x3a3f93(_0x3b21bc,_0x2ee440),this['_restoreCellWidths'](_0x3b21bc[0x0]['start']['nodeAfter'],_0x2ee440['commandParams'][0x0]['cellWidths']);}),_0x57a3cb['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x4cbb1c,_0x24f8e4){const _0x35ad34=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d0ca5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x9d2ae0=_0x24f8e4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4c5357=_0x4d0ca5['getColumnGroupElement'](_0x9d2ae0);let _0x2f4b46=_0x4c5357?_0x4d0ca5['getTableColumnsWidths'](_0x4c5357):null,_0xef536a=_0x9d2ae0['getAttribute']('tableWidth')||null;const _0x38ba83=_0x24f8e4['tableWidth']||_0xef536a,_0x380f7d=_0x24f8e4['columnWidths']||_0x2f4b46;let _0x53d096=this['_getCellWidths'](_0x9d2ae0);const _0x1f02e7=this['_foldResizeTableSuggestion'](_0x9d2ae0);_0x1f02e7&&(_0xef536a=_0x1f02e7['tableWidth'],_0x2f4b46=_0x1f02e7['columnWidths'],_0x53d096=_0x1f02e7['cellWidths']||_0x53d096),_0x4cbb1c({'table':_0x9d2ae0,'tableWidth':_0x38ba83,'columnWidths':_0x380f7d}),_0x35ad34['markBlockFormat'](_0x9d2ae0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xef536a,'columnWidths':_0x2f4b46,'cellWidths':_0x53d096}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x3e6954,_0x32deee={}){if(void 0x0===_0x32deee['value']||''===_0x32deee['value'])return void _0x3e6954(_0x32deee);const _0x25a8d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2854ee=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xc6cc4d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x32deee['batch']||(_0x32deee['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x32deee['batch'],()=>{const _0x368098=_0x2854ee['getColumnGroupElement'](_0xc6cc4d);let _0x4d9f58=_0x368098?_0x2854ee['getTableColumnsWidths'](_0x368098):null,_0x71b0b2=_0xc6cc4d['getAttribute']('tableWidth')||null,_0x2828df=this['_getCellWidths'](_0xc6cc4d);const _0x12740c=this['_foldResizeTableSuggestion'](_0xc6cc4d,!0x0);_0x12740c&&(_0x71b0b2=_0x12740c['tableWidth'],_0x4d9f58=_0x12740c['columnWidths'],_0x2828df=_0x12740c['cellWidths']||_0x2828df),_0x3e6954(_0x32deee),_0x25a8d6['markBlockFormat'](_0xc6cc4d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x71b0b2,'columnWidths':_0x4d9f58,'cellWidths':_0x2828df}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x2e5bf4,_0x27a48f=!0x1){const _0x5f0323=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c7b74=this['editor']['plugins']['get']('Users')['me'];for(const _0x53257d of _0x5f0323['getSuggestions']({'skipNotAttached':!0x0})){const _0x23824f=_0x53257d['getContainedElement']();if('resizeTable'===_0x53257d['subType']&&_0x23824f===_0x2e5bf4){_0x53257d['author']!==_0x1c7b74&&(_0x27a48f?_0x53257d['removeMarkers']():_0x53257d['discard']());const _0xa51c20=_0x53257d['data']['commandParams'];return{'tableWidth':_0xa51c20[0x0]['tableWidth'],'columnWidths':_0xa51c20[0x0]['columnWidths'],'cellWidths':_0xa51c20[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x583bf9){const _0x354c41=[];for(const _0xfed20f of _0x583bf9['getChildren']())if(_0xfed20f['is']('element','tableRow')){for(const _0x25403c of _0xfed20f['getChildren']())_0x354c41['push'](_0x25403c['getAttribute']('tableCellWidth')||null);}return _0x354c41;}_restoreCellWidths(_0x254315,_0x44bd08){_0x44bd08&&this['editor']['model']['change'](_0x44f741=>{let _0x33f4d8=0x0;for(const _0x32863e of _0x254315['getChildren']())if(_0x32863e['is']('element','tableRow'))for(const _0x4bf032 of _0x32863e['getChildren']()){const _0x2a7e07=_0x44bd08[_0x33f4d8++];_0x2a7e07&&_0x44f741['setAttribute']('tableCellWidth',_0x2a7e07,_0x4bf032);}});}handleSuggestionDescription(_0x1dc744){if('formatBlock'!=_0x1dc744['type']&&'formatInline'!=_0x1dc744['type'])return;const {data:_0x3da750}=_0x1dc744;return _0x3da750&&'resizeTable'===_0x3da750['formatGroupId']?{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},qe=class extends _0x5d30aa{afterInit(){const _0x26757c=this['editor'];_0x26757c['plugins']['has']('Template')&&_0x26757c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ye=class extends _0x5d30aa{afterInit(){const _0x449ac5=this['editor'];if(!_0x449ac5['commands']['get']('insertTableOfContents'))return;_0x449ac5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1af498=_0x449ac5['plugins']['get']('TrackChangesEditing'),_0x4e9070=_0x449ac5['locale'];_0x1af498['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4eece9=>Mt(_0x4e9070,'ELEMENT_TABLE_OF_CONTENTS',_0x4eece9));}},Qe=class extends _0x5d30aa{afterInit(){const _0x105fa3=this['editor'];_0x105fa3['plugins']['has']('Title')&&(_0x105fa3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Mt(_0x105fa3['locale'],'ELEMENT_TITLE')),_0x105fa3['model']['document']['registerPostFixer'](_0x4567b6=>{let _0x4c2d41=!0x1;const _0x270d53=Array['from'](_0x105fa3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x155cac,data:_0x42b195}of _0x270d53){const {group:_0x346a42}=tt(_0x155cac);if('suggestion'!==_0x346a42||!_0x42b195['newRange'])continue;const _0x402278=_0x42b195['newRange'],_0x1d9128=_0x402278['end']['nodeBefore'];if(!_0x1d9128||!_0x1d9128['is']('element','title-content'))continue;if(!_0x402278['start']['isTouching'](_0x402278['end']))continue;const _0x40820c=_0x105fa3['model']['schema']['getNearestSelectionRange'](_0x402278['end'],'forward');if(_0x40820c&&_0x40820c['isCollapsed']){const _0x2c9811=_0x4567b6['createRange'](_0x402278['start'],_0x40820c['start']);_0x2c9811['isEqual'](_0x402278)||(_0x4567b6['updateMarker'](_0x155cac,{'range':_0x2c9811}),_0x4c2d41=!0x0);}_0x4c2d41||(_0x4567b6['removeMarker'](_0x155cac),_0x4c2d41=!0x0);}return _0x4c2d41;}));}},Ze=class extends _0x5d30aa{afterInit(){const _0x4e2231=this['editor'],_0x497984=_0x4e2231['plugins']['get']('TrackChangesEditing');_0x4e2231['plugins']['has']('Uploadcare')&&(_0x497984['enableCommand']('uploadcare'),_0x4e2231['plugins']['has']('UploadcareImageEdit')&&(_0x497984['enableCommand']('uploadcareImageEdit'),_0x497984['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x497984['descriptionFactory']['registerDescriptionCallback'](_0x14f888=>{if('attribute'!=_0x14f888['type'])return;const {data:_0x42d39d}=_0x14f888;return _0x42d39d&&'uploadcareImageId'==_0x42d39d['key']?{'type':'format','content':''}:void 0x0;})));}},Je=class extends _0x5d30aa{afterInit(){const _0xeeb9ff=this['editor'],_0x10ecb2=_0xeeb9ff['plugins']['get']('TrackChangesEditing');_0xeeb9ff['plugins']['has']('UndoEditing')&&(_0x10ecb2['enableCommand']('undo'),_0x10ecb2['enableCommand']('redo'));}},tn=class extends _0x5d30aa{static get requires(){return[Ue];}afterInit(){const _0x1e2b51=this['editor'];_0x1e2b51['plugins']['has']('TableCaptionEditing')&&_0x1e2b51['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},en=class extends _0x5d30aa{tableProperties;tableCellProperties;constructor(_0x5567bf){super(_0x5567bf),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 _0x51e867=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2c0c45 of this['tableProperties'])_0x51e867['enableCommand'](_0x2c0c45,(_0x16183f,_0x30b0bd)=>{const _0x1036d3=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2c0c45,[_0x1036d3],this['tableProperties'],'tableProperties',_0x16183f,_0x30b0bd);});_0x51e867['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x51e867['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x51e867['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1d53ea,_0x220a0d)=>this['handleDiscardAction'](this['tableProperties'],_0x1d53ea,_0x220a0d)),_0x51e867['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x19f3fd of this['tableCellProperties'])this['editor']['commands']['get'](_0x19f3fd)&&_0x51e867['enableCommand'](_0x19f3fd,(_0x1d7823,_0x4cc25b)=>{const _0xed53e5=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x19f3fd,_0xed53e5,this['tableCellProperties'],'tableCellProperties',_0x1d7823,_0x4cc25b);});_0x51e867['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x51e867['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x51e867['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4b27b3,_0x588312)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4b27b3,_0x588312)),_0x51e867['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x51e867['descriptionFactory']['registerAttributeLabel']('tableCellType',Mt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x51e867['descriptionFactory']['registerDescriptionCallback'](_0x830e9a=>this['handleSuggestionDescription'](_0x830e9a)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x273b52,_0x5b460e,_0x3802a8,_0x29b1ca,_0x36eb05,_0x5d1364){const _0x3ca70c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5d1364['batch'],()=>{for(const _0x1aa249 of _0x5b460e)if(this['_getSuggestion'](_0x1aa249,_0x29b1ca))_0x36eb05(_0x5d1364);else{const _0x1dfa0e={};for(const _0x25c15b of _0x3802a8){const _0x497f4f=_0x1aa249['getAttribute'](_0x25c15b);void 0x0!==_0x497f4f&&(_0x1dfa0e[_0x25c15b]=_0x497f4f);}const _0x40623d=this['_getResizedColumnWidths'](_0x1aa249);_0x40623d&&(_0x1dfa0e['columnWidths']=_0x40623d),_0x36eb05(_0x5d1364),_0x3ca70c['markBlockFormat'](_0x1aa249,{'commandParams':[_0x1dfa0e]},[],_0x29b1ca);}});}handleDiscardAction(_0x222417,_0x374b50,_0x2181af){const _0x3d1882=_0x374b50[0x0]['start']['nodeAfter'],_0x979e7a=_0x2181af['commandParams'][0x0];this['editor']['model']['change'](_0x476d0b=>{for(const _0x5c4d8b of _0x222417)void 0x0!==_0x979e7a[_0x5c4d8b]?_0x476d0b['setAttribute'](_0x5c4d8b,_0x979e7a[_0x5c4d8b],_0x3d1882):_0x476d0b['removeAttribute'](_0x5c4d8b,_0x3d1882);if(_0x979e7a['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x495cd6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x52d50e=_0x495cd6['getColumnGroupElement'](_0x3d1882);if(_0x52d50e){const _0x746159=_0x495cd6['getTableColumnsWidths'](_0x52d50e),_0x12348f=_0x3d1882['getAttribute']('tableWidth');if(('string'==typeof _0x12348f&&_0x12348f['trim']()['endsWith']('px'))!==_0x746159['some'](_0x743f6b=>'string'==typeof _0x743f6b&&_0x743f6b['endsWith']('px'))){const _0x1ae1f3=_0x495cd6['getTableColumnElements'](_0x52d50e);_0x979e7a['columnWidths']['forEach']((_0x8721c4,_0xa2c05)=>{_0x1ae1f3[_0xa2c05]&&_0x476d0b['setAttribute']('columnWidth',_0x8721c4,_0x1ae1f3[_0xa2c05]);});}}}});}_getResizedColumnWidths(_0xa5265b){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0xa5265b['is']('element','table'))return;const _0x2b619c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xcbdb6e=_0x2b619c['getColumnGroupElement'](_0xa5265b);return _0xcbdb6e?_0x2b619c['getTableColumnsWidths'](_0xcbdb6e):void 0x0;}handleSuggestionDescription(_0x55f00a){if(_0x55f00a['data'])switch(_0x55f00a['subType']){case'tableProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Mt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x1c620b,_0x3a1fb0){const _0x29fe35=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2fffb9 of _0x29fe35['getSuggestions']({'skipNotAttached':!0x0})){const _0x43deb9=_0x2fffb9['getContainedElement']();if(_0x2fffb9['subType']===_0x3a1fb0&&_0x43deb9===_0x1c620b)return _0x2fffb9;}return null;}_registerTablePropertiesAttributes(){const _0x499971=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46f44a=[...this['tableProperties'],...this['tableCellProperties']];for(const _0xff0216 of _0x46f44a){const _0xa160f8=_0xff0216['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x499971['descriptionFactory']['registerAttributeLabel'](_0xff0216,Mt(this['editor']['locale'],'FORMAT_'+_0xa160f8));}}},nn=class extends _0x5d30aa{afterInit(){const _0x47bf02=this['editor'];if(!_0x47bf02['plugins']['has']('LineHeight'))return;const _0x475641=_0x47bf02['plugins']['get']('TrackChangesEditing'),_0x486d55=_0x47bf02['locale'];_0x475641['enableDefaultAttributesIntegration']('lineHeight'),_0x475641['descriptionFactory']['registerAttributeLabel']('lineHeight',Mt(_0x486d55,'FORMAT_LINE_HEIGHT'));}};const sn='$elementName';function rn(_0x309cd2){return'marker'==_0x309cd2['type']&&_0x309cd2['name']['startsWith']('$markedRemove');}var on=class extends _0x5d30aa{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x3f1c40,_0x3bdd00,_0x3a5db0,_0x471eed,wt,Ft,Bt,vt,Ut,Pt,Gt,$t,Ht,Wt,Vt,zt,Kt,Jt,te,ee,ie,se,re,ae,ce,le,ue,de,he,fe,ge,me,Ee,Te,pe,Ae,ye,_e,Xt,nn,Yt,be,ke,Ce,Re,Ne,Se,Me,Oe,we,Fe,ve,De,Ue,xe,Ge,He,$e,tn,je,Xe,Ye,en,qe,Qe,Ze,Je];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d767b){super(_0x5d767b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x230bf7,_0x35d4f4,_0x32cef7,_0x28ae68)=>{this['_model']['change'](()=>{for(const _0x28693e of[..._0x28ae68,..._0x32cef7])this['_model']['markers']['has'](_0x28693e)&&_0x5d767b['editing']['reconvertMarker'](_0x28693e);});}),this['descriptionFactory']=new Ot(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5d767b['plugins']['get'](_0x3f1c40),this['_suggestionsConversion']=_0x5d767b['plugins']['get'](_0x3bdd00),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x5d767b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5d767b['config']['get']('trackChanges.trackFormatChanges'),_0x5d767b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5d767b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Tt(_0x5d767b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x1418c0=this['editor'];_0x1418c0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x18328f,{writer:_0x52bf26})=>{let _0x5d33eb='suggestion:'+_0x18328f['getAttribute']('suggestion-type')+':'+_0x18328f['getAttribute']('id');return _0x18328f['getAttribute']('marker-count')&&(_0x5d33eb+=':'+_0x18328f['getAttribute']('marker-count')),_0x52bf26['createElement']('$marker',{'data-name':_0x5d33eb});}}),_0x1418c0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1418c0['model']['document']['registerPostFixer'](_0x329193=>{let _0x1a05a8=!0x1;const _0x1c0207=Array['from'](_0x1418c0['model']['document']['differ']['getChangedMarkers']()),_0x30affa=new Set();for(const {name:_0x25142c,data:_0x1f7097}of _0x1c0207){const {group:_0x510647,type:_0x5830c5,subType:_0x4810ef,id:_0x2fae15}=tt(_0x25142c);if('suggestion'!==_0x510647)continue;const _0x1df8e1=_0x4810ef?'suggestion:'+_0x5830c5+':'+_0x4810ef+':'+_0x2fae15:'suggestion:'+_0x5830c5+':'+_0x2fae15,_0x36afa2=_0x1418c0['model']['markers']['getMarkersGroup'](_0x1df8e1),_0x12b7ac=_0x1418c0['model']['markers']['get'](_0x25142c),_0x4e0519=this['_suggestions']['get'](_0x2fae15);if(null!=_0x1f7097['newRange']){'formatInline'==_0x5830c5&&(_0x1a05a8=_0x1a05a8||un(_0x1f7097['newRange'],_0x25142c,_0x329193,_0x1418c0['model']['schema']));const _0x42e452='attribute'==_0x5830c5&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x4810ef)),_0x5b1707='attribute'==_0x5830c5&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x4810ef));if(_0x1f7097['newRange']['isCollapsed']||'$graveyard'==_0x1f7097['newRange']['root']['rootName']||'formatBlock'==_0x5830c5&&!hn(_0x1f7097['newRange'])||_0x42e452&&!hn(_0x1f7097['newRange'])||_0x5b1707&&gn(_0x1f7097['newRange'])||'deletion'==_0x5830c5&&gn(_0x1f7097['newRange'])||_0x12b7ac&&fn(_0x12b7ac,_0x36afa2))_0x329193['removeMarker'](_0x25142c),_0x1a05a8=!0x0;else{if(!_0x4e0519||!_0x4e0519['isInContent'])continue;if(_0x1f7097['newRange']&&_0x1f7097['oldRange']&&_0x1f7097['newRange']['isEqual'](_0x1f7097['oldRange']))continue;_0x30affa['add'](_0x4e0519);}}}return _0x30affa['size']>0x0&&(_0x1a05a8=!!this['_joinWithAdjacentSuggestions'](_0x30affa)||_0x1a05a8),_0x1a05a8;}),_0x1418c0['model']['document']['registerPostFixer'](_0xe1fc25=>{let _0x736f6a=!0x1;for(const _0xd58e37 of _0x1418c0['model']['document']['differ']['getChanges']())if('insert'==_0xd58e37['type'])for(const _0x470912 of this['_suggestions']['values']()){if(_0x470912['isMultiRange']||!_0x470912['isInContent'])continue;const _0x216735='formatBlock'==_0x470912['type'],_0x3e1b06=this['_getAttributeKey'](_0x470912),_0x4d312f=_0x3e1b06&&this['_suggestionsConversion']['isBlockAttribute'](_0x3e1b06);if(!_0x216735&&!_0x4d312f)continue;const _0x221f84=_0x470912['getFirstRange']();if(_0x221f84['start']['parent']!=_0x221f84['end']['parent']&&!_0x221f84['end']['isAtEnd']){const _0x1061a0=_0x1418c0['model']['createPositionAt'](_0x221f84['start']['nodeAfter'],'end'),_0x588f8d=_0x1418c0['model']['createRange'](_0x221f84['start'],_0x1061a0);_0xe1fc25['updateMarker'](_0x470912['getFirstMarker'](),{'range':_0x588f8d}),_0x736f6a=!0x0;}}return _0x736f6a;}),_0x1418c0['model']['document']['registerPostFixer'](_0x5cc2cf=>this['_processAttributeChanges'](_0x5cc2cf)),_0x1418c0['model']['document']['registerPostFixer'](_0x2ba6f0=>!_0x2ba6f0['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2ba6f0)),_0x1418c0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1418c0['model']['document']['on']('change:data',(_0xc38f2d,_0xdb16f9)=>{if(!_0xdb16f9['isLocal']||_0xdb16f9['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x382320=_0x1418c0['model']['document']['differ']['getChanges']();if(0x0==_0x382320['length'])return;const _0x586581=[],_0x50dba5=_0x382320['filter'](_0x5da30c=>'attribute'==_0x5da30c['type']),_0x5174f1=_0x382320['filter'](_0x39f098=>'insert'==_0x39f098['type']&&'$text'!=_0x39f098['name']);for(const _0x1fe8d1 of _0x50dba5)this['_suggestionsConversion']['isRegisteredAttribute'](_0x1fe8d1['attributeKey'])&&_0x586581['push']({'key':_0x1fe8d1['attributeKey'],'newValue':_0x1fe8d1['attributeNewValue'],'oldValue':_0x1fe8d1['attributeOldValue'],'range':mn(_0x1fe8d1['range'],_0x1418c0['model'])});for(const _0x7927b4 of _0x5174f1){if('rename'!=_0x7927b4['action']&&'refresh'!=_0x7927b4['action'])continue;const _0x1bba1a=En(_0x7927b4['position']['nodeAfter'],_0x1418c0['model']),_0x15defc=_0x7927b4['before'];'rename'==_0x7927b4['action']&&_0x586581['push']({'key':sn,'newValue':_0x7927b4['name'],'oldValue':_0x15defc['name'],'range':_0x1bba1a});for(const [_0x4285bc,_0x4f0c85]of _0x15defc['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4285bc))continue;const _0x369c74=_0x7927b4['attributes']['get'](_0x4285bc);_0x4f0c85!==_0x369c74&&_0x586581['push']({'key':_0x4285bc,'newValue':_0x369c74,'oldValue':_0x4f0c85,'range':_0x1bba1a});}for(const [_0x2b2bb9,_0x42c471]of _0x7927b4['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x2b2bb9)&&(_0x15defc['attributes']['has'](_0x2b2bb9)||_0x586581['push']({'key':_0x2b2bb9,'newValue':_0x42c471,'oldValue':null,'range':_0x1bba1a}));}0x0!=_0x586581['length']&&_0x1418c0['model']['enqueueChange'](_0xdb16f9,_0xcf0924=>{const _0xf10c0=_0x592457();for(const {range:_0x5e70b6,key:_0x1754de,oldValue:_0x146751,newValue:_0x575a8f}of _0x586581)this['markAttributeChange'](_0x5e70b6,_0x1754de,_0x146751,_0x575a8f,{'groupId':_0xf10c0});this['_reduceExistingSuggestions'](_0xcf0924,_0x586581);});},{'priority':'lowest'}),_0x1418c0['model']['markers']['on']('update:suggestion',(_0x4aefc8,_0x36df0f,_0x52e203)=>{if(null==_0x52e203){const {id:_0x444f19}=tt(_0x36df0f['name']),_0x430055=this['_suggestions']['get'](_0x444f19);_0x430055&&_0x430055['addMarkerName'](_0x36df0f['name']);}}),_0x1418c0['model']['document']['on']('change:data',()=>{const _0x106288=Array['from'](_0x1418c0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x398d86=>'suggestion'===tt(_0x398d86['name'])['group']);if(0x0===_0x106288['length'])return;_0x106288['sort']((_0x2af5e9,_0x411e87)=>{const _0xece32d=_0x2af5e9['data']['oldRange'],_0x492b61=_0x411e87['data']['oldRange'];return null===_0xece32d&&null===_0x492b61?0x0:null===_0xece32d&&null!==_0x492b61?-0x1:null!==_0xece32d&&null===_0x492b61?0x1:_0xece32d['start']['isBefore'](_0x492b61['start'])?-0x1:0x1;});const _0x541f57=new Set(),_0x39277f=new Set();for(const {name:_0x2438b8,data:_0xac5626}of _0x106288){const {id:_0x2a89d6}=tt(_0x2438b8);if(null===_0xac5626['oldRange']){const _0x3fc947=this['_handleNewSuggestionMarker'](_0x2438b8);_0x39277f['add'](_0x3fc947);}else{const _0x2a4329=this['_suggestions']['get'](_0x2a89d6);null!==_0xac5626['newRange']||_0x2a4329['isInContent']?(_0x541f57['add'](_0x2a4329['head']),_0x39277f['add'](_0x2a4329)):this['_removeSuggestion'](_0x2a4329);}}_0x39277f['size']>0x0&&this['_refreshSuggestionsChain'](_0x39277f);for(const _0xa574fc of _0x541f57)this['fire']('suggestionChanged',_0xa574fc);}),_0x1418c0['model']['on']('applyOperation',(_0x1392c8,_0x324ef6)=>{const _0x1468f6=_0x324ef6[0x0];if(!this['_suggestions']['size'])return;if(!_0x1468f6['isDocumentOperation'])return;if(_0x1468f6['batch']['isUndo']||!_0x1468f6['batch']['isLocal'])return;let _0x3d9b0c,_0x5dca63;switch(_0x1468f6['type']){case'insert':_0x3d9b0c=_0x1418c0['model']['createPositionAt'](_0x1468f6['position']),_0x5dca63=_0x3d9b0c['getShiftedBy'](_0x1468f6['howMany']);break;case'split':_0x3d9b0c=_0x1418c0['model']['createPositionAt'](_0x1468f6['splitPosition']),_0x5dca63=_0x1418c0['model']['createPositionAt'](_0x1468f6['moveTargetPosition']);break;case'move':_0x3d9b0c=_0x1418c0['model']['createPositionAt'](_0x1468f6['targetPosition']),_0x5dca63=_0x3d9b0c['getShiftedBy'](_0x1468f6['howMany']);break;default:return;}const _0x7edcc0=_0x1418c0['model']['createRange'](_0x3d9b0c,_0x5dca63);_0x1418c0['model']['change'](()=>{for(const {suggestion:_0x2c1b6a,meta:_0x5aa202}of this['_findSuggestions'](_0x7edcc0)){if(_0x2c1b6a['isMultiRange'])continue;if('formatInline'==_0x2c1b6a['type'])continue;const _0x3ecf25=this['_getAttributeKey'](_0x2c1b6a);if(_0x3ecf25&&this['_suggestionsConversion']['isBlockAttribute'](_0x3ecf25)&&'split'!=_0x1468f6['type'])continue;const _0x5acec7=_0x2c1b6a['data']&&_0x2c1b6a['data']['multipleBlocks'];('formatBlock'!=_0x2c1b6a['type']||'split'==_0x1468f6['type']&&!_0x5acec7)&&(_0x5aa202['containsRangeInObject']||'insertion'==_0x2c1b6a['type']&&_0x5aa202['isOwn']||_0x2c1b6a['getFirstRange']()['containsRange'](_0x7edcc0)&&this['_breakSuggestionMarker'](_0x2c1b6a,_0x3d9b0c,_0x5dca63));}});},{'priority':'lowest'}),_0x1418c0['model']['on']('deleteContent',(_0x4ebf8d,_0x59beec)=>{const _0x1a4a96=_0x59beec[0x0],_0x2c2f9a=_0x59beec[0x1];if(_0x2c2f9a&&_0x2c2f9a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1a4a96['isCollapsed'])return;const _0xeaff06=_0x1418c0['model']['schema'],{start:_0x55711d,end:_0xc8beb}=_0x1a4a96['getFirstRange'](),_0x58762b=_0x55711d['nodeAfter']&&_0xeaff06['isLimit'](_0x55711d['nodeAfter'])?null:_0xeaff06['getNearestSelectionRange'](_0x55711d,'forward'),_0x26de99=_0xc8beb['nodeBefore']&&_0xeaff06['isLimit'](_0xc8beb['nodeBefore'])?null:_0xeaff06['getNearestSelectionRange'](_0xc8beb,'backward'),_0x247ecd=_0x1418c0['model']['createRange'](_0x58762b?_0x58762b['start']:_0x55711d,_0x26de99?_0x26de99['end']:_0xc8beb);_0x1418c0['model']['change'](_0x352f42=>{this['markDeletion'](_0x247ecd);const _0x4760a7=_0x1418c0['model']['schema']['getNearestSelectionRange'](_0x247ecd['start']);_0x1a4a96['is']('documentSelection')?_0x352f42['setSelection'](_0x4760a7):_0x1a4a96['setTo'](_0x4760a7);}),_0x4ebf8d['stop']();},{'priority':_0x35f7ae['normal']+0xa}),_0x1418c0['model']['on']('insertContent',(_0x45b7c3,_0x5b5513)=>{const _0x16e3ed=_0x5b5513[_0x5b5513['length']-0x1];_0x16e3ed&&_0x16e3ed['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1418c0['model']['change'](()=>{let _0x43384e=_0x1418c0['model']['insertContent'](_0x5b5513[0x0],_0x5b5513[0x1],_0x5b5513[0x2],{'forceDefaultExecution':!0x0});if(!_0x43384e)return;_0x45b7c3['return']=_0x43384e['clone']();const _0x11c629=_0x43384e['end']['nodeBefore'],_0x1c0025=_0x1418c0['model']['schema'];_0x11c629&&_0x1c0025['isBlock'](_0x11c629)&&!_0x1c0025['isObject'](_0x11c629)&&(_0x43384e=_0x1418c0['model']['createRange'](_0x43384e['start'],_0x1418c0['model']['createPositionAt'](_0x11c629,'end'))),this['markInsertion'](_0x43384e);}),_0x45b7c3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xd863cc=new _t(_0x1418c0,this['_suggestions']);_0x1418c0['commands']['add']('acceptSuggestion',_0xd863cc),this['enableCommand']('acceptSuggestion');const _0x2b9e01=new pt(_0x1418c0,this['_suggestions']);_0x1418c0['commands']['add']('discardSuggestion',_0x2b9e01),this['enableCommand']('discardSuggestion'),_0x1418c0['commands']['add']('acceptAllSuggestions',new Rt(_0x1418c0,_0xd863cc,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1418c0['commands']['add']('discardAllSuggestions',new Rt(_0x1418c0,_0x2b9e01,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1418c0['commands']['add']('acceptSelectedSuggestions',new yt(_0x1418c0,_0xd863cc,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1418c0['commands']['add']('discardSelectedSuggestions',new yt(_0x1418c0,_0x2b9e01,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1a0eaa=_0x1418c0['plugins']['get'](_0x3f1c40);this['listenTo'](_0x1a0eaa,'addComment',(_0x149cb4,{threadId:_0x435ba9})=>{const _0xfdeeaa=this['_suggestions']['get'](_0x435ba9);_0xfdeeaa&&_0xfdeeaa['commentThread']&&0x1===_0xfdeeaa['commentThread']['length']&&this['_updateSuggestionData'](_0x435ba9,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1a0eaa,'removeComment',(_0x192e21,{threadId:_0xb32f7c})=>{const _0xee665c=this['_suggestions']['get'](_0xb32f7c);_0xee665c&&_0xee665c['commentThread']&&!_0xee665c['commentThread']['length']&&this['_updateSuggestionData'](_0xb32f7c,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x7a56d0){const _0x45522e='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x44a480=0x79440,_0x515875={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x25d469(_0x4841b4){const _0x2ab04d=new window['Promise'](_0x30215e=>{_0x4841b4['once']('ready',_0x30215e);}),_0x2cc7a5=window['Date']['now'](),_0x393e5a=_0x4841b4['config']['get']('licenseKey');async function _0x255bdf(){let _0x2d9892,_0x5b5893=null,_0x8e832f=null;try{return'GPL'==_0x393e5a?'NotAllowed':(_0x2d9892=_0x2c5b2e(),_0x2d9892?(_0x2d9892['usageEndpoint']&&(_0x8e832f=_0x1939f0(_0x2d9892['usageEndpoint'],_0x2d9892['jti'])),await _0x36d523()?_0x1c04e6()?_0x4f8a46()?'Expired':_0x2de5ff()?('evaluation'==_0x2d9892['licenseType']&&(_0x5b5893=_0x545851('EvaluationLimit')),await _0x3a706b()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x4f8a46(){const _0x5aa200=['evaluation','trial']['includes'](_0x2d9892['licenseType'])?_0x2cc7a5/0x3e8:0xe10*_0x44a480;return _0x2d9892['exp']<_0x5aa200;}function _0x1c04e6(){const _0x4837d7=_0x2d9892['features'];if(!_0x4837d7)return!0x1;if(_0x4837d7['includes']('*'))return!0x0;if(_0x4837d7['includes']('TC'))return!0x0;if(_0x4837d7['includes']('RTC')){if(_0x4ac46a())return!0x0;if(_0xcc2bd9()||_0x75c448())return!0x0;}return!0x1;}function _0x2de5ff(){const _0xaa8b7e=_0x2d9892['licensedHosts'];if(!_0xaa8b7e||0x0==_0xaa8b7e['length'])return!0x0;const {hostname:_0x20c747}=new URL(window['location']['href']);if(_0xaa8b7e['includes'](_0x20c747))return!0x0;const _0x11ca98=_0x20c747['split']('.');return _0xaa8b7e['filter'](_0x1e0dbc=>_0x1e0dbc['includes']('*'))['map'](_0x17e6bc=>_0x17e6bc['split']('.'))['filter'](_0x162895=>_0x162895['length']<=_0x11ca98['length'])['map'](_0xf2210a=>Array(_0x11ca98['length']-_0xf2210a['length'])['fill']('*'===_0xf2210a[0x0]?'*':'')['concat'](_0xf2210a))['some'](_0x1a0a74=>_0x11ca98['every']((_0x2ea457,_0x209519)=>_0x1a0a74[_0x209519]===_0x2ea457||'*'===_0x1a0a74[_0x209519]));}function _0x3a706b(){return _0x5b5893&&_0x8e832f?new window['Promise']((_0x5c554a,_0x444690)=>{_0x5b5893['then'](_0x5c554a,_0x444690),_0x8e832f['then'](_0x3cf6e1=>{'Valid'!=_0x3cf6e1&&_0x5c554a(_0x3cf6e1);},_0x444690);}):_0x5b5893||_0x8e832f||'Valid';}}function _0x1939f0(_0x220d20,_0x386d8b){return new window['Promise'](_0xa0d526=>{if(_0x2a1854())return _0xa0d526('Valid');_0x2428b2(),_0x4841b4['decorate']('_sendUsageRequest');let _0x400632=!0x1;const _0x514ded=_0x592457();function _0x12fff8(_0x3e2482){return!!_0x3e2482&&('object'==typeof _0x3e2482||'function'==typeof _0x3e2482)&&'function'==typeof _0x3e2482['then']&&'function'==typeof _0x3e2482['catch'];}function _0x230c88(_0x57c5ef){_0x4af957(_0x57c5ef)['then'](_0xaaf744=>_0xaaf744&&'ok'==_0xaaf744['status']?_0x516957(_0xe9beac(_0x514ded+_0x386d8b))!=_0xaaf744['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x830f38=>(_0xbe9a79(),_0x830f38),()=>{const _0x11b8a4=_0x4f7ada();return null==_0x11b8a4?(_0xbe9a79(),'Valid'):_0x2cc7a5-_0x11b8a4>0x240c8400?'UsageLimit':'Valid';})['then'](_0xa0d526)['catch'](()=>{_0xa0d526('UsageLimit');});const _0x4e3714=0x36ee80;function _0xbe9a79(){const _0x1190a8='llct-'+_0x516957(_0xe9beac(_0x220d20)),_0x2501ba=_0x542c0b(_0x516957(window['Math']['ceil'](_0x2cc7a5/_0x4e3714)));window['localStorage']['setItem'](_0x1190a8,_0x2501ba);}function _0x4f7ada(){const _0x503d40='llct-'+_0x516957(_0xe9beac(_0x220d20)),_0x1eed74=window['localStorage']['getItem'](_0x503d40);return _0x1eed74?window['parseInt'](_0x542c0b(_0x1eed74),0x10)*_0x4e3714:null;}function _0x4af957(_0x4f8402){return new window['Promise']((_0x1bebca,_0x536799)=>{_0x4f8402['then'](_0x1bebca,_0x536799),window['setTimeout'](_0x536799,0x1d4c0);});}}_0x4841b4['on']('_sendUsageRequest',(_0x35326d,_0x2aea4b)=>{if(_0x2aea4b[0x0]!=_0x220d20)return _0xa0d526('UsageLimit');_0x2aea4b[0x1]={..._0x2aea4b[0x1],'requestId':_0x514ded};},{'priority':'high'}),_0x4841b4['on']('_sendUsageRequest',_0x1c88cb=>{_0x12fff8(_0x1c88cb['return'])&&(_0x400632=!0x0,_0x230c88(_0x1c88cb['return']));},{'priority':'low'}),_0x2ab04d['then'](()=>{_0x400632||_0xa0d526('UsageLimit');});});function _0x2a1854(){return'auto'==_0x4841b4['editing']['view']['_overlayModeHint'];}function _0x2428b2(){_0x4841b4['editing']['view']['_overlayModeHint']='auto';}}function _0x545851(_0x3eafcb){const _0x230132=[new window['Promise'](_0x27a36c=>setTimeout(_0x27a36c,0x93ecc)),_0x2ab04d['then'](()=>new window['Promise'](_0x26a5c3=>{let _0x4791f9=0x0;_0x4841b4['model']['on']('applyOperation',(_0x4389b0,_0x47fda1)=>{_0x47fda1[0x0]['isDocumentOperation']&&_0x4791f9++,0x5e8==_0x4791f9&&(_0x26a5c3(),_0x4389b0['off']());});}))];return window['Promise']['race'](_0x230132)['then'](()=>_0x3eafcb);}async function _0x23aac7(){await _0x2ab04d,_0x4841b4['model']['change']=_0x186f97,_0x4841b4['model']['enqueueChange']=_0x186f97,_0x4841b4['enableReadOnlyMode']('model');}function _0x4ac46a(){return _0xa48284('WebSocketGateway')&&'connected'==_0x2dce44('WebSocketGateway')['state'];}function _0xcc2bd9(){return _0xa48284('RevisionViewerIntegration');}function _0x75c448(){return _0xa48284('TrackChangesDataGetter');}function _0x4ed7af(_0x168669){const _0x523ba8=_0x3edfef();_0x4841b4[_0x523ba8]='trackChangesLicenseKey'+_0x168669,'Valid'!=_0x168669&&_0x23aac7();}function _0x3edfef(){const _0x27275a=window['String'](window['performance']['now']())['replace']('.','');let _0x5e564b='U';for(let _0x56d857=0x0;_0x56d857<_0x27275a['length'];_0x56d857+=0x2){let _0x5a9a21=window['parseInt'](_0x27275a['substring'](_0x56d857,_0x56d857+0x2));_0x5a9a21>=0x3e&&(_0x5a9a21-=0x3e),_0x5e564b+=_0x45522e[_0x5a9a21];}return _0x5e564b;}function _0x2c5b2e(){const _0x4ff364=_0x393e5a['split']('.');if(0x3!=_0x4ff364['length'])return null;return _0x3db267(_0x4ff364[0x1]);function _0x3db267(_0x72a6f5){const _0x4973a0=_0xa0e00f(_0x72a6f5);return _0x4973a0&&_0x56a9c6()?_0x4973a0:null;function _0x56a9c6(){const _0xeac72d=_0x4973a0['jti'],_0x496bc8=window['parseInt'](_0xeac72d['substring'](_0xeac72d['length']-0x8),0x10),_0x588f56={..._0x4973a0,'jti':_0xeac72d['substring'](0x0,_0xeac72d['length']-0x8)};return delete _0x588f56['vc'],_0xe9beac(_0x588f56)==_0x496bc8;}}}async function _0x36d523(){let _0xd435b5=!0x0;try{const [_0x5f3599,_0x114e53,_0x3deaca]=_0x393e5a['split']('.');return _0x3c4728(_0x5f3599),await _0x294841(_0x5f3599,_0x114e53,_0x3deaca),_0xd435b5;}catch{return!0x1;}function _0x3c4728(_0x3d013c){const _0xeb5a4c=_0xa0e00f(_0x3d013c);_0xeb5a4c&&'ES256'==_0xeb5a4c['alg']||(_0xd435b5=!0x1);}async function _0x294841(_0x554d2e,_0xac75b1,_0x32ce43){const _0x58321f=window['Uint8Array']['from'](_0x4604cd(_0x32ce43),_0x5058ca=>_0x5058ca['charCodeAt'](0x0)),_0x39bd26=new window['TextEncoder']()['encode'](_0x554d2e+'.'+_0xac75b1),_0x148116=window['crypto']['subtle'];if(!_0x148116)return;const _0x397a13=await _0x148116['importKey']('jwk',_0x515875,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x148116['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x397a13,_0x58321f,_0x39bd26)||(_0xd435b5=!0x1);}}function _0xa0e00f(_0x3b10a3){return _0x3b10a3['startsWith']('ey')?JSON['parse'](_0x4604cd(_0x3b10a3)):null;}function _0x4604cd(_0x22900d){return window['atob'](_0x22900d['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0xe9beac(_0x470caa){let _0x1fc4d5=0x1505;function _0x53257c(_0x6b2b12){for(let _0x631bb1=0x0;_0x631bb1<_0x6b2b12['length'];_0x631bb1++){const _0x2d5749=_0x6b2b12['charCodeAt'](_0x631bb1);_0x1fc4d5=(_0x1fc4d5<<0x5)+_0x1fc4d5+_0x2d5749,_0x1fc4d5&=_0x1fc4d5;}}function _0x22eb15(_0xceb4c1){Array['isArray'](_0xceb4c1)?_0xceb4c1['forEach'](_0x22eb15):_0xceb4c1&&'object'==typeof _0xceb4c1?Object['entries'](_0xceb4c1)['sort']()['forEach'](([_0x2d3e1a,_0xb85217])=>{_0x53257c(_0x2d3e1a),_0x22eb15(_0xb85217);}):_0x53257c(window['String'](_0xceb4c1));}return _0x22eb15(_0x470caa),_0x1fc4d5>>>0x0;}function _0x516957(_0x5f2bff){return _0x5f2bff['toString'](0x10)['padStart'](0x8,'0');}function _0x542c0b(_0x565a5e){return _0x565a5e['split']('')['reverse']()['join']('');}function _0xa48284(_0x1352bb){return _0x4841b4['plugins']['has'](_0x1352bb);}function _0x2dce44(_0x5599d4){return _0x4841b4['plugins']['get'](_0x5599d4);}function _0x186f97(){}_0x4ed7af(await _0x255bdf());}_0x25d469(_0x7a56d0['editor']);}(this);}set adapter(_0x1757b5){if(this['_adapter'])throw new _0x2e8152('track-changes-adapter-already-set',this);this['_adapter']=_0x1757b5;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x5da4a8=!0x1,toJSON:_0x57443b=!0x1}={}){const _0x5cb040=[];for(const _0x4ad6f0 of this['_suggestions']['values']())_0x5da4a8&&!_0x4ad6f0['isInContent']||_0x5cb040['push'](_0x4ad6f0);return _0x57443b?_0x5cb040['map'](_0x4d3647=>_0x4d3647['toJSON']()):_0x5cb040;}getSuggestion(_0x2b21ea){const _0x2b7db5=this['_suggestions']['get'](_0x2b21ea);if(!_0x2b7db5)throw new _0x2e8152('track-changes-suggestion-not-found',this);return _0x2b7db5;}hasSuggestion(_0x3824b2){return this['_suggestions']['has'](_0x3824b2);}addSuggestionData(_0x584a7a){const {authorId:_0x44862b,id:_0x89a33,originalSuggestionId:_0x152a28,attributes:_0x5a2c44}=_0x584a7a,[_0x1959a8,_0x22c813]=_0x584a7a['type']['split'](':'),_0x1445b2=this['_suggestions']['get'](_0x89a33)||this['_createSuggestion'](_0x1959a8,_0x22c813,_0x89a33,_0x44862b,_0x5a2c44,_0x152a28);if(this['_addThreadToSuggestion'](_0x1445b2),this['_checkSuggestionCorrectness'](_0x1445b2,_0x1959a8,_0x22c813||null,_0x44862b),_0x1445b2['createdAt']=_0x584a7a['createdAt'],_0x1445b2['_isDataLoaded']=!0x0,_0x5a2c44&&_0x5a2c44['@external']){const _0x451815=_0x5a2c44['@external'],_0x1c8055=this['_getExternalAuthor'](_0x451815['authorName']);_0x1445b2['authoredAt']=_0x451815['createdAt'],_0x1445b2['author']=_0x1c8055;}else _0x1445b2['authoredAt']=_0x584a7a['createdAt'];switch(_0x584a7a['data']&&(_0x1445b2['data']=_0x584a7a['data']),_0x584a7a['attributes']&&(_0x1445b2['attributes']=_0x584a7a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1445b2['_saved']=!0x0),this['_suggestionState']['get'](_0x1445b2)){case'notReady':this['_suggestionState']['set'](_0x1445b2,'dataReady');break;case'markerReady':_0x1445b2['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1445b2])),this['_refreshSuggestionsChain'](new Set([_0x1445b2])),this['_suggestionState']['set'](_0x1445b2,'ready'),this['fire']('suggestionLoaded',_0x1445b2)):this['_suggestionState']['set'](_0x1445b2,'removed');}return _0x1445b2;}acceptSuggestion(_0x485ca8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x158fac of _0x485ca8['getAllAdjacentSuggestions']())_0x158fac['accept']();});});}discardSuggestion(_0x1379db){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2bf8d8 of _0x1379db['getAllAdjacentSuggestions']())_0x2bf8d8['discard']();});});}['enableCommand'](_0x45b085,_0x47f831){const _0x2e2228=this['editor']['commands']['get'](_0x45b085);if(!_0x2e2228)throw new _0x2e8152('track-changes-command-not-found',this,{'commandName':_0x45b085});if(this['_enabledCommands']['has'](_0x2e2228))throw new _0x2e8152('track-changes-enable-command-twice',this,{'commandName':_0x45b085});this['_enabledCommands']['add'](_0x2e2228),_0x47f831&&_0x2e2228['on']('execute',(_0x116f70,_0x325802)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x325802['length']>0x0&&_0x325802[_0x325802['length']-0x1]&&_0x325802[_0x325802['length']-0x1]['forceDefaultExecution']?_0x325802['pop']():(_0x116f70['return']=_0x47f831((..._0x3b436e)=>_0x2e2228['execute'](..._0x3b436e,{'forceDefaultExecution':!0x0}),..._0x325802),_0x116f70['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x10df1e){let _0x2e1689,_0x1cc375;const _0x56be31=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2e1689=_0x10df1e();}catch(_0x1d5234){_0x1cc375=_0x1d5234;}return _0x56be31||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1cc375&&_0x2e8152['rethrowUnexpectedError'](_0x1cc375,this),_0x2e1689;}markInsertion(_0x273ea6,_0x4c8773=null,_0x16e575={}){if(_0x273ea6['isCollapsed'])return null;const _0x1381a4=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x16e575['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5a10c7,meta:_0x5048d8}of this['_findSuggestions'](_0x273ea6,'insertion'))if(_0x5048d8['isOwn']){if(!_0x5048d8['isNextTo']){if(_0x5048d8['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0x5a10c7,_0x16e575))continue;return _0x5a10c7;}if(pn(_0x5a10c7,_0x16e575))return _0x5a10c7;this['_breakSuggestionMarker'](_0x5a10c7,_0x273ea6['start'],_0x273ea6['end']);break;}if(_0x4c8773==_0x5a10c7['subType']&&pn(_0x5a10c7,_0x16e575)){const _0x17b81d=_0x5a10c7['getFirstRange']();return _0x17b81d['start']['isEqual'](_0x273ea6['end'])?this['_setSuggestionRange'](_0x5a10c7,this['_model']['createRange'](_0x273ea6['start'],_0x17b81d['end'])):this['_setSuggestionRange'](_0x5a10c7,this['_model']['createRange'](_0x17b81d['start'],_0x273ea6['end'])),_0x5a10c7;}}const _0x59228d=_0x592457(),_0x11099c=_0x1381a4['id'],_0x262b63=_0x4c8773?'insertion:'+_0x4c8773:'insertion',_0x32c471=this['_setSuggestionData']({'id':_0x59228d,'type':_0x262b63,'createdAt':new Date(),'authorId':_0x11099c,'attributes':_0x16e575});return this['_addSuggestionMarker'](_0x262b63,_0x59228d,_0x11099c,_0x273ea6),_0x32c471;}markMultiRangeInsertion(_0x5e007e,_0x483965='multi',_0x45bd44={}){const _0x1db9ab=this['editor']['plugins']['get']('Users')['me'],_0x5451cd=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x483965,'join');this['_trackingSessionId']&&(_0x45bd44['trackingSessionId']=this['_trackingSessionId']);for(const _0x325054 of this['getSuggestions']())if(_0x325054['author']['id']==_0x1db9ab['id']&&'insertion'==_0x325054['type']&&_0x325054['subType']==_0x483965&&pn(_0x325054,_0x45bd44)&&(_0x5451cd(_0x325054['getRanges'](),_0x5e007e)||_0x5451cd(_0x5e007e,_0x325054['getRanges']()))){for(const _0x5cc1a9 of _0x5e007e)_0x325054['addRange'](_0x5cc1a9);return _0x325054;}for(const {suggestion:_0x12072a,meta:_0x1f1134}of this['_findSuggestions'](_0x5e007e,'insertion')){if(!_0x1f1134['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1f1134['containsRangeInObject'])continue;if(!pn(_0x12072a,_0x45bd44))continue;let _0x1d30f0=!0x0;for(const _0x189a45 of _0x12072a['getRanges']())for(const _0x218f2f of _0x5e007e)if(!_0x189a45['containsRange'](_0x218f2f)){_0x1d30f0=!0x1;break;}if(_0x1d30f0)return _0x12072a;}const _0x2f8791=_0x592457(),_0x551088=_0x1db9ab['id'],_0x11734b='insertion:'+_0x483965,_0x2b0b05=this['_setSuggestionData']({'id':_0x2f8791,'type':_0x11734b,'createdAt':new Date(),'authorId':_0x551088,'attributes':_0x45bd44});for(const _0x8e925a of _0x5e007e)this['_addSuggestionMarker'](_0x11734b,_0x2f8791,_0x551088,_0x8e925a,St['getMultiRangeId']());return _0x2b0b05;}markInlineFormat(_0x566c32,_0x301cfd,_0x5f3d8b=null,_0x5ef881={}){if(_0x5f3d8b=_0x5f3d8b||dn(_0x301cfd),_0x566c32['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x5ef881['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x580e52=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5f3d8b,'accept');return this['forceDefaultExecution'](()=>_0x580e52([_0x566c32],_0x301cfd,_0x5ef881)),null;}const _0x228ba7=this['editor']['plugins']['get']('Users')['me'],_0x487f95=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3888a6,meta:_0x236a13}of this['_findSuggestions'](_0x566c32,'insertion'))_0x236a13['isOwn']&&!_0x236a13['isInsideObject']&&_0x487f95['push'](..._0x3888a6['getRanges']());}const _0x1a6c84=function(_0x214713,_0x3ef342){const _0x335f73=[];for(const _0x10caeb of _0x3ef342){const _0x363986=_0x214713['getIntersection'](_0x10caeb);_0x363986&&_0x335f73['push'](_0x363986);}return _0x335f73;}(_0x566c32,_0x487f95),_0x591310=function(_0x4bfd91,_0xbb20e8){const _0x59feee=[_0x4bfd91];for(const _0x5dd5c1 of _0xbb20e8){let _0xe1b33e=0x0;for(;_0xe1b33e<_0x59feee['length'];){const _0x4da87b=_0x59feee[_0xe1b33e]['getDifference'](_0x5dd5c1);_0x59feee['splice'](_0xe1b33e,0x1,..._0x4da87b),_0xe1b33e+=_0x4da87b['length'];}}return _0x59feee;}(_0x566c32,_0x487f95);_0x1a6c84['length']&&this['_model']['change'](()=>{for(const _0x5f5884 of _0x1a6c84){const _0x2fd66c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5f3d8b,'accept');this['forceDefaultExecution'](()=>_0x2fd66c([_0x5f5884],_0x301cfd,_0x5ef881));}});for(const _0x143342 of _0x591310){let _0x2c1eac=null,_0xd83d1d=_0x143342['start'],_0x5999e0=_0x143342['end'];for(const {suggestion:_0x318d8c,meta:_0x32ea52}of this['_findSuggestions'](_0x143342,'formatInline')){if(!_0x32ea52['isOwn'])continue;if(_0x318d8c['subType']!=_0x5f3d8b)continue;if(!pn(_0x318d8c,_0x5ef881))continue;const _0x38f0e7=_0x318d8c['getFirstRange']();if(_0x38f0e7['containsRange'](_0x143342,!0x0))return null;_0xd83d1d=_0xd83d1d['isBefore'](_0x38f0e7['start'])?_0xd83d1d:_0x38f0e7['start'],_0x5999e0=_0x5999e0['isAfter'](_0x38f0e7['end'])?_0x5999e0:_0x38f0e7['end'],_0x2c1eac?_0x38f0e7['start']['isBefore'](_0x2c1eac['getFirstRange']()['start'])?(_0x2c1eac['removeMarkers'](),_0x2c1eac=_0x318d8c):_0x318d8c['removeMarkers']():_0x2c1eac=_0x318d8c;}const _0x56e610=this['_model']['createRange'](_0xd83d1d,_0x5999e0);if(_0x2c1eac)this['_setSuggestionRange'](_0x2c1eac,_0x56e610);else{const _0x36ffe9=_0x592457(),_0x1a62cc=_0x228ba7['id'];this['_setSuggestionData']({'id':_0x36ffe9,'type':'formatInline:'+_0x5f3d8b,'data':_0x301cfd,'createdAt':new Date(),'authorId':_0x1a62cc,'attributes':_0x5ef881}),this['_addSuggestionMarker']('formatInline:'+_0x5f3d8b,_0x36ffe9,_0x1a62cc,_0x56e610);}}return null;}markBlockFormat(_0x130c4c,_0x10170c,_0x40f6f7=[],_0x9376f8=null,_0x54ca62={}){_0x10170c['formatGroupId']||(_0x10170c['formatGroupId']=_0x10170c['commandName']),_0x10170c['multipleBlocks']=_0x130c4c['is']('range'),_0x9376f8=_0x9376f8||dn(_0x10170c);const _0x35369e=_0x40f6f7['map'](_0x1705e1=>En(_0x1705e1,this['_model'])),_0x5d86d7=_0x130c4c['is']('range')?_0x130c4c:En(_0x130c4c,this['_model']);if(this['_trackingSessionId']&&(_0x54ca62['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5ce774=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9376f8,'accept');return this['forceDefaultExecution'](()=>_0x5ce774([_0x5d86d7],_0x10170c,_0x54ca62)),null;}_0x35369e['push'](_0x5d86d7);let _0xd7b32b=!0x0;for(const _0x497dda of _0x35369e)if(!this['_rangeIsInLocalUserInsertion'](_0x497dda)){_0xd7b32b=!0x1;break;}if(_0xd7b32b&&'always'!==this['_trackFormatChanges']){const _0x5029df=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9376f8,'accept');return this['forceDefaultExecution'](()=>_0x5029df([_0x5d86d7],_0x10170c,_0x54ca62)),null;}let _0xd96e49=null,_0x2e855f=_0x5d86d7['start'],_0x7f646d=_0x5d86d7['end'];for(const {suggestion:_0x1fba2b,meta:_0x2b89ca}of this['_findSuggestions'](_0x5d86d7,'formatBlock')){if(!_0x2b89ca['isOwn'])continue;if(_0x2b89ca['isNextTo']||_0x2b89ca['containsRangeInObject']||_0x2b89ca['isInsideObject'])continue;if(_0x1fba2b['data']['formatGroupId']!=_0x10170c['formatGroupId'])continue;if(!pn(_0x1fba2b,_0x54ca62))continue;const _0x52eb0b=_0x1fba2b['getFirstRange']();if(_0x1fba2b['subType']==_0x9376f8){if(_0x52eb0b['containsRange'](_0x5d86d7,!0x0))return null;_0x2e855f=_0x2e855f['isBefore'](_0x52eb0b['start'])?_0x2e855f:_0x52eb0b['start'],_0x7f646d=_0x7f646d['isAfter'](_0x52eb0b['end'])?_0x7f646d:_0x52eb0b['end'],_0xd96e49?_0x52eb0b['start']['isBefore'](_0xd96e49['getFirstRange']()['start'])?(_0xd96e49['removeMarkers'](),_0xd96e49=_0x1fba2b):_0x1fba2b['removeMarkers']():_0xd96e49=_0x1fba2b;}else{const _0x1abeb8=_0x5d86d7['getIntersection'](_0x52eb0b);this['_cutOutSuggestionMarker'](_0x1fba2b,_0x1abeb8);}}const _0x4a978f=this['editor']['plugins']['get']('Users')['me'],_0x76c5fa=_0x592457(),_0x475c22=_0x4a978f['id'];if(_0xd96e49)return this['_setSuggestionRange'](_0xd96e49,this['_model']['createRange'](_0x2e855f,_0x7f646d)),_0xd96e49;{const _0x2c1a1a=this['_setSuggestionData']({'id':_0x76c5fa,'type':'formatBlock:'+_0x9376f8,'data':_0x10170c,'createdAt':new Date(),'authorId':_0x475c22,'attributes':_0x54ca62});return this['_addSuggestionMarker']('formatBlock:'+_0x9376f8,_0x76c5fa,_0x475c22,this['_model']['createRange'](_0x2e855f,_0x7f646d)),_0x2c1a1a;}}markMultiRangeBlockFormat(_0x4bca6f,_0x2a8afd,_0x370a63=[],_0x486073=null,_0x2601e8={}){_0x2a8afd['formatGroupId']||(_0x2a8afd['formatGroupId']=_0x2a8afd['commandName']);const _0x3ccdce=_0x4bca6f[0x0];_0x2a8afd['multipleBlocks']=_0x3ccdce['is']('range'),_0x486073=_0x486073||dn(_0x2a8afd);const _0x1451a9=_0x370a63['map'](_0x248c0f=>En(_0x248c0f,this['_model'])),_0x54ec25=_0x3ccdce['is']('range')?_0x4bca6f:_0x4bca6f['map'](_0x4a6684=>En(_0x4a6684,this['_model']));if(this['_trackingSessionId']&&(_0x2601e8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x572f08=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x486073,'accept');return this['forceDefaultExecution'](()=>_0x572f08(_0x54ec25,_0x2a8afd,_0x2601e8)),null;}_0x1451a9['push'](..._0x54ec25);let _0x139eb9=!0x0;for(const _0xea202e of _0x1451a9)if(!this['_rangeIsInLocalUserInsertion'](_0xea202e)){_0x139eb9=!0x1;break;}if(_0x139eb9&&'always'!==this['_trackFormatChanges']){const _0x248571=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x486073,'accept');return this['forceDefaultExecution'](()=>_0x248571(_0x54ec25,_0x2a8afd,_0x2601e8)),null;}const _0x59c6c2=this['editor']['plugins']['get']('Users')['me'];for(const _0x4e94f1 of this['getSuggestions']()){const _0x366df3=_0x4e94f1['data'];if(_0x4e94f1['author']['id']!=_0x59c6c2['id'])continue;if('formatBlock'!=_0x4e94f1['type']||_0x366df3['formatGroupId']!=_0x2a8afd['formatGroupId'])continue;if(!pn(_0x4e94f1,_0x2601e8))continue;const _0x32d16e=_0x4e94f1['subType']==_0x486073;for(let _0x5e6f99=0x0;_0x5e6f99<_0x54ec25['length'];_0x5e6f99++){const _0x1feea1=_0x54ec25[_0x5e6f99];for(const _0x1ca5d4 of _0x4e94f1['getMarkers']()){const _0x10a7da=_0x1ca5d4['getRange']();if(_0x1feea1['isEqual'](_0x10a7da)){_0x32d16e?(_0x54ec25['splice'](_0x5e6f99,0x1),_0x5e6f99--):_0x4e94f1['removeMarker'](_0x1ca5d4['name']);break;}}}}if(0x0==_0x54ec25['length'])return null;const _0x27b850=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x486073,'join');for(const _0x4f3eeb of this['getSuggestions']()){const _0x23ec0c=_0x4f3eeb['data'];if(_0x4f3eeb['author']['id']==_0x59c6c2['id']&&('formatBlock'==_0x4f3eeb['type']&&_0x23ec0c['formatGroupId']==_0x2a8afd['formatGroupId']&&_0x4f3eeb['subType']==_0x486073&&pn(_0x4f3eeb,_0x2601e8)&&(_0x27b850(_0x4f3eeb['getRanges'](),_0x54ec25)||_0x27b850(_0x54ec25,_0x4f3eeb['getRanges']())))){for(const _0x21b9bc of _0x54ec25)_0x4f3eeb['addRange'](_0x21b9bc);return _0x4f3eeb;}}const _0x219345=_0x592457(),_0x2d1054=_0x59c6c2['id'],_0x1a1f63='formatBlock:'+_0x486073,_0x1339b3=this['_setSuggestionData']({'id':_0x219345,'type':_0x1a1f63,'data':_0x2a8afd,'createdAt':new Date(),'authorId':_0x2d1054,'attributes':_0x2601e8});for(const _0x2c86b5 of _0x54ec25)this['_addSuggestionMarker'](_0x1a1f63,_0x219345,_0x2d1054,_0x2c86b5,St['getMultiRangeId']());return _0x1339b3;}markDeletion(_0x442c39,_0x211317=null,_0x5d48dc={}){if(_0x442c39['isCollapsed'])return null;const _0x2f2eb1=this['editor']['plugins']['get']('Users')['me'],_0x104b9d=new rt(_0x442c39['start'],_0x442c39['end']);this['_trackingSessionId']&&(_0x5d48dc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3789ab,meta:_0x23fbb5}of this['_findSuggestions'](_0x104b9d,'insertion'))if(_0x23fbb5['isOwn']&&!_0x23fbb5['isNextTo']){if(_0x3789ab['isMultiRange']){const _0x4ac287=_0x3789ab['getRanges']()['filter'](_0x4411f2=>'$graveyard'!=_0x4411f2['root']['rootName']);if(_0x4ac287['every'](_0x394eae=>_0x104b9d['containsRange'](_0x394eae,!0x0))&&_0x3789ab['discard'](),_0x4ac287['some'](_0x509b1b=>_0x509b1b['containsRange'](_0x104b9d,!0x0))){const _0xc5a37c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x211317,'accept');return this['forceDefaultExecution'](()=>_0xc5a37c([_0x104b9d],null,_0x5d48dc)),null;}}else{const _0x56f743=_0x104b9d['getIntersection'](_0x3789ab['getFirstRange']());null!==_0x56f743&&_0x3789ab['_onDiscard']([_0x56f743],null,_0x5d48dc);}}if(_0x104b9d['detach'](),_0x104b9d['isCollapsed']||'$graveyard'==_0x104b9d['root']['rootName'])return null;let _0x4c1437=null,_0x3bab32=_0x104b9d['start'],_0xccb76=_0x104b9d['end'];const _0x3c7b3a=this['_findSuggestions'](_0x104b9d,'deletion');for(const {suggestion:_0x4a7057,meta:_0x16bde4}of _0x3c7b3a){const _0x2257af=this['_model']['createRange'](_0x3bab32,_0xccb76);if(_0x16bde4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x16bde4['containsRangeInObject']&&!_0x16bde4['isInsideObject'])){if(_0x4a7057['isMultiRange']){if(!pn(_0x4a7057,_0x5d48dc))continue;let _0x3a9b5e=!0x0;for(const _0x4f9eea of _0x4a7057['getRanges']()){if(_0x4f9eea['containsRange'](_0x2257af,!0x0))return _0x4a7057;_0x2257af['containsRange'](_0x4f9eea)||(_0x3a9b5e=!0x1);}_0x3a9b5e&&_0x4a7057['discard']();}else{const _0x12748b=_0x4a7057['getFirstRange']();if(_0x12748b['containsRange'](_0x2257af,!0x0))return _0x4a7057;if(!pn(_0x4a7057,_0x5d48dc)){_0x2257af['containsRange'](_0x12748b)?_0x4a7057['removeMarkers']():_0x12748b['containsPosition'](_0x3bab32)?_0x3bab32=_0x12748b['end']:_0x12748b['containsPosition'](_0xccb76)&&(_0xccb76=_0x12748b['start']);continue;}_0x3bab32=_0x3bab32['isBefore'](_0x12748b['start'])?_0x3bab32:_0x12748b['start'],_0xccb76=_0xccb76['isAfter'](_0x12748b['end'])?_0xccb76:_0x12748b['end'],_0x5d48dc=Object['assign']({},_0x4a7057['attributes']),_0x4c1437?_0x12748b['start']['isBefore'](_0x4c1437['getFirstRange']()['start'])?(_0x4c1437['removeMarkers'](),_0x4c1437=_0x4a7057):_0x4a7057['removeMarkers']():_0x4c1437=_0x4a7057;}}}if(_0x4c1437)return this['_setSuggestionRange'](_0x4c1437,this['_model']['createRange'](_0x3bab32,_0xccb76)),_0x4c1437;{const _0x2079d6=_0x592457(),_0xa02bbc=this['_model']['createRange'](_0x3bab32,_0xccb76),_0x5a5623=_0x2f2eb1['id'],_0x374eeb=_0x211317?'deletion:'+_0x211317:'deletion',_0x256d11=this['_setSuggestionData']({'id':_0x2079d6,'type':_0x374eeb,'createdAt':new Date(),'authorId':_0x5a5623,'attributes':_0x5d48dc});return this['_addSuggestionMarker'](_0x374eeb,_0x2079d6,_0x5a5623,_0xa02bbc),_0x256d11;}}markMultiRangeDeletion(_0x2ea222,_0x5a19cf='multi',_0x5e4317={}){const _0x206e6b=this['editor']['plugins']['get']('Users')['me'],_0x4a1879=_0x2ea222['map'](_0x540b24=>new rt(_0x540b24['start'],_0x540b24['end'])),_0x5a41e5=new Set();this['_trackingSessionId']&&(_0x5e4317['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3ba270,meta:_0x3214b4}of this['_findSuggestions'](_0x4a1879,'insertion'))_0x3214b4['isOwn']&&!_0x3214b4['isNextTo']&&_0x5a41e5['add'](_0x3ba270);for(const _0x223f8f of _0x5a41e5)if(_0x223f8f['isMultiRange']){const _0x6198fe=_0x223f8f['getRanges']();if(_0x223f8f['attributes']&&_0x223f8f['attributes']['skipNestingCheck']||_0x6198fe['every'](_0x38a9cd=>_0x4a1879['some'](_0x406343=>_0x406343['containsRange'](_0x38a9cd,!0x0)))&&_0x223f8f['discard'](),_0x4a1879['every'](_0x4340ec=>_0x6198fe['some'](_0x2bbebc=>_0x2bbebc['containsRange'](_0x4340ec,!0x0)))){const _0x5c4ca1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5a19cf,'accept');return this['forceDefaultExecution'](()=>_0x5c4ca1(_0x2ea222,null,_0x5e4317)),null;}}else{const _0x1b4886=_0x223f8f['getFirstRange']();if(_0x4a1879['some'](_0x42b532=>_0x42b532['containsRange'](_0x1b4886,!0x0))&&_0x223f8f['discard'](),_0x4a1879['every'](_0x2fed61=>_0x1b4886['containsRange'](_0x2fed61,!0x0))){const _0x3c84d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5a19cf,'accept');return this['forceDefaultExecution'](()=>_0x3c84d6(_0x4a1879,null,_0x5e4317)),null;}}const _0x52fb91=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5a19cf,'join');let _0x3a3726=null;for(const _0x5bce02 of this['getSuggestions']())if(_0x5bce02['author']['id']==_0x206e6b['id']&&_0x5bce02['isInContent']&&'deletion'==_0x5bce02['type']&&_0x5bce02['subType']==_0x5a19cf&&pn(_0x5bce02,_0x5e4317)&&(_0x52fb91(_0x5bce02['getRanges'](),_0x4a1879)||_0x52fb91(_0x4a1879,_0x5bce02['getRanges']()))){if(_0x3a3726){if(_0x5bce02['commentThread']&&_0x5bce02['commentThread']['length'])continue;for(const _0x53cf0f of _0x5bce02['getRanges']())_0x3a3726['isIntersectingWithRange'](_0x53cf0f)||_0x3a3726['addRange'](_0x53cf0f);_0x5bce02['removeMarkers']();}else{_0x3a3726=_0x5bce02;for(const _0x3c9e99 of _0x4a1879)_0x5bce02['isIntersectingWithRange'](_0x3c9e99)||_0x5bce02['addRange'](_0x3c9e99);}}if(_0x3a3726)return _0x3a3726;_0x5a41e5['clear']();for(const {suggestion:_0x51fe07,meta:_0x679a81}of this['_findSuggestions'](_0x4a1879,'deletion'))_0x679a81['isOwn']&&(this['_mergeNestedSuggestions']||!_0x679a81['containsRangeInObject']&&!_0x679a81['isInsideObject'])&&pn(_0x51fe07,_0x5e4317)&&_0x5a41e5['add'](_0x51fe07);for(const _0x1de9bd of _0x5a41e5){const _0x1f6d54=_0x1de9bd['getRanges']();if((!_0x5e4317||!_0x5e4317['skipNestingCheck'])&&_0x4a1879['every'](_0xa0d7df=>_0x1f6d54['some'](_0xcb31dc=>_0xcb31dc['containsRange'](_0xa0d7df,!0x0))))return _0x1de9bd;_0x1de9bd['attributes']&&_0x1de9bd['attributes']['skipNestingCheck']||_0x1f6d54['every'](_0x526d46=>_0x4a1879['some'](_0x476140=>_0x476140['containsRange'](_0x526d46,!0x0)))&&_0x1de9bd['discard']();}const _0x1b02cf=_0x592457(),_0x27dfcd=_0x206e6b['id'],_0xf3b1c9='deletion:'+_0x5a19cf,_0x51310f=this['_setSuggestionData']({'id':_0x1b02cf,'type':_0xf3b1c9,'createdAt':new Date(),'authorId':_0x27dfcd,'attributes':_0x5e4317});for(const _0x62003e of _0x4a1879)_0x62003e['detach'](),_0x62003e['isCollapsed']||'$graveyard'==_0x62003e['root']['rootName']||this['_addSuggestionMarker'](_0xf3b1c9,_0x1b02cf,_0x27dfcd,_0x62003e,St['getMultiRangeId']());return _0x51310f;}markAttributeChange(_0x229ea5,_0x50e4fd,_0x2f4689,_0x45e1a5,_0x13f215){if(_0x229ea5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x300241=this['editor']['plugins']['get']('Users')['me']['id'],_0x234a3d=Array['from'](this['_suggestions']['values']())['filter'](_0x33a4a0=>'attribute'==_0x33a4a0['type']&&_0x33a4a0['data']['key']==_0x50e4fd&&_0x33a4a0['isIntersectingWithRange'](_0x229ea5));if(this['_trackingSessionId']&&(_0x13f215['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1f242c=this['_findSuggestions'](_0x229ea5,'insertion')['filter'](({meta:_0x58363a})=>_0x58363a['isOwn']&&!_0x58363a['isInsideObject']&&!_0x58363a['isNextTo'])['map'](({suggestion:_0x183576})=>_0x183576);_0x234a3d['unshift'](..._0x1f242c);}const _0x2ffc72=new Map([[_0x229ea5,_0x2f4689]]);for(const _0x339b59 of _0x234a3d){const _0x427964='attribute'==_0x339b59['type']?_0x339b59['data']['oldValue']:void 0x0,_0x4c1e05=_0x339b59['getFirstRange'](),_0xaeb4dd=Array['from'](_0x2ffc72['keys']())['find'](_0x130e03=>_0x130e03['isIntersecting'](_0x4c1e05));if(!_0xaeb4dd)continue;const _0x1f3749=_0xaeb4dd['getDifference'](_0x4c1e05);this['_suggestionsConversion']['isBlockAttribute'](_0x50e4fd)&&'insertion'==_0x339b59['type']&&0x0!=_0x1f3749['length']||(_0x2ffc72['delete'](_0xaeb4dd),_0x1f3749['forEach'](_0x5c1a2e=>{_0x2ffc72['set'](_0x5c1a2e,_0x2f4689);}),'insertion'!=_0x339b59['type']&&_0x427964!=_0x45e1a5&&_0x2ffc72['set'](_0xaeb4dd['getIntersection'](_0x4c1e05),_0x427964));}const _0x3ba049=[];for(const [_0x28075e,_0x4ddf83]of _0x2ffc72){const _0x3cc479=_0x592457(),_0xd984d7={'key':_0x50e4fd,'oldValue':_0x4ddf83,'newValue':_0x45e1a5};_0x50e4fd['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':_0x50e4fd});const _0x516583=('attribute:'+_0x50e4fd+'|'+dn({'newValue':_0x45e1a5}))['substring'](0x0,0x3c),_0x356cde=this['_setSuggestionData']({'id':_0x3cc479,'type':_0x516583,'data':_0xd984d7,'createdAt':new Date(),'authorId':_0x300241,'attributes':_0x13f215});_0x3ba049['push'](_0x356cde),this['_addSuggestionMarker'](_0x516583,_0x3cc479,_0x300241,_0x28075e);}return _0x3ba049;}enableDefaultAttributesIntegration(_0x4a683a){this['enableCommand'](_0x4a683a,(_0xcef5b0,..._0x593e79)=>{this['recordAttributeChanges'](()=>{_0xcef5b0(..._0x593e79);});});}startTrackingSession(_0x5b4c83){return this['_trackingSessionId']=void 0x0!==_0x5b4c83?_0x5b4c83:_0x592457(),this['_trackingSessionId'];}_getAttributeKey(_0x56920e){return'attribute'==_0x56920e['type']?In(_0x56920e['subType']):null;}_applyOperationsAsSuggestions(_0xc7502e){if(0x0==_0xc7502e['length'])return;const _0x1ea39d=this['editor'],_0x3e40f9=[],_0x11d617=_0x16829b=>{const _0x4f0015=_0x16829b['_aiSource'];return _0x4f0015?{'@ai':{'type':_0x4f0015}}:{};},_0x98c92f=(_0x504e2c,_0x171990,_0x220a9e)=>{for(let _0x53183b=_0x171990;_0x53183b<_0x504e2c['operations']['length'];_0x53183b++)_0x504e2c['operations'][_0x53183b]['_aiSource']=_0x220a9e;};_0x1ea39d['model']['change'](_0x20e224=>{for(let _0x1fcebb=0x0;_0x1fcebb<_0xc7502e['length'];_0x1fcebb++){const _0x25b56f=_0xc7502e[_0x1fcebb],_0x2bd2cc=_0x25b56f['_aiSource'],_0x127eca=_0x20e224['batch']['operations']['length'];if(_0x25b56f['baseVersion']=_0x1ea39d['model']['document']['version'],_0x25b56f['isDocumentOperation']=!0x0,!_0x1ee3f4(_0x25b56f)){if(rn(_0x25b56f)){const _0x2f4aeb=_0x2d22de(_0x25b56f['newRange'],_0x1ea39d['model']);_0x3e40f9['unshift']({'range':rt['fromRange'](_0x2f4aeb),'opAttributes':_0x11d617(_0x25b56f),'aiSource':_0x2bd2cc});}else{switch(_0x25b56f['type']){case'rename':{const _0x5c6cbe=_0x25b56f['oldName'],_0x217331=_0x25b56f['newName'];if(_0x5c6cbe==_0x217331)break;_0x20e224['batch']['addOperation'](_0x25b56f),_0x1ea39d['model']['applyOperation'](_0x25b56f);const _0x5b4875='$elementName',_0x2d4897=_0x25b56f['position'],_0x44d320=_0x1ea39d['model']['createRange'](_0x2d4897,_0x1ea39d['model']['createPositionAt'](_0x2d4897['nodeAfter'],'end'));this['markAttributeChange'](_0x44d320,_0x5b4875,_0x5c6cbe,_0x217331,{..._0x11d617(_0x25b56f),'groupId':_0x592457()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x5b4f4b=_0x25b56f['oldValue'],_0xcf313=_0x25b56f['newValue'];if(_0x5b4f4b==_0xcf313)break;_0x20e224['batch']['addOperation'](_0x25b56f),_0x1ea39d['model']['applyOperation'](_0x25b56f);const _0x32fb9e=_0x25b56f['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x32fb9e))break;const _0x3d35fb=_0x2d22de(_0x25b56f['range'],_0x1ea39d['model']);this['markAttributeChange'](_0x3d35fb,_0x32fb9e,_0x5b4f4b,_0xcf313,{..._0x11d617(_0x25b56f),'groupId':_0x592457()});break;}case'insert':{if(_0x20e224['batch']['addOperation'](_0x25b56f),_0x1ea39d['model']['applyOperation'](_0x25b56f),_0xc7502e[_0x1fcebb+0x1]&&'move'==_0xc7502e[_0x1fcebb+0x1]['type'])break;const _0x45f26b=_0x25b56f['position'],_0x29aca1=_0x25b56f['howMany'],_0x35b143=_0x2d22de(_0x1ea39d['model']['createRange'](_0x45f26b,_0x45f26b['getShiftedBy'](_0x29aca1)),_0x1ea39d['model']);this['markInsertion'](_0x35b143,null,{..._0x11d617(_0x25b56f)});break;}case'split':{_0x20e224['batch']['addOperation'](_0x25b56f),_0x1ea39d['model']['applyOperation'](_0x25b56f);const _0x5c21df=_0x25b56f['splitPosition'],_0x5b31b6=_0x25b56f['moveTargetPosition'],_0x43f592=_0x1ea39d['model']['createRange'](_0x5c21df,_0x5b31b6);this['markInsertion'](_0x43f592,null,{..._0x11d617(_0x25b56f)});break;}case'move':case'remove':_0x20e224['batch']['addOperation'](_0x25b56f),_0x1ea39d['model']['applyOperation'](_0x25b56f);}_0x2bd2cc&&_0x98c92f(_0x20e224['batch'],_0x127eca,_0x2bd2cc);}}}for(const {range:_0x3982a7,opAttributes:_0x40bdbd,aiSource:_0xcea2d2}of _0x3e40f9){const _0x377cbd=_0x20e224['batch']['operations']['length'];_0x3982a7['detach'](),this['markDeletion'](_0x3982a7,null,{..._0x40bdbd}),_0xcea2d2&&_0x98c92f(_0x20e224['batch'],_0x377cbd,_0xcea2d2);}});}_setSuggestionRange(_0x4615de,_0x1d5289){const _0x4ec064=_0x4615de['getFirstMarker']();this['_model']['change'](_0x4ff880=>{_0x4ff880['updateMarker'](_0x4ec064,{'range':_0x1d5289});});}_addThreadToSuggestion(_0x5c3f3b){const _0x223bb8=_0x5c3f3b['id'],_0x2db407=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x223bb8)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2db407,'threadId':_0x223bb8,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x28674c=this['_commentsRepository']['getCommentThread'](_0x223bb8);_0x28674c['unbind']('isRemovable'),_0x28674c['isRemovable']=!0x1,_0x5c3f3b['commentThread']=_0x28674c;}_checkSuggestionCorrectness(_0x626c20,_0x27c643,_0x5c4af6,_0x282377){if(_0x626c20['type']!=_0x27c643||_0x626c20['subType']!=_0x5c4af6||_0x626c20['creator']['id']!=_0x282377)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2e8152('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x5dc410,_0x5ac40e){const _0x2f3ede=_0x5dc410['getFirstRange']();if(_0x5ac40e['isEqual'](_0x2f3ede))_0x5dc410['removeMarkers']();else{if(_0x2f3ede['containsRange'](_0x5ac40e)){const _0x2cea39=this['_model']['createPositionAt'](_0x5ac40e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5dc410,this['_model']['createRange'](_0x2f3ede['start'],_0x2cea39));const _0x2f13c6=_0x592457(),_0x3298ad=_0x5dc410['creator']['id'],_0x4bed2d=_0x5dc410['type']+':'+_0x5dc410['subType'];this['_setSuggestionData']({'id':_0x2f13c6,'type':_0x4bed2d,'createdAt':new Date(),'authorId':_0x3298ad,'data':_0x5dc410['data'],'attributes':_0x5dc410['attributes']});const _0x1fca07=this['_model']['createPositionAt'](_0x5ac40e['end']['parent'],'after'),_0x3ecf24=this['_model']['createRange'](_0x1fca07,_0x2f3ede['end']);this['_addSuggestionMarker'](_0x4bed2d,_0x2f13c6,_0x3298ad,_0x3ecf24);}else{if(_0x2f3ede['containsPosition'](_0x5ac40e['start'])){const _0x2a67a2=this['_model']['createPositionAt'](_0x5ac40e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5dc410,this['_model']['createRange'](_0x2f3ede['start'],_0x2a67a2));}else{const _0x1c825e=this['_model']['createPositionAt'](_0x5ac40e['end']['parent'],'after');this['_setSuggestionRange'](_0x5dc410,this['_model']['createRange'](_0x1c825e,_0x2f3ede['end']));}}}}_rangeIsInLocalUserInsertion(_0x46bf8b){for(const {suggestion:_0xd98993,meta:_0x557a90}of this['_findSuggestions'](_0x46bf8b,'insertion')){if(!_0x557a90['isOwn'])continue;const _0x58d032=_0xd98993['getRanges']();for(const _0x5540f5 of _0x58d032)if(!_0x46bf8b['getDifference'](_0x5540f5)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x52d45e){return this['editor']['plugins']['get']('Users')['getUser'](_0x52d45e);}_getExternalAuthor(_0x1ad413){const _0x39729f=this['editor']['plugins']['get']('Users'),_0x13aab7=_0x38de7e('external:'+_0x1ad413),_0x3955ad=_0x39729f['getUser'](_0x13aab7);return _0x3955ad||_0x39729f['addUser']({'id':_0x13aab7,'name':_0x1ad413});}_createSuggestion(_0x10e918,_0x462258,_0x211821,_0xedbed5,_0x4d598b,_0x3e732c){const _0x1dffa2=this['_getAuthorFromId'](_0xedbed5);if(!_0x1dffa2)throw new _0x2e8152('track-changes-user-not-found',this,{'authorId':_0xedbed5,'suggestionId':_0x211821});const _0x253335=this['_suggestionFactory']['buildSuggestion'](_0x10e918,_0x462258,_0x211821,_0x1dffa2,_0x4d598b,_0x13b00c=>{this['_updateSuggestionData'](_0x211821,{'attributes':_0x13b00c});const _0x4503c1=this['getSuggestion'](_0x211821);this['_joinWithAdjacentSuggestions'](new Set([_0x4503c1])),this['_refreshSuggestionsChain'](new Set([_0x4503c1]));},_0x3e732c);return this['listenTo'](_0x253335,'accept',()=>{this['_updateSuggestionData'](_0x211821,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x253335,'discard',()=>{this['_updateSuggestionData'](_0x211821,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x211821,_0x253335),this['_suggestionState']['set'](_0x253335,'notReady'),_0x253335;}_breakSuggestionMarker(_0xe8a1b,_0x4b3658,_0xa807b0){const _0x52a05a=_0xe8a1b['getFirstRange'](),_0x382d51=_0x52a05a['start'],_0x147878=_0x52a05a['end'];this['_setSuggestionRange'](_0xe8a1b,this['_model']['createRange'](_0x382d51,_0x4b3658));const _0x11f7d2=_0x592457(),_0x149265=_0xe8a1b['creator']['id'],_0x338f28=_0xe8a1b['type']+(_0xe8a1b['subType']?':'+_0xe8a1b['subType']:'');this['_setSuggestionData']({'id':_0x11f7d2,'type':_0x338f28,'createdAt':new Date(),'authorId':_0x149265,'originalSuggestionId':_0xe8a1b['_originalSuggestionId']||_0xe8a1b['id'],'attributes':_0xe8a1b['attributes'],'data':_0xe8a1b['data']});const _0x476614=this['_getAttributeKey'](_0xe8a1b);('formatBlock'==_0xe8a1b['type']||_0x476614&&this['_suggestionsConversion']['isBlockAttribute'](_0x476614))&&(_0xa807b0=this['_model']['createPositionBefore'](_0xa807b0['parent'])),this['_addSuggestionMarker'](_0x338f28,_0x11f7d2,_0x149265,this['_model']['createRange'](_0xa807b0,_0x147878));}_findSuggestions(_0x1326d7,_0x26e7e0=null){const _0x4a40e5=[],_0xe8627b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1326d7)||(_0x1326d7=[_0x1326d7]);for(const _0x472d52 of this['getSuggestions']()){if(!_0x472d52['isInContent'])continue;if(_0x26e7e0&&_0x472d52['type']!=_0x26e7e0)continue;let _0x4280e3=!0x1;for(const _0x18175f of _0x472d52['getRanges']()){for(const _0x3d6c4e of _0x1326d7){const _0x4f5132=_0x3d6c4e['start']['isEqual'](_0x18175f['end'])||_0x3d6c4e['end']['isEqual'](_0x18175f['start']);if(_0x4f5132||_0x3d6c4e['getIntersection'](_0x18175f)){const _0x535585=_0x3d6c4e['containsRange'](_0x18175f)&&cn(this['_model']['schema'],_0x18175f['start'],_0x3d6c4e),_0x50ea39=_0x18175f['containsRange'](_0x3d6c4e)&&cn(this['_model']['schema'],_0x3d6c4e['start'],_0x18175f);_0x4a40e5['push']({'suggestion':_0x472d52,'meta':{'isOwn':_0xe8627b==_0x472d52['author'],'isNextTo':_0x4f5132,'isInsideObject':_0x535585,'containsRangeInObject':_0x50ea39}}),_0x4280e3=!0x0;break;}}if(_0x4280e3)break;}}return _0x4a40e5;}_addSuggestionMarker(_0x23e523,_0x1f6b39,_0x4b64e2,_0x5328e4,_0x15960a){this['_model']['change'](_0x54cfc5=>{let _0x42c8fe='suggestion:'+_0x23e523+':'+_0x1f6b39+':'+_0x4b64e2;_0x15960a&&(_0x42c8fe=_0x42c8fe+':'+_0x15960a),_0x54cfc5['addMarker'](_0x42c8fe,{'range':_0x5328e4,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0xe5e134){const _0x3c31ad=_0xe5e134['previous'],_0x215b7d=_0xe5e134['next'];_0xe5e134['previous']=null,_0xe5e134['next']=null,null!=_0x3c31ad&&_0x3c31ad['next']==_0xe5e134&&(_0x3c31ad['next']=_0x215b7d),null!=_0x215b7d&&_0x215b7d['previous']==_0xe5e134&&(_0x215b7d['previous']=_0x3c31ad),'ready'==this['_suggestionState']['get'](_0xe5e134)&&(this['_suggestionState']['set'](_0xe5e134,'removed'),this['fire']('suggestionUnloaded',_0xe5e134,_0x3c31ad,_0x215b7d));}_setSuggestionData(_0x34c94c){const _0x2e9a3b=_0x34c94c['id'],_0x34d67f=this['addSuggestionData'](_0x34c94c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x12a3af=this['editor']['plugins']['get']('PendingActions'),_0x37137d=_0x34d67f['hasComments'],_0x16db26=_0x34d67f['subType']?_0x34d67f['type']+':'+_0x34d67f['subType']:_0x34d67f['type'],_0x29784c=this['editor']['locale'],_0x5edd13=_0x12a3af['add'](Mt(_0x29784c,'PENDING_ACTION_SUGGESTION')),_0x30b2de={'id':_0x2e9a3b,'type':_0x16db26,'hasComments':_0x37137d,'data':_0x34c94c['data']||null,'originalSuggestionId':_0x34c94c['originalSuggestionId']||null,'attributes':_0x34d67f['attributes']};this['_adapter']['addSuggestion'](_0x30b2de)['then'](_0x4349c3=>{_0x34d67f['_saved']=!0x0,_0x12a3af['remove'](_0x5edd13),_0x4349c3&&_0x4349c3['createdAt']&&(this['_suggestions']['get'](_0x2e9a3b)['createdAt']=_0x4349c3['createdAt']);})['catch'](_0x258acd=>{throw _0x100db6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x34d67f['discard']();}),_0x34d67f['stopListening'](),this['_suggestions']['delete'](_0x34d67f['id']),this['_suggestionState']['delete'](_0x34d67f),_0x258acd;});}return _0x34d67f;}_updateSuggestionData(_0x2d34a4,_0x2e0bdc){const _0x4f5a8f=this['editor']['plugins']['get']('PendingActions'),_0x721ed4=this['getSuggestion'](_0x2d34a4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x721ed4['_saved']){const _0x23e25e=_0x4f5a8f['add'](Mt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2d34a4,_0x2e0bdc)['then'](()=>{_0x4f5a8f['remove'](_0x23e25e);});}else _0x721ed4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2d34a4,_0x2e0bdc);});}}_getSuggestionData(_0x421900){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2e8152('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x421900);}_handleNewSuggestionMarker(_0x5d8694){const {id:_0x459f03,type:_0x6600d3,subType:_0x339386,authorId:_0x1bb8a5}=tt(_0x5d8694),_0x4fc344=this['_suggestions']['get'](_0x459f03)||this['_createSuggestion'](_0x6600d3,_0x339386,_0x459f03,_0x1bb8a5,{});switch(this['_checkSuggestionCorrectness'](_0x4fc344,_0x6600d3,_0x339386,_0x1bb8a5),this['_suggestionState']['get'](_0x4fc344)){case'notReady':this['_getSuggestionData'](_0x459f03)['then'](_0x11e7f0=>{let _0x55181e=Promise['resolve']();_0x11e7f0['hasComments']&&(_0x55181e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x459f03})),_0x55181e['then'](()=>{this['addSuggestionData'](_0x11e7f0)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4fc344,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x459f03,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4fc344,'ready'),this['fire']('suggestionLoaded',_0x4fc344);break;case'ready':this['fire']('suggestionChanged',_0x4fc344);}return _0x4fc344['addMarkerName'](_0x5d8694),_0x4fc344;}_refreshSuggestionsChain(_0xce6d00){const _0x512dc3=Array['from'](_0xce6d00),_0x363156=_0x512dc3['filter'](_0x4d602e=>'attribute'==_0x4d602e['type']);this['_refreshAttributeSuggestionsChain'](_0x363156);const _0x4ef2f4=_0x512dc3['filter'](_0xc5d437=>!_0xc5d437['isMultiRange']&&'attribute'!=_0xc5d437['type']),_0x4310f1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48124a=>!_0x48124a['isMultiRange']&&'attribute'!=_0x48124a['type']),_0x2f7aca=_0x4310f1['filter'](_0x10fdd3=>!_0xce6d00['has'](_0x10fdd3)),_0x340d29=new Map(_0x4310f1['map'](_0x540e52=>[_0x540e52,this['_suggestionFactory']['getSuggestionCallback'](_0x540e52['type'],_0x540e52['subType'],'chain')])),_0x2d4316=new Map(_0x4310f1['map'](_0x132913=>[_0x132913,_0x132913['getFirstRange']()])),_0x1e3e04=new Set(),_0x3f948b=new Set();for(let _0x1b2811=0x0;_0x1b2811<_0x4ef2f4['length'];_0x1b2811++)_0x3ba615(_0x4ef2f4[_0x1b2811],_0x4ef2f4,_0x1b2811+0x1);for(let _0x247484=0x0;_0x247484<_0x4ef2f4['length'];_0x247484++)_0x3ba615(_0x4ef2f4[_0x247484],_0x2f7aca,0x0);const _0x3e8946=new Set();for(let _0x2c5fce=0x0;_0x2c5fce<_0x4ef2f4['length'];_0x2c5fce++){const _0x3d3ded=_0x4ef2f4[_0x2c5fce];!_0x3f948b['has'](_0x3d3ded)&&_0x3d3ded['previous']&&(_0x3e8946['add'](_0x3d3ded['previous']),_0x3d3ded['previous']['next']===_0x3d3ded&&(_0x3d3ded['previous']['next']=null),_0x3d3ded['previous']=null),!_0x1e3e04['has'](_0x3d3ded)&&_0x3d3ded['next']&&(_0x3e8946['add'](_0x3d3ded['next']),_0x3d3ded['next']['previous']===_0x3d3ded&&(_0x3d3ded['next']['previous']=null),_0x3d3ded['next']=null);}function _0x3ba615(_0x44fd08,_0x2a531d,_0x3f78f7){for(let _0x5cecf5=_0x3f78f7;_0x5cecf5<_0x2a531d['length'];_0x5cecf5++){const _0x3668a2=_0x5163fb(_0x44fd08,_0x2a531d[_0x5cecf5]);_0x3668a2&&(_0x3668a2[0x0]['next']=_0x3668a2[0x1],_0x3668a2[0x1]['previous']=_0x3668a2[0x0],_0x1e3e04['add'](_0x3668a2[0x0]),_0x3f948b['add'](_0x3668a2[0x1]));}}function _0x5163fb(_0x54942e,_0x2d1699){if(_0x54942e['author']['id']!==_0x2d1699['author']['id'])return null;const _0x516b63=_0x340d29['get'](_0x54942e)(_0x54942e,_0x2d1699,_0x2d4316['get'](_0x54942e),_0x2d4316['get'](_0x2d1699));return _0x516b63&&_0x340d29['get'](_0x2d1699)(_0x54942e,_0x2d1699,_0x2d4316['get'](_0x54942e),_0x2d4316['get'](_0x2d1699))?_0x516b63[0x1]['commentThread']&&_0x516b63[0x1]['commentThread']['length']?null:_0x516b63:null;}_0x3e8946['size']&&this['_refreshSuggestionsChain'](_0x3e8946);}_refreshAttributeSuggestionsChain(_0xdb0591){if(0x0==_0xdb0591['length'])return;const _0x2dc3d8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a44d5=>'attribute'==_0x2a44d5['type']&&_0x2a44d5['_isDataLoaded']),_0x59c260=[],_0x5487af=new Map();for(const _0x1d67a1 of _0x2dc3d8){const _0x44a79b=_0x38de7e(_0x1d67a1['attributes']);_0x5487af['has'](_0x44a79b)||(_0x5487af['set'](_0x44a79b,_0x59c260['length']),_0x59c260['push']([])),_0x59c260[_0x5487af['get'](_0x44a79b)]['push'](_0x1d67a1);}!(function(){_0x59c260['sort']((_0x452b74,_0x2a18c2)=>{const _0x5aae3e=_0x452b74[0x0]['createdAt'],_0x145dd1=_0x2a18c2[0x0]['createdAt'];return _0x5aae3e==_0x145dd1?_0x452b74[0x0]['attributes']['groupId']<_0x2a18c2[0x0]['attributes']['groupId']?-0x1:0x1:_0x5aae3e<_0x145dd1?-0x1:0x1;});for(const _0xc300fd of _0x59c260)_0xc300fd['sort']((_0x3faf84,_0x21a263)=>_0x3faf84['id']<_0x21a263['id']?-0x1:0x1);}());for(let _0x562d0f=0x0;_0x562d0f<_0x59c260['length'];_0x562d0f++){if(0x0==_0x59c260[_0x562d0f]['length'])continue;const _0x151a80=[];for(let _0x3951b1=_0x562d0f+0x1;_0x3951b1<_0x59c260['length'];_0x3951b1++)0x0!=_0x59c260[_0x3951b1]['length']&&_0x4d37db(_0x59c260[_0x562d0f],_0x59c260[_0x3951b1])&&_0x151a80['push'](_0x3951b1);for(const _0x2d994a of _0x151a80)_0x59c260[_0x562d0f]=_0x59c260[_0x562d0f]['concat'](_0x59c260[_0x2d994a]),_0x59c260[_0x2d994a]=[];}for(const _0x59a83e of _0x59c260)for(let _0x56a571=0x0;_0x56a571<_0x59a83e['length'];_0x56a571++){const _0x22db0c=_0x59a83e[_0x56a571+0x1]||null;_0x59a83e[_0x56a571]['next']!==_0x22db0c&&(_0x59a83e[_0x56a571]['next']=_0x22db0c);}for(const _0x1eac91 of _0x59c260)for(let _0x429b=0x0;_0x429b<_0x1eac91['length'];_0x429b++){const _0x4b2b0b=_0x1eac91[_0x429b-0x1]||null;_0x1eac91[_0x429b]['previous']!==_0x4b2b0b&&(_0x1eac91[_0x429b]['previous']=_0x4b2b0b);}function _0x4d37db(_0x426721,_0x2739b5){if(_0x426721[0x0]['attributes']['groupId']!==_0x2739b5[0x0]['attributes']['groupId']&&_0x426721[0x0]['author']!==_0x2739b5[0x0]['author'])return!0x1;if(!function(_0xa03f1,_0x23b42c){return!_0xa03f1['hasComments']&&!_0x23b42c['hasComments']||(!_0xa03f1['hasComments']||!_0x23b42c['hasComments'])&&(!!(_0xa03f1['hasComments']&&_0x23b42c['createdAt']<_0xa03f1['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x23b42c['hasComments']&&_0xa03f1['createdAt']<_0x23b42c['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x426721[0x0],_0x2739b5[0x0]))return!0x1;const _0x1c991c=lt(_0x426721[0x0]['attributes'],['groupId','trackingSessionId']),_0x3134c9=lt(_0x2739b5[0x0]['attributes'],['groupId','trackingSessionId']);return!!ct(_0x1c991c,_0x3134c9)&&(_0x426721[0x0]['attributes']['groupId']==_0x2739b5[0x0]['attributes']['groupId']||_0x426721[0x0]['attributes']['trackingSessionId']===_0x2739b5[0x0]['attributes']['trackingSessionId']&&(!!_0x426721['every'](_0x4d8a9c=>_0x2739b5['some'](_0x163aef=>_0x4d8a9c['getFirstRange']()['isEqual'](_0x163aef['getFirstRange']())))&&_0x2739b5['every'](_0x4360f9=>_0x426721['some'](_0x5c74a0=>_0x4360f9['getFirstRange']()['isEqual'](_0x5c74a0['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x5201c0){const _0xc30c01=Array['from'](_0x5201c0),_0xe59ed9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x368e83=_0xe59ed9['filter'](_0x35162d=>!_0x5201c0['has'](_0x35162d)),_0x4eada5=new Map(_0xc30c01['map'](_0x5095e6=>[_0x5095e6,this['_suggestionFactory']['getSuggestionCallback'](_0x5095e6['type'],_0x5095e6['subType'],'join')])),_0x309624=new Map(_0xe59ed9['map'](_0x187d78=>[_0x187d78,_0x187d78['getRanges']()]));for(let _0x5bcc8c=0x0;_0x5bcc8c<_0xc30c01['length'];_0x5bcc8c++)if(_0x3d475e(this,_0xc30c01[_0x5bcc8c],_0xc30c01,_0x5bcc8c+0x1))return!0x0;for(let _0x567cb6=0x0;_0x567cb6<_0xc30c01['length'];_0x567cb6++)if(_0x3d475e(this,_0xc30c01[_0x567cb6],_0x368e83,0x0))return!0x0;return!0x1;function _0x3d475e(_0x127c58,_0x49af44,_0xd35e60,_0x526731){for(let _0x5d0c19=_0x526731;_0x5d0c19<_0xd35e60['length'];_0x5d0c19++){const _0x3a015d=_0xd35e60[_0x5d0c19];if(_0x3a015d['type']!==_0x49af44['type']||_0x3a015d['author']['id']!==_0x49af44['author']['id']||_0x3a015d['subType']!==_0x49af44['subType'])continue;if(!_n(_0x49af44,_0x3a015d))continue;if('attribute'==_0x49af44['type']&&_0x49af44['data']['oldValue']!=_0x3a015d['data']['oldValue'])continue;if('attribute'==_0x49af44['type']&&_0x127c58['_suggestionsConversion']['isBlockAttribute'](_0x49af44['data']['key']))continue;if('formatBlock'==_0x49af44['type']){const _0x3846a5=_0x127c58['editor']['model'],_0x2f70e5=_0x49af44['getContainedElement']();if(_0x2f70e5&&(_0x3846a5['schema']['isObject'](_0x2f70e5)||_0x3846a5['schema']['isLimit'](_0x2f70e5)))continue;}const _0x1a2c19=_0x4eada5['get'](_0x49af44),_0x2018b6=_0x309624['get'](_0x49af44),_0x44e567=_0x309624['get'](_0x3a015d),_0x537575=_0x49af44['commentThread']&&_0x49af44['commentThread']['length'],_0xc7c667=_0x3a015d['commentThread']&&_0x3a015d['commentThread']['length'];if(!_0x537575&&_0x1a2c19(_0x44e567,_0x2018b6))return _0x127c58['_joinSuggestions'](_0x3a015d,_0x49af44),_0x309624['delete'](_0x49af44),!0x0;if(!_0xc7c667&&_0x1a2c19(_0x2018b6,_0x44e567))return _0x127c58['_joinSuggestions'](_0x49af44,_0x3a015d),_0x309624['delete'](_0x3a015d),!0x0;}return!0x1;}}_joinSuggestions(_0x457ae2,_0x129a2b){if(_0x457ae2['isMultiRange']){for(const _0x416ff1 of _0x129a2b['getRanges']())_0x457ae2['addRange'](_0x416ff1);}else{const _0x55afd5=_0x129a2b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x457ae2,this['_model']['createRange'](_0x457ae2['getFirstRange']()['start'],_0x55afd5));}_0x129a2b['removeMarkers']();}_getMarkerAnnouncementText(_0x3fcdc9,_0x612608,_0x14dc70){const _0x23b463=_0x3fcdc9['startsWith']('format')||_0x3fcdc9['startsWith']('attribute')?'FORMATTING':_0x3fcdc9['toUpperCase']();return Mt(this['editor']['locale'],_0x612608+'_'+_0x23b463+'_SUGGESTION_ANNOUNCEMENT',_0x14dc70);}_initAriaMarkerChangeAnnouncements(){const _0x4f6acd=this['editor'];if(!_0x4f6acd['ui'])return;const {ariaLiveAnnouncer:_0x126fdf}=_0x4f6acd['ui'];et(this['_model'],({left:_0x58c9a1,entered:_0x3bef7e})=>{for(const _0x2cf2ac of _0x58c9a1){const {group:_0xdb74b0,type:_0xda2b5e}=tt(_0x2cf2ac['name']);if('suggestion'===_0xdb74b0){_0x126fdf['announce'](this['_getMarkerAnnouncementText'](_0xda2b5e,'LEAVE'));break;}}for(const _0x5da48e of _0x3bef7e){const {group:_0x42fe8a,type:_0x7d7ba}=tt(_0x5da48e['name']);if('suggestion'===_0x42fe8a){_0x126fdf['announce'](this['_getMarkerAnnouncementText'](_0x7d7ba,'ENTER',_0x2da848(_0x37652e)));break;}}});}_processAttributeChanges(_0x32a4e5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3b7ab6=this['editor'],_0x66f1d=_0x3b7ab6['model']['document']['differ']['getChanges']();if(0x0==_0x66f1d['length'])return!0x1;const _0x4c1d1a=[],_0x3a1145=_0x66f1d['filter'](_0x5744f1=>'attribute'==_0x5744f1['type']),_0x2426ad=_0x66f1d['filter'](_0x4e14cd=>'insert'==_0x4e14cd['type']&&'$text'!=_0x4e14cd['name']),_0x3f1a04=_0x66f1d['filter'](_0x47b4d8=>'remove'==_0x47b4d8['type']&&'$text'!=_0x47b4d8['name']);for(const _0x2c7cc7 of _0x3a1145)_0x4c1d1a['push']({'key':_0x2c7cc7['attributeKey'],'newValue':_0x2c7cc7['attributeNewValue'],'oldValue':_0x2c7cc7['attributeOldValue'],'range':mn(_0x2c7cc7['range'],_0x3b7ab6['model'])});for(const _0x577cd8 of _0x2426ad){const _0x370245=_0x3f1a04['find'](_0x5efeef=>_0x5efeef['position']['isEqual'](_0x577cd8['position']));_0x370245&&_0x4c1d1a['push']({'key':sn,'newValue':_0x577cd8['name'],'oldValue':_0x370245['name'],'range':_0x3b7ab6['model']['createRangeOn'](_0x577cd8['position']['nodeAfter'])});}return 0x0!=_0x4c1d1a['length']&&this['_reduceExistingSuggestions'](_0x32a4e5,_0x4c1d1a);}_processAttributeSuggestions(_0x2224ef){let _0x30341b=!0x1;const _0x59c2a2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xeb58f9=>_0xeb58f9['data']['newRange']&&_0xeb58f9['name']['startsWith']('suggestion:attribute:'));for(const _0x3ae253 of _0x59c2a2){const {subType:_0x562172,id:_0x287b24}=tt(_0x3ae253['name']),_0x17d3fd=_0x562172['split']('|')[0x0];for(const _0x255ac9 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x255ac9['id']!=_0x287b24&&'attribute'==_0x255ac9['type']&&_0x255ac9['data']&&_0x255ac9['data']['key']==_0x17d3fd&&_0x255ac9['getFirstRange']()['isIntersecting'](_0x3ae253['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x255ac9,_0x3ae253['data']['newRange'],_0x2224ef),_0x30341b=!0x0);}return _0x30341b;}recordAttributeChanges(_0x28ee27){this['_recordAttributeSuggestions']=!0x0,_0x28ee27();}_reduceExistingSuggestions(_0x37d965,_0x4c4241){if(0x0==_0x4c4241['length'])return!0x1;let _0x2d1356=!0x1;for(const _0x55e63b of _0x4c4241){const _0xe7f5e3=this['_findSuggestions'](_0x55e63b['range'],'attribute')['filter'](_0x6421d8=>!_0x6421d8['meta']['isNextTo'])['map'](_0x339670=>_0x339670['suggestion']),_0xfe9316=_0x38de7e({'newValue':_0x55e63b['newValue']});_0xe7f5e3['filter'](_0x27377e=>{const [_0x169ff1,_0x100e0b]=_0x27377e['subType']['split']('|');return _0x169ff1==_0x55e63b['key']&&_0x100e0b!=_0xfe9316;})['forEach'](_0x4114b3=>{this['_reduceSuggestionAttributeRange'](_0x4114b3,_0x55e63b['range'],_0x37d965),_0x2d1356=!0x0;});}return _0x2d1356;}_reduceSuggestionAttributeRange(_0x150831,_0x342be7,_0x41793d){const _0x4949f6=_0x150831['getFirstRange']()['getDifference'](_0x342be7);0x0!==_0x4949f6['length']?0x1!==_0x4949f6['length']?this['_breakSuggestionMarker'](_0x150831,_0x342be7['start'],_0x342be7['end']):this['_setSuggestionRange'](_0x150831,_0x4949f6[0x0]):_0x41793d['removeMarker'](_0x150831['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x49dfd6){this['_editor']=_0x49dfd6,this['_model']=_0x49dfd6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x24f491,_0x241de7,_0x5a12f3,_0x37338e,_0x56f562,_0x10ebed,_0x77a339){return new St(this['_model'],{'type':_0x24f491,'subType':_0x241de7,'id':_0x5a12f3,'originalSuggestionId':_0x77a339,'author':_0x37338e,'creator':_0x37338e,'attributes':_0x56f562,'onAttributesChange':_0x10ebed,'onAccept':(..._0x4e6c48)=>this['getSuggestionCallback'](_0x24f491,_0x241de7,'accept')(..._0x4e6c48),'onDiscard':(..._0xac2e71)=>this['getSuggestionCallback'](_0x24f491,_0x241de7,'discard')(..._0xac2e71)});}registerCustomCallback(_0x5b353b,_0x140b8e,_0x1d235f,_0xa2a35d){const _0x2bc9c8=_0x5b353b+':'+_0x140b8e+':'+_0x1d235f;this['_customCallbacks']['set'](_0x2bc9c8,_0xa2a35d);}getSuggestionCallback(_0x59acfb,_0x115d3a,_0x12658a){const _0x5ac7fb=_0x59acfb+':'+_0x115d3a+':'+_0x12658a;return this['_customCallbacks']['get'](_0x5ac7fb)||this['_defaultCallbacks']['get'](_0x59acfb+':'+_0x12658a);}_registerDefaultCallbacks(){const _0x1069e4=()=>!0x1,_0x2e9d29=_0x3d2c93=>{_0x3d2c93['sort']((_0x2d47c7,_0x47c825)=>_0x2d47c7['start']['isBefore'](_0x47c825['start'])?0x1:-0x1),this['_model']['change'](_0x3a14a5=>{for(const _0x1dbd48 of _0x3d2c93){let _0x33fa74;_0x33fa74=_0x1dbd48['end']['isAtEnd']&&_0x1dbd48['end']['parent']==_0x1dbd48['start']['nodeAfter']?_0x3a14a5['createSelection'](_0x1dbd48['start']['nodeAfter'],'on'):_0x3a14a5['createSelection'](_0x1dbd48),this['_model']['deleteContent'](_0x33fa74,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x123df=(_0x51f392,_0x1e1653)=>{_0x1e1653&&this['_model']['change'](_0x571a54=>{const {commandName:_0x3aa369,commandParams:_0x5cb309=[]}=_0x1e1653,_0xbe62b4=_0x51f392['map'](_0x2a352f=>(ln(_0x2a352f)&&(_0x2a352f=this['_model']['createRange'](_0x2a352f['end'])),_0x2a352f))['filter'](_0x4cd8f4=>'$graveyard'!==_0x4cd8f4['root']['rootName']);if(_0xbe62b4['length']<0x1)return;const _0xd7d384=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xbeb4ee=>rt['fromRange'](_0xbeb4ee));_0x571a54['setSelection'](_0xbe62b4);for(const _0x3b759d of this['_editor']['commands']['commands']())_0x3b759d['refresh']();_0x5cb309['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3aa369,..._0x5cb309);const _0x266284=_0xd7d384['filter'](_0x575940=>'$graveyard'!=_0x575940['root']['rootName']);_0x266284['length']>0x0&&_0x571a54['setSelection'](_0x266284);for(const _0x2f1617 of _0xd7d384)_0x2f1617['detach']();});},_0x3956ec=(_0xdcdd6d,_0xff4da2)=>0x1==_0xdcdd6d['length']&&0x1==_0xff4da2['length']&&_0xdcdd6d[0x0]['end']['isEqual'](_0xff4da2[0x0]['start']),_0xa629e3=(_0x5bb17f,_0x2768fb,_0x231ba4,_0x297a09)=>Tn(_0x5bb17f,_0x2768fb,_0x231ba4,_0x297a09)?[_0x5bb17f,_0x2768fb]:Tn(_0x2768fb,_0x5bb17f,_0x297a09,_0x231ba4)?[_0x2768fb,_0x5bb17f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1069e4),this['_defaultCallbacks']['set']('insertion:discard',_0x2e9d29),this['_defaultCallbacks']['set']('insertion:join',_0x3956ec),this['_defaultCallbacks']['set']('insertion:chain',_0xa629e3),this['_defaultCallbacks']['set']('deletion:accept',(_0x24d971,_0x555c49,_0xde16fa)=>{const _0x29b573=(_0xde16fa?.['@ai'])?.['type'];_0x29b573?this['_model']['change'](_0x383a84=>{const _0x3a21a7=_0x383a84['batch']['operations']['length'];_0x2e9d29(_0x24d971);for(let _0x24df61=_0x3a21a7;_0x24df61<_0x383a84['batch']['operations']['length'];_0x24df61++)_0x383a84['batch']['operations'][_0x24df61]['_aiSource']=_0x29b573;}):_0x2e9d29(_0x24d971);}),this['_defaultCallbacks']['set']('deletion:discard',_0x1069e4),this['_defaultCallbacks']['set']('deletion:join',_0x3956ec),this['_defaultCallbacks']['set']('deletion:chain',_0xa629e3),this['_defaultCallbacks']['set']('formatInline:accept',_0x123df),this['_defaultCallbacks']['set']('formatInline:discard',_0x1069e4),this['_defaultCallbacks']['set']('formatInline:join',_0x3956ec),this['_defaultCallbacks']['set']('formatInline:chain',_0x1069e4),this['_defaultCallbacks']['set']('formatBlock:accept',_0x123df),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1069e4),this['_defaultCallbacks']['set']('formatBlock:join',_0x3956ec),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1069e4),this['_defaultCallbacks']['set']('attribute:accept',_0x1069e4),this['_defaultCallbacks']['set']('attribute:discard',(_0x385e16,_0x304fae)=>{if(!_0x304fae)return;const _0x447229=this['_editor']['plugins']['get'](_0x3bdd00);this['_model']['change'](_0x3dde1f=>{if('$elementName'==_0x304fae['key'])for(const _0x152160 of _0x385e16){const _0x3c6c11=_0x152160['start']['nodeAfter'],_0x19f186=_0x304fae['oldValue'];_0x3dde1f['rename'](_0x3c6c11,_0x19f186);}else{if(_0x447229['isBlockAttribute'](_0x304fae['key'])){for(const _0x4678cc of _0x385e16)void 0x0!==_0x304fae['oldValue']?_0x3dde1f['setAttribute'](_0x304fae['key'],_0x304fae['oldValue'],_0x4678cc['start']['nodeAfter']):_0x3dde1f['removeAttribute'](_0x304fae['key'],_0x4678cc['start']['nodeAfter']);}else{for(const _0x474b90 of _0x385e16)_0x304fae['oldValue']?_0x3dde1f['setAttribute'](_0x304fae['key'],_0x304fae['oldValue'],_0x474b90):_0x3dde1f['removeAttribute'](_0x304fae['key'],_0x474b90);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3956ec);}};function cn(_0x254b15,_0x146ded,_0x376ed6){for(const _0x33e0b9 of _0x146ded['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x33e0b9['root']==_0x33e0b9)return!0x1;if(!_0x376ed6['containsItem'](_0x33e0b9))return!0x1;if(_0x254b15['isObject'](_0x33e0b9)||_0x254b15['isLimit'](_0x33e0b9))return!0x0;}return!0x1;}function ln(_0x159987){return _0x159987['end']['parent']==_0x159987['start']['nodeAfter']&&_0x159987['end']['isAtStart'];}function un(_0x5bbcdb,_0x2bafb8,_0x1b4f18,_0x131873){const _0x1a100f=_0x1e2c93=>!_0x1e2c93['item']['is']('$textProxy')&&!_0x131873['isObject'](_0x1e2c93['item']),_0x1f2f5a=_0x5bbcdb['start']['getLastMatchingPosition'](_0x1a100f),_0x16f51e=_0x5bbcdb['end']['getLastMatchingPosition'](_0x1a100f,{'direction':'backward'});return(!_0x5bbcdb['start']['isEqual'](_0x1f2f5a)||!_0x5bbcdb['end']['isEqual'](_0x16f51e))&&(_0x1f2f5a['isBefore'](_0x16f51e)?_0x1b4f18['updateMarker'](_0x2bafb8,{'range':_0x1b4f18['createRange'](_0x1f2f5a,_0x16f51e)}):_0x1b4f18['removeMarker'](_0x2bafb8),!0x0);}function dn(_0x160307){return _0x38de7e(_0x160307);}function hn(_0x3bb14c){const _0x52ec08=_0x3bb14c['start']['nodeAfter'];return _0x52ec08&&_0x52ec08['is']('element');}function gn(_0x192d54){return ln(_0x192d54)||function(_0x271fa2){return _0x271fa2['start']['parent']==_0x271fa2['end']['nodeBefore']&&_0x271fa2['start']['isAtEnd'];}(_0x192d54);}function fn(_0x39f801,_0x126d2e){try{const _0x374149=_0x39f801['getRange']();for(const _0x3feab7 of _0x126d2e)if(_0x39f801!==_0x3feab7&&_0x374149&&_0x374149['isIntersecting'](_0x3feab7['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0x227326,_0xfb976d){return null==_0x227326['end']['nodeBefore']&&_0x227326['end']['parent']==_0x227326['start']['nodeAfter']?En(_0x227326['start']['nodeAfter'],_0xfb976d):_0x227326;}function En(_0xed4e5d,_0x3a95cc){const _0x839220=_0x3a95cc['schema']['isObject'](_0xed4e5d)||_0x3a95cc['schema']['isSelectable'](_0xed4e5d);return _0x3a95cc['createRange'](_0x3a95cc['createPositionAt'](_0xed4e5d,'before'),_0x839220?_0x3a95cc['createPositionAfter'](_0xed4e5d):_0x3a95cc['createPositionAt'](_0xed4e5d,'end'));}function Tn(_0x9c500c,_0x43aaf4,_0x51cb6b,_0x29d2fa){return!!_n(_0x9c500c,_0x43aaf4)&&_0x51cb6b['end']['isEqual'](_0x29d2fa['start']);}function _n(_0x3fdde1,_0x37e4bb){if(!_0x3fdde1['_isDataLoaded']||!_0x37e4bb['_isDataLoaded'])return!0x1;const _0x1ff6fa=new Set(Object['keys'](_0x3fdde1['attributes'])),_0x587345=new Set(Object['keys'](_0x37e4bb['attributes']));if(_0x1ff6fa['delete']('groupId'),_0x587345['delete']('groupId'),0x0==_0x1ff6fa['size']&&0x0==_0x587345['size'])return!0x0;if(_0x1ff6fa['size']!=_0x587345['size'])return!0x1;const _0x2fe7b3={..._0x3fdde1['attributes']},_0x4c66d5={..._0x37e4bb['attributes']};return delete _0x2fe7b3['groupId'],delete _0x4c66d5['groupId'],JSON['stringify'](_0x2fe7b3)==JSON['stringify'](_0x4c66d5);}function pn(_0x2d5c4f,_0x3590a8){const _0x3e63ec=Ln(_0x2d5c4f['attributes']),_0x2843eb=Ln(_0x3590a8);if(!_0x2d5c4f['_isDataLoaded'])return!0x1;if(!ct(_0x3e63ec['@ai'],_0x2843eb['@ai']))return!0x1;for(const _0x4fa1cd of Object['keys'](_0x2843eb))if(!ct(_0x3e63ec[_0x4fa1cd],_0x2843eb[_0x4fa1cd]))return!0x1;return!0x0;}function Ln(_0x6580e9){const _0x203d54=Object['assign']({},_0x6580e9);return delete _0x203d54['skipNestingCheck'],delete _0x203d54['tablePasteChainId'],_0x203d54;}function In(_0x2c9ba5){return _0x2c9ba5['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
26
+ _0x1e7d4b();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x389363,_0x561215,_0x163d35,_0x32c15d){super(),this['model']=_0x561215,this['view']=_0x163d35,this['commentThreadController']=_0x32c15d,this['_editor']=_0x389363,this['_acceptCommand']=_0x389363['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x389363['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x24d6e1,_0x28f1d1)=>_0x24d6e1||_0x28f1d1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x27cf65=>_0x27cf65&&this['_editor']['model']['canEditAt'](_0x561215['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x42fbd5=>_0x42fbd5&&this['_editor']['model']['canEditAt'](_0x561215['getRanges']())),this['_pendingAction']=null,_0x163d35['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x163d35,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x163d35,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x163d35,'change:isDirty',()=>{_0x163d35['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 _0x20ca0b=Mt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x20ca0b);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},kn=class extends _0xb2df0c{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4c3006,_0xaf25e0,_0x2b6fc0,_0xa111c6){super(_0x4c3006),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x42f564(_0x4c3006,Mt(_0x4c3006,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xaf25e0['authoredAt']),this['bind']('authoredAt')['to'](_0xaf25e0),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',_0xaf25e0,'authoredAt',this,'descriptionParts',(_0x444554,_0x3041da,_0x57bd4e)=>{const _0x540866=_0x57bd4e['map'](_0x5c0a9d=>Lt(_0x5c0a9d['content']))['join']('.\x20')+'.',_0x368a1c=_0xaf25e0['aiSource']&&'author'===_0xa111c6['showAISource']?_0xa111c6['aiAuthor']['name']:_0xaf25e0['author']['name'],_0x1f9c98=Mt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x444554-0x1,_0x368a1c,_0x3041da?_0xa111c6['formatDateTime'](_0x3041da):'',new DOMParser()['parseFromString'](_0x540866,'text/html')['body']['textContent']]);return _0xaf25e0['aiSource']&&'pill'===_0xa111c6['showAISource']?_0x1f9c98+'\x20'+Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x1f9c98;}),this['focusables']=new _0x5430c2(),this['focusTracker']=new _0xd0a211(),this['keystrokes']=new _0x224894(),this['focusCycler']=new _0x1f4a4b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x553d32=>_0x553d32['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xaf25e0,this['_localUser']=_0x2b6fc0,this['_config']=_0xa111c6,_0xa111c6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4e378f(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x3c2c99}=this['_config'];this['commentsListView']=new _0x3c2c99(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',_0x1ec70b=>_0x1ec70b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x12b699,_0x4789f5)=>_0x12b699||!!_0x4789f5);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x4782fe}=this['_config'],_0x538f49=new _0x4782fe(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x27cf82=_0x538f49['commentInputView'];return _0x538f49['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x27cf82,'value',(_0x4ed04c,_0x16b020,_0x4fd547)=>!!_0x4fd547||_0x4ed04c&&!_0x16b020),_0x27cf82['on']('submit',(_0x5baf94,_0x1e1d0c)=>{this['fire']('addComment',_0x1e1d0c),_0x27cf82['editor']['setData']('');}),_0x27cf82['on']('cancel',()=>this['focus']()),_0x27cf82['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x538f49;}},Cn=class extends kn{suggestionView;_descriptionElement;constructor(_0x545f8c,_0x42c106,_0x3ac435,_0x3cde52){super(_0x545f8c,_0x42c106,_0x3ac435,_0x3cde52),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xfd576c=>_0xfd576c&&_0xfd576c[0x0]?_0xfd576c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3e15d1,_0x75ac43)=>{let _0x33f4f1='';for(const _0x42e0eb of _0x3e15d1)_0x33f4f1+='<p>'+Lt(_0x42e0eb['content'],_0x42e0eb['color'])+'</p>';return _0x75ac43?_0x33f4f1:nt(_0x33f4f1,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3cde52['SuggestionView'](_0x545f8c,_0x42c106,{'formatDateTime':_0x3cde52['formatDateTime'],'showAISource':_0x3cde52['showAISource'],'aiAuthor':_0x3cde52['aiAuthor']}),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 _0x247b4a=this['bindTemplate'],_0x34c013=[this['suggestionView']];return this['commentsListView']&&_0x34c013['push'](this['commentsListView']),this['commentThreadInputView']&&_0x34c013['push'](this['commentThreadInputView']),_0x34c013['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x247b4a['if']('isActive','ck-suggestion-wrapper--active'),_0x247b4a['to']('type',_0x48f4e0=>'ck-suggestion-'+_0x48f4e0),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':_0x247b4a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x34c013};}['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));}},Rn=class extends _0xb2df0c{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x47d6ab,_0x4e0949,_0x3b458d){super(_0x47d6ab),this['_model']=_0x4e0949,this['_config']=_0x3b458d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4e0949),this['acceptButton']=this['_createButton'](Mt(_0x47d6ab,'Accept\x20suggestion'),_0x4a6bdc,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Mt(_0x47d6ab,'Discard\x20suggestion'),_0x5be361,'ck-suggestion--discard','discardSuggestion','sw');const _0x173e4f=!!_0x4e0949['aiSource']&&'author'===_0x3b458d['showAISource'],_0x3b37c6=_0x173e4f?this['_createAIUser'](_0x3b458d['aiAuthor']):_0x4e0949['author'],_0x1fa104=_0x173e4f&&!_0x3b458d['aiAuthor']['avatar']?_0x41e32b:void 0x0;this['userView']=new _0x4ca672(_0x47d6ab,_0x3b37c6,this['getUserViewNotificationText'](),_0x1fa104),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5430c2([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xd0a211(),this['keystrokes']=new _0x224894(),this['focusCycler']=new _0x1f4a4b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1805fa=>_0x1805fa['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5f274a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5f274a['innerHTML']=this['description'],this['on']('change:description',(_0x358360,_0x73e928,_0x25f52e)=>{_0x5f274a['innerHTML']=_0x25f52e;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x49b8d8=this['bindTemplate'],_0x3717dc=[{'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':_0x49b8d8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x49b8d8['to']('authoredAt',_0x5013c8=>this['_config']['formatDateTime'](_0x5013c8))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x3717dc['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x3060fe=new _0x1b1d33(this['locale']);_0x3060fe['set']({'icon':_0x4749c0,'label':Mt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Mt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x3717dc['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x3060fe]});}return{'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':_0x3717dc}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Mt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Mt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Mt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x5624d7){return new _0xb6a227({'id':'ck-ai-author','name':_0x5624d7['name'],'avatar':_0x5624d7['avatar'],'color':new _0x54c0f7(0x0)});}_createButton(_0x1a2841,_0x3f8f7b,_0x4cf987,_0x5539f1,_0x3faf5c){const _0x4e48d0=new _0x373d52(this['locale']);return _0x4e48d0['set']({'label':_0x1a2841,'icon':_0x3f8f7b,'tooltip':!0x0,'tooltipPosition':_0x3faf5c}),_0x4e48d0['extendTemplate']({'attributes':{'class':_0x4cf987}}),_0x4e48d0['on']('execute',()=>{this['fire'](_0x5539f1,this['_model']['id']);}),_0x4e48d0;}_setupKeyboardNavigation(){const _0x1e195c=this['element'];this['keystrokes']['listenTo'](_0x1e195c);for(const _0x2b075d of this['focusables'])this['focusTracker']['add'](_0x2b075d['element']),this['keystrokes']['listenTo'](_0x2b075d['element']);this['keystrokes']['set']('enter',(_0x1f0d18,_0x342eca)=>{_0x1e195c===_0x1f0d18['target']&&(this['focusCycler']['focusFirst'](),_0x342eca());}),this['keystrokes']['set']('esc',(_0x241619,_0x3b82bc)=>{_0x1e195c!==_0x241619['target']&&(this['focus'](),_0x3b82bc());});}},yn=class extends _0x5d30aa{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0x3a5db0,_0x3f1c40,_0x111010,_0x45827d];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a0baf){super(_0x1a0baf),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x20d22d=this['editor']['config'];_0x20d22d['define']('trackChanges.SuggestionThreadView',Cn),_0x20d22d['define']('trackChanges.SuggestionView',Rn),_0x20d22d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x20d22d['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x1fbaa2,_0x52e6b7){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x56cda1,_0x34a623]of this['_handleControllerBuffer']){const _0x138c0a=this['_suggestionToController']['has'](_0x56cda1);_0x138c0a||_0x34a623?_0x138c0a&&_0x34a623&&this['_destroyController'](_0x56cda1):this['_initializeController'](_0x56cda1);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x45827d)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1fbaa2,_0x52e6b7);}init(){const _0x134f00=this['editor'],_0x2ab73a=_0x134f00['plugins']['get'](on),_0x2f097f=_0x134f00['plugins']['get'](_0x111010),_0x490b15=_0x134f00['plugins']['get'](_0x45827d),_0x352edb=_0x134f00['plugins']['get'](_0x3f1c40);this['_addUIComponentsToFactory'](),_0x490b15['addSourceCollector'](()=>{const _0x328dda=[];for(const [_0x3526b4,_0x591b44]of Array['from'](this['_suggestionToController'])){const _0x43124f=_0x3526b4['getAllAdjacentSuggestions'](),_0x45a56b=[];for(const _0x44b1fb of _0x43124f){if(!_0x44b1fb['isInContent'])continue;if(_0x44b1fb['isMultiRange']){_0x45a56b['push'](..._0x44b1fb['getRanges']());continue;}const _0xb1affc=_0x44b1fb['getFirstRange']();if(_0x45a56b['length']>0x0){const _0x5710d0=_0x45a56b[0x0]['getJoined'](_0xb1affc);if(_0x5710d0){_0x45a56b[0x0]=_0x5710d0;continue;}}_0x45a56b['push'](_0xb1affc);}_0x328dda['push']([_0x591b44['view'],_0x45a56b]);}return _0x328dda;}),this['listenTo'](_0x2ab73a,'suggestionLoaded',(_0x117b99,_0x13c0cf)=>{this['listenTo'](_0x13c0cf,'change:previous',(_0x1bd08c,_0x24b791,_0x577c45,_0x24bbd1)=>{_0x13c0cf['isInContent']&&(null==_0x577c45?(this['_updateController'](_0x24bbd1['head']),this['_handleSuggestionControllerDelayed'](_0x13c0cf,!0x1)):(this['_updateController'](_0x577c45['head']),null==_0x24bbd1&&this['_handleSuggestionControllerDelayed'](_0x13c0cf,!0x0)));}),null!==_0x13c0cf['previous']?this['_updateController'](_0x13c0cf['head']):this['_handleSuggestionControllerDelayed'](_0x13c0cf,!0x1);}),this['listenTo'](_0x2ab73a,'suggestionUnloaded',(_0xda039d,_0x70aa11,_0x583fa1)=>{this['stopListening'](_0x70aa11,'change:previous'),this['_handleControllerBuffer']['delete'](_0x70aa11),this['_suggestionToController']['has'](_0x70aa11)&&this['_destroyController'](_0x70aa11),_0x583fa1&&this['_updateController'](_0x583fa1['head']);}),this['listenTo'](_0x2ab73a,'suggestionChanged',(_0x2aebb8,_0x30bc6d)=>{this['_updateController'](_0x30bc6d);}),this['listenTo'](_0x2f097f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x352edb,'addComment',(_0x525cdc,{threadId:_0x1ff738,isFromAdapter:_0x171c5e})=>{if(_0x171c5e||!_0x2ab73a['hasSuggestion'](_0x1ff738))return;const _0x342513=_0x2ab73a['getSuggestion'](_0x1ff738);this['_suggestionToController']['get'](_0x342513)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x4455b2=[this['editor']];for(const _0x3da8a9 of _0x4455b2){let _0x566396;for(const _0x10a113 in _0x3da8a9){const _0x3d0d97=_0x10a113,_0x1acd31=_0x3da8a9[_0x3d0d97];if('trackChangesLicenseKeyValid'==_0x1acd31||'trackChangesLicenseKeyInvalid'==_0x1acd31||'trackChangesLicenseKeyExpired'==_0x1acd31||'trackChangesLicenseKeyDomainLimit'==_0x1acd31||'trackChangesLicenseKeyNotAllowed'==_0x1acd31||'trackChangesLicenseKeyEvaluationLimit'==_0x1acd31||'trackChangesLicenseKeyUsageLimit'==_0x1acd31){delete _0x3da8a9[_0x3d0d97],_0x566396=_0x1acd31,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x566396&&_0x3da8a9['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x566396&&_0x3da8a9['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x566396&&_0x3da8a9['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x566396&&_0x3da8a9['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x566396&&_0x3da8a9['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x566396&&_0x3da8a9['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x21de80){const _0x3a3456=this['_suggestionToController']['get'](_0x21de80);return _0x3a3456&&this['editor']['plugins']['get'](_0x111010)['getByInnerView'](_0x3a3456['view'])||null;}getSuggestionForAnnotation(_0xd87d4f){const _0x48c6b5=this['_viewToController']['get'](_0xd87d4f['innerView']);return _0x48c6b5?_0x48c6b5['model']:null;}_refreshActiveMarkers(){const _0x2fd6f3=this['editor']['plugins']['get'](_0x111010),_0x3f6513=this['editor']['plugins']['get'](on),_0x56b953=Array['from'](_0x2fd6f3['activeAnnotations'],_0x336d6b=>_0x336d6b['innerView'])['filter'](_0xa81942=>this['_viewToController']['has'](_0xa81942)),_0x530bed=[];for(const _0x47d45e of _0x56b953){const _0x3dc76e=this['_viewToController']['get'](_0x47d45e)['model']['getAllAdjacentSuggestions']();_0x530bed['push'](..._0x3dc76e['reduce']((_0x5eeed6,_0x4dc08c)=>[..._0x5eeed6,..._0x4dc08c['getMarkerNames']()],[]));}_0x3f6513['activeMarkers']=_0x530bed;}_addUIComponentsToFactory(){const _0x9a8fac=this['editor'],_0x35d4a2=_0x9a8fac['locale'],_0x5f00ab=Mt(_0x35d4a2,'Track\x20changes'),_0x114a51=new _0xcd4097([{'type':'switchbutton','model':new _0x140be0({'withText':!0x0,'isToggleable':!0x0,'label':_0x5f00ab,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x140be0({'withText':!0x0,'label':Mt(_0x35d4a2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x140be0({'withText':!0x0,'label':Mt(_0x35d4a2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x140be0({'withText':!0x0,'label':Mt(_0x35d4a2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x140be0({'withText':!0x0,'label':Mt(_0x35d4a2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x9a8fac['plugins']['has']('TrackChangesPreview')&&_0x114a51['addMany']([{'type':'separator'},{'type':'button','model':new _0x140be0({'withText':!0x0,'label':Mt(_0x35d4a2,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x220a34 of _0x114a51)if(Nn(_0x220a34)){const _0x37a541=_0x9a8fac['commands']['get'](_0x220a34['model']['commandName']);_0x220a34['model']['bind']('isOn','isEnabled')['to'](_0x37a541,'value','isEnabled');}_0x9a8fac['ui']['componentFactory']['add']('trackChanges',_0x49c3f3=>this['_createToolbarButton'](_0x49c3f3,_0x114a51,_0x5f00ab)),_0x9a8fac['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3f276b=>this['_createMenuBarMenu'](_0x3f276b,_0x114a51,_0x5f00ab));}_createToolbarButton(_0x2a1437,_0x2a56c5,_0x13fe67){const _0x12aa94=_0x39b52a(_0x2a1437,_0x2404b6),_0x1c500c=this['editor']['commands']['get']('trackChanges');_0x12aa94['buttonView']['set']({'tooltip':_0x13fe67,'label':_0x13fe67,'icon':_0x325b0e}),_0x12aa94['buttonView']['bind']('isOn')['to'](_0x1c500c,'value'),_0x12aa94['buttonView']['on']('execute',()=>{_0x1c500c['execute'](),this['editor']['editing']['view']['focus']();}),_0x1b2046(_0x12aa94,_0x2a56c5,{'role':'menu'});const _0x3520b4=[];for(const _0x25609f of _0x2a56c5)Nn(_0x25609f)&&_0x3520b4['push'](this['editor']['commands']['get'](_0x25609f['model']['commandName']));const _0x4dade8=_0x12aa94['buttonView'];return _0x4dade8['actionView']['unbind']('isEnabled'),_0x4dade8['arrowView']['unbind']('isEnabled'),_0x4dade8['actionView']['bind']('isEnabled')['to'](_0x1c500c,'isEnabled'),_0x4dade8['arrowView']['bind']('isEnabled')['toMany'](_0x3520b4,'isEnabled',(..._0x23aeeb)=>_0x23aeeb['some'](_0x39af94=>_0x39af94)),_0x12aa94['on']('execute',_0x268dc7=>{this['editor']['execute'](_0x268dc7['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x12aa94;}_createMenuBarMenu(_0x54db2e,_0x25d05d,_0x201e75){const _0x5cc2d6=new _0x4f66c4(_0x54db2e),_0x1bbad8=this['editor']['commands']['get']('trackChanges');_0x5cc2d6['buttonView']['set']({'label':_0x201e75,'icon':_0x325b0e});const _0x3c1b8d=new _0x6db6a(_0x54db2e);for(const _0x39d694 of _0x25d05d){if('separator'==_0x39d694['type']){_0x3c1b8d['items']['add'](new _0x24d717(_0x54db2e));continue;}const _0x4dc64b=new _0x3a5f85(_0x54db2e,_0x5cc2d6),_0x194a68=new _0x45bfb6(_0x54db2e),_0x3e13a5=_0x39d694['model'];_0x194a68['bind'](...Object['keys'](_0x3e13a5))['to'](_0x3e13a5),_0x194a68['delegate']('execute')['to'](_0x5cc2d6),_0x194a68['on']('execute',()=>{this['editor']['execute'](_0x3e13a5['commandName']),this['editor']['editing']['view']['focus']();}),_0x4dc64b['children']['add'](_0x194a68),_0x3c1b8d['items']['add'](_0x4dc64b);}return _0x5cc2d6['bind']('isEnabled')['to'](_0x1bbad8,'isEnabled'),_0x5cc2d6['panelView']['children']['add'](_0x3c1b8d),_0x5cc2d6;}_initializeController(_0x403772){const _0x384644=this['editor'],_0x4062d6=_0x384644['config'],_0x13a301=_0x384644['plugins']['get'](_0x111010),_0x4d74c4=_0x384644['plugins']['get'](_0x3f1c40),_0x39668c=_0x384644['plugins']['get'](_0x45827d),_0x5a74f0=_0x384644['plugins']['get'](_0x3a5db0)['me'],_0x408940=_0x4062d6['get']('trackChanges')['SuggestionThreadView'],_0x17cef0=_0x4062d6['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4bd977,CommentThreadInputView:_0x41208c}=_0x384644['plugins']['get']('CommentsUI');let _0x7437fa,_0x3104f9,_0x113167;this['_annotationViews']['has'](_0x403772['id'])?(_0x3104f9=this['_annotationViews']['get'](_0x403772['id']),_0x7437fa=_0x3104f9['mainView']):(_0x7437fa=new _0x408940(_0x384644['locale'],_0x403772,_0x5a74f0,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4062d6['get']('comments.editorConfig'),'licenseKey':_0x4062d6['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4062d6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4062d6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4062d6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x27bc5a(_0x4062d6['get']('locale'),_0x384644['locale']),'CommentView':_0x4062d6['get']('comments')['CommentView'],'CommentsListView':_0x4bd977,'CommentThreadInputView':_0x41208c,'SuggestionView':_0x17cef0,'showAISource':_0x4062d6['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x4062d6['get']('trackChanges.aiAuthor'),'name':_0x4062d6['get']('trackChanges.aiAuthor')?.['name']||Mt(_0x384644['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x7437fa['suggestionView']['acceptButton']['on']('execute',()=>{_0x384644['editing']['view']['focus']();}),_0x7437fa['suggestionView']['discardButton']['on']('execute',()=>{_0x384644['editing']['view']['focus']();}),_0x3104f9=_0x13a301['createAnnotationView'](this['editor']['locale'],_0x7437fa),_0x3104f9['bind']('isDirty')['to'](_0x7437fa,'isDirty'),_0x3104f9['bind']('length')['to'](_0x7437fa),_0x3104f9['bind']('type')['to'](_0x7437fa,'type',_0x478d10=>'suggestion-'+_0x478d10),_0x7437fa['on']('escape',()=>{_0x113167['fire']('escape');}),this['_annotationViews']['set'](_0x403772['id'],_0x3104f9));const _0x35c48b=_0x4d74c4['createCommentThreadController'](_0x403772['commentThread'],_0x7437fa),_0x35b41c=new bn(_0x384644,_0x403772,_0x7437fa,_0x35c48b),_0x45fdd4=_0x403772['getAllAdjacentSuggestions']()['filter'](_0x56cf64=>_0x56cf64['isInContent']);_0x7437fa['descriptionParts']=_0x384644['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x45fdd4),this['_suggestionToController']['set'](_0x403772,_0x35b41c),this['_viewToController']['set'](_0x7437fa,_0x35b41c);const _0x47c9c3=()=>{const _0x112f20=[],_0x2f00cb=_0x403772['getAllAdjacentSuggestions']()['filter'](_0x391e5d=>_0x391e5d['isInContent']);for(const _0x3e09b7 of _0x2f00cb)_0x112f20['push'](..._0x3e09b7['getMarkers']());return _0x54047b(_0x384644['editing'],_0x112f20);};_0x113167=_0x13a301['createAnnotation']({'view':_0x3104f9,'target':_0x47c9c3,'type':()=>'suggestion-'+_0x35b41c['view']['type'],'isVisible':!!_0x47c9c3()}),_0x4d74c4['_bindAnnotationToEditors'](_0x7437fa,_0x113167),_0x13a301['add'](_0x113167),_0x39668c['registerAnnotation'](_0x113167);}_destroyController(_0x30893f){const _0x348c6b=this['editor']['plugins']['get'](_0x3f1c40),_0x412c67=this['editor']['plugins']['get'](_0x111010),_0x39fb13=this['_suggestionToController']['get'](_0x30893f),_0x116685=_0x39fb13['view'],_0x312529=_0x412c67['getByInnerView'](_0x116685);_0x348c6b['_unbindEditors'](_0x116685),_0x312529&&_0x412c67['remove'](_0x312529),this['_suggestionToController']['delete'](_0x30893f),this['_viewToController']['delete'](_0x116685),_0x39fb13['destroy']();}_updateController(_0x251195){if(!_0x251195['isInContent']||!this['_suggestionToController']['has'](_0x251195))return;const _0x40dc4b=this['editor']['plugins']['get'](on),_0x5be773=this['_suggestionToController']['get'](_0x251195),_0x3f919c=_0x251195['getAllAdjacentSuggestions']();_0x5be773['view']['descriptionParts']=_0x40dc4b['descriptionFactory']['getDescriptions'](_0x3f919c);}destroy(){for(const _0x484427 of this['_suggestionToController']['keys']())this['_destroyController'](_0x484427);for(const _0x3a7bc5 of this['_annotationViews']['values']())_0x3a7bc5['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x1f8730){return'model'in _0x1f8730;}var Sn=class extends _0x5d30aa{static get requires(){return[on,yn,_0x201340];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x229086){this['editor']['plugins']['get'](on)['adapter']=_0x229086;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0x4bc2cf){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0x4bc2cf);}getSuggestions({skipNotAttached:_0x4034dc=!0x1,toJSON:_0x478a1f=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x4034dc,'toJSON':_0x478a1f});}getSuggestion(_0x4565d5){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x4565d5);}};const Mn=['Pagination'];var On=class extends _0x5d30aa{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x556192=this['editor'];if(_0x556192['config']['define']('trackChangesData.editorCreator',_0x190cd3=>{const _0xe50e9a=_0x556192['model']['document']['getRootNames']()['reduce']((_0x278cb5,_0x49ba50)=>(_0x278cb5[_0x49ba50]='',_0x278cb5),{});return _0x556192['constructor']['create'](_0xe50e9a,_0x190cd3);}),'function'!=typeof _0x556192['config']['get']('trackChangesData')['editorCreator'])throw new _0x2e8152('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x2e9ccc){return Bn(this['editor'],!0x0,_0x2e9ccc);}getDataWithDiscardedSuggestions(_0x119174){return Bn(this['editor'],!0x1,_0x119174);}},wn=class extends _0x5d30aa{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x471fbb){super(_0x471fbb),this['result']='end',_0x471fbb['editing']['view']['_overlayModeHint']='auto',_0x471fbb['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}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 Fn(_0x5311b1){return void 0x0!==_0x5311b1['getRootsAttributes'];}async function Bn(_0x34f4be,_0x48a02e,_0x5e81b5){const _0x114d7b=_0x3e0377(_0x34f4be,Mn);if(_0x114d7b['plugins']['push'](on,wn),Fn(_0x34f4be)){_0x114d7b['roots']=Object['create'](null);for(const _0x4789bf of _0x34f4be['model']['document']['getRootNames']())_0x114d7b['roots'][_0x4789bf]={'modelAttributes':_0x34f4be['getRootAttributes'](_0x4789bf)};}const _0x153116=document['createDocumentFragment'](),_0x522fb1=_0x34f4be['config']['get']('trackChangesData')['editorCreator'],_0xbe5980=await _0x522fb1(_0x114d7b,()=>function(_0x75079e){const _0xa8ea2d=document['createElement']('div');return _0x75079e['appendChild'](_0xa8ea2d),_0xa8ea2d;}(_0x153116));!function(_0x2b9266,_0x31d5f2){const _0x92af2=_0x2b9266['model']['document']['getRootNames']()['reduce']((_0x31337b,_0xa2be50)=>(_0x31337b[_0xa2be50]=_0x2b9266['data']['get']({'rootName':_0xa2be50}),_0x31337b),{}),_0x2a0e36=_0x2b9266['plugins']['get']('Users')['users']['map'](_0x24d7d2=>({'id':_0x24d7d2['id'],'name':_0x24d7d2['name']})),_0x28a0aa=_0x2b9266['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x24d31f=_0x2b9266['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5bcca3=_0x31d5f2['plugins']['get']('Users'),_0x3edd19=_0x31d5f2['plugins']['get']('TrackChangesEditing'),_0x22a02d=_0x31d5f2['plugins']['get']('CommentsRepository');for(const _0x3f412d of _0x22a02d['getCommentThreads']())_0x3f412d['remove']();for(const _0x59e4c4 of _0x2a0e36)_0x5bcca3['getUser'](_0x59e4c4['id'])||_0x5bcca3['addUser'](_0x59e4c4);_0x5bcca3['me']||_0x5bcca3['useAnonymousUser']();for(const _0x1e93cc of _0x24d31f)_0x22a02d['addCommentThread'](_0x1e93cc);for(const _0x302405 of _0x28a0aa)_0x3edd19['addSuggestionData'](_0x302405);_0x31d5f2['data']['set'](_0x92af2);}(_0x34f4be,_0xbe5980),_0xbe5980['execute'](_0x48a02e?'acceptAllSuggestions':'discardAllSuggestions');const _0x39f1cc=Fn(_0xbe5980)?_0xbe5980['getFullData'](_0x5e81b5):_0xbe5980['data']['get'](_0x5e81b5);return await _0xbe5980['destroy'](),_0x39f1cc;}var vn=class extends _0xb2df0c{options;constructor(_0x5759fe,_0x56823a){super(_0x5759fe),this['options']=_0x56823a,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(_0x1fdbbb,_0x6cd548){if(!this['element'])return;const _0x37ec30=[];for(const [_0x33d643,_0x2f6957]of _0x1fdbbb){const _0x6962ee=document['createElement']('div');_0x6962ee['setAttribute']('data-ck-root-name',_0x33d643),_0x6962ee['className']=_0x2f6957['classes']+'\x20ck-track-changes-preview__root-container',_0x6962ee['innerHTML']=_0x2f6957['content'],_0x37ec30['push'](_0x6962ee);}_0x6cd548(this['element'],_0x37ec30),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0x3fbb21{constructor(_0x51650b){super(_0x51650b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0xce8754=this['editor'],_0x49e121=_0xce8754['locale'],_0x2d2839=_0xce8754['plugins']['get']('Dialog');let _0x89424f;const _0x3029f9=function(_0x576afa){const _0x3e5c2d={};if('editables'in _0x576afa['ui']['view']){for(const [_0x136ba4,_0x46deec]of Object['entries'](_0x576afa['ui']['view']['editables']))_0x3e5c2d[_0x136ba4]=_0x46deec['element'];}else _0x3e5c2d[_0x576afa['model']['document']['getRootNames']()[0x0]]=_0x576afa['ui']['view']['editable']['element'];return _0x3e5c2d;}(_0xce8754),_0x239820=function(_0x380dcb){let _0x578f90=0x0;for(const _0x1734af of Object['values'](_0x380dcb))_0x578f90=Math['max'](_0x578f90,_0x1734af['getBoundingClientRect']()['width']);let _0x3c2af6=0x0;for(const _0xfcfe4c of Object['values'](_0x380dcb))_0x3c2af6+=_0xfcfe4c['getBoundingClientRect']()['height'];const _0x584b79=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x578f90,'height':Math['min'](_0x3c2af6,_0x584b79)};}(_0x3029f9);_0x2d2839['show']({'id':'finalContentPreview','title':Mt(_0x49e121,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0x49e121,{'dialogRects':_0x239820}),'onHide':()=>{_0x89424f['detachFromDom']();},'onShow':()=>{_0xce8754['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2396a0=>{const _0x188928=this['_standarizeRootsData'](_0x2396a0,_0xce8754,_0x3029f9);_0x2d2839['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x188928,_0xce8754['config']['get']('trackChanges.preview.renderFunction'));}),_0x89424f=new _0x5270e2(_0x49e121,[_0x2d2839['view']]),_0x89424f['attachToDom'](),_0x89424f['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xce8754['once']('destroy',()=>{_0x89424f['detachFromDom']();});const _0x45017f=_0x2d2839['view']['headerView']['class'];_0x2d2839['view']['headerView']['class']=_0x45017f?_0x45017f+'\x20ck-reset_all':'ck-reset_all',_0x2d2839['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2d2839['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3b2f87=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x311693=_0x3b2f87['previewMode'],_0x51379c={};if('$labels'===_0x311693){for(const _0x418305 of _0x3b2f87['getMergeFieldsIds']())_0x51379c[_0x418305]=_0x3b2f87['getLabel'](_0x418305)||_0x418305;}else{const _0x2eb5e2='$defaultValues'===_0x311693?_0x3b2f87['getDefaultValues']():_0x3b2f87['getDataSetValues'](_0x311693,!0x0);for(const _0x9dce4 of Object['entries'](_0x2eb5e2)){const [_0x434803,_0x227a4e]=_0x9dce4;_0x51379c[_0x434803]=null!==_0x227a4e?_0x227a4e:_0x3b2f87['getLabel'](_0x434803)||_0x434803;}}return{'mergeFieldsData':_0x51379c};}_standarizeRootsData(_0x57510a,_0xb3a186,_0x1e29bf){let _0x43a040;_0x43a040='string'==typeof _0x57510a?{[_0xb3a186['model']['document']['getRootNames']()[0x0]]:_0x57510a}:_0x57510a;const _0x58a7a7=this['_fixMediaEmbeds'](_0x43a040,_0xb3a186);return function(_0x47fa39,_0x5c2abf){for(const [_0x388afc,_0x7776d]of _0x47fa39)_0x7776d['classes']=_0x5c2abf[_0x388afc]['classList']['value']['replace']('ck-focused','');return _0x47fa39;}(this['_sortRoots'](_0xb3a186)['reduce']((_0x20d85a,_0x6179a6)=>(_0x20d85a['push']([_0x6179a6,{'content':_0x58a7a7[_0x6179a6],'classes':''}]),_0x20d85a),[]),_0x1e29bf);}['_fixMediaEmbeds'](_0x43fe1f,_0x4dda8c){if(!_0x4dda8c['plugins']['has']('MediaEmbedEditing'))return _0x43fe1f;const _0x23d3f4=_0x4dda8c['plugins']['get']('MediaEmbedEditing');for(const [_0x38135c,_0x667b56]of Object['entries'](_0x43fe1f)){const _0x331f47=document['createElement']('div');_0x331f47['innerHTML']=_0x667b56,_0x331f47['querySelectorAll']('figure.media')['forEach'](_0x1f8e1b=>{const _0x4da9c3=_0x1f8e1b['querySelector']('oembed');if(_0x4da9c3){const _0x4a013d=_0x4da9c3['getAttribute']('url');if(_0x4a013d){const _0x271a71=_0x23d3f4['registry']['getMediaViewElement'](new ot(_0x4dda8c['editing']['view']['document']),_0x4a013d,{'elementName':'','renderForEditingView':!0x0}),_0x8774d8=document['createElement']('div');_0x8774d8['classList']['add']('ck-media__wrapper'),_0x271a71['render'](_0x8774d8,_0x4dda8c['editing']['view']['domConverter']),_0x4da9c3['replaceWith'](_0x8774d8);}}}),_0x43fe1f[_0x38135c]=_0x331f47['innerHTML'];}return _0x43fe1f;}_sortRoots(_0x527180){if(!function(_0x372ad3){return void 0x0!==_0x372ad3['getRootsAttributes'];}(_0x527180))return _0x527180['model']['document']['getRootNames']();const _0xd8f495=[],_0x448471=new Map();for(const _0x43a3e4 of _0x527180['model']['document']['getRootNames']()){const _0x5bac7d=_0x527180['editing']['view']['getDomRoot'](_0x43a3e4)['getClientRects']()['item'](0x0);_0xd8f495['push'](_0x43a3e4),_0x448471['set'](_0x43a3e4,_0x5bac7d);}return _0xd8f495['sort']((_0x1a000d,_0x32fbde)=>{const _0x43f2db=_0x448471['get'](_0x1a000d),_0x1394ac=_0x448471['get'](_0x32fbde);return _0x43f2db['y']-_0x1394ac['y']||_0x43f2db['x']-_0x1394ac['x'];}),_0xd8f495;}},Un=class extends _0x5d30aa{static get requires(){return[On,_0x5349e9];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d0f05){super(_0x3d0f05),_0x3d0f05['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x3d0f05['config']['define']('trackChanges.preview.renderFunction',(_0x49ae6,_0x5dc43b)=>{for(const _0x21083e of _0x5dc43b)_0x49ae6['appendChild'](_0x21083e);});}};export{_t as AcceptSuggestionCommand,kn as BaseSuggestionThreadView,pt as DiscardSuggestionCommand,Rt as ExecuteOnAllSuggestionsCommand,yt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,St as Suggestion,Ot as SuggestionDescriptionFactory,Cn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,Tt as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};