@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240603.0 → 0.0.0-nightly-20240604.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -6
- package/build/track-changes.js +1 -1
- package/dist/index.js +1 -3
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/types/suggestion.d.ts +1 -1
- package/dist/types/ui/suggestioncontroller.d.ts +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.d.ts +1 -1
- package/src/suggestion.js +1 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +1 -1
- package/src/ui/suggestioncontroller.js +1 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as _0xeaacfa,PendingActions as _0x5b0c8c,icons as _0xb3e85c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4054be,ObservableMixin as _0x4ff9be,uid as _0x107e61,insertToPriorityArray as _0x5aa210,priorities as _0x2a5a1e,logWarning as _0x8dc560,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5a5258,View as _0xb7d5df,ButtonView as _0x1863cb,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x43f0c5,hashObject as _0x25faca,surroundingMarkersDetector as _0x2efde5,trimHtml as _0x582db4,UserView as _0x532e9f,getDateTimeFormatter as _0x493fae,getAllMarkersDomElementsSorted as _0x2e8ef6,sanitizeEditorConfig as _0x5663ba}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1941c9,LiveRange as _0x54c30a,LivePosition as _0x375039}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x50a99b,toWidget as _0x390659}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x43f6f6,set as _0xaf29af,isEqual as _0x2ef343,unset as _0xaa167b,omit as Bt}from'lodash-es';import{Delete as _0x575b39,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4a4105,ShiftEnter as _0x4aa5ce}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x1cfcc2,_0x7b8a1){super(_0x1cfcc2),this['_enabledCommands']=_0x7b8a1,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 _0x5c9e8d of this['editor']['commands']['commands']())_0x5c9e8d['affectsData']&&!this['_enabledCommands']['has'](_0x5c9e8d)&&_0x5c9e8d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x208089 of this['editor']['commands']['commands']())_0x208089['affectsData']&&!this['_enabledCommands']['has'](_0x208089)&&_0x208089['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x571d38,_0xc233c8){super(_0x571d38),this['_suggestions']=_0xc233c8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x510102){const _0x227a2b=this['_suggestions']['get'](_0x510102);if(!_0x227a2b)throw new _0x4054be('track-changes-accept-suggestion-not-found',this);const _0x2157b0=_0x227a2b['getRanges']();this['editor']['model']['canEditAt'](_0x2157b0)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x227a2b);}}class B extends ts{['_suggestions'];constructor(_0x5ded73,_0x3613bd){super(_0x5ded73),this['_suggestions']=_0x3613bd,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x31206e){const _0x254460=this['_suggestions']['get'](_0x31206e);if(!_0x254460)throw new _0x4054be('track-changes-discard-suggestion-not-found',this);const _0x21ab66=_0x254460['getRanges']();this['editor']['model']['canEditAt'](_0x21ab66)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x254460);}}function ss(_0x4537e7){return _0x4537e7['sort']((_0x2871a9,_0x4bc18d)=>'deletion'==_0x2871a9['type']&&'deletion'!=_0x4bc18d['type']?-0x1:'deletion'!=_0x2871a9['type']&&'deletion'==_0x4bc18d['type']?0x1:0x0);}function to(_0x503ce2,_0x6e3ad3){let _0x3be9ec,_0x46fede=0x0;const _0x55070f=[],_0x5082de=_0x6e3ad3['schema'];for(;_0x46fede<_0x503ce2['length'];){const _0x52ee43=_0x503ce2[_0x46fede],_0x97554c=_0x503ce2[_0x46fede+0x1];_0x3be9ec||(_0x3be9ec=_0x6e3ad3['createPositionBefore'](_0x52ee43)),co(_0x6e3ad3,_0x52ee43,_0x97554c)||(_0x55070f['push'](_0x6e3ad3['createRange'](_0x3be9ec,_0x5082de['isObject'](_0x52ee43)?_0x6e3ad3['createPositionAfter'](_0x52ee43):_0x6e3ad3['createPositionAt'](_0x52ee43,'end'))),_0x3be9ec=null),_0x46fede++;}return _0x55070f;}function co(_0xff3bcf,_0x4e002e,_0x4c311a){if(!_0x4c311a)return!0x1;const _0xb3f87a=_0xff3bcf['createPositionAfter'](_0x4e002e),_0x48bc38=_0xff3bcf['createPositionBefore'](_0x4c311a);return _0xb3f87a['isTouching'](_0x48bc38);}function rs(_0x5c903f,_0x418de3,_0x1366f6){for(;_0x1366f6['length'];){const _0x30121f=_0x1366f6['splice'](0x0,0x64);_0x5c903f['change'](()=>{for(const _0x2c54e9 of _0x30121f)_0x2c54e9['isInContent']&&_0x418de3['execute'](_0x2c54e9['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x5ca14b,_0x4448b3,_0x47dae2){super(_0x5ca14b),this['_command']=_0x4448b3,this['_suggestions']=_0x47dae2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x46e4ff=Array['from'](this['_suggestions']['values']())['some'](_0xbf0674=>_0xbf0674['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x46e4ff;}['execute'](){const _0x3f9610=ss(Array['from'](this['_suggestions']['values']()));for(const _0x19d23d of _0x3f9610){const _0x110840=_0x19d23d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x110840))return;}rs(this['editor']['model'],this['_command'],_0x3f9610);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x37fd62,_0x41d258,_0x172210){super(_0x37fd62),this['_command']=_0x41d258,this['_suggestions']=_0x172210,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x51f262=this['editor']['model']['document']['selection'],_0xfd3db2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xba63c1,_0x137366){const _0x46ec9d=Array['from'](_0xba63c1['getRanges']()),_0x16b772=new Set();for(const _0x1ec40e of _0x137366)if(_0x1ec40e['isInContent']){for(const _0x22223a of _0x46ec9d)for(const _0x566450 of _0x1ec40e['getRanges']())(_0x22223a['isIntersecting'](_0x566450)||_0xba63c1['isCollapsed']&&!_0x1ec40e['isMultiRange']&&_0x1ec40e['next']&&_0x566450['end']['isTouching'](_0x22223a['start']))&&_0x16b772['add'](_0x1ec40e);}return _0x16b772;}(_0x51f262,_0xfd3db2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x40cedf=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4b0846 of _0x40cedf){const _0x74f3eb=_0x4b0846['getRanges']();if(!this['editor']['model']['canEditAt'](_0x74f3eb))return;}rs(this['editor']['model'],this['_command'],_0x40cedf);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4ff9be(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x307c60,_0x350b7a){super(),this['id']=_0x350b7a['id'],this['type']=_0x350b7a['type'],this['subType']=_0x350b7a['subType']||null,this['author']=_0x350b7a['author'],this['creator']=_0x350b7a['creator']||_0x350b7a['author'],this['isExternal']=Boolean(_0x350b7a['attributes']&&_0x350b7a['attributes']['@external']),this['data']=null,this['_model']=_0x307c60,this['_onAccept']=_0x350b7a['onAccept'],this['_onDiscard']=_0x350b7a['onDiscard'],this['_onAttributesChange']=_0x350b7a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x350b7a['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x2e8bdb=this;for(;_0x2e8bdb['previous'];)_0x2e8bdb=_0x2e8bdb['previous'];return _0x2e8bdb;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x5dcc88){this['_markerNames']['add'](_0x5dcc88);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xc4eb99=>this['_model']['markers']['get'](_0xc4eb99))['filter'](_0x172c93=>_0x172c93);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x64ce28=>{for(const _0x1e39cd of this['getMarkers']())_0x64ce28['removeMarker'](_0x1e39cd);}),this['_markerNames']['clear']();}['removeMarker'](_0x2caad3){this['_model']['change'](_0x3f5bfd=>{_0x3f5bfd['removeMarker'](_0x2caad3);}),this['_markerNames']['delete'](_0x2caad3);}['addRange'](_0x2c43ec){const _0x144805='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x144805),this['_model']['change'](_0x3c6b39=>{_0x3c6b39['addMarker'](_0x144805,{'range':_0x2c43ec,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x6a5ef5){for(const _0x55f7e8 of this['getRanges']())if(_0x55f7e8['isIntersecting'](_0x6a5ef5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x48b65b=>_0x48b65b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1affa4,_0x44c5e3)=>[..._0x1affa4,..._0x44c5e3['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1163ac=this['getRanges']();if(0x1!=_0x1163ac['length'])return null;const _0x104637=_0x1163ac[0x0],_0x35ef1e=_0x104637['start']['nodeAfter'],_0x3cefaa=_0x104637['end']['nodeBefore'];return _0x35ef1e instanceof _0x1941c9?_0x35ef1e!=_0x3cefaa?null:_0x35ef1e: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 _0x9d8691=[];let _0x3223ca=this['head'];for(;_0x3223ca;)_0x9d8691['push'](_0x3223ca),_0x3223ca=_0x3223ca['next'];return _0x9d8691;}['setAttribute'](_0x1b101a,_0x203b30){const _0x48baf8=_0x43f6f6(this['attributes']);_0xaf29af(_0x48baf8,_0x1b101a,_0x203b30),_0x2ef343(_0x48baf8,this['attributes'])||(this['attributes']=_0x48baf8,this['_onAttributesChange'](_0x48baf8));}['removeAttribute'](_0x1cc488){const _0x369f25=_0x43f6f6(this['attributes']);_0xaa167b(_0x369f25,_0x1cc488),_0x2ef343(_0x369f25,this['attributes'])||(this['attributes']=_0x369f25,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 _0x107e61()['substr'](0x1,0x5);}}function o(_0x484a0e,_0x4f0aa9,_0x1b7888){const t=_0x484a0e['t'];switch(_0x4f0aa9){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x1b7888);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1b7888);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1b7888);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1b7888);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1b7888);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',_0x1b7888);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1b7888);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1b7888);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1b7888);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1b7888);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1b7888);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1b7888);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1b7888);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1b7888);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1b7888);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1b7888);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1b7888);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1b7888);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1b7888);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1b7888);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1b7888);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1b7888);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1b7888);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'},_0x1b7888);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1b7888);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1b7888);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1b7888);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1b7888);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1b7888);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x1b7888);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1b7888);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1b7888);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1b7888);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1b7888);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x1b7888);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1b7888);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'},_0x1b7888);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x1b7888);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1b7888);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'},_0x1b7888);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1b7888);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'},_0x1b7888);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1b7888);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1b7888);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1b7888);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1b7888);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x4f0aa9;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1bb7b4,_0x13bc5c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1bb7b4,this['_locale']=_0x13bc5c;}['getDescriptions'](_0x506c8c){const _0x54f374=[],_0x497801=new Set(),_0x208895=new Set();for(let _0xd2fcfb=0x0;_0xd2fcfb<_0x506c8c['length'];_0xd2fcfb++){const _0x3e9f73=_0x506c8c[_0xd2fcfb];if(!_0x3e9f73['isInContent'])continue;const _0x3202fb=this['_handleCustomCallbackDescription'](_0x3e9f73);if(_0x3202fb){if(null!=_0x3e9f73['subType']){if(_0x497801['has'](_0x3e9f73['subType']))continue;_0x497801['add'](_0x3e9f73['subType']);}_0x54f374['push'](_0x3202fb);}else{if('attribute'!=_0x3e9f73['type'])'insertion'!=_0x3e9f73['type']&&'deletion'!=_0x3e9f73['type']||this['_handleInsertRemoveSuggestionDescription'](_0x54f374,_0x3e9f73,_0x506c8c[_0xd2fcfb+0x1]);else{const _0x852ddd=_0x3e9f73['data']['key'];if(_0x208895['has'](_0x852ddd))continue;_0x208895['add'](_0x3e9f73['data']['key']),_0x852ddd==m?this['_handleRenameSuggestionDescription'](_0x54f374,_0x3e9f73):this['_handleAttributeSuggestionDescription'](_0x54f374,_0x3e9f73);}}}return this['_resolveDescriptionItems'](_0x54f374);}['registerDescriptionCallback'](_0x51bab5){this['_customCallbacks']['push'](_0x51bab5);}['registerElementLabel'](_0x19bd7a,_0x2b3389,_0x5837da=_0x2a5a1e['normal']){'function'==typeof _0x19bd7a?_0x5aa210(this['_itemLabelsCallbacks'],{'matchingCallback':_0x19bd7a,'label':_0x2b3389,'priority':_0x5837da}):this['_itemLabels']['set'](_0x19bd7a,_0x2b3389);}['registerAttributeLabel'](_0x42648d,_0x2726be){this['_attributeLabels']['set'](_0x42648d,_0x2726be);}['getItemLabel'](_0x507b37,_0x518b5d=0x1){let _0x37a8a5;for(const _0x2362dc of this['_itemLabelsCallbacks'])if(_0x2362dc['matchingCallback'](_0x507b37)){_0x37a8a5=_0x2362dc['label'];break;}return _0x37a8a5||(_0x37a8a5=this['_itemLabels']['get'](_0x507b37['name'])),_0x37a8a5?_0x37a8a5(_0x518b5d):0x1!==_0x518b5d?_0x518b5d+'\x20'+_0x507b37['name']+'s':''+_0x507b37['name'];}['_addDescriptionItems'](_0x1a0062,_0x150a1c){const _0x353de7=_0x150a1c['getFirstRange']()['getWalker'](),_0x4f8dd0='insertion'==_0x150a1c['type']?'add':'remove';for(const _0x5261af of _0x353de7){const _0x15699a=_0x5261af['item'],_0x5444b6=_0x1a0062[_0x1a0062['length']-0x1];if(_0x15699a['is']('$textProxy'))_0x5444b6&&_0x5444b6['type']['indexOf']('Container')>-0x1&&_0x1a0062['pop'](),_0x5444b6&&'text'==_0x5444b6['type']?_0x5444b6[_0x4f8dd0]+=_0x15699a['data']:_0x1a0062['push']({'type':'text','add':'add'==_0x4f8dd0?_0x15699a['data']:'','remove':'remove'==_0x4f8dd0?_0x15699a['data']:''});else{if(this['_schema']['isObject'](_0x15699a)){const _0x316bbc=_0x15699a;if(_0x5444b6&&_0x5444b6['type']['indexOf']('Container')>-0x1&&_0x1a0062['pop'](),'elementEnd'==_0x5261af['type'])continue;_0x5444b6&&_0x5444b6['type']==_0x4f8dd0+'Object'&&_0x5444b6['element']['name']==_0x316bbc['name']?_0x5444b6['quantity']++:_0x1a0062['push']({'type':_0x4f8dd0+'Object','element':_0x316bbc,'quantity':0x1}),_0x353de7['skip'](_0x505dda=>!('elementEnd'==_0x505dda['type']&&_0x505dda['item']==_0x15699a));}else{if(this['_schema']['checkChild'](_0x15699a,'$text')||_0x15699a['is']('element','softBreak')){const _0x563b0e=_0x15699a;if('add'==_0x4f8dd0&&'elementStart'==_0x5261af['type']||'remove'==_0x4f8dd0&&'elementEnd'==_0x5261af['type'])continue;if(_0x5444b6&&-0x1==_0x5444b6['type']['indexOf']('Container')){'text'==_0x5444b6['type']&&(_0x5444b6[_0x4f8dd0]+='\x0a');continue;}let _0x4d3b49;if(_0x4d3b49='add'==_0x4f8dd0?_0x563b0e['nextSibling']&&!this['_schema']['isObject'](_0x563b0e['nextSibling'])?_0x563b0e['nextSibling']:null:_0x563b0e['previousSibling']&&!this['_schema']['isObject'](_0x563b0e['previousSibling'])?_0x563b0e['previousSibling']:null,_0x563b0e['isEmpty']||_0x4d3b49&&_0x4d3b49['isEmpty']){const _0x249364=_0x4d3b49&&_0x4d3b49['isEmpty']?_0x4d3b49:_0x563b0e;_0x5444b6&&_0x5444b6['type']==_0x4f8dd0+'EmptyContainer'&&_0x5444b6['element']['name']==_0x249364['name']?_0x5444b6['quantity']++:_0x1a0062['push']({'type':_0x4f8dd0+'EmptyContainer','element':_0x249364,'quantity':0x1});}else _0x1a0062['push']({'type':_0x4f8dd0+'Container','element':_0x563b0e});}}}}}['_resolveDescriptionItems'](_0x103f87){const _0x123cc9=this['_locale'],_0x512bf1=[],_0x4aaa8f=[],_0x47b141=[];for(const _0x44ee4f of _0x103f87)switch(_0x44ee4f['type']){case'text':if(_0x44ee4f['add']=_0x44ee4f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x44ee4f['remove']=_0x44ee4f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x44ee4f['add']&&''!=_0x44ee4f['remove']){_0x512bf1['push']({'type':'replace','content':o(_0x123cc9,'REPLACE_TEXT',['\x22'+_0x44ee4f['remove']+'\x22','\x22'+_0x44ee4f['add']+'\x22'])});continue;}if(null!=_0x44ee4f['add']['match'](/^ +$/)){_0x512bf1['push']({'type':'insertion','content':o(_0x123cc9,'*Insert:*\x20%0',o(_0x123cc9,'ELEMENT_SPACE',_0x44ee4f['add']['length']))});continue;}if(null!=_0x44ee4f['remove']['match'](/^ +$/)){_0x512bf1['push']({'type':'deletion','content':o(_0x123cc9,'*Remove:*\x20%0',o(_0x123cc9,'ELEMENT_SPACE',_0x44ee4f['remove']['length']))});continue;}if(''!=_0x44ee4f['add']){_0x512bf1['push']({'type':'insertion','content':o(_0x123cc9,'*Insert:*\x20%0','\x22'+_0x44ee4f['add']+'\x22')});continue;}_0x512bf1['push']({'type':'deletion','content':o(_0x123cc9,'*Remove:*\x20%0','\x22'+_0x44ee4f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x512bf1['push']({'type':'insertion','content':o(_0x123cc9,'*Insert:*\x20%0',this['getItemLabel'](_0x44ee4f['element'],_0x44ee4f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x512bf1['push']({'type':'deletion','content':o(_0x123cc9,'*Remove:*\x20%0',this['getItemLabel'](_0x44ee4f['element'],_0x44ee4f['quantity']))});continue;case'addContainer':_0x512bf1['push']({'type':'insertion','content':o(_0x123cc9,'*Split:*\x20%0',this['getItemLabel'](_0x44ee4f['element'],_0x44ee4f['quantity']))});continue;case'removeContainer':_0x512bf1['push']({'type':'deletion','content':o(_0x123cc9,'*Merge:*\x20%0',this['getItemLabel'](_0x44ee4f['element'],_0x44ee4f['quantity']))});continue;case'addFormat':_0x4aaa8f['push'](_0x44ee4f['key']);continue;case'removeFormat':_0x47b141['push'](_0x44ee4f['key']);continue;default:_0x512bf1['push'](_0x44ee4f);}if(_0x4aaa8f['length']){const _0x40dfe8=_0x4aaa8f['map'](_0x304efb=>this['_attributeLabels']['has'](_0x304efb)?this['_attributeLabels']['get'](_0x304efb):_0x304efb)['join'](',\x20');_0x512bf1['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x40dfe8)});}if(_0x47b141['length']){const _0x5ab53d=_0x47b141['map'](_0x569e88=>this['_attributeLabels']['has'](_0x569e88)?this['_attributeLabels']['get'](_0x569e88):_0x569e88)['join'](',\x20');_0x512bf1['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5ab53d)});}return _0x512bf1;}['_handleCustomCallbackDescription'](_0x57d5a6){for(const _0x3c92f1 of this['_customCallbacks']){const _0x5db415=_0x3c92f1(_0x57d5a6);if(_0x5db415&&'type'in _0x5db415)return _0x5db415;}}['_handleAttributeSuggestionDescription'](_0x183d78,_0x257a5a){const _0x16a6d1=_0x257a5a['data'],_0x30deee=void 0x0===_0x16a6d1['newValue']?'removeFormat':'addFormat';_0x183d78['push']({'type':_0x30deee,'key':_0x16a6d1['key']});}['_handleRenameSuggestionDescription'](_0x566b28,_0x192bd3){_0x566b28['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x192bd3['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x521283,_0x1eef4c,_0x3ecccb){if(this['_addDescriptionItems'](_0x521283,_0x1eef4c),_0x3ecccb&&_0x3ecccb['getFirstRange']()&&!_0x1eef4c['getFirstRange']()['end']['isEqual'](_0x3ecccb['getFirstRange']()['start'])){const _0x8b7039=_0x521283[_0x521283['length']-0x1],_0x56c9ba='insertion'==_0x1eef4c['type']?'add':'remove';_0x8b7039&&'text'==_0x8b7039['type']&&(_0x8b7039[_0x56c9ba]+='\x0a');}}}class E extends _0xeaacfa{['afterInit'](){const _0x1a880f=this['editor'],_0xfb957=_0x1a880f['plugins']['get']('TrackChangesEditing');_0x1a880f['commands']['get']('showAIAssistant')&&_0xfb957['enableCommand']('showAIAssistant');}}class V extends _0xeaacfa{['afterInit'](){const _0x4ae81d=this['editor'],_0x2e8a2d=_0x4ae81d['locale'];if(!_0x4ae81d['plugins']['has']('AlignmentEditing'))return;const _0x4f3983=_0x4ae81d['plugins']['get']('TrackChangesEditing');_0x4f3983['enableDefaultAttributesIntegration']('alignment'),_0x4f3983['registerBlockAttribute']('alignment'),_0x4f3983['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2e8a2d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f75e1=this['editor'],_0xeedb99=_0x4f75e1['locale'];_0x4f75e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x511bb8=>{if('formatBlock'!=_0x511bb8['type'])return;const {data:_0x515bc5}=_0x511bb8;if(_0x515bc5&&'alignment'==_0x515bc5['commandName']){const _0x4f66a7=_0x515bc5['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xeedb99,'*Format:*\x20%0',function(_0xf5ea8a){switch(_0xf5ea8a){case'left':return o(_0xeedb99,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xeedb99,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xeedb99,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xeedb99,'FORMAT_JUSTIFY_TEXT');}}(_0x4f66a7))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0xeaacfa{['afterInit'](){const _0xaaedcc=this['editor'],_0x27a811=_0xaaedcc['plugins']['get']('TrackChangesEditing'),_0xd25d37=_0xaaedcc['locale'];for(const _0xfda45 of ti){if(!_0xaaedcc['plugins']['has'](_0xfda45))continue;const _0x591b87=_0xfda45['slice'](0x0,-0x7)['toLowerCase'](),_0x409e2b='FORMAT_'+_0x591b87['toUpperCase']();_0x27a811['enableDefaultAttributesIntegration'](_0x591b87),_0x27a811['registerInlineAttribute'](_0x591b87),_0x27a811['descriptionFactory']['registerAttributeLabel'](_0x591b87,o(_0xd25d37,_0x409e2b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ca9fc=this['editor'],_0x43008a=_0x2ca9fc['locale'],_0x449ab9=_0x2ca9fc['plugins']['get']('TrackChangesEditing');function _0x26aedc(_0x1ef3cc,_0x258a7e){_0x449ab9['descriptionFactory']['registerDescriptionCallback'](_0x2f1453=>{if('formatInline'!=_0x2f1453['type'])return;const {data:_0x47a854}=_0x2f1453;return _0x47a854&&_0x47a854['commandName']===_0x1ef3cc?_0x47a854['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x43008a,'*Format:*\x20%0',_0x258a7e)}:{'type':'format','content':o(_0x43008a,'*Remove\x20format:*\x20%0',_0x258a7e)}:void 0x0;});}_0x26aedc('bold',o(_0x43008a,'FORMAT_BOLD')),_0x26aedc('italic',o(_0x43008a,'FORMAT_ITALIC')),_0x26aedc('underline',o(_0x43008a,'FORMAT_UNDERLINE')),_0x26aedc('code',o(_0x43008a,'FORMAT_CODE')),_0x26aedc('strikethrough',o(_0x43008a,'FORMAT_STRIKETHROUGH')),_0x26aedc('subscript',o(_0x43008a,'FORMAT_SUBSCRIPT')),_0x26aedc('superscript',o(_0x43008a,'FORMAT_SUPERSCRIPT'));}}class O extends _0xeaacfa{['afterInit'](){const _0x3f95da=this['editor'],_0x58b0b1=_0x3f95da['locale'];if(!_0x3f95da['plugins']['has']('BlockQuoteEditing'))return;const _0x103c87=_0x3f95da['plugins']['get']('TrackChangesEditing'),_0x20f950=this['editor']['commands']['get']('blockQuote');_0x103c87['enableCommand']('blockQuote',(_0x2a40e4,_0x3d34ea={})=>{const _0x529fb9=this['editor']['model']['document']['selection'],_0xaf67e5=_0x3d34ea&&void 0x0!==_0x3d34ea['forceValue']?_0x3d34ea['forceValue']:!_0x20f950['value'];let _0x3ccd36=[];if(_0xaf67e5){const _0x4fb00b=Array['from'](_0x529fb9['getSelectedBlocks']())['filter'](_0x3a1bdc=>oo(_0x3a1bdc)||function(_0x4cfb0f,_0x1fd9d8){const _0x9cd0f8=_0x1fd9d8['checkChild'](_0x4cfb0f['parent'],'blockQuote'),_0x47d672=_0x1fd9d8['checkChild'](['$root','blockQuote'],_0x4cfb0f);return _0x9cd0f8&&_0x47d672;}(_0x3a1bdc,this['editor']['model']['schema']));_0x3ccd36=to(_0x4fb00b,_0x3f95da['model']);}else{const _0xdc1acf=Array['from'](_0x529fb9['getSelectedBlocks']())['filter'](_0x14febc=>oo(_0x14febc));_0x3ccd36=to(_0xdc1acf,_0x3f95da['model']);}_0x3f95da['model']['change'](()=>{for(const _0x5d0c5b of _0x3ccd36)_0x103c87['markBlockFormat'](_0x5d0c5b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xaf67e5}]});});}),_0x103c87['descriptionFactory']['registerDescriptionCallback'](_0x440430=>{const {data:_0x2d69b4}=_0x440430;if(_0x2d69b4&&'blockQuote'==_0x2d69b4['commandName']){const _0x2899ef=o(_0x58b0b1,'ELEMENT_BLOCK_QUOTE');return _0x2d69b4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58b0b1,'*Set\x20format:*\x20%0',_0x2899ef)}:{'type':'format','content':o(_0x58b0b1,'*Remove\x20format:*\x20%0',_0x2899ef)};}});}}function oo(_0x1e2ee0){return'blockQuote'==_0x1e2ee0['parent']['name'];}class G extends _0xeaacfa{['afterInit'](){const _0x36b7b0=this['editor'];_0x36b7b0['plugins']['has']('CaseChange')&&(_0x36b7b0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x36b7b0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x36b7b0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0xeaacfa{['afterInit'](){const _0x4bc7fa=this['editor'];_0x4bc7fa['commands']['get']('ckbox')&&_0x4bc7fa['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xeaacfa{['afterInit'](){const _0x68d7a4=this['editor'];if(!_0x68d7a4['plugins']['has']('CodeBlock'))return;const _0x105aad=_0x68d7a4['plugins']['get']('TrackChangesEditing'),_0x23ddf8=_0x68d7a4['locale'],_0x328b74=_0x68d7a4['config']['get']('codeBlock')['languages'],_0x571505=_0x68d7a4['commands']['get']('codeBlock');_0x105aad['enableCommand']('indentCodeBlock'),_0x105aad['enableCommand']('outdentCodeBlock'),_0x105aad['enableCommand']('codeBlock',(_0x3c9916,_0x1385b3={})=>{const _0x1060a4=_0x68d7a4['model'],_0x1205b8=_0x68d7a4['model']['document']['selection'],_0x57d31d=_0x1385b3&&void 0x0!==_0x1385b3['forceValue']?_0x1385b3['forceValue']:!_0x571505['value'];let _0x490382;_0x1385b3['language']||(_0x1385b3['language']=_0x328b74[0x0]['language']),_0x490382=_0x57d31d?Array['from'](_0x1205b8['getSelectedBlocks']())['filter'](_0x4ba5fe=>eo(_0x4ba5fe)||function(_0x1f7155,_0x350173){if(_0x1f7155['is']('rootElement')||_0x350173['isLimit'](_0x1f7155))return!0x1;return _0x350173['checkChild'](_0x1f7155['parent'],'codeBlock');}(_0x4ba5fe,_0x1060a4['schema'])):Array['from'](_0x1205b8['getSelectedBlocks']())['filter'](_0x24acdd=>eo(_0x24acdd));const _0x1d1675=to(_0x490382,_0x1060a4);_0x1060a4['change'](()=>{for(const _0x28adf7 of _0x1d1675)_0x105aad['markBlockFormat'](_0x28adf7,{'commandName':'codeBlock','commandParams':[{..._0x1385b3,'forceValue':_0x57d31d}],'formatGroupId':'blockName'});});}),(_0x105aad['descriptionFactory']['registerElementLabel']('codeBlock',_0x5a94a1=>o(_0x23ddf8,'ELEMENT_CODE_BLOCK',_0x5a94a1)),_0x105aad['descriptionFactory']['registerDescriptionCallback'](_0x41bed4=>{if('formatBlock'!=_0x41bed4['type'])return;const _0x353b1d=_0x23ddf8['t'],{data:_0x1d6548}=_0x41bed4;if(!_0x1d6548||'codeBlock'!=_0x1d6548['commandName'])return;const _0x355258=_0x1d6548['commandParams'][0x0]['language'],_0x3c0100=_0x353b1d(_0x328b74['find'](_0x4fc7a5=>_0x4fc7a5['language']===_0x355258)['label'])['toLowerCase']();return _0x1d6548['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23ddf8,'*Set\x20format:*\x20%0',o(_0x23ddf8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3c0100+')')}:{'type':'format','content':o(_0x23ddf8,'*Remove\x20format:*\x20%0',o(_0x23ddf8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4b13a6){return'codeBlock'==_0x4b13a6['name'];}class H extends _0xeaacfa{['afterInit'](){const _0x50b13b=this['editor'];if(!_0x50b13b['plugins']['has']('CommentsEditing'))return;_0x50b13b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x11b5a8,_0x5e7b0d,_0xac149c){const _0x5c9093=[];for(const _0x326724 of _0x5e7b0d['getItems']())_0x326724['hasAttribute'](_0x11b5a8)&&_0x5c9093['push'](_0xac149c['createRangeOn'](_0x326724));return _0x5c9093;}function _e(_0x2189f3,_0x30399d,{showActiveMarker:_0x1ca9cf=!0x0}={}){const _0x3aba94=_0x2189f3['plugins']['get']('TrackChangesEditing');return(_0x57440e,_0x109d90,_0x247b9c)=>{if(!_0x247b9c['consumable']['test'](_0x109d90['markerRange'],_0x57440e['name']))return;const _0x416096=_0x109d90['markerRange']['getWalker'](),_0x5692c0=_0x109d90['markerRange']['start'],_0x1c2b80=_0x2189f3['model']['schema'];let _0x4fa9a4=null,_0x44e71b=null,_0x55c93d=!0x1,_0x36cde3=!0x1;for(const _0x130c68 of _0x416096){const _0x28f6d4=_0x130c68['item'];_0x55c93d=_0x55c93d||_0x1c2b80['isContent'](_0x28f6d4);const _0xfe75aa=_0x247b9c['mapper']['toViewElement'](_0x28f6d4);if(_0xfe75aa&&_0xfe75aa['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x130c68['type']&&(_0x1c2b80['isBlock'](_0x28f6d4)&&!_0x1c2b80['isLimit'](_0x28f6d4)&&(_0x28f6d4['nextSibling']||_0x5692c0['isAtEnd']?_0x4fa9a4&&_0x4fa9a4['parent']==_0x28f6d4||(_0x4fa9a4=_0x28f6d4,_0x202fa5(_0x130c68['previousPosition']),_0x36cde3=!0x0):_0x44e71b=_0x44e71b||_0x130c68['previousPosition']));}function _0x202fa5(_0x31556e){const _0x2807ca=_0x247b9c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x30399d}),_0x30eb5a=_0x247b9c['mapper']['toViewPosition'](_0x31556e);_0x1ca9cf&&_0x3aba94['activeMarkers']['includes'](_0x109d90['markerName'])&&_0x247b9c['writer']['addClass']('ck-suggestion-marker--active',_0x2807ca),_0x247b9c['writer']['insert'](_0x30eb5a,_0x2807ca),_0x247b9c['mapper']['bindElementToMarker'](_0x2807ca,_0x109d90['markerName']);}_0x55c93d||_0x36cde3||!_0x44e71b||_0x202fa5(_0x44e71b);};}class q extends _0xeaacfa{static get['requires'](){return[_0x575b39];}['init'](){const _0x5c74bc=this['editor'],_0x5bc0a1=_0x5c74bc['plugins']['get']('TrackChangesEditing');_0x5bc0a1['enableCommand']('delete');const _0x661f1=_0x5c74bc['commands']['get']('deleteForward');_0x5bc0a1['enableCommand']('deleteForward',(_0x3b3c2a,_0x1ee319={})=>{const _0x17391d=_0x5c74bc['model']['createSelection'](_0x5c74bc['model']['document']['selection']);_0x17391d['isCollapsed']&&_0x5c74bc['model']['modifySelection'](_0x17391d,{'direction':'forward','unit':_0x1ee319['unit']});const _0x5915df=_0x17391d['getFirstRange'](),_0x2f303f=_0x54c30a['fromRange'](_0x5915df);let _0x5bdfb7;_0x3b3c2a(_0x1ee319),_0x5bdfb7='$graveyard'==_0x2f303f['root']['rootName']?_0x5c74bc['model']['createRange'](_0x5915df['start']):_0x5c74bc['model']['createRange'](_0x2f303f['start'],_0x2f303f['end']),_0x2f303f['detach'](),_0x5c74bc['model']['enqueueChange'](_0x661f1['buffer']['batch'],_0x270be1=>{_0x661f1['buffer']['lock'](),_0x270be1['setSelection'](_0x270be1['createRange'](_0x5bdfb7['end'])),_0x661f1['buffer']['unlock']();});}),_0x5c74bc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5c74bc,'merge'),{'priority':'high'}),_0x5c74bc['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x28ff5e,_0x4ccda5,_0x30fed7)=>{_0x30fed7['options']['showSuggestionHighlights']&&_e(_0x5c74bc,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x28ff5e,_0x4ccda5,_0x30fed7);},{'priority':'high'}),_0x5c74bc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1620f2,_0x2b926a,_0x55b398)=>{const _0x107a16=_0x55b398['mapper']['markerNameToElements'](_0x2b926a['markerName']);if(_0x107a16){for(const _0x560eba of _0x107a16)_0x560eba['is']('uiElement')&&(_0x55b398['mapper']['unbindElementFromMarkerName'](_0x560eba,_0x2b926a['markerName']),_0x55b398['writer']['remove'](_0x560eba));}},{'priority':'high'});}}class z extends _0xeaacfa{['afterInit'](){const _0x238b6e=this['editor'];if(!_0x238b6e['plugins']['has']('ListEditing'))return;const _0x3a380f=_0x238b6e['locale'],_0x5ead5d=_0x238b6e['plugins']['get']('TrackChangesEditing'),_0x64539d=_0x238b6e['plugins']['has']('TodoListEditing'),_0xb34f00=!!_0x238b6e['config']['get']('list.multiBlock');function _0x2c2f62(_0x907e65){return{'type':'format','content':''+o(_0x3a380f,'*Set\x20format:*\x20%0',_0x907e65)};}function _0x3df9cf(_0x1624f1){return{'type':'format','content':''+o(_0x3a380f,'*Remove\x20format:*\x20%0',_0x1624f1)};}_0x5ead5d['enableDefaultAttributesIntegration']('numberedList'),_0x5ead5d['enableDefaultAttributesIntegration']('bulletedList'),_0x5ead5d['enableDefaultAttributesIntegration']('customNumberedList'),_0x5ead5d['enableDefaultAttributesIntegration']('customBulletedList'),_0x5ead5d['enableDefaultAttributesIntegration']('indentList'),_0x5ead5d['enableDefaultAttributesIntegration']('outdentList'),_0x5ead5d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5ead5d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5ead5d['registerBlockAttribute']('listItemId'),_0x5ead5d['registerBlockAttribute']('listType'),_0x5ead5d['registerBlockAttribute']('listIndent'),_0xb34f00&&(_0x5ead5d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5ead5d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x64539d&&(_0x5ead5d['enableDefaultAttributesIntegration']('todoList'),_0x5ead5d['enableDefaultAttributesIntegration']('checkTodoList'),_0x5ead5d['registerBlockAttribute']('todoListChecked'),_0x5ead5d['descriptionFactory']['registerDescriptionCallback'](_0x4c7fe9=>{const {data:_0x5dcd68}=_0x4c7fe9;if(_0x5dcd68&&'todoListChecked'==_0x5dcd68['key'])return{'type':'format','content':_0x5dcd68['newValue']?o(_0x3a380f,'*Check\x20item*'):o(_0x3a380f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x539f0e=>{if(_0x539f0e['batch']['isUndo'])return!0x1;let _0x31bbcf=!0x1;const _0x2a5335=_0x5ead5d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c4e47=>'todoListChecked'===_0x5ead5d['_getAttributeKey'](_0x1c4e47));for(const _0x224720 of _0x2a5335){'todo'!=_0x224720['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5ead5d['_findSuggestions'](_0x224720['getFirstRange'](),'attribute')['find'](_0x4a80a7=>'listType'===_0x5ead5d['_getAttributeKey'](_0x4a80a7['suggestion']))||(_0x539f0e['removeMarker'](_0x224720['getFirstMarker']()),_0x31bbcf=!0x0));}return _0x31bbcf;})),_0x5ead5d['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3a380f,'FORMAT_INDENT'));const _0x40199d={'type':'format','content':''};_0x5ead5d['descriptionFactory']['registerDescriptionCallback'](_0x516790=>{const {data:_0x1f3d97}=_0x516790;if(!_0x1f3d97||'listType'!=_0x1f3d97['key'])return;let _0x518cd4=_0x516790['head'];for(;_0x518cd4;){if(_0x518cd4['data']&&(('listStyle'==_0x518cd4['data']['key']||'listMarkerStyle'==_0x518cd4['data']['key'])&&(_0x518cd4['data']['newValue']&&'default'!=_0x518cd4['data']['newValue']||'default'!=_0x518cd4['data']['oldValue']&&!_0x1f3d97['newValue'])||!_0xb34f00&&_0x518cd4['data']['key']==m))return _0x40199d;_0x518cd4=_0x518cd4['next'];}if(null==_0x1f3d97['newValue'])switch(_0x1f3d97['oldValue']){case'bulleted':return _0x3df9cf(o(_0x3a380f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3df9cf(o(_0x3a380f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3df9cf(o(_0x3a380f,'ELEMENT_TODO_LIST'));}switch(_0x1f3d97['newValue']){case'bulleted':return _0x2c2f62(o(_0x3a380f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c2f62(o(_0x3a380f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c2f62(o(_0x3a380f,'ELEMENT_TODO_LIST'));}}),_0x5ead5d['descriptionFactory']['registerDescriptionCallback'](_0x9440d7=>{const {data:_0x540304}=_0x9440d7;if(_0x540304&&'listIndent'==_0x540304['key'])return null==_0x540304['newValue']||null==_0x540304['oldValue']&&0x0==_0x540304['newValue']?_0x40199d:void 0x0;}),_0x5ead5d['descriptionFactory']['registerDescriptionCallback'](_0x1bfe6e=>{if('attribute'!=_0x1bfe6e['type'])return;const {data:_0x7842e}=_0x1bfe6e;if(!_0x7842e||'listItemId'!=_0x7842e['key'])return;const _0xc8f044=le(_0x1bfe6e);return'newValue'==_0xc8f044?{'type':'format','content':o(_0x3a380f,'*Merge:*\x20list\x20item')}:'oldValue'==_0xc8f044?{'type':'format','content':o(_0x3a380f,'*Split:*\x20list\x20item')}:_0x40199d;}),_0x238b6e['model']['document']['registerPostFixer'](_0x1bc157=>this['listItemIdFixer'](_0x1bc157)),_0x238b6e['model']['document']['registerPostFixer'](_0x575fa5=>this['noTrackChangesFixer'](_0x575fa5)),_0x238b6e['model']['document']['registerPostFixer'](_0xee5f15=>this['assureChains'](_0xee5f15)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x21e9c1){if(_0x21e9c1['batch']['isUndo']||!_0x21e9c1['batch']['isLocal'])return!0x1;let _0x46c8b8=!0x1;const _0x15ccae=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cc85f=>_0x5cc85f['data']&&'listItemId'==_0x5cc85f['data']['key'])['filter'](_0x123c81=>_0x123c81['data']['newValue']&&_0x123c81['data']['oldValue']);for(const _0x3bff90 of _0x15ccae)le(_0x3bff90)||(_0x21e9c1['removeMarker'](_0x3bff90['getFirstMarker']()),_0x46c8b8=!0x0);return _0x46c8b8;}['noTrackChangesFixer'](_0x1279a2){if(_0x1279a2['batch']['isUndo']||!_0x1279a2['batch']['isLocal'])return!0x1;const _0x27f463=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x27f463['trackChangesCommand']['value'])return!0x1;let _0x51d91a=!0x1;const _0x140124=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x406b8f=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xa8836d=>'attribute'==_0xa8836d['type'])['filter'](_0x5e4302=>_0x140124['includes'](_0x5e4302['attributeKey']));if(0x0==_0x406b8f['length'])return _0x51d91a;for(const _0x21dabf of _0x406b8f){const _0x5f006d=_0x27f463['_findSuggestions'](_0x21dabf['range'],'attribute')['filter'](_0x20c11d=>!_0x20c11d['meta']['isNextTo'])['map'](_0x51fcbd=>_0x51fcbd['suggestion'])['filter'](_0x4a9a99=>{const _0x711555=_0x27f463['_getAttributeKey'](_0x4a9a99);return _0x140124['includes'](_0x711555);});if(_0x5f006d['length']){for(const _0x13fa97 of _0x5f006d)_0x1279a2['removeMarker'](_0x13fa97['getFirstMarker']());_0x51d91a=!0x0;}}return _0x51d91a;}['assureChains'](_0x814348){if(_0x814348['batch']['isUndo']||!_0x814348['batch']['isLocal'])return!0x1;const _0x481de3=this['editor']['plugins']['get']('TrackChangesEditing');let _0x5924c1=!0x1;const _0x43b1eb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5523d3 of _0x481de3['getSuggestions']({'skipNotAttached':!0x0})){const _0x250557=_0x481de3['_findSuggestions'](_0x5523d3['getFirstRange'](),'attribute')['map'](_0x374ef6=>_0x374ef6['suggestion'])['filter'](_0x1b4d7b=>_0x1b4d7b['data']&&_0x43b1eb['includes'](_0x1b4d7b['data']['key']));if(!_0x250557['length'])continue;const _0x6f997d=_0x250557[0x0]['head']['attributes']['groupId'];if(!_0x250557['every'](_0x5c7ee6=>_0x5c7ee6['attributes']['groupId']===_0x6f997d)){for(const _0xe0be3 of _0x250557)_0x1685ed(_0xe0be3,_0x6f997d)&&(_0x5924c1=!0x0);}}return _0x5924c1;function _0xc7ee02(_0x3f5855,_0x361741){for(const _0x4fcfc4 of _0x481de3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x140c39=>'attribute'==_0x140c39['type']&&_0x140c39['attributes']['groupId']==_0x3f5855))_0x4fcfc4['setAttribute']('groupId',_0x361741);}function _0x1685ed(_0x1987da,_0x2c2a66){let _0x1c1681=_0x1987da['head'],_0x3c4432=!0x1;for(;_0x1c1681;)_0x1c1681['attributes']['groupId']!=_0x2c2a66&&(_0xc7ee02(_0x1c1681['attributes']['groupId'],_0x2c2a66),_0x1c1681['setAttribute']('groupId',_0x2c2a66),_0x3c4432=!0x0),_0x1c1681=_0x1c1681['next'];return _0x3c4432;}}['_supportLegacySuggestions'](){const _0x2eaebb=this['editor'],_0x554b89=_0x2eaebb['locale'],_0x4beb53=_0x2eaebb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4beb53['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x50dfb4,_0x16e734){const _0x39ff46=[];for(let _0x4014d8 of _0x50dfb4)_0x4014d8['start']['nodeAfter']===_0x4014d8['end']['parent']&&(_0x4014d8=_0x2eaebb['model']['createRange'](_0x2eaebb['model']['createPositionAt'](_0x4014d8['start']['nodeAfter'],0x0))),_0x39ff46['push'](_0x4014d8);_0x2eaebb['model']['change'](_0xfbec96=>{const _0xd07b7c=_0x2eaebb['model']['document']['selection'],_0x504b7a=Array['from'](_0xd07b7c['getRanges']())['map'](_0x45ff0c=>_0x54c30a['fromRange'](_0x45ff0c));_0xfbec96['setSelection'](_0x39ff46),_0x2eaebb['commands']['get'](_0x16e734['commandName'])['refresh'](),_0x16e734['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2eaebb['execute'](_0x16e734['commandName'],..._0x16e734['commandParams']),_0xfbec96['setSelection'](_0x504b7a);for(const _0x439edb of _0x504b7a)_0x439edb['detach']();});}),_0x4beb53['descriptionFactory']['registerElementLabel'](function(_0x974140){const _0x386060=!_0x2eaebb['model']['schema']['isObject'](_0x974140),_0x41815e=_0x974140['previousSibling'],_0x42098d=_0x974140['nextSibling'],_0x567d1c=_0x974140['getAttribute']('listItemId'),_0x57fa7d=!_0x41815e||_0x41815e['getAttribute']('listItemId')!==_0x567d1c,_0x56b1c9=!_0x42098d||_0x42098d['getAttribute']('listItemId')!==_0x567d1c;return _0x386060&&Boolean(_0x567d1c)&&_0x57fa7d&&_0x56b1c9;},_0x3c6922=>o(_0x554b89,'ELEMENT_LIST_ITEM',_0x3c6922));}['_registerLegacyDescription'](){const _0x3ce4c1=this['editor'],_0x50b6fe=_0x3ce4c1['locale'];function _0x2e278c(_0x3553a5){const _0x162df1=_0x3ce4c1['commands']['get']('bulletedList')['value'],_0x14b1a1=_0x3ce4c1['commands']['get']('numberedList')['value'];return'numberedList'===_0x3553a5?_0x162df1:_0x14b1a1;}_0x3ce4c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5da6a0){if('formatBlock'!=_0x5da6a0['type'])return;const {data:_0x2461e8}=_0x5da6a0;if(!_0x2461e8)return;let _0x21cbed,_0x1a0a7d,_0x46e485,_0x179d55;switch(_0x2461e8['commandName']){case'bulletedList':_0x46e485=_0x2461e8['commandParams'][0x0]['forceValue'],_0x179d55=_0x2e278c(_0x2461e8['commandName']),_0x21cbed=_0x46e485?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x179d55&&_0x3ce4c1['config']['get']('list.multiBlock')||(_0x21cbed='*Change\x20to:*\x20%0'),_0x1a0a7d={'type':'format','content':o(_0x50b6fe,_0x21cbed,o(_0x50b6fe,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x46e485=_0x2461e8['commandParams'][0x0]['forceValue'],_0x179d55=_0x2e278c(_0x2461e8['commandName']),_0x21cbed=_0x46e485?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x179d55&&_0x3ce4c1['config']['get']('list.multiBlock')||(_0x21cbed='*Change\x20to:*\x20%0'),_0x1a0a7d={'type':'format','content':o(_0x50b6fe,_0x21cbed,o(_0x50b6fe,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x21cbed='*Indent:*\x20%0',_0x1a0a7d={'type':'format','content':o(_0x50b6fe,_0x21cbed,o(_0x50b6fe,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x21cbed=function(_0x403095){const _0x3e6c9d=_0x403095['getFirstRange']();let _0x9b6d2e=_0x3e6c9d['start']['nodeAfter'];for(;_0x9b6d2e&&_0x3e6c9d['containsItem'](_0x9b6d2e);){if(_0x9b6d2e['getAttribute']('listIndent')>0x0)return!0x1;_0x9b6d2e=_0x9b6d2e['nextSibling'];}return!0x0;}(_0x5da6a0)?o(_0x50b6fe,'*Format:*\x20remove\x20from\x20%0',o(_0x50b6fe,function(_0x534917){return'ELEMENT_'+_0x534917['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5da6a0))):o(_0x50b6fe,'*Outdent:*\x20%0',o(_0x50b6fe,'ELEMENT_LIST_ITEM')),_0x1a0a7d={'type':'format','content':_0x21cbed};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2461e8['multipleBlocks']&&(_0x21cbed='*Merge:*\x20%0',_0x1a0a7d={'type':'deletion','content':o(_0x50b6fe,_0x21cbed,o(_0x50b6fe,'ELEMENT_LIST_ITEM'))});}return _0x1a0a7d;});}}function le(_0x2a53c1){let _0x332b12=_0x2a53c1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x332b12;){const _0x2f25ad=_0x332b12['getAttribute']('listItemId');if(!_0x2f25ad)return!0x1;if(_0x2f25ad==_0x2a53c1['data']['newValue'])return'newValue';if(_0x2f25ad==_0x2a53c1['data']['oldValue'])return'oldValue';_0x332b12=_0x332b12['previousSibling'];}return!0x1;}class ue extends _0xeaacfa{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1ccd0a=this['editor']['config']['get']('list.properties'),_0x17a175=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ccd0a['styles']&&(_0x17a175['enableDefaultAttributesIntegration']('listStyle'),_0x17a175['registerBlockAttribute']('listStyle')),_0x1ccd0a['reversed']&&(_0x17a175['enableDefaultAttributesIntegration']('listReversed'),_0x17a175['registerBlockAttribute']('listReversed')),_0x1ccd0a['startIndex']&&(_0x17a175['enableDefaultAttributesIntegration']('listStart'),_0x17a175['registerBlockAttribute']('listStart'));const _0x3703fa={'type':'format','content':''};_0x17a175['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xaca68d=this['editor']['locale'];_0x17a175['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xaca68d,'FORMAT_LIST_REVERSED')),_0x17a175['descriptionFactory']['registerDescriptionCallback'](_0xe2f7b0=>{const {data:_0xb70be8}=_0xe2f7b0;if(_0xb70be8&&'listReversed'==_0xb70be8['key'])return null==_0xb70be8['newValue']||0x0==_0xb70be8['newValue']&&null==_0xb70be8['oldValue']?_0x3703fa:void 0x0;}),_0x17a175['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xaca68d,'FORMAT_LIST_START')),_0x17a175['descriptionFactory']['registerDescriptionCallback'](_0x1a7b52=>{const {data:_0x4ee639}=_0x1a7b52;if(_0x4ee639&&'listStart'==_0x4ee639['key'])return null==_0x4ee639['newValue']||0x1==_0x4ee639['newValue']&&null==_0x4ee639['oldValue']?_0x3703fa:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3ff20f=>{if(_0x3ff20f['batch']['isUndo'])return!0x1;let _0x2e8a60=!0x1;const _0x346b58=_0x17a175['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9389c6=>{const _0x59bc9c=_0x17a175['_getAttributeKey'](_0x9389c6);return'listStart'==_0x59bc9c||'listReversed'==_0x59bc9c;});for(const _0x16de65 of _0x346b58){const _0x569f74=_0x16de65['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x569f74||'customNumbered'==_0x569f74)continue;_0x17a175['_findSuggestions'](_0x16de65['getFirstRange'](),'attribute')['find'](_0x56f242=>'listType'==_0x17a175['_getAttributeKey'](_0x56f242['suggestion']))||(_0x3ff20f['removeMarker'](_0x16de65['getFirstMarker']()),_0x2e8a60=!0x0);}return _0x2e8a60;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x356717){const _0x4dd257=this['editor']['locale'],{data:_0x77758}=_0x356717,_0x2968c8={'type':'format','content':''};if(!_0x77758||'listStyle'!=_0x77758['key'])return;if(!_0x77758['oldValue'])return'default'==_0x77758['newValue']?_0x2968c8:{'type':'format','content':''+o(_0x4dd257,'*Set\x20format:*\x20%0',o(_0x4dd257,this['_getTranslationKeyForListStyle'](_0x77758['newValue'])))};if(!_0x77758['newValue']){if('default'==_0x77758['oldValue'])return _0x2968c8;let _0x3721d8=_0x356717['head'];for(;_0x3721d8;){if(_0x3721d8['data']&&'listType'==_0x3721d8['data']['key']&&_0x3721d8['data']['newValue'])return _0x2968c8;_0x3721d8=_0x3721d8['next'];}return{'type':'format','content':''+o(_0x4dd257,'*Remove\x20format:*\x20%0',o(_0x4dd257,this['_getTranslationKeyForListStyle'](_0x77758['oldValue'])))};}if('default'!=_0x77758['newValue'])return{'type':'format','content':''+o(_0x4dd257,'*Set\x20format:*\x20%0',o(_0x4dd257,this['_getTranslationKeyForListStyle'](_0x77758['newValue'])))};let _0x2dcc76=_0x356717['head'];for(;_0x2dcc76;){if(_0x2dcc76['data']&&'listType'==_0x2dcc76['data']['key']&&_0x2dcc76['data']['newValue']&&_0x2dcc76['data']['oldValue'])return _0x2968c8;_0x2dcc76=_0x2dcc76['next'];}return{'type':'format','content':o(_0x4dd257,'*Set\x20format:*\x20%0',o(_0x4dd257,'ELEMENT_'+_0x356717['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2e84ae=this['editor'],_0x5aec09=_0x2e84ae['locale'];_0x2e84ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20fcce=>{if('formatBlock'!=_0x20fcce['type'])return;const {data:_0x561b78}=_0x20fcce;if(!_0x561b78)return;let _0x69576e,_0x169ad7;switch(_0x561b78['commandName']){case'listStyle':_0x69576e='*Change\x20to:*\x20%0',_0x169ad7={'type':'format','content':o(_0x5aec09,_0x69576e,o(_0x5aec09,this['_getTranslationKeyForListStyle'](_0x561b78['commandParams'][0x0]['type'])))};break;case'listReversed':_0x69576e=_0x561b78['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x169ad7={'type':'format','content':o(_0x5aec09,_0x69576e)};break;case'listStart':_0x69576e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x169ad7={'type':'format','content':o(_0x5aec09,_0x69576e,_0x561b78['commandParams'][0x0]['startIndex'])};}return _0x169ad7;});}['_getTranslationKeyForListStyle'](_0x247248){return'ELEMENT_'+function(_0x5c03d6){if(pe['includes'](_0x5c03d6))return'bulleted';if(ye['includes'](_0x5c03d6))return'numbered';return null;}(_0x247248)['toUpperCase']()+'_LIST_'+_0x247248['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0xeaacfa{static get['requires'](){return[_0x4a4105];}['init'](){const _0x32b663=this['editor'],_0x4f82cf=_0x32b663['plugins']['get']('TrackChangesEditing'),_0xba71e=_0x32b663['commands']['get']('enter');_0x4f82cf['enableCommand']('enter',()=>{_0x32b663['model']['change'](_0x1d5629=>{const _0x5a48cc=_0x32b663['model']['document']['selection'],_0x224943=_0x5a48cc['getFirstPosition'](),_0x203313=_0x54c30a['fromRange'](_0x5a48cc['getFirstRange']());if(_0xba71e['enterBlock'](_0x1d5629)){const _0x339ec5=_0x32b663['model']['createPositionAt'](_0x224943['parent']['nextSibling'],0x0),_0xd3ac31=_0x1d5629['createRange'](_0x224943,_0x339ec5);_0x4f82cf['markInsertion'](_0xd3ac31);}else _0x1d5629['setSelection'](_0x1d5629['createRange'](_0x203313['end']));_0x203313['detach'](),_0xba71e['fire']('afterExecute',{'writer':_0x1d5629});});}),_0x32b663['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x32b663,'split'),{'priority':'high'}),_0x32b663['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xc09576,_0x5efb1c,_0x6cb8df)=>{const _0x1d47ff=_0x6cb8df['mapper']['markerNameToElements'](_0x5efb1c['markerName']);if(_0x1d47ff){for(const _0x4476c6 of _0x1d47ff)_0x4476c6['hasClass']('ck-suggestion-marker-split')&&(_0x6cb8df['mapper']['unbindElementFromMarkerName'](_0x4476c6,_0x5efb1c['markerName']),_0x6cb8df['writer']['remove'](_0x4476c6));}},{'priority':'high'}),_0x32b663['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x25c547,_0x392994,_0x21555a)=>{_0x21555a['options']['showSuggestionHighlights']&&_e(_0x32b663,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x25c547,_0x392994,_0x21555a);},{'priority':'high'});}}class J extends _0xeaacfa{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x625e1e=this['editor']['plugins']['get']('TrackChangesEditing');_0x625e1e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x625e1e['enableCommand']('findNext'),_0x625e1e['enableCommand']('findPrevious'),_0x625e1e['enableCommand']('replace'),_0x625e1e['enableCommand']('replaceAll');}['handleFindCommand'](_0x537227,_0x546935,_0x1c5c72={}){const _0x3ab6aa=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x537227(_0x253ccc=>('string'==typeof _0x546935?_0x3ab6aa['findByTextCallback'](_0x546935,_0x1c5c72):_0x546935)(_0x253ccc)['filter'](_0x10c21c=>!0x1===this['_isInDeletionRange'](_0x10c21c,_0x253ccc['item'])),_0x1c5c72);}['_isInDeletionRange'](_0x582455,_0x129d79){const _0x479ebb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x129d79,_0x582455['start']),this['editor']['model']['createPositionAt'](_0x129d79,_0x582455['end']));for(const _0x2a9495 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x479ebb['getIntersection'](_0x2a9495['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0xeaacfa{['afterInit'](){const _0x557c48=this['editor']['locale'],_0x1a3fec=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1e75ff,commandName:_0x37048a}of ro)this['editor']['plugins']['has'](_0x1e75ff)&&(_0x1a3fec['enableDefaultAttributesIntegration'](_0x37048a),_0x1a3fec['registerInlineAttribute'](_0x37048a));_0x557c48['t'],_0x1a3fec['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x557c48,'FORMAT_FONT_SIZE')),_0x1a3fec['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x557c48,'FORMAT_FONT_FAMILY')),_0x1a3fec['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x557c48,'FORMAT_FONT_COLOR')),_0x1a3fec['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x557c48,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b634b=this['editor'],_0x13a2a6=_0x5b634b['locale'];_0x5b634b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b7ab4=>{const _0x52ae8e=_0x13a2a6['t'];if('formatInline'!=_0x1b7ab4['type'])return;const {data:_0x1203f5}=_0x1b7ab4;if(null!=_0x1203f5){if('fontSize'==_0x1203f5['commandName']){const _0x390e87=_0x1203f5['commandParams'][0x0]['value'];if(_0x390e87){const _0x4e9352=_0x52ae8e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1702fe=>_0x1702fe['model']==_0x390e87)['title'])['toLowerCase']();return{'type':'format','content':o(_0x13a2a6,'*Set\x20font\x20size:*\x20%0',_0x4e9352)};}return{'type':'format','content':o(_0x13a2a6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1203f5['commandName']){const _0x299b7a=_0x1203f5['commandParams'][0x0]['value'];return _0x299b7a?{'type':'format','content':o(_0x13a2a6,'*Set\x20font\x20family:*\x20%0',_0x299b7a)}:{'type':'format','content':o(_0x13a2a6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1203f5['commandName']){const _0x15d4eb=_0x1203f5['commandParams'][0x0]['value'];if(_0x15d4eb){const _0xc9ae1f=_0x5a5258(this['editor']['config']['get']('fontColor.colors'))['find'](_0x7ddde9=>_0x7ddde9['model']==_0x15d4eb);let _0x4dc857=_0x15d4eb,_0x2827c2='';return _0xc9ae1f&&(_0x4dc857=_0xc9ae1f['label'],_0x2827c2=_0x52ae8e(_0x4dc857)['toLowerCase']()),{'type':'format','content':o(_0x13a2a6,'*Set\x20font\x20color:*\x20%0',_0x2827c2)['trim'](),'color':{'value':_0x15d4eb,'title':_0x2827c2||_0x4dc857}};}return{'type':'format','content':o(_0x13a2a6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1203f5['commandName']){const _0x11989d=_0x1203f5['commandParams'][0x0]['value'];if(_0x11989d){const _0x3a77fe=_0x5a5258(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xca4e66=>_0xca4e66['model']==_0x11989d);let _0x1ab4e7=_0x11989d,_0x5817d5='';return _0x3a77fe&&(_0x1ab4e7=_0x3a77fe['label'],_0x5817d5=_0x52ae8e(_0x1ab4e7)['toLowerCase']()),{'type':'format','content':o(_0x13a2a6,'*Set\x20font\x20background\x20color:*\x20%0',_0x5817d5)['trim'](),'color':{'value':_0x11989d,'title':_0x5817d5||_0x1ab4e7}};}return{'type':'format','content':o(_0x13a2a6,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0xeaacfa{['afterInit'](){const _0x30954f=this['editor'],_0x2c5bc7=_0x30954f['plugins']['get']('TrackChangesEditing'),_0x16093b=_0x30954f['commands']['get']('copyFormat'),_0x304f60=_0x30954f['commands']['get']('pasteFormat');_0x16093b&&_0x304f60&&(_0x2c5bc7['enableDefaultAttributesIntegration']('pasteFormat'),_0x2c5bc7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2c52c0=this['editor'],_0x10a62c=_0x2c52c0['locale'];_0x2c52c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e9d32=>{if('formatBlock'!=_0x3e9d32['type']&&'formatInline'!=_0x3e9d32['type'])return;const {data:_0x255450}=_0x3e9d32;if(_0x255450&&'pasteFormat'===_0x255450['commandName']){const _0x45e121=[],_0x5426ec=_0x255450['commandParams'][0x0];for(const [_0x5f37cb,_0x3dd0a0]of Object['entries'](_0x5426ec))_0x45e121['push'](so(_0x2c52c0,_0x5f37cb,_0x3dd0a0));return _0x45e121['length']?{'type':'format','content':o(_0x10a62c,'*Set\x20format\x20to:*\x20%0',_0x45e121['join'](',\x20'))}:{'type':'format','content':o(_0x10a62c,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5ea734,_0x4fc074,_0x10e426){const _0x26c775=_0x5ea734['locale']['t'],_0x31fd4b=_0x4fc074['split'](/(?=[A-Z])/)['join']('\x20'),_0x3fe280=_0x26c775(_0x31fd4b['charAt'](0x0)['toUpperCase']()+_0x31fd4b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x10e426)return _0x3fe280;if('fontColor'===_0x4fc074||'fontBackgroundColor'===_0x4fc074){const _0x39956e=_0x5a5258(_0x5ea734['config']['get']('fontColor.colors'))['find'](_0x3f563c=>_0x3f563c['model']==_0x10e426);return _0x3fe280+'\x20('+(_0x39956e?_0x26c775(_0x39956e['label'])['toLowerCase']():_0x10e426)+')';}if('fontSize'===_0x4fc074&&isNaN(parseFloat(_0x10e426))){const _0x45c343=_0x5ea734['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5ea734['config']['get']('fontSize.options'))['find'](_0x42d389=>_0x42d389['model']==_0x10e426);return _0x3fe280+'\x20('+(_0x45c343?_0x26c775(_0x45c343['title'])['toLowerCase']():_0x10e426)+')';}return _0x3fe280+'\x20('+_0x10e426+')';}class Y extends _0xeaacfa{['_headingOptions'];['afterInit'](){const _0x459956=this['editor'];if(!_0x459956['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x459956['config']['get']('heading.options');const _0x3dfc08=_0x459956['locale'],_0xbadf77=_0x459956['plugins']['get']('TrackChangesEditing');_0xbadf77['enableDefaultAttributesIntegration']('heading');for(const _0x4ff85e of this['_headingOptions'])'paragraph'!=_0x4ff85e['model']&&_0xbadf77['descriptionFactory']['registerElementLabel'](_0x4ff85e['model'],_0x51a22d=>{const _0xf76fd4=this['_getHeadingLevel'](_0x4ff85e['model']);return null!==_0xf76fd4?_0x22168e(_0x51a22d,_0xf76fd4):_0x176939(_0x51a22d,_0x4ff85e['title']);});function _0x22168e(_0x5bbe23,_0x53fea7){return o(_0x3dfc08,'ELEMENT_HEADING',[_0x5bbe23,_0x53fea7]);}function _0x176939(_0x55a295,_0x535b10){return o(_0x3dfc08,'ELEMENT_HEADING_CUSTOM',[_0x55a295,_0x535b10]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30d859=this['editor'],_0x5197ba=_0x30d859['locale'];function _0x277295(_0x938ac9,_0xcf71ca){return o(_0x5197ba,'ELEMENT_HEADING_CUSTOM',[_0x938ac9,_0xcf71ca]);}_0x30d859['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x93c912=>{if('formatBlock'!=_0x93c912['type'])return;const {data:_0x48551d}=_0x93c912;if(_0x48551d&&'heading'==_0x48551d['commandName']){const _0x2e9e28=_0x48551d['commandParams'][0x0]['value'],_0x47cb55=this['_getHeadingLevel'](_0x2e9e28);if(null!==_0x47cb55)return{'type':'format','content':o(_0x5197ba,'*Change\x20to:*\x20%0',(_0x23cb47=0x1,_0x117270=_0x47cb55,o(_0x5197ba,'ELEMENT_HEADING',[_0x23cb47,_0x117270])))};const _0xf565f7=this['_headingOptions']['find'](_0x29f546=>_0x29f546['model']===_0x2e9e28)['title'];return{'type':'format','content':o(_0x5197ba,'*Change\x20to:*\x20%0',_0x277295(0x1,_0xf565f7))};}var _0x23cb47,_0x117270;});}['_getHeadingLevel'](_0x39b8b6){const _0x1c0a09=_0x39b8b6['match'](/^heading(\d+)/);if(_0x1c0a09)return _0x1c0a09[0x1];const _0x31aa7b=this['_headingOptions']?.['find'](_0x5b0132=>_0x5b0132['model']==_0x39b8b6);if(_0x31aa7b&&_0x31aa7b['view']){const _0x41a7f7=_0x31aa7b['view'],_0x4a4876=(_0x41a7f7['name']??_0x41a7f7)['match'](/^h(\d+)/);if(_0x4a4876)return _0x4a4876[0x1];}return null;}}class Z extends _0xeaacfa{['afterInit'](){const _0x27a00b=this['editor'];if(!_0x27a00b['plugins']['has']('HighlightEditing'))return;const _0xa5ac5b=_0x27a00b['plugins']['get']('TrackChangesEditing'),_0x186472=_0x27a00b['locale'];_0xa5ac5b['enableDefaultAttributesIntegration']('highlight'),_0xa5ac5b['registerInlineAttribute']('highlight'),_0xa5ac5b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x186472,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b90a7=this['editor'],_0x44e7ea=_0x4b90a7['locale'];_0x4b90a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14c1ab=>{if('formatInline'!=_0x14c1ab['type'])return;const {data:_0x28307a}=_0x14c1ab;if(_0x28307a&&'highlight'==_0x28307a['commandName']){const _0x31fe07=_0x44e7ea['t'],_0x486bf9=_0x28307a['commandParams'][0x0]['value'];if(_0x486bf9){const _0x13c1c7=_0x4b90a7['config']['get']('highlight.options')['find'](_0x302b75=>_0x302b75['model']==_0x486bf9),_0x35c0b2=_0x31fe07(_0x13c1c7['title'])['toLowerCase']();return{'type':'format','content':o(_0x44e7ea,'*Set\x20highlight:*\x20%0',_0x35c0b2),'color':{'value':_0x13c1c7['color'],'title':_0x13c1c7['title']}};}return{'type':'format','content':o(_0x44e7ea,'*Remove\x20highlight*',o(_0x44e7ea,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0xeaacfa{['afterInit'](){const _0x1e9da7=this['editor'];if(!_0x1e9da7['plugins']['has']('HorizontalLineEditing'))return;_0x1e9da7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1a111f=_0x1e9da7['plugins']['get']('TrackChangesEditing'),_0x19868e=_0x1e9da7['locale'];_0x1a111f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4dbe03=>o(_0x19868e,'ELEMENT_HORIZONTAL_LINE',_0x4dbe03)),_0x1e9da7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xb8dd81,{writer:_0x27469e,options:_0x4cb91c})=>{if(!_0x4cb91c['showSuggestionHighlights'])return null;const _0x5530dd=_0x27469e['createContainerElement']('div'),_0x318b21=_0x27469e['createEmptyElement']('hr');return _0x27469e['addClass']('ck-horizontal-line',_0x5530dd),_0x27469e['insert'](_0x27469e['createPositionAt'](_0x5530dd,0x0),_0x318b21),_0x5530dd;},'converterPriority':'high'});}}class et extends _0xeaacfa{['afterInit'](){const _0x21d12b=this['editor'];if(!_0x21d12b['plugins']['has']('HtmlEmbed'))return;const _0x151dab=_0x21d12b['plugins']['get']('TrackChangesEditing'),_0x16327d=_0x21d12b['locale'];_0x151dab['descriptionFactory']['registerElementLabel']('rawHtml',_0xacd1f8=>o(_0x16327d,'ELEMENT_HTML_EMBED',_0xacd1f8)),_0x151dab['enableDefaultAttributesIntegration']('htmlEmbed'),_0x151dab['registerBlockAttribute']('value'),_0x151dab['descriptionFactory']['registerDescriptionCallback'](_0x16310f=>{if('attribute'!=_0x16310f['type'])return;const {data:_0x339316}=_0x16310f;if(_0x339316&&'value'==_0x339316['key']&&_0x16310f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1cdff0=o(_0x16327d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x16327d,'*Change\x20%0\x20content*',_0x1cdff0)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d45f7=this['editor'],_0x27d8fa=_0x5d45f7['locale'];_0x5d45f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b8cf2=>{if('formatBlock'!=_0x4b8cf2['type'])return;const {data:_0x3fbe89}=_0x4b8cf2;if(_0x3fbe89&&'htmlEmbed'==_0x3fbe89['commandName']){const _0x246c88=o(_0x27d8fa,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x27d8fa,'*Change\x20%0\x20content*',_0x246c88)};}});}}class it extends _0xeaacfa{['afterInit'](){const _0x363ac3=this['editor'];if(!_0x363ac3['plugins']['has']('ImageEditing'))return;const _0x2c9c0=_0x363ac3['plugins']['get']('TrackChangesEditing'),_0x575868=_0x363ac3['plugins']['get']('ImageUtils'),_0x8c668f=_0x363ac3['locale'];_0x2c9c0['enableCommand']('insertImage'),_0x2c9c0['descriptionFactory']['registerElementLabel']('imageBlock',_0x1f785b=>o(_0x8c668f,'ELEMENT_IMAGE',_0x1f785b)),_0x2c9c0['descriptionFactory']['registerElementLabel']('imageInline',_0x457741=>o(_0x8c668f,'ELEMENT_INLINE_IMAGE',_0x457741)),_0x2c9c0['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x8c668f,'ELEMENT_CAPTION')),_0x363ac3['plugins']['has']('ImageUploadEditing')&&_0x2c9c0['enableCommand']('uploadImage'),_0x363ac3['plugins']['has']('ImageBlockEditing')&&_0x363ac3['plugins']['has']('ImageInlineEditing')&&(_0x2c9c0['enableCommand']('imageTypeInline',(_0x4fda24,_0x412ad9)=>{const _0x5a3297=_0x575868['getClosestSelectedImageElement'](_0x363ac3['model']['document']['selection']);_0x363ac3['model']['change'](()=>{_0x2c9c0['markBlockFormat'](_0x5a3297,{'commandName':'imageTypeInline','commandParams':[_0x412ad9]},[],'convertBlockImageToInline');});}),_0x2c9c0['enableCommand']('imageTypeBlock',(_0x707913,_0x123ab3)=>{_0x363ac3['model']['change'](_0x385e25=>{let _0x599e30=_0x575868['getClosestSelectedImageElement'](_0x363ac3['model']['document']['selection']),_0x127728=_0x385e25['createRangeOn'](_0x599e30);const _0x534aed=_0x375039['fromPosition'](_0x127728['start'],'toPrevious'),_0x3b6381=_0x375039['fromPosition'](_0x127728['end'],'toNext');_0x2c9c0['forceDefaultExecution'](()=>_0x707913(_0x123ab3)),_0x599e30=_0x575868['getClosestSelectedImageElement'](_0x363ac3['model']['document']['selection']),_0x127728=_0x385e25['createRangeOn'](_0x599e30);const _0x283ff7=_0x385e25['createRange'](_0x534aed,_0x3b6381);_0x534aed['detach'](),_0x3b6381['detach'](),_0x2c9c0['markBlockFormat'](_0x599e30,{'commandName':'imageTypeInline','commandParams':[_0x123ab3]},[],'convertInlineImageToBlock'),_0x283ff7['start']['isBefore'](_0x127728['start'])&&_0x2c9c0['markInsertion'](_0x385e25['createRange'](_0x283ff7['start'],_0x127728['start']),'convertInlineImageToBlock'),_0x127728['end']['isBefore'](_0x283ff7['end'])&&_0x2c9c0['markInsertion'](_0x385e25['createRange'](_0x127728['end'],_0x283ff7['end']),'convertInlineImageToBlock');});}),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2c9c0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x39f239])=>{const _0x5a74ab=_0x2c9c0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3180dc=_0x39f239['start'],_0x1f1f8d=_0x39f239['end'];const _0x45057f=_0x363ac3['model']['schema']['getNearestSelectionRange'](_0x3180dc,'backward'),_0x3f6f65=_0x363ac3['model']['schema']['getNearestSelectionRange'](_0x1f1f8d,'forward');_0x45057f['isCollapsed']&&(_0x3180dc=_0x45057f['start']),_0x3f6f65['isCollapsed']&&(_0x1f1f8d=_0x3f6f65['end']),_0x5a74ab([_0x363ac3['model']['createRange'](_0x3180dc,_0x1f1f8d)]);}),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2bff71),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2bff71)),_0x363ac3['plugins']['has']('ImageCaptionEditing')&&(_0x2c9c0['enableCommand']('toggleImageCaption',(_0x2aa9f5,_0x162342)=>{const _0x2af8e9=_0x363ac3['plugins']['get']('ImageCaptionUtils');let _0x3d946d=_0x575868['getClosestSelectedImageElement'](_0x363ac3['model']['document']['selection']),_0x541b59=_0x2af8e9['getCaptionFromImageModelElement'](_0x3d946d);_0x363ac3['model']['change'](()=>{if(_0x541b59)return void _0x2c9c0['markDeletion'](_0x363ac3['model']['createRangeOn'](_0x541b59));const _0x1c9a70=_0x575868['isBlockImage'](_0x3d946d);_0x2aa9f5(_0x162342),_0x3d946d=_0x575868['getClosestSelectedImageElement'](_0x363ac3['model']['document']['selection']),_0x541b59=_0x2af8e9['getCaptionFromImageModelElement'](_0x3d946d),_0x2c9c0['markInsertion'](_0x363ac3['model']['createRangeOn'](_0x541b59),_0x1c9a70?null:'imageCaption');});}),_0x2c9c0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2bff71));const _0x1c3eee=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2b7d8f(_0x42d74f,_0x511bfa){const _0x3357ce=_0x1c3eee['findIndex'](({type:_0x5a2e2d,subType:_0xac9645})=>_0x42d74f['type']==_0x5a2e2d&&_0x42d74f['subType']==_0xac9645),_0x54588d=_0x1c3eee['findIndex'](({type:_0x3d6314,subType:_0x47fecf})=>_0x511bfa['type']==_0x3d6314&&_0x511bfa['subType']==_0x47fecf);if(_0x3357ce<0x0||_0x54588d<0x0)return!0x1;const _0x1a26b8=_0x42d74f['getFirstRange'](),_0xe23293=_0x511bfa['getFirstRange']();if((0x0==_0x3357ce||0x1==_0x3357ce)&&0x2==_0x54588d&&_0x1a26b8['isIntersecting'](_0xe23293))return!0x0;if(0x2==_0x3357ce&&0x3==_0x54588d){const _0x4c0fc7=_0x2c9c0['_findSuggestions'](_0x1a26b8,'insertion')['filter'](({suggestion:_0x754fb9,meta:_0x449f70})=>_0x449f70['isOwn']&&'convertInlineImageToBlock'==_0x754fb9['subType']);if(_0x4c0fc7['length']>0x1&&_0xe23293['end']['isEqual'](_0x1a26b8['start']))return!0x0;if(0x1==_0x4c0fc7['length']&&(_0x1a26b8['start']['isEqual'](_0xe23293['end'])||_0x1a26b8['end']['isEqual'](_0xe23293['start'])))return!0x0;}if(0x3==_0x3357ce&&0x3==_0x54588d&&_0x1a26b8['start']['isBefore'](_0xe23293['start'])){const _0x54901b=_0x1a26b8['end']['nodeAfter'],_0x2c7dad=_0xe23293['start']['nodeBefore'];return _0x575868['isBlockImage'](_0x54901b)&&_0x54901b===_0x2c7dad;}return!0x1;}function _0x2bff71(_0x135c32,_0x55adca){return _0x2b7d8f(_0x135c32,_0x55adca)?[_0x135c32,_0x55adca]:_0x2b7d8f(_0x55adca,_0x135c32)?[_0x55adca,_0x135c32]:null;}_0x363ac3['plugins']['has']('ImageResize')&&(_0x2c9c0['enableDefaultAttributesIntegration']('resizeImage'),_0x2c9c0['registerBlockAttribute']('resizedWidth'),_0x2c9c0['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x8c668f,'FORMAT_IMAGE_SIZE'))),_0x363ac3['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2c9c0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2c9c0['registerBlockAttribute']('alt')),_0x2c9c0['descriptionFactory']['registerDescriptionCallback'](_0x2e5c78=>{if(!!_0x1c3eee['find'](({type:_0x4e18ab,subType:_0xb3d830})=>_0x2e5c78['type']==_0x4e18ab&&_0x2e5c78['subType']==_0xb3d830))return _0x2e5c78['previous']?{}:void 0x0;}),_0x2c9c0['descriptionFactory']['registerDescriptionCallback'](_0x304167=>{if('insertion'==_0x304167['type']||'deletion'==_0x304167['type']){const _0x32e1b5=_0x304167['getContainedElement']();if(_0x32e1b5&&_0x32e1b5['is']('element','caption'))return{'type':'insertion'==_0x304167['type']?'addObject':'removeObject','element':_0x32e1b5,'quantity':0x1};}}),_0x2c9c0['descriptionFactory']['registerDescriptionCallback'](_0x1353a=>'formatBlock'==_0x1353a['type']&&'convertInlineImageToBlock'==_0x1353a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1353a['type']&&'convertBlockImageToInline'==_0x1353a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2c9c0['descriptionFactory']['registerDescriptionCallback'](_0x4daaab=>{if('attribute'!=_0x4daaab['type'])return;const {data:_0x5854cc}=_0x4daaab;if(!_0x5854cc||'alt'!=_0x5854cc['key'])return;const _0x56fe96=_0x5854cc['newValue'];return _0x56fe96?{'type':'format','content':o(_0x8c668f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x56fe96+'\x22')}:{'type':'format','content':o(_0x8c668f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a6936=this['editor'],_0x464890=_0x1a6936['locale'];_0x1a6936['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1db3e8=>{if('formatBlock'!=_0x1db3e8['type']&&'formatInline'!=_0x1db3e8['type'])return;const {data:_0x3ce7b2}=_0x1db3e8;if(_0x3ce7b2){if('imageTextAlternative'==_0x3ce7b2['commandName']){const _0x3e14ba=_0x3ce7b2['commandParams'][0x0]['newValue'];return _0x3e14ba?{'type':'format','content':o(_0x464890,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3e14ba+'\x22')}:{'type':'format','content':o(_0x464890,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3ce7b2['commandName']){const _0xf333d8=_0x3ce7b2['commandParams'][0x0]['width'];return _0xf333d8?{'type':'format','content':o(_0x464890,'*Set\x20image\x20width:*\x20%0',_0xf333d8)}:{'type':'format','content':o(_0x464890,'*Reset\x20image\x20width*')};}}});}}class st extends _0xeaacfa{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4f0415=this['editor']['locale'],_0x3985e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x3985e3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3985e3['registerBlockAttribute']('src'),_0x3985e3['descriptionFactory']['registerDescriptionCallback'](_0x52e904=>{if('attribute'!=_0x52e904['type'])return;const {data:_0x5f0c98}=_0x52e904;return _0x5f0c98&&'src'==_0x5f0c98['key']?_0x5f0c98['newValue']&&_0x5f0c98['oldValue']?{'type':'format','content':o(_0x4f0415,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x38ff08=this['editor']['plugins']['get']('TrackChangesEditing');_0x38ff08['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x38ff08['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38ff08['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x38ff08['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a04df=this['editor'],_0x5a67c4=_0x5a04df['locale'];_0x5a04df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a553c=>{if('formatBlock'!=_0x1a553c['type']&&'formatInline'!=_0x1a553c['type'])return;const {data:_0x21742b}=_0x1a553c;if(!_0x21742b||'replaceImageSource'!=_0x21742b['commandName'])return;return{'type':'format','content':o(_0x5a67c4,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0xeaacfa{['afterInit'](){const _0x53c036=this['editor'];if(!_0x53c036['plugins']['has']('ImageStyleEditing'))return;const _0x7d8b9c=_0x53c036['plugins']['get']('TrackChangesEditing'),_0x4a8f7f=_0x53c036['plugins']['get']('ImageUtils'),_0x4f0ff2={};_0x7d8b9c['enableCommand']('imageStyle',(_0x5e0724,_0x2cd4e4)=>{const _0x23d9d6=_0x53c036['plugins']['get']('Users')['me'],_0x577c56=_0x53c036['commands']['get']('imageStyle');let _0x57e688=_0x4a8f7f['getClosestSelectedImageElement'](_0x53c036['model']['document']['selection']),_0x1c350d=_0x53c036['model']['createRangeOn'](_0x57e688),_0x38bd03=_0x577c56['value'];if(_0x38bd03==_0x2cd4e4['value'])return;const _0x426272={'commandName':'imageStyle','commandParams':[_0x2cd4e4],'formatGroupId':_0x107e61()};_0x53c036['model']['change'](()=>{if(_0x7d8b9c['getSuggestions']()['filter'](_0x3765ee=>_0x3765ee['isInContent']&&_0x23d9d6==_0x3765ee['author']&&('formatBlock'==_0x3765ee['type']||'formatInline'==_0x3765ee['type'])&&('imageStylePreApply'==_0x3765ee['subType']||'imageStylePostApply'==_0x3765ee['subType'])&&_0x3765ee['getFirstRange']()['isEqual'](_0x1c350d))['forEach'](_0xfc2d7=>_0x7d8b9c['discardSuggestion'](_0xfc2d7['head'])),_0x57e688=_0x4a8f7f['getClosestSelectedImageElement'](_0x53c036['model']['document']['selection']),_0x1c350d=_0x53c036['model']['createRangeOn'](_0x57e688),_0x577c56['refresh'](),_0x53c036['commands']['get']('imageTypeInline')['refresh'](),_0x53c036['commands']['get']('imageTypeBlock')['refresh'](),_0x38bd03=_0x577c56['value'],_0x38bd03!=_0x2cd4e4['value'])return _0x4a8f7f['isInlineImage'](_0x57e688)&&_0x577c56['shouldConvertImageType'](_0x2cd4e4['value'],_0x57e688)?(_0x5e0724({..._0x2cd4e4,'setImageSizes':!0x1}),_0x57e688=_0x4a8f7f['getClosestSelectedImageElement'](_0x53c036['model']['document']['selection']),void _0x7d8b9c['markBlockFormat'](_0x57e688,{..._0x426272,'commandReversedParams':[{'value':_0x38bd03||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4a8f7f['isBlockImage'](_0x57e688)?_0x7d8b9c['markBlockFormat'](_0x57e688,_0x426272,[],'imageStylePostApply'):_0x7d8b9c['markInlineFormat'](_0x1c350d,_0x426272,'imageStylePostApply'));});});for(const _0x6a4fbd of _0x53c036['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4f0ff2[_0x6a4fbd['name']]=_0x6a4fbd['title']['toLowerCase']();_0x7d8b9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x7d8b9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x7d8b9c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x7d8b9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5c73d7])=>{_0x4a8f7f['setImageNaturalSizeAttributes'](_0x5c73d7['getContainedElement']());}),_0x7d8b9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x32f3c0,_0x204578)=>{_0x7d8b9c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x32f3c0,{'commandName':_0x204578['commandName'],'commandParams':_0x204578['commandReversedParams']});}),_0x7d8b9c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3229c7,_0x1e0860){if(_0xa2d7bd(_0x3229c7,_0x1e0860))return[_0x3229c7,_0x1e0860];if(_0xa2d7bd(_0x1e0860,_0x3229c7))return[_0x1e0860,_0x3229c7];return null;});const _0x37ee04=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xa2d7bd(_0x241f59,_0x2a92ae){const _0x28f01a=_0x37ee04['findIndex'](({type:_0x44ab7e,subType:_0x4a1189})=>_0x241f59['type']==_0x44ab7e&&_0x241f59['subType']==_0x4a1189),_0x568e22=_0x37ee04['findIndex'](({type:_0x555f78,subType:_0x2c47d4})=>_0x2a92ae['type']==_0x555f78&&_0x2a92ae['subType']==_0x2c47d4);if(_0x28f01a<0x0||_0x568e22<0x0)return!0x1;const _0x1e0be6=_0x241f59['getFirstRange'](),_0x140c2d=_0x2a92ae['getFirstRange']();if((0x0==_0x28f01a||0x1==_0x28f01a)&&0x2==_0x568e22&&_0x1e0be6['isIntersecting'](_0x140c2d))return!0x0;if(0x2==_0x28f01a&&0x3==_0x568e22){const _0x482f66=_0x7d8b9c['_findSuggestions'](_0x1e0be6,'insertion')['filter'](({suggestion:_0x5ae948,meta:_0x1a98b})=>_0x1a98b['isOwn']&&'convertInlineImageToBlock'==_0x5ae948['subType']);if(_0x482f66['length']>0x1&&_0x140c2d['end']['isEqual'](_0x1e0be6['start']))return!0x0;if(0x1==_0x482f66['length']&&(_0x1e0be6['start']['isEqual'](_0x140c2d['end'])||_0x1e0be6['end']['isEqual'](_0x140c2d['start'])))return!0x0;}if(0x3==_0x28f01a&&0x3==_0x568e22&&_0x1e0be6['start']['isBefore'](_0x140c2d['start'])){const _0x4292f2=_0x1e0be6['end']['nodeAfter'],_0x1897ef=_0x140c2d['start']['nodeBefore'];return _0x4a8f7f['isBlockImage'](_0x4292f2)&&_0x4292f2===_0x1897ef;}return!0x1;}_0x53c036['model']['document']['registerPostFixer'](()=>{let _0x1fa7bb=!0x1;const _0x27b231=Array['from'](_0x53c036['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22a80b,data:_0x364d81}of _0x27b231){const {group:_0x2ed97f,type:_0x447874,subType:_0x344083,id:_0x2fb609}=_0x7d8b9c['_splitMarkerName'](_0x22a80b);if('suggestion'==_0x2ed97f&&_0x7d8b9c['hasSuggestion'](_0x2fb609)){if('formatBlock'==_0x447874&&('imageStylePreApply'==_0x344083||'imageStylePostApply'==_0x344083)){const _0xac5515=_0x7d8b9c['getSuggestion'](_0x2fb609);if(_0x364d81['newRange']){const _0x3e238a=_0xac5515['getFirstRange']()['getContainedElement']();if(_0x4a8f7f['isBlockImage'](_0x3e238a))continue;_0x7d8b9c['discardSuggestion'](_0xac5515),_0x1fa7bb=!0x0;}}if('insertion'==_0x447874&&'imageCaption'==_0x344083&&!_0x364d81['newRange']){const _0x361ade=_0x7d8b9c['getSuggestion'](_0x2fb609);_0x361ade['next']&&_0x361ade['next']['isInContent']&&(_0x7d8b9c['discardSuggestion'](_0x361ade['next']),_0x1fa7bb=!0x0);}}}return _0x1fa7bb;}),this['_registerLegacyDescription'](_0x4f0ff2);}['_registerLegacyDescription'](_0xd022a4){const _0xba53e8=this['editor'],_0x4c098b=_0xba53e8['locale'];_0xba53e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20a6e5=>{if('formatBlock'!=_0x20a6e5['type']&&'formatInline'!=_0x20a6e5['type'])return;const {data:_0x1e88f4}=_0x20a6e5;if(!_0x1e88f4||'imageStyle'!=_0x1e88f4['commandName'])return;const _0x5d548b=_0x1e88f4['commandParams'][0x0]['value'];return _0x10cae9('side'===_0x5d548b?o(_0x4c098b,'FORMAT_SIDE_IMAGE'):_0xd022a4[_0x5d548b]||_0x5d548b);function _0x10cae9(_0x557f92){return{'type':'format','content':o(_0x4c098b,'*Format:*\x20%0',_0x557f92)};}});}}class ot extends _0xeaacfa{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x32a992){super(_0x32a992),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2dc988=this['editor'],_0x1ccdad=_0x2dc988['commands']['get']('importWord'),_0x1bfdec=_0x2dc988['commands']['get']('trackChanges');_0x1ccdad&&(_0x1ccdad['on']('execute',(_0x5c4bcc,[,_0x4115db])=>{this['_trackChangesValueDuringImport']=_0x1bfdec['value'],_0x4115db['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1ccdad,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1ccdad,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1bfdec['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2dc988['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1dd9e5,_0x175c1e){const {suggestions:_0x13e929}=_0x175c1e,_0x326730=this['editor']['commands']['get']('trackChanges'),_0x4ddcd7=_0x326730['value'];this['_trackChangesValueDuringImport']!==_0x4ddcd7&&(_0x326730['execute'](),this['_trackChangesExecuted']=!0x0),_0x13e929&&_0x13e929['forEach'](({id:_0x2a814a,type:_0x27b7fb,author:_0x176fc6,created_at:_0x2809d7})=>{const _0x1c99d7={'id':_0x2a814a,'type':_0x27b7fb,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x176fc6,'createdAt':_0x2809d7?new Date(_0x2809d7):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1c99d7);});}}class rt extends _0xeaacfa{['afterInit'](){const _0x48264e=this['editor'],_0x1bd156=_0x48264e['plugins']['get']('TrackChangesEditing');if(_0x48264e['plugins']['has']('IndentEditing')&&(_0x1bd156['enableCommand']('indent'),_0x1bd156['enableCommand']('outdent')),_0x48264e['plugins']['has']('IndentBlock')){for(const _0x53091e of['indentBlock','outdentBlock'])_0x1bd156['enableDefaultAttributesIntegration'](_0x53091e);}const _0x4aed88=_0x48264e['locale'];_0x1bd156['registerBlockAttribute']('blockIndent'),_0x1bd156['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4aed88,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x497d6e=this['editor'],_0x5c6982=_0x497d6e['locale'],_0x370379=_0x497d6e['plugins']['get']('TrackChangesEditing');_0x370379['descriptionFactory']['registerDescriptionCallback'](_0xb73803=>{if('formatBlock'!=_0xb73803['type'])return;const {data:_0x599a18}=_0xb73803;if(!_0x599a18)return;if('indentBlock'!=_0x599a18['commandName']&&'outdentBlock'!=_0x599a18['commandName'])return;const _0xb2278f=_0xb73803['getItems']()[0x0],_0x133ead=_0x370379['descriptionFactory']['getItemLabel'](_0xb2278f);return'indentBlock'==_0x599a18['commandName']?{'type':'format','content':o(_0x5c6982,'*Indent:*\x20%0',_0x133ead)}:'outdentBlock'==_0x599a18['commandName']?{'type':'format','content':o(_0x5c6982,'*Outdent:*\x20%0',_0x133ead)}:void 0x0;});}}class at extends _0xeaacfa{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0xeaacfa{['afterInit'](){const _0x34946c=this['editor'];if(!_0x34946c['plugins']['has']('LinkEditing'))return;const _0xfe63a7=_0x34946c['plugins']['get']('TrackChangesEditing'),_0x1b83e6=_0x34946c['commands']['get']('link');_0xfe63a7['enableDefaultAttributesIntegration']('link'),_0xfe63a7['enableDefaultAttributesIntegration']('unlink'),_0xfe63a7['registerInlineAttribute']('linkHref');for(const _0x7d8c59 of _0x1b83e6['manualDecorators'])_0xfe63a7['registerInlineAttribute'](_0x7d8c59['id']),_0xfe63a7['descriptionFactory']['registerAttributeLabel'](_0x7d8c59['id'],'link\x20('+_0x7d8c59['label']['toLowerCase']()+')');_0xfe63a7['descriptionFactory']['registerDescriptionCallback'](_0x1864f7=>{if('attribute'!=_0x1864f7['type'])return;const {data:_0x497bf4}=_0x1864f7;if(!_0x497bf4||'linkHref'!=_0x497bf4['key'])return;const _0x1f4d7b=_0x497bf4['newValue'],_0x2a73b5=_0x34946c['locale'];return{'type':'format','content':null==_0x1f4d7b?o(_0x2a73b5,'*Remove\x20link*'):o(_0x2a73b5,'*Set\x20link:*\x20%0','\x22'+_0x1f4d7b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1442cc=this['editor'],_0x4249a5=_0x1442cc['locale'];_0x1442cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48b219=>{if('formatInline'!=_0x48b219['type'])return;const {data:_0xdadb06}=_0x48b219;if(_0xdadb06){if('link'==_0xdadb06['commandName']){const _0x755caa=_0xdadb06['commandParams'][0x0];return{'type':'format','content':o(_0x4249a5,'*Set\x20link:*\x20%0','\x22'+_0x755caa+'\x22')};}return'unlink'==_0xdadb06['commandName']?{'type':'format','content':o(_0x4249a5,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0xeaacfa{['afterInit'](){const _0xf76b56=this['editor'],_0x3e57f8=_0xf76b56['locale'];if(!_0xf76b56['plugins']['has']('LegacyListEditing'))return;const _0x4d7a62=_0xf76b56['plugins']['get']('TrackChangesEditing'),_0x41aa7e=_0xf76b56['plugins']['has']('LegacyTodoListEditing');function _0x2b6c12(_0x470bcd){return()=>{const _0x4a67c5=_0xf76b56['model']['document']['selection'],_0x32a3dc=_0xf76b56['commands']['get'](_0x470bcd);if(_0x32a3dc['value'])return void _0xf76b56['execute']('paragraph',{});const _0x2cafe0=_0x470bcd['slice'](0x0,-0x4),_0x3daea8=function(_0x22c915,_0x32b3d9,_0x4204c8){let _0x13b3a6=Array['from'](_0x22c915)['filter'](_0x462bbc=>function(_0x325923,_0x1f8fac){return _0x1f8fac['checkChild'](_0x325923['parent'],'listItem')&&!_0x1f8fac['isObject'](_0x325923);}(_0x462bbc,_0x4204c8));_0x13b3a6=_0x13b3a6['filter'](_0x319605=>!_0x319605['is']('element','listItem')||_0x319605['getAttribute']('listType')!=_0x32b3d9);const _0x72d8bb=new Set();for(const _0x1b7846 of _0x13b3a6)_0x1b7846['is']('element','listItem')?_0x72d8bb['add'](me(_0x1b7846)):_0x72d8bb['add'](_0x1b7846);return Array['from'](_0x72d8bb);}(_0x4a67c5['getSelectedBlocks'](),_0x2cafe0,_0xf76b56['model']['schema']);_0xf76b56['model']['change'](()=>{for(const _0x53d733 of _0x3daea8)_0x4d7a62['markBlockFormat'](_0x53d733,{'commandName':_0x470bcd,'commandParams':[{'forceValue':!_0x32a3dc['value']}],'formatGroupId':'blockName'},fe(_0x53d733));});};}function _0x4048b9(_0x50c3d2){return()=>{const _0x3713ad=function(_0x3da927){let _0x5a1361=Array['from'](_0x3da927);const _0x3d6e37=_0x5a1361['findIndex'](_0x3562f2=>'listItem'!=_0x3562f2['name']);return _0x3d6e37>-0x1&&(_0x5a1361=_0x5a1361['slice'](0x0,_0x3d6e37)),_0x5a1361;}(_0xf76b56['model']['document']['selection']['getSelectedBlocks']()),_0x5cfa78=_0xf76b56['model']['createRange'](_0xf76b56['model']['createPositionAt'](_0x3713ad[0x0],'before'),_0xf76b56['model']['createPositionAt'](_0x3713ad[_0x3713ad['length']-0x1],'end'));_0xf76b56['model']['change'](()=>{_0x4d7a62['markBlockFormat'](_0x5cfa78,{'commandName':_0x50c3d2,'commandParams':[],'formatGroupId':'listIndent'},function(_0xd833c0){const _0x2addcb=new Set();for(const _0x32433b of _0xd833c0){let _0x1f1966=_0x32433b['nextSibling'];for(;_0x1f1966&&_0x1f1966['getAttribute']('listIndent')>_0x32433b['getAttribute']('listIndent');)_0x2addcb['add'](_0x1f1966),_0x1f1966=_0x1f1966['nextSibling'];}return Array['from'](_0x2addcb);}(_0x3713ad));});};}_0x4d7a62['enableCommand']('numberedList',_0x2b6c12('numberedList')),_0x4d7a62['enableCommand']('bulletedList',_0x2b6c12('bulletedList')),_0x41aa7e&&_0x4d7a62['enableCommand']('todoList',_0x2b6c12('todoList')),_0x4d7a62['enableCommand']('indentList',_0x4048b9('indentList')),_0x4d7a62['enableCommand']('outdentList',_0x4048b9('outdentList')),_0x41aa7e&&_0x4d7a62['enableCommand']('checkTodoList',()=>{const _0x5cb778=_0xf76b56['commands']['get']('checkTodoList'),_0x4984e3=Array['from'](_0x5cb778['_selectedElements']);_0x4984e3['filter'](_0x553e2f=>_0x553e2f['getAttribute']('todoListChecked')!=_0x5cb778['value']),_0xf76b56['model']['change'](()=>{for(const _0x200932 of _0x4984e3)_0x4d7a62['markBlockFormat'](_0x200932,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5cb778['value']}]});});}),_0x4d7a62['descriptionFactory']['registerElementLabel']('listItem',_0x3954a4=>o(_0x3e57f8,'ELEMENT_LIST_ITEM',_0x3954a4)),_0x4d7a62['descriptionFactory']['registerDescriptionCallback'](_0x15e8d6=>{if('formatBlock'!=_0x15e8d6['type']&&'formatInline'!=_0x15e8d6['type'])return;const {data:_0x2865b1}=_0x15e8d6;if(_0x2865b1){if('numberedList'==_0x2865b1['commandName']||'bulletedList'==_0x2865b1['commandName']||'todoList'==_0x2865b1['commandName'])switch(_0x2865b1['commandName']['replace']('List','')){case'bulleted':return _0x1a72bb(o(_0x3e57f8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1a72bb(o(_0x3e57f8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1a72bb(o(_0x3e57f8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2865b1['commandName'])return{'type':'format','content':o(_0x3e57f8,'*Indent:*\x20%0',o(_0x3e57f8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2865b1['commandName'])return{'type':'format','content':o(_0x3e57f8,'*Outdent:*\x20%0',o(_0x3e57f8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2865b1['commandName'])return _0x2865b1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e57f8,'*Check\x20item*')}:{'type':'format','content':o(_0x3e57f8,'*Uncheck\x20item*')};}function _0x1a72bb(_0x524728){return{'type':'format','content':o(_0x3e57f8,'*Change\x20to:*\x20%0',_0x524728)};}});}}function me(_0x9b87f4){const _0x33efe4=_0x9b87f4['getAttribute']('listIndent');if(0x0==_0x33efe4)return _0x9b87f4;let _0x1fb39c=_0x9b87f4;for(;_0x9b87f4['previousSibling']&&_0x9b87f4['previousSibling']['is']('element','listItem');){const _0x4ef344=_0x9b87f4['previousSibling']['getAttribute']('listIndent');if(_0x4ef344==_0x33efe4)_0x1fb39c=_0x9b87f4['previousSibling'];else{if(_0x4ef344<_0x33efe4)break;}_0x9b87f4=_0x9b87f4['previousSibling'];}return _0x1fb39c;}function fe(_0x2b181f){const _0x54ec70=[];if(_0x2b181f['is']('element','listItem')&&_0x2b181f['getAttribute']('listIndent')>0x0){let _0x4aac03=_0x2b181f['nextSibling'];for(;_0x4aac03&&'listItem'==_0x4aac03['name']&&_0x4aac03['getAttribute']('listIndent')==_0x2b181f['getAttribute']('listIndent');)_0x54ec70['push'](_0x4aac03),_0x4aac03=_0x4aac03['nextSibling'];}return _0x54ec70;}class K extends _0xeaacfa{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x50ea77=this['editor']['config']['get']('list.properties'),_0x2930e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x50ea77['styles']&&_0x2930e3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x50ea77['reversed']&&_0x2930e3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x50ea77['startIndex']&&_0x2930e3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2930e3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2cd471,_0x2f5290={}){const _0x9c7cc4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55dbdc=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x9c7cc4['markMultiRangeBlockFormat'](_0x55dbdc,{'commandName':'listStyle','commandParams':[{'type':_0x2f5290['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5ed722,_0x5c4f61={}){const _0x5b0070=this['editor']['plugins']['get']('TrackChangesEditing'),_0x299073=this['_getSuggestionBlocks'](_0x25b600=>_0x25b600['is']('element','listItem')&&'numbered'===_0x25b600['getAttribute']('listType'));if(_0x299073['length']<0x1)return;const _0x54ac2c=_0x299073['map'](_0x24da5e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24da5e,'before'),this['editor']['model']['createPositionAt'](_0x24da5e,0x0)));this['editor']['model']['change'](()=>{_0x5b0070['markMultiRangeBlockFormat'](_0x54ac2c,{'commandName':'listReversed','commandParams':[{'reversed':_0x5c4f61['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5d5c0d,_0x4a7c11={}){const _0x4694c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16a744=this['_getSuggestionBlocks'](_0x497ba1=>_0x497ba1['is']('element','listItem')&&'numbered'===_0x497ba1['getAttribute']('listType'));if(_0x16a744['length']<0x1)return;const _0x51ebca=_0x16a744['map'](_0x520c13=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x520c13,'before'),this['editor']['model']['createPositionAt'](_0x520c13,0x0)));this['editor']['model']['change'](()=>{_0x4694c0['markMultiRangeBlockFormat'](_0x51ebca,{'commandName':'listStart','commandParams':[{'startIndex':_0x4a7c11['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2fb68e){if('formatBlock'!=_0x2fb68e['type']&&'formatInline'!=_0x2fb68e['type'])return;const _0x22ce50=this['editor']['locale'],{data:_0x49da7a}=_0x2fb68e;if(!_0x49da7a)return;let _0x17de27,_0x23926c;switch(_0x49da7a['commandName']){case'listStyle':_0x17de27='*Change\x20to:*\x20%0',_0x23926c={'type':'format','content':o(_0x22ce50,_0x17de27,o(_0x22ce50,this['_getTranslationKeyForListStyle'](_0x49da7a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x17de27=_0x49da7a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x23926c={'type':'format','content':o(_0x22ce50,_0x17de27)};break;case'listStart':_0x17de27='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x23926c={'type':'format','content':o(_0x22ce50,_0x17de27,_0x49da7a['commandParams'][0x0]['startIndex'])};}return _0x23926c;}['_getSuggestionBlocksForListStyle'](){const _0x37b6b9=this['editor']['plugins']['get']('LegacyListUtils');let _0x12a3cf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x12a3cf[0x0]?.['is']('element','listItem')&&_0x12a3cf['unshift'](..._0x37b6b9['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x12a3cf[_0x12a3cf['length']-0x1]?.['is']('element','listItem')&&_0x12a3cf['push'](..._0x37b6b9['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x12a3cf=[...new Set(_0x12a3cf)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x12a3cf=_0x12a3cf['filter'](_0x4d983e=>_0x4d983e['is']('element','listItem'))),_0x12a3cf;}['_getSuggestionBlocks'](_0x7d8105){const _0x2eb3ef=this['editor']['plugins']['get']('LegacyListUtils');let _0x22c0ae=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x7d8105)['map'](_0x1f2402=>{const _0x12cda5=this['editor']['model']['createPositionAt'](_0x1f2402,0x0);return[..._0x2eb3ef['getSiblingNodes'](_0x12cda5,'backward'),..._0x2eb3ef['getSiblingNodes'](_0x12cda5,'forward')];})['flat']();return _0x22c0ae=[...new Set(_0x22c0ae)],_0x22c0ae;}['_getTranslationKeyForListStyle'](_0x52f68c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x52f68c)||'default')['toUpperCase']()+'_LIST_'+_0x52f68c['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0xeaacfa{['afterInit'](){const _0x4a048f=this['editor'];if(!_0x4a048f['plugins']['has']('MediaEmbedEditing'))return;const _0x57ae7d=_0x4a048f['plugins']['get']('TrackChangesEditing'),_0x1b39f9=_0x4a048f['locale'];_0x57ae7d['enableCommand']('mediaEmbed'),_0x57ae7d['descriptionFactory']['registerElementLabel']('media',_0x2cd80a=>o(_0x1b39f9,'ELEMENT_MEDIA',_0x2cd80a)),_0x4a048f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x228319,{writer:_0x2e2f8f,options:_0x19d109})=>{if(_0x19d109['showSuggestionHighlights'])return _0x2e2f8f['createEmptyElement']('div');},'converterPriority':'high'}),_0x4a048f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x136b15,_0x26f034,_0x1666b2)=>{_0x1666b2['options']['showSuggestionHighlights']&&_0x136b15['stop']();},{'priority':'high'});}}class gt extends _0xeaacfa{['afterInit'](){const _0x3b3974=this['editor'];_0x3b3974['plugins']['has']('MentionEditing')&&_0x3b3974['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0xeaacfa{['afterInit'](){const _0xba6e34=this['editor'],_0x5677ad=_0xba6e34['plugins']['get']('TrackChangesEditing');_0xba6e34['plugins']['has']('MultiLevelList')&&(_0x5677ad['enableDefaultAttributesIntegration']('multiLevelList'),_0x5677ad['registerBlockAttribute']('listMarkerStyle'),_0x5677ad['descriptionFactory']['registerDescriptionCallback'](_0x5f0013=>this['handleDescriptions'](_0x5f0013)));}['handleDescriptions'](_0x1a2d88){const _0x128a50=this['editor']['locale'],{data:_0x3df3d8}=_0x1a2d88,_0x4c9bb6={'type':'format','content':''};if(_0x3df3d8&&'listMarkerStyle'==_0x3df3d8['key']){if(!_0x3df3d8['oldValue'])return{'type':'format','content':o(_0x128a50,'*Set\x20format:*\x20%0',o(_0x128a50,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3df3d8['newValue']+')'};if(!_0x3df3d8['newValue']){let _0x1104a9=_0x1a2d88['head'];for(;_0x1104a9;){if(_0x1104a9['data']&&'listType'==_0x1104a9['data']['key']&&_0x1104a9['data']['newValue'])return _0x4c9bb6;_0x1104a9=_0x1104a9['next'];}return{'type':'format','content':o(_0x128a50,'*Remove\x20format:*\x20%0',o(_0x128a50,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3df3d8['oldValue']+')'};}}}}class mt extends _0xeaacfa{['afterInit'](){const _0x3535a9=this['editor'];if(!_0x3535a9['plugins']['has']('PageBreakEditing'))return;_0x3535a9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x515e1d=_0x3535a9['plugins']['get']('TrackChangesEditing'),_0x325bc4=_0x3535a9['locale'];_0x515e1d['descriptionFactory']['registerElementLabel']('pageBreak',_0x1f034e=>o(_0x325bc4,'ELEMENT_PAGE_BREAK',_0x1f034e));}}class dt extends _0xeaacfa{['afterInit'](){const _0x3adc2c=this['editor'];if(!_0x3adc2c['plugins']['has']('Paragraph'))return;const _0x3bb7a4=_0x3adc2c['locale'],_0x4dcdaf=_0x3adc2c['plugins']['get']('TrackChangesEditing');_0x4dcdaf['descriptionFactory']['registerElementLabel']('paragraph',_0x104448=>o(_0x3bb7a4,'ELEMENT_PARAGRAPH',_0x104448)),_0x4dcdaf['enableDefaultAttributesIntegration']('paragraph'),_0x4dcdaf['enableCommand']('insertParagraph'),_0x3adc2c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3adc2c),{'priority':'highest'}),_0x3adc2c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xc74481,_0x53a5e0,_0x547d51)=>{_0x547d51['options']['showSuggestionHighlights']&&nr(_0x3adc2c,{'showActiveMarker':!0x1})(_0xc74481,_0x53a5e0,_0x547d51);},{'priority':'highest'});const _0xf9fdd0=_0x4dcdaf['descriptionFactory'];_0xf9fdd0['registerDescriptionCallback'](_0x7bf613=>{if('insertion'!==_0x7bf613['type'])return;const {start:_0x533019,end:_0x15983c}=_0x7bf613['getFirstRange']();if(!_0x533019['isTouching'](_0x15983c)||!_0x533019['nodeAfter'])return;const _0x1e836e=_0x3adc2c['model']['schema'],_0x48b710=_0x533019['nodeAfter'];return _0x1e836e['isBlock'](_0x48b710)&&!_0x1e836e['isLimit'](_0x48b710)&&_0x1e836e['checkChild'](_0x48b710,'$text')?{'type':'insertion','content':o(_0x3bb7a4,'*Insert:*\x20%0',_0xf9fdd0['getItemLabel'](_0x48b710,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41303f=this['editor'],_0x172edd=_0x41303f['locale'];_0x41303f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8df5ce=>{if('formatBlock'!=_0x8df5ce['type'])return;const {data:_0x32b74b}=_0x8df5ce;return _0x32b74b&&'paragraph'==_0x32b74b['commandName']?{'type':'format','content':o(_0x172edd,'*Change\x20to:*\x20%0',o(_0x172edd,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x16d079,{showActiveMarker:_0x44f0af=!0x0}={}){return(_0x253566,_0x2d3656,_0x552b28)=>{const _0x50e441=_0x16d079['plugins']['get']('TrackChangesEditing'),_0x5e1dac=_0x2d3656['markerRange']['start'],_0x5bf57d=_0x2d3656['markerRange']['end'],_0x5d7209=_0x16d079['model']['schema'];if(!_0x5e1dac['isTouching'](_0x5bf57d)||!_0x5e1dac['nodeAfter'])return;const _0x566123=_0x5e1dac['nodeAfter'];if(_0x5d7209['isBlock'](_0x566123)&&!_0x5d7209['isLimit'](_0x566123)&&_0x5d7209['checkChild'](_0x566123,'$text')){if(!_0x552b28['consumable']['consume'](_0x2d3656['markerRange'],_0x253566['name']))return;const _0x36703a=_0x552b28['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x464b4e=_0x552b28['mapper']['toViewPosition'](_0x5bf57d);_0x44f0af&&_0x50e441['activeMarkers']['includes'](_0x2d3656['markerName'])&&_0x552b28['writer']['addClass']('ck-suggestion-marker--active',_0x36703a),_0x552b28['writer']['insert'](_0x464b4e,_0x36703a),_0x552b28['mapper']['bindElementToMarker'](_0x36703a,_0x2d3656['markerName']);}};}class pt extends _0xeaacfa{['afterInit'](){const _0x5a04d6=this['editor'];if(!_0x5a04d6['plugins']['has']('RemoveFormatEditing'))return;_0x5a04d6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x63b8f7=this['editor'];_0x63b8f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a13a6=>{if('formatBlock'!=_0x2a13a6['type']&&'formatInline'!=_0x2a13a6['type'])return;const {data:_0x6d12df}=_0x2a13a6;return _0x6d12df&&'removeFormat'==_0x6d12df['commandName']?{'type':'format','content':o(_0x63b8f7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0xeaacfa{['afterInit'](){const _0x5cc89a=this['editor'];if(!_0x5cc89a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5e67a2=_0x5cc89a['plugins']['get']('TrackChangesEditing');_0x5e67a2['enableCommand']('goToPreviousRestrictedEditingException'),_0x5e67a2['enableCommand']('goToNextRestrictedEditingException');const _0x46ab92=_0x5cc89a['plugins']['get']('RestrictedEditingModeEditing');_0x46ab92['enableCommand']('trackChanges'),_0x46ab92['enableCommand']('acceptSuggestion'),_0x46ab92['enableCommand']('discardSuggestion'),_0x46ab92['enableCommand']('acceptAllSuggestions'),_0x46ab92['enableCommand']('discardAllSuggestions'),_0x46ab92['enableCommand']('acceptSelectedSuggestions'),_0x46ab92['enableCommand']('discardSelectedSuggestions');}}class bt extends _0xeaacfa{static get['requires'](){return[_0x4aa5ce];}['init'](){const _0x1e4667=this['editor'],_0x22d8d0=_0x1e4667['plugins']['get']('TrackChangesEditing');_0x22d8d0['enableCommand']('shiftEnter'),_0x1e4667['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x1e4667),{'priority':'high'}),_0x1e4667['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x1e4667),{'priority':'high'}),_0x1e4667['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x301839,_0x5c1a3e,_0x487b64)=>{_0x487b64['options']['showSuggestionHighlights']&&de(_0x1e4667,{'showActiveMarker':!0x1})(_0x301839,_0x5c1a3e,_0x487b64);}),_0x22d8d0['descriptionFactory']['registerElementLabel']('softBreak',_0x34609b=>o(_0x1e4667['locale'],'ELEMENT_LINE_BREAK',_0x34609b));}}function de(_0x3bfab4,{showActiveMarker:_0x599c3b=!0x0}={}){return(_0x2d245c,_0x187f00,_0x45a6e3)=>{const _0x5052c7=_0x3bfab4['plugins']['get']('TrackChangesEditing');if(!_0x45a6e3['consumable']['test'](_0x187f00['markerRange'],_0x2d245c['name']))return;const _0x499429=_0x3bfab4['model'];for(const _0x45271f of _0x187f00['markerRange']['getItems']()){if(!_0x45271f['is']('element','softBreak'))continue;const _0x36009a='deletion'==_0x187f00['markerName']['split'](':')[0x1]?'merge':'split',_0x595434=_0x45a6e3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x36009a}),_0xadda37=_0x45a6e3['mapper']['toViewPosition'](_0x499429['createPositionBefore'](_0x45271f));_0x599c3b&&_0x5052c7['activeMarkers']['includes'](_0x187f00['markerName'])&&_0x45a6e3['writer']['addClass']('ck-suggestion-marker--active',_0x595434),_0x45a6e3['writer']['insert'](_0xadda37,_0x595434),_0x45a6e3['mapper']['bindElementToMarker'](_0x595434,_0x187f00['markerName']);}};}class wt extends _0xeaacfa{['afterInit'](){const _0x4ba540=this['editor'],_0x552a30=_0x4ba540['model'],_0x5b706d=_0x4ba540['locale'];if(!_0x4ba540['plugins']['has']('StandardEditingModeEditing'))return;const _0x1cd9f7=_0x4ba540['plugins']['get']('TrackChangesEditing'),_0x24b427='restrictedEditingException',_0x2c624d=_0x4ba540['commands']['get'](_0x24b427);_0x1cd9f7['enableCommand'](_0x24b427,(_0x329c77,_0x37c282={})=>{const _0xd29d37=_0x552a30['document']['selection'];if(_0xd29d37['isCollapsed'])return void _0x329c77(_0x37c282);const _0x2729a0=void 0x0!==_0x37c282['forceValue']?_0x37c282['forceValue']:!_0x2c624d['value'];_0x552a30['change'](()=>{const _0xb4e00d=Array['from'](_0xd29d37['getRanges']());for(const _0x5632c9 of _0xb4e00d){const _0x4e5410=_0x2729a0?[_0x5632c9]:io(_0x24b427,_0x5632c9,_0x552a30);for(const _0x16c33b of _0x4e5410)_0x1cd9f7['markInlineFormat'](_0x16c33b,{'commandName':_0x24b427,'commandParams':[{'forceValue':_0x2729a0}]});}});}),_0x1cd9f7['descriptionFactory']['registerDescriptionCallback'](_0xe4d48c=>{if('formatBlock'!=_0xe4d48c['type']&&'formatInline'!=_0xe4d48c['type'])return;const {data:_0x5272f2}=_0xe4d48c;return _0x5272f2&&_0x5272f2['commandName']==_0x24b427?_0x5272f2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5b706d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5b706d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0xeaacfa{['afterInit'](){const _0x5aebf3=this['editor'];if(!_0x5aebf3['plugins']['has']('Style')||!_0x5aebf3['plugins']['has']('DataSchema'))return;const _0x4ce84b=_0x5aebf3['plugins']['get']('TrackChangesEditing'),_0x329ddf=_0x5aebf3['locale'],_0x38b2af=_0x5aebf3['config']['get']('style')||{},_0x52eaf5=_0x5aebf3['plugins']['get']('GeneralHtmlSupport'),_0x37866c=_0x5aebf3['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5aebf3['plugins']['get']('DataSchema'),_0x38b2af['definitions']);_0x4ce84b['enableDefaultAttributesIntegration']('style');const _0x39c354=new Set();for(const _0x393916 of _0x37866c['block']){const _0x92c94c=_0x52eaf5['getGhsAttributeNameForElement'](_0x393916['element']);_0x39c354['add'](_0x92c94c);}const _0x3c5516=new Set();for(const _0x9bb9e6 of _0x37866c['inline']){const _0xc1360a=_0x52eaf5['getGhsAttributeNameForElement'](_0x9bb9e6['element']);_0x3c5516['add'](_0xc1360a);for(const _0x48af4a of _0x9bb9e6['ghsAttributes'])_0x3c5516['add'](_0x48af4a);}for(const _0x3944ff of _0x39c354)_0x4ce84b['registerBlockAttribute'](_0x3944ff),_0x4ce84b['descriptionFactory']['registerAttributeLabel'](_0x3944ff,o(_0x329ddf,'FORMAT_STYLE'));for(const _0x372c7a of _0x3c5516)_0x4ce84b['registerInlineAttribute'](_0x372c7a),_0x4ce84b['descriptionFactory']['registerAttributeLabel'](_0x372c7a,o(_0x329ddf,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4178f5=this['editor'],_0x441e11=_0x4178f5['locale'];_0x4178f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10d794=>{if('formatBlock'!=_0x10d794['type']&&'formatInline'!=_0x10d794['type'])return;const {data:_0x2ac4ee}=_0x10d794;return _0x2ac4ee&&'style'===_0x2ac4ee['commandName']?_0x2ac4ee['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x441e11,'*Set\x20format:*\x20%0',_0x2ac4ee['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x441e11,'*Remove\x20format:*\x20%0',_0x2ac4ee['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0xeaacfa{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4b2841){super(_0x4b2841),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x357e23=this['editor'],_0x1c39c9=_0x357e23['model']['document']['selection'];if(!_0x357e23['plugins']['has']('TableEditing'))return;const _0x5e19a8=_0x357e23['locale'],_0xfc0040=_0x357e23['plugins']['get']('TrackChangesEditing'),_0x395845=_0x357e23['plugins']['get']('TableUtils');_0xfc0040['descriptionFactory']['registerElementLabel']('table',_0x20c9ea=>o(_0x5e19a8,'ELEMENT_TABLE',_0x20c9ea)),this['_setupColumnsRowsFixing'](),_0xfc0040['enableCommand']('insertTable'),_0xfc0040['enableCommand']('selectTableRow'),_0xfc0040['enableCommand']('selectTableColumn');for(const _0x53bfda of['insertTableRowAbove','insertTableRowBelow']){const _0x133578=_0x357e23['commands']['get'](_0x53bfda);_0xfc0040['enableCommand'](_0x53bfda,_0xa40b81=>{_0x357e23['model']['change'](_0x58eefd=>{_0xa40b81();const _0x451bf8='above'===_0x133578['order'],_0x56deb1=_0x395845['getSelectionAffectedTableCells'](_0x1c39c9),_0x20ef7d=_0x395845['getRowIndexes'](_0x56deb1),_0x16b37f=_0x451bf8?_0x20ef7d['first']-0x1:_0x20ef7d['last']+0x1,_0x9d3ab0=_0x56deb1[0x0]['findAncestor']('table'),_0x4bc386=_0x395845['createTableWalker'](_0x9d3ab0,{'startRow':_0x16b37f,'endRow':_0x16b37f}),_0x2e7562=Array['from'](_0x4bc386)['map'](_0x56bba4=>_0x58eefd['createRangeOn'](_0x56bba4['cell']));_0xfc0040['markMultiRangeInsertion'](_0x2e7562,'tableRow');});});}for(const _0x348372 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2092ac=_0x357e23['commands']['get'](_0x348372);_0xfc0040['enableCommand'](_0x348372,_0x120979=>{_0x357e23['model']['change'](_0x16df71=>{_0x120979();const _0x53a687='left'===_0x2092ac['order'],_0x467822=_0x395845['getSelectionAffectedTableCells'](_0x1c39c9),_0x4cd4f7=_0x395845['getColumnIndexes'](_0x467822),_0xc5b944=_0x53a687?_0x4cd4f7['first']-0x1:_0x4cd4f7['last']+0x1,_0x464ff0=_0x467822[0x0]['findAncestor']('table'),_0x3a5366=_0x395845['createTableWalker'](_0x464ff0,{'startRow':0x0,'column':_0xc5b944,'includeAllSlots':!0x1}),_0x2acbd8=Array['from'](_0x3a5366)['map'](_0xe10630=>_0x16df71['createRangeOn'](_0xe10630['cell']));_0xfc0040['markMultiRangeInsertion'](_0x2acbd8,'tableColumn');});});}for(const _0x13e01c of['removeTableRow','removeTableColumn']){const _0x43de16=_0x13e01c['substr'](0xb),_0x12ef2f=_0x43de16['toLowerCase'](),_0x3ca6fb=_0x12ef2f['substr'](0x0,0x3)+'span',_0x274733='table'+_0x43de16,_0x483853='min'+_0x43de16,_0x6c2b4e='max'+_0x43de16;_0xfc0040['enableCommand'](_0x13e01c,()=>{_0x357e23['model']['change'](_0x4c6d8a=>{const _0x2ee42c=_0x395845['getSelectionAffectedTableCells'](_0x1c39c9),_0xa59376=_0x2ee42c[0x0]['findAncestor']('table');let _0x58d95e;if('removeTableRow'==_0x13e01c){const _0x553a00=_0x395845['getRowIndexes'](_0x2ee42c);_0x58d95e={'startRow':_0x553a00['first'],'endRow':_0x553a00['last'],'includeAllSlots':!0x0};}else{const _0x34ba1e=_0x395845['getColumnIndexes'](_0x2ee42c);_0x58d95e={'startColumn':_0x34ba1e['first'],'endColumn':_0x34ba1e['last'],'includeAllSlots':!0x0};}const _0x3bc6c6=_0x395845['createTableWalker'](_0xa59376,_0x58d95e),_0x518624=Array['from'](_0x3bc6c6)['map'](({cell:_0x4aa0ad})=>_0x4aa0ad),_0x3a7bf3=Ee(_0x518624['filter'](_0x35ebb1=>_0x35ebb1['hasAttribute'](_0x3ca6fb))),_0x259323=Ee(_0x518624['filter'](_0x5d33f2=>!_0x5d33f2['hasAttribute'](_0x3ca6fb)))['map'](_0x7a4e84=>_0x4c6d8a['createRangeOn'](_0x7a4e84)),_0xf3c02=_0xfc0040['markMultiRangeDeletion'](_0x259323,_0x274733);if(_0xf3c02&&('tableRow'==_0xf3c02['subType']||'tableColumn'==_0xf3c02['subType'])){const _0x393f62=this['_getSuggestionCoords'](_0xf3c02);for(const _0x332fbb of _0x3a7bf3){const _0x519700=_0x4c6d8a['createRangeOn'](_0x332fbb),_0x54412d=_0x395845['getCellLocation'](_0x332fbb),_0x4e65bb=_0x332fbb['getAttribute'](_0x3ca6fb)-0x1,_0x45722f=_0x393f62[_0x483853],_0x57a7f7=_0x393f62[_0x6c2b4e];_0x45722f<=_0x54412d[_0x12ef2f]&&_0x54412d[_0x12ef2f]+_0x4e65bb<=_0x57a7f7&&_0xf3c02['addRange'](_0x519700);}}});});}function _0x1ac3d9(_0x2210d8){const _0x45b6df=Array['from'](_0x1c39c9['getRanges']())['map'](_0x5791ae=>_0x54c30a['fromRange'](_0x5791ae));_0x357e23['model']['change'](_0x3be6fa=>{const _0x1c452f=_0x3be6fa['batch'];_0x2210d8=_0x2210d8['filter'](_0x4a1902=>'$graveyard'!=_0x4a1902['root']['rootName']),_0x3be6fa['setSelection'](_0x2210d8),_0x357e23['commands']['get']('removeTableRow')['refresh'](),_0x357e23['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x357e23['model']['enqueueChange'](()=>{_0x357e23['model']['enqueueChange'](_0x1c452f,_0x15bd4a=>{const _0x26690f=_0x45b6df['filter'](_0x58e267=>'$graveyard'!=_0x58e267['root']['rootName']);_0x26690f['length']>0x0&&_0x15bd4a['setSelection'](_0x26690f);for(const _0x589f82 of _0x45b6df)_0x589f82['detach']();});});});}function _0x5da136(_0x34b854){_0x357e23['model']['change'](_0x555424=>{const _0x39bfe6=Array['from'](_0x1c39c9['getRanges']())['map'](_0x4dddd4=>_0x54c30a['fromRange'](_0x4dddd4)),_0x16c863=[];for(const _0x43cf04 of _0x34b854)for(const _0x2fdb61 of _0x43cf04['getItems']({'shallow':!0x0}))_0x16c863['push'](_0x2fdb61);for(const _0xa23a45 of _0x16c863)'$graveyard'!=_0xa23a45['root']['rootName']&&(_0x555424['setSelection'](_0x555424['createPositionAt'](_0xa23a45,0x0)),_0x357e23['commands']['get']('removeTableColumn')['refresh'](),_0x357e23['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x562353=_0x39bfe6['filter'](_0x517d18=>'$graveyard'!=_0x517d18['root']['rootName']);_0x562353['length']>0x0&&_0x555424['setSelection'](_0x562353);for(const _0x3e7e2c of _0x39bfe6)_0x3e7e2c['detach']();});}function _0x1e2c04(_0x375779,_0x55c086){return _0x55c086['every'](_0x22da18=>_0x375779['some'](_0x225cb9=>_0x225cb9['end']['isEqual'](_0x22da18['start'])||_0x22da18['end']['isEqual'](_0x225cb9['start'])));}function _0x12ad48(_0x2d3da5,_0x290777){return _0x2d3da5['some'](_0x219e82=>_0x290777['some'](_0x37560e=>_0x219e82['end']['isTouching'](_0x37560e['start'])));}_0x357e23['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5f108d,_0x515623,_0x5c2223)=>{if(!_0x5c2223['options']['showSuggestionHighlights'])return;const _0x38fb0f=_0x515623['item'];if(!_0x38fb0f)return;const _0x239442=_0x5c2223['mapper']['toViewElement'](_0x38fb0f);function _0xbce742(_0x18cc5e){return Array['isArray'](_0x18cc5e)?_0x18cc5e:[_0x18cc5e];}_0x239442&&'tableCell'===_0x38fb0f['name']&&_0x50a99b(_0x239442,_0x5c2223['writer'],(_0x2e65fa,_0x300bb9,_0x24d855)=>_0x24d855['addClass'](_0xbce742(_0x300bb9['classes']),_0x2e65fa),(_0xb3f2bc,_0x147916,_0x42fd03)=>_0x42fd03['removeClass'](_0xbce742(_0x147916['classes']),_0xb3f2bc));},{'priority':'highest'}),_0xfc0040['descriptionFactory']['registerDescriptionCallback'](_0xa36bf6=>{if('insertion'!=_0xa36bf6['type']&&'deletion'!=_0xa36bf6['type'])return;const _0x490067=_0xa36bf6['getContainedElement']();if(null!=_0x490067&&_0x490067['is']('element','table')){if('insertion'==_0xa36bf6['type']){const _0x2d14ef=_0xa36bf6['getItems']()['filter'](_0x2d0299=>_0x2d0299['is']('$textProxy'))['map'](_0x2e8b2d=>_0x2e8b2d['data']);if(_0x2d14ef['length'])return{'type':'insertion','content':o(_0x5e19a8,'*Insert:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2d14ef['join']('\x20')+'\x22'))};}if('deletion'==_0xa36bf6['type']){const _0x5a53ee=_0xa36bf6['getItems']()['filter'](_0x23ed31=>_0x23ed31['is']('$textProxy'))['map'](_0x248c51=>_0x248c51['data']);if(_0x5a53ee['length'])return{'type':'deletion','content':o(_0x5e19a8,'*Remove:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5a53ee['join']('\x20')+'\x22'))};}}}),_0xfc0040['descriptionFactory']['registerDescriptionCallback'](_0x14de91=>{if('tableRow'==_0x14de91['subType']){const _0x389859=_0x14de91['getItems']()['filter'](_0x39acf2=>_0x39acf2['is']('$textProxy'))['map'](_0x247c3b=>_0x247c3b['data']),_0x3de77b=this['_getSuggestionCoords'](_0x14de91),_0x236346=_0x3de77b['maxRow']-_0x3de77b['minRow']+0x1;if('insertion'==_0x14de91['type'])return _0x389859['length']?{'type':'insertion','content':o(_0x5e19a8,'*Insert:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x236346,'\x22'+_0x389859['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5e19a8,'*Insert:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_ROW',_0x236346))};if('deletion'==_0x14de91['type'])return _0x389859['length']?{'type':'deletion','content':o(_0x5e19a8,'*Remove:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x236346,'\x22'+_0x389859['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5e19a8,'*Remove:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_ROW',_0x236346))};}if('tableColumn'==_0x14de91['subType']){const _0x3aea3e=_0x14de91['getItems']()['filter'](_0x24691c=>_0x24691c['is']('$textProxy'))['map'](_0xe84f30=>_0xe84f30['data']),_0x221221=this['_getSuggestionCoords'](_0x14de91),_0x26d0f0=_0x221221['maxColumn']-_0x221221['minColumn']+0x1;if('insertion'==_0x14de91['type'])return _0x3aea3e['length']?{'type':'insertion','content':o(_0x5e19a8,'*Insert:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x26d0f0,'\x22'+_0x3aea3e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5e19a8,'*Insert:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_COLUMN',_0x26d0f0))};if('deletion'==_0x14de91['type'])return _0x3aea3e['length']?{'type':'deletion','content':o(_0x5e19a8,'*Remove:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x26d0f0,'\x22'+_0x3aea3e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5e19a8,'*Remove:*\x20%0',o(_0x5e19a8,'ELEMENT_TABLE_COLUMN',_0x26d0f0))};}}),_0xfc0040['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1ac3d9),_0xfc0040['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1ac3d9),_0xfc0040['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5da136),_0xfc0040['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5da136),_0xfc0040['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1e2c04),_0xfc0040['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1e2c04),_0xfc0040['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x12ad48),_0xfc0040['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x12ad48);}['_acceptFormatSuggestionCallbackFactory'](){const _0x236231=this['editor'],_0x2098c0=_0x236231['model']['document']['selection'];return(_0xc4c948,_0x2d812c)=>{_0x236231['model']['change'](_0x31fcd0=>{const {commandName:_0xcc845a,commandParams:_0x3b670a}=_0x2d812c;let _0x4495cd=_0xc4c948[0x0]['end']['nodeBefore'];_0x3b670a&&_0x3b670a[0x0]&&!0x1===_0x3b670a[0x0]['forceValue']&&(_0x4495cd=_0xc4c948[0x0]['start']['nodeAfter']);const _0x53db98=_0x31fcd0['createRangeIn'](_0x4495cd);if('$graveyard'==_0x53db98['root']['rootName'])return;const _0x5db7ff=Array['from'](_0x2098c0['getRanges']())['map'](_0x2c492f=>_0x54c30a['fromRange'](_0x2c492f));_0x31fcd0['setSelection'](_0x53db98),_0x236231['commands']['get'](_0xcc845a)['refresh'](),_0x3b670a['push']({'forceDefaultExecution':!0x0}),_0x236231['execute'](_0xcc845a,..._0x3b670a);const _0x360fe1=_0x5db7ff['filter'](_0x3730c2=>'$graveyard'!=_0x3730c2['root']['rootName']);_0x360fe1['length']>0x0&&_0x31fcd0['setSelection'](_0x360fe1);for(const _0x37d37e of _0x5db7ff)_0x37d37e['detach']();});};}['_getCoordsForCells'](_0x350905){const _0x14cc0f=this['editor']['plugins']['get']('TableUtils');let _0x37d4c5=Number['MAX_SAFE_INTEGER'],_0x36f7ed=Number['MIN_SAFE_INTEGER'],_0x4829d3=Number['MAX_SAFE_INTEGER'],_0xf53075=Number['MIN_SAFE_INTEGER'];for(const _0x64f978 of _0x350905){if('$graveyard'==_0x64f978['root']['rootName'])continue;const {row:_0x276471,column:_0x10c6d8}=_0x14cc0f['getCellLocation'](_0x64f978),_0x3b3581=_0x64f978['hasAttribute']('rowspan')?_0x64f978['getAttribute']('rowspan')-0x1:0x0,_0x32d49b=_0x64f978['hasAttribute']('colspan')?_0x64f978['getAttribute']('colspan')-0x1:0x0;_0x37d4c5=_0x276471<_0x37d4c5?_0x276471:_0x37d4c5,_0x36f7ed=_0x276471+_0x3b3581>_0x36f7ed?_0x276471+_0x3b3581:_0x36f7ed,_0x4829d3=_0x10c6d8<_0x4829d3?_0x10c6d8:_0x4829d3,_0xf53075=_0x10c6d8+_0x32d49b>_0xf53075?_0x10c6d8+_0x32d49b:_0xf53075;}return{'minRow':_0x37d4c5,'maxRow':_0x36f7ed,'minColumn':_0x4829d3,'maxColumn':_0xf53075};}['_setupColumnsRowsFixing'](){const _0x3bdfde=this['editor'],_0x504773=_0x3bdfde['plugins']['get']('TrackChangesEditing'),_0x1bdbba=_0x3bdfde['plugins']['get']('TableUtils');_0x3bdfde['model']['document']['on']('change:data',()=>{const _0x18609f=Array['from'](_0x3bdfde['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3a9a28,data:_0x581539}of _0x18609f){const {group:_0x71774e,id:_0x50b5aa,subType:_0x137009}=_0x504773['_splitMarkerName'](_0x3a9a28);if('suggestion'!=_0x71774e)continue;if(null!=_0x581539['oldRange'])continue;const _0x134baa=_0x504773['getSuggestion'](_0x50b5aa);this['_tablePostFixingSubtypes']['includes'](_0x137009)&&this['_tableSuggestions']['add'](_0x134baa);}},{'priority':'low'});const _0xdbcfed=(_0x4db2a9,_0x5eeaa5)=>{let _0x3a4509=!0x1;const _0x10ce6a=_0x5eeaa5['createRangeOn'](_0x4db2a9),_0xc96232=_0x4db2a9['findAncestor']('table'),_0x404959=_0x1bdbba['getCellLocation'](_0x4db2a9);for(const _0x1e8efc of this['_tableSuggestions']){const _0x383ebe=_0x1e8efc['subType'],_0x32f024=_0x383ebe['startsWith']('tablePaste'),_0x509f74=_0x383ebe['substr'](_0x32f024?0xa:0x5),_0x5ee3c4=_0x509f74['toLowerCase'](),_0x141282=_0x5ee3c4['substr'](0x0,0x3)+'span',_0x1b9a29='min'+_0x509f74,_0x4d4b31='max'+_0x509f74;if(!_0x1e8efc['isInContent'])continue;if(_0xc96232!=_0x1e8efc['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1e8efc['isIntersectingWithRange'](_0x10ce6a))continue;const _0x459e85=_0x4db2a9['hasAttribute'](_0x141282)?_0x4db2a9['getAttribute'](_0x141282)-0x1:0x0,_0x20544f=this['_getSuggestionCoords'](_0x1e8efc),_0x7fb634=_0x20544f[_0x1b9a29],_0x247777=_0x20544f[_0x4d4b31];_0x7fb634<=_0x404959[_0x5ee3c4]&&_0x404959[_0x5ee3c4]+_0x459e85<=_0x247777&&(_0x1e8efc['addRange'](_0x10ce6a),_0x3a4509=!0x0);}return _0x3a4509;};_0x3bdfde['model']['document']['registerPostFixer'](_0x3384f0=>{let _0x14a312=!0x1;for(const _0x1f30c5 of _0x3bdfde['model']['document']['differ']['getChanges']())if('insert'==_0x1f30c5['type']){if('tableRow'==_0x1f30c5['name']){for(const _0x55942b of _0x1f30c5['position']['nodeAfter']['getChildren']())_0x14a312=_0x14a312||_0xdbcfed(_0x55942b,_0x3384f0);}else'tableCell'==_0x1f30c5['name']&&(_0x14a312=_0x14a312||_0xdbcfed(_0x1f30c5['position']['nodeAfter'],_0x3384f0));}return _0x14a312;});}['_getSuggestionCoords'](_0x3bafbf){return this['_getCoordsForCells'](_0x3bafbf['getRanges']()['map'](_0x37acb5=>_0x37acb5['start']['nodeAfter']));}}function Ee(_0x327738){return Array['from'](new Set(_0x327738)['values']());}class St extends _0xeaacfa{static get['requires'](){return[jt];}['afterInit'](){const _0x4451b5=this['editor'],_0xa8f89f=_0x4451b5['model']['document']['selection'],_0x39d395=_0x4451b5['locale'];if(!_0x4451b5['plugins']['has']('TableEditing'))return;const _0x1211ca=_0x4451b5['plugins']['get']('TrackChangesEditing'),_0x513826=_0x4451b5['plugins']['get']('TableUtils'),_0x22a6f9=_0x4451b5['plugins']['get'](jt);_0x22a6f9['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1211ca['enableCommand']('mergeTableCells',()=>{const _0x1f2c16=_0x513826['getSelectionAffectedTableCells'](_0x4451b5['model']['document']['selection']);_0x4451b5['model']['change'](()=>{_0x1211ca['markMultiRangeBlockFormat'](_0x1f2c16,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4451b5['commands']['get']('mergeTableCells')['on']('execute',(_0x1eb2c0,_0x1065d4)=>{_0x4451b5['commands']['get']('trackChanges')['value']&&(_0x1065d4['length']>0x0&&_0x1065d4[_0x1065d4['length']-0x1]&&_0x1065d4[_0x1065d4['length']-0x1]['forceDefaultExecution']||_0x1211ca['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1eb2c0['stop']());},{'priority':'highest'});for(const _0x27c0e3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xad7192=_0x4451b5['commands']['get'](_0x27c0e3);_0x1211ca['enableCommand'](_0x27c0e3,()=>{const _0x27e8ae=_0x4451b5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xf7ccd3=>_0xf7ccd3['is']('element','tableCell')),_0x46f4bc=_0xad7192['value'];_0x4451b5['model']['change'](()=>{_0x1211ca['markMultiRangeBlockFormat']([_0x27e8ae,_0x46f4bc],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1d0dcf of['splitTableCellVertically','splitTableCellHorizontally']){const _0x553d5d=_0x4451b5['commands']['get'](_0x1d0dcf);_0x1211ca['enableCommand'](_0x1d0dcf,()=>{const _0x193671=_0x513826['getSelectionAffectedTableCells'](_0x4451b5['model']['document']['selection'])[0x0],_0x58e763=_0x193671['findAncestor']('table'),{column:_0x3dc3ce,row:_0x4f98f1}=_0x513826['getCellLocation'](_0x193671);let _0x335b0e=[];if('horizontally'==_0x553d5d['direction']){const _0x5eeabf=_0x513826['createTableWalker'](_0x58e763,{'startRow':_0x4f98f1,'endRow':_0x4f98f1,'includeAllSlots':!0x0});_0x335b0e=Array['from'](_0x5eeabf)['map'](_0x39f571=>_0x39f571['cell']);}else{const _0x300d9c=_0x513826['createTableWalker'](_0x58e763,{'column':_0x3dc3ce,'includeAllSlots':!0x0});_0x335b0e=Array['from'](_0x300d9c)['map'](_0x431389=>_0x431389['cell']);}_0x4451b5['model']['change'](_0x2d3507=>{_0x1211ca['markBlockFormat'](_0x2d3507['createRangeOn'](_0x193671),{'commandName':_0x1d0dcf,'commandParams':[]},_0x335b0e,_0x1d0dcf);});});}_0x1211ca['descriptionFactory']['registerDescriptionCallback'](_0x4ccd14=>{if('formatBlock'!=_0x4ccd14['type']&&'formatInline'!=_0x4ccd14['type'])return;const {data:_0x5589f5}=_0x4ccd14;return _0x5589f5&&'mergeTableCells'==_0x5589f5['commandName']?{'type':'format','content':o(_0x39d395,'*Merge\x20cells*')}:void 0x0;}),_0x1211ca['descriptionFactory']['registerDescriptionCallback'](_0x540eb4=>{if('formatBlock'!=_0x540eb4['type']&&'formatInline'!=_0x540eb4['type'])return;const {data:_0xf331f0}=_0x540eb4;return _0xf331f0?'splitTableCellVertically'==_0xf331f0['commandName']?{'type':'format','content':o(_0x39d395,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xf331f0['commandName']?{'type':'format','content':o(_0x39d395,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x419109=_0x22a6f9['_acceptFormatSuggestionCallbackFactory']();for(const _0x424459 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1211ca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x424459,'accept',_0x419109);for(const _0x38dcc6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1211ca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x38dcc6,'accept',_0x419109);_0x1211ca['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1dfd55=>{_0x4451b5['model']['change'](_0x51b854=>{const _0x17ebee=Array['from'](_0xa8f89f['getRanges']())['map'](_0x5a7513=>_0x54c30a['fromRange'](_0x5a7513));_0x51b854['setSelection'](_0x1dfd55),_0x4451b5['commands']['get']('mergeTableCells')['refresh'](),_0x4451b5['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x199a17=_0x17ebee['filter'](_0x5ca504=>'$graveyard'!=_0x5ca504['root']['rootName']);_0x199a17['length']>0x0&&_0x51b854['setSelection'](_0x199a17);for(const _0x224ed6 of _0x17ebee)_0x224ed6['detach']();});});for(const _0x50b39 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x165b97=_0x4451b5['commands']['get'](_0x50b39);_0x165b97['on']('set:isEnabled',(_0xa9b421,_0x8f0429,_0x3f7cad)=>{if(_0x3f7cad){const _0x59988f=_0x4451b5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x588486=>_0x588486['is']('element','tableCell'));this['_areMergableCells'](_0x165b97['value'],_0x59988f)||(_0xa9b421['return']=!0x1,_0xa9b421['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2b3f5a=this['editor']['commands']['get']('mergeTableCells'),_0x292afb=this['editor']['plugins']['get']('TableUtils');if(!_0x2b3f5a['isEnabled'])return!0x1;const _0x279580=_0x292afb['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1eaef9 of _0x279580)for(const _0x1ea32e of _0x279580)if(_0x1eaef9!=_0x1ea32e&&!this['_areMergableCells'](_0x1eaef9,_0x1ea32e))return!0x1;return!0x0;}['_areMergableCells'](_0x55b65f,_0x4a4942){const _0x333dd2=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa6037b=this['editor']['model']['createRangeOn'](_0x55b65f),_0x2813d4=this['editor']['model']['createRangeOn'](_0x4a4942),_0x27a816=new Set(),_0x2694cb=new Set();for(const _0x576ffb of _0x333dd2['getSuggestions']())if(('insertion'==_0x576ffb['type']||'deletion'==_0x576ffb['type']||'mergeTableCells'==_0x576ffb['subType'])&&_0x576ffb['isInContent']){for(const _0x85ccb4 of _0x576ffb['getRanges']())_0x85ccb4['containsRange'](_0xa6037b,!0x0)&&_0x27a816['add'](_0x576ffb['type']+':'+_0x576ffb['author']['id']),_0x85ccb4['containsRange'](_0x2813d4,!0x0)&&_0x2694cb['add'](_0x576ffb['type']+':'+_0x576ffb['author']['id']);}if(_0x27a816['size']!=_0x2694cb['size'])return!0x1;for(const _0x4a71b8 of _0x27a816)if(!_0x2694cb['has'](_0x4a71b8))return!0x1;return!0x0;}}class At extends _0xeaacfa{static get['requires'](){return[jt];}['afterInit'](){const _0x218bed=this['editor'];if(!_0x218bed['plugins']['has']('TableEditing'))return;const _0x4f6a0f=_0x218bed['locale'],_0x20a036=_0x218bed['plugins']['get']('TrackChangesEditing');_0x20a036['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x20a036['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x20a036['registerBlockAttribute']('headingRows'),_0x20a036['registerBlockAttribute']('headingColumns'),_0x20a036['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4f6a0f,'FORMAT_HEADER_ROW')),_0x20a036['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4f6a0f,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x13094f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58d172=this['editor']['plugins']['get']('TableUtils'),_0x1a3687=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3547e5({showActiveMarker:_0x3f13e0=!0x0,setDataAttribute:_0x4e5625=!0x0}={}){return(_0x19eee4,_0x4e9e28,_0x5dba64)=>{const {type:_0x5de45b,id:_0x453b11}=_0x13094f['_splitMarkerName'](_0x4e9e28['markerName']),_0x33b3c9=_0x13094f['getSuggestion'](_0x453b11),_0x52e3d1=_0x33b3c9['data'];if('formatBlock'!=_0x33b3c9['type']||!_0x52e3d1||'setTableColumnHeader'!=_0x52e3d1['commandName'])return;if(_0x4e9e28['item'])return void _0x19eee4['stop']();if(!_0x5dba64['consumable']['consume'](_0x4e9e28['markerRange'],_0x19eee4['name']))return;const _0x502585=_0x4e9e28['markerRange']['start']['nodeAfter'],_0x2c8306=_0x4e9e28['markerRange']['end']['nodeBefore'],_0xfbdb6a=_0x502585['parent']['parent'],{column:_0x257009}=_0x58d172['getCellLocation'](_0x502585),{column:_0x50f278}=_0x58d172['getCellLocation'](_0x2c8306);for(let _0x178c63=_0x257009;_0x178c63<=_0x50f278;_0x178c63++){const _0x2c95ef=_0x58d172['createTableWalker'](_0xfbdb6a,{'column':_0x178c63,'includeAllSlots':!0x1});for(const _0x248593 of _0x2c95ef){const _0x291de1=_0x248593['cell'],_0x3991c5=_0x5dba64['mapper']['toViewElement'](_0x291de1);_0x5dba64['writer']['addClass']('ck-suggestion-marker-'+_0x5de45b,_0x3991c5),_0x4e5625&&_0x5dba64['writer']['setAttribute']('data-suggestion',_0x453b11,_0x3991c5),_0x5dba64['mapper']['bindElementToMarker'](_0x3991c5,_0x4e9e28['markerName']),_0x3f13e0&&(_0x13094f['activeMarkers']['includes'](_0x4e9e28['markerName'])?_0x5dba64['writer']['addClass']('ck-suggestion-marker--active',_0x3991c5):_0x5dba64['writer']['removeClass']('ck-suggestion-marker--active',_0x3991c5));}}};}_0x13094f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1a3687),_0x13094f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1a3687),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3547e5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x38364b,_0x1262fe,_0x2a87d6)=>{_0x2a87d6['options']['showSuggestionHighlights']&&_0x3547e5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x38364b,_0x1262fe,_0x2a87d6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x30185a,_0x1a4f20,_0x3803e0)=>{const {type:_0x1a869e,id:_0x23f955}=_0x13094f['_splitMarkerName'](_0x1a4f20['markerName']),_0x3b1577=_0x13094f['getSuggestion'](_0x23f955),_0x2618c1=_0x3b1577['data'];if('formatBlock'!=_0x3b1577['type']||!_0x2618c1||'setTableColumnHeader'!=_0x2618c1['commandName'])return;const _0x322216=_0x3803e0['mapper']['markerNameToElements'](_0x1a4f20['markerName']);if(_0x322216){for(const _0x5c4fe6 of _0x322216)_0x3803e0['writer']['removeClass']('ck-suggestion-marker-'+_0x1a869e,_0x5c4fe6),_0x3803e0['writer']['removeClass']('ck-suggestion-marker--active',_0x5c4fe6),_0x3803e0['writer']['removeAttribute']('data-suggestion',_0x5c4fe6),_0x3803e0['mapper']['unbindElementFromMarkerName'](_0x5c4fe6,_0x1a4f20['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf7b11=this['editor'],_0x5601b6=_0xf7b11['locale'];function _0x4ef85e(_0x2a51fc){return{'type':'format','content':o(_0x5601b6,'*Format:*\x20%0',_0x2a51fc)};}_0xf7b11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2faf8c=>{if('formatBlock'!=_0x2faf8c['type'])return;const {data:_0x1c62f6}=_0x2faf8c;if(_0x1c62f6){if('setTableRowHeader'==_0x1c62f6['commandName']){const _0x1c8834=_0x1c62f6['commandParams'][0x0]['forceValue'];return _0x4ef85e(o(_0x5601b6,_0x1c8834?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1c62f6['commandName']){const _0x3601d3=_0x1c62f6['commandParams'][0x0]['forceValue'];return _0x4ef85e(o(_0x5601b6,_0x3601d3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x13f6a7=>[_0x13f6a7,null]));class It extends _0xeaacfa{static get['requires'](){return[jt];}['afterInit'](){const _0x165a73=this['editor'];if(!_0x165a73['plugins']['has']('TableClipboard'))return;const _0x399ddf=_0x165a73['plugins']['get']('TrackChangesEditing'),_0xf28c68=_0x165a73['plugins']['get']('TableUtils'),_0x4ca2e8=_0x165a73['plugins']['get'](jt),_0x1e2fb4=_0x165a73['plugins']['get']('TableClipboard');_0x4ca2e8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x165a73['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x165a73['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x59e39e=null;_0x165a73['model']['on']('insertContent',(_0x4be22a,_0x3d01b4)=>{const [_0x4d5a6b,_0x42e60d]=_0x3d01b4,_0x1707a0=_0x3d01b4[_0x3d01b4['length']-0x1];_0x1707a0&&_0x1707a0['forceDefaultExecution']||_0x399ddf['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2d4784,_0x221c11,_0x2234f,_0x427cfc,_0x522a49){if(_0x221c11&&!_0x221c11['is']('documentSelection'))return!0x1;const _0x952cdb=_0x522a49['getTableIfOnlyTableInContent'](_0x2d4784,_0x2234f);if(!_0x952cdb||!he(_0x952cdb,void 0x0,_0x427cfc))return!0x1;const _0x5418c2=_0x427cfc['getSelectionAffectedTableCells'](_0x2234f['document']['selection']);if(!_0x5418c2['length'])return!0x1;const _0x4f6df9=_0x5418c2[0x0]['findAncestor']('table'),_0x1a550a=_0x427cfc['getRowIndexes'](_0x5418c2),_0x5afbe1=_0x427cfc['getColumnIndexes'](_0x5418c2),_0x3de486={'startRow':_0x1a550a['first'],'endRow':_0x1a550a['last'],'startColumn':_0x5afbe1['first'],'endColumn':_0x5afbe1['last']};return 0x1==_0x5418c2['length']&&(_0x3de486['endRow']+=_0x427cfc['getRows'](_0x952cdb)-0x1,_0x3de486['endColumn']+=_0x427cfc['getColumns'](_0x952cdb)-0x1),he(_0x4f6df9,_0x3de486,_0x427cfc);}(_0x4d5a6b,_0x42e60d,_0x165a73['model'],_0xf28c68,_0x1e2fb4)&&(_0x4be22a['stop'](),_0x59e39e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x165a73['model']['change'](()=>{_0x165a73['model']['insertContent'](_0x3d01b4[0x0],_0x3d01b4[0x1],_0x3d01b4[0x2],{'forceDefaultExecution':!0x0});const _0x5d0e6d=_0x107e61(),{rowInsertionRanges:_0xc11aec,columnInsertionRanges:_0x487266,insertionRanges:_0x26db87,deletionRanges:_0x3b4add,cells:_0x388e00}=_0x59e39e;_0xc11aec['length']&&_0x399ddf['markMultiRangeInsertion'](_0xc11aec,'tablePasteRow',{'tablePasteChainId':_0x5d0e6d}),_0x487266['length']&&_0x399ddf['markMultiRangeInsertion'](_0x487266,'tablePasteColumn',{'tablePasteChainId':_0x5d0e6d}),_0x26db87['length']&&(_0x399ddf['markMultiRangeInsertion'](_0x26db87,'tablePaste',{'tablePasteChainId':_0x5d0e6d,'skipNestingCheck':!0x0}),_0x26db87['forEach'](_0x17243d=>_0x17243d['detach']?.())),_0x3b4add['length']&&(_0x399ddf['markMultiRangeDeletion'](_0x3b4add,'tablePaste',{'tablePasteChainId':_0x5d0e6d,'skipNestingCheck':!0x0}),_0x3b4add['forEach'](_0x398bfc=>_0x398bfc['detach']?.()));const _0x316fbb=_0x399ddf['markMultiRangeBlockFormat'](_0x388e00['map'](({element:_0x255d66})=>_0x255d66),{'formatGroupId':_0x107e61()},[],'tablePasteCell',{'tablePasteChainId':_0x5d0e6d});if(_0x316fbb){const _0x5c8dc5=_0x316fbb['getMarkers'](),_0x54fbaf=[];for(const {element:_0x1d0afb,attributes:_0x21c46a}of _0x388e00){if(!_0x21c46a)continue;const _0x42f9e2=_0x165a73['model']['createRangeOn'](_0x1d0afb),_0x458d23=_0x5c8dc5['find'](_0x3ae1d6=>_0x3ae1d6['getRange']()['isEqual'](_0x42f9e2));_0x458d23&&_0x54fbaf['push']([_0x458d23['name'],_0x21c46a]);}_0x54fbaf['length']&&_0x316fbb['setAttribute']('markerAttributes',Object['fromEntries'](_0x54fbaf));}_0x59e39e=null;}));},{'priority':_0x2a5a1e['high']+0xa}),_0x165a73['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5afbb5,_0x52d02d)=>{const [_0x6a4f0a,_0xfb72ac,,_0x4df531]=_0x52d02d;if(!_0x59e39e)return;_0x5afbb5['stop']();const _0x3a9b61=_0x6a4f0a['cell'],_0x22232f=_0xfb72ac,_0x44b6e1=Pe(_0x3a9b61),_0x400fee=Pe(_0x22232f);_0x5afbb5['return']=_0x3a9b61;let _0x3c4b82=null,_0x436496=null;if(_0x400fee||_0x44b6e1){if(_0x44b6e1&&!_0x400fee){_0x4df531['remove'](_0x3a9b61['getChild'](0x0));for(const _0x3f2f0 of Array['from'](_0x22232f['getChildren']()))_0x4df531['insert'](_0x3f2f0,_0x3a9b61,'end');const _0x55f90f=_0x59e39e['rowInsertionIndexes']['includes'](_0x6a4f0a['row']),_0x2b47fa=_0x59e39e['columnInsertionIndexes']['includes'](_0x6a4f0a['column']);_0x55f90f||_0x2b47fa||(_0x3c4b82=_0x54c30a['fromRange'](_0x4df531['createRangeIn'](_0x3a9b61)));}else _0x400fee&&!_0x44b6e1&&(_0x436496=_0x4df531['createRangeIn'](_0x3a9b61));}else{const _0x37cfb4=_0x4df531['createElement']('tableCellSuggestion'),_0xc6eb55=_0x4df531['createElement']('tableCellSuggestion');_0x4df531['wrap'](_0x4df531['createRangeIn'](_0x3a9b61),_0xc6eb55),_0x4df531['insert'](_0x37cfb4,_0x3a9b61,0x0);for(const _0x37817a of Array['from'](_0x22232f['getChildren']()))_0x4df531['insert'](_0x37817a,_0x37cfb4,'end');_0x3c4b82=_0x54c30a['fromRange'](_0x4df531['createRangeOn'](_0x37cfb4)),_0x436496=_0x54c30a['fromRange'](_0x4df531['createRangeOn'](_0xc6eb55));}const _0x1aa850=Array['from'](_0x22232f['getAttributes']())['filter'](([_0x4a615a])=>ge['includes'](_0x4a615a));_0x59e39e['cells']['push']({'element':_0x3a9b61,'attributes':_0x1aa850['length']?Object['fromEntries'](_0x1aa850):null}),_0x3c4b82&&_0x59e39e['insertionRanges']['push'](_0x3c4b82),_0x436496&&_0x59e39e['deletionRanges']['push'](_0x436496);},{'priority':'high'}),_0xf28c68['on']('insertColumns',(_0x14f388,_0x145513)=>{const [_0x244c4a,_0x281f74={}]=_0x145513;if(!_0x59e39e)return;const _0x813532=_0x281f74['at']||0x0,_0x5231df=_0x281f74['columns']||0x1;_0x59e39e['columnInsertionIndexes']=new Array(_0x5231df)['fill'](_0x813532)['map']((_0x4ebfd4,_0x57dfd1)=>_0x4ebfd4+_0x57dfd1);for(const {cell:_0x438c1b}of _0xf28c68['createTableWalker'](_0x244c4a,{'startColumn':_0x813532,'endColumn':_0x813532+_0x5231df-0x1}))_0x59e39e['columnInsertionRanges']['push'](_0x165a73['model']['createRangeOn'](_0x438c1b));},{'priority':'low'}),_0xf28c68['on']('insertRows',(_0x2e7094,_0x217689)=>{const [_0x4581fe,_0x1541ee={}]=_0x217689;if(!_0x59e39e)return;const _0x38bda7=_0x1541ee['at']||0x0,_0x2ca5a2=_0x1541ee['rows']||0x1;_0x59e39e['rowInsertionIndexes']=new Array(_0x2ca5a2)['fill'](_0x38bda7)['map']((_0x2bceb1,_0x4e5263)=>_0x2bceb1+_0x4e5263);for(const {cell:_0x3ee164}of _0xf28c68['createTableWalker'](_0x4581fe,{'startRow':_0x38bda7,'endRow':_0x38bda7+_0x2ca5a2-0x1}))_0x59e39e['rowInsertionRanges']['push'](_0x165a73['model']['createRangeOn'](_0x3ee164));},{'priority':'low'}),_0x399ddf['descriptionFactory']['registerDescriptionCallback'](_0x5c0b56=>{if(_0x5c0b56['subType']&&_0x5c0b56['subType']['startsWith']('tablePaste'))return _0x5c0b56['previous']?{}:{'type':'insertion','content':o(_0x165a73['locale'],'*Replace\x20table\x20cells*')};});const _0x58b2f9=()=>!0x1;for(const _0x1d31fb of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x399ddf['_suggestionFactory']['registerCustomCallback']('insertion',_0x1d31fb,'join',_0x58b2f9),_0x399ddf['_suggestionFactory']['registerCustomCallback']('deletion',_0x1d31fb,'join',_0x58b2f9),_0x399ddf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1d31fb,'join',_0x58b2f9);_0x399ddf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x58b2f9),_0x399ddf['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x433d57,_0x268b2e,_0x51a327)=>{const _0x35515a=_0x433d57['map'](_0x2ee79d=>_0x2ee79d['getContainedElement']())['filter'](_0x2fc3d2=>_0x2fc3d2),_0x4bd94c=new Map(_0x35515a['map'](_0x2ecb0f=>[_0x2ecb0f,null]));if(_0x59e39e){for(const {element:_0x167557,attributes:_0x5e0ad5}of _0x59e39e['cells'])_0x5e0ad5&&_0x4bd94c['set'](_0x167557,_0x5e0ad5);}else{if(_0x51a327&&_0x51a327['markerAttributes'])for(const [_0x8e1bbe,_0x43788e]of Object['entries'](_0x51a327['markerAttributes'])){const _0x14b3dc=_0x165a73['model']['markers']['get'](_0x8e1bbe),_0x2185f2=_0x14b3dc?_0x14b3dc['getRange']()['getContainedElement']():null;_0x2185f2&&_0x4bd94c['set'](_0x2185f2,_0x43788e);}}_0x165a73['model']['change'](_0x1751ce=>{for(const [_0x3f7ffe,_0x3a84cd]of _0x4bd94c)_0x1751ce['setAttributes']({...Ce,..._0x3a84cd},_0x3f7ffe);});});const _0x2bd1b8=(_0x9fd842,_0x997f8f)=>{_0x399ddf['_suggestionFactory']['registerCustomCallback'](_0x9fd842,'tablePaste',_0x997f8f,(_0xe6652d,_0x5bf7d9,_0x446b90)=>{_0x165a73['model']['change'](_0x46a4c1=>{const _0x155c00=[];for(const _0x253709 of _0xe6652d){const _0x12444c=_0x253709['start']['nodeAfter'];_0x12444c['is']('element','tableCellSuggestion')&&_0x155c00['push'](_0x12444c);}_0x399ddf['_suggestionFactory']['getSuggestionCallback'](_0x9fd842,null,_0x997f8f)(_0xe6652d,_0x5bf7d9,_0x446b90);for(const _0x4eeb08 of _0x155c00)'$graveyard'!=_0x4eeb08['root']['rootName']&&_0x46a4c1['unwrap'](_0x4eeb08);});});};_0x2bd1b8('insertion','accept'),_0x2bd1b8('insertion','discard'),_0x2bd1b8('deletion','accept'),_0x2bd1b8('deletion','discard'),_0x399ddf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x118e56=>{const _0x40c57=_0x118e56['map'](_0x154fa7=>_0x154fa7['getContainedElement']()),_0x56f0d1=_0x40c57[0x0]['findAncestor']('table'),{minRow:_0x56a8eb,maxRow:_0x40cdf9}=_0x4ca2e8['_getCoordsForCells'](_0x40c57);_0xf28c68['removeRows'](_0x56f0d1,{'at':_0x56a8eb,'rows':_0x40cdf9-_0x56a8eb+0x1});}),_0x399ddf['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3fdb7e=>{const _0x3e6767=_0x3fdb7e['map'](_0x1430ae=>_0x1430ae['getContainedElement']()),_0x8372ae=_0x3e6767[0x0]['findAncestor']('table'),{minColumn:_0x3585a7,maxColumn:_0x4760e7}=_0x4ca2e8['_getCoordsForCells'](_0x3e6767);_0xf28c68['removeColumns'](_0x8372ae,{'at':_0x3585a7,'columns':_0x4760e7-_0x3585a7+0x1});});const _0x45c6fc=(_0x5efc37,_0x3ef72b)=>{if(!_0x3ef72b['subType']||!_0x3ef72b['subType']['startsWith']('tablePaste'))return;const _0x20a6f2=_0x3ef72b['attributes']['tablePasteChainId'],_0x1896f4=_0x399ddf['getSuggestions']()['filter'](_0x55a82d=>_0x55a82d['isInContent']&&_0x55a82d['attributes']&&_0x55a82d['attributes']['tablePasteChainId']==_0x20a6f2);_0x1896f4['length']&&_0x3ef72b['getAllAdjacentSuggestions']()['length']!=_0x1896f4['length']&&_0x1896f4['reduce']((_0x258072,_0xcd98e5)=>(_0x258072['next']=_0xcd98e5,_0xcd98e5['previous']=_0x258072,_0xcd98e5));};function _0x3cb355(_0xf9ace7,_0xb3e81a=!0x0){const {id:_0x30ab7e}=_0x399ddf['_splitMarkerName'](_0xf9ace7['markerName']),_0x318547=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5cee11=_0x399ddf['activeMarkers']['includes'](_0xf9ace7['markerName']);return _0x5cee11&&_0x318547['push']('ck-suggestion-marker--active'),{'classes':_0x318547,'attributes':{'data-suggestion':_0x30ab7e},'priority':_0x5cee11&&_0xb3e81a?0xbc2:0xbb8};}_0x399ddf['on']('suggestionLoaded',_0x45c6fc,{'priority':'high'}),_0x399ddf['on']('suggestionUnloaded',_0x45c6fc,{'priority':'high'}),_0x165a73['model']['document']['registerPostFixer'](()=>{let _0x3d3256=!0x1;const _0x5e5ae9=Array['from'](_0x165a73['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xad07c2,data:_0x1bdb9f}of _0x5e5ae9){const {group:_0x38c8f4,type:_0x3125ec,id:_0x3529d1}=_0x399ddf['_splitMarkerName'](_0xad07c2);if('suggestion'!=_0x38c8f4||'deletion'!=_0x3125ec||_0x1bdb9f['oldRange'])continue;if(!_0x399ddf['hasSuggestion'](_0x3529d1))continue;const _0x1e56c3=_0x399ddf['getSuggestion'](_0x3529d1)['getRanges'](),_0x152c65=_0x165a73['plugins']['get']('Users')['me'];for(const _0x2c7f7c of _0x399ddf['getSuggestions']()){if(!_0x2c7f7c['isInContent']||_0x2c7f7c['author']!=_0x152c65)continue;if('formatBlock'!=_0x2c7f7c['type']||'tablePasteCell'!=_0x2c7f7c['subType'])continue;if(_0x2c7f7c['getRanges']()['every'](_0x1e48da=>_0x1e56c3['some'](_0x1f9e6a=>_0x1f9e6a['containsRange'](_0x1e48da,!0x0)))){for(const _0x2b3b08 of _0x2c7f7c['getAllAdjacentSuggestions']())_0x2b3b08['isInContent']&&(_0x2b3b08['discard'](),_0x3d3256=!0x0);}}}return _0x3d3256;}),_0x165a73['model']['document']['registerPostFixer'](_0xebd1c=>{const _0x44892b=_0x165a73['commands']['get']('redo');if(!_0x44892b||!_0x44892b['_createdBatches']['has'](_0xebd1c['batch']))return!0x1;let _0x44b394=!0x1;const _0x22bf2d=_0x165a73['plugins']['get']('Users')['me'],_0x288dcc=_0x165a73['model']['document']['differ']['getChanges'](),_0x44643d=Array['from'](_0x165a73['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x47b042,data:_0x5863b1})=>{const {group:_0x742fd0,subType:_0x5bfd06,authorId:_0x2955c7}=_0x399ddf['_splitMarkerName'](_0x47b042);return'suggestion'==_0x742fd0&&'tablePaste'==_0x5bfd06&&_0x2955c7==_0x22bf2d['id']&&!_0x5863b1['oldRange'];});for(const _0x428ec2 of _0x288dcc){if('insert'!=_0x428ec2['type']||'tableCellSuggestion'!=_0x428ec2['name']||0x1!=_0x428ec2['length'])continue;const _0x329ec4=_0xebd1c['createRange'](_0x428ec2['position'],_0x428ec2['position']['getShiftedBy'](0x1));if(!_0x44643d['find'](({data:_0x46f730})=>_0x46f730['newRange']['isEqual'](_0x329ec4))){for(const {name:_0x3f9210,data:_0x205b25}of _0x44643d)if(_0x329ec4['containsRange'](_0x205b25['newRange'])){_0xebd1c['updateMarker'](_0x3f9210,{'range':_0x329ec4}),_0x44b394=!0x0;break;}}}return _0x44b394;}),_0x165a73['model']['document']['registerPostFixer'](_0x2e317f=>{let _0x5d6735=!0x1;const _0x164231=_0x165a73['plugins']['get']('Users')['me'],_0x21d7ca=_0x399ddf['getSuggestions']()['filter'](_0x1ff51a=>_0x1ff51a['isInContent']&&_0x1ff51a['author']==_0x164231),_0x264686=new Set(),_0x180316=new Set();for(const _0x34a8e7 of _0x21d7ca)if('tablePaste'==_0x34a8e7['subType'])for(const _0x5d9c10 of _0x34a8e7['getMarkers']()){const _0x38b056=_0x5d9c10['getRange']()['getContainedElement']();if(_0x38b056){if(_0x38b056['is']('element','tableCellSuggestion')&&Pe(_0x38b056)){_0x34a8e7['removeMarker'](_0x5d9c10['name']),_0x264686['add'](_0x38b056),_0x5d6735=!0x0;const _0x515e7a=_0x38b056['nextSibling'],_0x1e25d3=_0x38b056['previousSibling'],_0x29742a=_0x515e7a&&_0x515e7a['is']('element','tableCellSuggestion'),_0x59ba3a=_0x1e25d3&&_0x1e25d3['is']('element','tableCellSuggestion');_0x29742a&&!_0x264686['has'](_0x515e7a)&&_0x180316['add'](_0x515e7a),_0x59ba3a&&!_0x264686['has'](_0x1e25d3)&&_0x180316['add'](_0x1e25d3);}else _0x38b056['is']('element','paragraph')&&_0x38b056['isEmpty']&&(_0x34a8e7['removeMarker'](_0x5d9c10['name']),_0x5d6735=!0x0);}}else{if('tablePasteCell'==_0x34a8e7['subType']){if(!_0x34a8e7['attributes']||!_0x34a8e7['attributes']['tablePasteChainId'])continue;const _0x189751=_0x34a8e7['attributes']['markerAttributes'];if(_0x189751&&Object['keys'](_0x189751)['length'])continue;const _0x20504c=_0x34a8e7['attributes']['tablePasteChainId'];let _0x3491f2=!0x0,_0x4381ae=!0x0;for(const _0x14de44 of _0x21d7ca)if(_0x14de44['subType']&&_0x14de44['subType']['startsWith']('tablePaste')){if(!_0x14de44['attributes']['tablePasteChainId']){_0x4381ae=!0x1;break;}if(_0x14de44['id']!=_0x34a8e7['id']&&_0x14de44['attributes']['tablePasteChainId']==_0x20504c){_0x3491f2=!0x1;break;}}_0x4381ae&&_0x3491f2&&(_0x34a8e7['removeMarkers'](),_0x5d6735=!0x0);}}for(const _0xa028f8 of _0x264686)_0x2e317f['remove'](_0xa028f8);for(const _0x412cad of _0x180316)_0x2e317f['unwrap'](_0x412cad);return _0x5d6735;}),_0x165a73['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2b18d1,_0x251ae3)=>_0x3cb355(_0x2b18d1),'converterPriority':'high'}),_0x165a73['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x28769a,_0x417268)=>_0x417268['options']['showSuggestionHighlights']?_0x3cb355(_0x28769a,!0x1):null,'converterPriority':'high'});const _0x3a4e8b=_0x165a73['editing']['view'];this['listenTo'](_0x3a4e8b['document'],'clipboardOutput',(_0x13107e,_0x242798)=>{const _0x4383c3=[];for(const _0x34eacc of _0x3a4e8b['createRangeIn'](_0x242798['content'])['getItems']())_0x34eacc['is']('element','suggestion-td')&&_0x4383c3['push'](_0x34eacc);_0x3a4e8b['change'](_0x149e25=>{for(const _0x4dccf4 of _0x4383c3)_0x149e25['move'](_0x149e25['createRangeIn'](_0x4dccf4),_0x149e25['createPositionBefore'](_0x4dccf4)),_0x149e25['remove'](_0x4dccf4);});});}}function Pe(_0x373e85){if(_0x373e85['isEmpty'])return!0x0;const _0x38169c=_0x373e85['getChild'](0x0);return _0x38169c['is']('element','paragraph')&&_0x38169c['isEmpty'];}function he(_0x5e26fd,_0x3bb194={},_0x2eb673){for(const {isAnchor:_0x576b7e,cellHeight:_0x4d5e9c,cellWidth:_0x16a6c8}of _0x2eb673['createTableWalker'](_0x5e26fd,{'includeAllSlots':!0x0,..._0x3bb194}))if(!_0x576b7e||0x1!=_0x4d5e9c||0x1!=_0x16a6c8)return!0x1;return!0x0;}class vt extends _0xeaacfa{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2061ca=this['editor']['plugins']['get']('TrackChangesEditing');_0x2061ca['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2061ca['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2061ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2061ca['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2061ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2061ca['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x464130,_0x4c4d12){const _0x1aee42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d26fc=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x159341=_0x4c4d12['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1ff44e=_0x1d26fc['getColumnGroupElement'](_0x159341);let _0x43c61b=_0x1ff44e?_0x1d26fc['getTableColumnsWidths'](_0x1ff44e):null,_0x432ff7=_0x159341['getAttribute']('tableWidth')||null;const _0x5da690=_0x4c4d12['tableWidth']||_0x432ff7,_0x141860=_0x4c4d12['columnWidths']||_0x43c61b,_0x5c37a9=this['editor']['plugins']['get']('Users')['me'];for(const _0x3eb43f of _0x1aee42['getSuggestions']()){const _0x3cc65d=_0x3eb43f['getContainedElement']();if('resizeTable'===_0x3eb43f['subType']&&_0x3cc65d===_0x159341){_0x3eb43f['author']!==_0x5c37a9&&_0x3eb43f['discard']();const _0x3e6c9b=_0x3eb43f['data']['commandParams'];_0x432ff7=_0x3e6c9b[0x0]['tableWidth'],_0x43c61b=_0x3e6c9b[0x0]['columnWidths'];break;}}_0x464130({'table':_0x159341,'tableWidth':_0x5da690,'columnWidths':_0x141860}),_0x1aee42['markBlockFormat'](_0x159341,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x432ff7,'columnWidths':_0x43c61b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x7adbd7){if('formatBlock'!=_0x7adbd7['type']&&'formatInline'!=_0x7adbd7['type'])return;const {data:_0x2d4992}=_0x7adbd7;if(_0x2d4992&&'resizeTable'===_0x2d4992['formatGroupId']){const _0x4650af='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4650af)};}}}class Ct extends _0xeaacfa{['afterInit'](){const _0x481ac1=this['editor'];_0x481ac1['plugins']['has']('Template')&&_0x481ac1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0xeaacfa{['afterInit'](){const _0x5701b2=this['editor'];if(!_0x5701b2['commands']['get']('insertTableOfContents'))return;_0x5701b2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x20f029=_0x5701b2['plugins']['get']('TrackChangesEditing'),_0x361a70=_0x5701b2['locale'];_0x20f029['descriptionFactory']['registerElementLabel']('tableOfContents',_0x42c9bb=>o(_0x361a70,'ELEMENT_TABLE_OF_CONTENTS',_0x42c9bb));}}class Dt extends _0xeaacfa{['afterInit'](){const _0x5f51ca=this['editor'];if(!_0x5f51ca['plugins']['has']('Title'))return;const _0x38efd6=_0x5f51ca['plugins']['get']('TrackChangesEditing');_0x38efd6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5f51ca['locale'],'ELEMENT_TITLE')),_0x5f51ca['model']['document']['registerPostFixer'](_0x2c36a2=>{let _0x5114cc=!0x1;const _0x580adc=Array['from'](_0x5f51ca['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x6d2f53,data:_0x5e4a39}of _0x580adc){const {group:_0x2bdc6e}=_0x38efd6['_splitMarkerName'](_0x6d2f53);if('suggestion'!==_0x2bdc6e||!_0x5e4a39['newRange'])continue;const _0x47a1a5=_0x5e4a39['newRange'],_0x583b94=_0x47a1a5['end']['nodeBefore'];if(!_0x583b94||!_0x583b94['is']('element','title-content'))continue;if(!_0x47a1a5['start']['isTouching'](_0x47a1a5['end']))continue;const _0x27f22a=_0x5f51ca['model']['schema']['getNearestSelectionRange'](_0x47a1a5['end'],'forward');if(_0x27f22a&&_0x27f22a['isCollapsed']){const _0x23a9ca=_0x2c36a2['createRange'](_0x47a1a5['start'],_0x27f22a['start']);_0x23a9ca['isEqual'](_0x47a1a5)||(_0x2c36a2['updateMarker'](_0x6d2f53,{'range':_0x23a9ca}),_0x5114cc=!0x0);}_0x5114cc||(_0x2c36a2['removeMarker'](_0x6d2f53),_0x5114cc=!0x0);}return _0x5114cc;});}}class Nt extends _0xeaacfa{['afterInit'](){const _0x48d4fc=this['editor'],_0x1ba16e=_0x48d4fc['plugins']['get']('TrackChangesEditing');_0x48d4fc['plugins']['has']('UndoEditing')&&(_0x1ba16e['enableCommand']('undo'),_0x1ba16e['enableCommand']('redo'));}}class Mt extends _0xeaacfa{static get['requires'](){return[jt];}['afterInit'](){const _0x4ee4bb=this['editor'];if(!_0x4ee4bb['plugins']['has']('TableCaptionEditing'))return;_0x4ee4bb['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0xeaacfa{['tableProperties'];['tableCellProperties'];constructor(_0xc3ee3){super(_0xc3ee3),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x3c185e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x6e05f2 of this['tableProperties'])_0x3c185e['enableCommand'](_0x6e05f2,(_0x54ea20,_0x1c4418)=>{const _0x3b3616=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x6e05f2,[_0x3b3616],this['tableProperties'],'tableProperties',_0x54ea20,_0x1c4418);});_0x3c185e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3c185e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c185e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x37a69f,_0x2d182d)=>this['handleDiscardAction'](this['tableProperties'],_0x37a69f,_0x2d182d)),_0x3c185e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3dc8e1 of this['tableCellProperties'])_0x3c185e['enableCommand'](_0x3dc8e1,(_0x392bd6,_0x118a04)=>{const _0x373be4=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3dc8e1,_0x373be4,this['tableCellProperties'],'tableCellProperties',_0x392bd6,_0x118a04);});_0x3c185e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3c185e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c185e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4dfc9a,_0x46c86a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4dfc9a,_0x46c86a)),_0x3c185e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3c185e['descriptionFactory']['registerDescriptionCallback'](_0x28e779=>this['handleSuggestionDescription'](_0x28e779));}['_handlePropertyChange'](_0x363ac0,_0x714cda,_0xed7629,_0x4814d6,_0xcd4f25,_0x4ddacb){const _0x46cd1b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4ddacb['batch'],()=>{for(const _0xd13a99 of _0x714cda){if(this['_getSuggestion'](_0xd13a99,_0x4814d6))_0xcd4f25(_0x4ddacb);else{const _0x3ef50e={};for(const _0x114e86 of _0xed7629){const _0x412616=_0xd13a99['getAttribute'](_0x114e86);void 0x0!==_0x412616&&(_0x3ef50e[_0x114e86]=_0x412616);}_0xcd4f25(_0x4ddacb),_0x46cd1b['markBlockFormat'](_0xd13a99,{'commandParams':[_0x3ef50e]},[],_0x4814d6);}}});}['handleDiscardAction'](_0x41e940,_0x2c452f,_0x4b3eb0){const _0x55bc0f=_0x2c452f[0x0]['start']['nodeAfter'],_0x543c28=_0x4b3eb0['commandParams'][0x0];this['editor']['model']['change'](_0x33fbd1=>{for(const _0x4a17cf of _0x41e940)void 0x0!==_0x543c28[_0x4a17cf]?_0x33fbd1['setAttribute'](_0x4a17cf,_0x543c28[_0x4a17cf],_0x55bc0f):_0x33fbd1['removeAttribute'](_0x4a17cf,_0x55bc0f);});}['handleSuggestionDescription'](_0x11991c){if(_0x11991c['data'])switch(_0x11991c['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xa42539,_0x18e0a6){const _0x2dc689=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x53b0ce of _0x2dc689['getSuggestions']({'skipNotAttached':!0x0})){const _0x2a5152=_0x53b0ce['getContainedElement']();if(_0x53b0ce['subType']===_0x18e0a6&&_0x2a5152===_0xa42539)return _0x53b0ce;}return null;}}const m='$elementName';class p extends _0xeaacfa{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x43f0c5,_0x5b0c8c,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x3c36a4){function _0x530108(_0x94857){return _0x94857['map'](_0x46bebd=>String['fromCharCode'](_0x46bebd))['join']('');}super(_0x3c36a4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x589360,_0x493b40,_0x169230,_0x576a44)=>{this['_model']['change'](()=>{for(const _0x3d4428 of[..._0x576a44,..._0x169230])this['_model']['markers']['has'](_0x3d4428)&&_0x3c36a4['editing']['reconvertMarker'](_0x3d4428);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3c36a4['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x3c36a4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3c36a4['config']['get']('trackChanges.trackFormatChanges'),_0x3c36a4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3c36a4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x3c36a4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x530108([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x530108([0x34,0x30,0x34,0x38,0x31,0x32,0x30,0x36]);}['init'](){const _0x4153d9=this['editor'],_0x2a6c08=(_0x9415b9,_0x22f22d)=>{if('attribute'!=_0x9415b9)return'ck-suggestion-marker-'+_0x9415b9;const _0x4732b4=_0x22f22d['split']('|')[0x0];return this['_isBlockAttribute'](_0x4732b4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4153d9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4f0451=>{const {id:_0x3a6108,type:_0x1be66f,subType:_0x9164be}=this['_splitMarkerName'](_0x4f0451['markerName']),_0x217f7c=['ck-suggestion-marker',_0x2a6c08(_0x1be66f,_0x9164be)];let _0x53c61d=0xbb8;return this['activeMarkers']['includes'](_0x4f0451['markerName'])&&(_0x217f7c['push']('ck-suggestion-marker--active'),_0x53c61d=0xbc2),'deletion'==_0x1be66f&&(_0x53c61d+=0x5),{'classes':_0x217f7c,'attributes':{'data-suggestion':_0x3a6108},'priority':_0x53c61d};}}),_0x4153d9['conversion']['for']('dataDowncast')['add'](_0x170a5a=>{_0x170a5a['on']('addMarker:suggestion',(_0x3bad45,_0x4a0c0c,_0x5272b7)=>{if(!_0x5272b7['options']['showSuggestionHighlights'])return;const _0x1aa1f2=_0x4a0c0c['item'];if(!_0x1aa1f2)return;const _0x23b9df=_0x5272b7['mapper']['toViewElement'](_0x1aa1f2);_0x4153d9['model']['schema']['isObject'](_0x1aa1f2)&&_0x23b9df&&!_0x23b9df['getCustomProperty']('widget')&&_0x23b9df['is']('containerElement')&&_0x390659(_0x23b9df,_0x5272b7['writer']);},{'priority':'high'});}),_0x4153d9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3c78bd,_0x3cdb7c)=>{if(!_0x3cdb7c['options']['showSuggestionHighlights'])return null;const {type:_0x140798,subType:_0x551a19}=this['_splitMarkerName'](_0x3c78bd['markerName']);return{'classes':['ck-suggestion-marker',_0x2a6c08(_0x140798,_0x551a19)],'priority':0xbb8};}});const _0x2146ab=({showActiveMarkers:_0x288fda=!0x0,isAttributeSuggestion:_0x439180=!0x1}={})=>(_0x5071c0,_0x4202f3,_0x2c36c9)=>{if(!_0x4202f3['item'])return;const {id:_0x35b25e}=this['_splitMarkerName'](_0x4202f3['markerName']);if(_0x439180){const _0x2b7904=this['_suggestions']['get'](_0x35b25e),_0x4c6498=this['_getAttributeKey'](_0x2b7904);if(!this['_isBlockAttribute'](_0x4c6498))return;}if(_0x4202f3['item']['is']('selection'))return void _0x2c36c9['consumable']['consume'](_0x4202f3['item'],_0x5071c0['name']);const _0xdd49fe=_0x2c36c9['mapper']['toViewElement'](_0x4202f3['item']);if(_0x4202f3['item']['is']('element')&&_0x4153d9['model']['schema']['isBlock'](_0x4202f3['item'])&&!_0xdd49fe['getCustomProperty']('addHighlight')){_0x2c36c9['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xdd49fe),_0x2c36c9['writer']['setAttribute']('data-suggestion',_0x35b25e,_0xdd49fe),_0x2c36c9['mapper']['bindElementToMarker'](_0xdd49fe,_0x4202f3['markerName']),_0x288fda&&(this['activeMarkers']['includes'](_0x4202f3['markerName'])?_0x2c36c9['writer']['addClass']('ck-suggestion-marker--active',_0xdd49fe):_0x2c36c9['writer']['removeClass']('ck-suggestion-marker--active',_0xdd49fe));for(const _0x5e3b82 of _0x4153d9['model']['createRangeIn'](_0x4202f3['item'])['getItems']())_0x2c36c9['consumable']['consume'](_0x5e3b82,_0x5071c0['name']);_0x2c36c9['consumable']['consume'](_0x4202f3['item'],_0x5071c0['name']);}};_0x4153d9['conversion']['for']('dataDowncast')['add'](_0x4a6a5a=>{_0x4a6a5a['on']('addMarker:suggestion:formatBlock',(_0x3a9127,_0x1f533c,_0x1d2045)=>{_0x1d2045['options']['showSuggestionHighlights']&&_0x2146ab({'showActiveMarkers':!0x1})(_0x3a9127,_0x1f533c,_0x1d2045);},{'priority':'highest'});}),_0x4153d9['conversion']['for']('dataDowncast')['add'](_0x5c7162=>{_0x5c7162['on']('addMarker:suggestion:attribute',(_0x370c5c,_0x315c35,_0x56eb28)=>{_0x56eb28['options']['showSuggestionHighlights']&&_0x2146ab({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x370c5c,_0x315c35,_0x56eb28);},{'priority':'highest'});}),_0x4153d9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x25b437,_0x38b03e)=>_0x38b03e['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x25b437['substr'](0xb)}}),_0x4153d9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x15e211,{writer:_0x5cf57d})=>{let _0x138326='suggestion:'+_0x15e211['getAttribute']('suggestion-type')+':'+_0x15e211['getAttribute']('id');return _0x15e211['getAttribute']('marker-count')&&(_0x138326+=':'+_0x15e211['getAttribute']('marker-count')),_0x5cf57d['createElement']('$marker',{'data-name':_0x138326});}}),_0x4153d9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4153d9['conversion']['for']('editingDowncast')['add'](_0x1391ea=>{_0x1391ea['on']('addMarker:suggestion:formatBlock',_0x2146ab(),{'priority':'high'});}),_0x4153d9['conversion']['for']('editingDowncast')['add'](_0x30499a=>{_0x30499a['on']('addMarker:suggestion:attribute',_0x2146ab({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4153d9['conversion']['for']('editingDowncast')['add'](_0x1a5943=>{_0x1a5943['on']('removeMarker:suggestion:formatBlock',(_0x59e57a,_0x2c6798,_0x1c094b)=>{const _0x338cad=_0x1c094b['mapper']['markerNameToElements'](_0x2c6798['markerName']);if(_0x338cad){for(const _0x2ad3db of _0x338cad)_0x2ad3db['getCustomProperty']('addHighlight')||(_0x1c094b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2ad3db),_0x1c094b['writer']['removeAttribute']('data-suggestion',_0x2ad3db),_0x1c094b['mapper']['unbindElementFromMarkerName'](_0x2ad3db,_0x2c6798['markerName']));}},{'priority':'high'});}),_0x4153d9['conversion']['for']('editingDowncast')['add'](_0x3b1ef0=>{_0x3b1ef0['on']('removeMarker:suggestion:attribute',(_0x52d24a,_0x3031af,_0x446deb)=>{const _0xfa1dc5=_0x446deb['mapper']['markerNameToElements'](_0x3031af['markerName']);if(!_0xfa1dc5)return;const {id:_0x1cd119}=this['_splitMarkerName'](_0x3031af['markerName']),_0x2f84a7=this['_suggestions']['get'](_0x1cd119),_0x52ed8b=this['_getAttributeKey'](_0x2f84a7);if(this['_isBlockAttribute'](_0x52ed8b)){for(const _0x169038 of _0xfa1dc5)_0x169038['getCustomProperty']('addHighlight')||(_0x446deb['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x169038),_0x446deb['writer']['removeAttribute']('data-suggestion',_0x169038),_0x446deb['mapper']['unbindElementFromMarkerName'](_0x169038,_0x3031af['markerName']));}},{'priority':'high'});}),_0x4153d9['model']['document']['registerPostFixer'](_0x53e135=>{let _0x40b6a4=!0x1;const _0x5aff5d=Array['from'](_0x4153d9['model']['document']['differ']['getChangedMarkers']()),_0x4d3eb5=new Set();for(const {name:_0x13bd82,data:_0x35a969}of _0x5aff5d){const {group:_0x4603a7,type:_0x5e3ff7,subType:_0x432e64,id:_0x3683a7}=this['_splitMarkerName'](_0x13bd82);if('suggestion'!==_0x4603a7)continue;const _0x5c15bb=this['_suggestions']['get'](_0x3683a7);if(null!=_0x35a969['newRange']){'formatInline'==_0x5e3ff7&&(_0x40b6a4=_0x40b6a4||Et(_0x35a969['newRange'],_0x13bd82,_0x53e135,_0x4153d9['model']['schema']));const _0x15445a='attribute'==_0x5e3ff7&&this['_isBlockAttribute'](_0x432e64['split']('|')[0x0]);if(_0x35a969['newRange']['isCollapsed']||'$graveyard'==_0x35a969['newRange']['root']['rootName']||'formatBlock'==_0x5e3ff7&&!Ut(_0x35a969['newRange'])||_0x15445a&&!Ut(_0x35a969['newRange'])||'deletion'==_0x5e3ff7&&!(!Tt(_0x70365f=_0x35a969['newRange'])&&!function(_0x4f16de){return _0x4f16de['start']['parent']==_0x4f16de['end']['nodeBefore']&&_0x4f16de['start']['isAtEnd'];}(_0x70365f)))_0x53e135['removeMarker'](_0x13bd82),_0x40b6a4=!0x0;else{if(!_0x5c15bb||!_0x5c15bb['isInContent'])continue;_0x4d3eb5['add'](_0x5c15bb);}}}var _0x70365f;return _0x4d3eb5['size']>0x0&&(_0x40b6a4=!!this['_joinWithAdjacentSuggestions'](_0x4d3eb5)||_0x40b6a4),_0x40b6a4;}),_0x4153d9['model']['document']['registerPostFixer'](_0x5a7950=>{let _0x452dd2=!0x1;for(const _0x59da43 of _0x4153d9['model']['document']['differ']['getChanges']())if('insert'==_0x59da43['type'])for(const _0x40625e of this['_suggestions']['values']()){if(_0x40625e['isMultiRange']||!_0x40625e['isInContent'])continue;const _0x2d11c2='formatBlock'==_0x40625e['type'],_0x2b8ad9=this['_getAttributeKey'](_0x40625e),_0x498bd0=_0x2b8ad9&&this['_isBlockAttribute'](_0x2b8ad9);if(!_0x2d11c2&&!_0x498bd0)continue;const _0x53b16f=_0x40625e['getFirstRange']();if(_0x53b16f['start']['parent']!=_0x53b16f['end']['parent']&&!_0x53b16f['end']['isAtEnd']){const _0x46f639=_0x4153d9['model']['createPositionAt'](_0x53b16f['start']['nodeAfter'],'end'),_0xa0e1e4=_0x4153d9['model']['createRange'](_0x53b16f['start'],_0x46f639);_0x5a7950['updateMarker'](_0x40625e['getFirstMarker'](),{'range':_0xa0e1e4}),_0x452dd2=!0x0;}}return _0x452dd2;}),_0x4153d9['model']['document']['registerPostFixer'](_0xd168be=>this['_processAttributeChanges'](_0xd168be)),_0x4153d9['model']['document']['registerPostFixer'](_0x3bb2f3=>!_0x3bb2f3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3bb2f3)),_0x4153d9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4153d9['model']['document']['on']('change:data',(_0x3b3ad1,_0x7bd6cd)=>{if(!_0x7bd6cd['isLocal']||_0x7bd6cd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x44d4c3=_0x4153d9['model']['document']['differ']['getChanges']();if(0x0==_0x44d4c3['length'])return;const _0x3f5f47=[],_0x186fb6=_0x44d4c3['filter'](_0x42ba6c=>'attribute'==_0x42ba6c['type']),_0x380154=_0x44d4c3['filter'](_0x5d6df9=>'insert'==_0x5d6df9['type']&&'$text'!=_0x5d6df9['name']);for(const _0x3f3b97 of _0x186fb6)this['_isRegisteredAttribute'](_0x3f3b97['attributeKey'])&&_0x3f5f47['push']({'key':_0x3f3b97['attributeKey'],'newValue':_0x3f3b97['attributeNewValue'],'oldValue':_0x3f3b97['attributeOldValue'],'range':Ot(_0x3f3b97['range'],_0x4153d9['model'])});for(const _0x5650fd of _0x380154){if('rename'!=_0x5650fd['action']&&'refresh'!=_0x5650fd['action'])continue;const _0xd21062=Gt(_0x5650fd['position']['nodeAfter'],_0x4153d9['model']),_0x44111a=_0x5650fd['before'];'rename'==_0x5650fd['action']&&_0x3f5f47['push']({'key':m,'newValue':_0x5650fd['name'],'oldValue':_0x44111a['name'],'range':_0xd21062});for(const [_0x2020a7,_0x1e221f]of _0x44111a['attributes']){if(!this['_isRegisteredAttribute'](_0x2020a7))continue;const _0x19c058=_0x5650fd['attributes']['get'](_0x2020a7);_0x1e221f!==_0x19c058&&_0x3f5f47['push']({'key':_0x2020a7,'newValue':_0x19c058,'oldValue':_0x1e221f,'range':_0xd21062});}for(const [_0x13046d,_0x3af118]of _0x5650fd['attributes'])this['_isRegisteredAttribute'](_0x13046d)&&(_0x44111a['attributes']['has'](_0x13046d)||_0x3f5f47['push']({'key':_0x13046d,'newValue':_0x3af118,'oldValue':null,'range':_0xd21062}));}0x0!=_0x3f5f47['length']&&_0x4153d9['model']['enqueueChange'](_0x7bd6cd,_0x2fa2fb=>{const _0x16ed8d=_0x107e61();for(const {range:_0x2a1d73,key:_0x4463f8,oldValue:_0x59786e,newValue:_0x495d02}of _0x3f5f47)this['markAttributeChange'](_0x2a1d73,_0x4463f8,_0x59786e,_0x495d02,{'groupId':_0x16ed8d});this['_reduceExistingSuggestions'](_0x2fa2fb,_0x3f5f47);});},{'priority':'lowest'}),_0x4153d9['model']['markers']['on']('update:suggestion',(_0x56596a,_0x4e7d95,_0x154a3d)=>{if(null==_0x154a3d){const {id:_0x41f394}=this['_splitMarkerName'](_0x4e7d95['name']),_0x428112=this['_suggestions']['get'](_0x41f394);_0x428112&&_0x428112['addMarkerName'](_0x4e7d95['name']);}}),_0x4153d9['model']['document']['on']('change:data',()=>{const _0x170142=Array['from'](_0x4153d9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x14f61b=>'suggestion'===this['_splitMarkerName'](_0x14f61b['name'])['group']);if(0x0===_0x170142['length'])return;_0x170142['sort']((_0x3eb67e,_0x3eb8cf)=>{const _0x18f86f=_0x3eb67e['data']['oldRange'],_0x8b1510=_0x3eb8cf['data']['oldRange'];return null===_0x18f86f&&null===_0x8b1510?0x0:null===_0x18f86f&&null!==_0x8b1510?-0x1:null!==_0x18f86f&&null===_0x8b1510?0x1:_0x18f86f['start']['isBefore'](_0x8b1510['start'])?-0x1:0x1;});const _0x340b39=new Set(),_0x5377f3=new Set();for(const {name:_0x63b0a,data:_0x460422}of _0x170142){const {id:_0x5b9533}=this['_splitMarkerName'](_0x63b0a);if(null===_0x460422['oldRange']){const _0x489513=this['_handleNewSuggestionMarker'](_0x63b0a);_0x5377f3['add'](_0x489513);}else{const _0x35b990=this['_suggestions']['get'](_0x5b9533);null!==_0x460422['newRange']||_0x35b990['isInContent']?(_0x340b39['add'](_0x35b990['head']),_0x5377f3['add'](_0x35b990)):this['_removeSuggestion'](_0x35b990);}}_0x5377f3['size']>0x0&&this['_refreshSuggestionsChain'](_0x5377f3);for(const _0x54ef71 of _0x340b39)this['fire']('suggestionChanged',_0x54ef71);}),_0x4153d9['model']['on']('applyOperation',(_0x48ffce,_0x4c614e)=>{const _0x33d70a=_0x4c614e[0x0];if(!this['_suggestions']['size'])return;if(!_0x33d70a['isDocumentOperation'])return;if(_0x33d70a['batch']['isUndo']||!_0x33d70a['batch']['isLocal'])return;let _0xa8446f,_0x56f277;switch(_0x33d70a['type']){case'insert':_0xa8446f=_0x4153d9['model']['createPositionAt'](_0x33d70a['position']),_0x56f277=_0xa8446f['getShiftedBy'](_0x33d70a['howMany']);break;case'split':_0xa8446f=_0x4153d9['model']['createPositionAt'](_0x33d70a['splitPosition']),_0x56f277=_0x4153d9['model']['createPositionAt'](_0x33d70a['moveTargetPosition']);break;case'move':_0xa8446f=_0x4153d9['model']['createPositionAt'](_0x33d70a['targetPosition']),_0x56f277=_0xa8446f['getShiftedBy'](_0x33d70a['howMany']);break;default:return;}const _0x4e8762=_0x4153d9['model']['createRange'](_0xa8446f,_0x56f277);_0x4153d9['model']['change'](()=>{for(const {suggestion:_0x4c2f45,meta:_0x3ee93d}of this['_findSuggestions'](_0x4e8762)){if(_0x4c2f45['isMultiRange'])continue;if('formatInline'==_0x4c2f45['type'])continue;const _0x5531f4=this['_getAttributeKey'](_0x4c2f45);if(_0x5531f4&&this['_isBlockAttribute'](_0x5531f4)&&'split'!=_0x33d70a['type'])continue;const _0x1bd234=_0x4c2f45['data']&&_0x4c2f45['data']['multipleBlocks'];('formatBlock'!=_0x4c2f45['type']||'split'==_0x33d70a['type']&&!_0x1bd234)&&(_0x3ee93d['containsRangeInObject']||'insertion'==_0x4c2f45['type']&&_0x3ee93d['isOwn']||_0x4c2f45['getFirstRange']()['containsRange'](_0x4e8762)&&this['_breakSuggestionMarker'](_0x4c2f45,_0xa8446f,_0x56f277));}});},{'priority':'lowest'}),_0x4153d9['model']['on']('deleteContent',(_0x3b3889,_0x540009)=>{const _0x249e69=_0x540009[0x0],_0x2ea4f3=_0x540009[0x1];if(_0x2ea4f3&&_0x2ea4f3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x249e69['isCollapsed'])return;const _0x5b097e=_0x4153d9['model']['schema'],{start:_0x3c63ec,end:_0x5bbf8e}=_0x249e69['getFirstRange'](),_0x11dda3=_0x3c63ec['nodeAfter']&&_0x5b097e['isLimit'](_0x3c63ec['nodeAfter'])?null:_0x5b097e['getNearestSelectionRange'](_0x3c63ec,'forward'),_0x1577a6=_0x5bbf8e['nodeBefore']&&_0x5b097e['isLimit'](_0x5bbf8e['nodeBefore'])?null:_0x5b097e['getNearestSelectionRange'](_0x5bbf8e,'backward'),_0xc8703=_0x4153d9['model']['createRange'](_0x11dda3?_0x11dda3['start']:_0x3c63ec,_0x1577a6?_0x1577a6['end']:_0x5bbf8e);_0x4153d9['model']['change'](_0x4eff28=>{this['markDeletion'](_0xc8703);const _0x19b1fd=_0x4153d9['model']['schema']['getNearestSelectionRange'](_0xc8703['start']);_0x249e69['is']('documentSelection')?_0x4eff28['setSelection'](_0x19b1fd):_0x249e69['setTo'](_0x19b1fd);}),_0x3b3889['stop']();},{'priority':_0x2a5a1e['normal']+0xa}),_0x4153d9['model']['on']('insertContent',(_0x39a7c2,_0x4e5b63)=>{const _0x125e73=_0x4e5b63[_0x4e5b63['length']-0x1];_0x125e73&&_0x125e73['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4153d9['model']['change'](()=>{let _0x5501c8=_0x4153d9['model']['insertContent'](_0x4e5b63[0x0],_0x4e5b63[0x1],_0x4e5b63[0x2],{'forceDefaultExecution':!0x0});if(!_0x5501c8)return;_0x39a7c2['return']=_0x5501c8['clone']();const _0x4e0523=_0x5501c8['end']['nodeBefore'],_0x2154c8=_0x4153d9['model']['schema'];_0x4e0523&&_0x2154c8['isBlock'](_0x4e0523)&&!_0x2154c8['isObject'](_0x4e0523)&&(_0x5501c8=_0x4153d9['model']['createRange'](_0x5501c8['start'],_0x4153d9['model']['createPositionAt'](_0x4e0523,'end'))),this['markInsertion'](_0x5501c8);}),_0x39a7c2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4bdc7b=new $(_0x4153d9,this['_suggestions']);_0x4153d9['commands']['add']('acceptSuggestion',_0x4bdc7b),this['enableCommand']('acceptSuggestion');const _0x5a2d11=new B(_0x4153d9,this['_suggestions']);_0x4153d9['commands']['add']('discardSuggestion',_0x5a2d11),this['enableCommand']('discardSuggestion'),_0x4153d9['commands']['add']('acceptAllSuggestions',new x(_0x4153d9,_0x4bdc7b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4153d9['commands']['add']('discardAllSuggestions',new x(_0x4153d9,_0x5a2d11,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4153d9['commands']['add']('acceptSelectedSuggestions',new R(_0x4153d9,_0x4bdc7b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4153d9['commands']['add']('discardSelectedSuggestions',new R(_0x4153d9,_0x5a2d11,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x38d51c=_0x4153d9['plugins']['get']('CommentsRepository');this['listenTo'](_0x38d51c,'addComment',(_0x1961ed,{threadId:_0x571ef0})=>{const _0x103adb=this['_suggestions']['get'](_0x571ef0);_0x103adb&&_0x103adb['commentThread']&&0x1===_0x103adb['commentThread']['length']&&this['_updateSuggestionData'](_0x571ef0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x38d51c,'removeComment',(_0x6de1f5,{threadId:_0xc8bc18})=>{const _0x23061f=this['_suggestions']['get'](_0xc8bc18);_0x23061f&&_0x23061f['commentThread']&&!_0x23061f['commentThread']['length']&&this['_updateSuggestionData'](_0xc8bc18,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x1a4c7b){if(this['_adapter'])throw new _0x4054be('track-changes-adapter-already-set',this);this['_adapter']=_0x1a4c7b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x38db09=!0x1,toJSON:_0x544fae=!0x1}={}){const _0x4db9c3=[];for(const _0x49121a of this['_suggestions']['values']())_0x38db09&&!_0x49121a['isInContent']||_0x4db9c3['push'](_0x49121a);return _0x544fae?_0x4db9c3['map'](_0x3e2783=>_0x3e2783['toJSON']()):_0x4db9c3;}['getSuggestion'](_0x355d49){const _0x5d38fa=this['_suggestions']['get'](_0x355d49);if(!_0x5d38fa)throw new _0x4054be('track-changes-suggestion-not-found',this);return _0x5d38fa;}['hasSuggestion'](_0x2390ee){return this['_suggestions']['has'](_0x2390ee);}['addSuggestionData'](_0x3e0b18){const {authorId:_0x50bd4e,id:_0x5a0407,attributes:_0xa0d239}=_0x3e0b18,[_0xc02176,_0x12d178]=_0x3e0b18['type']['split'](':'),_0x3bc3cb=this['_suggestions']['get'](_0x5a0407)||this['_createSuggestion'](_0xc02176,_0x12d178,_0x5a0407,_0x50bd4e,_0xa0d239);if(this['_addThreadToSuggestion'](_0x3bc3cb),this['_checkSuggestionCorrectness'](_0x3bc3cb,_0xc02176,_0x12d178||null,_0x50bd4e),_0x3bc3cb['createdAt']=_0x3e0b18['createdAt'],_0x3bc3cb['_isDataLoaded']=!0x0,_0xa0d239&&_0xa0d239['@external']){const _0x34debc=_0xa0d239['@external'],_0x1b1cfe=this['_getExternalAuthor'](_0x34debc['authorName']);_0x3bc3cb['authoredAt']=_0x34debc['createdAt'],_0x3bc3cb['author']=_0x1b1cfe,_0x3bc3cb['isExternal']=!0x0;}else _0x3bc3cb['authoredAt']=_0x3e0b18['createdAt'];switch(_0x3e0b18['data']&&(_0x3bc3cb['data']=_0x3e0b18['data']),_0x3e0b18['attributes']&&(_0x3bc3cb['attributes']=_0x3e0b18['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3bc3cb['_saved']=!0x0),this['_suggestionState']['get'](_0x3bc3cb)){case'notReady':this['_suggestionState']['set'](_0x3bc3cb,'dataReady');break;case'markerReady':_0x3bc3cb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3bc3cb])),this['_refreshSuggestionsChain'](new Set([_0x3bc3cb])),this['_suggestionState']['set'](_0x3bc3cb,'ready'),this['fire']('suggestionLoaded',_0x3bc3cb)):this['_suggestionState']['set'](_0x3bc3cb,'removed');}return _0x3bc3cb;}['acceptSuggestion'](_0x102950){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2f7909 of _0x102950['getAllAdjacentSuggestions']())_0x2f7909['accept']();});});}['discardSuggestion'](_0xe4f91){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1c3521 of _0xe4f91['getAllAdjacentSuggestions']())_0x1c3521['discard']();});});}['enableCommand'](_0x38c09c,_0x2d161f){const _0x134e23=this['editor']['commands']['get'](_0x38c09c);if(!_0x134e23)throw new _0x4054be('track-changes-command-not-found',this,{'commandName':_0x38c09c});if(this['_enabledCommands']['has'](_0x134e23))throw new _0x4054be('track-changes-enable-command-twice',this,{'commandName':_0x38c09c});this['_enabledCommands']['add'](_0x134e23),_0x2d161f&&_0x134e23['on']('execute',(_0x1a638b,_0x4871fb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4871fb['length']>0x0&&_0x4871fb[_0x4871fb['length']-0x1]&&_0x4871fb[_0x4871fb['length']-0x1]['forceDefaultExecution']?_0x4871fb['pop']():(_0x1a638b['return']=_0x2d161f((..._0x9026c7)=>_0x134e23['execute'](..._0x9026c7,{'forceDefaultExecution':!0x0}),..._0x4871fb),_0x1a638b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x336c72){let _0x4cc5bb,_0x4fea28;const _0x1d349f=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4cc5bb=_0x336c72();}catch(_0x4e1733){_0x4fea28=_0x4e1733;}return _0x1d349f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4fea28&&_0x4054be['rethrowUnexpectedError'](_0x4fea28,this),_0x4cc5bb;}['markInsertion'](_0xc9ce21,_0x208198=null,_0x24a48e={}){if(_0xc9ce21['isCollapsed'])return null;const _0x18c767=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x22fcf8,meta:_0x22c9eb}of this['_findSuggestions'](_0xc9ce21,'insertion'))if(_0x22c9eb['isOwn']){if(!_0x22c9eb['isNextTo']){if(_0x22c9eb['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x22fcf8,_0x24a48e))continue;return _0x22fcf8;}if(Lt(_0x22fcf8,_0x24a48e))return _0x22fcf8;this['_breakSuggestionMarker'](_0x22fcf8,_0xc9ce21['start'],_0xc9ce21['end']);break;}if(_0x208198==_0x22fcf8['subType']&&Lt(_0x22fcf8,_0x24a48e)){const _0x14b940=_0x22fcf8['getFirstRange']();return _0x14b940['start']['isEqual'](_0xc9ce21['end'])?this['_setSuggestionRange'](_0x22fcf8,this['_model']['createRange'](_0xc9ce21['start'],_0x14b940['end'])):this['_setSuggestionRange'](_0x22fcf8,this['_model']['createRange'](_0x14b940['start'],_0xc9ce21['end'])),_0x22fcf8;}}const _0xeaf09=_0x107e61(),_0x32e88a=_0x18c767['id'],_0x48dd6c=_0x208198?'insertion:'+_0x208198:'insertion',_0x4f9854=this['_setSuggestionData']({'id':_0xeaf09,'type':_0x48dd6c,'createdAt':new Date(),'authorId':_0x32e88a,'attributes':_0x24a48e});return this['_addSuggestionMarker'](_0x48dd6c,_0xeaf09,_0x32e88a,_0xc9ce21),_0x4f9854;}['markMultiRangeInsertion'](_0x7e4492,_0x1f74ff='multi',_0x1a2a93={}){const _0x5dfa76=this['editor']['plugins']['get']('Users')['me'],_0x4597b3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1f74ff,'join');for(const _0x19be0a of this['getSuggestions']())if(_0x19be0a['author']['id']==_0x5dfa76['id']&&'insertion'==_0x19be0a['type']&&_0x19be0a['subType']==_0x1f74ff&&Lt(_0x19be0a,_0x1a2a93)&&(_0x4597b3(_0x19be0a['getRanges'](),_0x7e4492)||_0x4597b3(_0x7e4492,_0x19be0a['getRanges']()))){for(const _0x36ec9d of _0x7e4492)_0x19be0a['addRange'](_0x36ec9d);return _0x19be0a;}for(const {suggestion:_0x20cd6e,meta:_0x591762}of this['_findSuggestions'](_0x7e4492,'insertion')){if(!_0x591762['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x591762['containsRangeInObject'])continue;if(!Lt(_0x20cd6e,_0x1a2a93))continue;let _0x4ac559=!0x0;for(const _0x521894 of _0x20cd6e['getRanges']())for(const _0xa3123c of _0x7e4492)if(!_0x521894['containsRange'](_0xa3123c)){_0x4ac559=!0x1;break;}if(_0x4ac559)return _0x20cd6e;}const _0x234e5a=_0x107e61(),_0x377612=_0x5dfa76['id'],_0x3e73f0='insertion:'+_0x1f74ff,_0x354c79=this['_setSuggestionData']({'id':_0x234e5a,'type':_0x3e73f0,'createdAt':new Date(),'authorId':_0x377612,'attributes':_0x1a2a93});for(const _0x51cd57 of _0x7e4492)this['_addSuggestionMarker'](_0x3e73f0,_0x234e5a,_0x377612,_0x51cd57,u['getMultiRangeId']());return _0x354c79;}['markInlineFormat'](_0x521612,_0x51f27c,_0x1d983a=null,_0x3a69b0={}){if(_0x1d983a=_0x1d983a||Vt(_0x51f27c),_0x521612['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x37bc85=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1d983a,'accept');return this['forceDefaultExecution'](()=>_0x37bc85([_0x521612],_0x51f27c,_0x3a69b0)),null;}const _0x5b40cf=this['editor']['plugins']['get']('Users')['me'],_0x2d36ae=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x198789,meta:_0x3a0028}of this['_findSuggestions'](_0x521612,'insertion'))_0x3a0028['isOwn']&&!_0x3a0028['isInsideObject']&&_0x2d36ae['push'](..._0x198789['getRanges']());}const _0xc024f8=function(_0x35d7a5,_0x4822a7){const _0x4d4add=[];for(const _0x3c2cf6 of _0x4822a7){const _0x15b048=_0x35d7a5['getIntersection'](_0x3c2cf6);_0x15b048&&_0x4d4add['push'](_0x15b048);}return _0x4d4add;}(_0x521612,_0x2d36ae),_0x654a91=function(_0x254a54,_0x48f734){const _0x5c31d8=[_0x254a54];for(const _0x16752a of _0x48f734){let _0x19eb2f=0x0;for(;_0x19eb2f<_0x5c31d8['length'];){const _0x51ea76=_0x5c31d8[_0x19eb2f]['getDifference'](_0x16752a);_0x5c31d8['splice'](_0x19eb2f,0x1,..._0x51ea76),_0x19eb2f+=_0x51ea76['length'];}}return _0x5c31d8;}(_0x521612,_0x2d36ae);_0xc024f8['length']&&this['_model']['change'](()=>{for(const _0x12c491 of _0xc024f8){const _0x311940=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1d983a,'accept');this['forceDefaultExecution'](()=>_0x311940([_0x12c491],_0x51f27c,_0x3a69b0));}});for(const _0x2afada of _0x654a91){let _0xc597dc=null,_0x50eab4=_0x2afada['start'],_0x1d62d6=_0x2afada['end'];for(const {suggestion:_0x15c58a,meta:_0x1a7b67}of this['_findSuggestions'](_0x2afada,'formatInline')){if(!_0x1a7b67['isOwn'])continue;if(_0x15c58a['subType']!=_0x1d983a)continue;if(!Lt(_0x15c58a,_0x3a69b0))continue;const _0x1e5161=_0x15c58a['getFirstRange']();if(_0x1e5161['containsRange'](_0x2afada,!0x0))return null;_0x50eab4=_0x50eab4['isBefore'](_0x1e5161['start'])?_0x50eab4:_0x1e5161['start'],_0x1d62d6=_0x1d62d6['isAfter'](_0x1e5161['end'])?_0x1d62d6:_0x1e5161['end'],_0xc597dc?_0x1e5161['start']['isBefore'](_0xc597dc['getFirstRange']()['start'])?(_0xc597dc['removeMarkers'](),_0xc597dc=_0x15c58a):_0x15c58a['removeMarkers']():_0xc597dc=_0x15c58a;}const _0x3d5561=this['_model']['createRange'](_0x50eab4,_0x1d62d6);if(_0xc597dc)this['_setSuggestionRange'](_0xc597dc,_0x3d5561);else{const _0x53de28=_0x107e61(),_0x22f1d1=_0x5b40cf['id'];this['_setSuggestionData']({'id':_0x53de28,'type':'formatInline:'+_0x1d983a,'data':_0x51f27c,'createdAt':new Date(),'authorId':_0x22f1d1,'attributes':_0x3a69b0}),this['_addSuggestionMarker']('formatInline:'+_0x1d983a,_0x53de28,_0x22f1d1,_0x3d5561);}}return null;}['markBlockFormat'](_0x28e747,_0x104d16,_0x47423f=[],_0x4ddd46=null,_0x40c560={}){_0x104d16['formatGroupId']||(_0x104d16['formatGroupId']=_0x104d16['commandName']),_0x104d16['multipleBlocks']=_0x28e747['is']('range'),_0x4ddd46=_0x4ddd46||Vt(_0x104d16);const _0x35748f=_0x47423f['map'](_0x1d3b6=>Gt(_0x1d3b6,this['_model'])),_0x4f3746=_0x28e747['is']('range')?_0x28e747:Gt(_0x28e747,this['_model']);if('never'===this['_trackFormatChanges']){const _0xca87bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ddd46,'accept');return this['forceDefaultExecution'](()=>_0xca87bf([_0x4f3746],_0x104d16,_0x40c560)),null;}_0x35748f['push'](_0x4f3746);let _0x30813c=!0x0;for(const _0x51104d of _0x35748f)if(!this['_rangeIsInLocalUserInsertion'](_0x51104d)){_0x30813c=!0x1;break;}if(_0x30813c&&'always'!==this['_trackFormatChanges']){const _0x42540a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ddd46,'accept');return this['forceDefaultExecution'](()=>_0x42540a([_0x4f3746],_0x104d16,_0x40c560)),null;}let _0xada77a=null,_0x16dc6b=_0x4f3746['start'],_0xfd3630=_0x4f3746['end'];for(const {suggestion:_0x5482c3,meta:_0xd10b40}of this['_findSuggestions'](_0x4f3746,'formatBlock')){if(!_0xd10b40['isOwn'])continue;if(_0xd10b40['isNextTo']||_0xd10b40['containsRangeInObject']||_0xd10b40['isInsideObject'])continue;if(_0x5482c3['data']['formatGroupId']!=_0x104d16['formatGroupId'])continue;if(!Lt(_0x5482c3,_0x40c560))continue;const _0x307b88=_0x5482c3['getFirstRange']();if(_0x5482c3['subType']==_0x4ddd46){if(_0x307b88['containsRange'](_0x4f3746,!0x0))return null;_0x16dc6b=_0x16dc6b['isBefore'](_0x307b88['start'])?_0x16dc6b:_0x307b88['start'],_0xfd3630=_0xfd3630['isAfter'](_0x307b88['end'])?_0xfd3630:_0x307b88['end'],_0xada77a?_0x307b88['start']['isBefore'](_0xada77a['getFirstRange']()['start'])?(_0xada77a['removeMarkers'](),_0xada77a=_0x5482c3):_0x5482c3['removeMarkers']():_0xada77a=_0x5482c3;}else{const _0x34d29b=_0x4f3746['getIntersection'](_0x307b88);this['_cutOutSuggestionMarker'](_0x5482c3,_0x34d29b);}}const _0x31c804=this['editor']['plugins']['get']('Users')['me'],_0x52b8fc=_0x107e61(),_0x364d13=_0x31c804['id'];if(_0xada77a)return this['_setSuggestionRange'](_0xada77a,this['_model']['createRange'](_0x16dc6b,_0xfd3630)),_0xada77a;{const _0x1aa153=this['_setSuggestionData']({'id':_0x52b8fc,'type':'formatBlock:'+_0x4ddd46,'data':_0x104d16,'createdAt':new Date(),'authorId':_0x364d13,'attributes':_0x40c560});return this['_addSuggestionMarker']('formatBlock:'+_0x4ddd46,_0x52b8fc,_0x364d13,this['_model']['createRange'](_0x16dc6b,_0xfd3630)),_0x1aa153;}}['markMultiRangeBlockFormat'](_0x5032e9,_0x4a876a,_0x2b66a4=[],_0x4132f4=null,_0x99e183={}){_0x4a876a['formatGroupId']||(_0x4a876a['formatGroupId']=_0x4a876a['commandName']);const _0x3deab4=_0x5032e9[0x0];_0x4a876a['multipleBlocks']=_0x3deab4['is']('range'),_0x4132f4=_0x4132f4||Vt(_0x4a876a);const _0x1d54bc=_0x2b66a4['map'](_0x75c839=>Gt(_0x75c839,this['_model'])),_0x43fc73=_0x3deab4['is']('range')?_0x5032e9:_0x5032e9['map'](_0x5988dc=>Gt(_0x5988dc,this['_model']));if('never'===this['_trackFormatChanges']){const _0x76df6f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4132f4,'accept');return this['forceDefaultExecution'](()=>_0x76df6f(_0x43fc73,_0x4a876a,_0x99e183)),null;}_0x1d54bc['push'](..._0x43fc73);let _0x1c68b8=!0x0;for(const _0x34784b of _0x1d54bc)if(!this['_rangeIsInLocalUserInsertion'](_0x34784b)){_0x1c68b8=!0x1;break;}if(_0x1c68b8&&'always'!==this['_trackFormatChanges']){const _0x4fd655=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4132f4,'accept');return this['forceDefaultExecution'](()=>_0x4fd655(_0x43fc73,_0x4a876a,_0x99e183)),null;}const _0x558cbf=this['editor']['plugins']['get']('Users')['me'];for(const _0x168cc7 of this['getSuggestions']()){if(_0x168cc7['author']['id']!=_0x558cbf['id'])continue;if('formatBlock'!=_0x168cc7['type']||_0x168cc7['data']['formatGroupId']!=_0x4a876a['formatGroupId'])continue;if(!Lt(_0x168cc7,_0x99e183))continue;const _0x845506=_0x168cc7['subType']==_0x4132f4;for(let _0x14ed65=0x0;_0x14ed65<_0x43fc73['length'];_0x14ed65++){const _0x5a82fe=_0x43fc73[_0x14ed65];for(const _0x30bc4f of _0x168cc7['getMarkers']()){const _0x35a075=_0x30bc4f['getRange']();if(_0x5a82fe['isEqual'](_0x35a075)){_0x845506?(_0x43fc73['splice'](_0x14ed65,0x1),_0x14ed65--):_0x168cc7['removeMarker'](_0x30bc4f['name']);break;}}}}if(0x0==_0x43fc73['length'])return null;const _0x349106=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4132f4,'join');for(const _0x78d84d of this['getSuggestions']())if(_0x78d84d['author']['id']==_0x558cbf['id']&&'formatBlock'==_0x78d84d['type']&&_0x78d84d['data']['formatGroupId']==_0x4a876a['formatGroupId']&&_0x78d84d['subType']==_0x4132f4&&Lt(_0x78d84d,_0x99e183)&&(_0x349106(_0x78d84d['getRanges'](),_0x43fc73)||_0x349106(_0x43fc73,_0x78d84d['getRanges']()))){for(const _0x3d5879 of _0x43fc73)_0x78d84d['addRange'](_0x3d5879);return _0x78d84d;}const _0x2edb77=_0x107e61(),_0x3bdab7=_0x558cbf['id'],_0x459a8f='formatBlock:'+_0x4132f4,_0x3c7118=this['_setSuggestionData']({'id':_0x2edb77,'type':_0x459a8f,'data':_0x4a876a,'createdAt':new Date(),'authorId':_0x3bdab7,'attributes':_0x99e183});for(const _0x4cdd46 of _0x43fc73)this['_addSuggestionMarker'](_0x459a8f,_0x2edb77,_0x3bdab7,_0x4cdd46,u['getMultiRangeId']());return _0x3c7118;}['markDeletion'](_0x98772f,_0x3dec22=null,_0x9f5953={}){if(_0x98772f['isCollapsed'])return null;const _0x4e3ff7=this['editor']['plugins']['get']('Users')['me'],_0x46d1bd=new _0x54c30a(_0x98772f['start'],_0x98772f['end']);for(const {suggestion:_0x19241a,meta:_0xbccd95}of this['_findSuggestions'](_0x46d1bd,'insertion'))if(_0xbccd95['isOwn']&&!_0xbccd95['isNextTo']){if(_0x19241a['isMultiRange']){const _0x5cf934=_0x19241a['getRanges']()['filter'](_0x271232=>'$graveyard'!=_0x271232['root']['rootName']);_0x5cf934['every'](_0x2de2bf=>_0x46d1bd['containsRange'](_0x2de2bf,!0x0))&&_0x19241a['discard']();if(_0x5cf934['some'](_0xdf9d4d=>_0xdf9d4d['containsRange'](_0x46d1bd,!0x0))){const _0x1f9cb3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3dec22,'accept');return this['forceDefaultExecution'](()=>_0x1f9cb3([_0x46d1bd],null,_0x9f5953)),null;}}else{const _0x2aac19=_0x46d1bd['getIntersection'](_0x19241a['getFirstRange']());null!==_0x2aac19&&_0x19241a['_onDiscard']([_0x2aac19],null,_0x9f5953);}}if(_0x46d1bd['detach'](),_0x46d1bd['isCollapsed']||'$graveyard'==_0x46d1bd['root']['rootName'])return null;let _0x3f2451=null,_0x2f4704=_0x46d1bd['start'],_0x20cc51=_0x46d1bd['end'];const _0x2af7fe=this['_findSuggestions'](_0x46d1bd,'deletion');for(const {suggestion:_0x59b036,meta:_0x1f78bb}of _0x2af7fe){const _0x4669e1=this['_model']['createRange'](_0x2f4704,_0x20cc51);if(_0x1f78bb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f78bb['containsRangeInObject']&&!_0x1f78bb['isInsideObject'])){if(_0x59b036['isMultiRange']){if(!Lt(_0x59b036,_0x9f5953))continue;let _0x17dd39=!0x0;for(const _0x3268a9 of _0x59b036['getRanges']()){if(_0x3268a9['containsRange'](_0x4669e1,!0x0))return _0x59b036;_0x4669e1['containsRange'](_0x3268a9)||(_0x17dd39=!0x1);}_0x17dd39&&_0x59b036['discard']();}else{const _0x374b0c=_0x59b036['getFirstRange']();if(_0x374b0c['containsRange'](_0x4669e1,!0x0))return _0x59b036;if(!Lt(_0x59b036,_0x9f5953)){_0x4669e1['containsRange'](_0x374b0c)?_0x59b036['removeMarkers']():_0x374b0c['containsPosition'](_0x2f4704)?_0x2f4704=_0x374b0c['end']:_0x374b0c['containsPosition'](_0x20cc51)&&(_0x20cc51=_0x374b0c['start']);continue;}_0x2f4704=_0x2f4704['isBefore'](_0x374b0c['start'])?_0x2f4704:_0x374b0c['start'],_0x20cc51=_0x20cc51['isAfter'](_0x374b0c['end'])?_0x20cc51:_0x374b0c['end'],_0x9f5953=Object['assign']({},_0x59b036['attributes']),_0x3f2451?_0x374b0c['start']['isBefore'](_0x3f2451['getFirstRange']()['start'])?(_0x3f2451['removeMarkers'](),_0x3f2451=_0x59b036):_0x59b036['removeMarkers']():_0x3f2451=_0x59b036;}}}if(_0x3f2451)return this['_setSuggestionRange'](_0x3f2451,this['_model']['createRange'](_0x2f4704,_0x20cc51)),_0x3f2451;{const _0x2c70bf=_0x107e61(),_0x31c4ad=this['_model']['createRange'](_0x2f4704,_0x20cc51),_0x19e10b=_0x4e3ff7['id'],_0x35bef7=_0x3dec22?'deletion:'+_0x3dec22:'deletion',_0x479025=this['_setSuggestionData']({'id':_0x2c70bf,'type':_0x35bef7,'createdAt':new Date(),'authorId':_0x19e10b,'attributes':_0x9f5953});return this['_addSuggestionMarker'](_0x35bef7,_0x2c70bf,_0x19e10b,_0x31c4ad),_0x479025;}}['markMultiRangeDeletion'](_0x5ba95a,_0x193769='multi',_0x2e0bb8={}){const _0x827c58=this['editor']['plugins']['get']('Users')['me'],_0xa1a77a=_0x5ba95a['map'](_0xb7bf05=>new _0x54c30a(_0xb7bf05['start'],_0xb7bf05['end'])),_0x4e6779=new Set();for(const {suggestion:_0xc2ea74,meta:_0x36a0fe}of this['_findSuggestions'](_0xa1a77a,'insertion'))_0x36a0fe['isOwn']&&!_0x36a0fe['isNextTo']&&_0x4e6779['add'](_0xc2ea74);for(const _0xd5309e of _0x4e6779)if(_0xd5309e['isMultiRange']){const _0xb1fbd7=_0xd5309e['getRanges']();(!_0xd5309e['attributes']||!_0xd5309e['attributes']['skipNestingCheck'])&&(_0xb1fbd7['every'](_0x21e287=>_0xa1a77a['some'](_0x599f6c=>_0x599f6c['containsRange'](_0x21e287,!0x0)))&&_0xd5309e['discard']());if(_0xa1a77a['every'](_0x24cb9f=>_0xb1fbd7['some'](_0x453de5=>_0x453de5['containsRange'](_0x24cb9f,!0x0)))){const _0x299895=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x193769,'accept');return this['forceDefaultExecution'](()=>_0x299895(_0x5ba95a,null,_0x2e0bb8)),null;}}else{const _0x4a5570=_0xd5309e['getFirstRange']();_0xa1a77a['some'](_0x1f77f8=>_0x1f77f8['containsRange'](_0x4a5570,!0x0))&&_0xd5309e['discard']();if(_0xa1a77a['every'](_0x11b2ad=>_0x4a5570['containsRange'](_0x11b2ad,!0x0))){const _0x4c826e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x193769,'accept');return this['forceDefaultExecution'](()=>_0x4c826e(_0xa1a77a,null,_0x2e0bb8)),null;}}const _0x373256=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x193769,'join');let _0x2d8b67=null;for(const _0x2b7578 of this['getSuggestions']())if(_0x2b7578['author']['id']==_0x827c58['id']&&_0x2b7578['isInContent']&&'deletion'==_0x2b7578['type']&&_0x2b7578['subType']==_0x193769&&Lt(_0x2b7578,_0x2e0bb8)&&(_0x373256(_0x2b7578['getRanges'](),_0xa1a77a)||_0x373256(_0xa1a77a,_0x2b7578['getRanges']()))){if(_0x2d8b67){if(_0x2b7578['commentThread']&&_0x2b7578['commentThread']['length'])continue;for(const _0x2fa30d of _0x2b7578['getRanges']())_0x2d8b67['isIntersectingWithRange'](_0x2fa30d)||_0x2d8b67['addRange'](_0x2fa30d);_0x2b7578['removeMarkers']();}else{_0x2d8b67=_0x2b7578;for(const _0x48648f of _0xa1a77a)_0x2b7578['isIntersectingWithRange'](_0x48648f)||_0x2b7578['addRange'](_0x48648f);}}if(_0x2d8b67)return _0x2d8b67;_0x4e6779['clear']();for(const {suggestion:_0x50ff59,meta:_0x1a4652}of this['_findSuggestions'](_0xa1a77a,'deletion'))_0x1a4652['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1a4652['containsRangeInObject']&&!_0x1a4652['isInsideObject'])&&Lt(_0x50ff59,_0x2e0bb8)&&_0x4e6779['add'](_0x50ff59);for(const _0x3e7a37 of _0x4e6779){const _0x5e1831=_0x3e7a37['getRanges']();if(!_0x2e0bb8||!_0x2e0bb8['skipNestingCheck']){if(_0xa1a77a['every'](_0x136fb3=>_0x5e1831['some'](_0x54055b=>_0x54055b['containsRange'](_0x136fb3,!0x0))))return _0x3e7a37;}(!_0x3e7a37['attributes']||!_0x3e7a37['attributes']['skipNestingCheck'])&&(_0x5e1831['every'](_0x384e62=>_0xa1a77a['some'](_0x10c775=>_0x10c775['containsRange'](_0x384e62,!0x0)))&&_0x3e7a37['discard']());}const _0x31b37e=_0x107e61(),_0x1186ae=_0x827c58['id'],_0x2062fc='deletion:'+_0x193769,_0x1a06aa=this['_setSuggestionData']({'id':_0x31b37e,'type':_0x2062fc,'createdAt':new Date(),'authorId':_0x1186ae,'attributes':_0x2e0bb8});for(const _0x3218b0 of _0xa1a77a)_0x3218b0['detach'](),_0x3218b0['isCollapsed']||'$graveyard'==_0x3218b0['root']['rootName']||this['_addSuggestionMarker'](_0x2062fc,_0x31b37e,_0x1186ae,_0x3218b0,u['getMultiRangeId']());return _0x1a06aa;}['markAttributeChange'](_0x4e9d3e,_0x1cb9ea,_0x58ef8c,_0x2b78e9,_0x171de0){if(_0x4e9d3e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2a3ece=this['editor']['plugins']['get']('Users')['me']['id'],_0x1120da=Array['from'](this['_suggestions']['values']())['filter'](_0x3a0d9=>'attribute'==_0x3a0d9['type']&&_0x3a0d9['data']['key']==_0x1cb9ea&&_0x3a0d9['isIntersectingWithRange'](_0x4e9d3e));if('default'===this['_trackFormatChanges']){const _0x3df32b=this['_findSuggestions'](_0x4e9d3e,'insertion')['filter'](({meta:_0x17f430})=>_0x17f430['isOwn']&&!_0x17f430['isInsideObject']&&!_0x17f430['isNextTo'])['map'](({suggestion:_0x251db6})=>_0x251db6);_0x1120da['unshift'](..._0x3df32b);}const _0x24ac48=new Map([[_0x4e9d3e,_0x58ef8c]]);for(const _0xf9e6e2 of _0x1120da){const _0x2c5679='attribute'==_0xf9e6e2['type']?_0xf9e6e2['data']['oldValue']:void 0x0,_0x306d76=_0xf9e6e2['getFirstRange'](),_0x32411c=Array['from'](_0x24ac48['keys']())['find'](_0x2575e4=>_0x2575e4['isIntersecting'](_0x306d76));if(!_0x32411c)continue;const _0xcd9deb=_0x32411c['getDifference'](_0x306d76);this['_isBlockAttribute'](_0x1cb9ea)&&'insertion'==_0xf9e6e2['type']&&0x0!=_0xcd9deb['length']||(_0x24ac48['delete'](_0x32411c),_0xcd9deb['forEach'](_0x47304a=>{_0x24ac48['set'](_0x47304a,_0x58ef8c);}),'insertion'!=_0xf9e6e2['type']&&_0x2c5679!=_0x2b78e9&&_0x24ac48['set'](_0x32411c['getIntersection'](_0x306d76),_0x2c5679));}const _0x51a71d=[];for(const [_0x36d6ad,_0x281cd9]of _0x24ac48){const _0x50df02=_0x107e61(),_0x587f64={'key':_0x1cb9ea,'oldValue':_0x281cd9,'newValue':_0x2b78e9};_0x1cb9ea['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':_0x1cb9ea});const _0x17e2c3=('attribute:'+(_0x1cb9ea+'|'+Vt({'newValue':_0x2b78e9})))['substring'](0x0,0x3c),_0x402db8=this['_setSuggestionData']({'id':_0x50df02,'type':_0x17e2c3,'data':_0x587f64,'createdAt':new Date(),'authorId':_0x2a3ece,'attributes':_0x171de0});_0x51a71d['push'](_0x402db8),this['_addSuggestionMarker'](_0x17e2c3,_0x50df02,_0x2a3ece,_0x36d6ad);}return _0x51a71d;}['enableDefaultAttributesIntegration'](_0x424cd1){this['enableCommand'](_0x424cd1,(_0x4fa199,..._0x23db7b)=>{this['_recordAttributeChanges'](()=>{_0x4fa199(..._0x23db7b);});});}['registerBlockAttribute'](_0x2fabb2){this['_blockAttributeKeys']['add'](_0x2fabb2);}['registerInlineAttribute'](_0x59b499){this['_inlineAttributeKeys']['add'](_0x59b499);}['_getAttributeKey'](_0x364d09){return'attribute'==_0x364d09['type']?_0x364d09['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x53c28f,_0xfa8463){const _0x319742=_0x53c28f['getFirstMarker']();this['_model']['change'](_0x174900=>{_0x174900['updateMarker'](_0x319742,{'range':_0xfa8463});});}['_addThreadToSuggestion'](_0x115dae){const _0x1c6fac=_0x115dae['id'],_0x131d71=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1c6fac)||this['_commentsRepository']['addCommentThread']({'channelId':_0x131d71,'threadId':_0x1c6fac,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5add5e=this['_commentsRepository']['getCommentThread'](_0x1c6fac);_0x5add5e['unbind']('isRemovable'),_0x5add5e['isRemovable']=!0x1,_0x115dae['commentThread']=_0x5add5e;}['_checkSuggestionCorrectness'](_0x1702f3,_0x544ecb,_0x8da0a8,_0xa6edc8){if(_0x1702f3['type']!=_0x544ecb||_0x1702f3['subType']!=_0x8da0a8||_0x1702f3['creator']['id']!=_0xa6edc8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4054be('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x332184,_0xe0143c){const _0x1aec70=_0x332184['getFirstRange']();if(_0xe0143c['isEqual'](_0x1aec70))_0x332184['removeMarkers']();else{if(_0x1aec70['containsRange'](_0xe0143c)){const _0x373e5d=this['_model']['createPositionAt'](_0xe0143c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x332184,this['_model']['createRange'](_0x1aec70['start'],_0x373e5d));const _0x2b9e28=_0x107e61(),_0x5d9a8b=_0x332184['creator']['id'],_0x53f840=_0x332184['type']+':'+_0x332184['subType'];this['_setSuggestionData']({'id':_0x2b9e28,'type':_0x53f840,'createdAt':new Date(),'authorId':_0x5d9a8b,'data':_0x332184['data'],'attributes':_0x332184['attributes']});const _0x36db2f=this['_model']['createPositionAt'](_0xe0143c['end']['parent'],'after'),_0x124650=this['_model']['createRange'](_0x36db2f,_0x1aec70['end']);this['_addSuggestionMarker'](_0x53f840,_0x2b9e28,_0x5d9a8b,_0x124650);}else{if(_0x1aec70['containsPosition'](_0xe0143c['start'])){const _0x49c6f4=this['_model']['createPositionAt'](_0xe0143c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x332184,this['_model']['createRange'](_0x1aec70['start'],_0x49c6f4));}else{const _0x29c1f2=this['_model']['createPositionAt'](_0xe0143c['end']['parent'],'after');this['_setSuggestionRange'](_0x332184,this['_model']['createRange'](_0x29c1f2,_0x1aec70['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5e03b0){for(const {suggestion:_0xf9c657,meta:_0x158eb8}of this['_findSuggestions'](_0x5e03b0,'insertion')){if(!_0x158eb8['isOwn'])continue;const _0x39ef65=_0xf9c657['getRanges']();for(const _0x33eb2a of _0x39ef65)if(!_0x5e03b0['getDifference'](_0x33eb2a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1c1ec7){const _0x1f4fea=this['editor']['plugins']['get']('Users')['getUser'](_0x1c1ec7);if(!_0x1f4fea)throw new _0x4054be('track-changes-user-not-found',this);return _0x1f4fea;}['_getExternalAuthor'](_0x2c283e){const _0x48fab3=this['editor']['plugins']['get']('Users'),_0x4f6587=_0x25faca('external:'+_0x2c283e),_0x418ac1=_0x48fab3['getUser'](_0x4f6587);return _0x418ac1||_0x48fab3['addUser']({'id':_0x4f6587,'name':_0x2c283e});}['_createSuggestion'](_0x1bdd4a,_0x524db6,_0x16ee26,_0x5ccf84,_0x1d7aa8){const _0x51fdd3=this['_getAuthorFromId'](_0x5ccf84),_0x43974e=this['_suggestionFactory']['buildSuggestion'](_0x1bdd4a,_0x524db6,_0x16ee26,_0x51fdd3,_0x1d7aa8,_0x2b72c8=>{this['_updateSuggestionData'](_0x16ee26,{'attributes':_0x2b72c8});const _0x1c78f7=this['getSuggestion'](_0x16ee26);this['_joinWithAdjacentSuggestions'](new Set([_0x1c78f7])),this['_refreshSuggestionsChain'](new Set([_0x1c78f7]));});return this['listenTo'](_0x43974e,'accept',()=>{this['_updateSuggestionData'](_0x16ee26,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x43974e,'discard',()=>{this['_updateSuggestionData'](_0x16ee26,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x16ee26,_0x43974e),this['_suggestionState']['set'](_0x43974e,'notReady'),_0x43974e;}['_splitMarkerName'](_0x483597){const _0x366409=_0x483597['split'](':');return{'group':_0x366409[0x0],'type':_0x366409[0x1],'subType':_0x366409['length']>=0x5?_0x366409[0x2]:null,'id':_0x366409['length']<0x5?_0x366409[0x2]:_0x366409[0x3],'authorId':_0x366409['length']<0x5?_0x366409[0x3]:_0x366409[0x4],'markerCount':0x6==_0x366409['length']?_0x366409[0x5]:null};}['_breakSuggestionMarker'](_0x1c8386,_0x2fb786,_0x47cab8){const _0x5a8424=_0x1c8386['getFirstRange'](),_0x14e50a=_0x5a8424['start'],_0x1b03b4=_0x5a8424['end'];this['_setSuggestionRange'](_0x1c8386,this['_model']['createRange'](_0x14e50a,_0x2fb786));const _0xe860df=_0x107e61(),_0x3217f4=_0x1c8386['creator']['id'],_0x315955=_0x1c8386['type']+(_0x1c8386['subType']?':'+_0x1c8386['subType']:'');this['_setSuggestionData']({'id':_0xe860df,'type':_0x315955,'createdAt':new Date(),'authorId':_0x3217f4,'originalSuggestionId':_0x1c8386['id'],'attributes':_0x1c8386['attributes'],'data':_0x1c8386['data']});const _0x74c87=this['_getAttributeKey'](_0x1c8386);('formatBlock'==_0x1c8386['type']||_0x74c87&&this['_isBlockAttribute'](_0x74c87))&&(_0x47cab8=this['_model']['createPositionBefore'](_0x47cab8['parent'])),this['_addSuggestionMarker'](_0x315955,_0xe860df,_0x3217f4,this['_model']['createRange'](_0x47cab8,_0x1b03b4));}['_findSuggestions'](_0x32cea8,_0x5bb33f=null){const _0x104514=[],_0x4dd9d4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x32cea8)||(_0x32cea8=[_0x32cea8]);for(const _0x380089 of this['getSuggestions']()){if(!_0x380089['isInContent'])continue;if(_0x5bb33f&&_0x380089['type']!=_0x5bb33f)continue;let _0x21c937=!0x1;for(const _0x16253a of _0x380089['getRanges']()){for(const _0x33fc21 of _0x32cea8){const _0xcea03f=_0x33fc21['start']['isEqual'](_0x16253a['end'])||_0x33fc21['end']['isEqual'](_0x16253a['start']);if(_0xcea03f||_0x33fc21['getIntersection'](_0x16253a)){const _0x37ff3f=_0x33fc21['containsRange'](_0x16253a)&&Rt(this['_model']['schema'],_0x16253a['start'],_0x33fc21),_0x333d16=_0x16253a['containsRange'](_0x33fc21)&&Rt(this['_model']['schema'],_0x33fc21['start'],_0x16253a);_0x104514['push']({'suggestion':_0x380089,'meta':{'isOwn':_0x4dd9d4==_0x380089['author'],'isNextTo':_0xcea03f,'isInsideObject':_0x37ff3f,'containsRangeInObject':_0x333d16}}),_0x21c937=!0x0;break;}}if(_0x21c937)break;}}return _0x104514;}['_addSuggestionMarker'](_0x5ef6af,_0x4fe5f7,_0x55e173,_0x36b0a1,_0x33745b){this['_model']['change'](_0x599a61=>{let _0x1a90b1='suggestion:'+_0x5ef6af+':'+_0x4fe5f7+':'+_0x55e173;_0x33745b&&(_0x1a90b1=_0x1a90b1+':'+_0x33745b),_0x599a61['addMarker'](_0x1a90b1,{'range':_0x36b0a1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3b0cae){const _0x7929e6=_0x3b0cae['previous'],_0x4aa476=_0x3b0cae['next'];_0x3b0cae['previous']=null,_0x3b0cae['next']=null,null!=_0x7929e6&&_0x7929e6['next']==_0x3b0cae&&(_0x7929e6['next']=_0x4aa476),null!=_0x4aa476&&_0x4aa476['previous']==_0x3b0cae&&(_0x4aa476['previous']=_0x7929e6),'ready'==this['_suggestionState']['get'](_0x3b0cae)&&(this['_suggestionState']['set'](_0x3b0cae,'removed'),this['fire']('suggestionUnloaded',_0x3b0cae,_0x7929e6,_0x4aa476));}['_setSuggestionData'](_0x30d31c){const _0xb1e94d=_0x30d31c['id'],_0x188b83=this['addSuggestionData'](_0x30d31c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x50e2f2=this['editor']['plugins']['get']('PendingActions'),_0x664d4a=_0x188b83['hasComments'],_0x2f42cf=_0x188b83['subType']?_0x188b83['type']+':'+_0x188b83['subType']:_0x188b83['type'],_0x24b56c=this['editor']['locale'],_0x14be4b=_0x50e2f2['add'](o(_0x24b56c,'PENDING_ACTION_SUGGESTION')),_0x44e06e={'id':_0xb1e94d,'type':_0x2f42cf,'hasComments':_0x664d4a,'data':_0x30d31c['data']||null,'originalSuggestionId':_0x30d31c['originalSuggestionId']||null,'attributes':_0x188b83['attributes']};this['_adapter']['addSuggestion'](_0x44e06e)['then'](_0x9cb166=>{_0x188b83['_saved']=!0x0,_0x50e2f2['remove'](_0x14be4b),_0x9cb166&&_0x9cb166['createdAt']&&(this['_suggestions']['get'](_0xb1e94d)['createdAt']=_0x9cb166['createdAt']);})['catch'](_0x4dcc90=>{throw _0x8dc560('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x188b83['discard']();}),_0x188b83['stopListening'](),this['_suggestions']['delete'](_0x188b83['id']),this['_suggestionState']['delete'](_0x188b83),_0x4dcc90;});}return _0x188b83;}['_isBlockAttribute'](_0x5b03f8){return this['_blockAttributeKeys']['has'](_0x5b03f8);}['_updateSuggestionData'](_0x21b0b3,_0x45fc85){const _0x841f46=this['editor']['plugins']['get']('PendingActions'),_0x45be60=this['getSuggestion'](_0x21b0b3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x45be60['_saved']){const _0x3872ae=_0x841f46['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x21b0b3,_0x45fc85)['then'](()=>{_0x841f46['remove'](_0x3872ae);});}else _0x45be60['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x21b0b3,_0x45fc85);});}}['_getSuggestionData'](_0x116331){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4054be('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x116331);}['_handleNewSuggestionMarker'](_0x4f2ac5){const {id:_0x2e6090,type:_0x2a9f37,subType:_0x2cb4d1,authorId:_0x1d0e87}=this['_splitMarkerName'](_0x4f2ac5),_0x238358=this['_suggestions']['get'](_0x2e6090)||this['_createSuggestion'](_0x2a9f37,_0x2cb4d1,_0x2e6090,_0x1d0e87,{});switch(this['_checkSuggestionCorrectness'](_0x238358,_0x2a9f37,_0x2cb4d1,_0x1d0e87),this['_suggestionState']['get'](_0x238358)){case'notReady':this['_getSuggestionData'](_0x2e6090)['then'](_0x1dd238=>{let _0x21c79b=Promise['resolve']();_0x1dd238['hasComments']&&(_0x21c79b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2e6090})),_0x21c79b['then'](()=>{this['addSuggestionData'](_0x1dd238)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x238358,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2e6090,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x238358,'ready'),this['fire']('suggestionLoaded',_0x238358);break;case'ready':this['fire']('suggestionChanged',_0x238358);}return _0x238358['addMarkerName'](_0x4f2ac5),_0x238358;}['_refreshSuggestionsChain'](_0x423e24){const _0x52e108=Array['from'](_0x423e24),_0x57132a=_0x52e108['filter'](_0x411c9d=>'attribute'==_0x411c9d['type']);this['_refreshAttributeSuggestionsChain'](_0x57132a);const _0x3e4a80=_0x52e108['filter'](_0x4b0389=>!_0x4b0389['isMultiRange']&&'attribute'!=_0x4b0389['type']),_0x502a30=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x173aaf=>!_0x173aaf['isMultiRange']&&'attribute'!=_0x173aaf['type']),_0xe97edf=_0x502a30['filter'](_0x42b3d5=>!_0x423e24['has'](_0x42b3d5)),_0x18eac4=new Map(_0x502a30['map'](_0x281b0a=>[_0x281b0a,this['_suggestionFactory']['getSuggestionCallback'](_0x281b0a['type'],_0x281b0a['subType'],'chain')])),_0x23bd6a=new Map(_0x502a30['map'](_0xb4fa33=>[_0xb4fa33,_0xb4fa33['getFirstRange']()])),_0x54bd00=new Set(),_0x53b4f9=new Set();for(let _0x405e30=0x0;_0x405e30<_0x3e4a80['length'];_0x405e30++)_0x10e143(_0x3e4a80[_0x405e30],_0x3e4a80,_0x405e30+0x1);for(let _0x9d3ef7=0x0;_0x9d3ef7<_0x3e4a80['length'];_0x9d3ef7++)_0x10e143(_0x3e4a80[_0x9d3ef7],_0xe97edf,0x0);const _0x391066=new Set();for(let _0x306a5c=0x0;_0x306a5c<_0x3e4a80['length'];_0x306a5c++){const _0x548a97=_0x3e4a80[_0x306a5c];!_0x53b4f9['has'](_0x548a97)&&_0x548a97['previous']&&(_0x391066['add'](_0x548a97['previous']),_0x548a97['previous']['next']===_0x548a97&&(_0x548a97['previous']['next']=null),_0x548a97['previous']=null),!_0x54bd00['has'](_0x548a97)&&_0x548a97['next']&&(_0x391066['add'](_0x548a97['next']),_0x548a97['next']['previous']===_0x548a97&&(_0x548a97['next']['previous']=null),_0x548a97['next']=null);}function _0x10e143(_0x406719,_0x449d19,_0x5a2be0){for(let _0x5c2a02=_0x5a2be0;_0x5c2a02<_0x449d19['length'];_0x5c2a02++){const _0x5ded7f=_0x20f4dd(_0x406719,_0x449d19[_0x5c2a02]);_0x5ded7f&&(_0x5ded7f[0x0]['next']=_0x5ded7f[0x1],_0x5ded7f[0x1]['previous']=_0x5ded7f[0x0],_0x54bd00['add'](_0x5ded7f[0x0]),_0x53b4f9['add'](_0x5ded7f[0x1]));}}function _0x20f4dd(_0x37abc0,_0x5e1232){if(_0x37abc0['author']['id']!==_0x5e1232['author']['id'])return null;const _0x425f15=_0x18eac4['get'](_0x37abc0)(_0x37abc0,_0x5e1232,_0x23bd6a['get'](_0x37abc0),_0x23bd6a['get'](_0x5e1232));if(!_0x425f15)return null;return _0x18eac4['get'](_0x5e1232)(_0x37abc0,_0x5e1232,_0x23bd6a['get'](_0x37abc0),_0x23bd6a['get'](_0x5e1232))?_0x425f15[0x1]['commentThread']&&_0x425f15[0x1]['commentThread']['length']?null:_0x425f15:null;}_0x391066['size']&&this['_refreshSuggestionsChain'](_0x391066);}['_refreshAttributeSuggestionsChain'](_0x1e4cd9){if(0x0==_0x1e4cd9['length'])return;const _0x56c083=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b99ee=>'attribute'==_0x3b99ee['type']&&_0x3b99ee['_isDataLoaded']),_0x3bd086=[],_0x58c7e3=new Map();for(const _0x1aaf4a of _0x56c083){const _0x285d0b=_0x25faca(_0x1aaf4a['attributes']);_0x58c7e3['has'](_0x285d0b)||(_0x58c7e3['set'](_0x285d0b,_0x3bd086['length']),_0x3bd086['push']([]));const _0x2f4bea=_0x58c7e3['get'](_0x285d0b);_0x3bd086[_0x2f4bea]['push'](_0x1aaf4a);}!(function(){_0x3bd086['sort']((_0x436611,_0x5ceaf5)=>{const _0x560658=_0x436611[0x0]['createdAt'],_0x906b4d=_0x5ceaf5[0x0]['createdAt'];return _0x560658==_0x906b4d?_0x436611[0x0]['attributes']['groupId']<_0x5ceaf5[0x0]['attributes']['groupId']?-0x1:0x1:_0x560658<_0x906b4d?-0x1:0x1;});for(const _0x387c79 of _0x3bd086)_0x387c79['sort']((_0x549a49,_0x5dbca7)=>_0x549a49['id']<_0x5dbca7['id']?-0x1:0x1);}());for(let _0x53d982=0x0;_0x53d982<_0x3bd086['length'];_0x53d982++){if(0x0==_0x3bd086[_0x53d982]['length'])continue;const _0x16f99b=[];for(let _0x80c652=_0x53d982+0x1;_0x80c652<_0x3bd086['length'];_0x80c652++)0x0!=_0x3bd086[_0x80c652]['length']&&_0x1b739f(_0x3bd086[_0x53d982],_0x3bd086[_0x80c652])&&_0x16f99b['push'](_0x80c652);for(const _0xb3ba4c of _0x16f99b)_0x3bd086[_0x53d982]=_0x3bd086[_0x53d982]['concat'](_0x3bd086[_0xb3ba4c]),_0x3bd086[_0xb3ba4c]=[];}for(const _0x13ff6d of _0x3bd086)for(let _0x7b5d71=0x0;_0x7b5d71<_0x13ff6d['length'];_0x7b5d71++)_0x13ff6d[_0x7b5d71]['next']=_0x13ff6d[_0x7b5d71+0x1]||null;for(const _0x1ea134 of _0x3bd086)for(let _0x159be8=0x0;_0x159be8<_0x1ea134['length'];_0x159be8++)_0x1ea134[_0x159be8]['previous']=_0x1ea134[_0x159be8-0x1]||null;function _0x1b739f(_0x58db0b,_0x1d5cb3){if(_0x58db0b[0x0]['attributes']['groupId']!==_0x1d5cb3[0x0]['attributes']['groupId']&&_0x58db0b[0x0]['author']!==_0x1d5cb3[0x0]['author'])return!0x1;if(!function(_0x5ab0cb,_0x346af0){if(!_0x5ab0cb['hasComments']&&!_0x346af0['hasComments'])return!0x0;if(_0x5ab0cb['hasComments']&&_0x346af0['hasComments'])return!0x1;if(_0x5ab0cb['hasComments']&&_0x346af0['createdAt']<_0x5ab0cb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x346af0['hasComments']&&_0x5ab0cb['createdAt']<_0x346af0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x58db0b[0x0],_0x1d5cb3[0x0]))return!0x1;const _0x1a0196=Bt(_0x58db0b[0x0]['attributes'],'groupId'),_0xa7c031=Bt(_0x1d5cb3[0x0]['attributes'],'groupId');if(!_0x2ef343(_0x1a0196,_0xa7c031))return!0x1;return!!_0x58db0b['every'](_0xcf0b91=>_0x1d5cb3['some'](_0x5d6d4e=>_0xcf0b91['getFirstRange']()['isEqual'](_0x5d6d4e['getFirstRange']())))&&_0x1d5cb3['every'](_0x18085e=>_0x58db0b['some'](_0x59da31=>_0x18085e['getFirstRange']()['isEqual'](_0x59da31['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x68f76b){const _0x1b3bf9=Array['from'](_0x68f76b),_0x1143ed=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2bad5d=_0x1143ed['filter'](_0x44dcb7=>!_0x68f76b['has'](_0x44dcb7)),_0xb1b76a=new Map(_0x1b3bf9['map'](_0x4db741=>[_0x4db741,this['_suggestionFactory']['getSuggestionCallback'](_0x4db741['type'],_0x4db741['subType'],'join')])),_0x12859a=new Map(_0x1143ed['map'](_0x18589b=>[_0x18589b,_0x18589b['getRanges']()]));for(let _0x10dad6=0x0;_0x10dad6<_0x1b3bf9['length'];_0x10dad6++){if(_0x1029cd(this,_0x1b3bf9[_0x10dad6],_0x1b3bf9,_0x10dad6+0x1))return!0x0;}for(let _0x2edb45=0x0;_0x2edb45<_0x1b3bf9['length'];_0x2edb45++){if(_0x1029cd(this,_0x1b3bf9[_0x2edb45],_0x2bad5d,0x0))return!0x0;}return!0x1;function _0x1029cd(_0x5ac2d0,_0x6d89e2,_0x3a41c0,_0x13e4d4){for(let _0x51915a=_0x13e4d4;_0x51915a<_0x3a41c0['length'];_0x51915a++){const _0x281a08=_0x3a41c0[_0x51915a];if(_0x281a08['type']!==_0x6d89e2['type']||_0x281a08['author']['id']!==_0x6d89e2['author']['id']||_0x281a08['subType']!==_0x6d89e2['subType'])continue;if(!Pt(_0x6d89e2,_0x281a08,['groupId']))continue;if('attribute'==_0x6d89e2['type']&&_0x6d89e2['data']['oldValue']!=_0x281a08['data']['oldValue'])continue;if('attribute'==_0x6d89e2['type']&&_0x5ac2d0['_isBlockAttribute'](_0x6d89e2['data']['key']))continue;if('formatBlock'==_0x6d89e2['type']){const _0x4ec909=_0x5ac2d0['editor']['model'],_0x100930=_0x6d89e2['getContainedElement']();if(_0x100930&&(_0x4ec909['schema']['isObject'](_0x100930)||_0x4ec909['schema']['isLimit'](_0x100930)))continue;}const _0x149e09=_0xb1b76a['get'](_0x6d89e2),_0x420a4e=_0x12859a['get'](_0x6d89e2),_0x7a7b8=_0x12859a['get'](_0x281a08),_0x154c73=_0x6d89e2['commentThread']&&_0x6d89e2['commentThread']['length'],_0x356b71=_0x281a08['commentThread']&&_0x281a08['commentThread']['length'];if(!_0x154c73&&_0x149e09(_0x7a7b8,_0x420a4e))return _0x5ac2d0['_joinSuggestions'](_0x281a08,_0x6d89e2),_0x12859a['delete'](_0x6d89e2),!0x0;if(!_0x356b71&&_0x149e09(_0x420a4e,_0x7a7b8))return _0x5ac2d0['_joinSuggestions'](_0x6d89e2,_0x281a08),_0x12859a['delete'](_0x281a08),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2f0ac8,_0x2c3b00){if(_0x2f0ac8['isMultiRange']){for(const _0x310568 of _0x2c3b00['getRanges']())_0x2f0ac8['addRange'](_0x310568);}else{const _0x52c253=_0x2c3b00['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2f0ac8,this['_model']['createRange'](_0x2f0ac8['getFirstRange']()['start'],_0x52c253));}_0x2c3b00['removeMarkers']();}['_getMarkerAnnouncementText'](_0x676d11,_0xfb0b0){const _0x55ad32=_0x676d11['startsWith']('format')||_0x676d11['startsWith']('attribute')?'FORMATTING':_0x676d11['toUpperCase']();return o(this['editor']['locale'],_0xfb0b0+'_'+_0x55ad32+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x39da7e=this['editor'];if(!_0x39da7e['ui'])return;const {ariaLiveAnnouncer:_0x203b74}=_0x39da7e['ui'];_0x2efde5(this['_model'],({left:_0x2dae08,entered:_0x4c5545})=>{for(const _0x418034 of _0x2dae08){const {group:_0x112a93,type:_0x50c46f}=this['_splitMarkerName'](_0x418034['name']);if('suggestion'===_0x112a93){_0x203b74['announce'](this['_getMarkerAnnouncementText'](_0x50c46f,'LEAVE'));break;}}for(const _0x39c294 of _0x4c5545){const {group:_0x5ac402,type:_0x7aea01}=this['_splitMarkerName'](_0x39c294['name']);if('suggestion'===_0x5ac402){_0x203b74['announce'](this['_getMarkerAnnouncementText'](_0x7aea01,'ENTER'));break;}}});}['_processAttributeChanges'](_0x2fb442){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1149cd=this['editor'],_0x2ced6a=_0x1149cd['model']['document']['differ']['getChanges']();if(0x0==_0x2ced6a['length'])return!0x1;const _0x1e3d6d=[],_0x103d6a=_0x2ced6a['filter'](_0x27575c=>'attribute'==_0x27575c['type']),_0x31fb3b=_0x2ced6a['filter'](_0x5d1f73=>'insert'==_0x5d1f73['type']&&'$text'!=_0x5d1f73['name']),_0x4acf70=_0x2ced6a['filter'](_0x26596a=>'remove'==_0x26596a['type']&&'$text'!=_0x26596a['name']);for(const _0x4ff4a3 of _0x103d6a)_0x1e3d6d['push']({'key':_0x4ff4a3['attributeKey'],'newValue':_0x4ff4a3['attributeNewValue'],'oldValue':_0x4ff4a3['attributeOldValue'],'range':Ot(_0x4ff4a3['range'],_0x1149cd['model'])});for(const _0x829a92 of _0x31fb3b){const _0x43749a=_0x4acf70['find'](_0x595f76=>_0x595f76['position']['isEqual'](_0x829a92['position']));_0x43749a&&_0x1e3d6d['push']({'key':m,'newValue':_0x829a92['name'],'oldValue':_0x43749a['name'],'range':_0x1149cd['model']['createRangeOn'](_0x829a92['position']['nodeAfter'])});}return 0x0!=_0x1e3d6d['length']&&this['_reduceExistingSuggestions'](_0x2fb442,_0x1e3d6d);}['_processAttributeSuggestions'](_0x257823){let _0xb83ab4=!0x1;const _0x561b56=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4e78fd=>_0x4e78fd['data']['newRange']&&_0x4e78fd['name']['startsWith']('suggestion:attribute:'));for(const _0x1241b4 of _0x561b56){const {subType:_0x15cca6,id:_0x125af3}=this['_splitMarkerName'](_0x1241b4['name']),_0x410d16=_0x15cca6['split']('|')[0x0];for(const _0x2239dc of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2239dc['id']!=_0x125af3&&'attribute'==_0x2239dc['type']&&_0x2239dc['data']&&_0x2239dc['data']['key']==_0x410d16&&_0x2239dc['getFirstRange']()['isIntersecting'](_0x1241b4['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2239dc,_0x1241b4['data']['newRange'],_0x257823),_0xb83ab4=!0x0);}return _0xb83ab4;}['_recordAttributeChanges'](_0x33c266){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x33c266();}['_isRegisteredAttribute'](_0x636f86){const _0x29524b=this['_isBlockAttribute'](_0x636f86),_0x10d22d=this['_inlineAttributeKeys']['has'](_0x636f86);return _0x29524b||_0x10d22d;}['_reduceExistingSuggestions'](_0x8490e9,_0x29a59c){if(0x0==_0x29a59c['length'])return!0x1;let _0x4a32ec=!0x1;for(const _0x2b1726 of _0x29a59c){const _0x5da5e6=this['_findSuggestions'](_0x2b1726['range'],'attribute')['filter'](_0x262be1=>!_0x262be1['meta']['isNextTo'])['map'](_0x36102e=>_0x36102e['suggestion']),_0x2bd541=_0x25faca({'newValue':_0x2b1726['newValue']});_0x5da5e6['filter'](_0x299c41=>{const [_0x35131e,_0x5975f0]=_0x299c41['subType']['split']('|');return _0x35131e==_0x2b1726['key']&&_0x5975f0!=_0x2bd541;})['forEach'](_0xb4f9d6=>{this['_reduceSuggestionAttributeRange'](_0xb4f9d6,_0x2b1726['range'],_0x8490e9),_0x4a32ec=!0x0;});}return _0x4a32ec;}['_reduceSuggestionAttributeRange'](_0x41e821,_0x5e2765,_0x48e02c){const _0x2c3eb1=_0x41e821['getFirstRange']()['getDifference'](_0x5e2765);0x0!==_0x2c3eb1['length']?0x1!==_0x2c3eb1['length']?this['_breakSuggestionMarker'](_0x41e821,_0x5e2765['start'],_0x5e2765['end']):this['_setSuggestionRange'](_0x41e821,_0x2c3eb1[0x0]):_0x48e02c['removeMarker'](_0x41e821['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4a3f95){this['_editor']=_0x4a3f95,this['_model']=_0x4a3f95['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xba7c84,_0x327eb9,_0x469cf3,_0x2e8378,_0x23a57c,_0x2057e1){return new u(this['_model'],{'type':_0xba7c84,'subType':_0x327eb9,'id':_0x469cf3,'author':_0x2e8378,'creator':_0x2e8378,'attributes':_0x23a57c,'onAttributesChange':_0x2057e1,'onAccept':(..._0x4dc129)=>this['getSuggestionCallback'](_0xba7c84,_0x327eb9,'accept')(..._0x4dc129),'onDiscard':(..._0x53e10a)=>this['getSuggestionCallback'](_0xba7c84,_0x327eb9,'discard')(..._0x53e10a)});}['registerCustomCallback'](_0x8d0c70,_0x4e682b,_0x1240df,_0x3f28c4){const _0x1781ce=_0x8d0c70+':'+_0x4e682b+':'+_0x1240df;this['_customCallbacks']['set'](_0x1781ce,_0x3f28c4);}['getSuggestionCallback'](_0x2340e8,_0x3aeb03,_0x1afe7f){const _0x2f1c8c=_0x2340e8+':'+_0x3aeb03+':'+_0x1afe7f;return this['_customCallbacks']['get'](_0x2f1c8c)||this['_defaultCallbacks']['get'](_0x2340e8+':'+_0x1afe7f);}['_registerDefaultCallbacks'](){const _0x5cc865=()=>!0x1,_0x3b409b=_0x1d1caa=>{_0x1d1caa['sort']((_0xa927c2,_0x178c45)=>_0xa927c2['start']['isBefore'](_0x178c45['start'])?0x1:-0x1),this['_model']['change'](_0x556d67=>{for(const _0x517dfe of _0x1d1caa){let _0x640724;_0x640724=_0x517dfe['end']['isAtEnd']&&_0x517dfe['end']['parent']==_0x517dfe['start']['nodeAfter']?_0x556d67['createSelection'](_0x517dfe['start']['nodeAfter'],'on'):_0x556d67['createSelection'](_0x517dfe),this['_model']['deleteContent'](_0x640724,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x10151c=(_0x87186a,_0xbb482f)=>{_0xbb482f&&this['_model']['change'](_0x848718=>{const {commandName:_0x3cff22,commandParams:_0x54e337=[]}=_0xbb482f,_0x31f853=_0x87186a['map'](_0x1bd1d8=>(Tt(_0x1bd1d8)&&(_0x1bd1d8=this['_model']['createRange'](_0x1bd1d8['end'])),_0x1bd1d8))['filter'](_0x54e173=>'$graveyard'!==_0x54e173['root']['rootName']);if(_0x31f853['length']<0x1)return;const _0x1ae976=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x55452d=>_0x54c30a['fromRange'](_0x55452d));_0x848718['setSelection'](_0x31f853);for(const _0x489c4f of this['_editor']['commands']['commands']())_0x489c4f['refresh']();_0x54e337['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3cff22,..._0x54e337);const _0x1c8791=_0x1ae976['filter'](_0x2cc7d2=>'$graveyard'!=_0x2cc7d2['root']['rootName']);_0x1c8791['length']>0x0&&_0x848718['setSelection'](_0x1c8791);for(const _0x2a40f9 of _0x1ae976)_0x2a40f9['detach']();});},_0x24967e=(_0x6f159c,_0x43b6a6)=>0x1==_0x6f159c['length']&&0x1==_0x43b6a6['length']&&_0x6f159c[0x0]['end']['isEqual'](_0x43b6a6[0x0]['start']),_0x501cfa=(_0x254425,_0x43bbf7,_0x96a90d,_0x30f399)=>Ft(_0x254425,_0x43bbf7,_0x96a90d,_0x30f399,this['_model'])?[_0x254425,_0x43bbf7]:Ft(_0x43bbf7,_0x254425,_0x30f399,_0x96a90d,this['_model'])?[_0x43bbf7,_0x254425]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5cc865),this['_defaultCallbacks']['set']('insertion:discard',_0x3b409b),this['_defaultCallbacks']['set']('insertion:join',_0x24967e),this['_defaultCallbacks']['set']('insertion:chain',_0x501cfa),this['_defaultCallbacks']['set']('deletion:accept',_0x3b409b),this['_defaultCallbacks']['set']('deletion:discard',_0x5cc865),this['_defaultCallbacks']['set']('deletion:join',_0x24967e),this['_defaultCallbacks']['set']('deletion:chain',_0x501cfa),this['_defaultCallbacks']['set']('formatInline:accept',_0x10151c),this['_defaultCallbacks']['set']('formatInline:discard',_0x5cc865),this['_defaultCallbacks']['set']('formatInline:join',_0x24967e),this['_defaultCallbacks']['set']('formatInline:chain',_0x5cc865),this['_defaultCallbacks']['set']('formatBlock:accept',_0x10151c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5cc865),this['_defaultCallbacks']['set']('formatBlock:join',_0x24967e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5cc865),this['_defaultCallbacks']['set']('attribute:accept',_0x5cc865),this['_defaultCallbacks']['set']('attribute:discard',(_0x2e9e88,_0x29d349)=>{if(!_0x29d349)return;const _0x2d6195=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2a0ead=>{if(_0x29d349['key']==m)for(const _0xc98ffd of _0x2e9e88){const _0x961c70=_0xc98ffd['start']['nodeAfter'],_0x333370=_0x29d349['oldValue'];_0x2a0ead['rename'](_0x961c70,_0x333370);}else{if(_0x2d6195['_isBlockAttribute'](_0x29d349['key'])){for(const _0x1eaac7 of _0x2e9e88)void 0x0!==_0x29d349['oldValue']?_0x2a0ead['setAttribute'](_0x29d349['key'],_0x29d349['oldValue'],_0x1eaac7['start']['nodeAfter']):_0x2a0ead['removeAttribute'](_0x29d349['key'],_0x1eaac7['start']['nodeAfter']);}else{for(const _0x5ec867 of _0x2e9e88)_0x29d349['oldValue']?_0x2a0ead['setAttribute'](_0x29d349['key'],_0x29d349['oldValue'],_0x5ec867):_0x2a0ead['removeAttribute'](_0x29d349['key'],_0x5ec867);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x24967e);}}function Rt(_0xc178e,_0x317e27,_0x1d87e0){for(const _0x20533b of _0x317e27['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x20533b['root']==_0x20533b)return!0x1;if(!_0x1d87e0['containsItem'](_0x20533b))return!0x1;if(_0xc178e['isObject'](_0x20533b)||_0xc178e['isLimit'](_0x20533b))return!0x0;}return!0x1;}function Tt(_0x5a539f){return _0x5a539f['end']['parent']==_0x5a539f['start']['nodeAfter']&&_0x5a539f['end']['isAtStart'];}function Et(_0x1f7fe3,_0x1195bb,_0x1850f4,_0x52eb58){const _0x589d29=_0x5e8462=>!_0x5e8462['item']['is']('$textProxy')&&!_0x52eb58['isObject'](_0x5e8462['item']),_0x2a74e1=_0x1f7fe3['start']['getLastMatchingPosition'](_0x589d29),_0x41f897=_0x1f7fe3['end']['getLastMatchingPosition'](_0x589d29,{'direction':'backward'});return(!_0x1f7fe3['start']['isEqual'](_0x2a74e1)||!_0x1f7fe3['end']['isEqual'](_0x41f897))&&(_0x2a74e1['isBefore'](_0x41f897)?_0x1850f4['updateMarker'](_0x1195bb,{'range':_0x1850f4['createRange'](_0x2a74e1,_0x41f897)}):_0x1850f4['removeMarker'](_0x1195bb),!0x0);}function Vt(_0x3d35ad){return _0x25faca(_0x3d35ad);}function Ut(_0x469adb){const _0x290970=_0x469adb['start']['nodeAfter'];return _0x290970&&_0x290970['is']('element');}function Ot(_0x1f8dc2,_0x279be4){return null==_0x1f8dc2['end']['nodeBefore']&&_0x1f8dc2['end']['parent']==_0x1f8dc2['start']['nodeAfter']?Gt(_0x1f8dc2['start']['nodeAfter'],_0x279be4):_0x1f8dc2;}function Gt(_0x1e5114,_0x1c080e){const _0x33fad7=_0x1c080e['schema']['isObject'](_0x1e5114)||_0x1c080e['schema']['isSelectable'](_0x1e5114);return _0x1c080e['createRange'](_0x1c080e['createPositionAt'](_0x1e5114,'before'),_0x33fad7?_0x1c080e['createPositionAfter'](_0x1e5114):_0x1c080e['createPositionAt'](_0x1e5114,'end'));}function Ft(_0x21ba08,_0xe0ef6,_0x21470e,_0x4c0e38,_0x48d006){if(!Pt(_0x21ba08,_0xe0ef6))return!0x1;if(_0x21470e['end']['isEqual'](_0x4c0e38['start']))return!0x0;if(_0x21ba08['type']!=_0xe0ef6['type'])return!0x1;if(!_0x21470e['end']['isTouching'](_0x4c0e38['start']))return!0x1;const _0x10c0d3=_0x48d006['createRange'](_0x21470e['end'],_0x4c0e38['start'])['getWalker']();for(const _0x3dd1cb of _0x10c0d3)if(['elementStart','elementEnd']['includes'](_0x3dd1cb['type'])&&_0x48d006['schema']['isLimit'](_0x3dd1cb['item']))return!0x1;return!0x0;}function Pt(_0x240014,_0x1f84c0,_0x7b6f94=[]){return!(!_0x240014['_isDataLoaded']||!_0x1f84c0['_isDataLoaded'])&&_0x2ef343(Bt(_0x240014['attributes'],_0x7b6f94),Bt(_0x1f84c0['attributes'],_0x7b6f94));}function Lt(_0x26d0eb,_0x44c67c){const _0x8609f1=Ht(_0x26d0eb['attributes']),_0x350e3f=Ht(_0x44c67c);if(!_0x26d0eb['_isDataLoaded'])return!0x1;for(const _0x507154 of Object['keys'](_0x350e3f))if(!_0x2ef343(_0x8609f1[_0x507154],_0x350e3f[_0x507154]))return!0x1;return!0x0;}function Ht(_0x21e751){const _0x46aa74=Object['assign']({},_0x21e751);return delete _0x46aa74['skipNestingCheck'],delete _0x46aa74['tablePasteChainId'],_0x46aa74;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4ff9be(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xcbd594,_0x176188,_0x2bf5c8,_0x505b12){super(),this['model']=_0x176188,this['view']=_0x2bf5c8,this['commentThreadController']=_0x505b12,this['_editor']=_0xcbd594,this['_acceptCommand']=_0xcbd594['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xcbd594['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2a6356,_0x3a89ea)=>_0x2a6356||_0x3a89ea),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xd435f9=>_0xd435f9&&this['_editor']['model']['canEditAt'](_0x176188['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1e038d=>_0x1e038d&&this['_editor']['model']['canEditAt'](_0x176188['getRanges']())),this['_pendingAction']=null,_0x2bf5c8['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2bf5c8,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2bf5c8,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2bf5c8,'change:isDirty',()=>{_0x2bf5c8['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 _0x518f2b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x518f2b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0xb7d5df{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x27e71e,_0x3faa49,_0x29cdcd,_0x2baf00){super(_0x27e71e),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3faa49['authoredAt']),this['bind']('authoredAt')['to'](_0x3faa49),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3faa49,this['_localUser']=_0x29cdcd,this['_config']=_0x2baf00,_0x2baf00['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x336c5f}=this['_config'];this['commentsListView']=new _0x336c5f(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',_0x3ffa14=>_0x3ffa14+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1ee83,_0x215082)=>_0x1ee83||!!_0x215082);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x30fc93}=this['_config'],_0x1369e8=new _0x30fc93(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x20280d=_0x1369e8['commentInputView'];return _0x1369e8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x20280d,'value',(_0x3be437,_0x2f3afd,_0x56f357)=>!!_0x56f357||_0x3be437&&!_0x2f3afd),_0x20280d['on']('submit',(_0x525d9d,_0x66b605)=>{this['fire']('addComment',_0x66b605),_0x20280d['editor']['setData']('');}),_0x20280d['on']('cancel',()=>this['focus']()),_0x20280d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1369e8;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x28d05f,_0x54f7de,_0x114c2a,_0x2afbf7){super(_0x28d05f,_0x54f7de,_0x114c2a,_0x2afbf7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x37c771=>_0x37c771&&_0x37c771[0x0]?_0x37c771[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5663ab,_0x129e06)=>{let _0x34501a='';for(const _0x3c7e86 of _0x5663ab)_0x34501a+='<p>'+ds(_0x3c7e86['content'],_0x3c7e86['color'])+'</p>';return _0x129e06?_0x34501a:_0x582db4(_0x34501a,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x28d05f,'Accept\x20suggestion'),_0xb3e85c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x28d05f,'Discard\x20suggestion'),_0xb3e85c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x532e9f(_0x28d05f,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4c2836=this['bindTemplate'],_0x4579db=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x4c2836['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4c2836['to']('authoredAt',_0x5ae3d5=>this['_config']['formatDateTime'](_0x5ae3d5))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x4579db['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0xf44937={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x4c2836['if']('isActive','ck-suggestion-wrapper--active'),_0x4c2836['to']('type',_0x384fab=>'ck-suggestion-'+_0x384fab),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x4579db}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0xf44937['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0xf44937;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xba6b81,_0x44c4e9,_0x2d626d)=>{this['_descriptionElement']['innerHTML']=_0x2d626d;});}['_createButton'](_0x294baf,_0x16e9f4,_0x297e73,_0x2e7843,_0x59ca3e){const _0x2964c1=new _0x1863cb(this['locale']);return _0x2964c1['set']({'label':_0x294baf,'icon':_0x16e9f4,'tooltip':!0x0,'tooltipPosition':_0x59ca3e}),_0x2964c1['extendTemplate']({'attributes':{'class':_0x297e73}}),_0x2964c1['on']('execute',()=>{this['fire'](_0x2e7843,this['_model']['id']);}),_0x2964c1;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x336c61,_0x2cf826){let _0x1448ab='';return _0x1448ab+=_0x336c61['split']('*')['map']((_0x5ed7a1,_0x59ccb7)=>_0x59ccb7%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5ed7a1)+'</span>':us(_0x5ed7a1))['join'](''),_0x2cf826&&(_0x1448ab+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2cf826['value']+'\x22\x20title=\x22'+_0x2cf826['title']+'\x22></span>'),_0x1448ab;}function us(_0x12c8fd){const _0x3bf27a=document['createElement']('span');return _0x3bf27a['innerText']=_0x12c8fd,_0x3bf27a['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0xeaacfa{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x43f0c5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0xeb08a3){super(_0xeb08a3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x47225a=this['editor']['config'];_0x47225a['define']('trackChanges.SuggestionThreadView',ne),_0x47225a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x47225a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x16d0a0,_0x9eb27){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x504e83,_0x5eab72]of this['_handleControllerBuffer']){const _0x2e4b77=this['_suggestionToController']['has'](_0x504e83);_0x2e4b77||_0x5eab72?_0x2e4b77&&_0x5eab72&&this['_destroyController'](_0x504e83):this['_initializeController'](_0x504e83);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x16d0a0,_0x9eb27);}['init'](){const _0x1d5394=this['editor'],_0x6c560=_0x1d5394['plugins']['get']('TrackChangesEditing'),_0x14ef2d=_0x1d5394['plugins']['get']('Annotations'),_0x50111a=_0x1d5394['plugins']['get']('EditorAnnotations'),_0x339e90=_0x1d5394['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x50111a['addSourceCollector'](()=>{const _0x15ed21=[];for(const [_0xafbaf8,_0x299ebb]of Array['from'](this['_suggestionToController'])){const _0xf817fa=_0xafbaf8['getAllAdjacentSuggestions'](),_0x4ebeb9=[];for(const _0x146b66 of _0xf817fa){if(!_0x146b66['isInContent'])continue;if(_0x146b66['isMultiRange']){_0x4ebeb9['push'](..._0x146b66['getRanges']());continue;}const _0x9514b6=_0x146b66['getFirstRange']();if(_0x4ebeb9['length']>0x0){const _0x1118bd=_0x4ebeb9[0x0]['getJoined'](_0x9514b6);if(_0x1118bd){_0x4ebeb9[0x0]=_0x1118bd;continue;}}_0x4ebeb9['push'](_0x9514b6);}_0x15ed21['push']([_0x299ebb['view'],_0x4ebeb9]);}return _0x15ed21;}),this['listenTo'](_0x6c560,'suggestionLoaded',(_0x2f8b54,_0x3877a6)=>{this['listenTo'](_0x3877a6,'change:previous',(_0x176a0d,_0xe27803,_0x3647de,_0x48467a)=>{_0x3877a6['isInContent']&&(null==_0x3647de?(this['_updateController'](_0x48467a['head']),this['_handleSuggestionControllerDelayed'](_0x3877a6,!0x1)):(this['_updateController'](_0x3647de['head']),null==_0x48467a&&this['_handleSuggestionControllerDelayed'](_0x3877a6,!0x0)));}),null!==_0x3877a6['previous']?this['_updateController'](_0x3877a6['head']):this['_handleSuggestionControllerDelayed'](_0x3877a6,!0x1);}),this['listenTo'](_0x6c560,'suggestionUnloaded',(_0x63ac0a,_0x6a8e75,_0x390aa7)=>{this['stopListening'](_0x6a8e75,'change:previous'),this['_handleControllerBuffer']['delete'](_0x6a8e75),this['_suggestionToController']['has'](_0x6a8e75)&&this['_destroyController'](_0x6a8e75),_0x390aa7&&this['_updateController'](_0x390aa7['head']);}),this['listenTo'](_0x6c560,'suggestionChanged',(_0x596f5e,_0x508ec4)=>{this['_updateController'](_0x508ec4);}),this['listenTo'](_0x14ef2d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x339e90,'addComment',(_0x4810e1,{threadId:_0x45ce1a,isFromAdapter:_0x4aa094})=>{if(_0x4aa094||!_0x6c560['hasSuggestion'](_0x45ce1a))return;const _0x483817=_0x6c560['getSuggestion'](_0x45ce1a);this['_suggestionToController']['get'](_0x483817)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5edafb=this['editor']['plugins']['get']('Annotations'),_0x4a5201=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4274e5=Array['from'](_0x5edafb['activeAnnotations'],_0x58f191=>_0x58f191['innerView'])['filter'](_0x16bc41=>this['_viewToController']['has'](_0x16bc41)),_0x599634=[];for(const _0x15abba of _0x4274e5){const _0x60815f=this['_viewToController']['get'](_0x15abba)['model']['getAllAdjacentSuggestions']();_0x599634['push'](..._0x60815f['reduce']((_0x46784a,_0x179a12)=>[..._0x46784a,..._0x179a12['getMarkerNames']()],[]));}_0x4a5201['activeMarkers']=_0x599634;}['_addUIComponentsToFactory'](){const _0x38e87b=this['editor'],_0x2f9d84=_0x38e87b['locale'],_0x34ec64=o(_0x2f9d84,'Track\x20changes'),_0x12be0d=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x34ec64,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2f9d84,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2f9d84,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2f9d84,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x2f9d84,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x11d567 of _0x12be0d)if(ae(_0x11d567)){const _0xef7d69=_0x38e87b['commands']['get'](_0x11d567['model']['commandName']);_0x11d567['model']['bind']('isOn','isEnabled')['to'](_0xef7d69,'value','isEnabled');}_0x38e87b['ui']['componentFactory']['add']('trackChanges',_0x325836=>this['_createToolbarButton'](_0x325836,_0x12be0d,_0x34ec64)),_0x38e87b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x768f61=>this['_createMenuBarMenu'](_0x768f61,_0x12be0d,_0x34ec64));}['_createToolbarButton'](_0x2a2f52,_0x2321a5,_0x26c66a){const _0x1080f6=zt(_0x2a2f52,Zt),_0x323279=this['editor']['commands']['get']('trackChanges');_0x1080f6['buttonView']['set']({'tooltip':_0x26c66a,'label':_0x26c66a,'icon':ie}),_0x1080f6['buttonView']['bind']('isOn')['to'](_0x323279,'value'),_0x1080f6['buttonView']['on']('execute',()=>{_0x323279['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x1080f6,_0x2321a5,{'role':'menu'});const _0x2fa1dc=[];for(const _0x1de85c of _0x2321a5)ae(_0x1de85c)&&_0x2fa1dc['push'](this['editor']['commands']['get'](_0x1de85c['model']['commandName']));const _0x2a5b0b=_0x1080f6['buttonView'];return _0x2a5b0b['actionView']['unbind']('isEnabled'),_0x2a5b0b['arrowView']['unbind']('isEnabled'),_0x2a5b0b['actionView']['bind']('isEnabled')['to'](_0x323279,'isEnabled'),_0x2a5b0b['arrowView']['bind']('isEnabled')['toMany'](_0x2fa1dc,'isEnabled',(..._0x4caa9e)=>_0x4caa9e['some'](_0x429e74=>_0x429e74)),_0x1080f6['on']('execute',_0x288207=>{this['editor']['execute'](_0x288207['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1080f6;}['_createMenuBarMenu'](_0x1ef5fe,_0x95a425,_0x292c03){const _0x135f99=new Kt(_0x1ef5fe),_0x58394d=this['editor']['commands']['get']('trackChanges');_0x135f99['buttonView']['set']({'label':_0x292c03,'icon':ie});const _0x398c5b=new Qt(_0x1ef5fe);for(const _0x11c45f of _0x95a425){if('separator'==_0x11c45f['type']){_0x398c5b['items']['add'](new Jt(_0x1ef5fe));continue;}const _0x5bec1a=new Xt(_0x1ef5fe,_0x135f99),_0x3141d6=new Yt(_0x1ef5fe),_0x56488b=_0x11c45f['model'];_0x3141d6['bind'](...Object['keys'](_0x56488b))['to'](_0x56488b),_0x3141d6['delegate']('execute')['to'](_0x135f99),_0x3141d6['on']('execute',()=>{this['editor']['execute'](_0x56488b['commandName']),this['editor']['editing']['view']['focus']();}),_0x5bec1a['children']['add'](_0x3141d6),_0x398c5b['items']['add'](_0x5bec1a);}return _0x135f99['bind']('isEnabled')['to'](_0x58394d,'isEnabled'),_0x135f99['panelView']['children']['add'](_0x398c5b),_0x135f99;}['_initializeController'](_0x485a63){const _0x3ef081=this['editor'],_0x4bd5b9=_0x3ef081['config'],_0x5ac528=_0x3ef081['plugins']['get']('Annotations'),_0x45f409=_0x3ef081['plugins']['get']('CommentsRepository'),_0x170179=_0x3ef081['plugins']['get']('EditorAnnotations'),_0x3252f7=_0x3ef081['plugins']['get'](_0x43f0c5)['me'],_0x6b42ac=_0x4bd5b9['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x229e05,CommentThreadInputView:_0x253e05}=_0x3ef081['plugins']['get']('CommentsUI');let _0x3fed7c,_0x174a79;this['_annotationViews']['has'](_0x485a63['id'])?(_0x174a79=this['_annotationViews']['get'](_0x485a63['id']),_0x3fed7c=_0x174a79['mainView']):(_0x3fed7c=new _0x6b42ac(_0x3ef081['locale'],_0x485a63,_0x3252f7,{'disableComments':this['_disableComments'],'editorConfig':_0x4bd5b9['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4bd5b9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4bd5b9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4bd5b9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x493fae(_0x4bd5b9['get']('locale')),'CommentView':_0x4bd5b9['get']('comments')['CommentView'],'CommentsListView':_0x229e05,'CommentThreadInputView':_0x253e05}),_0x3fed7c['acceptButton']['on']('execute',()=>{_0x3ef081['editing']['view']['focus']();}),_0x3fed7c['discardButton']['on']('execute',()=>{_0x3ef081['editing']['view']['focus']();}),_0x174a79=_0x5ac528['createAnnotationView'](this['editor']['locale'],_0x3fed7c),_0x174a79['bind']('isDirty')['to'](_0x3fed7c,'isDirty'),_0x174a79['bind']('length')['to'](_0x3fed7c),_0x174a79['bind']('type')['to'](_0x3fed7c,'type',_0x1b8ce6=>'suggestion-'+_0x1b8ce6),this['_annotationViews']['set'](_0x485a63['id'],_0x174a79));const _0x2a527c=_0x45f409['createCommentThreadController'](_0x485a63['commentThread'],_0x3fed7c),_0x3f948c=new oe(_0x3ef081,_0x485a63,_0x3fed7c,_0x2a527c),_0x4c6302=_0x485a63['getAllAdjacentSuggestions']()['filter'](_0x43a294=>_0x43a294['isInContent']);_0x3fed7c['descriptionParts']=_0x3ef081['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4c6302),this['_suggestionToController']['set'](_0x485a63,_0x3f948c),this['_viewToController']['set'](_0x3fed7c,_0x3f948c);const _0x2436c4=_0x5ac528['createAnnotation']({'view':_0x174a79,'target':()=>{const _0x29b43f=[],_0x5739b2=_0x485a63['getAllAdjacentSuggestions']()['filter'](_0x5f031a=>_0x5f031a['isInContent']);for(const _0x4f4020 of _0x5739b2)_0x29b43f['push'](..._0x4f4020['getMarkers']());return _0x2e8ef6(_0x3ef081['editing'],_0x29b43f);},'type':()=>'suggestion-'+_0x3f948c['view']['type']});_0x45f409['_bindAnnotationToEditors'](_0x3fed7c,_0x2436c4),_0x5ac528['add'](_0x2436c4),_0x170179['registerAnnotation'](_0x2436c4);}['_destroyController'](_0x498f8d){const _0x108569=this['editor']['plugins']['get']('CommentsRepository'),_0x32bd68=this['editor']['plugins']['get']('Annotations'),_0x22d472=this['_suggestionToController']['get'](_0x498f8d),_0x479612=_0x22d472['view'],_0x16a105=_0x32bd68['getByInnerView'](_0x479612);_0x108569['_unbindEditors'](_0x479612),_0x16a105&&_0x32bd68['remove'](_0x16a105),this['_suggestionToController']['delete'](_0x498f8d),this['_viewToController']['delete'](_0x479612),_0x22d472['destroy']();}['_updateController'](_0x32e75d){if(!_0x32e75d['isInContent']||!this['_suggestionToController']['has'](_0x32e75d))return;const _0x12f379=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25a04a=this['_suggestionToController']['get'](_0x32e75d),_0x233b90=_0x32e75d['getAllAdjacentSuggestions']();_0x25a04a['view']['descriptionParts']=_0x12f379['descriptionFactory']['getDescriptions'](_0x233b90);}['destroy'](){for(const _0x548032 of this['_suggestionToController']['keys']())this['_destroyController'](_0x548032);for(const _0x2fb0ae of this['_annotationViews']['values']())_0x2fb0ae['mainView']['destroy']();super['destroy']();}}function ae(_0x277ee2){return'model'in _0x277ee2;}class k extends _0xeaacfa{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x39ac65){this['editor']['plugins']['get'](p)['adapter']=_0x39ac65;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x38341e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x38341e);}['getSuggestions']({skipNotAttached:_0x32a4df=!0x1,toJSON:_0x2be2c0=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x32a4df,'toJSON':_0x2be2c0});}['getSuggestion'](_0x4c56be){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4c56be);}}const T=['Pagination'];class P extends _0xeaacfa{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x410218=this['editor'];if(_0x410218['config']['define']('trackChangesData.editorCreator',_0x2cffd7=>{const _0x2bbb23=_0x410218['model']['document']['getRootNames']()['reduce']((_0x59e936,_0x47365b)=>(_0x59e936[_0x47365b]='',_0x59e936),{});return _0x410218['constructor']['create'](_0x2bbb23,_0x2cffd7);}),'function'!=typeof _0x410218['config']['get']('trackChangesData')['editorCreator'])throw new _0x4054be('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x26c9d9){return N(this['editor'],!0x0,_0x26c9d9);}['getDataWithDiscardedSuggestions'](_0x1dcaed){return N(this['editor'],!0x1,_0x1dcaed);}}class D extends _0xeaacfa{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3b57b8){super(_0x3b57b8),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x541537){return void 0x0!==_0x541537['getRootsAttributes'];}async function N(_0x4b5b61,_0x4b2588,_0x419d60){const _0x8892bb=_0x5663ba(_0x4b5b61,T);_0x8892bb['plugins']['push'](p,D),_0x8892bb['rootsAttributes']=v(_0x4b5b61)?_0x4b5b61['getRootsAttributes']():void 0x0;const _0x2c9b66=document['createDocumentFragment'](),_0x5022f0=_0x4b5b61['config']['get']('trackChangesData')['editorCreator'],_0x471e46=await _0x5022f0(_0x8892bb,()=>function(_0x3d5ea3){const _0xa25048=document['createElement']('div');return _0x3d5ea3['appendChild'](_0xa25048),_0xa25048;}(_0x2c9b66));!function(_0x1b10e8,_0x393e2e){const _0x2d4fc8=_0x1b10e8['model']['document']['getRootNames']()['reduce']((_0x1d9a3d,_0x1bcd98)=>(_0x1d9a3d[_0x1bcd98]=_0x1b10e8['data']['get']({'rootName':_0x1bcd98}),_0x1d9a3d),{}),_0x33af8c=_0x1b10e8['plugins']['get']('Users')['users']['map'](_0xe76b08=>({'id':_0xe76b08['id'],'name':_0xe76b08['name']})),_0x1f854a=_0x1b10e8['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1814df=_0x1b10e8['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1ae619=_0x393e2e['plugins']['get']('Users'),_0x349de4=_0x393e2e['plugins']['get']('TrackChangesEditing'),_0x296416=_0x393e2e['plugins']['get']('CommentsRepository');for(const _0x4c9949 of _0x33af8c)_0x1ae619['getUser'](_0x4c9949['id'])||_0x1ae619['addUser'](_0x4c9949);_0x1ae619['me']||_0x1ae619['useAnonymousUser']();for(const _0x3dd804 of _0x1f854a)_0x349de4['addSuggestionData'](_0x3dd804);for(const _0x3a7d8c of _0x1814df)_0x296416['addCommentThread'](_0x3a7d8c);_0x393e2e['data']['set'](_0x2d4fc8);}(_0x4b5b61,_0x471e46),_0x471e46['execute'](_0x4b2588?'acceptAllSuggestions':'discardAllSuggestions');const _0x33ff85=v(_0x471e46)?_0x471e46['getFullData'](_0x419d60):_0x471e46['data']['get'](_0x419d60);return await _0x471e46['destroy'](),_0x33ff85;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0xb023a3,PendingActions as _0x3b63d4,icons as _0x127585}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2d4aa9,ObservableMixin as _0x44858b,uid as _0x19ce93,insertToPriorityArray as _0x406e32,priorities as _0x28d440,logWarning as _0x2b683c,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x189f44,View as _0x4e264a,ButtonView as _0x2dcb6a,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3d9c75,hashObject as _0x5f23c5,surroundingMarkersDetector as _0x3bc91c,trimHtml as _0x4886ba,UserView as _0x3a1152,getDateTimeFormatter as _0x4d26c1,getAllMarkersDomElementsSorted as _0x1a0ca3,sanitizeEditorConfig as _0x514d83}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x45418a,LiveRange as _0x2c1830,LivePosition as _0xc82fc5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x14c2d3,toWidget as _0x131ea3}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x41aa33,set as _0x55b533,isEqual as _0x32719b,unset as _0x54ddef,omit as Bt}from'lodash-es';import{Delete as _0x258a07,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x42c567,ShiftEnter as _0x41a651}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x4231c0 of this['editor']['commands']['commands']())_0x4231c0['affectsData']&&!this['_enabledCommands']['has'](_0x4231c0)&&_0x4231c0['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x10924a of this['editor']['commands']['commands']())_0x10924a['affectsData']&&!this['_enabledCommands']['has'](_0x10924a)&&_0x10924a['clearForceDisabled']('TrackChangesCommand');}constructor(_0x13e64b,_0x97a6a8){super(_0x13e64b),this['_enabledCommands']=_0x97a6a8,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1bc14f){const _0x5e817a=this['_suggestions']['get'](_0x1bc14f);if(!_0x5e817a)throw new _0x2d4aa9('track-changes-accept-suggestion-not-found',this);const _0x3bfe24=_0x5e817a['getRanges']();this['editor']['model']['canEditAt'](_0x3bfe24)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5e817a);}constructor(_0x38f716,_0x39cbb3){super(_0x38f716),this['_suggestions']=_0x39cbb3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5f09c4){const _0x42956e=this['_suggestions']['get'](_0x5f09c4);if(!_0x42956e)throw new _0x2d4aa9('track-changes-discard-suggestion-not-found',this);const _0x1bafd1=_0x42956e['getRanges']();this['editor']['model']['canEditAt'](_0x1bafd1)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x42956e);}constructor(_0x3efdf4,_0x99f6e2){super(_0x3efdf4),this['_suggestions']=_0x99f6e2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x417a3d){return _0x417a3d['sort']((_0x1ac98c,_0x38706d)=>'deletion'==_0x1ac98c['type']&&'deletion'!=_0x38706d['type']?-0x1:'deletion'!=_0x1ac98c['type']&&'deletion'==_0x38706d['type']?0x1:0x0);}function to(_0x451abd,_0x70cf32){let _0x2a5cd3,_0x35eb88=0x0;const _0x435878=[],_0x598bb4=_0x70cf32['schema'];for(;_0x35eb88<_0x451abd['length'];){const _0x1bd249=_0x451abd[_0x35eb88],_0x30a425=_0x451abd[_0x35eb88+0x1];_0x2a5cd3||(_0x2a5cd3=_0x70cf32['createPositionBefore'](_0x1bd249)),co(_0x70cf32,_0x1bd249,_0x30a425)||(_0x435878['push'](_0x70cf32['createRange'](_0x2a5cd3,_0x598bb4['isObject'](_0x1bd249)?_0x70cf32['createPositionAfter'](_0x1bd249):_0x70cf32['createPositionAt'](_0x1bd249,'end'))),_0x2a5cd3=null),_0x35eb88++;}return _0x435878;}function co(_0x392857,_0x30312a,_0x16df32){if(!_0x16df32)return!0x1;const _0x63f3cf=_0x392857['createPositionAfter'](_0x30312a),_0x2c97c9=_0x392857['createPositionBefore'](_0x16df32);return _0x63f3cf['isTouching'](_0x2c97c9);}function rs(_0x2dba09,_0x128c13,_0x3e9515){for(;_0x3e9515['length'];){const _0x54e066=_0x3e9515['splice'](0x0,0x64);_0x2dba09['change'](()=>{for(const _0x3885c3 of _0x54e066)_0x3885c3['isInContent']&&_0x128c13['execute'](_0x3885c3['id']);});}}class x extends ts{['refresh'](){const _0x492a86=Array['from'](this['_suggestions']['values']())['some'](_0xaa072e=>_0xaa072e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x492a86;}['execute'](){const _0x2d305e=ss(Array['from'](this['_suggestions']['values']()));for(const _0x5e9ef2 of _0x2d305e){const _0x3c4ac4=_0x5e9ef2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3c4ac4))return;}rs(this['editor']['model'],this['_command'],_0x2d305e);}constructor(_0x862a53,_0x45fbf3,_0x37425){super(_0x862a53),this['_command']=_0x45fbf3,this['_suggestions']=_0x37425,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x365c96=this['editor']['model']['document']['selection'],_0x1801ab=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x56e165,_0x36315b){const _0x3db550=Array['from'](_0x56e165['getRanges']()),_0x10edb7=new Set();for(const _0x40f0da of _0x36315b)if(_0x40f0da['isInContent']){for(const _0x2c87b5 of _0x3db550)for(const _0x35dfc5 of _0x40f0da['getRanges']())(_0x2c87b5['isIntersecting'](_0x35dfc5)||_0x56e165['isCollapsed']&&!_0x40f0da['isMultiRange']&&_0x40f0da['next']&&_0x35dfc5['end']['isTouching'](_0x2c87b5['start']))&&_0x10edb7['add'](_0x40f0da);}return _0x10edb7;}(_0x365c96,_0x1801ab),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x413184=ss(Array['from'](this['_selectedSuggestions']));for(const _0x3db008 of _0x413184){const _0x4179c6=_0x3db008['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4179c6))return;}rs(this['editor']['model'],this['_command'],_0x413184);}constructor(_0x3dde3a,_0x3cfa96,_0xc932fe){super(_0x3dde3a),this['_command']=_0x3cfa96,this['_suggestions']=_0xc932fe,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x44858b(){get['head'](){let _0x13c737=this;for(;_0x13c737['previous'];)_0x13c737=_0x13c737['previous'];return _0x13c737;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x2bfe37){this['_markerNames']['add'](_0x2bfe37);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x52236e=>this['_model']['markers']['get'](_0x52236e))['filter'](_0x35b3d9=>_0x35b3d9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5e4836=>{for(const _0x14d5d4 of this['getMarkers']())_0x5e4836['removeMarker'](_0x14d5d4);}),this['_markerNames']['clear']();}['removeMarker'](_0x4a1f78){this['_model']['change'](_0x235750=>{_0x235750['removeMarker'](_0x4a1f78);}),this['_markerNames']['delete'](_0x4a1f78);}['addRange'](_0x1fa2b8){const _0x270680='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x270680),this['_model']['change'](_0x446253=>{_0x446253['addMarker'](_0x270680,{'range':_0x1fa2b8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x7d277b){for(const _0x4734b2 of this['getRanges']())if(_0x4734b2['isIntersecting'](_0x7d277b))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xf8a58=>_0xf8a58['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x939439,_0x355308)=>[..._0x939439,..._0x355308['getItems']()],[]);}['getFirstRange'](){var _0x2e3a20;return(null===(_0x2e3a20=this['getFirstMarker']())||void 0x0===_0x2e3a20?void 0x0:_0x2e3a20['getRange']())||null;}['getContainedElement'](){const _0x36d531=this['getRanges']();if(0x1!=_0x36d531['length'])return null;const _0x47dae6=_0x36d531[0x0],_0x2a37b6=_0x47dae6['start']['nodeAfter'],_0x5d1e13=_0x47dae6['end']['nodeBefore'];return _0x2a37b6 instanceof _0x45418a?_0x2a37b6!=_0x5d1e13?null:_0x2a37b6: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 _0x5e6ae2=[];let _0x414d50=this['head'];for(;_0x414d50;)_0x5e6ae2['push'](_0x414d50),_0x414d50=_0x414d50['next'];return _0x5e6ae2;}['setAttribute'](_0x55d2c6,_0x25e266){const _0x2f0331=_0x41aa33(this['attributes']);_0x55b533(_0x2f0331,_0x55d2c6,_0x25e266),_0x32719b(_0x2f0331,this['attributes'])||(this['attributes']=_0x2f0331,this['_onAttributesChange'](_0x2f0331));}['removeAttribute'](_0x46d9e6){const _0x3f80f0=_0x41aa33(this['attributes']);_0x54ddef(_0x3f80f0,_0x46d9e6),_0x32719b(_0x3f80f0,this['attributes'])||(this['attributes']=_0x3f80f0,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 _0x19ce93()['substr'](0x1,0x5);}constructor(_0x401e2e,_0x232474){super(),this['_isDataLoaded']=!0x1,this['id']=_0x232474['id'],this['type']=_0x232474['type'],this['subType']=_0x232474['subType']||null,this['author']=_0x232474['author'],this['creator']=_0x232474['creator']||_0x232474['author'],this['isExternal']=Boolean(_0x232474['attributes']&&_0x232474['attributes']['@external']),this['data']=null,this['_model']=_0x401e2e,this['_onAccept']=_0x232474['onAccept'],this['_onDiscard']=_0x232474['onDiscard'],this['_onAttributesChange']=_0x232474['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x232474['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}}function o(_0x539f92,_0x316b86,_0x136fb5){const t=_0x539f92['t'];switch(_0x316b86){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x136fb5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x136fb5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x136fb5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x136fb5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x136fb5);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',_0x136fb5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x136fb5);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x136fb5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x136fb5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x136fb5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x136fb5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x136fb5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x136fb5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x136fb5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x136fb5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x136fb5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x136fb5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x136fb5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x136fb5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x136fb5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x136fb5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x136fb5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x136fb5);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'},_0x136fb5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x136fb5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x136fb5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x136fb5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x136fb5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x136fb5);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x136fb5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x136fb5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x136fb5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x136fb5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x136fb5);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x136fb5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x136fb5);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'},_0x136fb5);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x136fb5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x136fb5);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'},_0x136fb5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x136fb5);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'},_0x136fb5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x136fb5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x136fb5);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x136fb5);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x136fb5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x316b86;}}class f{['getDescriptions'](_0x46a0b4){const _0x1a2cd0=[],_0x20477a=new Set(),_0x1c78d1=new Set();for(let _0x500767=0x0;_0x500767<_0x46a0b4['length'];_0x500767++){const _0x44adb8=_0x46a0b4[_0x500767];if(!_0x44adb8['isInContent'])continue;const _0x9b35d6=this['_handleCustomCallbackDescription'](_0x44adb8);if(_0x9b35d6){if(null!=_0x44adb8['subType']){if(_0x20477a['has'](_0x44adb8['subType']))continue;_0x20477a['add'](_0x44adb8['subType']);}_0x1a2cd0['push'](_0x9b35d6);}else{if('attribute'!=_0x44adb8['type'])'insertion'!=_0x44adb8['type']&&'deletion'!=_0x44adb8['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1a2cd0,_0x44adb8,_0x46a0b4[_0x500767+0x1]);else{const _0x2795a0=_0x44adb8['data']['key'];if(_0x1c78d1['has'](_0x2795a0))continue;_0x1c78d1['add'](_0x44adb8['data']['key']),_0x2795a0==m?this['_handleRenameSuggestionDescription'](_0x1a2cd0,_0x44adb8):this['_handleAttributeSuggestionDescription'](_0x1a2cd0,_0x44adb8);}}}return this['_resolveDescriptionItems'](_0x1a2cd0);}['registerDescriptionCallback'](_0x3404e5){this['_customCallbacks']['push'](_0x3404e5);}['registerElementLabel'](_0x481edd,_0x341551,_0x3fe011=_0x28d440['normal']){'function'==typeof _0x481edd?_0x406e32(this['_itemLabelsCallbacks'],{'matchingCallback':_0x481edd,'label':_0x341551,'priority':_0x3fe011}):this['_itemLabels']['set'](_0x481edd,_0x341551);}['registerAttributeLabel'](_0x3d480a,_0x170c36){this['_attributeLabels']['set'](_0x3d480a,_0x170c36);}['getItemLabel'](_0x2ab98c,_0x5364a3=0x1){let _0x594835;for(const _0x499728 of this['_itemLabelsCallbacks'])if(_0x499728['matchingCallback'](_0x2ab98c)){_0x594835=_0x499728['label'];break;}return _0x594835||(_0x594835=this['_itemLabels']['get'](_0x2ab98c['name'])),_0x594835?_0x594835(_0x5364a3):0x1!==_0x5364a3?_0x5364a3+'\x20'+_0x2ab98c['name']+'s':''+_0x2ab98c['name'];}['_addDescriptionItems'](_0x48345b,_0x5508f7){const _0x4cafaf=_0x5508f7['getFirstRange']()['getWalker'](),_0x880d07='insertion'==_0x5508f7['type']?'add':'remove';for(const _0x27698c of _0x4cafaf){const _0x4ada34=_0x27698c['item'],_0x12bd5f=_0x48345b[_0x48345b['length']-0x1];if(_0x4ada34['is']('$textProxy'))_0x12bd5f&&_0x12bd5f['type']['indexOf']('Container')>-0x1&&_0x48345b['pop'](),_0x12bd5f&&'text'==_0x12bd5f['type']?_0x12bd5f[_0x880d07]+=_0x4ada34['data']:_0x48345b['push']({'type':'text','add':'add'==_0x880d07?_0x4ada34['data']:'','remove':'remove'==_0x880d07?_0x4ada34['data']:''});else{if(this['_schema']['isObject'](_0x4ada34)){const _0x494a1d=_0x4ada34;if(_0x12bd5f&&_0x12bd5f['type']['indexOf']('Container')>-0x1&&_0x48345b['pop'](),'elementEnd'==_0x27698c['type'])continue;_0x12bd5f&&_0x12bd5f['type']==_0x880d07+'Object'&&_0x12bd5f['element']['name']==_0x494a1d['name']?_0x12bd5f['quantity']++:_0x48345b['push']({'type':_0x880d07+'Object','element':_0x494a1d,'quantity':0x1}),_0x4cafaf['skip'](_0x40e7e3=>!('elementEnd'==_0x40e7e3['type']&&_0x40e7e3['item']==_0x4ada34));}else{if(this['_schema']['checkChild'](_0x4ada34,'$text')||_0x4ada34['is']('element','softBreak')){const _0x33ab18=_0x4ada34;if('add'==_0x880d07&&'elementStart'==_0x27698c['type']||'remove'==_0x880d07&&'elementEnd'==_0x27698c['type'])continue;if(_0x12bd5f&&-0x1==_0x12bd5f['type']['indexOf']('Container')){'text'==_0x12bd5f['type']&&(_0x12bd5f[_0x880d07]+='\x0a');continue;}let _0x4a21d6;if(_0x4a21d6='add'==_0x880d07?_0x33ab18['nextSibling']&&!this['_schema']['isObject'](_0x33ab18['nextSibling'])?_0x33ab18['nextSibling']:null:_0x33ab18['previousSibling']&&!this['_schema']['isObject'](_0x33ab18['previousSibling'])?_0x33ab18['previousSibling']:null,_0x33ab18['isEmpty']||_0x4a21d6&&_0x4a21d6['isEmpty']){const _0x310d7e=_0x4a21d6&&_0x4a21d6['isEmpty']?_0x4a21d6:_0x33ab18;_0x12bd5f&&_0x12bd5f['type']==_0x880d07+'EmptyContainer'&&_0x12bd5f['element']['name']==_0x310d7e['name']?_0x12bd5f['quantity']++:_0x48345b['push']({'type':_0x880d07+'EmptyContainer','element':_0x310d7e,'quantity':0x1});}else _0x48345b['push']({'type':_0x880d07+'Container','element':_0x33ab18});}}}}}['_resolveDescriptionItems'](_0x1e0f26){const _0x3fd782=this['_locale'],_0x563214=[],_0x54cb21=[],_0x2918d5=[];for(const _0x5ab581 of _0x1e0f26)switch(_0x5ab581['type']){case'text':if(_0x5ab581['add']=_0x5ab581['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5ab581['remove']=_0x5ab581['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5ab581['add']&&''!=_0x5ab581['remove']){_0x563214['push']({'type':'replace','content':o(_0x3fd782,'REPLACE_TEXT',['\x22'+_0x5ab581['remove']+'\x22','\x22'+_0x5ab581['add']+'\x22'])});continue;}if(null!=_0x5ab581['add']['match'](/^ +$/)){_0x563214['push']({'type':'insertion','content':o(_0x3fd782,'*Insert:*\x20%0',o(_0x3fd782,'ELEMENT_SPACE',_0x5ab581['add']['length']))});continue;}if(null!=_0x5ab581['remove']['match'](/^ +$/)){_0x563214['push']({'type':'deletion','content':o(_0x3fd782,'*Remove:*\x20%0',o(_0x3fd782,'ELEMENT_SPACE',_0x5ab581['remove']['length']))});continue;}if(''!=_0x5ab581['add']){_0x563214['push']({'type':'insertion','content':o(_0x3fd782,'*Insert:*\x20%0','\x22'+_0x5ab581['add']+'\x22')});continue;}_0x563214['push']({'type':'deletion','content':o(_0x3fd782,'*Remove:*\x20%0','\x22'+_0x5ab581['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x563214['push']({'type':'insertion','content':o(_0x3fd782,'*Insert:*\x20%0',this['getItemLabel'](_0x5ab581['element'],_0x5ab581['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x563214['push']({'type':'deletion','content':o(_0x3fd782,'*Remove:*\x20%0',this['getItemLabel'](_0x5ab581['element'],_0x5ab581['quantity']))});continue;case'addContainer':_0x563214['push']({'type':'insertion','content':o(_0x3fd782,'*Split:*\x20%0',this['getItemLabel'](_0x5ab581['element'],_0x5ab581['quantity']))});continue;case'removeContainer':_0x563214['push']({'type':'deletion','content':o(_0x3fd782,'*Merge:*\x20%0',this['getItemLabel'](_0x5ab581['element'],_0x5ab581['quantity']))});continue;case'addFormat':_0x54cb21['push'](_0x5ab581['key']);continue;case'removeFormat':_0x2918d5['push'](_0x5ab581['key']);continue;default:_0x563214['push'](_0x5ab581);}if(_0x54cb21['length']){const _0x49c1d0=_0x54cb21['map'](_0x1dc4bc=>this['_attributeLabels']['has'](_0x1dc4bc)?this['_attributeLabels']['get'](_0x1dc4bc):_0x1dc4bc)['join'](',\x20');_0x563214['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x49c1d0)});}if(_0x2918d5['length']){const _0x124c74=_0x2918d5['map'](_0x563a5f=>this['_attributeLabels']['has'](_0x563a5f)?this['_attributeLabels']['get'](_0x563a5f):_0x563a5f)['join'](',\x20');_0x563214['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x124c74)});}return _0x563214;}['_handleCustomCallbackDescription'](_0x56ab64){for(const _0x2878ea of this['_customCallbacks']){const _0x4e773e=_0x2878ea(_0x56ab64);if(_0x4e773e&&'type'in _0x4e773e)return _0x4e773e;}}['_handleAttributeSuggestionDescription'](_0x2bf139,_0x28d409){const _0x54f2c9=_0x28d409['data'],_0x21e65b=void 0x0===_0x54f2c9['newValue']?'removeFormat':'addFormat';_0x2bf139['push']({'type':_0x21e65b,'key':_0x54f2c9['key']});}['_handleRenameSuggestionDescription'](_0x1ed569,_0x20ceb6){_0x1ed569['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x20ceb6['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x44b4f9,_0x208711,_0x590a84){if(this['_addDescriptionItems'](_0x44b4f9,_0x208711),_0x590a84&&_0x590a84['getFirstRange']()&&!_0x208711['getFirstRange']()['end']['isEqual'](_0x590a84['getFirstRange']()['start'])){const _0x58ba28=_0x44b4f9[_0x44b4f9['length']-0x1],_0x39967d='insertion'==_0x208711['type']?'add':'remove';_0x58ba28&&'text'==_0x58ba28['type']&&(_0x58ba28[_0x39967d]+='\x0a');}}constructor(_0xb1e77e,_0x283554){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xb1e77e,this['_locale']=_0x283554;}}class E extends _0xb023a3{['afterInit'](){const _0x649436=this['editor'],_0x184e63=_0x649436['plugins']['get']('TrackChangesEditing');_0x649436['commands']['get']('showAIAssistant')&&_0x184e63['enableCommand']('showAIAssistant');}}class V extends _0xb023a3{['afterInit'](){const _0x2a8063=this['editor'],_0x40f773=_0x2a8063['locale'];if(!_0x2a8063['plugins']['has']('AlignmentEditing'))return;const _0x37251a=_0x2a8063['plugins']['get']('TrackChangesEditing');_0x37251a['enableDefaultAttributesIntegration']('alignment'),_0x37251a['registerBlockAttribute']('alignment'),_0x37251a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x40f773,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x370fb2=this['editor'],_0x2cbbcf=_0x370fb2['locale'];_0x370fb2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x529ee0=>{if('formatBlock'!=_0x529ee0['type'])return;const {data:_0x4b052d}=_0x529ee0;if(_0x4b052d&&'alignment'==_0x4b052d['commandName']){const _0x333636=_0x4b052d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2cbbcf,'*Format:*\x20%0',function(_0x2b6697){switch(_0x2b6697){case'left':return o(_0x2cbbcf,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2cbbcf,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2cbbcf,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2cbbcf,'FORMAT_JUSTIFY_TEXT');}}(_0x333636))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0xb023a3{['afterInit'](){const _0xe1cc1c=this['editor'],_0x27a632=_0xe1cc1c['plugins']['get']('TrackChangesEditing'),_0x471f06=_0xe1cc1c['locale'];for(const _0x493a96 of ti){if(!_0xe1cc1c['plugins']['has'](_0x493a96))continue;const _0x4a6ffa=_0x493a96['slice'](0x0,-0x7)['toLowerCase'](),_0x1c5c46='FORMAT_'+_0x4a6ffa['toUpperCase']();_0x27a632['enableDefaultAttributesIntegration'](_0x4a6ffa),_0x27a632['registerInlineAttribute'](_0x4a6ffa),_0x27a632['descriptionFactory']['registerAttributeLabel'](_0x4a6ffa,o(_0x471f06,_0x1c5c46));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x278b21=this['editor'],_0x3224f4=_0x278b21['locale'],_0x1c7681=_0x278b21['plugins']['get']('TrackChangesEditing');function _0x5589b1(_0x309f50,_0x53037d){_0x1c7681['descriptionFactory']['registerDescriptionCallback'](_0x343910=>{if('formatInline'!=_0x343910['type'])return;const {data:_0xfce4fc}=_0x343910;return _0xfce4fc&&_0xfce4fc['commandName']===_0x309f50?_0xfce4fc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3224f4,'*Format:*\x20%0',_0x53037d)}:{'type':'format','content':o(_0x3224f4,'*Remove\x20format:*\x20%0',_0x53037d)}:void 0x0;});}_0x5589b1('bold',o(_0x3224f4,'FORMAT_BOLD')),_0x5589b1('italic',o(_0x3224f4,'FORMAT_ITALIC')),_0x5589b1('underline',o(_0x3224f4,'FORMAT_UNDERLINE')),_0x5589b1('code',o(_0x3224f4,'FORMAT_CODE')),_0x5589b1('strikethrough',o(_0x3224f4,'FORMAT_STRIKETHROUGH')),_0x5589b1('subscript',o(_0x3224f4,'FORMAT_SUBSCRIPT')),_0x5589b1('superscript',o(_0x3224f4,'FORMAT_SUPERSCRIPT'));}}class O extends _0xb023a3{['afterInit'](){const _0x5be9dd=this['editor'],_0xf3f423=_0x5be9dd['locale'];if(!_0x5be9dd['plugins']['has']('BlockQuoteEditing'))return;const _0xf49886=_0x5be9dd['plugins']['get']('TrackChangesEditing'),_0x14ba5a=this['editor']['commands']['get']('blockQuote');_0xf49886['enableCommand']('blockQuote',(_0x3031d9,_0x31f689={})=>{const _0x27e998=this['editor']['model']['document']['selection'],_0x1d75b0=_0x31f689&&void 0x0!==_0x31f689['forceValue']?_0x31f689['forceValue']:!_0x14ba5a['value'];let _0x8e3a90=[];if(_0x1d75b0){const _0x4baa93=Array['from'](_0x27e998['getSelectedBlocks']())['filter'](_0x144a14=>oo(_0x144a14)||function(_0x42f7c6,_0x56c7e2){const _0x3de670=_0x56c7e2['checkChild'](_0x42f7c6['parent'],'blockQuote'),_0x390b68=_0x56c7e2['checkChild'](['$root','blockQuote'],_0x42f7c6);return _0x3de670&&_0x390b68;}(_0x144a14,this['editor']['model']['schema']));_0x8e3a90=to(_0x4baa93,_0x5be9dd['model']);}else{const _0x1c1dbf=Array['from'](_0x27e998['getSelectedBlocks']())['filter'](_0x127258=>oo(_0x127258));_0x8e3a90=to(_0x1c1dbf,_0x5be9dd['model']);}_0x5be9dd['model']['change'](()=>{for(const _0x4b3f0b of _0x8e3a90)_0xf49886['markBlockFormat'](_0x4b3f0b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1d75b0}]});});}),_0xf49886['descriptionFactory']['registerDescriptionCallback'](_0x37b3e2=>{const {data:_0x331531}=_0x37b3e2;if(_0x331531&&'blockQuote'==_0x331531['commandName']){const _0x10834d=o(_0xf3f423,'ELEMENT_BLOCK_QUOTE');return _0x331531['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf3f423,'*Set\x20format:*\x20%0',_0x10834d)}:{'type':'format','content':o(_0xf3f423,'*Remove\x20format:*\x20%0',_0x10834d)};}});}}function oo(_0x3d39e6){return'blockQuote'==_0x3d39e6['parent']['name'];}class F extends _0xb023a3{['afterInit'](){const _0xdadc5=this['editor'];_0xdadc5['plugins']['has']('CaseChange')&&(_0xdadc5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xdadc5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xdadc5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xb023a3{['afterInit'](){const _0xfa035a=this['editor'];_0xfa035a['commands']['get']('ckbox')&&_0xfa035a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xb023a3{['afterInit'](){const _0x21206d=this['editor'];if(!_0x21206d['plugins']['has']('CodeBlock'))return;const _0x3b59a5=_0x21206d['plugins']['get']('TrackChangesEditing'),_0x1f3034=_0x21206d['locale'],_0x53fb1f=_0x21206d['config']['get']('codeBlock')['languages'],_0xd0fe62=_0x21206d['commands']['get']('codeBlock');_0x3b59a5['enableCommand']('indentCodeBlock'),_0x3b59a5['enableCommand']('outdentCodeBlock'),_0x3b59a5['enableCommand']('codeBlock',(_0xebdcc2,_0x1d28f6={})=>{const _0x11a54e=_0x21206d['model'],_0x3b67a9=_0x21206d['model']['document']['selection'],_0x210ba5=_0x1d28f6&&void 0x0!==_0x1d28f6['forceValue']?_0x1d28f6['forceValue']:!_0xd0fe62['value'];let _0x11ad92;_0x1d28f6['language']||(_0x1d28f6['language']=_0x53fb1f[0x0]['language']),_0x11ad92=_0x210ba5?Array['from'](_0x3b67a9['getSelectedBlocks']())['filter'](_0x58aca7=>eo(_0x58aca7)||function(_0x329029,_0x5ae53e){if(_0x329029['is']('rootElement')||_0x5ae53e['isLimit'](_0x329029))return!0x1;return _0x5ae53e['checkChild'](_0x329029['parent'],'codeBlock');}(_0x58aca7,_0x11a54e['schema'])):Array['from'](_0x3b67a9['getSelectedBlocks']())['filter'](_0xc42061=>eo(_0xc42061));const _0x57b92b=to(_0x11ad92,_0x11a54e);_0x11a54e['change'](()=>{for(const _0x31444e of _0x57b92b)_0x3b59a5['markBlockFormat'](_0x31444e,{'commandName':'codeBlock','commandParams':[{..._0x1d28f6,'forceValue':_0x210ba5}],'formatGroupId':'blockName'});});}),(_0x3b59a5['descriptionFactory']['registerElementLabel']('codeBlock',_0x2f1229=>o(_0x1f3034,'ELEMENT_CODE_BLOCK',_0x2f1229)),_0x3b59a5['descriptionFactory']['registerDescriptionCallback'](_0x5bc1fa=>{if('formatBlock'!=_0x5bc1fa['type'])return;const _0x26721e=_0x1f3034['t'],{data:_0x42e759}=_0x5bc1fa;if(!_0x42e759||'codeBlock'!=_0x42e759['commandName'])return;const _0x46a942=_0x42e759['commandParams'][0x0]['language'],_0x49acf8=_0x26721e(_0x53fb1f['find'](_0x306950=>_0x306950['language']===_0x46a942)['label'])['toLowerCase']();return _0x42e759['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1f3034,'*Set\x20format:*\x20%0',o(_0x1f3034,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x49acf8+')')}:{'type':'format','content':o(_0x1f3034,'*Remove\x20format:*\x20%0',o(_0x1f3034,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x443791){return'codeBlock'==_0x443791['name'];}class H extends _0xb023a3{['afterInit'](){const _0x5c4b5c=this['editor'];if(!_0x5c4b5c['plugins']['has']('CommentsEditing'))return;_0x5c4b5c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xe91117,_0x1d656a,_0x2a4620){const _0x31884d=[];for(const _0xaed50 of _0x1d656a['getItems']())_0xaed50['hasAttribute'](_0xe91117)&&_0x31884d['push'](_0x2a4620['createRangeOn'](_0xaed50));return _0x31884d;}function _e(_0x3f32b9,_0x59862b,{showActiveMarker:_0x2f3332=!0x0}={}){const _0x2eebdb=_0x3f32b9['plugins']['get']('TrackChangesEditing');return(_0x202cca,_0x358905,_0x4c094f)=>{if(!_0x4c094f['consumable']['test'](_0x358905['markerRange'],_0x202cca['name']))return;const _0xc5b798=_0x358905['markerRange']['getWalker'](),_0x1133c8=_0x358905['markerRange']['start'],_0x6abc14=_0x3f32b9['model']['schema'];let _0x39e2b0=null,_0x11b92b=null,_0x228118=!0x1,_0x3f383a=!0x1;for(const _0x543368 of _0xc5b798){const _0xe12c8a=_0x543368['item'];_0x228118=_0x228118||_0x6abc14['isContent'](_0xe12c8a);const _0x15e195=_0x4c094f['mapper']['toViewElement'](_0xe12c8a);if(_0x15e195&&_0x15e195['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x543368['type']&&(_0x6abc14['isBlock'](_0xe12c8a)&&!_0x6abc14['isLimit'](_0xe12c8a)&&(_0xe12c8a['nextSibling']||_0x1133c8['isAtEnd']?_0x39e2b0&&_0x39e2b0['parent']==_0xe12c8a||(_0x39e2b0=_0xe12c8a,_0x15d8d0(_0x543368['previousPosition']),_0x3f383a=!0x0):_0x11b92b=_0x11b92b||_0x543368['previousPosition']));}function _0x15d8d0(_0x2fcc05){const _0xd9abb5=_0x4c094f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x59862b}),_0x3b5edb=_0x4c094f['mapper']['toViewPosition'](_0x2fcc05);_0x2f3332&&_0x2eebdb['activeMarkers']['includes'](_0x358905['markerName'])&&_0x4c094f['writer']['addClass']('ck-suggestion-marker--active',_0xd9abb5),_0x4c094f['writer']['insert'](_0x3b5edb,_0xd9abb5),_0x4c094f['mapper']['bindElementToMarker'](_0xd9abb5,_0x358905['markerName']);}_0x228118||_0x3f383a||!_0x11b92b||_0x15d8d0(_0x11b92b);};}class q extends _0xb023a3{static get['requires'](){return[_0x258a07];}['init'](){const _0x2edaa7=this['editor'],_0x20b6af=_0x2edaa7['plugins']['get']('TrackChangesEditing');_0x20b6af['enableCommand']('delete');const _0xba797e=_0x2edaa7['commands']['get']('deleteForward');_0x20b6af['enableCommand']('deleteForward',(_0x312324,_0x5e3df8={})=>{const _0x2780e1=_0x2edaa7['model']['createSelection'](_0x2edaa7['model']['document']['selection']);_0x2780e1['isCollapsed']&&_0x2edaa7['model']['modifySelection'](_0x2780e1,{'direction':'forward','unit':_0x5e3df8['unit']});const _0x16ab09=_0x2780e1['getFirstRange'](),_0x465164=_0x2c1830['fromRange'](_0x16ab09);let _0x33b328;_0x312324(_0x5e3df8),_0x33b328='$graveyard'==_0x465164['root']['rootName']?_0x2edaa7['model']['createRange'](_0x16ab09['start']):_0x2edaa7['model']['createRange'](_0x465164['start'],_0x465164['end']),_0x465164['detach'](),_0x2edaa7['model']['enqueueChange'](_0xba797e['buffer']['batch'],_0x59a1aa=>{_0xba797e['buffer']['lock'](),_0x59a1aa['setSelection'](_0x59a1aa['createRange'](_0x33b328['end'])),_0xba797e['buffer']['unlock']();});}),_0x2edaa7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2edaa7,'merge'),{'priority':'high'}),_0x2edaa7['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x20d698,_0x23c4e7,_0x1fa0c0)=>{_0x1fa0c0['options']['showSuggestionHighlights']&&_e(_0x2edaa7,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x20d698,_0x23c4e7,_0x1fa0c0);},{'priority':'high'}),_0x2edaa7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4bbfd4,_0x1e9148,_0x4733d9)=>{const _0x25e186=_0x4733d9['mapper']['markerNameToElements'](_0x1e9148['markerName']);if(_0x25e186){for(const _0x4d8add of _0x25e186)_0x4d8add['is']('uiElement')&&(_0x4733d9['mapper']['unbindElementFromMarkerName'](_0x4d8add,_0x1e9148['markerName']),_0x4733d9['writer']['remove'](_0x4d8add));}},{'priority':'high'});}}class z extends _0xb023a3{['afterInit'](){const _0x10d21f=this['editor'];if(!_0x10d21f['plugins']['has']('ListEditing'))return;const _0x1417a3=_0x10d21f['locale'],_0x5ae228=_0x10d21f['plugins']['get']('TrackChangesEditing'),_0x332359=_0x10d21f['plugins']['has']('TodoListEditing'),_0x1898af=!!_0x10d21f['config']['get']('list.multiBlock');function _0x1bf332(_0x117a56){return{'type':'format','content':''+o(_0x1417a3,'*Set\x20format:*\x20%0',_0x117a56)};}function _0x3c795(_0x332b0f){return{'type':'format','content':''+o(_0x1417a3,'*Remove\x20format:*\x20%0',_0x332b0f)};}_0x5ae228['enableDefaultAttributesIntegration']('numberedList'),_0x5ae228['enableDefaultAttributesIntegration']('bulletedList'),_0x5ae228['enableDefaultAttributesIntegration']('customNumberedList'),_0x5ae228['enableDefaultAttributesIntegration']('customBulletedList'),_0x5ae228['enableDefaultAttributesIntegration']('indentList'),_0x5ae228['enableDefaultAttributesIntegration']('outdentList'),_0x5ae228['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5ae228['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5ae228['registerBlockAttribute']('listItemId'),_0x5ae228['registerBlockAttribute']('listType'),_0x5ae228['registerBlockAttribute']('listIndent'),_0x1898af&&(_0x5ae228['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5ae228['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x332359&&(_0x5ae228['enableDefaultAttributesIntegration']('todoList'),_0x5ae228['enableDefaultAttributesIntegration']('checkTodoList'),_0x5ae228['registerBlockAttribute']('todoListChecked'),_0x5ae228['descriptionFactory']['registerDescriptionCallback'](_0x3e093c=>{const {data:_0x458827}=_0x3e093c;if(_0x458827&&'todoListChecked'==_0x458827['key'])return{'type':'format','content':_0x458827['newValue']?o(_0x1417a3,'*Check\x20item*'):o(_0x1417a3,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5251f1=>{if(_0x5251f1['batch']['isUndo'])return!0x1;let _0x3f573d=!0x1;const _0x4bc559=_0x5ae228['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x134337=>'todoListChecked'===_0x5ae228['_getAttributeKey'](_0x134337));for(const _0x28b288 of _0x4bc559){'todo'!=_0x28b288['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5ae228['_findSuggestions'](_0x28b288['getFirstRange'](),'attribute')['find'](_0x291c8e=>'listType'===_0x5ae228['_getAttributeKey'](_0x291c8e['suggestion']))||(_0x5251f1['removeMarker'](_0x28b288['getFirstMarker']()),_0x3f573d=!0x0));}return _0x3f573d;})),_0x5ae228['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1417a3,'FORMAT_INDENT'));const _0x192926={'type':'format','content':''};_0x5ae228['descriptionFactory']['registerDescriptionCallback'](_0xd522fb=>{const {data:_0x2e06ae}=_0xd522fb;if(!_0x2e06ae||'listType'!=_0x2e06ae['key'])return;let _0x2559e3=_0xd522fb['head'];for(;_0x2559e3;){if(_0x2559e3['data']&&(('listStyle'==_0x2559e3['data']['key']||'listMarkerStyle'==_0x2559e3['data']['key'])&&(_0x2559e3['data']['newValue']&&'default'!=_0x2559e3['data']['newValue']||'default'!=_0x2559e3['data']['oldValue']&&!_0x2e06ae['newValue'])||!_0x1898af&&_0x2559e3['data']['key']==m))return _0x192926;_0x2559e3=_0x2559e3['next'];}if(null==_0x2e06ae['newValue'])switch(_0x2e06ae['oldValue']){case'bulleted':return _0x3c795(o(_0x1417a3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c795(o(_0x1417a3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c795(o(_0x1417a3,'ELEMENT_TODO_LIST'));}switch(_0x2e06ae['newValue']){case'bulleted':return _0x1bf332(o(_0x1417a3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1bf332(o(_0x1417a3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1bf332(o(_0x1417a3,'ELEMENT_TODO_LIST'));}}),_0x5ae228['descriptionFactory']['registerDescriptionCallback'](_0x571876=>{const {data:_0x127943}=_0x571876;if(_0x127943&&'listIndent'==_0x127943['key'])return null==_0x127943['newValue']||null==_0x127943['oldValue']&&0x0==_0x127943['newValue']?_0x192926:void 0x0;}),_0x5ae228['descriptionFactory']['registerDescriptionCallback'](_0x1c02e0=>{if('attribute'!=_0x1c02e0['type'])return;const {data:_0x306c7a}=_0x1c02e0;if(!_0x306c7a||'listItemId'!=_0x306c7a['key'])return;const _0x33b616=le(_0x1c02e0);return'newValue'==_0x33b616?{'type':'format','content':o(_0x1417a3,'*Merge:*\x20list\x20item')}:'oldValue'==_0x33b616?{'type':'format','content':o(_0x1417a3,'*Split:*\x20list\x20item')}:_0x192926;}),_0x10d21f['model']['document']['registerPostFixer'](_0x111b38=>this['listItemIdFixer'](_0x111b38)),_0x10d21f['model']['document']['registerPostFixer'](_0x3c2dab=>this['noTrackChangesFixer'](_0x3c2dab)),_0x10d21f['model']['document']['registerPostFixer'](_0x4277d3=>this['assureChains'](_0x4277d3)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3f788f){if(_0x3f788f['batch']['isUndo']||!_0x3f788f['batch']['isLocal'])return!0x1;let _0x882dc=!0x1;const _0x52d66c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44edd0=>_0x44edd0['data']&&'listItemId'==_0x44edd0['data']['key'])['filter'](_0x3991aa=>_0x3991aa['data']['newValue']&&_0x3991aa['data']['oldValue']);for(const _0x530bbc of _0x52d66c)le(_0x530bbc)||(_0x3f788f['removeMarker'](_0x530bbc['getFirstMarker']()),_0x882dc=!0x0);return _0x882dc;}['noTrackChangesFixer'](_0x124860){if(_0x124860['batch']['isUndo']||!_0x124860['batch']['isLocal'])return!0x1;const _0x28c0f1=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x28c0f1['trackChangesCommand']['value'])return!0x1;let _0x34539f=!0x1;const _0x303c23=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x54e1fa=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5066d5=>'attribute'==_0x5066d5['type'])['filter'](_0x1697a4=>_0x303c23['includes'](_0x1697a4['attributeKey']));if(0x0==_0x54e1fa['length'])return _0x34539f;for(const _0x1ff38b of _0x54e1fa){const _0x78eb60=_0x28c0f1['_findSuggestions'](_0x1ff38b['range'],'attribute')['filter'](_0x596a60=>!_0x596a60['meta']['isNextTo'])['map'](_0x218cf0=>_0x218cf0['suggestion'])['filter'](_0x13e948=>{const _0xe7ffbd=_0x28c0f1['_getAttributeKey'](_0x13e948);return _0x303c23['includes'](_0xe7ffbd);});if(_0x78eb60['length']){for(const _0x1f33c4 of _0x78eb60)_0x124860['removeMarker'](_0x1f33c4['getFirstMarker']());_0x34539f=!0x0;}}return _0x34539f;}['assureChains'](_0x5cbf8b){if(_0x5cbf8b['batch']['isUndo']||!_0x5cbf8b['batch']['isLocal'])return!0x1;const _0x553daa=this['editor']['plugins']['get']('TrackChangesEditing');let _0x2b3694=!0x1;const _0x441dde=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x3a5a4d of _0x553daa['getSuggestions']({'skipNotAttached':!0x0})){const _0x77624b=_0x553daa['_findSuggestions'](_0x3a5a4d['getFirstRange'](),'attribute')['map'](_0x27f237=>_0x27f237['suggestion'])['filter'](_0x56daf1=>_0x56daf1['data']&&_0x441dde['includes'](_0x56daf1['data']['key']));if(!_0x77624b['length'])continue;const _0x2823a3=_0x77624b[0x0]['head']['attributes']['groupId'];if(!_0x77624b['every'](_0xb31893=>_0xb31893['attributes']['groupId']===_0x2823a3)){for(const _0x4c2808 of _0x77624b)_0x595fa4(_0x4c2808,_0x2823a3)&&(_0x2b3694=!0x0);}}return _0x2b3694;function _0x280c23(_0x580329,_0x345d2c){for(const _0x45e0e1 of _0x553daa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3bb312=>'attribute'==_0x3bb312['type']&&_0x3bb312['attributes']['groupId']==_0x580329))_0x45e0e1['setAttribute']('groupId',_0x345d2c);}function _0x595fa4(_0x3e1f37,_0x2967ab){let _0x2af8a8=_0x3e1f37['head'],_0x3c4454=!0x1;for(;_0x2af8a8;)_0x2af8a8['attributes']['groupId']!=_0x2967ab&&(_0x280c23(_0x2af8a8['attributes']['groupId'],_0x2967ab),_0x2af8a8['setAttribute']('groupId',_0x2967ab),_0x3c4454=!0x0),_0x2af8a8=_0x2af8a8['next'];return _0x3c4454;}}['_supportLegacySuggestions'](){const _0x241abf=this['editor'],_0x2d859c=_0x241abf['locale'],_0x42481a=_0x241abf['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x42481a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x416f5b,_0x28996b){const _0x3691ef=[];for(let _0x4be5dc of _0x416f5b)_0x4be5dc['start']['nodeAfter']===_0x4be5dc['end']['parent']&&(_0x4be5dc=_0x241abf['model']['createRange'](_0x241abf['model']['createPositionAt'](_0x4be5dc['start']['nodeAfter'],0x0))),_0x3691ef['push'](_0x4be5dc);_0x241abf['model']['change'](_0x18168e=>{const _0x3b2055=_0x241abf['model']['document']['selection'],_0x54d48f=Array['from'](_0x3b2055['getRanges']())['map'](_0x25630a=>_0x2c1830['fromRange'](_0x25630a));_0x18168e['setSelection'](_0x3691ef),_0x241abf['commands']['get'](_0x28996b['commandName'])['refresh'](),_0x28996b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x241abf['execute'](_0x28996b['commandName'],..._0x28996b['commandParams']),_0x18168e['setSelection'](_0x54d48f);for(const _0x17f40b of _0x54d48f)_0x17f40b['detach']();});}),_0x42481a['descriptionFactory']['registerElementLabel'](function(_0x5715a4){const _0x4a14ea=!_0x241abf['model']['schema']['isObject'](_0x5715a4),_0x592ee1=_0x5715a4['previousSibling'],_0x5a022d=_0x5715a4['nextSibling'],_0x244f0f=_0x5715a4['getAttribute']('listItemId'),_0x2cf60b=!_0x592ee1||_0x592ee1['getAttribute']('listItemId')!==_0x244f0f,_0x4c174a=!_0x5a022d||_0x5a022d['getAttribute']('listItemId')!==_0x244f0f;return _0x4a14ea&&Boolean(_0x244f0f)&&_0x2cf60b&&_0x4c174a;},_0x6b181=>o(_0x2d859c,'ELEMENT_LIST_ITEM',_0x6b181));}['_registerLegacyDescription'](){const _0x161f6c=this['editor'],_0xcb100f=_0x161f6c['locale'];function _0x3b357a(_0x244015){const _0x384145=_0x161f6c['commands']['get']('bulletedList')['value'],_0x3dcca7=_0x161f6c['commands']['get']('numberedList')['value'];return'numberedList'===_0x244015?_0x384145:_0x3dcca7;}_0x161f6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4df5de){if('formatBlock'!=_0x4df5de['type'])return;const {data:_0x338849}=_0x4df5de;if(!_0x338849)return;let _0xe8afdd,_0x4e43c6,_0x3a7067,_0x5cdd7c;switch(_0x338849['commandName']){case'bulletedList':_0x3a7067=_0x338849['commandParams'][0x0]['forceValue'],_0x5cdd7c=_0x3b357a(_0x338849['commandName']),_0xe8afdd=_0x3a7067?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5cdd7c&&_0x161f6c['config']['get']('list.multiBlock')||(_0xe8afdd='*Change\x20to:*\x20%0'),_0x4e43c6={'type':'format','content':o(_0xcb100f,_0xe8afdd,o(_0xcb100f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3a7067=_0x338849['commandParams'][0x0]['forceValue'],_0x5cdd7c=_0x3b357a(_0x338849['commandName']),_0xe8afdd=_0x3a7067?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5cdd7c&&_0x161f6c['config']['get']('list.multiBlock')||(_0xe8afdd='*Change\x20to:*\x20%0'),_0x4e43c6={'type':'format','content':o(_0xcb100f,_0xe8afdd,o(_0xcb100f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xe8afdd='*Indent:*\x20%0',_0x4e43c6={'type':'format','content':o(_0xcb100f,_0xe8afdd,o(_0xcb100f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xe8afdd=function(_0x245e3c){const _0xa9bdb8=_0x245e3c['getFirstRange']();let _0x54e0eb=_0xa9bdb8['start']['nodeAfter'];for(;_0x54e0eb&&_0xa9bdb8['containsItem'](_0x54e0eb);){if(_0x54e0eb['getAttribute']('listIndent')>0x0)return!0x1;_0x54e0eb=_0x54e0eb['nextSibling'];}return!0x0;}(_0x4df5de)?o(_0xcb100f,'*Format:*\x20remove\x20from\x20%0',o(_0xcb100f,function(_0x1790ed){return'ELEMENT_'+_0x1790ed['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4df5de))):o(_0xcb100f,'*Outdent:*\x20%0',o(_0xcb100f,'ELEMENT_LIST_ITEM')),_0x4e43c6={'type':'format','content':_0xe8afdd};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x338849['multipleBlocks']&&(_0xe8afdd='*Merge:*\x20%0',_0x4e43c6={'type':'deletion','content':o(_0xcb100f,_0xe8afdd,o(_0xcb100f,'ELEMENT_LIST_ITEM'))});}return _0x4e43c6;});}}function le(_0x12a820){let _0x806bd0=_0x12a820['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x806bd0;){const _0xb97f55=_0x806bd0['getAttribute']('listItemId');if(!_0xb97f55)return!0x1;if(_0xb97f55==_0x12a820['data']['newValue'])return'newValue';if(_0xb97f55==_0x12a820['data']['oldValue'])return'oldValue';_0x806bd0=_0x806bd0['previousSibling'];}return!0x1;}class ue extends _0xb023a3{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3fcdda=this['editor']['config']['get']('list.properties'),_0x413b6f=this['editor']['plugins']['get']('TrackChangesEditing');_0x3fcdda['styles']&&(_0x413b6f['enableDefaultAttributesIntegration']('listStyle'),_0x413b6f['registerBlockAttribute']('listStyle')),_0x3fcdda['reversed']&&(_0x413b6f['enableDefaultAttributesIntegration']('listReversed'),_0x413b6f['registerBlockAttribute']('listReversed')),_0x3fcdda['startIndex']&&(_0x413b6f['enableDefaultAttributesIntegration']('listStart'),_0x413b6f['registerBlockAttribute']('listStart'));const _0x3abda7={'type':'format','content':''};_0x413b6f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5c78b6=this['editor']['locale'];_0x413b6f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5c78b6,'FORMAT_LIST_REVERSED')),_0x413b6f['descriptionFactory']['registerDescriptionCallback'](_0x19e1a3=>{const {data:_0x5db40a}=_0x19e1a3;if(_0x5db40a&&'listReversed'==_0x5db40a['key'])return null==_0x5db40a['newValue']||0x0==_0x5db40a['newValue']&&null==_0x5db40a['oldValue']?_0x3abda7:void 0x0;}),_0x413b6f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5c78b6,'FORMAT_LIST_START')),_0x413b6f['descriptionFactory']['registerDescriptionCallback'](_0x2cfd4f=>{const {data:_0x338479}=_0x2cfd4f;if(_0x338479&&'listStart'==_0x338479['key'])return null==_0x338479['newValue']||0x1==_0x338479['newValue']&&null==_0x338479['oldValue']?_0x3abda7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x142fae=>{if(_0x142fae['batch']['isUndo'])return!0x1;let _0x1543b1=!0x1;const _0x6c801d=_0x413b6f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x126c93=>{const _0x42cdf2=_0x413b6f['_getAttributeKey'](_0x126c93);return'listStart'==_0x42cdf2||'listReversed'==_0x42cdf2;});for(const _0x5e08eb of _0x6c801d){const _0x3fdaec=_0x5e08eb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3fdaec||'customNumbered'==_0x3fdaec)continue;_0x413b6f['_findSuggestions'](_0x5e08eb['getFirstRange'](),'attribute')['find'](_0x23d466=>'listType'==_0x413b6f['_getAttributeKey'](_0x23d466['suggestion']))||(_0x142fae['removeMarker'](_0x5e08eb['getFirstMarker']()),_0x1543b1=!0x0);}return _0x1543b1;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x248551){const _0x530f78=this['editor']['locale'],{data:_0x42ecdb}=_0x248551,_0x2c6122={'type':'format','content':''};if(!_0x42ecdb||'listStyle'!=_0x42ecdb['key'])return;if(!_0x42ecdb['oldValue'])return'default'==_0x42ecdb['newValue']?_0x2c6122:{'type':'format','content':''+o(_0x530f78,'*Set\x20format:*\x20%0',o(_0x530f78,this['_getTranslationKeyForListStyle'](_0x42ecdb['newValue'])))};if(!_0x42ecdb['newValue']){if('default'==_0x42ecdb['oldValue'])return _0x2c6122;let _0xc4e049=_0x248551['head'];for(;_0xc4e049;){if(_0xc4e049['data']&&'listType'==_0xc4e049['data']['key']&&_0xc4e049['data']['newValue'])return _0x2c6122;_0xc4e049=_0xc4e049['next'];}return{'type':'format','content':''+o(_0x530f78,'*Remove\x20format:*\x20%0',o(_0x530f78,this['_getTranslationKeyForListStyle'](_0x42ecdb['oldValue'])))};}if('default'!=_0x42ecdb['newValue'])return{'type':'format','content':''+o(_0x530f78,'*Set\x20format:*\x20%0',o(_0x530f78,this['_getTranslationKeyForListStyle'](_0x42ecdb['newValue'])))};let _0x54bd37=_0x248551['head'];for(;_0x54bd37;){if(_0x54bd37['data']&&'listType'==_0x54bd37['data']['key']&&_0x54bd37['data']['newValue']&&_0x54bd37['data']['oldValue'])return _0x2c6122;_0x54bd37=_0x54bd37['next'];}return{'type':'format','content':o(_0x530f78,'*Set\x20format:*\x20%0',o(_0x530f78,'ELEMENT_'+_0x248551['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3c21d7=this['editor'],_0x2e23e5=_0x3c21d7['locale'];_0x3c21d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47ad0a=>{if('formatBlock'!=_0x47ad0a['type'])return;const {data:_0x202f9e}=_0x47ad0a;if(!_0x202f9e)return;let _0x2cd48a,_0x13416f;switch(_0x202f9e['commandName']){case'listStyle':_0x2cd48a='*Change\x20to:*\x20%0',_0x13416f={'type':'format','content':o(_0x2e23e5,_0x2cd48a,o(_0x2e23e5,this['_getTranslationKeyForListStyle'](_0x202f9e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2cd48a=_0x202f9e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x13416f={'type':'format','content':o(_0x2e23e5,_0x2cd48a)};break;case'listStart':_0x2cd48a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x13416f={'type':'format','content':o(_0x2e23e5,_0x2cd48a,_0x202f9e['commandParams'][0x0]['startIndex'])};}return _0x13416f;});}['_getTranslationKeyForListStyle'](_0x2481ca){return'ELEMENT_'+function(_0xf2c4c7){if(pe['includes'](_0xf2c4c7))return'bulleted';if(ye['includes'](_0xf2c4c7))return'numbered';return null;}(_0x2481ca)['toUpperCase']()+'_LIST_'+_0x2481ca['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0xb023a3{static get['requires'](){return[_0x42c567];}['init'](){const _0x119610=this['editor'],_0x10e48b=_0x119610['plugins']['get']('TrackChangesEditing'),_0x589205=_0x119610['commands']['get']('enter');_0x10e48b['enableCommand']('enter',()=>{_0x119610['model']['change'](_0x26305c=>{const _0x1de98f=_0x119610['model']['document']['selection'],_0x3f904b=_0x1de98f['getFirstPosition'](),_0x39af51=_0x2c1830['fromRange'](_0x1de98f['getFirstRange']());if(_0x589205['enterBlock'](_0x26305c)){const _0x3c70bd=_0x119610['model']['createPositionAt'](_0x3f904b['parent']['nextSibling'],0x0),_0x51e10a=_0x26305c['createRange'](_0x3f904b,_0x3c70bd);_0x10e48b['markInsertion'](_0x51e10a);}else _0x26305c['setSelection'](_0x26305c['createRange'](_0x39af51['end']));_0x39af51['detach'](),_0x589205['fire']('afterExecute',{'writer':_0x26305c});});}),_0x119610['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x119610,'split'),{'priority':'high'}),_0x119610['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x20880a,_0x248c17,_0x2c8b07)=>{const _0x1374ec=_0x2c8b07['mapper']['markerNameToElements'](_0x248c17['markerName']);if(_0x1374ec){for(const _0x5b6557 of _0x1374ec)_0x5b6557['hasClass']('ck-suggestion-marker-split')&&(_0x2c8b07['mapper']['unbindElementFromMarkerName'](_0x5b6557,_0x248c17['markerName']),_0x2c8b07['writer']['remove'](_0x5b6557));}},{'priority':'high'}),_0x119610['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1b2522,_0x54c9d8,_0x145d2f)=>{_0x145d2f['options']['showSuggestionHighlights']&&_e(_0x119610,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1b2522,_0x54c9d8,_0x145d2f);},{'priority':'high'});}}class J extends _0xb023a3{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x19a8a4=this['editor']['plugins']['get']('TrackChangesEditing');_0x19a8a4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x19a8a4['enableCommand']('findNext'),_0x19a8a4['enableCommand']('findPrevious'),_0x19a8a4['enableCommand']('replace'),_0x19a8a4['enableCommand']('replaceAll');}['handleFindCommand'](_0x2f1c95,_0x4b10ec,_0x3e24bb={}){const _0x399fc8=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2f1c95(_0x464d7d=>('string'==typeof _0x4b10ec?_0x399fc8['findByTextCallback'](_0x4b10ec,_0x3e24bb):_0x4b10ec)(_0x464d7d)['filter'](_0x17b366=>!0x1===this['_isInDeletionRange'](_0x17b366,_0x464d7d['item'])),_0x3e24bb);}['_isInDeletionRange'](_0x3ec4cc,_0x4fc64e){const _0x2f3da8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4fc64e,_0x3ec4cc['start']),this['editor']['model']['createPositionAt'](_0x4fc64e,_0x3ec4cc['end']));for(const _0x36800e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2f3da8['getIntersection'](_0x36800e['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0xb023a3{['afterInit'](){const _0x4f3b05=this['editor']['locale'],_0x41dc23=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x44c09b,commandName:_0x265447}of ro)this['editor']['plugins']['has'](_0x44c09b)&&(_0x41dc23['enableDefaultAttributesIntegration'](_0x265447),_0x41dc23['registerInlineAttribute'](_0x265447));_0x4f3b05['t'],_0x41dc23['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4f3b05,'FORMAT_FONT_SIZE')),_0x41dc23['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4f3b05,'FORMAT_FONT_FAMILY')),_0x41dc23['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4f3b05,'FORMAT_FONT_COLOR')),_0x41dc23['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4f3b05,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6da1c9=this['editor'],_0x233ccd=_0x6da1c9['locale'];_0x6da1c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38672f=>{const _0x10e221=_0x233ccd['t'];if('formatInline'!=_0x38672f['type'])return;const {data:_0x410e1e}=_0x38672f;if(null!=_0x410e1e){if('fontSize'==_0x410e1e['commandName']){const _0xb5762f=_0x410e1e['commandParams'][0x0]['value'];if(_0xb5762f){const _0x239057=_0x10e221(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x15cc7b=>_0x15cc7b['model']==_0xb5762f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x233ccd,'*Set\x20font\x20size:*\x20%0',_0x239057)};}return{'type':'format','content':o(_0x233ccd,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x410e1e['commandName']){const _0x41de83=_0x410e1e['commandParams'][0x0]['value'];return _0x41de83?{'type':'format','content':o(_0x233ccd,'*Set\x20font\x20family:*\x20%0',_0x41de83)}:{'type':'format','content':o(_0x233ccd,'*Reset\x20font\x20family*')};}if('fontColor'==_0x410e1e['commandName']){const _0x55e4da=_0x410e1e['commandParams'][0x0]['value'];if(_0x55e4da){const _0x1116d5=_0x189f44(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5ecab2=>_0x5ecab2['model']==_0x55e4da);let _0x4a61fa=_0x55e4da,_0x507b83='';return _0x1116d5&&(_0x4a61fa=_0x1116d5['label'],_0x507b83=_0x10e221(_0x4a61fa)['toLowerCase']()),{'type':'format','content':o(_0x233ccd,'*Set\x20font\x20color:*\x20%0',_0x507b83)['trim'](),'color':{'value':_0x55e4da,'title':_0x507b83||_0x4a61fa}};}return{'type':'format','content':o(_0x233ccd,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x410e1e['commandName']){const _0x3e789c=_0x410e1e['commandParams'][0x0]['value'];if(_0x3e789c){const _0x33746b=_0x189f44(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5c20d7=>_0x5c20d7['model']==_0x3e789c);let _0x498d2c=_0x3e789c,_0xc47e35='';return _0x33746b&&(_0x498d2c=_0x33746b['label'],_0xc47e35=_0x10e221(_0x498d2c)['toLowerCase']()),{'type':'format','content':o(_0x233ccd,'*Set\x20font\x20background\x20color:*\x20%0',_0xc47e35)['trim'](),'color':{'value':_0x3e789c,'title':_0xc47e35||_0x498d2c}};}return{'type':'format','content':o(_0x233ccd,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0xb023a3{['afterInit'](){const _0x515772=this['editor'],_0xd02a5b=_0x515772['plugins']['get']('TrackChangesEditing'),_0x443061=_0x515772['commands']['get']('copyFormat'),_0x114a4e=_0x515772['commands']['get']('pasteFormat');_0x443061&&_0x114a4e&&(_0xd02a5b['enableDefaultAttributesIntegration']('pasteFormat'),_0xd02a5b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xd9ebac=this['editor'],_0x13a49d=_0xd9ebac['locale'];_0xd9ebac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x387c77=>{if('formatBlock'!=_0x387c77['type']&&'formatInline'!=_0x387c77['type'])return;const {data:_0x2c2cdb}=_0x387c77;if(_0x2c2cdb&&'pasteFormat'===_0x2c2cdb['commandName']){const _0x16d9e3=[],_0x39de4d=_0x2c2cdb['commandParams'][0x0];for(const [_0x44991d,_0x992f22]of Object['entries'](_0x39de4d))_0x16d9e3['push'](so(_0xd9ebac,_0x44991d,_0x992f22));return _0x16d9e3['length']?{'type':'format','content':o(_0x13a49d,'*Set\x20format\x20to:*\x20%0',_0x16d9e3['join'](',\x20'))}:{'type':'format','content':o(_0x13a49d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x381e02,_0x17f093,_0xe50e50){const _0x2c117e=_0x381e02['locale']['t'],_0x2dddad=_0x17f093['split'](/(?=[A-Z])/)['join']('\x20'),_0x1447e7=_0x2c117e(_0x2dddad['charAt'](0x0)['toUpperCase']()+_0x2dddad['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xe50e50)return _0x1447e7;if('fontColor'===_0x17f093||'fontBackgroundColor'===_0x17f093){const _0x24897b=_0x189f44(_0x381e02['config']['get']('fontColor.colors'))['find'](_0x504181=>_0x504181['model']==_0xe50e50);return _0x1447e7+'\x20('+(_0x24897b?_0x2c117e(_0x24897b['label'])['toLowerCase']():_0xe50e50)+')';}if('fontSize'===_0x17f093&&isNaN(parseFloat(_0xe50e50))){const _0x2a5ac4=_0x381e02['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x381e02['config']['get']('fontSize.options'))['find'](_0x10fff6=>_0x10fff6['model']==_0xe50e50);return _0x1447e7+'\x20('+(_0x2a5ac4?_0x2c117e(_0x2a5ac4['title'])['toLowerCase']():_0xe50e50)+')';}return _0x1447e7+'\x20('+_0xe50e50+')';}class Y extends _0xb023a3{['afterInit'](){const _0x2b4aaa=this['editor'];if(!_0x2b4aaa['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2b4aaa['config']['get']('heading.options');const _0x57bfeb=_0x2b4aaa['locale'],_0x25ed2a=_0x2b4aaa['plugins']['get']('TrackChangesEditing');_0x25ed2a['enableDefaultAttributesIntegration']('heading');for(const _0x7b9841 of this['_headingOptions'])'paragraph'!=_0x7b9841['model']&&_0x25ed2a['descriptionFactory']['registerElementLabel'](_0x7b9841['model'],_0x4f77b9=>{const _0x443a31=this['_getHeadingLevel'](_0x7b9841['model']);return null!==_0x443a31?_0x4bc45d(_0x4f77b9,_0x443a31):_0x447731(_0x4f77b9,_0x7b9841['title']);});function _0x4bc45d(_0x544605,_0x5c1e41){return o(_0x57bfeb,'ELEMENT_HEADING',[_0x544605,_0x5c1e41]);}function _0x447731(_0x14b8ed,_0x2a70f1){return o(_0x57bfeb,'ELEMENT_HEADING_CUSTOM',[_0x14b8ed,_0x2a70f1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5687b5=this['editor'],_0x35fe05=_0x5687b5['locale'];function _0x24d886(_0x43aa4,_0x7c0b62){return o(_0x35fe05,'ELEMENT_HEADING_CUSTOM',[_0x43aa4,_0x7c0b62]);}_0x5687b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25e779=>{if('formatBlock'!=_0x25e779['type'])return;const {data:_0x39bc94}=_0x25e779;if(_0x39bc94&&'heading'==_0x39bc94['commandName']){const _0xf02cf8=_0x39bc94['commandParams'][0x0]['value'],_0x427828=this['_getHeadingLevel'](_0xf02cf8);if(null!==_0x427828)return{'type':'format','content':o(_0x35fe05,'*Change\x20to:*\x20%0',(_0x167fa8=0x1,_0x5dc83a=_0x427828,o(_0x35fe05,'ELEMENT_HEADING',[_0x167fa8,_0x5dc83a])))};const _0x46f400=this['_headingOptions']['find'](_0x3e6959=>_0x3e6959['model']===_0xf02cf8)['title'];return{'type':'format','content':o(_0x35fe05,'*Change\x20to:*\x20%0',_0x24d886(0x1,_0x46f400))};}var _0x167fa8,_0x5dc83a;});}['_getHeadingLevel'](_0x273814){var _0x1b7914,_0x258993;const _0x38342c=_0x273814['match'](/^heading(\d+)/);if(_0x38342c)return _0x38342c[0x1];const _0x5cf149=null===(_0x1b7914=this['_headingOptions'])||void 0x0===_0x1b7914?void 0x0:_0x1b7914['find'](_0x2fd916=>_0x2fd916['model']==_0x273814);if(_0x5cf149&&_0x5cf149['view']){const _0x5d6ab9=_0x5cf149['view'],_0x4ce677=(null!==(_0x258993=_0x5d6ab9['name'])&&void 0x0!==_0x258993?_0x258993:_0x5d6ab9)['match'](/^h(\d+)/);if(_0x4ce677)return _0x4ce677[0x1];}return null;}}class Z extends _0xb023a3{['afterInit'](){const _0x599030=this['editor'];if(!_0x599030['plugins']['has']('HighlightEditing'))return;const _0x5f544c=_0x599030['plugins']['get']('TrackChangesEditing'),_0x5ac29b=_0x599030['locale'];_0x5f544c['enableDefaultAttributesIntegration']('highlight'),_0x5f544c['registerInlineAttribute']('highlight'),_0x5f544c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5ac29b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x572c86=this['editor'],_0x1e0599=_0x572c86['locale'];_0x572c86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e77ad=>{if('formatInline'!=_0x2e77ad['type'])return;const {data:_0x2bf36e}=_0x2e77ad;if(_0x2bf36e&&'highlight'==_0x2bf36e['commandName']){const _0x2b6a3d=_0x1e0599['t'],_0x490ecf=_0x2bf36e['commandParams'][0x0]['value'];if(_0x490ecf){const _0x17f820=_0x572c86['config']['get']('highlight.options')['find'](_0x170c35=>_0x170c35['model']==_0x490ecf),_0x58cb5e=_0x2b6a3d(_0x17f820['title'])['toLowerCase']();return{'type':'format','content':o(_0x1e0599,'*Set\x20highlight:*\x20%0',_0x58cb5e),'color':{'value':_0x17f820['color'],'title':_0x17f820['title']}};}return{'type':'format','content':o(_0x1e0599,'*Remove\x20highlight*',o(_0x1e0599,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0xb023a3{['afterInit'](){const _0x21db56=this['editor'];if(!_0x21db56['plugins']['has']('HorizontalLineEditing'))return;_0x21db56['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1e6e96=_0x21db56['plugins']['get']('TrackChangesEditing'),_0xb34722=_0x21db56['locale'];_0x1e6e96['descriptionFactory']['registerElementLabel']('horizontalLine',_0x447aeb=>o(_0xb34722,'ELEMENT_HORIZONTAL_LINE',_0x447aeb)),_0x21db56['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x8c89cc,{writer:_0x21a464,options:_0x442f8c})=>{if(!_0x442f8c['showSuggestionHighlights'])return null;const _0x4c8122=_0x21a464['createContainerElement']('div'),_0x25e518=_0x21a464['createEmptyElement']('hr');return _0x21a464['addClass']('ck-horizontal-line',_0x4c8122),_0x21a464['insert'](_0x21a464['createPositionAt'](_0x4c8122,0x0),_0x25e518),_0x4c8122;},'converterPriority':'high'});}}class et extends _0xb023a3{['afterInit'](){const _0x90360d=this['editor'];if(!_0x90360d['plugins']['has']('HtmlEmbed'))return;const _0xe4ae5f=_0x90360d['plugins']['get']('TrackChangesEditing'),_0x353f4d=_0x90360d['locale'];_0xe4ae5f['descriptionFactory']['registerElementLabel']('rawHtml',_0x1770cb=>o(_0x353f4d,'ELEMENT_HTML_EMBED',_0x1770cb)),_0xe4ae5f['enableDefaultAttributesIntegration']('htmlEmbed'),_0xe4ae5f['registerBlockAttribute']('value'),_0xe4ae5f['descriptionFactory']['registerDescriptionCallback'](_0xa16d6a=>{if('attribute'!=_0xa16d6a['type'])return;const {data:_0x2e1692}=_0xa16d6a;if(_0x2e1692&&'value'==_0x2e1692['key']&&_0xa16d6a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4992b3=o(_0x353f4d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x353f4d,'*Change\x20%0\x20content*',_0x4992b3)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58021c=this['editor'],_0x461c14=_0x58021c['locale'];_0x58021c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bed01=>{if('formatBlock'!=_0x4bed01['type'])return;const {data:_0x4bfa74}=_0x4bed01;if(_0x4bfa74&&'htmlEmbed'==_0x4bfa74['commandName']){const _0x163022=o(_0x461c14,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x461c14,'*Change\x20%0\x20content*',_0x163022)};}});}}class it extends _0xb023a3{['afterInit'](){const _0x4e9078=this['editor'];if(!_0x4e9078['plugins']['has']('ImageEditing'))return;const _0x2a7ec2=_0x4e9078['plugins']['get']('TrackChangesEditing'),_0xb81f20=_0x4e9078['plugins']['get']('ImageUtils'),_0x1a9e3a=_0x4e9078['locale'];_0x2a7ec2['enableCommand']('insertImage'),_0x2a7ec2['descriptionFactory']['registerElementLabel']('imageBlock',_0x5b9e47=>o(_0x1a9e3a,'ELEMENT_IMAGE',_0x5b9e47)),_0x2a7ec2['descriptionFactory']['registerElementLabel']('imageInline',_0x43f421=>o(_0x1a9e3a,'ELEMENT_INLINE_IMAGE',_0x43f421)),_0x2a7ec2['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1a9e3a,'ELEMENT_CAPTION')),_0x4e9078['plugins']['has']('ImageUploadEditing')&&_0x2a7ec2['enableCommand']('uploadImage'),_0x4e9078['plugins']['has']('ImageBlockEditing')&&_0x4e9078['plugins']['has']('ImageInlineEditing')&&(_0x2a7ec2['enableCommand']('imageTypeInline',(_0x133831,_0x346980)=>{const _0x31b2d3=_0xb81f20['getClosestSelectedImageElement'](_0x4e9078['model']['document']['selection']);_0x4e9078['model']['change'](()=>{_0x2a7ec2['markBlockFormat'](_0x31b2d3,{'commandName':'imageTypeInline','commandParams':[_0x346980]},[],'convertBlockImageToInline');});}),_0x2a7ec2['enableCommand']('imageTypeBlock',(_0x3c0cb8,_0x180515)=>{_0x4e9078['model']['change'](_0x52e738=>{let _0x2b03c0=_0xb81f20['getClosestSelectedImageElement'](_0x4e9078['model']['document']['selection']),_0x9c93d3=_0x52e738['createRangeOn'](_0x2b03c0);const _0x5da54d=_0xc82fc5['fromPosition'](_0x9c93d3['start'],'toPrevious'),_0x2cccd4=_0xc82fc5['fromPosition'](_0x9c93d3['end'],'toNext');_0x2a7ec2['forceDefaultExecution'](()=>_0x3c0cb8(_0x180515)),_0x2b03c0=_0xb81f20['getClosestSelectedImageElement'](_0x4e9078['model']['document']['selection']),_0x9c93d3=_0x52e738['createRangeOn'](_0x2b03c0);const _0x300dbe=_0x52e738['createRange'](_0x5da54d,_0x2cccd4);_0x5da54d['detach'](),_0x2cccd4['detach'](),_0x2a7ec2['markBlockFormat'](_0x2b03c0,{'commandName':'imageTypeInline','commandParams':[_0x180515]},[],'convertInlineImageToBlock'),_0x300dbe['start']['isBefore'](_0x9c93d3['start'])&&_0x2a7ec2['markInsertion'](_0x52e738['createRange'](_0x300dbe['start'],_0x9c93d3['start']),'convertInlineImageToBlock'),_0x9c93d3['end']['isBefore'](_0x300dbe['end'])&&_0x2a7ec2['markInsertion'](_0x52e738['createRange'](_0x9c93d3['end'],_0x300dbe['end']),'convertInlineImageToBlock');});}),_0x2a7ec2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2a7ec2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2a7ec2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2a7ec2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2a7ec2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2a7ec2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x8f56db])=>{const _0xa2fe3d=_0x2a7ec2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1e9a51=_0x8f56db['start'],_0x4f0c2d=_0x8f56db['end'];const _0xf2156e=_0x4e9078['model']['schema']['getNearestSelectionRange'](_0x1e9a51,'backward'),_0xf469f1=_0x4e9078['model']['schema']['getNearestSelectionRange'](_0x4f0c2d,'forward');_0xf2156e['isCollapsed']&&(_0x1e9a51=_0xf2156e['start']),_0xf469f1['isCollapsed']&&(_0x4f0c2d=_0xf469f1['end']),_0xa2fe3d([_0x4e9078['model']['createRange'](_0x1e9a51,_0x4f0c2d)]);}),_0x2a7ec2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1fcb8e),_0x2a7ec2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1fcb8e)),_0x4e9078['plugins']['has']('ImageCaptionEditing')&&(_0x2a7ec2['enableCommand']('toggleImageCaption',(_0x5b78dd,_0x561254)=>{const _0x563cba=_0x4e9078['plugins']['get']('ImageCaptionUtils');let _0x155b25=_0xb81f20['getClosestSelectedImageElement'](_0x4e9078['model']['document']['selection']),_0x312eed=_0x563cba['getCaptionFromImageModelElement'](_0x155b25);_0x4e9078['model']['change'](()=>{if(_0x312eed)return void _0x2a7ec2['markDeletion'](_0x4e9078['model']['createRangeOn'](_0x312eed));const _0x542652=_0xb81f20['isBlockImage'](_0x155b25);_0x5b78dd(_0x561254),_0x155b25=_0xb81f20['getClosestSelectedImageElement'](_0x4e9078['model']['document']['selection']),_0x312eed=_0x563cba['getCaptionFromImageModelElement'](_0x155b25),_0x2a7ec2['markInsertion'](_0x4e9078['model']['createRangeOn'](_0x312eed),_0x542652?null:'imageCaption');});}),_0x2a7ec2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1fcb8e));const _0x22641c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x192ad1(_0x4517c8,_0x215bf8){const _0x41e11a=_0x22641c['findIndex'](({type:_0x20cd83,subType:_0x464e77})=>_0x4517c8['type']==_0x20cd83&&_0x4517c8['subType']==_0x464e77),_0x2aba56=_0x22641c['findIndex'](({type:_0x1c9ef7,subType:_0x1f4370})=>_0x215bf8['type']==_0x1c9ef7&&_0x215bf8['subType']==_0x1f4370);if(_0x41e11a<0x0||_0x2aba56<0x0)return!0x1;const _0xdf7fc0=_0x4517c8['getFirstRange'](),_0x59bfd7=_0x215bf8['getFirstRange']();if((0x0==_0x41e11a||0x1==_0x41e11a)&&0x2==_0x2aba56&&_0xdf7fc0['isIntersecting'](_0x59bfd7))return!0x0;if(0x2==_0x41e11a&&0x3==_0x2aba56){const _0x3eba72=_0x2a7ec2['_findSuggestions'](_0xdf7fc0,'insertion')['filter'](({suggestion:_0x408f0a,meta:_0x555c98})=>_0x555c98['isOwn']&&'convertInlineImageToBlock'==_0x408f0a['subType']);if(_0x3eba72['length']>0x1&&_0x59bfd7['end']['isEqual'](_0xdf7fc0['start']))return!0x0;if(0x1==_0x3eba72['length']&&(_0xdf7fc0['start']['isEqual'](_0x59bfd7['end'])||_0xdf7fc0['end']['isEqual'](_0x59bfd7['start'])))return!0x0;}if(0x3==_0x41e11a&&0x3==_0x2aba56&&_0xdf7fc0['start']['isBefore'](_0x59bfd7['start'])){const _0x266ff3=_0xdf7fc0['end']['nodeAfter'],_0x209376=_0x59bfd7['start']['nodeBefore'];return _0xb81f20['isBlockImage'](_0x266ff3)&&_0x266ff3===_0x209376;}return!0x1;}function _0x1fcb8e(_0x5a22b8,_0x5bf5cc){return _0x192ad1(_0x5a22b8,_0x5bf5cc)?[_0x5a22b8,_0x5bf5cc]:_0x192ad1(_0x5bf5cc,_0x5a22b8)?[_0x5bf5cc,_0x5a22b8]:null;}_0x4e9078['plugins']['has']('ImageResize')&&(_0x2a7ec2['enableDefaultAttributesIntegration']('resizeImage'),_0x2a7ec2['registerBlockAttribute']('resizedWidth'),_0x2a7ec2['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1a9e3a,'FORMAT_IMAGE_SIZE'))),_0x4e9078['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2a7ec2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2a7ec2['registerBlockAttribute']('alt')),_0x2a7ec2['descriptionFactory']['registerDescriptionCallback'](_0x168383=>{if(!!_0x22641c['find'](({type:_0x12d588,subType:_0x1777a6})=>_0x168383['type']==_0x12d588&&_0x168383['subType']==_0x1777a6))return _0x168383['previous']?{}:void 0x0;}),_0x2a7ec2['descriptionFactory']['registerDescriptionCallback'](_0x458673=>{if('insertion'==_0x458673['type']||'deletion'==_0x458673['type']){const _0x122529=_0x458673['getContainedElement']();if(_0x122529&&_0x122529['is']('element','caption'))return{'type':'insertion'==_0x458673['type']?'addObject':'removeObject','element':_0x122529,'quantity':0x1};}}),_0x2a7ec2['descriptionFactory']['registerDescriptionCallback'](_0x118776=>'formatBlock'==_0x118776['type']&&'convertInlineImageToBlock'==_0x118776['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x118776['type']&&'convertBlockImageToInline'==_0x118776['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2a7ec2['descriptionFactory']['registerDescriptionCallback'](_0x1c4d81=>{if('attribute'!=_0x1c4d81['type'])return;const {data:_0x1bd3f6}=_0x1c4d81;if(!_0x1bd3f6||'alt'!=_0x1bd3f6['key'])return;const _0x1cd962=_0x1bd3f6['newValue'];return _0x1cd962?{'type':'format','content':o(_0x1a9e3a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1cd962+'\x22')}:{'type':'format','content':o(_0x1a9e3a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5560b5=this['editor'],_0x5d1d9d=_0x5560b5['locale'];_0x5560b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3578f9=>{if('formatBlock'!=_0x3578f9['type']&&'formatInline'!=_0x3578f9['type'])return;const {data:_0x2fdf54}=_0x3578f9;if(_0x2fdf54){if('imageTextAlternative'==_0x2fdf54['commandName']){const _0x3127f4=_0x2fdf54['commandParams'][0x0]['newValue'];return _0x3127f4?{'type':'format','content':o(_0x5d1d9d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3127f4+'\x22')}:{'type':'format','content':o(_0x5d1d9d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2fdf54['commandName']){const _0x2e8a7b=_0x2fdf54['commandParams'][0x0]['width'];return _0x2e8a7b?{'type':'format','content':o(_0x5d1d9d,'*Set\x20image\x20width:*\x20%0',_0x2e8a7b)}:{'type':'format','content':o(_0x5d1d9d,'*Reset\x20image\x20width*')};}}});}}class st extends _0xb023a3{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4e8138=this['editor']['locale'],_0x3fec57=this['editor']['plugins']['get']('TrackChangesEditing');_0x3fec57['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3fec57['registerBlockAttribute']('src'),_0x3fec57['descriptionFactory']['registerDescriptionCallback'](_0x29993e=>{if('attribute'!=_0x29993e['type'])return;const {data:_0xb42a6}=_0x29993e;return _0xb42a6&&'src'==_0xb42a6['key']?_0xb42a6['newValue']&&_0xb42a6['oldValue']?{'type':'format','content':o(_0x4e8138,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2b9ac0=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b9ac0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2b9ac0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b9ac0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2b9ac0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x377725=this['editor'],_0x554469=_0x377725['locale'];_0x377725['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57f932=>{if('formatBlock'!=_0x57f932['type']&&'formatInline'!=_0x57f932['type'])return;const {data:_0x3bd9d5}=_0x57f932;if(!_0x3bd9d5||'replaceImageSource'!=_0x3bd9d5['commandName'])return;return{'type':'format','content':o(_0x554469,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0xb023a3{['afterInit'](){const _0x355a22=this['editor'];if(!_0x355a22['plugins']['has']('ImageStyleEditing'))return;const _0x301b72=_0x355a22['plugins']['get']('TrackChangesEditing'),_0xb455d0=_0x355a22['plugins']['get']('ImageUtils'),_0x4b17b3={};_0x301b72['enableCommand']('imageStyle',(_0x60ae9d,_0x5494fb)=>{const _0x3fc1b1=_0x355a22['plugins']['get']('Users')['me'],_0x10f296=_0x355a22['commands']['get']('imageStyle');let _0x5e35ac=_0xb455d0['getClosestSelectedImageElement'](_0x355a22['model']['document']['selection']),_0x332ce6=_0x355a22['model']['createRangeOn'](_0x5e35ac),_0x58a201=_0x10f296['value'];if(_0x58a201==_0x5494fb['value'])return;const _0x359a8a={'commandName':'imageStyle','commandParams':[_0x5494fb],'formatGroupId':_0x19ce93()};_0x355a22['model']['change'](()=>{if(_0x301b72['getSuggestions']()['filter'](_0x58fc13=>_0x58fc13['isInContent']&&_0x3fc1b1==_0x58fc13['author']&&('formatBlock'==_0x58fc13['type']||'formatInline'==_0x58fc13['type'])&&('imageStylePreApply'==_0x58fc13['subType']||'imageStylePostApply'==_0x58fc13['subType'])&&_0x58fc13['getFirstRange']()['isEqual'](_0x332ce6))['forEach'](_0x63078c=>_0x301b72['discardSuggestion'](_0x63078c['head'])),_0x5e35ac=_0xb455d0['getClosestSelectedImageElement'](_0x355a22['model']['document']['selection']),_0x332ce6=_0x355a22['model']['createRangeOn'](_0x5e35ac),_0x10f296['refresh'](),_0x355a22['commands']['get']('imageTypeInline')['refresh'](),_0x355a22['commands']['get']('imageTypeBlock')['refresh'](),_0x58a201=_0x10f296['value'],_0x58a201!=_0x5494fb['value'])return _0xb455d0['isInlineImage'](_0x5e35ac)&&_0x10f296['shouldConvertImageType'](_0x5494fb['value'],_0x5e35ac)?(_0x60ae9d({..._0x5494fb,'setImageSizes':!0x1}),_0x5e35ac=_0xb455d0['getClosestSelectedImageElement'](_0x355a22['model']['document']['selection']),void _0x301b72['markBlockFormat'](_0x5e35ac,{..._0x359a8a,'commandReversedParams':[{'value':_0x58a201||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xb455d0['isBlockImage'](_0x5e35ac)?_0x301b72['markBlockFormat'](_0x5e35ac,_0x359a8a,[],'imageStylePostApply'):_0x301b72['markInlineFormat'](_0x332ce6,_0x359a8a,'imageStylePostApply'));});});for(const _0x3e9d79 of _0x355a22['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4b17b3[_0x3e9d79['name']]=_0x3e9d79['title']['toLowerCase']();_0x301b72['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x301b72['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x301b72['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x301b72['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2942a3])=>{_0xb455d0['setImageNaturalSizeAttributes'](_0x2942a3['getContainedElement']());}),_0x301b72['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x31eba5,_0x651305)=>{_0x301b72['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x31eba5,{'commandName':_0x651305['commandName'],'commandParams':_0x651305['commandReversedParams']});}),_0x301b72['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x29ec14,_0x28d193){if(_0x4403f8(_0x29ec14,_0x28d193))return[_0x29ec14,_0x28d193];if(_0x4403f8(_0x28d193,_0x29ec14))return[_0x28d193,_0x29ec14];return null;});const _0x22156e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4403f8(_0x2f9125,_0x3de9de){const _0xa01aaf=_0x22156e['findIndex'](({type:_0x40e36f,subType:_0x498466})=>_0x2f9125['type']==_0x40e36f&&_0x2f9125['subType']==_0x498466),_0xca3b8c=_0x22156e['findIndex'](({type:_0x2a6200,subType:_0x11d347})=>_0x3de9de['type']==_0x2a6200&&_0x3de9de['subType']==_0x11d347);if(_0xa01aaf<0x0||_0xca3b8c<0x0)return!0x1;const _0x16320b=_0x2f9125['getFirstRange'](),_0x10de66=_0x3de9de['getFirstRange']();if((0x0==_0xa01aaf||0x1==_0xa01aaf)&&0x2==_0xca3b8c&&_0x16320b['isIntersecting'](_0x10de66))return!0x0;if(0x2==_0xa01aaf&&0x3==_0xca3b8c){const _0x1148aa=_0x301b72['_findSuggestions'](_0x16320b,'insertion')['filter'](({suggestion:_0x5cccab,meta:_0x75ecf3})=>_0x75ecf3['isOwn']&&'convertInlineImageToBlock'==_0x5cccab['subType']);if(_0x1148aa['length']>0x1&&_0x10de66['end']['isEqual'](_0x16320b['start']))return!0x0;if(0x1==_0x1148aa['length']&&(_0x16320b['start']['isEqual'](_0x10de66['end'])||_0x16320b['end']['isEqual'](_0x10de66['start'])))return!0x0;}if(0x3==_0xa01aaf&&0x3==_0xca3b8c&&_0x16320b['start']['isBefore'](_0x10de66['start'])){const _0xfaa1ca=_0x16320b['end']['nodeAfter'],_0x324882=_0x10de66['start']['nodeBefore'];return _0xb455d0['isBlockImage'](_0xfaa1ca)&&_0xfaa1ca===_0x324882;}return!0x1;}_0x355a22['model']['document']['registerPostFixer'](()=>{let _0x2d782b=!0x1;const _0x170785=Array['from'](_0x355a22['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4360c4,data:_0x519c96}of _0x170785){const {group:_0x3d830d,type:_0x508beb,subType:_0x4fa5a1,id:_0x530fd8}=_0x301b72['_splitMarkerName'](_0x4360c4);if('suggestion'==_0x3d830d&&_0x301b72['hasSuggestion'](_0x530fd8)){if('formatBlock'==_0x508beb&&('imageStylePreApply'==_0x4fa5a1||'imageStylePostApply'==_0x4fa5a1)){const _0xc4e927=_0x301b72['getSuggestion'](_0x530fd8);if(_0x519c96['newRange']){const _0x4c7910=_0xc4e927['getFirstRange']()['getContainedElement']();if(_0xb455d0['isBlockImage'](_0x4c7910))continue;_0x301b72['discardSuggestion'](_0xc4e927),_0x2d782b=!0x0;}}if('insertion'==_0x508beb&&'imageCaption'==_0x4fa5a1&&!_0x519c96['newRange']){const _0x121c32=_0x301b72['getSuggestion'](_0x530fd8);_0x121c32['next']&&_0x121c32['next']['isInContent']&&(_0x301b72['discardSuggestion'](_0x121c32['next']),_0x2d782b=!0x0);}}}return _0x2d782b;}),this['_registerLegacyDescription'](_0x4b17b3);}['_registerLegacyDescription'](_0x31afec){const _0x54780b=this['editor'],_0x28bdee=_0x54780b['locale'];_0x54780b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x133044=>{if('formatBlock'!=_0x133044['type']&&'formatInline'!=_0x133044['type'])return;const {data:_0x690a75}=_0x133044;if(!_0x690a75||'imageStyle'!=_0x690a75['commandName'])return;const _0x54860f=_0x690a75['commandParams'][0x0]['value'];return _0x2242e0('side'===_0x54860f?o(_0x28bdee,'FORMAT_SIDE_IMAGE'):_0x31afec[_0x54860f]||_0x54860f);function _0x2242e0(_0x36a63e){return{'type':'format','content':o(_0x28bdee,'*Format:*\x20%0',_0x36a63e)};}});}}class ot extends _0xb023a3{['afterInit'](){const _0x80805d=this['editor'],_0x55b786=_0x80805d['commands']['get']('importWord'),_0x1173ad=_0x80805d['commands']['get']('trackChanges');_0x55b786&&(_0x55b786['on']('execute',(_0x16601f,[,_0x3049c9])=>{this['_trackChangesValueDuringImport']=_0x1173ad['value'],_0x3049c9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x55b786,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x55b786,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1173ad['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x80805d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3bab40,_0x25ff6a){const {suggestions:_0xbda67c}=_0x25ff6a,_0x3b0856=this['editor']['commands']['get']('trackChanges'),_0x4c6455=_0x3b0856['value'];this['_trackChangesValueDuringImport']!==_0x4c6455&&(_0x3b0856['execute'](),this['_trackChangesExecuted']=!0x0),_0xbda67c&&_0xbda67c['forEach'](({id:_0x581062,type:_0x3732e0,author:_0x19d40a,created_at:_0x32e02c})=>{const _0x3af926={'id':_0x581062,'type':_0x3732e0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x19d40a,'createdAt':_0x32e02c?new Date(_0x32e02c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3af926);});}constructor(_0x45b658){super(_0x45b658),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0xb023a3{['afterInit'](){const _0x132923=this['editor'],_0x4008b7=_0x132923['plugins']['get']('TrackChangesEditing');if(_0x132923['plugins']['has']('IndentEditing')&&(_0x4008b7['enableCommand']('indent'),_0x4008b7['enableCommand']('outdent')),_0x132923['plugins']['has']('IndentBlock')){for(const _0x5783c9 of['indentBlock','outdentBlock'])_0x4008b7['enableDefaultAttributesIntegration'](_0x5783c9);}const _0xa6afae=_0x132923['locale'];_0x4008b7['registerBlockAttribute']('blockIndent'),_0x4008b7['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xa6afae,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fdce8=this['editor'],_0x35c886=_0x4fdce8['locale'],_0x468db1=_0x4fdce8['plugins']['get']('TrackChangesEditing');_0x468db1['descriptionFactory']['registerDescriptionCallback'](_0x6fcdff=>{if('formatBlock'!=_0x6fcdff['type'])return;const {data:_0x57a91a}=_0x6fcdff;if(!_0x57a91a)return;if('indentBlock'!=_0x57a91a['commandName']&&'outdentBlock'!=_0x57a91a['commandName'])return;const _0x32fbe1=_0x6fcdff['getItems']()[0x0],_0x266800=_0x468db1['descriptionFactory']['getItemLabel'](_0x32fbe1);return'indentBlock'==_0x57a91a['commandName']?{'type':'format','content':o(_0x35c886,'*Indent:*\x20%0',_0x266800)}:'outdentBlock'==_0x57a91a['commandName']?{'type':'format','content':o(_0x35c886,'*Outdent:*\x20%0',_0x266800)}:void 0x0;});}}class at extends _0xb023a3{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0xb023a3{['afterInit'](){const _0x3cf784=this['editor'];if(!_0x3cf784['plugins']['has']('LinkEditing'))return;const _0x551611=_0x3cf784['plugins']['get']('TrackChangesEditing'),_0x98f810=_0x3cf784['commands']['get']('link');_0x551611['enableDefaultAttributesIntegration']('link'),_0x551611['enableDefaultAttributesIntegration']('unlink'),_0x551611['registerInlineAttribute']('linkHref');for(const _0x532fdb of _0x98f810['manualDecorators'])_0x551611['registerInlineAttribute'](_0x532fdb['id']),_0x551611['descriptionFactory']['registerAttributeLabel'](_0x532fdb['id'],'link\x20('+_0x532fdb['label']['toLowerCase']()+')');_0x551611['descriptionFactory']['registerDescriptionCallback'](_0x78ccb8=>{if('attribute'!=_0x78ccb8['type'])return;const {data:_0x3bba41}=_0x78ccb8;if(!_0x3bba41||'linkHref'!=_0x3bba41['key'])return;const _0xe739fd=_0x3bba41['newValue'],_0x25f390=_0x3cf784['locale'];return{'type':'format','content':null==_0xe739fd?o(_0x25f390,'*Remove\x20link*'):o(_0x25f390,'*Set\x20link:*\x20%0','\x22'+_0xe739fd+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x254bc9=this['editor'],_0x28e534=_0x254bc9['locale'];_0x254bc9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x219984=>{if('formatInline'!=_0x219984['type'])return;const {data:_0x3dfd17}=_0x219984;if(_0x3dfd17){if('link'==_0x3dfd17['commandName']){const _0x3a619f=_0x3dfd17['commandParams'][0x0];return{'type':'format','content':o(_0x28e534,'*Set\x20link:*\x20%0','\x22'+_0x3a619f+'\x22')};}return'unlink'==_0x3dfd17['commandName']?{'type':'format','content':o(_0x28e534,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0xb023a3{['afterInit'](){const _0x187f3a=this['editor'],_0x31cb4c=_0x187f3a['locale'];if(!_0x187f3a['plugins']['has']('LegacyListEditing'))return;const _0x3e4150=_0x187f3a['plugins']['get']('TrackChangesEditing'),_0x5c5dbe=_0x187f3a['plugins']['has']('LegacyTodoListEditing');function _0x33651b(_0x2bc929){return()=>{const _0x59c97e=_0x187f3a['model']['document']['selection'],_0xaaf5b=_0x187f3a['commands']['get'](_0x2bc929);if(_0xaaf5b['value'])return void _0x187f3a['execute']('paragraph',{});const _0x2d9b0a=_0x2bc929['slice'](0x0,-0x4),_0xe84f31=function(_0x3d0ae4,_0x330353,_0x278ff4){let _0x4d8430=Array['from'](_0x3d0ae4)['filter'](_0x273f34=>function(_0x39d66a,_0x285c69){return _0x285c69['checkChild'](_0x39d66a['parent'],'listItem')&&!_0x285c69['isObject'](_0x39d66a);}(_0x273f34,_0x278ff4));_0x4d8430=_0x4d8430['filter'](_0xbe62c9=>!_0xbe62c9['is']('element','listItem')||_0xbe62c9['getAttribute']('listType')!=_0x330353);const _0x1840c4=new Set();for(const _0x30c971 of _0x4d8430)_0x30c971['is']('element','listItem')?_0x1840c4['add'](me(_0x30c971)):_0x1840c4['add'](_0x30c971);return Array['from'](_0x1840c4);}(_0x59c97e['getSelectedBlocks'](),_0x2d9b0a,_0x187f3a['model']['schema']);_0x187f3a['model']['change'](()=>{for(const _0x274c2a of _0xe84f31)_0x3e4150['markBlockFormat'](_0x274c2a,{'commandName':_0x2bc929,'commandParams':[{'forceValue':!_0xaaf5b['value']}],'formatGroupId':'blockName'},fe(_0x274c2a));});};}function _0x45c72c(_0x227483){return()=>{const _0x17d9d1=function(_0x1a9172){let _0x591b28=Array['from'](_0x1a9172);const _0x27977a=_0x591b28['findIndex'](_0x1d107=>'listItem'!=_0x1d107['name']);return _0x27977a>-0x1&&(_0x591b28=_0x591b28['slice'](0x0,_0x27977a)),_0x591b28;}(_0x187f3a['model']['document']['selection']['getSelectedBlocks']()),_0x1d194c=_0x187f3a['model']['createRange'](_0x187f3a['model']['createPositionAt'](_0x17d9d1[0x0],'before'),_0x187f3a['model']['createPositionAt'](_0x17d9d1[_0x17d9d1['length']-0x1],'end'));_0x187f3a['model']['change'](()=>{_0x3e4150['markBlockFormat'](_0x1d194c,{'commandName':_0x227483,'commandParams':[],'formatGroupId':'listIndent'},function(_0x16f532){const _0x31da79=new Set();for(const _0x252acd of _0x16f532){let _0x56a58e=_0x252acd['nextSibling'];for(;_0x56a58e&&_0x56a58e['getAttribute']('listIndent')>_0x252acd['getAttribute']('listIndent');)_0x31da79['add'](_0x56a58e),_0x56a58e=_0x56a58e['nextSibling'];}return Array['from'](_0x31da79);}(_0x17d9d1));});};}_0x3e4150['enableCommand']('numberedList',_0x33651b('numberedList')),_0x3e4150['enableCommand']('bulletedList',_0x33651b('bulletedList')),_0x5c5dbe&&_0x3e4150['enableCommand']('todoList',_0x33651b('todoList')),_0x3e4150['enableCommand']('indentList',_0x45c72c('indentList')),_0x3e4150['enableCommand']('outdentList',_0x45c72c('outdentList')),_0x5c5dbe&&_0x3e4150['enableCommand']('checkTodoList',()=>{const _0x1338cb=_0x187f3a['commands']['get']('checkTodoList'),_0x43214b=Array['from'](_0x1338cb['_selectedElements']);_0x43214b['filter'](_0x2866e7=>_0x2866e7['getAttribute']('todoListChecked')!=_0x1338cb['value']),_0x187f3a['model']['change'](()=>{for(const _0x1ff73c of _0x43214b)_0x3e4150['markBlockFormat'](_0x1ff73c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1338cb['value']}]});});}),_0x3e4150['descriptionFactory']['registerElementLabel']('listItem',_0x4606d7=>o(_0x31cb4c,'ELEMENT_LIST_ITEM',_0x4606d7)),_0x3e4150['descriptionFactory']['registerDescriptionCallback'](_0x37c626=>{if('formatBlock'!=_0x37c626['type']&&'formatInline'!=_0x37c626['type'])return;const {data:_0x273817}=_0x37c626;if(_0x273817){if('numberedList'==_0x273817['commandName']||'bulletedList'==_0x273817['commandName']||'todoList'==_0x273817['commandName'])switch(_0x273817['commandName']['replace']('List','')){case'bulleted':return _0x103cf1(o(_0x31cb4c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x103cf1(o(_0x31cb4c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x103cf1(o(_0x31cb4c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x273817['commandName'])return{'type':'format','content':o(_0x31cb4c,'*Indent:*\x20%0',o(_0x31cb4c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x273817['commandName'])return{'type':'format','content':o(_0x31cb4c,'*Outdent:*\x20%0',o(_0x31cb4c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x273817['commandName'])return _0x273817['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x31cb4c,'*Check\x20item*')}:{'type':'format','content':o(_0x31cb4c,'*Uncheck\x20item*')};}function _0x103cf1(_0x42de25){return{'type':'format','content':o(_0x31cb4c,'*Change\x20to:*\x20%0',_0x42de25)};}});}}function me(_0x45a506){const _0x54bbaf=_0x45a506['getAttribute']('listIndent');if(0x0==_0x54bbaf)return _0x45a506;let _0x2791c9=_0x45a506;for(;_0x45a506['previousSibling']&&_0x45a506['previousSibling']['is']('element','listItem');){const _0x15efa7=_0x45a506['previousSibling']['getAttribute']('listIndent');if(_0x15efa7==_0x54bbaf)_0x2791c9=_0x45a506['previousSibling'];else{if(_0x15efa7<_0x54bbaf)break;}_0x45a506=_0x45a506['previousSibling'];}return _0x2791c9;}function fe(_0x1f2eb5){const _0x3efd0a=[];if(_0x1f2eb5['is']('element','listItem')&&_0x1f2eb5['getAttribute']('listIndent')>0x0){let _0x56f211=_0x1f2eb5['nextSibling'];for(;_0x56f211&&'listItem'==_0x56f211['name']&&_0x56f211['getAttribute']('listIndent')==_0x1f2eb5['getAttribute']('listIndent');)_0x3efd0a['push'](_0x56f211),_0x56f211=_0x56f211['nextSibling'];}return _0x3efd0a;}class K extends _0xb023a3{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3eb285=this['editor']['config']['get']('list.properties'),_0x2f0646=this['editor']['plugins']['get']('TrackChangesEditing');_0x3eb285['styles']&&_0x2f0646['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3eb285['reversed']&&_0x2f0646['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3eb285['startIndex']&&_0x2f0646['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2f0646['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x46840c,_0x13ff97={}){const _0x39d91c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8298c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x39d91c['markMultiRangeBlockFormat'](_0x8298c,{'commandName':'listStyle','commandParams':[{'type':_0x13ff97['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2bb6a3,_0x487725={}){const _0x3f0833=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7bcfe4=this['_getSuggestionBlocks'](_0x11b33a=>_0x11b33a['is']('element','listItem')&&'numbered'===_0x11b33a['getAttribute']('listType'));if(_0x7bcfe4['length']<0x1)return;const _0x2d7935=_0x7bcfe4['map'](_0x187d88=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x187d88,'before'),this['editor']['model']['createPositionAt'](_0x187d88,0x0)));this['editor']['model']['change'](()=>{_0x3f0833['markMultiRangeBlockFormat'](_0x2d7935,{'commandName':'listReversed','commandParams':[{'reversed':_0x487725['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2c1bd6,_0x1957c3={}){const _0xf8aa3a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fe0b7=this['_getSuggestionBlocks'](_0x1309fa=>_0x1309fa['is']('element','listItem')&&'numbered'===_0x1309fa['getAttribute']('listType'));if(_0x2fe0b7['length']<0x1)return;const _0x1c1b0f=_0x2fe0b7['map'](_0x103754=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x103754,'before'),this['editor']['model']['createPositionAt'](_0x103754,0x0)));this['editor']['model']['change'](()=>{_0xf8aa3a['markMultiRangeBlockFormat'](_0x1c1b0f,{'commandName':'listStart','commandParams':[{'startIndex':_0x1957c3['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x47ae47){if('formatBlock'!=_0x47ae47['type']&&'formatInline'!=_0x47ae47['type'])return;const _0x1c248f=this['editor']['locale'],{data:_0x305f78}=_0x47ae47;if(!_0x305f78)return;let _0x4df68b,_0xe8e1f7;switch(_0x305f78['commandName']){case'listStyle':_0x4df68b='*Change\x20to:*\x20%0',_0xe8e1f7={'type':'format','content':o(_0x1c248f,_0x4df68b,o(_0x1c248f,this['_getTranslationKeyForListStyle'](_0x305f78['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4df68b=_0x305f78['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xe8e1f7={'type':'format','content':o(_0x1c248f,_0x4df68b)};break;case'listStart':_0x4df68b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xe8e1f7={'type':'format','content':o(_0x1c248f,_0x4df68b,_0x305f78['commandParams'][0x0]['startIndex'])};}return _0xe8e1f7;}['_getSuggestionBlocksForListStyle'](){var _0x2672d8,_0x3a392a,_0x1f6495,_0x11ad36;const _0x55eec1=this['editor']['plugins']['get']('LegacyListUtils');let _0x28acbc=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x2672d8=_0x28acbc[0x0])||void 0x0===_0x2672d8?void 0x0:_0x2672d8['is']('element','listItem'))&&_0x28acbc['unshift'](..._0x55eec1['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x3a392a=_0x28acbc[_0x28acbc['length']-0x1])||void 0x0===_0x3a392a?void 0x0:_0x3a392a['is']('element','listItem'))&&_0x28acbc['push'](..._0x55eec1['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x28acbc=[...new Set(_0x28acbc)],(null===(_0x11ad36=null===(_0x1f6495=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x1f6495?void 0x0:_0x1f6495['parent'])||void 0x0===_0x11ad36?void 0x0:_0x11ad36['is']('element','listItem'))&&(_0x28acbc=_0x28acbc['filter'](_0x3bdb73=>_0x3bdb73['is']('element','listItem'))),_0x28acbc;}['_getSuggestionBlocks'](_0x445440){const _0x1b22fd=this['editor']['plugins']['get']('LegacyListUtils');let _0x2cb1b6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x445440)['map'](_0x5519d0=>{const _0xbfc72e=this['editor']['model']['createPositionAt'](_0x5519d0,0x0);return[..._0x1b22fd['getSiblingNodes'](_0xbfc72e,'backward'),..._0x1b22fd['getSiblingNodes'](_0xbfc72e,'forward')];})['flat']();return _0x2cb1b6=[...new Set(_0x2cb1b6)],_0x2cb1b6;}['_getTranslationKeyForListStyle'](_0x43de9e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x43de9e)||'default')['toUpperCase']()+'_LIST_'+_0x43de9e['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0xb023a3{['afterInit'](){const _0x115cbb=this['editor'];if(!_0x115cbb['plugins']['has']('MediaEmbedEditing'))return;const _0x1c28f5=_0x115cbb['plugins']['get']('TrackChangesEditing'),_0x39c625=_0x115cbb['locale'];_0x1c28f5['enableCommand']('mediaEmbed'),_0x1c28f5['descriptionFactory']['registerElementLabel']('media',_0x3f40a3=>o(_0x39c625,'ELEMENT_MEDIA',_0x3f40a3)),_0x115cbb['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x441a62,{writer:_0x50280e,options:_0x43a70f})=>{if(_0x43a70f['showSuggestionHighlights'])return _0x50280e['createEmptyElement']('div');},'converterPriority':'high'}),_0x115cbb['data']['downcastDispatcher']['on']('attribute:url:media',(_0x35299d,_0x44d39e,_0x4208d9)=>{_0x4208d9['options']['showSuggestionHighlights']&&_0x35299d['stop']();},{'priority':'high'});}}class gt extends _0xb023a3{['afterInit'](){const _0x3a4665=this['editor'];_0x3a4665['plugins']['has']('MentionEditing')&&_0x3a4665['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0xb023a3{['afterInit'](){const _0x37dbdd=this['editor'],_0x41f4bc=_0x37dbdd['plugins']['get']('TrackChangesEditing');_0x37dbdd['plugins']['has']('MultiLevelList')&&(_0x41f4bc['enableDefaultAttributesIntegration']('multiLevelList'),_0x41f4bc['registerBlockAttribute']('listMarkerStyle'),_0x41f4bc['descriptionFactory']['registerDescriptionCallback'](_0x3033b5=>this['handleDescriptions'](_0x3033b5)));}['handleDescriptions'](_0x107918){const _0x137f57=this['editor']['locale'],{data:_0x41a2c8}=_0x107918,_0x4571ce={'type':'format','content':''};if(_0x41a2c8&&'listMarkerStyle'==_0x41a2c8['key']){if(!_0x41a2c8['oldValue'])return{'type':'format','content':o(_0x137f57,'*Set\x20format:*\x20%0',o(_0x137f57,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x41a2c8['newValue']+')'};if(!_0x41a2c8['newValue']){let _0x5b93cb=_0x107918['head'];for(;_0x5b93cb;){if(_0x5b93cb['data']&&'listType'==_0x5b93cb['data']['key']&&_0x5b93cb['data']['newValue'])return _0x4571ce;_0x5b93cb=_0x5b93cb['next'];}return{'type':'format','content':o(_0x137f57,'*Remove\x20format:*\x20%0',o(_0x137f57,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x41a2c8['oldValue']+')'};}}}}class mt extends _0xb023a3{['afterInit'](){const _0x3fc98b=this['editor'];if(!_0x3fc98b['plugins']['has']('PageBreakEditing'))return;_0x3fc98b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x331d98=_0x3fc98b['plugins']['get']('TrackChangesEditing'),_0x501878=_0x3fc98b['locale'];_0x331d98['descriptionFactory']['registerElementLabel']('pageBreak',_0x13d55e=>o(_0x501878,'ELEMENT_PAGE_BREAK',_0x13d55e));}}class dt extends _0xb023a3{['afterInit'](){const _0x5df01f=this['editor'];if(!_0x5df01f['plugins']['has']('Paragraph'))return;const _0x2f7dbf=_0x5df01f['locale'],_0x9abd53=_0x5df01f['plugins']['get']('TrackChangesEditing');_0x9abd53['descriptionFactory']['registerElementLabel']('paragraph',_0x53da41=>o(_0x2f7dbf,'ELEMENT_PARAGRAPH',_0x53da41)),_0x9abd53['enableDefaultAttributesIntegration']('paragraph'),_0x9abd53['enableCommand']('insertParagraph'),_0x5df01f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5df01f),{'priority':'highest'}),_0x5df01f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5db5ac,_0x5aea19,_0x596742)=>{_0x596742['options']['showSuggestionHighlights']&&nr(_0x5df01f,{'showActiveMarker':!0x1})(_0x5db5ac,_0x5aea19,_0x596742);},{'priority':'highest'});const _0x39ccfc=_0x9abd53['descriptionFactory'];_0x39ccfc['registerDescriptionCallback'](_0x508863=>{if('insertion'!==_0x508863['type'])return;const {start:_0x263e66,end:_0x47ccc7}=_0x508863['getFirstRange']();if(!_0x263e66['isTouching'](_0x47ccc7)||!_0x263e66['nodeAfter'])return;const _0x585242=_0x5df01f['model']['schema'],_0x343319=_0x263e66['nodeAfter'];return _0x585242['isBlock'](_0x343319)&&!_0x585242['isLimit'](_0x343319)&&_0x585242['checkChild'](_0x343319,'$text')?{'type':'insertion','content':o(_0x2f7dbf,'*Insert:*\x20%0',_0x39ccfc['getItemLabel'](_0x343319,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x447b77=this['editor'],_0x486057=_0x447b77['locale'];_0x447b77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ce07d=>{if('formatBlock'!=_0x5ce07d['type'])return;const {data:_0x47de0d}=_0x5ce07d;return _0x47de0d&&'paragraph'==_0x47de0d['commandName']?{'type':'format','content':o(_0x486057,'*Change\x20to:*\x20%0',o(_0x486057,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4d7dd0,{showActiveMarker:_0x4bc13a=!0x0}={}){return(_0x4cabb8,_0x2cfca6,_0x2e101a)=>{const _0x30a6a4=_0x4d7dd0['plugins']['get']('TrackChangesEditing'),_0x577155=_0x2cfca6['markerRange']['start'],_0x31e0f5=_0x2cfca6['markerRange']['end'],_0x1ab13b=_0x4d7dd0['model']['schema'];if(!_0x577155['isTouching'](_0x31e0f5)||!_0x577155['nodeAfter'])return;const _0x3ea3db=_0x577155['nodeAfter'];if(_0x1ab13b['isBlock'](_0x3ea3db)&&!_0x1ab13b['isLimit'](_0x3ea3db)&&_0x1ab13b['checkChild'](_0x3ea3db,'$text')){if(!_0x2e101a['consumable']['consume'](_0x2cfca6['markerRange'],_0x4cabb8['name']))return;const _0x4ef413=_0x2e101a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x1b9cde=_0x2e101a['mapper']['toViewPosition'](_0x31e0f5);_0x4bc13a&&_0x30a6a4['activeMarkers']['includes'](_0x2cfca6['markerName'])&&_0x2e101a['writer']['addClass']('ck-suggestion-marker--active',_0x4ef413),_0x2e101a['writer']['insert'](_0x1b9cde,_0x4ef413),_0x2e101a['mapper']['bindElementToMarker'](_0x4ef413,_0x2cfca6['markerName']);}};}class pt extends _0xb023a3{['afterInit'](){const _0x211c13=this['editor'];if(!_0x211c13['plugins']['has']('RemoveFormatEditing'))return;_0x211c13['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2646d6=this['editor'];_0x2646d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3847f0=>{if('formatBlock'!=_0x3847f0['type']&&'formatInline'!=_0x3847f0['type'])return;const {data:_0x5c3992}=_0x3847f0;return _0x5c3992&&'removeFormat'==_0x5c3992['commandName']?{'type':'format','content':o(_0x2646d6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0xb023a3{['afterInit'](){const _0x1784fd=this['editor'];if(!_0x1784fd['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x351acf=_0x1784fd['plugins']['get']('TrackChangesEditing');_0x351acf['enableCommand']('goToPreviousRestrictedEditingException'),_0x351acf['enableCommand']('goToNextRestrictedEditingException');const _0x1704ce=_0x1784fd['plugins']['get']('RestrictedEditingModeEditing');_0x1704ce['enableCommand']('trackChanges'),_0x1704ce['enableCommand']('acceptSuggestion'),_0x1704ce['enableCommand']('discardSuggestion'),_0x1704ce['enableCommand']('acceptAllSuggestions'),_0x1704ce['enableCommand']('discardAllSuggestions'),_0x1704ce['enableCommand']('acceptSelectedSuggestions'),_0x1704ce['enableCommand']('discardSelectedSuggestions');}}class bt extends _0xb023a3{static get['requires'](){return[_0x41a651];}['init'](){const _0x228f44=this['editor'],_0x3bd15d=_0x228f44['plugins']['get']('TrackChangesEditing');_0x3bd15d['enableCommand']('shiftEnter'),_0x228f44['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x228f44),{'priority':'high'}),_0x228f44['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x228f44),{'priority':'high'}),_0x228f44['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2c5086,_0x2d5114,_0x2438eb)=>{_0x2438eb['options']['showSuggestionHighlights']&&de(_0x228f44,{'showActiveMarker':!0x1})(_0x2c5086,_0x2d5114,_0x2438eb);}),_0x3bd15d['descriptionFactory']['registerElementLabel']('softBreak',_0x161a38=>o(_0x228f44['locale'],'ELEMENT_LINE_BREAK',_0x161a38));}}function de(_0x114643,{showActiveMarker:_0x13ede8=!0x0}={}){return(_0x31f436,_0x3b3e30,_0x18ff1e)=>{const _0x56e661=_0x114643['plugins']['get']('TrackChangesEditing');if(!_0x18ff1e['consumable']['test'](_0x3b3e30['markerRange'],_0x31f436['name']))return;const _0x54c5db=_0x114643['model'];for(const _0x56e43f of _0x3b3e30['markerRange']['getItems']()){if(!_0x56e43f['is']('element','softBreak'))continue;const _0x4ccf8b='deletion'==_0x3b3e30['markerName']['split'](':')[0x1]?'merge':'split',_0x3bf3d8=_0x18ff1e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ccf8b}),_0x31e2e5=_0x18ff1e['mapper']['toViewPosition'](_0x54c5db['createPositionBefore'](_0x56e43f));_0x13ede8&&_0x56e661['activeMarkers']['includes'](_0x3b3e30['markerName'])&&_0x18ff1e['writer']['addClass']('ck-suggestion-marker--active',_0x3bf3d8),_0x18ff1e['writer']['insert'](_0x31e2e5,_0x3bf3d8),_0x18ff1e['mapper']['bindElementToMarker'](_0x3bf3d8,_0x3b3e30['markerName']);}};}class wt extends _0xb023a3{['afterInit'](){const _0x55a0ce=this['editor'],_0x293f1c=_0x55a0ce['model'],_0x2aeb66=_0x55a0ce['locale'];if(!_0x55a0ce['plugins']['has']('StandardEditingModeEditing'))return;const _0x49f591=_0x55a0ce['plugins']['get']('TrackChangesEditing'),_0x41d154='restrictedEditingException',_0x4a21cf=_0x55a0ce['commands']['get'](_0x41d154);_0x49f591['enableCommand'](_0x41d154,(_0x2a7970,_0x59b73d={})=>{const _0x4df76e=_0x293f1c['document']['selection'];if(_0x4df76e['isCollapsed'])return void _0x2a7970(_0x59b73d);const _0x69252=void 0x0!==_0x59b73d['forceValue']?_0x59b73d['forceValue']:!_0x4a21cf['value'];_0x293f1c['change'](()=>{const _0x3e3cb1=Array['from'](_0x4df76e['getRanges']());for(const _0x5f2d75 of _0x3e3cb1){const _0xcb87ce=_0x69252?[_0x5f2d75]:io(_0x41d154,_0x5f2d75,_0x293f1c);for(const _0x5773f4 of _0xcb87ce)_0x49f591['markInlineFormat'](_0x5773f4,{'commandName':_0x41d154,'commandParams':[{'forceValue':_0x69252}]});}});}),_0x49f591['descriptionFactory']['registerDescriptionCallback'](_0xa4827f=>{if('formatBlock'!=_0xa4827f['type']&&'formatInline'!=_0xa4827f['type'])return;const {data:_0x506071}=_0xa4827f;return _0x506071&&_0x506071['commandName']==_0x41d154?_0x506071['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2aeb66,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2aeb66,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0xb023a3{['afterInit'](){const _0x2317ee=this['editor'];if(!_0x2317ee['plugins']['has']('Style')||!_0x2317ee['plugins']['has']('DataSchema'))return;const _0x185d27=_0x2317ee['plugins']['get']('TrackChangesEditing'),_0xfd637e=_0x2317ee['locale'],_0x4946a1=_0x2317ee['config']['get']('style')||{},_0x2ff26a=_0x2317ee['plugins']['get']('GeneralHtmlSupport'),_0x164650=_0x2317ee['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2317ee['plugins']['get']('DataSchema'),_0x4946a1['definitions']);_0x185d27['enableDefaultAttributesIntegration']('style');const _0x2b956c=new Set();for(const _0x604850 of _0x164650['block']){const _0x208f90=_0x2ff26a['getGhsAttributeNameForElement'](_0x604850['element']);_0x2b956c['add'](_0x208f90);}const _0x4bc833=new Set();for(const _0x26b54d of _0x164650['inline']){const _0x4d8a05=_0x2ff26a['getGhsAttributeNameForElement'](_0x26b54d['element']);_0x4bc833['add'](_0x4d8a05);for(const _0x4b9169 of _0x26b54d['ghsAttributes'])_0x4bc833['add'](_0x4b9169);}for(const _0x21758f of _0x2b956c)_0x185d27['registerBlockAttribute'](_0x21758f),_0x185d27['descriptionFactory']['registerAttributeLabel'](_0x21758f,o(_0xfd637e,'FORMAT_STYLE'));for(const _0x169c08 of _0x4bc833)_0x185d27['registerInlineAttribute'](_0x169c08),_0x185d27['descriptionFactory']['registerAttributeLabel'](_0x169c08,o(_0xfd637e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b358=this['editor'],_0x414010=_0x2b358['locale'];_0x2b358['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53f2e5=>{if('formatBlock'!=_0x53f2e5['type']&&'formatInline'!=_0x53f2e5['type'])return;const {data:_0x185ddd}=_0x53f2e5;return _0x185ddd&&'style'===_0x185ddd['commandName']?_0x185ddd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x414010,'*Set\x20format:*\x20%0',_0x185ddd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x414010,'*Remove\x20format:*\x20%0',_0x185ddd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0xb023a3{['afterInit'](){const _0x1834c1=this['editor'],_0x19e14a=_0x1834c1['model']['document']['selection'];if(!_0x1834c1['plugins']['has']('TableEditing'))return;const _0x55b853=_0x1834c1['locale'],_0x47b400=_0x1834c1['plugins']['get']('TrackChangesEditing'),_0xca340c=_0x1834c1['plugins']['get']('TableUtils');_0x47b400['descriptionFactory']['registerElementLabel']('table',_0x4c0bb4=>o(_0x55b853,'ELEMENT_TABLE',_0x4c0bb4)),this['_setupColumnsRowsFixing'](),_0x47b400['enableCommand']('insertTable'),_0x47b400['enableCommand']('selectTableRow'),_0x47b400['enableCommand']('selectTableColumn');for(const _0xfc3432 of['insertTableRowAbove','insertTableRowBelow']){const _0x233673=_0x1834c1['commands']['get'](_0xfc3432);_0x47b400['enableCommand'](_0xfc3432,_0x438516=>{_0x1834c1['model']['change'](_0xf1cbf1=>{_0x438516();const _0x5e638d='above'===_0x233673['order'],_0x5f58a3=_0xca340c['getSelectionAffectedTableCells'](_0x19e14a),_0x43b2ab=_0xca340c['getRowIndexes'](_0x5f58a3),_0x17c258=_0x5e638d?_0x43b2ab['first']-0x1:_0x43b2ab['last']+0x1,_0x3ee41d=_0x5f58a3[0x0]['findAncestor']('table'),_0x2c185c=_0xca340c['createTableWalker'](_0x3ee41d,{'startRow':_0x17c258,'endRow':_0x17c258}),_0x3b063f=Array['from'](_0x2c185c)['map'](_0x14e934=>_0xf1cbf1['createRangeOn'](_0x14e934['cell']));_0x47b400['markMultiRangeInsertion'](_0x3b063f,'tableRow');});});}for(const _0x3e727a of['insertTableColumnLeft','insertTableColumnRight']){const _0x430804=_0x1834c1['commands']['get'](_0x3e727a);_0x47b400['enableCommand'](_0x3e727a,_0x4bbd8c=>{_0x1834c1['model']['change'](_0x567554=>{_0x4bbd8c();const _0x44f2aa='left'===_0x430804['order'],_0x83464b=_0xca340c['getSelectionAffectedTableCells'](_0x19e14a),_0x284cdd=_0xca340c['getColumnIndexes'](_0x83464b),_0x4e232c=_0x44f2aa?_0x284cdd['first']-0x1:_0x284cdd['last']+0x1,_0x1a2226=_0x83464b[0x0]['findAncestor']('table'),_0x3403d5=_0xca340c['createTableWalker'](_0x1a2226,{'startRow':0x0,'column':_0x4e232c,'includeAllSlots':!0x1}),_0x3d7d6d=Array['from'](_0x3403d5)['map'](_0x5b7bfc=>_0x567554['createRangeOn'](_0x5b7bfc['cell']));_0x47b400['markMultiRangeInsertion'](_0x3d7d6d,'tableColumn');});});}for(const _0x10e1d4 of['removeTableRow','removeTableColumn']){const _0x598d95=_0x10e1d4['substr'](0xb),_0x5ebf35=_0x598d95['toLowerCase'](),_0x2282f2=_0x5ebf35['substr'](0x0,0x3)+'span',_0x2dd5f0='table'+_0x598d95,_0xa0db9='min'+_0x598d95,_0x1fa079='max'+_0x598d95;_0x47b400['enableCommand'](_0x10e1d4,()=>{_0x1834c1['model']['change'](_0x4b15ad=>{const _0x2662f0=_0xca340c['getSelectionAffectedTableCells'](_0x19e14a),_0x1ae78e=_0x2662f0[0x0]['findAncestor']('table');let _0x26e683;if('removeTableRow'==_0x10e1d4){const _0x33dd9a=_0xca340c['getRowIndexes'](_0x2662f0);_0x26e683={'startRow':_0x33dd9a['first'],'endRow':_0x33dd9a['last'],'includeAllSlots':!0x0};}else{const _0x129349=_0xca340c['getColumnIndexes'](_0x2662f0);_0x26e683={'startColumn':_0x129349['first'],'endColumn':_0x129349['last'],'includeAllSlots':!0x0};}const _0x41d69e=_0xca340c['createTableWalker'](_0x1ae78e,_0x26e683),_0x4b8eac=Array['from'](_0x41d69e)['map'](({cell:_0x82c341})=>_0x82c341),_0x2c28c6=Ee(_0x4b8eac['filter'](_0x8b7156=>_0x8b7156['hasAttribute'](_0x2282f2))),_0x18f3ce=Ee(_0x4b8eac['filter'](_0x51643b=>!_0x51643b['hasAttribute'](_0x2282f2)))['map'](_0x54d3f7=>_0x4b15ad['createRangeOn'](_0x54d3f7)),_0x392065=_0x47b400['markMultiRangeDeletion'](_0x18f3ce,_0x2dd5f0);if(_0x392065&&('tableRow'==_0x392065['subType']||'tableColumn'==_0x392065['subType'])){const _0x236ff3=this['_getSuggestionCoords'](_0x392065);for(const _0xc1b85d of _0x2c28c6){const _0x1a84a8=_0x4b15ad['createRangeOn'](_0xc1b85d),_0x263c27=_0xca340c['getCellLocation'](_0xc1b85d),_0x5a7601=_0xc1b85d['getAttribute'](_0x2282f2)-0x1,_0x5cd731=_0x236ff3[_0xa0db9],_0xcea537=_0x236ff3[_0x1fa079];_0x5cd731<=_0x263c27[_0x5ebf35]&&_0x263c27[_0x5ebf35]+_0x5a7601<=_0xcea537&&_0x392065['addRange'](_0x1a84a8);}}});});}function _0x414508(_0x15d418){const _0x5b9210=Array['from'](_0x19e14a['getRanges']())['map'](_0x5a14f5=>_0x2c1830['fromRange'](_0x5a14f5));_0x1834c1['model']['change'](_0x5eec97=>{const _0x1e7231=_0x5eec97['batch'];_0x15d418=_0x15d418['filter'](_0x176ed2=>'$graveyard'!=_0x176ed2['root']['rootName']),_0x5eec97['setSelection'](_0x15d418),_0x1834c1['commands']['get']('removeTableRow')['refresh'](),_0x1834c1['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1834c1['model']['enqueueChange'](()=>{_0x1834c1['model']['enqueueChange'](_0x1e7231,_0x14bef7=>{const _0x4a8140=_0x5b9210['filter'](_0x2fda0e=>'$graveyard'!=_0x2fda0e['root']['rootName']);_0x4a8140['length']>0x0&&_0x14bef7['setSelection'](_0x4a8140);for(const _0xc39133 of _0x5b9210)_0xc39133['detach']();});});});}function _0x26ddf8(_0x2cd0c3){_0x1834c1['model']['change'](_0x4c2e80=>{const _0xe40940=Array['from'](_0x19e14a['getRanges']())['map'](_0x4ceb52=>_0x2c1830['fromRange'](_0x4ceb52)),_0x15bb2c=[];for(const _0xa9a6e0 of _0x2cd0c3)for(const _0x40c703 of _0xa9a6e0['getItems']({'shallow':!0x0}))_0x15bb2c['push'](_0x40c703);for(const _0x3f08eb of _0x15bb2c)'$graveyard'!=_0x3f08eb['root']['rootName']&&(_0x4c2e80['setSelection'](_0x4c2e80['createPositionAt'](_0x3f08eb,0x0)),_0x1834c1['commands']['get']('removeTableColumn')['refresh'](),_0x1834c1['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x375504=_0xe40940['filter'](_0x212591=>'$graveyard'!=_0x212591['root']['rootName']);_0x375504['length']>0x0&&_0x4c2e80['setSelection'](_0x375504);for(const _0x4baf01 of _0xe40940)_0x4baf01['detach']();});}function _0x1fda38(_0x47d03f,_0x17bf8a){return _0x17bf8a['every'](_0x15f4c4=>_0x47d03f['some'](_0x583c90=>_0x583c90['end']['isEqual'](_0x15f4c4['start'])||_0x15f4c4['end']['isEqual'](_0x583c90['start'])));}function _0x222e16(_0x5697d9,_0x40a857){return _0x5697d9['some'](_0x5eccf9=>_0x40a857['some'](_0x4c95da=>_0x5eccf9['end']['isTouching'](_0x4c95da['start'])));}_0x1834c1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x525681,_0x4c4136,_0x7bc44d)=>{if(!_0x7bc44d['options']['showSuggestionHighlights'])return;const _0x4837bd=_0x4c4136['item'];if(!_0x4837bd)return;const _0x524d86=_0x7bc44d['mapper']['toViewElement'](_0x4837bd);function _0x24f429(_0x4d7a9f){return Array['isArray'](_0x4d7a9f)?_0x4d7a9f:[_0x4d7a9f];}_0x524d86&&'tableCell'===_0x4837bd['name']&&_0x14c2d3(_0x524d86,_0x7bc44d['writer'],(_0x12c8db,_0x36568d,_0x3c607a)=>_0x3c607a['addClass'](_0x24f429(_0x36568d['classes']),_0x12c8db),(_0x695785,_0x481ea7,_0x33615c)=>_0x33615c['removeClass'](_0x24f429(_0x481ea7['classes']),_0x695785));},{'priority':'highest'}),_0x47b400['descriptionFactory']['registerDescriptionCallback'](_0x46ad0f=>{if('insertion'!=_0x46ad0f['type']&&'deletion'!=_0x46ad0f['type'])return;const _0x5edb41=_0x46ad0f['getContainedElement']();if(null!=_0x5edb41&&_0x5edb41['is']('element','table')){if('insertion'==_0x46ad0f['type']){const _0x2a71ca=_0x46ad0f['getItems']()['filter'](_0x5ef42d=>_0x5ef42d['is']('$textProxy'))['map'](_0x13045f=>_0x13045f['data']);if(_0x2a71ca['length'])return{'type':'insertion','content':o(_0x55b853,'*Insert:*\x20%0',o(_0x55b853,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2a71ca['join']('\x20')+'\x22'))};}if('deletion'==_0x46ad0f['type']){const _0x3e18bc=_0x46ad0f['getItems']()['filter'](_0x4d90dd=>_0x4d90dd['is']('$textProxy'))['map'](_0x166462=>_0x166462['data']);if(_0x3e18bc['length'])return{'type':'deletion','content':o(_0x55b853,'*Remove:*\x20%0',o(_0x55b853,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3e18bc['join']('\x20')+'\x22'))};}}}),_0x47b400['descriptionFactory']['registerDescriptionCallback'](_0x391150=>{if('tableRow'==_0x391150['subType']){const _0x3d2f79=_0x391150['getItems']()['filter'](_0x45dcae=>_0x45dcae['is']('$textProxy'))['map'](_0x5912e2=>_0x5912e2['data']),_0x4ed4fe=this['_getSuggestionCoords'](_0x391150),_0x536380=_0x4ed4fe['maxRow']-_0x4ed4fe['minRow']+0x1;if('insertion'==_0x391150['type'])return _0x3d2f79['length']?{'type':'insertion','content':o(_0x55b853,'*Insert:*\x20%0',o(_0x55b853,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x536380,'\x22'+_0x3d2f79['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x55b853,'*Insert:*\x20%0',o(_0x55b853,'ELEMENT_TABLE_ROW',_0x536380))};if('deletion'==_0x391150['type'])return _0x3d2f79['length']?{'type':'deletion','content':o(_0x55b853,'*Remove:*\x20%0',o(_0x55b853,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x536380,'\x22'+_0x3d2f79['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x55b853,'*Remove:*\x20%0',o(_0x55b853,'ELEMENT_TABLE_ROW',_0x536380))};}if('tableColumn'==_0x391150['subType']){const _0x2bc8e8=_0x391150['getItems']()['filter'](_0x396226=>_0x396226['is']('$textProxy'))['map'](_0x4d2786=>_0x4d2786['data']),_0x3bad8d=this['_getSuggestionCoords'](_0x391150),_0x27ac88=_0x3bad8d['maxColumn']-_0x3bad8d['minColumn']+0x1;if('insertion'==_0x391150['type'])return _0x2bc8e8['length']?{'type':'insertion','content':o(_0x55b853,'*Insert:*\x20%0',o(_0x55b853,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x27ac88,'\x22'+_0x2bc8e8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x55b853,'*Insert:*\x20%0',o(_0x55b853,'ELEMENT_TABLE_COLUMN',_0x27ac88))};if('deletion'==_0x391150['type'])return _0x2bc8e8['length']?{'type':'deletion','content':o(_0x55b853,'*Remove:*\x20%0',o(_0x55b853,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x27ac88,'\x22'+_0x2bc8e8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x55b853,'*Remove:*\x20%0',o(_0x55b853,'ELEMENT_TABLE_COLUMN',_0x27ac88))};}}),_0x47b400['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x414508),_0x47b400['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x414508),_0x47b400['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x26ddf8),_0x47b400['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x26ddf8),_0x47b400['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1fda38),_0x47b400['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1fda38),_0x47b400['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x222e16),_0x47b400['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x222e16);}['_acceptFormatSuggestionCallbackFactory'](){const _0xe2739f=this['editor'],_0x2c120a=_0xe2739f['model']['document']['selection'];return(_0x273e84,_0x1fd51b)=>{_0xe2739f['model']['change'](_0x956fb6=>{const {commandName:_0x46e5d6,commandParams:_0x3be0d5}=_0x1fd51b;let _0x204242=_0x273e84[0x0]['end']['nodeBefore'];_0x3be0d5&&_0x3be0d5[0x0]&&!0x1===_0x3be0d5[0x0]['forceValue']&&(_0x204242=_0x273e84[0x0]['start']['nodeAfter']);const _0x55e228=_0x956fb6['createRangeIn'](_0x204242);if('$graveyard'==_0x55e228['root']['rootName'])return;const _0x10eb99=Array['from'](_0x2c120a['getRanges']())['map'](_0x342436=>_0x2c1830['fromRange'](_0x342436));_0x956fb6['setSelection'](_0x55e228),_0xe2739f['commands']['get'](_0x46e5d6)['refresh'](),_0x3be0d5['push']({'forceDefaultExecution':!0x0}),_0xe2739f['execute'](_0x46e5d6,..._0x3be0d5);const _0x1fa54f=_0x10eb99['filter'](_0x1d11ae=>'$graveyard'!=_0x1d11ae['root']['rootName']);_0x1fa54f['length']>0x0&&_0x956fb6['setSelection'](_0x1fa54f);for(const _0x31d10d of _0x10eb99)_0x31d10d['detach']();});};}['_getCoordsForCells'](_0x17162a){const _0x5739cc=this['editor']['plugins']['get']('TableUtils');let _0x29283c=Number['MAX_SAFE_INTEGER'],_0x2b31c7=Number['MIN_SAFE_INTEGER'],_0x31a74f=Number['MAX_SAFE_INTEGER'],_0x481e1b=Number['MIN_SAFE_INTEGER'];for(const _0xda5173 of _0x17162a){if('$graveyard'==_0xda5173['root']['rootName'])continue;const {row:_0xd43323,column:_0x23b7e7}=_0x5739cc['getCellLocation'](_0xda5173),_0x52ccaa=_0xda5173['hasAttribute']('rowspan')?_0xda5173['getAttribute']('rowspan')-0x1:0x0,_0x5ad73f=_0xda5173['hasAttribute']('colspan')?_0xda5173['getAttribute']('colspan')-0x1:0x0;_0x29283c=_0xd43323<_0x29283c?_0xd43323:_0x29283c,_0x2b31c7=_0xd43323+_0x52ccaa>_0x2b31c7?_0xd43323+_0x52ccaa:_0x2b31c7,_0x31a74f=_0x23b7e7<_0x31a74f?_0x23b7e7:_0x31a74f,_0x481e1b=_0x23b7e7+_0x5ad73f>_0x481e1b?_0x23b7e7+_0x5ad73f:_0x481e1b;}return{'minRow':_0x29283c,'maxRow':_0x2b31c7,'minColumn':_0x31a74f,'maxColumn':_0x481e1b};}['_setupColumnsRowsFixing'](){const _0x165e69=this['editor'],_0x4c1162=_0x165e69['plugins']['get']('TrackChangesEditing'),_0x1096c0=_0x165e69['plugins']['get']('TableUtils');_0x165e69['model']['document']['on']('change:data',()=>{const _0x5b0405=Array['from'](_0x165e69['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x573d84,data:_0x5b595c}of _0x5b0405){const {group:_0x525c9e,id:_0x531e20,subType:_0x1fe440}=_0x4c1162['_splitMarkerName'](_0x573d84);if('suggestion'!=_0x525c9e)continue;if(null!=_0x5b595c['oldRange'])continue;const _0x5085c8=_0x4c1162['getSuggestion'](_0x531e20);this['_tablePostFixingSubtypes']['includes'](_0x1fe440)&&this['_tableSuggestions']['add'](_0x5085c8);}},{'priority':'low'});const _0x10e2b6=(_0xdaf2a6,_0x44f491)=>{let _0x4da79f=!0x1;const _0x5bbdb7=_0x44f491['createRangeOn'](_0xdaf2a6),_0x3933c9=_0xdaf2a6['findAncestor']('table'),_0x8f3d2f=_0x1096c0['getCellLocation'](_0xdaf2a6);for(const _0x44a653 of this['_tableSuggestions']){const _0x32f1c2=_0x44a653['subType'],_0xd4c762=_0x32f1c2['startsWith']('tablePaste'),_0x1e366a=_0x32f1c2['substr'](_0xd4c762?0xa:0x5),_0x1848dd=_0x1e366a['toLowerCase'](),_0x2d021e=_0x1848dd['substr'](0x0,0x3)+'span',_0x41eaa9='min'+_0x1e366a,_0x249ef7='max'+_0x1e366a;if(!_0x44a653['isInContent'])continue;if(_0x3933c9!=_0x44a653['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x44a653['isIntersectingWithRange'](_0x5bbdb7))continue;const _0x5345d3=_0xdaf2a6['hasAttribute'](_0x2d021e)?_0xdaf2a6['getAttribute'](_0x2d021e)-0x1:0x0,_0x322aed=this['_getSuggestionCoords'](_0x44a653),_0x4ddb78=_0x322aed[_0x41eaa9],_0x43f8dd=_0x322aed[_0x249ef7];_0x4ddb78<=_0x8f3d2f[_0x1848dd]&&_0x8f3d2f[_0x1848dd]+_0x5345d3<=_0x43f8dd&&(_0x44a653['addRange'](_0x5bbdb7),_0x4da79f=!0x0);}return _0x4da79f;};_0x165e69['model']['document']['registerPostFixer'](_0x4e5970=>{let _0xbaec1c=!0x1;for(const _0x2a83c3 of _0x165e69['model']['document']['differ']['getChanges']())if('insert'==_0x2a83c3['type']){if('tableRow'==_0x2a83c3['name']){for(const _0x49db7c of _0x2a83c3['position']['nodeAfter']['getChildren']())_0xbaec1c=_0xbaec1c||_0x10e2b6(_0x49db7c,_0x4e5970);}else'tableCell'==_0x2a83c3['name']&&(_0xbaec1c=_0xbaec1c||_0x10e2b6(_0x2a83c3['position']['nodeAfter'],_0x4e5970));}return _0xbaec1c;});}['_getSuggestionCoords'](_0x156041){return this['_getCoordsForCells'](_0x156041['getRanges']()['map'](_0x1cb5e5=>_0x1cb5e5['start']['nodeAfter']));}constructor(_0x2849b1){super(_0x2849b1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x5f93be){return Array['from'](new Set(_0x5f93be)['values']());}class St extends _0xb023a3{static get['requires'](){return[jt];}['afterInit'](){const _0x4de624=this['editor'],_0x8dc364=_0x4de624['model']['document']['selection'],_0x323b4f=_0x4de624['locale'];if(!_0x4de624['plugins']['has']('TableEditing'))return;const _0xe01471=_0x4de624['plugins']['get']('TrackChangesEditing'),_0x3c58cb=_0x4de624['plugins']['get']('TableUtils'),_0x208de2=_0x4de624['plugins']['get'](jt);_0x208de2['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xe01471['enableCommand']('mergeTableCells',()=>{const _0x7ff003=_0x3c58cb['getSelectionAffectedTableCells'](_0x4de624['model']['document']['selection']);_0x4de624['model']['change'](()=>{_0xe01471['markMultiRangeBlockFormat'](_0x7ff003,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4de624['commands']['get']('mergeTableCells')['on']('execute',(_0xccb83b,_0x56b73a)=>{_0x4de624['commands']['get']('trackChanges')['value']&&(_0x56b73a['length']>0x0&&_0x56b73a[_0x56b73a['length']-0x1]&&_0x56b73a[_0x56b73a['length']-0x1]['forceDefaultExecution']||_0xe01471['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xccb83b['stop']());},{'priority':'highest'});for(const _0x218385 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1482f3=_0x4de624['commands']['get'](_0x218385);_0xe01471['enableCommand'](_0x218385,()=>{const _0xaa1cc2=_0x4de624['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x176236=>_0x176236['is']('element','tableCell')),_0x51b55d=_0x1482f3['value'];_0x4de624['model']['change'](()=>{_0xe01471['markMultiRangeBlockFormat']([_0xaa1cc2,_0x51b55d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x37211d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4d7dee=_0x4de624['commands']['get'](_0x37211d);_0xe01471['enableCommand'](_0x37211d,()=>{const _0x1382fe=_0x3c58cb['getSelectionAffectedTableCells'](_0x4de624['model']['document']['selection'])[0x0],_0x5193a2=_0x1382fe['findAncestor']('table'),{column:_0xe29167,row:_0x2c87f3}=_0x3c58cb['getCellLocation'](_0x1382fe);let _0xd37583=[];if('horizontally'==_0x4d7dee['direction']){const _0x19d60c=_0x3c58cb['createTableWalker'](_0x5193a2,{'startRow':_0x2c87f3,'endRow':_0x2c87f3,'includeAllSlots':!0x0});_0xd37583=Array['from'](_0x19d60c)['map'](_0x319d49=>_0x319d49['cell']);}else{const _0x2d5eed=_0x3c58cb['createTableWalker'](_0x5193a2,{'column':_0xe29167,'includeAllSlots':!0x0});_0xd37583=Array['from'](_0x2d5eed)['map'](_0x526d0a=>_0x526d0a['cell']);}_0x4de624['model']['change'](_0x50d1d5=>{_0xe01471['markBlockFormat'](_0x50d1d5['createRangeOn'](_0x1382fe),{'commandName':_0x37211d,'commandParams':[]},_0xd37583,_0x37211d);});});}_0xe01471['descriptionFactory']['registerDescriptionCallback'](_0x359b9b=>{if('formatBlock'!=_0x359b9b['type']&&'formatInline'!=_0x359b9b['type'])return;const {data:_0x102bf1}=_0x359b9b;return _0x102bf1&&'mergeTableCells'==_0x102bf1['commandName']?{'type':'format','content':o(_0x323b4f,'*Merge\x20cells*')}:void 0x0;}),_0xe01471['descriptionFactory']['registerDescriptionCallback'](_0x5d70af=>{if('formatBlock'!=_0x5d70af['type']&&'formatInline'!=_0x5d70af['type'])return;const {data:_0x5358be}=_0x5d70af;return _0x5358be?'splitTableCellVertically'==_0x5358be['commandName']?{'type':'format','content':o(_0x323b4f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5358be['commandName']?{'type':'format','content':o(_0x323b4f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2dbb9f=_0x208de2['_acceptFormatSuggestionCallbackFactory']();for(const _0x58a3fa of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xe01471['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x58a3fa,'accept',_0x2dbb9f);for(const _0x494fdb of['splitTableCellVertically','splitTableCellHorizontally'])_0xe01471['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x494fdb,'accept',_0x2dbb9f);_0xe01471['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4f9ae1=>{_0x4de624['model']['change'](_0x29e08e=>{const _0x308931=Array['from'](_0x8dc364['getRanges']())['map'](_0x58bd0d=>_0x2c1830['fromRange'](_0x58bd0d));_0x29e08e['setSelection'](_0x4f9ae1),_0x4de624['commands']['get']('mergeTableCells')['refresh'](),_0x4de624['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4edf7b=_0x308931['filter'](_0x580e87=>'$graveyard'!=_0x580e87['root']['rootName']);_0x4edf7b['length']>0x0&&_0x29e08e['setSelection'](_0x4edf7b);for(const _0x306981 of _0x308931)_0x306981['detach']();});});for(const _0x372cc7 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1b0080=_0x4de624['commands']['get'](_0x372cc7);_0x1b0080['on']('set:isEnabled',(_0x58f52b,_0x5d0ce8,_0x53fb0d)=>{if(_0x53fb0d){const _0x2f0471=_0x4de624['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x29505b=>_0x29505b['is']('element','tableCell'));this['_areMergableCells'](_0x1b0080['value'],_0x2f0471)||(_0x58f52b['return']=!0x1,_0x58f52b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x6d2137=this['editor']['commands']['get']('mergeTableCells'),_0x232ea2=this['editor']['plugins']['get']('TableUtils');if(!_0x6d2137['isEnabled'])return!0x1;const _0x54eb63=_0x232ea2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1a1725 of _0x54eb63)for(const _0x4bea05 of _0x54eb63)if(_0x1a1725!=_0x4bea05&&!this['_areMergableCells'](_0x1a1725,_0x4bea05))return!0x1;return!0x0;}['_areMergableCells'](_0x5df3ad,_0x604660){const _0x3f6e53=this['editor']['plugins']['get']('TrackChangesEditing'),_0x320ac2=this['editor']['model']['createRangeOn'](_0x5df3ad),_0xe97c45=this['editor']['model']['createRangeOn'](_0x604660),_0x2cc86c=new Set(),_0x836d30=new Set();for(const _0x235837 of _0x3f6e53['getSuggestions']())if(('insertion'==_0x235837['type']||'deletion'==_0x235837['type']||'mergeTableCells'==_0x235837['subType'])&&_0x235837['isInContent']){for(const _0xcbada of _0x235837['getRanges']())_0xcbada['containsRange'](_0x320ac2,!0x0)&&_0x2cc86c['add'](_0x235837['type']+':'+_0x235837['author']['id']),_0xcbada['containsRange'](_0xe97c45,!0x0)&&_0x836d30['add'](_0x235837['type']+':'+_0x235837['author']['id']);}if(_0x2cc86c['size']!=_0x836d30['size'])return!0x1;for(const _0x36c1ee of _0x2cc86c)if(!_0x836d30['has'](_0x36c1ee))return!0x1;return!0x0;}}class At extends _0xb023a3{static get['requires'](){return[jt];}['afterInit'](){const _0x1bc51e=this['editor'];if(!_0x1bc51e['plugins']['has']('TableEditing'))return;const _0x476bf9=_0x1bc51e['locale'],_0x2941a7=_0x1bc51e['plugins']['get']('TrackChangesEditing');_0x2941a7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2941a7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2941a7['registerBlockAttribute']('headingRows'),_0x2941a7['registerBlockAttribute']('headingColumns'),_0x2941a7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x476bf9,'FORMAT_HEADER_ROW')),_0x2941a7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x476bf9,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x316fc6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d45d5=this['editor']['plugins']['get']('TableUtils'),_0x2f7f03=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x3adf43({showActiveMarker:_0x5e882a=!0x0,setDataAttribute:_0x3c6e98=!0x0}={}){return(_0x2ee0fc,_0x5b382d,_0x336a1a)=>{const {type:_0x5d10fd,id:_0x2b2c5c}=_0x316fc6['_splitMarkerName'](_0x5b382d['markerName']),_0x37af2a=_0x316fc6['getSuggestion'](_0x2b2c5c),_0x211484=_0x37af2a['data'];if('formatBlock'!=_0x37af2a['type']||!_0x211484||'setTableColumnHeader'!=_0x211484['commandName'])return;if(_0x5b382d['item'])return void _0x2ee0fc['stop']();if(!_0x336a1a['consumable']['consume'](_0x5b382d['markerRange'],_0x2ee0fc['name']))return;const _0x21b109=_0x5b382d['markerRange']['start']['nodeAfter'],_0x49ba5c=_0x5b382d['markerRange']['end']['nodeBefore'],_0xa205df=_0x21b109['parent']['parent'],{column:_0x1cf9f5}=_0x4d45d5['getCellLocation'](_0x21b109),{column:_0x35cf01}=_0x4d45d5['getCellLocation'](_0x49ba5c);for(let _0x1e55d2=_0x1cf9f5;_0x1e55d2<=_0x35cf01;_0x1e55d2++){const _0x17065f=_0x4d45d5['createTableWalker'](_0xa205df,{'column':_0x1e55d2,'includeAllSlots':!0x1});for(const _0x189786 of _0x17065f){const _0x3810f7=_0x189786['cell'],_0x52bdf7=_0x336a1a['mapper']['toViewElement'](_0x3810f7);_0x336a1a['writer']['addClass']('ck-suggestion-marker-'+_0x5d10fd,_0x52bdf7),_0x3c6e98&&_0x336a1a['writer']['setAttribute']('data-suggestion',_0x2b2c5c,_0x52bdf7),_0x336a1a['mapper']['bindElementToMarker'](_0x52bdf7,_0x5b382d['markerName']),_0x5e882a&&(_0x316fc6['activeMarkers']['includes'](_0x5b382d['markerName'])?_0x336a1a['writer']['addClass']('ck-suggestion-marker--active',_0x52bdf7):_0x336a1a['writer']['removeClass']('ck-suggestion-marker--active',_0x52bdf7));}}};}_0x316fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2f7f03),_0x316fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2f7f03),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3adf43(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x108f23,_0x1ee01b,_0x39337b)=>{_0x39337b['options']['showSuggestionHighlights']&&_0x3adf43({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x108f23,_0x1ee01b,_0x39337b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xdb7aa6,_0x77eae0,_0x176e76)=>{const {type:_0x51fa27,id:_0x3bb250}=_0x316fc6['_splitMarkerName'](_0x77eae0['markerName']),_0x3f6061=_0x316fc6['getSuggestion'](_0x3bb250),_0x3bf118=_0x3f6061['data'];if('formatBlock'!=_0x3f6061['type']||!_0x3bf118||'setTableColumnHeader'!=_0x3bf118['commandName'])return;const _0x2b77ed=_0x176e76['mapper']['markerNameToElements'](_0x77eae0['markerName']);if(_0x2b77ed){for(const _0x4a5960 of _0x2b77ed)_0x176e76['writer']['removeClass']('ck-suggestion-marker-'+_0x51fa27,_0x4a5960),_0x176e76['writer']['removeClass']('ck-suggestion-marker--active',_0x4a5960),_0x176e76['writer']['removeAttribute']('data-suggestion',_0x4a5960),_0x176e76['mapper']['unbindElementFromMarkerName'](_0x4a5960,_0x77eae0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c18a8=this['editor'],_0x5219b6=_0x2c18a8['locale'];function _0x25ee00(_0x4c13ca){return{'type':'format','content':o(_0x5219b6,'*Format:*\x20%0',_0x4c13ca)};}_0x2c18a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a187d=>{if('formatBlock'!=_0x4a187d['type'])return;const {data:_0xf6cba9}=_0x4a187d;if(_0xf6cba9){if('setTableRowHeader'==_0xf6cba9['commandName']){const _0x46ed4=_0xf6cba9['commandParams'][0x0]['forceValue'];return _0x25ee00(o(_0x5219b6,_0x46ed4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xf6cba9['commandName']){const _0xefbda5=_0xf6cba9['commandParams'][0x0]['forceValue'];return _0x25ee00(o(_0x5219b6,_0xefbda5?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x55f994=>[_0x55f994,null]));class It extends _0xb023a3{static get['requires'](){return[jt];}['afterInit'](){const _0x55e830=this['editor'];if(!_0x55e830['plugins']['has']('TableClipboard'))return;const _0x40f525=_0x55e830['plugins']['get']('TrackChangesEditing'),_0x381ab2=_0x55e830['plugins']['get']('TableUtils'),_0x292556=_0x55e830['plugins']['get'](jt),_0x5ea0b8=_0x55e830['plugins']['get']('TableClipboard');_0x292556['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x55e830['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x55e830['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1bed10=null;_0x55e830['model']['on']('insertContent',(_0x239da4,_0x4cf4c5)=>{const [_0x256b11,_0x54e43c]=_0x4cf4c5,_0x537a9a=_0x4cf4c5[_0x4cf4c5['length']-0x1];_0x537a9a&&_0x537a9a['forceDefaultExecution']||_0x40f525['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xcf7ebb,_0x107df6,_0x2c4c24,_0xa3f345,_0x5e357c){if(_0x107df6&&!_0x107df6['is']('documentSelection'))return!0x1;const _0x2eeced=_0x5e357c['getTableIfOnlyTableInContent'](_0xcf7ebb,_0x2c4c24);if(!_0x2eeced||!he(_0x2eeced,void 0x0,_0xa3f345))return!0x1;const _0x451353=_0xa3f345['getSelectionAffectedTableCells'](_0x2c4c24['document']['selection']);if(!_0x451353['length'])return!0x1;const _0xa3ad37=_0x451353[0x0]['findAncestor']('table'),_0x3374f7=_0xa3f345['getRowIndexes'](_0x451353),_0x571c6d=_0xa3f345['getColumnIndexes'](_0x451353),_0x3d539c={'startRow':_0x3374f7['first'],'endRow':_0x3374f7['last'],'startColumn':_0x571c6d['first'],'endColumn':_0x571c6d['last']};return 0x1==_0x451353['length']&&(_0x3d539c['endRow']+=_0xa3f345['getRows'](_0x2eeced)-0x1,_0x3d539c['endColumn']+=_0xa3f345['getColumns'](_0x2eeced)-0x1),he(_0xa3ad37,_0x3d539c,_0xa3f345);}(_0x256b11,_0x54e43c,_0x55e830['model'],_0x381ab2,_0x5ea0b8)&&(_0x239da4['stop'](),_0x1bed10={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x55e830['model']['change'](()=>{_0x55e830['model']['insertContent'](_0x4cf4c5[0x0],_0x4cf4c5[0x1],_0x4cf4c5[0x2],{'forceDefaultExecution':!0x0});const _0x51ea81=_0x19ce93(),{rowInsertionRanges:_0xd23e1,columnInsertionRanges:_0x47b844,insertionRanges:_0x102cc1,deletionRanges:_0x377760,cells:_0x4b0429}=_0x1bed10;_0xd23e1['length']&&_0x40f525['markMultiRangeInsertion'](_0xd23e1,'tablePasteRow',{'tablePasteChainId':_0x51ea81}),_0x47b844['length']&&_0x40f525['markMultiRangeInsertion'](_0x47b844,'tablePasteColumn',{'tablePasteChainId':_0x51ea81}),_0x102cc1['length']&&(_0x40f525['markMultiRangeInsertion'](_0x102cc1,'tablePaste',{'tablePasteChainId':_0x51ea81,'skipNestingCheck':!0x0}),_0x102cc1['forEach'](_0x1b07d3=>{var _0x556325;return null===(_0x556325=_0x1b07d3['detach'])||void 0x0===_0x556325?void 0x0:_0x556325['call'](_0x1b07d3);})),_0x377760['length']&&(_0x40f525['markMultiRangeDeletion'](_0x377760,'tablePaste',{'tablePasteChainId':_0x51ea81,'skipNestingCheck':!0x0}),_0x377760['forEach'](_0xb74fe6=>{var _0x47c45;return null===(_0x47c45=_0xb74fe6['detach'])||void 0x0===_0x47c45?void 0x0:_0x47c45['call'](_0xb74fe6);}));const _0x2a2dff=_0x40f525['markMultiRangeBlockFormat'](_0x4b0429['map'](({element:_0x5297f6})=>_0x5297f6),{'formatGroupId':_0x19ce93()},[],'tablePasteCell',{'tablePasteChainId':_0x51ea81});if(_0x2a2dff){const _0x5d1af5=_0x2a2dff['getMarkers'](),_0x2626ce=[];for(const {element:_0xe3087,attributes:_0x4055de}of _0x4b0429){if(!_0x4055de)continue;const _0x41c5f5=_0x55e830['model']['createRangeOn'](_0xe3087),_0x47dccf=_0x5d1af5['find'](_0x50ebbf=>_0x50ebbf['getRange']()['isEqual'](_0x41c5f5));_0x47dccf&&_0x2626ce['push']([_0x47dccf['name'],_0x4055de]);}_0x2626ce['length']&&_0x2a2dff['setAttribute']('markerAttributes',Object['fromEntries'](_0x2626ce));}_0x1bed10=null;}));},{'priority':_0x28d440['high']+0xa}),_0x55e830['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x58e0de,_0x50a576)=>{const [_0x3c84bf,_0x2f49b9,,_0x28a76d]=_0x50a576;if(!_0x1bed10)return;_0x58e0de['stop']();const _0x40aedb=_0x3c84bf['cell'],_0x483fd2=_0x2f49b9,_0x24074a=Pe(_0x40aedb),_0x33b713=Pe(_0x483fd2);_0x58e0de['return']=_0x40aedb;let _0x5e853f=null,_0x342fd0=null;if(_0x33b713||_0x24074a){if(_0x24074a&&!_0x33b713){_0x28a76d['remove'](_0x40aedb['getChild'](0x0));for(const _0x1945df of Array['from'](_0x483fd2['getChildren']()))_0x28a76d['insert'](_0x1945df,_0x40aedb,'end');const _0x5627d8=_0x1bed10['rowInsertionIndexes']['includes'](_0x3c84bf['row']),_0x4260f3=_0x1bed10['columnInsertionIndexes']['includes'](_0x3c84bf['column']);_0x5627d8||_0x4260f3||(_0x5e853f=_0x2c1830['fromRange'](_0x28a76d['createRangeIn'](_0x40aedb)));}else _0x33b713&&!_0x24074a&&(_0x342fd0=_0x28a76d['createRangeIn'](_0x40aedb));}else{const _0x59b7b0=_0x28a76d['createElement']('tableCellSuggestion'),_0x5d34e5=_0x28a76d['createElement']('tableCellSuggestion');_0x28a76d['wrap'](_0x28a76d['createRangeIn'](_0x40aedb),_0x5d34e5),_0x28a76d['insert'](_0x59b7b0,_0x40aedb,0x0);for(const _0xf6d119 of Array['from'](_0x483fd2['getChildren']()))_0x28a76d['insert'](_0xf6d119,_0x59b7b0,'end');_0x5e853f=_0x2c1830['fromRange'](_0x28a76d['createRangeOn'](_0x59b7b0)),_0x342fd0=_0x2c1830['fromRange'](_0x28a76d['createRangeOn'](_0x5d34e5));}const _0x25d5ce=Array['from'](_0x483fd2['getAttributes']())['filter'](([_0x3ced46])=>ge['includes'](_0x3ced46));_0x1bed10['cells']['push']({'element':_0x40aedb,'attributes':_0x25d5ce['length']?Object['fromEntries'](_0x25d5ce):null}),_0x5e853f&&_0x1bed10['insertionRanges']['push'](_0x5e853f),_0x342fd0&&_0x1bed10['deletionRanges']['push'](_0x342fd0);},{'priority':'high'}),_0x381ab2['on']('insertColumns',(_0x2bea92,_0x2e6a3b)=>{const [_0x332dba,_0x1a1f08={}]=_0x2e6a3b;if(!_0x1bed10)return;const _0x18f32f=_0x1a1f08['at']||0x0,_0x33258=_0x1a1f08['columns']||0x1;_0x1bed10['columnInsertionIndexes']=new Array(_0x33258)['fill'](_0x18f32f)['map']((_0x5ad014,_0x229b2a)=>_0x5ad014+_0x229b2a);for(const {cell:_0x2123cc}of _0x381ab2['createTableWalker'](_0x332dba,{'startColumn':_0x18f32f,'endColumn':_0x18f32f+_0x33258-0x1}))_0x1bed10['columnInsertionRanges']['push'](_0x55e830['model']['createRangeOn'](_0x2123cc));},{'priority':'low'}),_0x381ab2['on']('insertRows',(_0x87ae9b,_0x5263af)=>{const [_0xeb0e23,_0x4456c6={}]=_0x5263af;if(!_0x1bed10)return;const _0x1ebd1f=_0x4456c6['at']||0x0,_0x4924fe=_0x4456c6['rows']||0x1;_0x1bed10['rowInsertionIndexes']=new Array(_0x4924fe)['fill'](_0x1ebd1f)['map']((_0x1e8c99,_0xec3cb)=>_0x1e8c99+_0xec3cb);for(const {cell:_0x46593a}of _0x381ab2['createTableWalker'](_0xeb0e23,{'startRow':_0x1ebd1f,'endRow':_0x1ebd1f+_0x4924fe-0x1}))_0x1bed10['rowInsertionRanges']['push'](_0x55e830['model']['createRangeOn'](_0x46593a));},{'priority':'low'}),_0x40f525['descriptionFactory']['registerDescriptionCallback'](_0x10933f=>{if(_0x10933f['subType']&&_0x10933f['subType']['startsWith']('tablePaste'))return _0x10933f['previous']?{}:{'type':'insertion','content':o(_0x55e830['locale'],'*Replace\x20table\x20cells*')};});const _0x5eb08b=()=>!0x1;for(const _0xebd259 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x40f525['_suggestionFactory']['registerCustomCallback']('insertion',_0xebd259,'join',_0x5eb08b),_0x40f525['_suggestionFactory']['registerCustomCallback']('deletion',_0xebd259,'join',_0x5eb08b),_0x40f525['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xebd259,'join',_0x5eb08b);_0x40f525['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5eb08b),_0x40f525['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x38a745,_0xc31d93,_0x336273)=>{const _0x527cb0=_0x38a745['map'](_0xc85289=>_0xc85289['getContainedElement']())['filter'](_0xfb4e1e=>_0xfb4e1e),_0x4ff3c9=new Map(_0x527cb0['map'](_0x53a5bb=>[_0x53a5bb,null]));if(_0x1bed10){for(const {element:_0x25be64,attributes:_0x3f5af0}of _0x1bed10['cells'])_0x3f5af0&&_0x4ff3c9['set'](_0x25be64,_0x3f5af0);}else{if(_0x336273&&_0x336273['markerAttributes'])for(const [_0x99cd4e,_0x4cce39]of Object['entries'](_0x336273['markerAttributes'])){const _0x307440=_0x55e830['model']['markers']['get'](_0x99cd4e),_0x12e466=_0x307440?_0x307440['getRange']()['getContainedElement']():null;_0x12e466&&_0x4ff3c9['set'](_0x12e466,_0x4cce39);}}_0x55e830['model']['change'](_0x4a28ad=>{for(const [_0xad868a,_0x319927]of _0x4ff3c9)_0x4a28ad['setAttributes']({...Ce,..._0x319927},_0xad868a);});});const _0xac18ba=(_0x341b47,_0x5747c2)=>{_0x40f525['_suggestionFactory']['registerCustomCallback'](_0x341b47,'tablePaste',_0x5747c2,(_0x577d1b,_0x44d68f,_0x38c206)=>{_0x55e830['model']['change'](_0x29b40e=>{const _0x19e1c8=[];for(const _0x3782d1 of _0x577d1b){const _0x1e7d4f=_0x3782d1['start']['nodeAfter'];_0x1e7d4f['is']('element','tableCellSuggestion')&&_0x19e1c8['push'](_0x1e7d4f);}_0x40f525['_suggestionFactory']['getSuggestionCallback'](_0x341b47,null,_0x5747c2)(_0x577d1b,_0x44d68f,_0x38c206);for(const _0x2c3a98 of _0x19e1c8)'$graveyard'!=_0x2c3a98['root']['rootName']&&_0x29b40e['unwrap'](_0x2c3a98);});});};_0xac18ba('insertion','accept'),_0xac18ba('insertion','discard'),_0xac18ba('deletion','accept'),_0xac18ba('deletion','discard'),_0x40f525['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x26bd54=>{const _0xaa4dd4=_0x26bd54['map'](_0x2f50d7=>_0x2f50d7['getContainedElement']()),_0x29c502=_0xaa4dd4[0x0]['findAncestor']('table'),{minRow:_0x3ea35e,maxRow:_0x4d187a}=_0x292556['_getCoordsForCells'](_0xaa4dd4);_0x381ab2['removeRows'](_0x29c502,{'at':_0x3ea35e,'rows':_0x4d187a-_0x3ea35e+0x1});}),_0x40f525['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x35d7be=>{const _0x438ef8=_0x35d7be['map'](_0x1a40c1=>_0x1a40c1['getContainedElement']()),_0x1cc628=_0x438ef8[0x0]['findAncestor']('table'),{minColumn:_0x10b5f6,maxColumn:_0x510bf8}=_0x292556['_getCoordsForCells'](_0x438ef8);_0x381ab2['removeColumns'](_0x1cc628,{'at':_0x10b5f6,'columns':_0x510bf8-_0x10b5f6+0x1});});const _0x489f61=(_0x29aceb,_0x4dae4d)=>{if(!_0x4dae4d['subType']||!_0x4dae4d['subType']['startsWith']('tablePaste'))return;const _0x1ae8cb=_0x4dae4d['attributes']['tablePasteChainId'],_0x149f7f=_0x40f525['getSuggestions']()['filter'](_0x1fa25a=>_0x1fa25a['isInContent']&&_0x1fa25a['attributes']&&_0x1fa25a['attributes']['tablePasteChainId']==_0x1ae8cb);_0x149f7f['length']&&_0x4dae4d['getAllAdjacentSuggestions']()['length']!=_0x149f7f['length']&&_0x149f7f['reduce']((_0xdef94b,_0x131513)=>(_0xdef94b['next']=_0x131513,_0x131513['previous']=_0xdef94b,_0x131513));};function _0x3cf550(_0x27d698,_0x1c63c2=!0x0){const {id:_0x5901ee}=_0x40f525['_splitMarkerName'](_0x27d698['markerName']),_0x4d4fbd=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x54bf9b=_0x40f525['activeMarkers']['includes'](_0x27d698['markerName']);return _0x54bf9b&&_0x4d4fbd['push']('ck-suggestion-marker--active'),{'classes':_0x4d4fbd,'attributes':{'data-suggestion':_0x5901ee},'priority':_0x54bf9b&&_0x1c63c2?0xbc2:0xbb8};}_0x40f525['on']('suggestionLoaded',_0x489f61,{'priority':'high'}),_0x40f525['on']('suggestionUnloaded',_0x489f61,{'priority':'high'}),_0x55e830['model']['document']['registerPostFixer'](()=>{let _0x5bfe8d=!0x1;const _0x2a8721=Array['from'](_0x55e830['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf8b942,data:_0x291a7b}of _0x2a8721){const {group:_0x4c1c75,type:_0x103b67,id:_0x3a2d71}=_0x40f525['_splitMarkerName'](_0xf8b942);if('suggestion'!=_0x4c1c75||'deletion'!=_0x103b67||_0x291a7b['oldRange'])continue;if(!_0x40f525['hasSuggestion'](_0x3a2d71))continue;const _0x4d9fce=_0x40f525['getSuggestion'](_0x3a2d71)['getRanges'](),_0x2d36b8=_0x55e830['plugins']['get']('Users')['me'];for(const _0x4759c6 of _0x40f525['getSuggestions']()){if(!_0x4759c6['isInContent']||_0x4759c6['author']!=_0x2d36b8)continue;if('formatBlock'!=_0x4759c6['type']||'tablePasteCell'!=_0x4759c6['subType'])continue;if(_0x4759c6['getRanges']()['every'](_0x17c0fe=>_0x4d9fce['some'](_0x2106c4=>_0x2106c4['containsRange'](_0x17c0fe,!0x0)))){for(const _0x19cfa7 of _0x4759c6['getAllAdjacentSuggestions']())_0x19cfa7['isInContent']&&(_0x19cfa7['discard'](),_0x5bfe8d=!0x0);}}}return _0x5bfe8d;}),_0x55e830['model']['document']['registerPostFixer'](_0x385e18=>{const _0x5080f9=_0x55e830['commands']['get']('redo');if(!_0x5080f9||!_0x5080f9['_createdBatches']['has'](_0x385e18['batch']))return!0x1;let _0x302019=!0x1;const _0x243b9f=_0x55e830['plugins']['get']('Users')['me'],_0x1ffae7=_0x55e830['model']['document']['differ']['getChanges'](),_0x4cc950=Array['from'](_0x55e830['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x27f0f0,data:_0x30dfb2})=>{const {group:_0x273b8c,subType:_0x53e1cc,authorId:_0x21a497}=_0x40f525['_splitMarkerName'](_0x27f0f0);return'suggestion'==_0x273b8c&&'tablePaste'==_0x53e1cc&&_0x21a497==_0x243b9f['id']&&!_0x30dfb2['oldRange'];});for(const _0x250d57 of _0x1ffae7){if('insert'!=_0x250d57['type']||'tableCellSuggestion'!=_0x250d57['name']||0x1!=_0x250d57['length'])continue;const _0x250bb7=_0x385e18['createRange'](_0x250d57['position'],_0x250d57['position']['getShiftedBy'](0x1));if(!_0x4cc950['find'](({data:_0x3a161b})=>_0x3a161b['newRange']['isEqual'](_0x250bb7))){for(const {name:_0x435e92,data:_0x33d9ad}of _0x4cc950)if(_0x250bb7['containsRange'](_0x33d9ad['newRange'])){_0x385e18['updateMarker'](_0x435e92,{'range':_0x250bb7}),_0x302019=!0x0;break;}}}return _0x302019;}),_0x55e830['model']['document']['registerPostFixer'](_0x14d14e=>{let _0x404a4e=!0x1;const _0xacdac7=_0x55e830['plugins']['get']('Users')['me'],_0x48853e=_0x40f525['getSuggestions']()['filter'](_0x3bb406=>_0x3bb406['isInContent']&&_0x3bb406['author']==_0xacdac7),_0x3e7691=new Set(),_0x548a36=new Set();for(const _0x3eede7 of _0x48853e)if('tablePaste'==_0x3eede7['subType'])for(const _0x546117 of _0x3eede7['getMarkers']()){const _0x171f7f=_0x546117['getRange']()['getContainedElement']();if(_0x171f7f){if(_0x171f7f['is']('element','tableCellSuggestion')&&Pe(_0x171f7f)){_0x3eede7['removeMarker'](_0x546117['name']),_0x3e7691['add'](_0x171f7f),_0x404a4e=!0x0;const _0x18c0ec=_0x171f7f['nextSibling'],_0x166d35=_0x171f7f['previousSibling'],_0x99857a=_0x18c0ec&&_0x18c0ec['is']('element','tableCellSuggestion'),_0x1cb3ea=_0x166d35&&_0x166d35['is']('element','tableCellSuggestion');_0x99857a&&!_0x3e7691['has'](_0x18c0ec)&&_0x548a36['add'](_0x18c0ec),_0x1cb3ea&&!_0x3e7691['has'](_0x166d35)&&_0x548a36['add'](_0x166d35);}else _0x171f7f['is']('element','paragraph')&&_0x171f7f['isEmpty']&&(_0x3eede7['removeMarker'](_0x546117['name']),_0x404a4e=!0x0);}}else{if('tablePasteCell'==_0x3eede7['subType']){if(!_0x3eede7['attributes']||!_0x3eede7['attributes']['tablePasteChainId'])continue;const _0xdc10a7=_0x3eede7['attributes']['markerAttributes'];if(_0xdc10a7&&Object['keys'](_0xdc10a7)['length'])continue;const _0x29b854=_0x3eede7['attributes']['tablePasteChainId'];let _0x48c2df=!0x0,_0x2674dc=!0x0;for(const _0x1df295 of _0x48853e)if(_0x1df295['subType']&&_0x1df295['subType']['startsWith']('tablePaste')){if(!_0x1df295['attributes']['tablePasteChainId']){_0x2674dc=!0x1;break;}if(_0x1df295['id']!=_0x3eede7['id']&&_0x1df295['attributes']['tablePasteChainId']==_0x29b854){_0x48c2df=!0x1;break;}}_0x2674dc&&_0x48c2df&&(_0x3eede7['removeMarkers'](),_0x404a4e=!0x0);}}for(const _0x250c7a of _0x3e7691)_0x14d14e['remove'](_0x250c7a);for(const _0x43c980 of _0x548a36)_0x14d14e['unwrap'](_0x43c980);return _0x404a4e;}),_0x55e830['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xa2eef6,_0x3503b8)=>_0x3cf550(_0xa2eef6),'converterPriority':'high'}),_0x55e830['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x200441,_0x10f68c)=>_0x10f68c['options']['showSuggestionHighlights']?_0x3cf550(_0x200441,!0x1):null,'converterPriority':'high'});const _0x3d30f0=_0x55e830['editing']['view'];this['listenTo'](_0x3d30f0['document'],'clipboardOutput',(_0x17ff76,_0x905f1d)=>{const _0x29705e=[];for(const _0xd35b2c of _0x3d30f0['createRangeIn'](_0x905f1d['content'])['getItems']())_0xd35b2c['is']('element','suggestion-td')&&_0x29705e['push'](_0xd35b2c);_0x3d30f0['change'](_0x5129ae=>{for(const _0x36f647 of _0x29705e)_0x5129ae['move'](_0x5129ae['createRangeIn'](_0x36f647),_0x5129ae['createPositionBefore'](_0x36f647)),_0x5129ae['remove'](_0x36f647);});});}}function Pe(_0x31ec37){if(_0x31ec37['isEmpty'])return!0x0;const _0x3b919a=_0x31ec37['getChild'](0x0);return _0x3b919a['is']('element','paragraph')&&_0x3b919a['isEmpty'];}function he(_0x129cd1,_0x5dda6a={},_0x9fe017){for(const {isAnchor:_0x122249,cellHeight:_0x506da6,cellWidth:_0x40e538}of _0x9fe017['createTableWalker'](_0x129cd1,{'includeAllSlots':!0x0,..._0x5dda6a}))if(!_0x122249||0x1!=_0x506da6||0x1!=_0x40e538)return!0x1;return!0x0;}class vt extends _0xb023a3{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x40093d=this['editor']['plugins']['get']('TrackChangesEditing');_0x40093d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x40093d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x40093d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x40093d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x40093d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x40093d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x264aa9,_0x3bbe4e){const _0x4a8323=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e6aac=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4ddded=_0x3bbe4e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x46081f=_0x2e6aac['getColumnGroupElement'](_0x4ddded);let _0x3a4598=_0x46081f?_0x2e6aac['getTableColumnsWidths'](_0x46081f):null,_0x294981=_0x4ddded['getAttribute']('tableWidth')||null;const _0xbc2642=_0x3bbe4e['tableWidth']||_0x294981,_0x2c5767=_0x3bbe4e['columnWidths']||_0x3a4598,_0x1ff8b2=this['editor']['plugins']['get']('Users')['me'];for(const _0xda41d8 of _0x4a8323['getSuggestions']()){const _0x4584e5=_0xda41d8['getContainedElement']();if('resizeTable'===_0xda41d8['subType']&&_0x4584e5===_0x4ddded){_0xda41d8['author']!==_0x1ff8b2&&_0xda41d8['discard']();const _0x362813=_0xda41d8['data']['commandParams'];_0x294981=_0x362813[0x0]['tableWidth'],_0x3a4598=_0x362813[0x0]['columnWidths'];break;}}_0x264aa9({'table':_0x4ddded,'tableWidth':_0xbc2642,'columnWidths':_0x2c5767}),_0x4a8323['markBlockFormat'](_0x4ddded,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x294981,'columnWidths':_0x3a4598}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x9ceb21){if('formatBlock'!=_0x9ceb21['type']&&'formatInline'!=_0x9ceb21['type'])return;const {data:_0x3e2d24}=_0x9ceb21;if(_0x3e2d24&&'resizeTable'===_0x3e2d24['formatGroupId']){const _0x42103c='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x42103c)};}}}class _t extends _0xb023a3{['afterInit'](){const _0x3cd9d8=this['editor'];_0x3cd9d8['plugins']['has']('Template')&&_0x3cd9d8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0xb023a3{['afterInit'](){const _0x510c25=this['editor'];if(!_0x510c25['commands']['get']('insertTableOfContents'))return;_0x510c25['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x11499d=_0x510c25['plugins']['get']('TrackChangesEditing'),_0x4fd037=_0x510c25['locale'];_0x11499d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x302f9f=>o(_0x4fd037,'ELEMENT_TABLE_OF_CONTENTS',_0x302f9f));}}class Dt extends _0xb023a3{['afterInit'](){const _0x1e90fd=this['editor'];if(!_0x1e90fd['plugins']['has']('Title'))return;const _0x558331=_0x1e90fd['plugins']['get']('TrackChangesEditing');_0x558331['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1e90fd['locale'],'ELEMENT_TITLE')),_0x1e90fd['model']['document']['registerPostFixer'](_0x3c9d03=>{let _0x4ba129=!0x1;const _0x198c9e=Array['from'](_0x1e90fd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x334e72,data:_0x21026e}of _0x198c9e){const {group:_0x53be88}=_0x558331['_splitMarkerName'](_0x334e72);if('suggestion'!==_0x53be88||!_0x21026e['newRange'])continue;const _0x5706db=_0x21026e['newRange'],_0x1f6556=_0x5706db['end']['nodeBefore'];if(!_0x1f6556||!_0x1f6556['is']('element','title-content'))continue;if(!_0x5706db['start']['isTouching'](_0x5706db['end']))continue;const _0x3b12e7=_0x1e90fd['model']['schema']['getNearestSelectionRange'](_0x5706db['end'],'forward');if(_0x3b12e7&&_0x3b12e7['isCollapsed']){const _0xd3a25e=_0x3c9d03['createRange'](_0x5706db['start'],_0x3b12e7['start']);_0xd3a25e['isEqual'](_0x5706db)||(_0x3c9d03['updateMarker'](_0x334e72,{'range':_0xd3a25e}),_0x4ba129=!0x0);}_0x4ba129||(_0x3c9d03['removeMarker'](_0x334e72),_0x4ba129=!0x0);}return _0x4ba129;});}}class Nt extends _0xb023a3{['afterInit'](){const _0x3c52c2=this['editor'],_0x270ac6=_0x3c52c2['plugins']['get']('TrackChangesEditing');_0x3c52c2['plugins']['has']('UndoEditing')&&(_0x270ac6['enableCommand']('undo'),_0x270ac6['enableCommand']('redo'));}}class Mt extends _0xb023a3{static get['requires'](){return[jt];}['afterInit'](){const _0x23625f=this['editor'];if(!_0x23625f['plugins']['has']('TableCaptionEditing'))return;_0x23625f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0xb023a3{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x6516c0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x497d83 of this['tableProperties'])_0x6516c0['enableCommand'](_0x497d83,(_0x275694,_0x37307d)=>{const _0x5317af=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x497d83,[_0x5317af],this['tableProperties'],'tableProperties',_0x275694,_0x37307d);});_0x6516c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x6516c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6516c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x17738c,_0xe484df)=>this['handleDiscardAction'](this['tableProperties'],_0x17738c,_0xe484df)),_0x6516c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1c83bb of this['tableCellProperties'])_0x6516c0['enableCommand'](_0x1c83bb,(_0x3ad6b5,_0x40fa2a)=>{const _0x58669e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1c83bb,_0x58669e,this['tableCellProperties'],'tableCellProperties',_0x3ad6b5,_0x40fa2a);});_0x6516c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x6516c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6516c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xa1d2a,_0x21f13e)=>this['handleDiscardAction'](this['tableCellProperties'],_0xa1d2a,_0x21f13e)),_0x6516c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x6516c0['descriptionFactory']['registerDescriptionCallback'](_0x1209c4=>this['handleSuggestionDescription'](_0x1209c4));}['_handlePropertyChange'](_0x36fd6b,_0xe5b0fd,_0x7e5d18,_0x69590d,_0x414722,_0x2e049c){const _0x810517=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2e049c['batch'],()=>{for(const _0x46ae3f of _0xe5b0fd){if(this['_getSuggestion'](_0x46ae3f,_0x69590d))_0x414722(_0x2e049c);else{const _0x401520={};for(const _0x36611f of _0x7e5d18){const _0x556d66=_0x46ae3f['getAttribute'](_0x36611f);void 0x0!==_0x556d66&&(_0x401520[_0x36611f]=_0x556d66);}_0x414722(_0x2e049c),_0x810517['markBlockFormat'](_0x46ae3f,{'commandParams':[_0x401520]},[],_0x69590d);}}});}['handleDiscardAction'](_0x23028d,_0x54753a,_0x51532f){const _0x5e5a4f=_0x54753a[0x0]['start']['nodeAfter'],_0x36fdc7=_0x51532f['commandParams'][0x0];this['editor']['model']['change'](_0x18892f=>{for(const _0xa638b2 of _0x23028d)void 0x0!==_0x36fdc7[_0xa638b2]?_0x18892f['setAttribute'](_0xa638b2,_0x36fdc7[_0xa638b2],_0x5e5a4f):_0x18892f['removeAttribute'](_0xa638b2,_0x5e5a4f);});}['handleSuggestionDescription'](_0x480344){if(_0x480344['data'])switch(_0x480344['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3b72e1,_0x14362f){const _0xcdafc1=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x599440 of _0xcdafc1['getSuggestions']({'skipNotAttached':!0x0})){const _0x51ca44=_0x599440['getContainedElement']();if(_0x599440['subType']===_0x14362f&&_0x51ca44===_0x3b72e1)return _0x599440;}return null;}constructor(_0x3eb252){super(_0x3eb252),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}}const m='$elementName';class p extends _0xb023a3{static get['requires'](){return['CommentsRepository',_0x3d9c75,_0x3b63d4,E,V,U,O,G,F,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}get['_descriptionFactory'](){return this['descriptionFactory'];}['init'](){const _0x553d73=this['editor'],_0xad25d7=(_0x53ed7c,_0xca690)=>{if('attribute'!=_0x53ed7c)return'ck-suggestion-marker-'+_0x53ed7c;const _0x3c1217=_0xca690['split']('|')[0x0];return this['_isBlockAttribute'](_0x3c1217)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x553d73['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x388622=>{const {id:_0x552971,type:_0x292a06,subType:_0x3ab0e3}=this['_splitMarkerName'](_0x388622['markerName']),_0x277837=['ck-suggestion-marker',_0xad25d7(_0x292a06,_0x3ab0e3)];let _0x5c2f3f=0xbb8;return this['activeMarkers']['includes'](_0x388622['markerName'])&&(_0x277837['push']('ck-suggestion-marker--active'),_0x5c2f3f=0xbc2),'deletion'==_0x292a06&&(_0x5c2f3f+=0x5),{'classes':_0x277837,'attributes':{'data-suggestion':_0x552971},'priority':_0x5c2f3f};}}),_0x553d73['conversion']['for']('dataDowncast')['add'](_0x1be12c=>{_0x1be12c['on']('addMarker:suggestion',(_0x2e24a4,_0x29702,_0xbd5fed)=>{if(!_0xbd5fed['options']['showSuggestionHighlights'])return;const _0x13c2e6=_0x29702['item'];if(!_0x13c2e6)return;const _0x13e722=_0xbd5fed['mapper']['toViewElement'](_0x13c2e6);_0x553d73['model']['schema']['isObject'](_0x13c2e6)&&_0x13e722&&!_0x13e722['getCustomProperty']('widget')&&_0x13e722['is']('containerElement')&&_0x131ea3(_0x13e722,_0xbd5fed['writer']);},{'priority':'high'});}),_0x553d73['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x40c414,_0x31c0a6)=>{if(!_0x31c0a6['options']['showSuggestionHighlights'])return null;const {type:_0x3b9180,subType:_0x26a5cc}=this['_splitMarkerName'](_0x40c414['markerName']);return{'classes':['ck-suggestion-marker',_0xad25d7(_0x3b9180,_0x26a5cc)],'priority':0xbb8};}});const _0x365b6e=({showActiveMarkers:_0xd0e753=!0x0,isAttributeSuggestion:_0xa86969=!0x1}={})=>(_0x734bae,_0x3821da,_0x5bf7b6)=>{if(!_0x3821da['item'])return;const {id:_0x9759d5}=this['_splitMarkerName'](_0x3821da['markerName']);if(_0xa86969){const _0x3dac75=this['_suggestions']['get'](_0x9759d5),_0x402275=this['_getAttributeKey'](_0x3dac75);if(!this['_isBlockAttribute'](_0x402275))return;}if(_0x3821da['item']['is']('selection'))return void _0x5bf7b6['consumable']['consume'](_0x3821da['item'],_0x734bae['name']);const _0x52c5a0=_0x5bf7b6['mapper']['toViewElement'](_0x3821da['item']);if(_0x3821da['item']['is']('element')&&_0x553d73['model']['schema']['isBlock'](_0x3821da['item'])&&!_0x52c5a0['getCustomProperty']('addHighlight')){_0x5bf7b6['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x52c5a0),_0x5bf7b6['writer']['setAttribute']('data-suggestion',_0x9759d5,_0x52c5a0),_0x5bf7b6['mapper']['bindElementToMarker'](_0x52c5a0,_0x3821da['markerName']),_0xd0e753&&(this['activeMarkers']['includes'](_0x3821da['markerName'])?_0x5bf7b6['writer']['addClass']('ck-suggestion-marker--active',_0x52c5a0):_0x5bf7b6['writer']['removeClass']('ck-suggestion-marker--active',_0x52c5a0));for(const _0x2ca4dc of _0x553d73['model']['createRangeIn'](_0x3821da['item'])['getItems']())_0x5bf7b6['consumable']['consume'](_0x2ca4dc,_0x734bae['name']);_0x5bf7b6['consumable']['consume'](_0x3821da['item'],_0x734bae['name']);}};_0x553d73['conversion']['for']('dataDowncast')['add'](_0x5cff69=>{_0x5cff69['on']('addMarker:suggestion:formatBlock',(_0x49f944,_0xb59aef,_0x11b5bc)=>{_0x11b5bc['options']['showSuggestionHighlights']&&_0x365b6e({'showActiveMarkers':!0x1})(_0x49f944,_0xb59aef,_0x11b5bc);},{'priority':'highest'});}),_0x553d73['conversion']['for']('dataDowncast')['add'](_0xbc1ea4=>{_0xbc1ea4['on']('addMarker:suggestion:attribute',(_0x409ce2,_0x385180,_0x8c6f2b)=>{_0x8c6f2b['options']['showSuggestionHighlights']&&_0x365b6e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x409ce2,_0x385180,_0x8c6f2b);},{'priority':'highest'});}),_0x553d73['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x33dfce,_0x32299a)=>_0x32299a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x33dfce['substr'](0xb)}}),_0x553d73['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2d8c2a,{writer:_0x4d4549})=>{let _0x5651ce='suggestion:'+_0x2d8c2a['getAttribute']('suggestion-type')+':'+_0x2d8c2a['getAttribute']('id');return _0x2d8c2a['getAttribute']('marker-count')&&(_0x5651ce+=':'+_0x2d8c2a['getAttribute']('marker-count')),_0x4d4549['createElement']('$marker',{'data-name':_0x5651ce});}}),_0x553d73['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x553d73['conversion']['for']('editingDowncast')['add'](_0x476bc7=>{_0x476bc7['on']('addMarker:suggestion:formatBlock',_0x365b6e(),{'priority':'high'});}),_0x553d73['conversion']['for']('editingDowncast')['add'](_0x191883=>{_0x191883['on']('addMarker:suggestion:attribute',_0x365b6e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x553d73['conversion']['for']('editingDowncast')['add'](_0xa1e029=>{_0xa1e029['on']('removeMarker:suggestion:formatBlock',(_0x1541ac,_0x4dc81e,_0x11866e)=>{const _0x592cfd=_0x11866e['mapper']['markerNameToElements'](_0x4dc81e['markerName']);if(_0x592cfd){for(const _0x1259f5 of _0x592cfd)_0x1259f5['getCustomProperty']('addHighlight')||(_0x11866e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1259f5),_0x11866e['writer']['removeAttribute']('data-suggestion',_0x1259f5),_0x11866e['mapper']['unbindElementFromMarkerName'](_0x1259f5,_0x4dc81e['markerName']));}},{'priority':'high'});}),_0x553d73['conversion']['for']('editingDowncast')['add'](_0x3a9305=>{_0x3a9305['on']('removeMarker:suggestion:attribute',(_0x445470,_0x3d5ff1,_0x3cf37c)=>{const _0x58fe88=_0x3cf37c['mapper']['markerNameToElements'](_0x3d5ff1['markerName']);if(!_0x58fe88)return;const {id:_0x157eb0}=this['_splitMarkerName'](_0x3d5ff1['markerName']),_0x1f100d=this['_suggestions']['get'](_0x157eb0),_0x5f310a=this['_getAttributeKey'](_0x1f100d);if(this['_isBlockAttribute'](_0x5f310a)){for(const _0x3e938a of _0x58fe88)_0x3e938a['getCustomProperty']('addHighlight')||(_0x3cf37c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3e938a),_0x3cf37c['writer']['removeAttribute']('data-suggestion',_0x3e938a),_0x3cf37c['mapper']['unbindElementFromMarkerName'](_0x3e938a,_0x3d5ff1['markerName']));}},{'priority':'high'});}),_0x553d73['model']['document']['registerPostFixer'](_0x3f134d=>{let _0x336d3f=!0x1;const _0x2cea3b=Array['from'](_0x553d73['model']['document']['differ']['getChangedMarkers']()),_0x3ee341=new Set();for(const {name:_0x38e13e,data:_0x16fdff}of _0x2cea3b){const {group:_0x475a45,type:_0x411573,subType:_0xbe638f,id:_0x48ebb6}=this['_splitMarkerName'](_0x38e13e);if('suggestion'!==_0x475a45)continue;const _0x361d9f=this['_suggestions']['get'](_0x48ebb6);if(null!=_0x16fdff['newRange']){'formatInline'==_0x411573&&(_0x336d3f=_0x336d3f||Et(_0x16fdff['newRange'],_0x38e13e,_0x3f134d,_0x553d73['model']['schema']));const _0xe30bbd='attribute'==_0x411573&&this['_isBlockAttribute'](_0xbe638f['split']('|')[0x0]);if(_0x16fdff['newRange']['isCollapsed']||'$graveyard'==_0x16fdff['newRange']['root']['rootName']||'formatBlock'==_0x411573&&!Ut(_0x16fdff['newRange'])||_0xe30bbd&&!Ut(_0x16fdff['newRange'])||'deletion'==_0x411573&&!(!Tt(_0x307644=_0x16fdff['newRange'])&&!function(_0x24b8dc){return _0x24b8dc['start']['parent']==_0x24b8dc['end']['nodeBefore']&&_0x24b8dc['start']['isAtEnd'];}(_0x307644)))_0x3f134d['removeMarker'](_0x38e13e),_0x336d3f=!0x0;else{if(!_0x361d9f||!_0x361d9f['isInContent'])continue;_0x3ee341['add'](_0x361d9f);}}}var _0x307644;return _0x3ee341['size']>0x0&&(_0x336d3f=!!this['_joinWithAdjacentSuggestions'](_0x3ee341)||_0x336d3f),_0x336d3f;}),_0x553d73['model']['document']['registerPostFixer'](_0x4afec0=>{let _0x1c14bf=!0x1;for(const _0x1c991f of _0x553d73['model']['document']['differ']['getChanges']())if('insert'==_0x1c991f['type'])for(const _0x5cdadf of this['_suggestions']['values']()){if(_0x5cdadf['isMultiRange']||!_0x5cdadf['isInContent'])continue;const _0x9a0487='formatBlock'==_0x5cdadf['type'],_0x2ca978=this['_getAttributeKey'](_0x5cdadf),_0x20694a=_0x2ca978&&this['_isBlockAttribute'](_0x2ca978);if(!_0x9a0487&&!_0x20694a)continue;const _0x10c064=_0x5cdadf['getFirstRange']();if(_0x10c064['start']['parent']!=_0x10c064['end']['parent']&&!_0x10c064['end']['isAtEnd']){const _0x2aa204=_0x553d73['model']['createPositionAt'](_0x10c064['start']['nodeAfter'],'end'),_0x14ba36=_0x553d73['model']['createRange'](_0x10c064['start'],_0x2aa204);_0x4afec0['updateMarker'](_0x5cdadf['getFirstMarker'](),{'range':_0x14ba36}),_0x1c14bf=!0x0;}}return _0x1c14bf;}),_0x553d73['model']['document']['registerPostFixer'](_0x362c25=>this['_processAttributeChanges'](_0x362c25)),_0x553d73['model']['document']['registerPostFixer'](_0x312a51=>!_0x312a51['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x312a51)),_0x553d73['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x553d73['model']['document']['on']('change:data',(_0x178c32,_0x17e87b)=>{if(!_0x17e87b['isLocal']||_0x17e87b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x25538a=_0x553d73['model']['document']['differ']['getChanges']();if(0x0==_0x25538a['length'])return;const _0x12c0fb=[],_0x3ffdfc=_0x25538a['filter'](_0x518af5=>'attribute'==_0x518af5['type']),_0x1978a1=_0x25538a['filter'](_0x384f53=>'insert'==_0x384f53['type']&&'$text'!=_0x384f53['name']),_0x310673=_0x25538a['filter'](_0x3a5029=>'remove'==_0x3a5029['type']&&'$text'!=_0x3a5029['name']);for(const _0x41c697 of _0x3ffdfc)this['_isRegisteredAttribute'](_0x41c697['attributeKey'])&&_0x12c0fb['push']({'key':_0x41c697['attributeKey'],'newValue':_0x41c697['attributeNewValue'],'oldValue':_0x41c697['attributeOldValue'],'range':Ot(_0x41c697['range'],_0x553d73['model'])});for(const _0x546e59 of _0x1978a1){const _0x480bca=_0x310673['find'](_0x91fd5b=>_0x91fd5b['_element']===_0x546e59['_element']);if(_0x480bca){const _0x50ec1a=Ft(_0x546e59['position']['nodeAfter'],_0x553d73['model']);_0x480bca['name']!==_0x546e59['name']&&_0x12c0fb['push']({'key':m,'newValue':_0x546e59['name'],'oldValue':_0x480bca['name'],'range':_0x50ec1a});for(const [_0x4bce9a,_0x17ed11]of _0x480bca['attributes']){if(!this['_isRegisteredAttribute'](_0x4bce9a))continue;const _0x39d07b=_0x546e59['attributes']['get'](_0x4bce9a);_0x17ed11!==_0x39d07b&&_0x12c0fb['push']({'key':_0x4bce9a,'newValue':_0x39d07b,'oldValue':_0x17ed11,'range':_0x50ec1a});}for(const [_0x39a855,_0x4a1c43]of _0x546e59['attributes'])this['_isRegisteredAttribute'](_0x39a855)&&(_0x480bca['attributes']['has'](_0x39a855)||_0x12c0fb['push']({'key':_0x39a855,'newValue':_0x4a1c43,'oldValue':null,'range':_0x50ec1a}));}}0x0!=_0x12c0fb['length']&&_0x553d73['model']['enqueueChange'](_0x17e87b,_0x176626=>{const _0x4763e2=_0x19ce93();for(const {range:_0x5554f7,key:_0x29dc5b,oldValue:_0x225967,newValue:_0x5268f2}of _0x12c0fb)this['markAttributeChange'](_0x5554f7,_0x29dc5b,_0x225967,_0x5268f2,{'groupId':_0x4763e2});this['_reduceExistingSuggestions'](_0x176626,_0x12c0fb);});},{'priority':'lowest'}),_0x553d73['model']['markers']['on']('update:suggestion',(_0x114e0c,_0xcf31c4,_0x3f73a2)=>{if(null==_0x3f73a2){const {id:_0x240f14}=this['_splitMarkerName'](_0xcf31c4['name']),_0x4527bd=this['_suggestions']['get'](_0x240f14);_0x4527bd&&_0x4527bd['addMarkerName'](_0xcf31c4['name']);}}),_0x553d73['model']['document']['on']('change:data',()=>{const _0x5e1383=Array['from'](_0x553d73['model']['document']['differ']['getChangedMarkers']())['filter'](_0x225bf1=>'suggestion'===this['_splitMarkerName'](_0x225bf1['name'])['group']);if(0x0===_0x5e1383['length'])return;_0x5e1383['sort']((_0x1260bb,_0x236328)=>{const _0x36f1f4=_0x1260bb['data']['oldRange'],_0x2d1f12=_0x236328['data']['oldRange'];return null===_0x36f1f4&&null===_0x2d1f12?0x0:null===_0x36f1f4&&null!==_0x2d1f12?-0x1:null!==_0x36f1f4&&null===_0x2d1f12?0x1:_0x36f1f4['start']['isBefore'](_0x2d1f12['start'])?-0x1:0x1;});const _0x4c362d=new Set(),_0x35d385=new Set();for(const {name:_0x4c6466,data:_0x38e744}of _0x5e1383){const {id:_0x470854}=this['_splitMarkerName'](_0x4c6466);if(null===_0x38e744['oldRange']){const _0x233cc4=this['_handleNewSuggestionMarker'](_0x4c6466);_0x35d385['add'](_0x233cc4);}else{const _0x469fac=this['_suggestions']['get'](_0x470854);null!==_0x38e744['newRange']||_0x469fac['isInContent']?(_0x4c362d['add'](_0x469fac['head']),_0x35d385['add'](_0x469fac)):this['_removeSuggestion'](_0x469fac);}}_0x35d385['size']>0x0&&this['_refreshSuggestionsChain'](_0x35d385);for(const _0x31819d of _0x4c362d)this['fire']('suggestionChanged',_0x31819d);}),_0x553d73['model']['on']('applyOperation',(_0x560621,_0x4ce669)=>{const _0x108bef=_0x4ce669[0x0];if(!this['_suggestions']['size'])return;if(!_0x108bef['isDocumentOperation'])return;if(_0x108bef['batch']['isUndo']||!_0x108bef['batch']['isLocal'])return;let _0x509656,_0x4b31af;switch(_0x108bef['type']){case'insert':_0x509656=_0x553d73['model']['createPositionAt'](_0x108bef['position']),_0x4b31af=_0x509656['getShiftedBy'](_0x108bef['howMany']);break;case'split':_0x509656=_0x553d73['model']['createPositionAt'](_0x108bef['splitPosition']),_0x4b31af=_0x553d73['model']['createPositionAt'](_0x108bef['moveTargetPosition']);break;case'move':_0x509656=_0x553d73['model']['createPositionAt'](_0x108bef['targetPosition']),_0x4b31af=_0x509656['getShiftedBy'](_0x108bef['howMany']);break;default:return;}const _0x3dc443=_0x553d73['model']['createRange'](_0x509656,_0x4b31af);_0x553d73['model']['change'](()=>{for(const {suggestion:_0x41dd4a,meta:_0x1139c0}of this['_findSuggestions'](_0x3dc443)){if(_0x41dd4a['isMultiRange'])continue;if('formatInline'==_0x41dd4a['type'])continue;const _0xf9aed1=this['_getAttributeKey'](_0x41dd4a);if(_0xf9aed1&&this['_isBlockAttribute'](_0xf9aed1)&&'split'!=_0x108bef['type'])continue;const _0x187995=_0x41dd4a['data']&&_0x41dd4a['data']['multipleBlocks'];('formatBlock'!=_0x41dd4a['type']||'split'==_0x108bef['type']&&!_0x187995)&&(_0x1139c0['containsRangeInObject']||'insertion'==_0x41dd4a['type']&&_0x1139c0['isOwn']||_0x41dd4a['getFirstRange']()['containsRange'](_0x3dc443)&&this['_breakSuggestionMarker'](_0x41dd4a,_0x509656,_0x4b31af));}});},{'priority':'lowest'}),_0x553d73['model']['on']('deleteContent',(_0x2c3a01,_0x2288b6)=>{const _0x26847d=_0x2288b6[0x0],_0x32a362=_0x2288b6[0x1];if(_0x32a362&&_0x32a362['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x26847d['isCollapsed'])return;const _0x4c10ea=_0x553d73['model']['schema'],{start:_0x205292,end:_0x528eb8}=_0x26847d['getFirstRange'](),_0x57db9c=_0x205292['nodeAfter']&&_0x4c10ea['isLimit'](_0x205292['nodeAfter'])?null:_0x4c10ea['getNearestSelectionRange'](_0x205292,'forward'),_0x4f7406=_0x528eb8['nodeBefore']&&_0x4c10ea['isLimit'](_0x528eb8['nodeBefore'])?null:_0x4c10ea['getNearestSelectionRange'](_0x528eb8,'backward'),_0x3ef75d=_0x553d73['model']['createRange'](_0x57db9c?_0x57db9c['start']:_0x205292,_0x4f7406?_0x4f7406['end']:_0x528eb8);_0x553d73['model']['change'](_0x1f15a9=>{this['markDeletion'](_0x3ef75d);const _0x2a8e3c=_0x553d73['model']['schema']['getNearestSelectionRange'](_0x3ef75d['start']);_0x26847d['is']('documentSelection')?_0x1f15a9['setSelection'](_0x2a8e3c):_0x26847d['setTo'](_0x2a8e3c);}),_0x2c3a01['stop']();},{'priority':_0x28d440['normal']+0xa}),_0x553d73['model']['on']('insertContent',(_0x1513c8,_0x13d8c3)=>{const _0x2e444d=_0x13d8c3[_0x13d8c3['length']-0x1];_0x2e444d&&_0x2e444d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x553d73['model']['change'](()=>{let _0x457fae=_0x553d73['model']['insertContent'](_0x13d8c3[0x0],_0x13d8c3[0x1],_0x13d8c3[0x2],{'forceDefaultExecution':!0x0});if(!_0x457fae)return;_0x1513c8['return']=_0x457fae['clone']();const _0x19ed2a=_0x457fae['end']['nodeBefore'],_0x5f1da3=_0x553d73['model']['schema'];_0x19ed2a&&_0x5f1da3['isBlock'](_0x19ed2a)&&!_0x5f1da3['isObject'](_0x19ed2a)&&(_0x457fae=_0x553d73['model']['createRange'](_0x457fae['start'],_0x553d73['model']['createPositionAt'](_0x19ed2a,'end'))),this['markInsertion'](_0x457fae);}),_0x1513c8['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x59e21a=new $(_0x553d73,this['_suggestions']);_0x553d73['commands']['add']('acceptSuggestion',_0x59e21a),this['enableCommand']('acceptSuggestion');const _0x3d6ae3=new B(_0x553d73,this['_suggestions']);_0x553d73['commands']['add']('discardSuggestion',_0x3d6ae3),this['enableCommand']('discardSuggestion'),_0x553d73['commands']['add']('acceptAllSuggestions',new x(_0x553d73,_0x59e21a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x553d73['commands']['add']('discardAllSuggestions',new x(_0x553d73,_0x3d6ae3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x553d73['commands']['add']('acceptSelectedSuggestions',new R(_0x553d73,_0x59e21a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x553d73['commands']['add']('discardSelectedSuggestions',new R(_0x553d73,_0x3d6ae3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x9a4d1a=_0x553d73['plugins']['get']('CommentsRepository');this['listenTo'](_0x9a4d1a,'addComment',(_0x1f97e8,{threadId:_0x188100})=>{const _0x39e728=this['_suggestions']['get'](_0x188100);_0x39e728&&_0x39e728['commentThread']&&0x1===_0x39e728['commentThread']['length']&&this['_updateSuggestionData'](_0x188100,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x9a4d1a,'removeComment',(_0x23626e,{threadId:_0x4735a2})=>{const _0x383fe1=this['_suggestions']['get'](_0x4735a2);_0x383fe1&&_0x383fe1['commentThread']&&!_0x383fe1['commentThread']['length']&&this['_updateSuggestionData'](_0x4735a2,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x39c945){if(this['_adapter'])throw new _0x2d4aa9('track-changes-adapter-already-set',this);this['_adapter']=_0x39c945;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x333659=!0x1,toJSON:_0x44db36=!0x1}={}){const _0x5dae1c=[];for(const _0x301764 of this['_suggestions']['values']())_0x333659&&!_0x301764['isInContent']||_0x5dae1c['push'](_0x301764);return _0x44db36?_0x5dae1c['map'](_0x4fedf1=>_0x4fedf1['toJSON']()):_0x5dae1c;}['getSuggestion'](_0xe6954c){const _0x186492=this['_suggestions']['get'](_0xe6954c);if(!_0x186492)throw new _0x2d4aa9('track-changes-suggestion-not-found',this);return _0x186492;}['hasSuggestion'](_0x28045b){return this['_suggestions']['has'](_0x28045b);}['addSuggestionData'](_0x264766){const {authorId:_0x3e8fd6,id:_0x2d7ce6,attributes:_0x23bcd2}=_0x264766,[_0x166d9a,_0x13ce13]=_0x264766['type']['split'](':'),_0x17e011=this['_suggestions']['get'](_0x2d7ce6)||this['_createSuggestion'](_0x166d9a,_0x13ce13,_0x2d7ce6,_0x3e8fd6,_0x23bcd2);if(this['_addThreadToSuggestion'](_0x17e011),this['_checkSuggestionCorrectness'](_0x17e011,_0x166d9a,_0x13ce13||null,_0x3e8fd6),_0x17e011['createdAt']=_0x264766['createdAt'],_0x17e011['_isDataLoaded']=!0x0,_0x23bcd2&&_0x23bcd2['@external']){const _0x311eb5=_0x23bcd2['@external'],_0x4df1e2=this['_getExternalAuthor'](_0x311eb5['authorName']);_0x17e011['authoredAt']=_0x311eb5['createdAt'],_0x17e011['author']=_0x4df1e2,_0x17e011['isExternal']=!0x0;}else _0x17e011['authoredAt']=_0x264766['createdAt'];switch(_0x264766['data']&&(_0x17e011['data']=_0x264766['data']),_0x264766['attributes']&&(_0x17e011['attributes']=_0x264766['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x17e011['_saved']=!0x0),this['_suggestionState']['get'](_0x17e011)){case'notReady':this['_suggestionState']['set'](_0x17e011,'dataReady');break;case'markerReady':_0x17e011['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x17e011])),this['_refreshSuggestionsChain'](new Set([_0x17e011])),this['_suggestionState']['set'](_0x17e011,'ready'),this['fire']('suggestionLoaded',_0x17e011)):this['_suggestionState']['set'](_0x17e011,'removed');}return _0x17e011;}['acceptSuggestion'](_0x357c6f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4198ba of _0x357c6f['getAllAdjacentSuggestions']())_0x4198ba['accept']();});});}['discardSuggestion'](_0x14a7a8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x239b4f of _0x14a7a8['getAllAdjacentSuggestions']())_0x239b4f['discard']();});});}['enableCommand'](_0x579069,_0x244b0c){const _0x3a6777=this['editor']['commands']['get'](_0x579069);if(!_0x3a6777)throw new _0x2d4aa9('track-changes-command-not-found',this,{'commandName':_0x579069});if(this['_enabledCommands']['has'](_0x3a6777))throw new _0x2d4aa9('track-changes-enable-command-twice',this,{'commandName':_0x579069});this['_enabledCommands']['add'](_0x3a6777),_0x244b0c&&_0x3a6777['on']('execute',(_0xa4f578,_0x1d91c4)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1d91c4['length']>0x0&&_0x1d91c4[_0x1d91c4['length']-0x1]&&_0x1d91c4[_0x1d91c4['length']-0x1]['forceDefaultExecution']?_0x1d91c4['pop']():(_0xa4f578['return']=_0x244b0c((..._0x14e67e)=>_0x3a6777['execute'](..._0x14e67e,{'forceDefaultExecution':!0x0}),..._0x1d91c4),_0xa4f578['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2b7c91){let _0x48e3e5,_0x4e4a80;const _0x650d37=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x48e3e5=_0x2b7c91();}catch(_0x2f19fd){_0x4e4a80=_0x2f19fd;}return _0x650d37||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4e4a80&&_0x2d4aa9['rethrowUnexpectedError'](_0x4e4a80,this),_0x48e3e5;}['markInsertion'](_0x928cb,_0x339d7a=null,_0x13ee6f={}){if(_0x928cb['isCollapsed'])return null;const _0x14ac36=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3424f3,meta:_0x2e9a60}of this['_findSuggestions'](_0x928cb,'insertion'))if(_0x2e9a60['isOwn']){if(!_0x2e9a60['isNextTo']){if(_0x2e9a60['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x3424f3,_0x13ee6f))continue;return _0x3424f3;}if(Lt(_0x3424f3,_0x13ee6f))return _0x3424f3;this['_breakSuggestionMarker'](_0x3424f3,_0x928cb['start'],_0x928cb['end']);break;}if(_0x339d7a==_0x3424f3['subType']&&Lt(_0x3424f3,_0x13ee6f)){const _0x28fc68=_0x3424f3['getFirstRange']();return _0x28fc68['start']['isEqual'](_0x928cb['end'])?this['_setSuggestionRange'](_0x3424f3,this['_model']['createRange'](_0x928cb['start'],_0x28fc68['end'])):this['_setSuggestionRange'](_0x3424f3,this['_model']['createRange'](_0x28fc68['start'],_0x928cb['end'])),_0x3424f3;}}const _0x4ac641=_0x19ce93(),_0x10783e=_0x14ac36['id'],_0x46cccb=_0x339d7a?'insertion:'+_0x339d7a:'insertion',_0x1ce28c=this['_setSuggestionData']({'id':_0x4ac641,'type':_0x46cccb,'createdAt':new Date(),'authorId':_0x10783e,'attributes':_0x13ee6f});return this['_addSuggestionMarker'](_0x46cccb,_0x4ac641,_0x10783e,_0x928cb),_0x1ce28c;}['markMultiRangeInsertion'](_0x13000b,_0xb87494='multi',_0x559ed9={}){const _0x4a4f9b=this['editor']['plugins']['get']('Users')['me'],_0x35f64d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xb87494,'join');for(const _0x2db988 of this['getSuggestions']())if(_0x2db988['author']['id']==_0x4a4f9b['id']&&'insertion'==_0x2db988['type']&&_0x2db988['subType']==_0xb87494&&Lt(_0x2db988,_0x559ed9)&&(_0x35f64d(_0x2db988['getRanges'](),_0x13000b)||_0x35f64d(_0x13000b,_0x2db988['getRanges']()))){for(const _0x50944a of _0x13000b)_0x2db988['addRange'](_0x50944a);return _0x2db988;}for(const {suggestion:_0x1e196f,meta:_0x12a0a1}of this['_findSuggestions'](_0x13000b,'insertion')){if(!_0x12a0a1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x12a0a1['containsRangeInObject'])continue;if(!Lt(_0x1e196f,_0x559ed9))continue;let _0x511597=!0x0;for(const _0x4837e2 of _0x1e196f['getRanges']())for(const _0x2c692f of _0x13000b)if(!_0x4837e2['containsRange'](_0x2c692f)){_0x511597=!0x1;break;}if(_0x511597)return _0x1e196f;}const _0x2071e7=_0x19ce93(),_0x61ec24=_0x4a4f9b['id'],_0x36ed8a='insertion:'+_0xb87494,_0x72f13=this['_setSuggestionData']({'id':_0x2071e7,'type':_0x36ed8a,'createdAt':new Date(),'authorId':_0x61ec24,'attributes':_0x559ed9});for(const _0x47ecde of _0x13000b)this['_addSuggestionMarker'](_0x36ed8a,_0x2071e7,_0x61ec24,_0x47ecde,u['getMultiRangeId']());return _0x72f13;}['markInlineFormat'](_0x9e4983,_0x3cf133,_0xf1dc07=null,_0x2cfbee={}){if(_0xf1dc07=_0xf1dc07||Vt(_0x3cf133),_0x9e4983['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1a777a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xf1dc07,'accept');return this['forceDefaultExecution'](()=>_0x1a777a([_0x9e4983],_0x3cf133,_0x2cfbee)),null;}const _0x5e4c20=this['editor']['plugins']['get']('Users')['me'],_0x19defe=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3fc0a6,meta:_0x519fbe}of this['_findSuggestions'](_0x9e4983,'insertion'))_0x519fbe['isOwn']&&!_0x519fbe['isInsideObject']&&_0x19defe['push'](..._0x3fc0a6['getRanges']());}const _0x3f13e8=function(_0x1a8c0e,_0x51c6eb){const _0x169c7d=[];for(const _0x37f0d6 of _0x51c6eb){const _0x1ac71c=_0x1a8c0e['getIntersection'](_0x37f0d6);_0x1ac71c&&_0x169c7d['push'](_0x1ac71c);}return _0x169c7d;}(_0x9e4983,_0x19defe),_0x3844f1=function(_0xb2ca80,_0x30130c){const _0x2d4105=[_0xb2ca80];for(const _0x556cad of _0x30130c){let _0x198c6d=0x0;for(;_0x198c6d<_0x2d4105['length'];){const _0x2dd3b6=_0x2d4105[_0x198c6d]['getDifference'](_0x556cad);_0x2d4105['splice'](_0x198c6d,0x1,..._0x2dd3b6),_0x198c6d+=_0x2dd3b6['length'];}}return _0x2d4105;}(_0x9e4983,_0x19defe);_0x3f13e8['length']&&this['_model']['change'](()=>{for(const _0x2bf7eb of _0x3f13e8){const _0x49cd83=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xf1dc07,'accept');this['forceDefaultExecution'](()=>_0x49cd83([_0x2bf7eb],_0x3cf133,_0x2cfbee));}});for(const _0x350ef3 of _0x3844f1){let _0x1ff2a1=null,_0x502e82=_0x350ef3['start'],_0x3e4b9e=_0x350ef3['end'];for(const {suggestion:_0x78728d,meta:_0x3e8f9f}of this['_findSuggestions'](_0x350ef3,'formatInline')){if(!_0x3e8f9f['isOwn'])continue;if(_0x78728d['subType']!=_0xf1dc07)continue;if(!Lt(_0x78728d,_0x2cfbee))continue;const _0x2b5a08=_0x78728d['getFirstRange']();if(_0x2b5a08['containsRange'](_0x350ef3,!0x0))return null;_0x502e82=_0x502e82['isBefore'](_0x2b5a08['start'])?_0x502e82:_0x2b5a08['start'],_0x3e4b9e=_0x3e4b9e['isAfter'](_0x2b5a08['end'])?_0x3e4b9e:_0x2b5a08['end'],_0x1ff2a1?_0x2b5a08['start']['isBefore'](_0x1ff2a1['getFirstRange']()['start'])?(_0x1ff2a1['removeMarkers'](),_0x1ff2a1=_0x78728d):_0x78728d['removeMarkers']():_0x1ff2a1=_0x78728d;}const _0x1400e4=this['_model']['createRange'](_0x502e82,_0x3e4b9e);if(_0x1ff2a1)this['_setSuggestionRange'](_0x1ff2a1,_0x1400e4);else{const _0x2d3e8a=_0x19ce93(),_0x38aed5=_0x5e4c20['id'];this['_setSuggestionData']({'id':_0x2d3e8a,'type':'formatInline:'+_0xf1dc07,'data':_0x3cf133,'createdAt':new Date(),'authorId':_0x38aed5,'attributes':_0x2cfbee}),this['_addSuggestionMarker']('formatInline:'+_0xf1dc07,_0x2d3e8a,_0x38aed5,_0x1400e4);}}return null;}['markBlockFormat'](_0x3bfabe,_0x504017,_0x4b1719=[],_0x1fd9c6=null,_0xba7c3={}){_0x504017['formatGroupId']||(_0x504017['formatGroupId']=_0x504017['commandName']),_0x504017['multipleBlocks']=_0x3bfabe['is']('range'),_0x1fd9c6=_0x1fd9c6||Vt(_0x504017);const _0x5db44e=_0x4b1719['map'](_0x5a5403=>Ft(_0x5a5403,this['_model'])),_0x35bffd=_0x3bfabe['is']('range')?_0x3bfabe:Ft(_0x3bfabe,this['_model']);if('never'===this['_trackFormatChanges']){const _0x407de6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fd9c6,'accept');return this['forceDefaultExecution'](()=>_0x407de6([_0x35bffd],_0x504017,_0xba7c3)),null;}_0x5db44e['push'](_0x35bffd);let _0x563bc3=!0x0;for(const _0x32f6e0 of _0x5db44e)if(!this['_rangeIsInLocalUserInsertion'](_0x32f6e0)){_0x563bc3=!0x1;break;}if(_0x563bc3&&'always'!==this['_trackFormatChanges']){const _0x558e99=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fd9c6,'accept');return this['forceDefaultExecution'](()=>_0x558e99([_0x35bffd],_0x504017,_0xba7c3)),null;}let _0x1ef2c5=null,_0x43ca46=_0x35bffd['start'],_0x90fa21=_0x35bffd['end'];for(const {suggestion:_0x29db6b,meta:_0x264ce0}of this['_findSuggestions'](_0x35bffd,'formatBlock')){if(!_0x264ce0['isOwn'])continue;if(_0x264ce0['isNextTo']||_0x264ce0['containsRangeInObject']||_0x264ce0['isInsideObject'])continue;if(_0x29db6b['data']['formatGroupId']!=_0x504017['formatGroupId'])continue;if(!Lt(_0x29db6b,_0xba7c3))continue;const _0x224946=_0x29db6b['getFirstRange']();if(_0x29db6b['subType']==_0x1fd9c6){if(_0x224946['containsRange'](_0x35bffd,!0x0))return null;_0x43ca46=_0x43ca46['isBefore'](_0x224946['start'])?_0x43ca46:_0x224946['start'],_0x90fa21=_0x90fa21['isAfter'](_0x224946['end'])?_0x90fa21:_0x224946['end'],_0x1ef2c5?_0x224946['start']['isBefore'](_0x1ef2c5['getFirstRange']()['start'])?(_0x1ef2c5['removeMarkers'](),_0x1ef2c5=_0x29db6b):_0x29db6b['removeMarkers']():_0x1ef2c5=_0x29db6b;}else{const _0x49531c=_0x35bffd['getIntersection'](_0x224946);this['_cutOutSuggestionMarker'](_0x29db6b,_0x49531c);}}const _0x59b198=this['editor']['plugins']['get']('Users')['me'],_0x4f83cc=_0x19ce93(),_0x192448=_0x59b198['id'];if(_0x1ef2c5)return this['_setSuggestionRange'](_0x1ef2c5,this['_model']['createRange'](_0x43ca46,_0x90fa21)),_0x1ef2c5;{const _0x326ecb=this['_setSuggestionData']({'id':_0x4f83cc,'type':'formatBlock:'+_0x1fd9c6,'data':_0x504017,'createdAt':new Date(),'authorId':_0x192448,'attributes':_0xba7c3});return this['_addSuggestionMarker']('formatBlock:'+_0x1fd9c6,_0x4f83cc,_0x192448,this['_model']['createRange'](_0x43ca46,_0x90fa21)),_0x326ecb;}}['markMultiRangeBlockFormat'](_0x3716ef,_0x120498,_0xa01258=[],_0x3b494f=null,_0x202a10={}){_0x120498['formatGroupId']||(_0x120498['formatGroupId']=_0x120498['commandName']);const _0x2b10c5=_0x3716ef[0x0];_0x120498['multipleBlocks']=_0x2b10c5['is']('range'),_0x3b494f=_0x3b494f||Vt(_0x120498);const _0x3792fc=_0xa01258['map'](_0x1ae6b8=>Ft(_0x1ae6b8,this['_model'])),_0x11dfa1=_0x2b10c5['is']('range')?_0x3716ef:_0x3716ef['map'](_0x18f4a7=>Ft(_0x18f4a7,this['_model']));if('never'===this['_trackFormatChanges']){const _0x43c349=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b494f,'accept');return this['forceDefaultExecution'](()=>_0x43c349(_0x11dfa1,_0x120498,_0x202a10)),null;}_0x3792fc['push'](..._0x11dfa1);let _0x23dae8=!0x0;for(const _0x48e076 of _0x3792fc)if(!this['_rangeIsInLocalUserInsertion'](_0x48e076)){_0x23dae8=!0x1;break;}if(_0x23dae8&&'always'!==this['_trackFormatChanges']){const _0x3e18b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b494f,'accept');return this['forceDefaultExecution'](()=>_0x3e18b(_0x11dfa1,_0x120498,_0x202a10)),null;}const _0x33102a=this['editor']['plugins']['get']('Users')['me'];for(const _0x35e5fc of this['getSuggestions']()){if(_0x35e5fc['author']['id']!=_0x33102a['id'])continue;if('formatBlock'!=_0x35e5fc['type']||_0x35e5fc['data']['formatGroupId']!=_0x120498['formatGroupId'])continue;if(!Lt(_0x35e5fc,_0x202a10))continue;const _0x1c63f5=_0x35e5fc['subType']==_0x3b494f;for(let _0x12d0c8=0x0;_0x12d0c8<_0x11dfa1['length'];_0x12d0c8++){const _0x4d1ee5=_0x11dfa1[_0x12d0c8];for(const _0x1b46c8 of _0x35e5fc['getMarkers']()){const _0x4b0a00=_0x1b46c8['getRange']();if(_0x4d1ee5['isEqual'](_0x4b0a00)){_0x1c63f5?(_0x11dfa1['splice'](_0x12d0c8,0x1),_0x12d0c8--):_0x35e5fc['removeMarker'](_0x1b46c8['name']);break;}}}}if(0x0==_0x11dfa1['length'])return null;const _0x1a0e64=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b494f,'join');for(const _0x416fdf of this['getSuggestions']())if(_0x416fdf['author']['id']==_0x33102a['id']&&'formatBlock'==_0x416fdf['type']&&_0x416fdf['data']['formatGroupId']==_0x120498['formatGroupId']&&_0x416fdf['subType']==_0x3b494f&&Lt(_0x416fdf,_0x202a10)&&(_0x1a0e64(_0x416fdf['getRanges'](),_0x11dfa1)||_0x1a0e64(_0x11dfa1,_0x416fdf['getRanges']()))){for(const _0xd4d7f of _0x11dfa1)_0x416fdf['addRange'](_0xd4d7f);return _0x416fdf;}const _0x4d6afa=_0x19ce93(),_0x34d381=_0x33102a['id'],_0x35dbe6='formatBlock:'+_0x3b494f,_0x555545=this['_setSuggestionData']({'id':_0x4d6afa,'type':_0x35dbe6,'data':_0x120498,'createdAt':new Date(),'authorId':_0x34d381,'attributes':_0x202a10});for(const _0xed728f of _0x11dfa1)this['_addSuggestionMarker'](_0x35dbe6,_0x4d6afa,_0x34d381,_0xed728f,u['getMultiRangeId']());return _0x555545;}['markDeletion'](_0x98e946,_0x593b12=null,_0x1a4021={}){if(_0x98e946['isCollapsed'])return null;const _0x4aeb8e=this['editor']['plugins']['get']('Users')['me'],_0x322bd3=new _0x2c1830(_0x98e946['start'],_0x98e946['end']);for(const {suggestion:_0x1846bd,meta:_0x472db2}of this['_findSuggestions'](_0x322bd3,'insertion'))if(_0x472db2['isOwn']&&!_0x472db2['isNextTo']){if(_0x1846bd['isMultiRange']){const _0x9fd9af=_0x1846bd['getRanges']()['filter'](_0x2c9c79=>'$graveyard'!=_0x2c9c79['root']['rootName']);_0x9fd9af['every'](_0x50aacb=>_0x322bd3['containsRange'](_0x50aacb,!0x0))&&_0x1846bd['discard']();if(_0x9fd9af['some'](_0x151bc8=>_0x151bc8['containsRange'](_0x322bd3,!0x0))){const _0x589eaf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x593b12,'accept');return this['forceDefaultExecution'](()=>_0x589eaf([_0x322bd3],null,_0x1a4021)),null;}}else{const _0x2b8e81=_0x322bd3['getIntersection'](_0x1846bd['getFirstRange']());null!==_0x2b8e81&&_0x1846bd['_onDiscard']([_0x2b8e81],null,_0x1a4021);}}if(_0x322bd3['detach'](),_0x322bd3['isCollapsed']||'$graveyard'==_0x322bd3['root']['rootName'])return null;let _0x40c482=null,_0x2bc721=_0x322bd3['start'],_0x5aabc0=_0x322bd3['end'];const _0x1472ab=this['_findSuggestions'](_0x322bd3,'deletion');for(const {suggestion:_0x25060a,meta:_0x1eb1b5}of _0x1472ab){const _0x2a85f6=this['_model']['createRange'](_0x2bc721,_0x5aabc0);if(_0x1eb1b5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1eb1b5['containsRangeInObject']&&!_0x1eb1b5['isInsideObject'])){if(_0x25060a['isMultiRange']){if(!Lt(_0x25060a,_0x1a4021))continue;let _0xd5824b=!0x0;for(const _0x1b1b51 of _0x25060a['getRanges']()){if(_0x1b1b51['containsRange'](_0x2a85f6,!0x0))return _0x25060a;_0x2a85f6['containsRange'](_0x1b1b51)||(_0xd5824b=!0x1);}_0xd5824b&&_0x25060a['discard']();}else{const _0x2644bd=_0x25060a['getFirstRange']();if(_0x2644bd['containsRange'](_0x2a85f6,!0x0))return _0x25060a;if(!Lt(_0x25060a,_0x1a4021)){_0x2a85f6['containsRange'](_0x2644bd)?_0x25060a['removeMarkers']():_0x2644bd['containsPosition'](_0x2bc721)?_0x2bc721=_0x2644bd['end']:_0x2644bd['containsPosition'](_0x5aabc0)&&(_0x5aabc0=_0x2644bd['start']);continue;}_0x2bc721=_0x2bc721['isBefore'](_0x2644bd['start'])?_0x2bc721:_0x2644bd['start'],_0x5aabc0=_0x5aabc0['isAfter'](_0x2644bd['end'])?_0x5aabc0:_0x2644bd['end'],_0x1a4021=Object['assign']({},_0x25060a['attributes']),_0x40c482?_0x2644bd['start']['isBefore'](_0x40c482['getFirstRange']()['start'])?(_0x40c482['removeMarkers'](),_0x40c482=_0x25060a):_0x25060a['removeMarkers']():_0x40c482=_0x25060a;}}}if(_0x40c482)return this['_setSuggestionRange'](_0x40c482,this['_model']['createRange'](_0x2bc721,_0x5aabc0)),_0x40c482;{const _0x5efab2=_0x19ce93(),_0xcab445=this['_model']['createRange'](_0x2bc721,_0x5aabc0),_0x1bfda6=_0x4aeb8e['id'],_0x3f16eb=_0x593b12?'deletion:'+_0x593b12:'deletion',_0x16a648=this['_setSuggestionData']({'id':_0x5efab2,'type':_0x3f16eb,'createdAt':new Date(),'authorId':_0x1bfda6,'attributes':_0x1a4021});return this['_addSuggestionMarker'](_0x3f16eb,_0x5efab2,_0x1bfda6,_0xcab445),_0x16a648;}}['markMultiRangeDeletion'](_0x5035cd,_0x5d9ca0='multi',_0x15a8f3={}){const _0x49398b=this['editor']['plugins']['get']('Users')['me'],_0x245999=_0x5035cd['map'](_0x43966b=>new _0x2c1830(_0x43966b['start'],_0x43966b['end'])),_0x555b1f=new Set();for(const {suggestion:_0x34b093,meta:_0x525233}of this['_findSuggestions'](_0x245999,'insertion'))_0x525233['isOwn']&&!_0x525233['isNextTo']&&_0x555b1f['add'](_0x34b093);for(const _0x2d28d0 of _0x555b1f)if(_0x2d28d0['isMultiRange']){const _0x327f7e=_0x2d28d0['getRanges']();(!_0x2d28d0['attributes']||!_0x2d28d0['attributes']['skipNestingCheck'])&&(_0x327f7e['every'](_0x2a08c8=>_0x245999['some'](_0x52c8bf=>_0x52c8bf['containsRange'](_0x2a08c8,!0x0)))&&_0x2d28d0['discard']());if(_0x245999['every'](_0x167c03=>_0x327f7e['some'](_0x529f11=>_0x529f11['containsRange'](_0x167c03,!0x0)))){const _0x16b501=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d9ca0,'accept');return this['forceDefaultExecution'](()=>_0x16b501(_0x5035cd,null,_0x15a8f3)),null;}}else{const _0x117b4a=_0x2d28d0['getFirstRange']();_0x245999['some'](_0x201e26=>_0x201e26['containsRange'](_0x117b4a,!0x0))&&_0x2d28d0['discard']();if(_0x245999['every'](_0x59aec5=>_0x117b4a['containsRange'](_0x59aec5,!0x0))){const _0x4edb63=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d9ca0,'accept');return this['forceDefaultExecution'](()=>_0x4edb63(_0x245999,null,_0x15a8f3)),null;}}const _0x46af49=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5d9ca0,'join');let _0x4a9d63=null;for(const _0x4df1bd of this['getSuggestions']())if(_0x4df1bd['author']['id']==_0x49398b['id']&&_0x4df1bd['isInContent']&&'deletion'==_0x4df1bd['type']&&_0x4df1bd['subType']==_0x5d9ca0&&Lt(_0x4df1bd,_0x15a8f3)&&(_0x46af49(_0x4df1bd['getRanges'](),_0x245999)||_0x46af49(_0x245999,_0x4df1bd['getRanges']()))){if(_0x4a9d63){if(_0x4df1bd['commentThread']&&_0x4df1bd['commentThread']['length'])continue;for(const _0x8deb7f of _0x4df1bd['getRanges']())_0x4a9d63['isIntersectingWithRange'](_0x8deb7f)||_0x4a9d63['addRange'](_0x8deb7f);_0x4df1bd['removeMarkers']();}else{_0x4a9d63=_0x4df1bd;for(const _0x51868e of _0x245999)_0x4df1bd['isIntersectingWithRange'](_0x51868e)||_0x4df1bd['addRange'](_0x51868e);}}if(_0x4a9d63)return _0x4a9d63;_0x555b1f['clear']();for(const {suggestion:_0x104f96,meta:_0x4e3542}of this['_findSuggestions'](_0x245999,'deletion'))_0x4e3542['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4e3542['containsRangeInObject']&&!_0x4e3542['isInsideObject'])&&Lt(_0x104f96,_0x15a8f3)&&_0x555b1f['add'](_0x104f96);for(const _0xcc8b08 of _0x555b1f){const _0x296bda=_0xcc8b08['getRanges']();if(!_0x15a8f3||!_0x15a8f3['skipNestingCheck']){if(_0x245999['every'](_0x18d4cc=>_0x296bda['some'](_0xd857e=>_0xd857e['containsRange'](_0x18d4cc,!0x0))))return _0xcc8b08;}(!_0xcc8b08['attributes']||!_0xcc8b08['attributes']['skipNestingCheck'])&&(_0x296bda['every'](_0x500613=>_0x245999['some'](_0x4e0d21=>_0x4e0d21['containsRange'](_0x500613,!0x0)))&&_0xcc8b08['discard']());}const _0x2c5159=_0x19ce93(),_0x2a1513=_0x49398b['id'],_0x4ec013='deletion:'+_0x5d9ca0,_0x566413=this['_setSuggestionData']({'id':_0x2c5159,'type':_0x4ec013,'createdAt':new Date(),'authorId':_0x2a1513,'attributes':_0x15a8f3});for(const _0x365785 of _0x245999)_0x365785['detach'](),_0x365785['isCollapsed']||'$graveyard'==_0x365785['root']['rootName']||this['_addSuggestionMarker'](_0x4ec013,_0x2c5159,_0x2a1513,_0x365785,u['getMultiRangeId']());return _0x566413;}['markAttributeChange'](_0x5ef79f,_0x266ede,_0x268a08,_0x438d0c,_0x82f0d5){if(_0x5ef79f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5b8cb1=this['editor']['plugins']['get']('Users')['me']['id'],_0x47ae7a=Array['from'](this['_suggestions']['values']())['filter'](_0x133647=>'attribute'==_0x133647['type']&&_0x133647['data']['key']==_0x266ede&&_0x133647['isIntersectingWithRange'](_0x5ef79f));if('default'===this['_trackFormatChanges']){const _0x1a8fa0=this['_findSuggestions'](_0x5ef79f,'insertion')['filter'](({meta:_0xf33b51})=>_0xf33b51['isOwn']&&!_0xf33b51['isInsideObject']&&!_0xf33b51['isNextTo'])['map'](({suggestion:_0x1280e5})=>_0x1280e5);_0x47ae7a['unshift'](..._0x1a8fa0);}const _0x4f9795=new Map([[_0x5ef79f,_0x268a08]]);for(const _0x6585a7 of _0x47ae7a){const _0x3ee53e='attribute'==_0x6585a7['type']?_0x6585a7['data']['oldValue']:void 0x0,_0x5958be=_0x6585a7['getFirstRange'](),_0x5bb991=Array['from'](_0x4f9795['keys']())['find'](_0x30b8e9=>_0x30b8e9['isIntersecting'](_0x5958be));if(!_0x5bb991)continue;const _0x5413c8=_0x5bb991['getDifference'](_0x5958be);this['_isBlockAttribute'](_0x266ede)&&'insertion'==_0x6585a7['type']&&0x0!=_0x5413c8['length']||(_0x4f9795['delete'](_0x5bb991),_0x5413c8['forEach'](_0xd92044=>{_0x4f9795['set'](_0xd92044,_0x268a08);}),'insertion'!=_0x6585a7['type']&&_0x3ee53e!=_0x438d0c&&_0x4f9795['set'](_0x5bb991['getIntersection'](_0x5958be),_0x3ee53e));}const _0x155820=[];for(const [_0x1d00d6,_0xf7bbcc]of _0x4f9795){const _0x59f4c5=_0x19ce93(),_0x4baed4={'key':_0x266ede,'oldValue':_0xf7bbcc,'newValue':_0x438d0c};_0x266ede['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':_0x266ede});const _0x3efb71=('attribute:'+(_0x266ede+'|'+Vt({'newValue':_0x438d0c})))['substring'](0x0,0x3c),_0x265be9=this['_setSuggestionData']({'id':_0x59f4c5,'type':_0x3efb71,'data':_0x4baed4,'createdAt':new Date(),'authorId':_0x5b8cb1,'attributes':_0x82f0d5});_0x155820['push'](_0x265be9),this['_addSuggestionMarker'](_0x3efb71,_0x59f4c5,_0x5b8cb1,_0x1d00d6);}return _0x155820;}['enableDefaultAttributesIntegration'](_0xb4244e){this['enableCommand'](_0xb4244e,(_0x17ee6d,..._0xb879a3)=>{this['_recordAttributeChanges'](()=>{_0x17ee6d(..._0xb879a3);});});}['registerBlockAttribute'](_0x2fa52a){this['_blockAttributeKeys']['add'](_0x2fa52a);}['registerInlineAttribute'](_0x55d352){this['_inlineAttributeKeys']['add'](_0x55d352);}['_getAttributeKey'](_0xf4963f){return'attribute'==_0xf4963f['type']?_0xf4963f['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3db94a,_0x529d0e){const _0x3d5aa4=_0x3db94a['getFirstMarker']();this['_model']['change'](_0x23f762=>{_0x23f762['updateMarker'](_0x3d5aa4,{'range':_0x529d0e});});}['_addThreadToSuggestion'](_0xa14696){const _0x1454de=_0xa14696['id'],_0x479e01=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1454de)||this['_commentsRepository']['addCommentThread']({'channelId':_0x479e01,'threadId':_0x1454de,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2fbf1c=this['_commentsRepository']['getCommentThread'](_0x1454de);_0x2fbf1c['unbind']('isRemovable'),_0x2fbf1c['isRemovable']=!0x1,_0xa14696['commentThread']=_0x2fbf1c;}['_checkSuggestionCorrectness'](_0x626ca8,_0x313e8a,_0x1bfa57,_0x2a73b9){if(_0x626ca8['type']!=_0x313e8a||_0x626ca8['subType']!=_0x1bfa57||_0x626ca8['creator']['id']!=_0x2a73b9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2d4aa9('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x32d6f4,_0x1c6b66){const _0x1a0445=_0x32d6f4['getFirstRange']();if(_0x1c6b66['isEqual'](_0x1a0445))_0x32d6f4['removeMarkers']();else{if(_0x1a0445['containsRange'](_0x1c6b66)){const _0x4fbbee=this['_model']['createPositionAt'](_0x1c6b66['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x32d6f4,this['_model']['createRange'](_0x1a0445['start'],_0x4fbbee));const _0x39e945=_0x19ce93(),_0x44a571=_0x32d6f4['creator']['id'],_0x504e3c=_0x32d6f4['type']+':'+_0x32d6f4['subType'];this['_setSuggestionData']({'id':_0x39e945,'type':_0x504e3c,'createdAt':new Date(),'authorId':_0x44a571,'data':_0x32d6f4['data'],'attributes':_0x32d6f4['attributes']});const _0x569bb4=this['_model']['createPositionAt'](_0x1c6b66['end']['parent'],'after'),_0x10bbb8=this['_model']['createRange'](_0x569bb4,_0x1a0445['end']);this['_addSuggestionMarker'](_0x504e3c,_0x39e945,_0x44a571,_0x10bbb8);}else{if(_0x1a0445['containsPosition'](_0x1c6b66['start'])){const _0x12a089=this['_model']['createPositionAt'](_0x1c6b66['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x32d6f4,this['_model']['createRange'](_0x1a0445['start'],_0x12a089));}else{const _0x5ae1de=this['_model']['createPositionAt'](_0x1c6b66['end']['parent'],'after');this['_setSuggestionRange'](_0x32d6f4,this['_model']['createRange'](_0x5ae1de,_0x1a0445['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3e66d4){for(const {suggestion:_0x23addd,meta:_0x3d1aa5}of this['_findSuggestions'](_0x3e66d4,'insertion')){if(!_0x3d1aa5['isOwn'])continue;const _0x4aa250=_0x23addd['getRanges']();for(const _0x4da08c of _0x4aa250)if(!_0x3e66d4['getDifference'](_0x4da08c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3ad69f){const _0x5ae140=this['editor']['plugins']['get']('Users')['getUser'](_0x3ad69f);if(!_0x5ae140)throw new _0x2d4aa9('track-changes-user-not-found',this);return _0x5ae140;}['_getExternalAuthor'](_0x199db8){const _0x47d754=this['editor']['plugins']['get']('Users'),_0x1405d8=_0x5f23c5('external:'+_0x199db8),_0x48698a=_0x47d754['getUser'](_0x1405d8);return _0x48698a||_0x47d754['addUser']({'id':_0x1405d8,'name':_0x199db8});}['_createSuggestion'](_0x18ce57,_0xd2827f,_0x56c4a1,_0x5747b8,_0x36157b){const _0x484a27=this['_getAuthorFromId'](_0x5747b8),_0x3cd1fb=this['_suggestionFactory']['buildSuggestion'](_0x18ce57,_0xd2827f,_0x56c4a1,_0x484a27,_0x36157b,_0x28b4b8=>{this['_updateSuggestionData'](_0x56c4a1,{'attributes':_0x28b4b8});const _0x546676=this['getSuggestion'](_0x56c4a1);this['_joinWithAdjacentSuggestions'](new Set([_0x546676])),this['_refreshSuggestionsChain'](new Set([_0x546676]));});return this['listenTo'](_0x3cd1fb,'accept',()=>{this['_updateSuggestionData'](_0x56c4a1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3cd1fb,'discard',()=>{this['_updateSuggestionData'](_0x56c4a1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x56c4a1,_0x3cd1fb),this['_suggestionState']['set'](_0x3cd1fb,'notReady'),_0x3cd1fb;}['_splitMarkerName'](_0x1d6f81){const _0x4c909e=_0x1d6f81['split'](':');return{'group':_0x4c909e[0x0],'type':_0x4c909e[0x1],'subType':_0x4c909e['length']>=0x5?_0x4c909e[0x2]:null,'id':_0x4c909e['length']<0x5?_0x4c909e[0x2]:_0x4c909e[0x3],'authorId':_0x4c909e['length']<0x5?_0x4c909e[0x3]:_0x4c909e[0x4],'markerCount':0x6==_0x4c909e['length']?_0x4c909e[0x5]:null};}['_breakSuggestionMarker'](_0x1b2f10,_0x8cee3c,_0x424d01){const _0x32c181=_0x1b2f10['getFirstRange'](),_0x4cf415=_0x32c181['start'],_0x30b7c8=_0x32c181['end'];this['_setSuggestionRange'](_0x1b2f10,this['_model']['createRange'](_0x4cf415,_0x8cee3c));const _0x1a1802=_0x19ce93(),_0x1b51b7=_0x1b2f10['creator']['id'],_0x333fbe=_0x1b2f10['type']+(_0x1b2f10['subType']?':'+_0x1b2f10['subType']:'');this['_setSuggestionData']({'id':_0x1a1802,'type':_0x333fbe,'createdAt':new Date(),'authorId':_0x1b51b7,'originalSuggestionId':_0x1b2f10['id'],'attributes':_0x1b2f10['attributes'],'data':_0x1b2f10['data']});const _0x51becb=this['_getAttributeKey'](_0x1b2f10);('formatBlock'==_0x1b2f10['type']||_0x51becb&&this['_isBlockAttribute'](_0x51becb))&&(_0x424d01=this['_model']['createPositionBefore'](_0x424d01['parent'])),this['_addSuggestionMarker'](_0x333fbe,_0x1a1802,_0x1b51b7,this['_model']['createRange'](_0x424d01,_0x30b7c8));}['_findSuggestions'](_0x4ebfb2,_0x81e368=null){const _0xac10d4=[],_0x4eed94=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4ebfb2)||(_0x4ebfb2=[_0x4ebfb2]);for(const _0x34648c of this['getSuggestions']()){if(!_0x34648c['isInContent'])continue;if(_0x81e368&&_0x34648c['type']!=_0x81e368)continue;let _0x32bdb2=!0x1;for(const _0x509e83 of _0x34648c['getRanges']()){for(const _0x2c2c66 of _0x4ebfb2){const _0x1490c8=_0x2c2c66['start']['isEqual'](_0x509e83['end'])||_0x2c2c66['end']['isEqual'](_0x509e83['start']);if(_0x1490c8||_0x2c2c66['getIntersection'](_0x509e83)){const _0x4ef36f=_0x2c2c66['containsRange'](_0x509e83)&&Rt(this['_model']['schema'],_0x509e83['start'],_0x2c2c66),_0x19451d=_0x509e83['containsRange'](_0x2c2c66)&&Rt(this['_model']['schema'],_0x2c2c66['start'],_0x509e83);_0xac10d4['push']({'suggestion':_0x34648c,'meta':{'isOwn':_0x4eed94==_0x34648c['author'],'isNextTo':_0x1490c8,'isInsideObject':_0x4ef36f,'containsRangeInObject':_0x19451d}}),_0x32bdb2=!0x0;break;}}if(_0x32bdb2)break;}}return _0xac10d4;}['_addSuggestionMarker'](_0x3c2347,_0xc7c50c,_0x4b8ca4,_0xb3598d,_0x42354e){this['_model']['change'](_0x26b4d0=>{let _0x1a3b2a='suggestion:'+_0x3c2347+':'+_0xc7c50c+':'+_0x4b8ca4;_0x42354e&&(_0x1a3b2a=_0x1a3b2a+':'+_0x42354e),_0x26b4d0['addMarker'](_0x1a3b2a,{'range':_0xb3598d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xee86f0){const _0x378829=_0xee86f0['previous'],_0x273a1e=_0xee86f0['next'];_0xee86f0['previous']=null,_0xee86f0['next']=null,null!=_0x378829&&_0x378829['next']==_0xee86f0&&(_0x378829['next']=_0x273a1e),null!=_0x273a1e&&_0x273a1e['previous']==_0xee86f0&&(_0x273a1e['previous']=_0x378829),'ready'==this['_suggestionState']['get'](_0xee86f0)&&(this['_suggestionState']['set'](_0xee86f0,'removed'),this['fire']('suggestionUnloaded',_0xee86f0,_0x378829,_0x273a1e));}['_setSuggestionData'](_0x14d391){const _0xddc54=_0x14d391['id'],_0x1d89d9=this['addSuggestionData'](_0x14d391);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x58cb24=this['editor']['plugins']['get']('PendingActions'),_0x3f180f=_0x1d89d9['hasComments'],_0x32a50c=_0x1d89d9['subType']?_0x1d89d9['type']+':'+_0x1d89d9['subType']:_0x1d89d9['type'],_0x127a58=this['editor']['locale'],_0x1a386b=_0x58cb24['add'](o(_0x127a58,'PENDING_ACTION_SUGGESTION')),_0x1901f5={'id':_0xddc54,'type':_0x32a50c,'hasComments':_0x3f180f,'data':_0x14d391['data']||null,'originalSuggestionId':_0x14d391['originalSuggestionId']||null,'attributes':_0x1d89d9['attributes']};this['_adapter']['addSuggestion'](_0x1901f5)['then'](_0x131e84=>{_0x1d89d9['_saved']=!0x0,_0x58cb24['remove'](_0x1a386b),_0x131e84&&_0x131e84['createdAt']&&(this['_suggestions']['get'](_0xddc54)['createdAt']=_0x131e84['createdAt']);})['catch'](_0x2e4155=>{throw _0x2b683c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1d89d9['discard']();}),_0x1d89d9['stopListening'](),this['_suggestions']['delete'](_0x1d89d9['id']),this['_suggestionState']['delete'](_0x1d89d9),_0x2e4155;});}return _0x1d89d9;}['_isBlockAttribute'](_0x1e7dd6){return this['_blockAttributeKeys']['has'](_0x1e7dd6);}['_updateSuggestionData'](_0x595be2,_0x26192d){const _0x36335e=this['editor']['plugins']['get']('PendingActions'),_0x49e442=this['getSuggestion'](_0x595be2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x49e442['_saved']){const _0x4709b7=_0x36335e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x595be2,_0x26192d)['then'](()=>{_0x36335e['remove'](_0x4709b7);});}else _0x49e442['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x595be2,_0x26192d);});}}['_getSuggestionData'](_0x25a3eb){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2d4aa9('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x25a3eb);}['_handleNewSuggestionMarker'](_0x16d5f){const {id:_0x578133,type:_0x168dce,subType:_0x4d80a4,authorId:_0x2fab7e}=this['_splitMarkerName'](_0x16d5f),_0x3a7b12=this['_suggestions']['get'](_0x578133)||this['_createSuggestion'](_0x168dce,_0x4d80a4,_0x578133,_0x2fab7e,{});switch(this['_checkSuggestionCorrectness'](_0x3a7b12,_0x168dce,_0x4d80a4,_0x2fab7e),this['_suggestionState']['get'](_0x3a7b12)){case'notReady':this['_getSuggestionData'](_0x578133)['then'](_0x57b8aa=>{let _0x4847d6=Promise['resolve']();_0x57b8aa['hasComments']&&(_0x4847d6=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x578133})),_0x4847d6['then'](()=>{this['addSuggestionData'](_0x57b8aa)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3a7b12,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x578133,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3a7b12,'ready'),this['fire']('suggestionLoaded',_0x3a7b12);break;case'ready':this['fire']('suggestionChanged',_0x3a7b12);}return _0x3a7b12['addMarkerName'](_0x16d5f),_0x3a7b12;}['_refreshSuggestionsChain'](_0x147d35){const _0x2c9534=Array['from'](_0x147d35),_0x4e555f=_0x2c9534['filter'](_0x4858cd=>'attribute'==_0x4858cd['type']);this['_refreshAttributeSuggestionsChain'](_0x4e555f);const _0xb19417=_0x2c9534['filter'](_0x4b5f92=>!_0x4b5f92['isMultiRange']&&'attribute'!=_0x4b5f92['type']),_0x4e4cc3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2bcac6=>!_0x2bcac6['isMultiRange']&&'attribute'!=_0x2bcac6['type']),_0x1c0596=_0x4e4cc3['filter'](_0x5db8fa=>!_0x147d35['has'](_0x5db8fa)),_0x3d6d7a=new Map(_0x4e4cc3['map'](_0x4a9b67=>[_0x4a9b67,this['_suggestionFactory']['getSuggestionCallback'](_0x4a9b67['type'],_0x4a9b67['subType'],'chain')])),_0x200a7b=new Map(_0x4e4cc3['map'](_0x5908f4=>[_0x5908f4,_0x5908f4['getFirstRange']()])),_0x4ec2da=new Set(),_0x571d53=new Set();for(let _0x4e788d=0x0;_0x4e788d<_0xb19417['length'];_0x4e788d++)_0x49f8ab(_0xb19417[_0x4e788d],_0xb19417,_0x4e788d+0x1);for(let _0x46389b=0x0;_0x46389b<_0xb19417['length'];_0x46389b++)_0x49f8ab(_0xb19417[_0x46389b],_0x1c0596,0x0);const _0x4231e1=new Set();for(let _0x123c79=0x0;_0x123c79<_0xb19417['length'];_0x123c79++){const _0x548805=_0xb19417[_0x123c79];!_0x571d53['has'](_0x548805)&&_0x548805['previous']&&(_0x4231e1['add'](_0x548805['previous']),_0x548805['previous']['next']===_0x548805&&(_0x548805['previous']['next']=null),_0x548805['previous']=null),!_0x4ec2da['has'](_0x548805)&&_0x548805['next']&&(_0x4231e1['add'](_0x548805['next']),_0x548805['next']['previous']===_0x548805&&(_0x548805['next']['previous']=null),_0x548805['next']=null);}function _0x49f8ab(_0x344d6d,_0x338d53,_0x82c96){for(let _0x329f78=_0x82c96;_0x329f78<_0x338d53['length'];_0x329f78++){const _0xe86987=_0x2263f0(_0x344d6d,_0x338d53[_0x329f78]);_0xe86987&&(_0xe86987[0x0]['next']=_0xe86987[0x1],_0xe86987[0x1]['previous']=_0xe86987[0x0],_0x4ec2da['add'](_0xe86987[0x0]),_0x571d53['add'](_0xe86987[0x1]));}}function _0x2263f0(_0xda3cbf,_0x24a249){if(_0xda3cbf['author']['id']!==_0x24a249['author']['id'])return null;const _0x54c536=_0x3d6d7a['get'](_0xda3cbf)(_0xda3cbf,_0x24a249,_0x200a7b['get'](_0xda3cbf),_0x200a7b['get'](_0x24a249));if(!_0x54c536)return null;return _0x3d6d7a['get'](_0x24a249)(_0xda3cbf,_0x24a249,_0x200a7b['get'](_0xda3cbf),_0x200a7b['get'](_0x24a249))?_0x54c536[0x1]['commentThread']&&_0x54c536[0x1]['commentThread']['length']?null:_0x54c536:null;}_0x4231e1['size']&&this['_refreshSuggestionsChain'](_0x4231e1);}['_refreshAttributeSuggestionsChain'](_0x2b30ca){if(0x0==_0x2b30ca['length'])return;const _0x5223d9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57260d=>'attribute'==_0x57260d['type']&&_0x57260d['_isDataLoaded']),_0x188245=[],_0x4e01ca=new Map();for(const _0xa29383 of _0x5223d9){const _0xa7c98f=_0x5f23c5(_0xa29383['attributes']);_0x4e01ca['has'](_0xa7c98f)||(_0x4e01ca['set'](_0xa7c98f,_0x188245['length']),_0x188245['push']([]));const _0x5a2fa1=_0x4e01ca['get'](_0xa7c98f);_0x188245[_0x5a2fa1]['push'](_0xa29383);}!(function(){_0x188245['sort']((_0x5f3e6f,_0x52b878)=>{const _0x10b1ac=_0x5f3e6f[0x0]['createdAt'],_0x2a7d41=_0x52b878[0x0]['createdAt'];return _0x10b1ac==_0x2a7d41?_0x5f3e6f[0x0]['attributes']['groupId']<_0x52b878[0x0]['attributes']['groupId']?-0x1:0x1:_0x10b1ac<_0x2a7d41?-0x1:0x1;});for(const _0x10f66c of _0x188245)_0x10f66c['sort']((_0x455647,_0x432c86)=>_0x455647['id']<_0x432c86['id']?-0x1:0x1);}());for(let _0x2b492d=0x0;_0x2b492d<_0x188245['length'];_0x2b492d++){if(0x0==_0x188245[_0x2b492d]['length'])continue;const _0x186897=[];for(let _0x3c2904=_0x2b492d+0x1;_0x3c2904<_0x188245['length'];_0x3c2904++)0x0!=_0x188245[_0x3c2904]['length']&&_0xc4e5d5(_0x188245[_0x2b492d],_0x188245[_0x3c2904])&&_0x186897['push'](_0x3c2904);for(const _0x405828 of _0x186897)_0x188245[_0x2b492d]=_0x188245[_0x2b492d]['concat'](_0x188245[_0x405828]),_0x188245[_0x405828]=[];}for(const _0x447b13 of _0x188245)for(let _0x1ecd21=0x0;_0x1ecd21<_0x447b13['length'];_0x1ecd21++)_0x447b13[_0x1ecd21]['next']=_0x447b13[_0x1ecd21+0x1]||null;for(const _0x5dc3e8 of _0x188245)for(let _0x261e4b=0x0;_0x261e4b<_0x5dc3e8['length'];_0x261e4b++)_0x5dc3e8[_0x261e4b]['previous']=_0x5dc3e8[_0x261e4b-0x1]||null;function _0xc4e5d5(_0x40a3d1,_0x1e4298){if(_0x40a3d1[0x0]['attributes']['groupId']!==_0x1e4298[0x0]['attributes']['groupId']&&_0x40a3d1[0x0]['author']!==_0x1e4298[0x0]['author'])return!0x1;if(!function(_0x5d0972,_0x4f5fe7){if(!_0x5d0972['hasComments']&&!_0x4f5fe7['hasComments'])return!0x0;if(_0x5d0972['hasComments']&&_0x4f5fe7['hasComments'])return!0x1;if(_0x5d0972['hasComments']&&_0x4f5fe7['createdAt']<_0x5d0972['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4f5fe7['hasComments']&&_0x5d0972['createdAt']<_0x4f5fe7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x40a3d1[0x0],_0x1e4298[0x0]))return!0x1;const _0x58fe96=Bt(_0x40a3d1[0x0]['attributes'],'groupId'),_0x1be3c5=Bt(_0x1e4298[0x0]['attributes'],'groupId');if(!_0x32719b(_0x58fe96,_0x1be3c5))return!0x1;return!!_0x40a3d1['every'](_0x288aec=>_0x1e4298['some'](_0x29714a=>_0x288aec['getFirstRange']()['isEqual'](_0x29714a['getFirstRange']())))&&_0x1e4298['every'](_0x5c4e2a=>_0x40a3d1['some'](_0x44a605=>_0x5c4e2a['getFirstRange']()['isEqual'](_0x44a605['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xd05fe9){const _0x4f04c8=Array['from'](_0xd05fe9),_0x2aa62e=this['getSuggestions']({'skipNotAttached':!0x0}),_0xf769ba=_0x2aa62e['filter'](_0x110dc6=>!_0xd05fe9['has'](_0x110dc6)),_0x4fd573=new Map(_0x4f04c8['map'](_0x22a09f=>[_0x22a09f,this['_suggestionFactory']['getSuggestionCallback'](_0x22a09f['type'],_0x22a09f['subType'],'join')])),_0x5a844c=new Map(_0x2aa62e['map'](_0x2cd7f6=>[_0x2cd7f6,_0x2cd7f6['getRanges']()]));for(let _0x52011d=0x0;_0x52011d<_0x4f04c8['length'];_0x52011d++){if(_0x2d2f75(this,_0x4f04c8[_0x52011d],_0x4f04c8,_0x52011d+0x1))return!0x0;}for(let _0x282a5a=0x0;_0x282a5a<_0x4f04c8['length'];_0x282a5a++){if(_0x2d2f75(this,_0x4f04c8[_0x282a5a],_0xf769ba,0x0))return!0x0;}return!0x1;function _0x2d2f75(_0xe8f3ed,_0x25c04d,_0xac1344,_0x1a58b3){for(let _0x38b64f=_0x1a58b3;_0x38b64f<_0xac1344['length'];_0x38b64f++){const _0x12a729=_0xac1344[_0x38b64f];if(_0x12a729['type']!==_0x25c04d['type']||_0x12a729['author']['id']!==_0x25c04d['author']['id']||_0x12a729['subType']!==_0x25c04d['subType'])continue;if(!Pt(_0x25c04d,_0x12a729,['groupId']))continue;if('attribute'==_0x25c04d['type']&&_0x25c04d['data']['oldValue']!=_0x12a729['data']['oldValue'])continue;if('attribute'==_0x25c04d['type']&&_0xe8f3ed['_isBlockAttribute'](_0x25c04d['data']['key']))continue;if('formatBlock'==_0x25c04d['type']){const _0x2ea7db=_0xe8f3ed['editor']['model'],_0x2d04dc=_0x25c04d['getContainedElement']();if(_0x2d04dc&&(_0x2ea7db['schema']['isObject'](_0x2d04dc)||_0x2ea7db['schema']['isLimit'](_0x2d04dc)))continue;}const _0x35f49e=_0x4fd573['get'](_0x25c04d),_0x26ff73=_0x5a844c['get'](_0x25c04d),_0x422867=_0x5a844c['get'](_0x12a729),_0x57d875=_0x25c04d['commentThread']&&_0x25c04d['commentThread']['length'],_0x32ae87=_0x12a729['commentThread']&&_0x12a729['commentThread']['length'];if(!_0x57d875&&_0x35f49e(_0x422867,_0x26ff73))return _0xe8f3ed['_joinSuggestions'](_0x12a729,_0x25c04d),_0x5a844c['delete'](_0x25c04d),!0x0;if(!_0x32ae87&&_0x35f49e(_0x26ff73,_0x422867))return _0xe8f3ed['_joinSuggestions'](_0x25c04d,_0x12a729),_0x5a844c['delete'](_0x12a729),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4c846,_0x4dc216){if(_0x4c846['isMultiRange']){for(const _0xce6b33 of _0x4dc216['getRanges']())_0x4c846['addRange'](_0xce6b33);}else{const _0xd84305=_0x4dc216['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4c846,this['_model']['createRange'](_0x4c846['getFirstRange']()['start'],_0xd84305));}_0x4dc216['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4ace0c,_0x492dae){const _0x4d490d=_0x4ace0c['startsWith']('format')||_0x4ace0c['startsWith']('attribute')?'FORMATTING':_0x4ace0c['toUpperCase']();return o(this['editor']['locale'],_0x492dae+'_'+_0x4d490d+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4b8433=this['editor'];if(!_0x4b8433['ui'])return;const {ariaLiveAnnouncer:_0x1216b4}=_0x4b8433['ui'];_0x3bc91c(this['_model'],({left:_0x4b9748,entered:_0x3249f0})=>{for(const _0x511163 of _0x4b9748){const {group:_0x149312,type:_0x4a0b23}=this['_splitMarkerName'](_0x511163['name']);if('suggestion'===_0x149312){_0x1216b4['announce'](this['_getMarkerAnnouncementText'](_0x4a0b23,'LEAVE'));break;}}for(const _0x4712cf of _0x3249f0){const {group:_0x1fcfb0,type:_0x5a0510}=this['_splitMarkerName'](_0x4712cf['name']);if('suggestion'===_0x1fcfb0){_0x1216b4['announce'](this['_getMarkerAnnouncementText'](_0x5a0510,'ENTER'));break;}}});}['_processAttributeChanges'](_0x1677c6){if(this['_recordAttributeSuggestions'])return!0x1;const _0xc9c7de=this['editor'],_0x20878d=_0xc9c7de['model']['document']['differ']['getChanges']();if(0x0==_0x20878d['length'])return!0x1;const _0x2f93ce=[],_0x3e871c=_0x20878d['filter'](_0x4181b8=>'attribute'==_0x4181b8['type']),_0x58dd94=_0x20878d['filter'](_0x2f605d=>'insert'==_0x2f605d['type']&&'$text'!=_0x2f605d['name']),_0x8f636a=_0x20878d['filter'](_0x50f3f2=>'remove'==_0x50f3f2['type']&&'$text'!=_0x50f3f2['name']);for(const _0x4d0c32 of _0x3e871c)_0x2f93ce['push']({'key':_0x4d0c32['attributeKey'],'newValue':_0x4d0c32['attributeNewValue'],'oldValue':_0x4d0c32['attributeOldValue'],'range':Ot(_0x4d0c32['range'],_0xc9c7de['model'])});for(const _0x570d05 of _0x58dd94){const _0x57f3ca=_0x8f636a['find'](_0x341089=>_0x341089['position']['isEqual'](_0x570d05['position']));_0x57f3ca&&_0x2f93ce['push']({'key':m,'newValue':_0x570d05['name'],'oldValue':_0x57f3ca['name'],'range':_0xc9c7de['model']['createRangeOn'](_0x570d05['position']['nodeAfter'])});}return 0x0!=_0x2f93ce['length']&&this['_reduceExistingSuggestions'](_0x1677c6,_0x2f93ce);}['_processAttributeSuggestions'](_0x51a9a2){let _0x460666=!0x1;const _0x21b8ea=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x23dcd9=>_0x23dcd9['data']['newRange']&&_0x23dcd9['name']['startsWith']('suggestion:attribute:'));for(const _0x1f9c34 of _0x21b8ea){const {subType:_0x3a95cd,id:_0xc5ccce}=this['_splitMarkerName'](_0x1f9c34['name']),_0xd6a1d4=_0x3a95cd['split']('|')[0x0];for(const _0x410052 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x410052['id']!=_0xc5ccce&&'attribute'==_0x410052['type']&&_0x410052['data']&&_0x410052['data']['key']==_0xd6a1d4&&_0x410052['getFirstRange']()['isIntersecting'](_0x1f9c34['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x410052,_0x1f9c34['data']['newRange'],_0x51a9a2),_0x460666=!0x0);}return _0x460666;}['_recordAttributeChanges'](_0x2d24c3){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2d24c3();}['_isRegisteredAttribute'](_0x115108){const _0x477ddd=this['_isBlockAttribute'](_0x115108),_0x48565b=this['_inlineAttributeKeys']['has'](_0x115108);return _0x477ddd||_0x48565b;}['_reduceExistingSuggestions'](_0x1db202,_0x17ba70){if(0x0==_0x17ba70['length'])return!0x1;let _0x1dad97=!0x1;for(const _0x33778d of _0x17ba70){const _0x34c995=this['_findSuggestions'](_0x33778d['range'],'attribute')['filter'](_0x23a213=>!_0x23a213['meta']['isNextTo'])['map'](_0x32feda=>_0x32feda['suggestion']),_0x17e8d3=_0x5f23c5({'newValue':_0x33778d['newValue']});_0x34c995['filter'](_0x5d780d=>{const [_0x33b1c8,_0x23d7b8]=_0x5d780d['subType']['split']('|');return _0x33b1c8==_0x33778d['key']&&_0x23d7b8!=_0x17e8d3;})['forEach'](_0x3e6790=>{this['_reduceSuggestionAttributeRange'](_0x3e6790,_0x33778d['range'],_0x1db202),_0x1dad97=!0x0;});}return _0x1dad97;}['_reduceSuggestionAttributeRange'](_0x5a84ab,_0x2811d8,_0x4f00a0){const _0x782a59=_0x5a84ab['getFirstRange']()['getDifference'](_0x2811d8);0x0!==_0x782a59['length']?0x1!==_0x782a59['length']?this['_breakSuggestionMarker'](_0x5a84ab,_0x2811d8['start'],_0x2811d8['end']):this['_setSuggestionRange'](_0x5a84ab,_0x782a59[0x0]):_0x4f00a0['removeMarker'](_0x5a84ab['getFirstMarker']());}constructor(_0x26355f){function _0x3cf589(_0x105fa6){return _0x105fa6['map'](_0x12dbfa=>String['fromCharCode'](_0x12dbfa))['join']('');}super(_0x26355f),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3c254,_0x28691b,_0x18ea45,_0xbb412)=>{this['_model']['change'](()=>{for(const _0x5828ec of[..._0xbb412,..._0x18ea45])this['_model']['markers']['has'](_0x5828ec)&&_0x26355f['editing']['reconvertMarker'](_0x5828ec);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x26355f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x26355f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x26355f['config']['get']('trackChanges.trackFormatChanges'),_0x26355f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x26355f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x26355f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3cf589([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3cf589([0x34,0x30,0x34,0x38,0x31,0x32,0x30,0x38]);}}class xt{['buildSuggestion'](_0x37dd9f,_0x3cc8af,_0x15f672,_0x277b26,_0x2686b6,_0x56e668){return new u(this['_model'],{'type':_0x37dd9f,'subType':_0x3cc8af,'id':_0x15f672,'author':_0x277b26,'creator':_0x277b26,'attributes':_0x2686b6,'onAttributesChange':_0x56e668,'onAccept':(..._0x58e191)=>this['getSuggestionCallback'](_0x37dd9f,_0x3cc8af,'accept')(..._0x58e191),'onDiscard':(..._0x3274e0)=>this['getSuggestionCallback'](_0x37dd9f,_0x3cc8af,'discard')(..._0x3274e0)});}['registerCustomCallback'](_0x447e03,_0x5af551,_0x3eba36,_0x11d714){const _0x538c9=_0x447e03+':'+_0x5af551+':'+_0x3eba36;this['_customCallbacks']['set'](_0x538c9,_0x11d714);}['getSuggestionCallback'](_0x2a3430,_0xde86b5,_0x1b2b2b){const _0x3ae075=_0x2a3430+':'+_0xde86b5+':'+_0x1b2b2b;return this['_customCallbacks']['get'](_0x3ae075)||this['_defaultCallbacks']['get'](_0x2a3430+':'+_0x1b2b2b);}['_registerDefaultCallbacks'](){const _0x1310ed=()=>!0x1,_0x3aa3e7=_0xe97346=>{_0xe97346['sort']((_0xe5ef57,_0x156f49)=>_0xe5ef57['start']['isBefore'](_0x156f49['start'])?0x1:-0x1),this['_model']['change'](_0x3a1d85=>{for(const _0x57bc6a of _0xe97346){let _0x3cd924;_0x3cd924=_0x57bc6a['end']['isAtEnd']&&_0x57bc6a['end']['parent']==_0x57bc6a['start']['nodeAfter']?_0x3a1d85['createSelection'](_0x57bc6a['start']['nodeAfter'],'on'):_0x3a1d85['createSelection'](_0x57bc6a),this['_model']['deleteContent'](_0x3cd924,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x395df7=(_0x4ea67e,_0xa792b9)=>{_0xa792b9&&this['_model']['change'](_0x48e177=>{const {commandName:_0x43c50e,commandParams:_0x19d7e0=[]}=_0xa792b9,_0x11272d=_0x4ea67e['map'](_0x965a4d=>(Tt(_0x965a4d)&&(_0x965a4d=this['_model']['createRange'](_0x965a4d['end'])),_0x965a4d))['filter'](_0x2a036d=>'$graveyard'!==_0x2a036d['root']['rootName']);if(_0x11272d['length']<0x1)return;const _0xf6e28=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x322462=>_0x2c1830['fromRange'](_0x322462));_0x48e177['setSelection'](_0x11272d);for(const _0x39db97 of this['_editor']['commands']['commands']())_0x39db97['refresh']();_0x19d7e0['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x43c50e,..._0x19d7e0);const _0x3919ac=_0xf6e28['filter'](_0x475911=>'$graveyard'!=_0x475911['root']['rootName']);_0x3919ac['length']>0x0&&_0x48e177['setSelection'](_0x3919ac);for(const _0x566115 of _0xf6e28)_0x566115['detach']();});},_0x27c281=(_0x5ea128,_0x21c909)=>0x1==_0x5ea128['length']&&0x1==_0x21c909['length']&&_0x5ea128[0x0]['end']['isEqual'](_0x21c909[0x0]['start']),_0xc9e0d1=(_0x10da13,_0x339159,_0x2073d6,_0x8c8ada)=>Gt(_0x10da13,_0x339159,_0x2073d6,_0x8c8ada,this['_model'])?[_0x10da13,_0x339159]:Gt(_0x339159,_0x10da13,_0x8c8ada,_0x2073d6,this['_model'])?[_0x339159,_0x10da13]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1310ed),this['_defaultCallbacks']['set']('insertion:discard',_0x3aa3e7),this['_defaultCallbacks']['set']('insertion:join',_0x27c281),this['_defaultCallbacks']['set']('insertion:chain',_0xc9e0d1),this['_defaultCallbacks']['set']('deletion:accept',_0x3aa3e7),this['_defaultCallbacks']['set']('deletion:discard',_0x1310ed),this['_defaultCallbacks']['set']('deletion:join',_0x27c281),this['_defaultCallbacks']['set']('deletion:chain',_0xc9e0d1),this['_defaultCallbacks']['set']('formatInline:accept',_0x395df7),this['_defaultCallbacks']['set']('formatInline:discard',_0x1310ed),this['_defaultCallbacks']['set']('formatInline:join',_0x27c281),this['_defaultCallbacks']['set']('formatInline:chain',_0x1310ed),this['_defaultCallbacks']['set']('formatBlock:accept',_0x395df7),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1310ed),this['_defaultCallbacks']['set']('formatBlock:join',_0x27c281),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1310ed),this['_defaultCallbacks']['set']('attribute:accept',_0x1310ed),this['_defaultCallbacks']['set']('attribute:discard',(_0x37e0b8,_0x16e48b)=>{if(!_0x16e48b)return;const _0x364c84=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x449c75=>{if(_0x16e48b['key']==m)for(const _0xb18c3d of _0x37e0b8){const _0x3b99ac=_0xb18c3d['start']['nodeAfter'],_0x2a84d8=_0x16e48b['oldValue'];_0x449c75['rename'](_0x3b99ac,_0x2a84d8);}else{if(_0x364c84['_isBlockAttribute'](_0x16e48b['key'])){for(const _0x57443b of _0x37e0b8)void 0x0!==_0x16e48b['oldValue']?_0x449c75['setAttribute'](_0x16e48b['key'],_0x16e48b['oldValue'],_0x57443b['start']['nodeAfter']):_0x449c75['removeAttribute'](_0x16e48b['key'],_0x57443b['start']['nodeAfter']);}else{for(const _0x1c741d of _0x37e0b8)_0x16e48b['oldValue']?_0x449c75['setAttribute'](_0x16e48b['key'],_0x16e48b['oldValue'],_0x1c741d):_0x449c75['removeAttribute'](_0x16e48b['key'],_0x1c741d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x27c281);}constructor(_0x4367f4){this['_editor']=_0x4367f4,this['_model']=_0x4367f4['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x4e8dcb,_0x7316f7,_0x4de39d){for(const _0x189ef3 of _0x7316f7['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x189ef3['root']==_0x189ef3)return!0x1;if(!_0x4de39d['containsItem'](_0x189ef3))return!0x1;if(_0x4e8dcb['isObject'](_0x189ef3)||_0x4e8dcb['isLimit'](_0x189ef3))return!0x0;}return!0x1;}function Tt(_0x385f73){return _0x385f73['end']['parent']==_0x385f73['start']['nodeAfter']&&_0x385f73['end']['isAtStart'];}function Et(_0xaf04a0,_0x4ec70f,_0x5ea512,_0x46146a){const _0x670e43=_0x2aacc6=>!_0x2aacc6['item']['is']('$textProxy')&&!_0x46146a['isObject'](_0x2aacc6['item']),_0x5ada9b=_0xaf04a0['start']['getLastMatchingPosition'](_0x670e43),_0x139fdc=_0xaf04a0['end']['getLastMatchingPosition'](_0x670e43,{'direction':'backward'});return(!_0xaf04a0['start']['isEqual'](_0x5ada9b)||!_0xaf04a0['end']['isEqual'](_0x139fdc))&&(_0x5ada9b['isBefore'](_0x139fdc)?_0x5ea512['updateMarker'](_0x4ec70f,{'range':_0x5ea512['createRange'](_0x5ada9b,_0x139fdc)}):_0x5ea512['removeMarker'](_0x4ec70f),!0x0);}function Vt(_0x1e7e5b){return _0x5f23c5(_0x1e7e5b);}function Ut(_0x4f7378){const _0x4f683a=_0x4f7378['start']['nodeAfter'];return _0x4f683a&&_0x4f683a['is']('element');}function Ot(_0x338c1e,_0x500e3b){return null==_0x338c1e['end']['nodeBefore']&&_0x338c1e['end']['parent']==_0x338c1e['start']['nodeAfter']?Ft(_0x338c1e['start']['nodeAfter'],_0x500e3b):_0x338c1e;}function Ft(_0x521f87,_0x23fc9b){const _0x14d88a=_0x23fc9b['schema']['isObject'](_0x521f87)||_0x23fc9b['schema']['isSelectable'](_0x521f87);return _0x23fc9b['createRange'](_0x23fc9b['createPositionAt'](_0x521f87,'before'),_0x14d88a?_0x23fc9b['createPositionAfter'](_0x521f87):_0x23fc9b['createPositionAt'](_0x521f87,'end'));}function Gt(_0x241c35,_0x475b83,_0x1b6396,_0x4f1604,_0x60325e){if(!Pt(_0x241c35,_0x475b83))return!0x1;if(_0x1b6396['end']['isEqual'](_0x4f1604['start']))return!0x0;if(_0x241c35['type']!=_0x475b83['type'])return!0x1;if(!_0x1b6396['end']['isTouching'](_0x4f1604['start']))return!0x1;const _0x552eec=_0x60325e['createRange'](_0x1b6396['end'],_0x4f1604['start'])['getWalker']();for(const _0x2c2a31 of _0x552eec)if(['elementStart','elementEnd']['includes'](_0x2c2a31['type'])&&_0x60325e['schema']['isLimit'](_0x2c2a31['item']))return!0x1;return!0x0;}function Pt(_0xcd68b5,_0x31cb51,_0x446585=[]){return!(!_0xcd68b5['_isDataLoaded']||!_0x31cb51['_isDataLoaded'])&&_0x32719b(Bt(_0xcd68b5['attributes'],_0x446585),Bt(_0x31cb51['attributes'],_0x446585));}function Lt(_0x3b6088,_0x17a72f){const _0x1b8448=Ht(_0x3b6088['attributes']),_0xa9fc65=Ht(_0x17a72f);if(!_0x3b6088['_isDataLoaded'])return!0x1;for(const _0x260d25 of Object['keys'](_0xa9fc65))if(!_0x32719b(_0x1b8448[_0x260d25],_0xa9fc65[_0x260d25]))return!0x1;return!0x0;}function Ht(_0x303205){const _0x2c4012=Object['assign']({},_0x303205);return delete _0x2c4012['skipNestingCheck'],delete _0x2c4012['tablePasteChainId'],_0x2c4012;}class oe extends _0x44858b(){['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 _0xbd6e93=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xbd6e93);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x386389,_0x36bd70,_0xcac806,_0x3fc51e){super(),this['model']=_0x36bd70,this['view']=_0xcac806,this['commentThreadController']=_0x3fc51e,this['_editor']=_0x386389,this['_acceptCommand']=_0x386389['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x386389['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1127b2,_0x2a5e02)=>_0x1127b2||_0x2a5e02),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xa3129f=>_0xa3129f&&this['_editor']['model']['canEditAt'](_0x36bd70['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x22cc6b=>_0x22cc6b&&this['_editor']['model']['canEditAt'](_0x36bd70['getRanges']())),this['_pendingAction']=null,_0xcac806['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xcac806,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xcac806,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xcac806,'change:isDirty',()=>{_0xcac806['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x4e264a{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x318018}=this['_config'];this['commentsListView']=new _0x318018(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',_0x5c47bb=>_0x5c47bb+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4f658a,_0x58fc30)=>_0x4f658a||!!_0x58fc30);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xecf7d9}=this['_config'],_0x44059c=new _0xecf7d9(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x20b499=_0x44059c['commentInputView'];return _0x44059c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x20b499,'value',(_0x24aa33,_0x1276e6,_0x5f2497)=>!!_0x5f2497||_0x24aa33&&!_0x1276e6),_0x20b499['on']('submit',(_0x4cbe4d,_0x141645)=>{this['fire']('addComment',_0x141645),_0x20b499['editor']['setData']('');}),_0x20b499['on']('cancel',()=>this['focus']()),_0x20b499['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x44059c;}constructor(_0x55c555,_0x20bd51,_0x32fe33,_0x56e689){super(_0x55c555),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x20bd51['authoredAt']),this['bind']('authoredAt')['to'](_0x20bd51),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x20bd51,this['_localUser']=_0x32fe33,this['_config']=_0x56e689,_0x56e689['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x435c06=this['bindTemplate'],_0x5be9fd=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x435c06['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x435c06['to']('authoredAt',_0x20f8d0=>this['_config']['formatDateTime'](_0x20f8d0))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x5be9fd['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2e9fbf={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x435c06['if']('isActive','ck-suggestion-wrapper--active'),_0x435c06['to']('type',_0x5362e7=>'ck-suggestion-'+_0x5362e7),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x5be9fd}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2e9fbf['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x2e9fbf;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x5df1c8,_0x2eaf18,_0x1f82e7)=>{this['_descriptionElement']['innerHTML']=_0x1f82e7;});}['_createButton'](_0x2fa088,_0x2b4e15,_0x14fc37,_0x57eaaf,_0x5b1307){const _0x5a0e49=new _0x2dcb6a(this['locale']);return _0x5a0e49['set']({'label':_0x2fa088,'icon':_0x2b4e15,'tooltip':!0x0,'tooltipPosition':_0x5b1307}),_0x5a0e49['extendTemplate']({'attributes':{'class':_0x14fc37}}),_0x5a0e49['on']('execute',()=>{this['fire'](_0x57eaaf,this['_model']['id']);}),_0x5a0e49;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}constructor(_0x25bfc4,_0x4809d2,_0x2cd7f1,_0x102ab4){super(_0x25bfc4,_0x4809d2,_0x2cd7f1,_0x102ab4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3a3b92=>_0x3a3b92&&_0x3a3b92[0x0]?_0x3a3b92[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x31d27f,_0x4b9aca)=>{let _0x2fa688='';for(const _0x5e60a3 of _0x31d27f)_0x2fa688+='<p>'+ds(_0x5e60a3['content'],_0x5e60a3['color'])+'</p>';return _0x4b9aca?_0x2fa688:_0x4886ba(_0x2fa688,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x25bfc4,'Accept\x20suggestion'),_0x127585['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x25bfc4,'Discard\x20suggestion'),_0x127585['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3a1152(_0x25bfc4,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x5745b8,_0x547b95){let _0x2bb7fe='';return _0x2bb7fe+=_0x5745b8['split']('*')['map']((_0x130e81,_0x1f9049)=>_0x1f9049%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x130e81)+'</span>':us(_0x130e81))['join'](''),_0x547b95&&(_0x2bb7fe+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x547b95['value']+'\x22\x20title=\x22'+_0x547b95['title']+'\x22></span>'),_0x2bb7fe;}function us(_0x535034){const _0x40fd10=document['createElement']('span');return _0x40fd10['innerText']=_0x535034,_0x40fd10['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0xb023a3{static get['requires'](){return[p,_0x3d9c75,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x2b2478,_0x3e57c2){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x28232f,_0x12324c]of this['_handleControllerBuffer']){const _0x201735=this['_suggestionToController']['has'](_0x28232f);_0x201735||_0x12324c?_0x201735&&_0x12324c&&this['_destroyController'](_0x28232f):this['_initializeController'](_0x28232f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2b2478,_0x3e57c2);}['init'](){const _0x5ba5b9=this['editor'],_0x58d934=_0x5ba5b9['plugins']['get']('TrackChangesEditing'),_0x49593e=_0x5ba5b9['plugins']['get']('Annotations'),_0x484824=_0x5ba5b9['plugins']['get']('EditorAnnotations'),_0xfdf7e5=_0x5ba5b9['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x484824['addSourceCollector'](()=>{const _0x1ed3e4=[];for(const [_0x42677c,_0x5da7cc]of Array['from'](this['_suggestionToController'])){const _0x32e0ad=_0x42677c['getAllAdjacentSuggestions'](),_0x36f6d0=[];for(const _0x5b65eb of _0x32e0ad){if(!_0x5b65eb['isInContent'])continue;if(_0x5b65eb['isMultiRange']){_0x36f6d0['push'](..._0x5b65eb['getRanges']());continue;}const _0xd69333=_0x5b65eb['getFirstRange']();if(_0x36f6d0['length']>0x0){const _0xebae9b=_0x36f6d0[0x0]['getJoined'](_0xd69333);if(_0xebae9b){_0x36f6d0[0x0]=_0xebae9b;continue;}}_0x36f6d0['push'](_0xd69333);}_0x1ed3e4['push']([_0x5da7cc['view'],_0x36f6d0]);}return _0x1ed3e4;}),this['listenTo'](_0x58d934,'suggestionLoaded',(_0x78657d,_0x388173)=>{this['listenTo'](_0x388173,'change:previous',(_0x2b49e5,_0x3739dc,_0xfeb628,_0x460ee0)=>{_0x388173['isInContent']&&(null==_0xfeb628?(this['_updateController'](_0x460ee0['head']),this['_handleSuggestionControllerDelayed'](_0x388173,!0x1)):(this['_updateController'](_0xfeb628['head']),null==_0x460ee0&&this['_handleSuggestionControllerDelayed'](_0x388173,!0x0)));}),null!==_0x388173['previous']?this['_updateController'](_0x388173['head']):this['_handleSuggestionControllerDelayed'](_0x388173,!0x1);}),this['listenTo'](_0x58d934,'suggestionUnloaded',(_0x3bef8d,_0x370a23,_0x11a11b)=>{this['stopListening'](_0x370a23,'change:previous'),this['_handleControllerBuffer']['delete'](_0x370a23),this['_suggestionToController']['has'](_0x370a23)&&this['_destroyController'](_0x370a23),_0x11a11b&&this['_updateController'](_0x11a11b['head']);}),this['listenTo'](_0x58d934,'suggestionChanged',(_0x9435cc,_0xff1641)=>{this['_updateController'](_0xff1641);}),this['listenTo'](_0x49593e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xfdf7e5,'addComment',(_0x5b320e,{threadId:_0x571fb9,isFromAdapter:_0x763cea})=>{if(_0x763cea||!_0x58d934['hasSuggestion'](_0x571fb9))return;const _0x4a3adb=_0x58d934['getSuggestion'](_0x571fb9);this['_suggestionToController']['get'](_0x4a3adb)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2ce86f=this['editor']['plugins']['get']('Annotations'),_0x5aee9b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38f320=Array['from'](_0x2ce86f['activeAnnotations'],_0x2e9bdf=>_0x2e9bdf['innerView'])['filter'](_0x2caf4a=>this['_viewToController']['has'](_0x2caf4a)),_0x53b417=[];for(const _0xc8681b of _0x38f320){const _0x101efa=this['_viewToController']['get'](_0xc8681b)['model']['getAllAdjacentSuggestions']();_0x53b417['push'](..._0x101efa['reduce']((_0x35bbe3,_0x58766a)=>[..._0x35bbe3,..._0x58766a['getMarkerNames']()],[]));}_0x5aee9b['activeMarkers']=_0x53b417;}['_addUIComponentsToFactory'](){const _0x453a51=this['editor'],_0x45e3c8=_0x453a51['locale'],_0x540479=o(_0x45e3c8,'Track\x20changes'),_0x32f3a7=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x540479,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x45e3c8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x45e3c8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x45e3c8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x45e3c8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x668ad8 of _0x32f3a7)if(ae(_0x668ad8)){const _0x4011df=_0x453a51['commands']['get'](_0x668ad8['model']['commandName']);_0x668ad8['model']['bind']('isOn','isEnabled')['to'](_0x4011df,'value','isEnabled');}_0x453a51['ui']['componentFactory']['add']('trackChanges',_0x24477d=>this['_createToolbarButton'](_0x24477d,_0x32f3a7,_0x540479)),_0x453a51['ui']['componentFactory']['add']('menuBar:trackChanges',_0x59a555=>this['_createMenuBarMenu'](_0x59a555,_0x32f3a7,_0x540479));}['_createToolbarButton'](_0x48222c,_0x1d90cb,_0x30b95f){const _0x4092d8=zt(_0x48222c,Zt),_0xf9bef7=this['editor']['commands']['get']('trackChanges');_0x4092d8['buttonView']['set']({'tooltip':_0x30b95f,'label':_0x30b95f,'icon':ie}),_0x4092d8['buttonView']['bind']('isOn')['to'](_0xf9bef7,'value'),_0x4092d8['buttonView']['on']('execute',()=>{_0xf9bef7['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x4092d8,_0x1d90cb,{'role':'menu'});const _0x147172=[];for(const _0x1224b7 of _0x1d90cb)ae(_0x1224b7)&&_0x147172['push'](this['editor']['commands']['get'](_0x1224b7['model']['commandName']));const _0x5ab096=_0x4092d8['buttonView'];return _0x5ab096['actionView']['unbind']('isEnabled'),_0x5ab096['arrowView']['unbind']('isEnabled'),_0x5ab096['actionView']['bind']('isEnabled')['to'](_0xf9bef7,'isEnabled'),_0x5ab096['arrowView']['bind']('isEnabled')['toMany'](_0x147172,'isEnabled',(..._0xcbef5b)=>_0xcbef5b['some'](_0x45224f=>_0x45224f)),_0x4092d8['on']('execute',_0x537ed4=>{this['editor']['execute'](_0x537ed4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4092d8;}['_createMenuBarMenu'](_0x234e2a,_0x14ca9c,_0x26464a){const _0xdbd479=new Kt(_0x234e2a),_0x3b76bd=this['editor']['commands']['get']('trackChanges');_0xdbd479['buttonView']['set']({'label':_0x26464a,'icon':ie});const _0x90e0b1=new Qt(_0x234e2a);for(const _0x55b457 of _0x14ca9c){if('separator'==_0x55b457['type']){_0x90e0b1['items']['add'](new Jt(_0x234e2a));continue;}const _0xe0d34c=new Xt(_0x234e2a,_0xdbd479),_0x4d65e7=new Yt(_0x234e2a),_0x503337=_0x55b457['model'];_0x4d65e7['bind'](...Object['keys'](_0x503337))['to'](_0x503337),_0x4d65e7['delegate']('execute')['to'](_0xdbd479),_0x4d65e7['on']('execute',()=>{this['editor']['execute'](_0x503337['commandName']),this['editor']['editing']['view']['focus']();}),_0xe0d34c['children']['add'](_0x4d65e7),_0x90e0b1['items']['add'](_0xe0d34c);}return _0xdbd479['bind']('isEnabled')['to'](_0x3b76bd,'isEnabled'),_0xdbd479['panelView']['children']['add'](_0x90e0b1),_0xdbd479;}['_initializeController'](_0x268710){const _0x42d442=this['editor'],_0x4feb4c=_0x42d442['config'],_0x3a91e8=_0x42d442['plugins']['get']('Annotations'),_0x214f41=_0x42d442['plugins']['get']('CommentsRepository'),_0x1fae3a=_0x42d442['plugins']['get']('EditorAnnotations'),_0x39f836=_0x42d442['plugins']['get'](_0x3d9c75)['me'],_0x1f2409=_0x4feb4c['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x319de5,CommentThreadInputView:_0x3f95ce}=_0x42d442['plugins']['get']('CommentsUI');let _0x13e442,_0x5b4e79;this['_annotationViews']['has'](_0x268710['id'])?(_0x5b4e79=this['_annotationViews']['get'](_0x268710['id']),_0x13e442=_0x5b4e79['mainView']):(_0x13e442=new _0x1f2409(_0x42d442['locale'],_0x268710,_0x39f836,{'disableComments':this['_disableComments'],'editorConfig':_0x4feb4c['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4feb4c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4feb4c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4feb4c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4d26c1(_0x4feb4c['get']('locale')),'CommentView':_0x4feb4c['get']('comments')['CommentView'],'CommentsListView':_0x319de5,'CommentThreadInputView':_0x3f95ce}),_0x13e442['acceptButton']['on']('execute',()=>{_0x42d442['editing']['view']['focus']();}),_0x13e442['discardButton']['on']('execute',()=>{_0x42d442['editing']['view']['focus']();}),_0x5b4e79=_0x3a91e8['createAnnotationView'](this['editor']['locale'],_0x13e442),_0x5b4e79['bind']('isDirty')['to'](_0x13e442,'isDirty'),_0x5b4e79['bind']('length')['to'](_0x13e442),_0x5b4e79['bind']('type')['to'](_0x13e442,'type',_0x4ac0f9=>'suggestion-'+_0x4ac0f9),this['_annotationViews']['set'](_0x268710['id'],_0x5b4e79));const _0x499968=_0x214f41['createCommentThreadController'](_0x268710['commentThread'],_0x13e442),_0x3501f2=new oe(_0x42d442,_0x268710,_0x13e442,_0x499968),_0x178f9a=_0x268710['getAllAdjacentSuggestions']()['filter'](_0x504ee8=>_0x504ee8['isInContent']);_0x13e442['descriptionParts']=_0x42d442['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x178f9a),this['_suggestionToController']['set'](_0x268710,_0x3501f2),this['_viewToController']['set'](_0x13e442,_0x3501f2);const _0x4938e4=_0x3a91e8['createAnnotation']({'view':_0x5b4e79,'target':()=>{const _0x1a248f=[],_0x51fe0e=_0x268710['getAllAdjacentSuggestions']()['filter'](_0x134afc=>_0x134afc['isInContent']);for(const _0x561c27 of _0x51fe0e)_0x1a248f['push'](..._0x561c27['getMarkers']());return _0x1a0ca3(_0x42d442['editing'],_0x1a248f);},'type':()=>'suggestion-'+_0x3501f2['view']['type']});_0x214f41['_bindAnnotationToEditors'](_0x13e442,_0x4938e4),_0x3a91e8['add'](_0x4938e4),_0x1fae3a['registerAnnotation'](_0x4938e4);}['_destroyController'](_0x2624c1){const _0x10505f=this['editor']['plugins']['get']('CommentsRepository'),_0x10e6be=this['editor']['plugins']['get']('Annotations'),_0x5be1d1=this['_suggestionToController']['get'](_0x2624c1),_0x27818f=_0x5be1d1['view'],_0x1e1f12=_0x10e6be['getByInnerView'](_0x27818f);_0x10505f['_unbindEditors'](_0x27818f),_0x1e1f12&&_0x10e6be['remove'](_0x1e1f12),this['_suggestionToController']['delete'](_0x2624c1),this['_viewToController']['delete'](_0x27818f),_0x5be1d1['destroy']();}['_updateController'](_0x51863c){if(!_0x51863c['isInContent']||!this['_suggestionToController']['has'](_0x51863c))return;const _0x79c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54564e=this['_suggestionToController']['get'](_0x51863c),_0x4c55ce=_0x51863c['getAllAdjacentSuggestions']();_0x54564e['view']['descriptionParts']=_0x79c8['descriptionFactory']['getDescriptions'](_0x4c55ce);}['destroy'](){for(const _0x591987 of this['_suggestionToController']['keys']())this['_destroyController'](_0x591987);for(const _0x5ddd6a of this['_annotationViews']['values']())_0x5ddd6a['mainView']['destroy']();super['destroy']();}constructor(_0x4c6605){super(_0x4c6605),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x369bcc=this['editor']['config'];_0x369bcc['define']('trackChanges.SuggestionThreadView',ne),_0x369bcc['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x369bcc['get']('trackChanges.disableComments');}}function ae(_0x48f16e){return'model'in _0x48f16e;}class k extends _0xb023a3{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x35627b){this['editor']['plugins']['get'](p)['adapter']=_0x35627b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x238315){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x238315);}['getSuggestions']({skipNotAttached:_0x394314=!0x1,toJSON:_0x1bb023=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x394314,'toJSON':_0x1bb023});}['getSuggestion'](_0x623186){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x623186);}}const T=['Pagination'];class P extends _0xb023a3{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x1220ce=this['editor'];if(_0x1220ce['config']['define']('trackChangesData.editorCreator',_0x2f076f=>{const _0x52524c=_0x1220ce['model']['document']['getRootNames']()['reduce']((_0x4cb0e6,_0x267026)=>(_0x4cb0e6[_0x267026]='',_0x4cb0e6),{});return _0x1220ce['constructor']['create'](_0x52524c,_0x2f076f);}),'function'!=typeof _0x1220ce['config']['get']('trackChangesData')['editorCreator'])throw new _0x2d4aa9('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x467ea4){return N(this['editor'],!0x0,_0x467ea4);}['getDataWithDiscardedSuggestions'](_0xaee918){return N(this['editor'],!0x1,_0xaee918);}}class D extends _0xb023a3{static get['pluginName'](){return'TrackChangesDataGetter';}['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;}constructor(_0x29b497){super(_0x29b497),this['result']='end';}}function v(_0x43ec5d){return void 0x0!==_0x43ec5d['getRootsAttributes'];}async function N(_0xe169ea,_0x14d350,_0x59060c){const _0x30b6d1=_0x514d83(_0xe169ea,T);_0x30b6d1['plugins']['push'](p,D),_0x30b6d1['rootsAttributes']=v(_0xe169ea)?_0xe169ea['getRootsAttributes']():void 0x0;const _0x44d88f=document['createDocumentFragment'](),_0x20b85c=_0xe169ea['config']['get']('trackChangesData')['editorCreator'],_0x1e2814=await _0x20b85c(_0x30b6d1,()=>function(_0x4d45a4){const _0x60f074=document['createElement']('div');return _0x4d45a4['appendChild'](_0x60f074),_0x60f074;}(_0x44d88f));!function(_0x3b0bfe,_0x40c2da){const _0x47d225=_0x3b0bfe['model']['document']['getRootNames']()['reduce']((_0x4c56a4,_0x257f2c)=>(_0x4c56a4[_0x257f2c]=_0x3b0bfe['data']['get']({'rootName':_0x257f2c}),_0x4c56a4),{}),_0x14161f=_0x3b0bfe['plugins']['get']('Users')['users']['map'](_0x4e5a7d=>({'id':_0x4e5a7d['id'],'name':_0x4e5a7d['name']})),_0x333480=_0x3b0bfe['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2e0c5b=_0x3b0bfe['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xe0e2e5=_0x40c2da['plugins']['get']('Users'),_0x3a60da=_0x40c2da['plugins']['get']('TrackChangesEditing'),_0x1bc56b=_0x40c2da['plugins']['get']('CommentsRepository');for(const _0x2dce69 of _0x14161f)_0xe0e2e5['getUser'](_0x2dce69['id'])||_0xe0e2e5['addUser'](_0x2dce69);_0xe0e2e5['me']||_0xe0e2e5['useAnonymousUser']();for(const _0x5d98cd of _0x333480)_0x3a60da['addSuggestionData'](_0x5d98cd);for(const _0x301fe2 of _0x2e0c5b)_0x1bc56b['addCommentThread'](_0x301fe2);_0x40c2da['data']['set'](_0x47d225);}(_0xe169ea,_0x1e2814),_0x1e2814['execute'](_0x14d350?'acceptAllSuggestions':'discardAllSuggestions');const _0x397f3b=v(_0x1e2814)?_0x1e2814['getFullData'](_0x59060c):_0x1e2814['data']['get'](_0x59060c);return await _0x1e2814['destroy'](),_0x397f3b;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|