@ckeditor/ckeditor5-track-changes 49.0.0-alpha.10 → 49.0.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/index.js +4 -4
  2. package/dist/translations/af.umd.js +1 -1
  3. package/dist/translations/ar.umd.js +1 -1
  4. package/dist/translations/ast.umd.js +1 -1
  5. package/dist/translations/az.umd.js +1 -1
  6. package/dist/translations/be.umd.js +1 -1
  7. package/dist/translations/bg.umd.js +1 -1
  8. package/dist/translations/bn.umd.js +1 -1
  9. package/dist/translations/bs.umd.js +1 -1
  10. package/dist/translations/ca.umd.js +1 -1
  11. package/dist/translations/cs.umd.js +1 -1
  12. package/dist/translations/da.umd.js +1 -1
  13. package/dist/translations/de-ch.umd.js +1 -1
  14. package/dist/translations/de.umd.js +1 -1
  15. package/dist/translations/el.umd.js +1 -1
  16. package/dist/translations/en-au.umd.js +1 -1
  17. package/dist/translations/en-gb.umd.js +1 -1
  18. package/dist/translations/en.umd.js +1 -1
  19. package/dist/translations/eo.umd.js +1 -1
  20. package/dist/translations/es-co.umd.js +1 -1
  21. package/dist/translations/es.umd.js +1 -1
  22. package/dist/translations/et.umd.js +1 -1
  23. package/dist/translations/eu.umd.js +1 -1
  24. package/dist/translations/fa.umd.js +1 -1
  25. package/dist/translations/fi.umd.js +1 -1
  26. package/dist/translations/fr.umd.js +1 -1
  27. package/dist/translations/gl.umd.js +1 -1
  28. package/dist/translations/gu.umd.js +1 -1
  29. package/dist/translations/he.umd.js +1 -1
  30. package/dist/translations/hi.umd.js +1 -1
  31. package/dist/translations/hr.umd.js +1 -1
  32. package/dist/translations/hu.umd.js +1 -1
  33. package/dist/translations/hy.umd.js +1 -1
  34. package/dist/translations/id.umd.js +1 -1
  35. package/dist/translations/it.umd.js +1 -1
  36. package/dist/translations/ja.umd.js +1 -1
  37. package/dist/translations/jv.umd.js +1 -1
  38. package/dist/translations/kk.umd.js +1 -1
  39. package/dist/translations/km.umd.js +1 -1
  40. package/dist/translations/kn.umd.js +1 -1
  41. package/dist/translations/ko.umd.js +1 -1
  42. package/dist/translations/ku.umd.js +1 -1
  43. package/dist/translations/lt.umd.js +1 -1
  44. package/dist/translations/lv.umd.js +1 -1
  45. package/dist/translations/ms.umd.js +1 -1
  46. package/dist/translations/nb.umd.js +1 -1
  47. package/dist/translations/ne.umd.js +1 -1
  48. package/dist/translations/nl.umd.js +1 -1
  49. package/dist/translations/no.umd.js +1 -1
  50. package/dist/translations/oc.umd.js +1 -1
  51. package/dist/translations/pl.umd.js +1 -1
  52. package/dist/translations/pt-br.umd.js +1 -1
  53. package/dist/translations/pt.umd.js +1 -1
  54. package/dist/translations/ro.umd.js +1 -1
  55. package/dist/translations/ru.umd.js +1 -1
  56. package/dist/translations/si.umd.js +1 -1
  57. package/dist/translations/sk.umd.js +1 -1
  58. package/dist/translations/sl.umd.js +1 -1
  59. package/dist/translations/sq.umd.js +1 -1
  60. package/dist/translations/sr-latn.umd.js +1 -1
  61. package/dist/translations/sr.umd.js +1 -1
  62. package/dist/translations/sv.umd.js +1 -1
  63. package/dist/translations/th.umd.js +1 -1
  64. package/dist/translations/ti.umd.js +1 -1
  65. package/dist/translations/tk.umd.js +1 -1
  66. package/dist/translations/tr.umd.js +1 -1
  67. package/dist/translations/tt.umd.js +1 -1
  68. package/dist/translations/ug.umd.js +1 -1
  69. package/dist/translations/uk.umd.js +1 -1
  70. package/dist/translations/ur.umd.js +1 -1
  71. package/dist/translations/uz.umd.js +1 -1
  72. package/dist/translations/vi.umd.js +1 -1
  73. package/dist/translations/zh-cn.umd.js +1 -1
  74. package/dist/translations/zh.umd.js +1 -1
  75. package/package.json +25 -25
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x137f1b,PendingActions as _0x15aff3,Plugin as _0xf0b898}from'@ckeditor/ckeditor5-core';import{Annotations as _0x43d964,Comments as _0x3f3d36,CommentsRepository as _0x1d69dd,EditorAnnotations as _0x280652}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x53b517,Collection as _0x3968f8,FocusTracker as _0x4a0fc0,KeystrokeHandler as _0xf61f0d,ObservableMixin as _0x3ee82e,getEnvKeystrokeText as _0x1ab253,insertToPriorityArray as _0xb8e795,logWarning as _0x15e49f,priorities as _0x487ef8,trustedHtml as _0x362c85,uid as _0xc08621}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x4f0a95,IconCancel as _0x496249,IconCheck as _0x462308,IconSparkle as _0x502305,IconTrackChanges as _0x1a5a99}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x54c5f7,Dialog as _0x449084,FocusCycler as _0x3a6372,IconView as _0x5de5f9,ListSeparatorView as _0x28794d,MenuBarMenuListItemButtonView as _0x1ee833,MenuBarMenuListItemView as _0x32dbbf,MenuBarMenuListView as _0x378699,MenuBarMenuView as _0x29a1f3,SplitButtonView as _0x438c75,UIModel as _0x227918,View as _0x31b427,ViewCollection as _0x39df58,_getLocalizedColorName as _0x3088c8,addListToDropdown as _0x46f027,createDropdown as _0x179874,normalizeColorOptions as _0x8e2d9e}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x1adbb8,CollaborationUserColor as _0x2fb5b8,FOCUS_ANNOTATION_KEYSTROKE as _0x2654de,LateFocusButtonView as _0x5bb055,PillView as _0x1da1de,SuggestionsConversion as _0x80da0c,User as _0x9913b9,UserView as _0x27b4e2,Users as _0x445bdf,fixElementSuggestionRange as _0x2002be,getAllMarkersDomElementsSorted as _0x43b5ca,getDateTimeFormatter as _0x9d87d0,hashObject as _0x324b07,isInvalidAttributeOperation as tt,sanitizeEditorConfig as et,setupThreadKeyboardNavigation as nt,splitSuggestionMarkerName as it,surroundingMarkersDetector as st,trimHtml as rt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as ot,ModelLivePosition as at,ModelLiveRange as ct,ViewDowncastWriter as lt}from'@ckeditor/ckeditor5-engine';import{cloneDeep as ut,isEqual as dt,omit as ht,set as gt,unset as ft}from'es-toolkit/compat';import{ClipboardMarkersUtils as mt,ClipboardPipeline as Et}from'@ckeditor/ckeditor5-clipboard';import{Delete as Tt,Input as _t}from'@ckeditor/ckeditor5-typing';import{Enter as pt}from'@ckeditor/ckeditor5-enter';var Lt=class extends _0x137f1b{['_enabledCommands'];constructor(_0x5ccf23,_0xa3c35d){super(_0x5ccf23),this['_enabledCommands']=_0xa3c35d,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 _0x22d452 of this['editor']['commands']['commands']())_0x22d452['affectsData']&&!this['_enabledCommands']['has'](_0x22d452)&&_0x22d452['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x49132a of this['editor']['commands']['commands']())_0x49132a['affectsData']&&!this['_enabledCommands']['has'](_0x49132a)&&_0x49132a['clearForceDisabled']('TrackChangesCommand');}},It=class extends _0x137f1b{_suggestions;constructor(_0x47ff71,_0x3c208e){super(_0x47ff71),this['_suggestions']=_0x3c208e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x1ce7bf){const _0x6fbf79=this['_suggestions']['get'](_0x1ce7bf);if(!_0x6fbf79)throw new _0x53b517('track-changes-accept-suggestion-not-found',this);const _0x1b185e=_0x6fbf79['getRanges']();this['editor']['model']['canEditAt'](_0x1b185e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x6fbf79);}},At=class extends _0x137f1b{_suggestions;constructor(_0x58ddac,_0x13aeaa){super(_0x58ddac),this['_suggestions']=_0x13aeaa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x408ef0){const _0x3d4bc0=this['_suggestions']['get'](_0x408ef0);if(!_0x3d4bc0)throw new _0x53b517('track-changes-discard-suggestion-not-found',this);const _0x375ffb=_0x3d4bc0['getRanges']();this['editor']['model']['canEditAt'](_0x375ffb)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3d4bc0);}};function bt(_0xfa92db,_0x38dadb){let _0x3892fb='';return _0x3892fb+=_0xfa92db['split']('*')['map']((_0x2e4e97,_0x327166)=>_0x327166%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Ct(_0x2e4e97)+'</span>':Ct(_0x2e4e97))['join'](''),_0x38dadb&&(_0x3892fb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x38dadb['value']+'\x22\x20title=\x22'+_0x38dadb['title']+'\x22></span>'),_0x3892fb;}function Ct(_0x179099){const _0x233dc3=document['createElement']('span');return _0x233dc3['innerText']=_0x179099,_0x233dc3['innerHTML'];}function kt(_0x16ee7c){return _0x16ee7c['sort']((_0x4f9cad,_0x192baa)=>'attribute'===_0x4f9cad['type']&&'attribute'!==_0x192baa['type']?-0x1:'attribute'!==_0x4f9cad['type']&&'attribute'===_0x192baa['type']?0x1:'deletion'==_0x4f9cad['type']&&'deletion'!=_0x192baa['type']?-0x1:'deletion'!=_0x4f9cad['type']&&'deletion'==_0x192baa['type']?0x1:0x0);}function Rt(_0x426ab9,_0x3a52bb){let _0x3d1e3c,_0x151069=0x0;const _0x5a65ec=[],_0x17ff4d=_0x3a52bb['schema'];for(;_0x151069<_0x426ab9['length'];){const _0x5b423d=_0x426ab9[_0x151069],_0x244624=_0x426ab9[_0x151069+0x1];_0x3d1e3c||(_0x3d1e3c=_0x3a52bb['createPositionBefore'](_0x5b423d)),Nt(_0x3a52bb,_0x5b423d,_0x244624)||(_0x5a65ec['push'](_0x3a52bb['createRange'](_0x3d1e3c,_0x17ff4d['isObject'](_0x5b423d)?_0x3a52bb['createPositionAfter'](_0x5b423d):_0x3a52bb['createPositionAt'](_0x5b423d,'end'))),_0x3d1e3c=null),_0x151069++;}return _0x5a65ec;}function Nt(_0x282b39,_0x57b063,_0x538dd2){if(!_0x538dd2)return!0x1;const _0x2df451=_0x282b39['createPositionAfter'](_0x57b063),_0x3903f2=_0x282b39['createPositionBefore'](_0x538dd2);return _0x2df451['isTouching'](_0x3903f2);}function yt(_0x37e7fd,_0x193747,_0x487063){for(;_0x487063['length'];){const _0x5c61b=_0x487063['splice'](0x0,0x64);_0x37e7fd['change'](()=>{for(const _0x8d23b3 of _0x5c61b)_0x8d23b3['isInContent']&&_0x193747['execute'](_0x8d23b3['id']);});}}var St=class extends _0x137f1b{['_command'];_suggestions;constructor(_0x1f0513,_0x59485f,_0x3724a2){super(_0x1f0513),this['_command']=_0x59485f,this['_suggestions']=_0x3724a2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3871af=Array['from'](this['_suggestions']['values']())['some'](_0x25b599=>_0x25b599['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3871af;}execute(){const _0x1b25e0=kt(Array['from'](this['_suggestions']['values']()));for(const _0x324d3e of _0x1b25e0){const _0x3cd917=_0x324d3e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3cd917))return;}yt(this['editor']['model'],this['_command'],_0x1b25e0);}},Mt=class extends _0x137f1b{['_command'];_suggestions;_selectedSuggestions;constructor(_0x5ba1f3,_0x297188,_0x3b3b32){super(_0x5ba1f3),this['_command']=_0x297188,this['_suggestions']=_0x3b3b32,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x19ffc2=this['editor']['model']['document']['selection'],_0x2cf120=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4f8066,_0x48cce1){const _0x12340b=Array['from'](_0x4f8066['getRanges']()),_0x4db079=new Set();for(const _0x10142f of _0x48cce1)if(_0x10142f['isInContent']){for(const _0x48d13d of _0x12340b)for(const _0x5f51ef of _0x10142f['getRanges']())(_0x48d13d['isIntersecting'](_0x5f51ef)||_0x4f8066['isCollapsed']&&!_0x10142f['isMultiRange']&&_0x10142f['next']&&_0x5f51ef['end']['isTouching'](_0x48d13d['start']))&&_0x4db079['add'](_0x10142f);}return _0x4db079;}(_0x19ffc2,_0x2cf120),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x7aa586=kt(Array['from'](this['_selectedSuggestions']));for(const _0x55f0e7 of _0x7aa586){const _0x47b3f6=_0x55f0e7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x47b3f6))return;}yt(this['editor']['model'],this['_command'],_0x7aa586);}};const Ot=/* #__PURE__ -- @preserve */
24
- _0x3ee82e();var wt=class Suggestion extends Ot{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0xda8b80,_0x128c54){super(),this['id']=_0x128c54['id'],this['type']=_0x128c54['type'],this['subType']=_0x128c54['subType']||null,this['author']=_0x128c54['author'],this['creator']=_0x128c54['creator']||_0x128c54['author'],this['data']=null,this['_originalSuggestionId']=_0x128c54['originalSuggestionId']||null,this['_model']=_0xda8b80,this['_onAccept']=_0x128c54['onAccept'],this['_onDiscard']=_0x128c54['onDiscard'],this['_onAttributesChange']=_0x128c54['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x128c54['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0xfe8c1c=this;for(;_0xfe8c1c['previous'];)_0xfe8c1c=_0xfe8c1c['previous'];return _0xfe8c1c;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x4f0892){this['_markerNames']['add'](_0x4f0892);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x2b9ec1=>this['_model']['markers']['get'](_0x2b9ec1))['filter'](_0x61118d=>_0x61118d);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x333a5c=>{for(const _0x18dcc9 of this['getMarkers']())_0x333a5c['removeMarker'](_0x18dcc9);}),this['_markerNames']['clear']();}['removeMarker'](_0x3ed465){this['_model']['change'](_0x496c5b=>{_0x496c5b['removeMarker'](_0x3ed465);}),this['_markerNames']['delete'](_0x3ed465);}['addRange'](_0x2b5c14){const _0x45ee0d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x45ee0d),this['_model']['change'](_0x54e246=>{_0x54e246['addMarker'](_0x45ee0d,{'range':_0x2b5c14,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0xb6b764){for(const _0x771e12 of this['getRanges']())if(_0x771e12['isIntersecting'](_0xb6b764))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x541de9=>_0x541de9['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x191309,_0xa4157e)=>[..._0x191309,..._0xa4157e['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x20bddb=this['getRanges']();if(0x1!=_0x20bddb['length'])return null;const _0x42015c=_0x20bddb[0x0],_0x50f690=_0x42015c['start']['nodeAfter'],_0x1e633e=_0x42015c['end']['nodeBefore'];return _0x50f690 instanceof ot?_0x50f690!=_0x1e633e?null:_0x50f690: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 _0x24bf20=[];let _0x1b2ea1=this['head'];for(;_0x1b2ea1;)_0x24bf20['push'](_0x1b2ea1),_0x1b2ea1=_0x1b2ea1['next'];return _0x24bf20;}setAttribute(_0x347887,_0x325ab8){const _0xfd2ad6=ut(this['attributes']);gt(_0xfd2ad6,_0x347887,_0x325ab8),dt(_0xfd2ad6,this['attributes'])||(this['attributes']=_0xfd2ad6,this['_onAttributesChange'](_0xfd2ad6));}removeAttribute(_0x41a6d5){const _0x3f7df5=ut(this['attributes']);ft(_0x3f7df5,_0x41a6d5),dt(_0x3f7df5,this['attributes'])||(this['attributes']=_0x3f7df5,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 _0xc08621()['substr'](0x1,0x5);}};function Bt(_0x40fc1d,_0x2bdc71,_0x4c290c){const _0x2ca346=_0x40fc1d['t'],t=_0x40fc1d['t'];switch(_0x2bdc71){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x4c290c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4c290c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4c290c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4c290c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4c290c);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',_0x4c290c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4c290c);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4c290c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4c290c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4c290c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4c290c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4c290c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4c290c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4c290c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4c290c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4c290c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4c290c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4c290c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4c290c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4c290c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4c290c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4c290c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4c290c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4c290c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4c290c);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'},_0x4c290c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4c290c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4c290c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4c290c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4c290c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4c290c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4c290c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4c290c);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x4c290c);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x4c290c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4c290c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4c290c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4c290c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4c290c);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x4c290c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4c290c);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'},_0x4c290c);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x4c290c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4c290c);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'},_0x4c290c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4c290c);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'},_0x4c290c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4c290c);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x4c290c);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x4c290c);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x4c290c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4c290c);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x4c290c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4c290c);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x2ca346({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4c290c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2ca346({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4c290c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4c290c);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x4c290c);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x4c290c);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x4c290c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});case'SUGGESTION_ACTIONS_DISABLED_TOOLTIP':return t({'string':'This\x20suggestion\x20can\x27t\x20be\x20resolved\x20right\x20now.','id':'SUGGESTION_ACTIONS_DISABLED_TOOLTIP'});default:return _0x2bdc71;}}var Ft=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x540388,_0xeae454){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x540388,this['_locale']=_0xeae454;}getDescriptions(_0x4297e9){const _0x10b988=[],_0x403158=new Set(),_0x4c3d3f=new Set();for(let _0x29dce1=0x0;_0x29dce1<_0x4297e9['length'];_0x29dce1++){const _0x1f2bb1=_0x4297e9[_0x29dce1];if(!_0x1f2bb1['isInContent'])continue;const _0x4e2700=this['_handleCustomCallbackDescription'](_0x1f2bb1);if(_0x4e2700){if(null!=_0x1f2bb1['subType']){if(_0x403158['has'](_0x1f2bb1['subType']))continue;_0x403158['add'](_0x1f2bb1['subType']);}_0x10b988['push'](_0x4e2700);}else{if('attribute'==_0x1f2bb1['type']){const _0x1e2ff5=_0x1f2bb1['data']['key'];if(_0x4c3d3f['has'](_0x1e2ff5))continue;_0x4c3d3f['add'](_0x1f2bb1['data']['key']),'$elementName'==_0x1e2ff5?this['_handleRenameSuggestionDescription'](_0x10b988,_0x1f2bb1):this['_handleAttributeSuggestionDescription'](_0x10b988,_0x1f2bb1);continue;}'insertion'!=_0x1f2bb1['type']&&'deletion'!=_0x1f2bb1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x10b988,_0x1f2bb1,_0x4297e9[_0x29dce1+0x1]);}}return this['_resolveDescriptionItems'](_0x10b988);}registerDescriptionCallback(_0x4d67b5){this['_customCallbacks']['push'](_0x4d67b5);}registerElementLabel(_0x6b0f0c,_0x5a433d,_0x3059e0=_0x487ef8['normal']){'function'==typeof _0x6b0f0c?_0xb8e795(this['_itemLabelsCallbacks'],{'matchingCallback':_0x6b0f0c,'label':_0x5a433d,'priority':_0x3059e0}):this['_itemLabels']['set'](_0x6b0f0c,_0x5a433d);}registerAttributeLabel(_0x4a8484,_0x467dc6){this['_attributeLabels']['set'](_0x4a8484,_0x467dc6);}getItemLabel(_0x999500,_0x5f460f=0x1){let _0x10ff31;for(const _0x25aed8 of this['_itemLabelsCallbacks'])if(_0x25aed8['matchingCallback'](_0x999500)){_0x10ff31=_0x25aed8['label'];break;}return _0x10ff31||(_0x10ff31=this['_itemLabels']['get'](_0x999500['name'])),_0x10ff31?_0x10ff31(_0x5f460f):0x1!==_0x5f460f?_0x5f460f+'\x20'+_0x999500['name']+'s':''+_0x999500['name'];}_addDescriptionItems(_0x2ad83f,_0x9d34c){const _0x345f8b=_0x9d34c['getFirstRange']()['getWalker'](),_0x2398ff='insertion'==_0x9d34c['type']?'add':'remove';for(const _0x2a8963 of _0x345f8b){const _0x103359=_0x2a8963['item'],_0x4ee4a6=_0x2ad83f[_0x2ad83f['length']-0x1];if(_0x103359['is']('$textProxy'))_0x4ee4a6&&_0x4ee4a6['type']['indexOf']('Container')>-0x1&&_0x2ad83f['pop'](),_0x4ee4a6&&'text'==_0x4ee4a6['type']?_0x4ee4a6[_0x2398ff]+=_0x103359['data']:_0x2ad83f['push']({'type':'text','add':'add'==_0x2398ff?_0x103359['data']:'','remove':'remove'==_0x2398ff?_0x103359['data']:''});else{if(this['_schema']['isObject'](_0x103359)){const _0x49c4d3=_0x103359;if(_0x4ee4a6&&_0x4ee4a6['type']['indexOf']('Container')>-0x1&&_0x2ad83f['pop'](),'elementEnd'==_0x2a8963['type'])continue;_0x4ee4a6&&_0x4ee4a6['type']==_0x2398ff+'Object'&&_0x4ee4a6['element']['name']==_0x49c4d3['name']?_0x4ee4a6['quantity']++:_0x2ad83f['push']({'type':_0x2398ff+'Object','element':_0x49c4d3,'quantity':0x1}),_0x345f8b['skip'](_0x5a7ddd=>!('elementEnd'==_0x5a7ddd['type']&&_0x5a7ddd['item']==_0x103359));}else{if(this['_schema']['checkChild'](_0x103359,'$text')||_0x103359['is']('element','softBreak')){const _0x800fb3=_0x103359;if('add'==_0x2398ff&&'elementStart'==_0x2a8963['type']||'remove'==_0x2398ff&&'elementEnd'==_0x2a8963['type'])continue;if(_0x4ee4a6&&-0x1==_0x4ee4a6['type']['indexOf']('Container')){'text'==_0x4ee4a6['type']&&(_0x4ee4a6[_0x2398ff]+='\x0a');continue;}let _0x2d3a95;if(_0x2d3a95='add'==_0x2398ff?_0x800fb3['nextSibling']&&!this['_schema']['isObject'](_0x800fb3['nextSibling'])?_0x800fb3['nextSibling']:null:_0x800fb3['previousSibling']&&!this['_schema']['isObject'](_0x800fb3['previousSibling'])?_0x800fb3['previousSibling']:null,_0x800fb3['isEmpty']||_0x2d3a95&&_0x2d3a95['isEmpty']){const _0x5d1a5e=_0x2d3a95&&_0x2d3a95['isEmpty']?_0x2d3a95:_0x800fb3;_0x4ee4a6&&_0x4ee4a6['type']==_0x2398ff+'EmptyContainer'&&_0x4ee4a6['element']['name']==_0x5d1a5e['name']?_0x4ee4a6['quantity']++:_0x2ad83f['push']({'type':_0x2398ff+'EmptyContainer','element':_0x5d1a5e,'quantity':0x1});}else _0x2ad83f['push']({'type':_0x2398ff+'Container','element':_0x800fb3});}}}}}_resolveDescriptionItems(_0xc42a8d){const _0x76adf8=this['_locale'],_0x4466e2=[],_0x529137=[],_0x193aaa=[];for(const _0x2856c8 of _0xc42a8d)switch(_0x2856c8['type']){case'text':if(_0x2856c8['add']=_0x2856c8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2856c8['remove']=_0x2856c8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2856c8['add']&&''!=_0x2856c8['remove']){_0x4466e2['push']({'type':'replace','content':Bt(_0x76adf8,'REPLACE_TEXT',['\x22'+_0x2856c8['remove']+'\x22','\x22'+_0x2856c8['add']+'\x22'])});continue;}if(null!=_0x2856c8['add']['match'](/^ +$/)){_0x4466e2['push']({'type':'insertion','content':Bt(_0x76adf8,'*Insert:*\x20%0',Bt(_0x76adf8,'ELEMENT_SPACE',_0x2856c8['add']['length']))});continue;}if(null!=_0x2856c8['remove']['match'](/^ +$/)){_0x4466e2['push']({'type':'deletion','content':Bt(_0x76adf8,'*Remove:*\x20%0',Bt(_0x76adf8,'ELEMENT_SPACE',_0x2856c8['remove']['length']))});continue;}if(''!=_0x2856c8['add']){_0x4466e2['push']({'type':'insertion','content':Bt(_0x76adf8,'*Insert:*\x20%0','\x22'+_0x2856c8['add']+'\x22')});continue;}_0x4466e2['push']({'type':'deletion','content':Bt(_0x76adf8,'*Remove:*\x20%0','\x22'+_0x2856c8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4466e2['push']({'type':'insertion','content':Bt(_0x76adf8,'*Insert:*\x20%0',this['getItemLabel'](_0x2856c8['element'],_0x2856c8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4466e2['push']({'type':'deletion','content':Bt(_0x76adf8,'*Remove:*\x20%0',this['getItemLabel'](_0x2856c8['element'],_0x2856c8['quantity']))});continue;case'addContainer':_0x4466e2['push']({'type':'insertion','content':Bt(_0x76adf8,'*Split:*\x20%0',this['getItemLabel'](_0x2856c8['element'],_0x2856c8['quantity']))});continue;case'removeContainer':_0x4466e2['push']({'type':'deletion','content':Bt(_0x76adf8,'*Merge:*\x20%0',this['getItemLabel'](_0x2856c8['element'],_0x2856c8['quantity']))});continue;case'addFormat':_0x529137['push'](_0x2856c8['key']);continue;case'removeFormat':_0x193aaa['push'](_0x2856c8['key']);continue;default:_0x4466e2['push'](_0x2856c8);}if(_0x529137['length']){const _0x386cd9=_0x529137['map'](_0x3726b6=>this['_attributeLabels']['has'](_0x3726b6)?this['_attributeLabels']['get'](_0x3726b6):_0x3726b6)['join'](',\x20');_0x4466e2['push']({'type':'format','content':Bt(this['_locale'],'*Set\x20format:*\x20%0',_0x386cd9)});}if(_0x193aaa['length']){const _0x2ecea4=_0x193aaa['map'](_0x1b26de=>this['_attributeLabels']['has'](_0x1b26de)?this['_attributeLabels']['get'](_0x1b26de):_0x1b26de)['join'](',\x20');_0x4466e2['push']({'type':'format','content':Bt(this['_locale'],'*Remove\x20format:*\x20%0',_0x2ecea4)});}return _0x4466e2;}_handleCustomCallbackDescription(_0x164259){for(const _0x3bb2eb of this['_customCallbacks']){const _0x194bea=_0x3bb2eb(_0x164259);if(_0x194bea&&'type'in _0x194bea)return _0x194bea;}}_handleAttributeSuggestionDescription(_0x19eabc,_0x22b9b6){const _0x30b753=_0x22b9b6['data'],_0x1cb0e1=void 0x0===_0x30b753['newValue']?'removeFormat':'addFormat';_0x19eabc['push']({'type':_0x1cb0e1,'key':_0x30b753['key']});}_handleRenameSuggestionDescription(_0x42c168,_0xc600f7){_0x42c168['push']({'type':'format','content':Bt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xc600f7['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x2a4301,_0x47008e,_0x384a83){if(this['_addDescriptionItems'](_0x2a4301,_0x47008e),_0x384a83&&_0x384a83['getFirstRange']()&&!_0x47008e['getFirstRange']()['end']['isEqual'](_0x384a83['getFirstRange']()['start'])){const _0x397b2a=_0x2a4301[_0x2a4301['length']-0x1],_0x22bdca='insertion'==_0x47008e['type']?'add':'remove';_0x397b2a&&'text'==_0x397b2a['type']&&(_0x397b2a[_0x22bdca]+='\x0a');}}},vt=class extends _0xf0b898{afterInit(){const _0x3bf173=this['editor'],_0x3a5aa5=_0x3bf173['plugins']['get']('TrackChangesEditing');_0x3bf173['commands']['get']('showAIAssistant')&&_0x3a5aa5['enableCommand']('showAIAssistant');}},Dt=class extends _0xf0b898{afterInit(){const _0x3b0f83=this['editor'],_0x30ea97=_0x3b0f83['plugins']['get']('TrackChangesEditing');_0x3b0f83['commands']['get']('toggleAi')&&_0x30ea97['enableCommand']('toggleAi');}},Ut=class extends _0xf0b898{afterInit(){const _0x454c03=this['editor'],_0x4d2067=_0x454c03['plugins']['get']('TrackChangesEditing');_0x454c03['commands']['get']('aiQuickAction')&&_0x4d2067['enableCommand']('aiQuickAction');}},Pt=class extends _0xf0b898{afterInit(){const _0x5e7e76=this['editor'],_0x34c4ce=_0x5e7e76['locale'];if(!_0x5e7e76['plugins']['has']('AlignmentEditing'))return;const _0x1738f3=_0x5e7e76['plugins']['get']('TrackChangesEditing');_0x1738f3['enableDefaultAttributesIntegration']('alignment'),_0x1738f3['descriptionFactory']['registerAttributeLabel']('alignment',Bt(_0x34c4ce,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x11d126=this['editor'],_0x375405=_0x11d126['locale'];_0x11d126['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe04d7f=>{if('formatBlock'!=_0xe04d7f['type'])return;const {data:_0x96e7eb}=_0xe04d7f;if(_0x96e7eb&&'alignment'==_0x96e7eb['commandName']){const _0x5b73a8=_0x96e7eb['commandParams'][0x0]['value'];return{'type':'format','content':Bt(_0x375405,'*Format:*\x20%0',function(_0x3b62e7){switch(_0x3b62e7){case'left':return Bt(_0x375405,'FORMAT_ALIGN_TO_LEFT');case'right':return Bt(_0x375405,'FORMAT_ALIGN_TO_RIGHT');case'center':return Bt(_0x375405,'FORMAT_ALIGN_TO_CENTER');case'justify':return Bt(_0x375405,'FORMAT_JUSTIFY_TEXT');}}(_0x5b73a8))};}});}};const xt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Gt=class extends _0xf0b898{afterInit(){const _0x7523f2=this['editor'],_0x521dd1=_0x7523f2['plugins']['get']('TrackChangesEditing'),_0x3923aa=_0x7523f2['locale'];for(const _0x55204b of xt){if(!_0x7523f2['plugins']['has'](_0x55204b))continue;const _0x57cc2a=_0x55204b['slice'](0x0,-0x7)['toLowerCase'](),_0x5d00ae='FORMAT_'+_0x57cc2a['toUpperCase']();_0x521dd1['enableDefaultAttributesIntegration'](_0x57cc2a),_0x521dd1['descriptionFactory']['registerAttributeLabel'](_0x57cc2a,Bt(_0x3923aa,_0x5d00ae));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5a72f1=this['editor'],_0x27c6a9=_0x5a72f1['locale'],_0x239bc5=_0x5a72f1['plugins']['get']('TrackChangesEditing');function _0x38665b(_0x16d6ea,_0x2d9692){_0x239bc5['descriptionFactory']['registerDescriptionCallback'](_0xaefdcb=>{if('formatInline'!=_0xaefdcb['type'])return;const {data:_0xc5077a}=_0xaefdcb;return _0xc5077a&&_0xc5077a['commandName']===_0x16d6ea?_0xc5077a['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x27c6a9,'*Format:*\x20%0',_0x2d9692)}:{'type':'format','content':Bt(_0x27c6a9,'*Remove\x20format:*\x20%0',_0x2d9692)}:void 0x0;});}_0x38665b('bold',Bt(_0x27c6a9,'FORMAT_BOLD')),_0x38665b('italic',Bt(_0x27c6a9,'FORMAT_ITALIC')),_0x38665b('underline',Bt(_0x27c6a9,'FORMAT_UNDERLINE')),_0x38665b('code',Bt(_0x27c6a9,'FORMAT_CODE')),_0x38665b('strikethrough',Bt(_0x27c6a9,'FORMAT_STRIKETHROUGH')),_0x38665b('subscript',Bt(_0x27c6a9,'FORMAT_SUBSCRIPT')),_0x38665b('superscript',Bt(_0x27c6a9,'FORMAT_SUPERSCRIPT'));}},Ht=class extends _0xf0b898{afterInit(){const _0xdefa98=this['editor'],_0x4575b7=_0xdefa98['locale'];if(!_0xdefa98['plugins']['has']('BlockQuoteEditing'))return;const _0x5f3cd2=_0xdefa98['plugins']['get']('TrackChangesEditing'),_0xa669ac=this['editor']['commands']['get']('blockQuote');_0x5f3cd2['enableCommand']('blockQuote',(_0x392fb1,_0x318661={})=>{const _0x12a178=this['editor']['model']['document']['selection'],_0x543409=_0x318661&&void 0x0!==_0x318661['forceValue']?_0x318661['forceValue']:!_0xa669ac['value'];let _0x54be83=[];if(_0x543409){const _0x158a9a=Array['from'](_0x12a178['getSelectedBlocks']())['filter'](_0x438e39=>$t(_0x438e39)||function(_0x45a0de,_0x1e0993){const _0x1905aa=_0x1e0993['createContext'](_0x45a0de['parent']);return!!_0x1e0993['checkChild'](_0x1905aa,'blockQuote')&&!!_0x1e0993['checkChild'](_0x1905aa['push']('blockQuote'),_0x45a0de);}(_0x438e39,this['editor']['model']['schema']));_0x54be83=Rt(_0x158a9a,_0xdefa98['model']);}else{const _0x21344f=Array['from'](_0x12a178['getSelectedBlocks']())['filter'](_0x152dc=>$t(_0x152dc));_0x54be83=Rt(_0x21344f,_0xdefa98['model']);}_0xdefa98['model']['change'](()=>{for(const _0x510823 of _0x54be83)_0x5f3cd2['markBlockFormat'](_0x510823,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x543409}]});});}),_0x5f3cd2['descriptionFactory']['registerDescriptionCallback'](_0x942224=>{const {data:_0x37450d}=_0x942224;if(_0x37450d&&'blockQuote'==_0x37450d['commandName']){const _0x152b77=Bt(_0x4575b7,'ELEMENT_BLOCK_QUOTE');return _0x37450d['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x4575b7,'*Set\x20format:*\x20%0',_0x152b77)}:{'type':'format','content':Bt(_0x4575b7,'*Remove\x20format:*\x20%0',_0x152b77)};}});}};function $t(_0x447167){return'blockQuote'==_0x447167['parent']['name'];}var Wt=class extends _0xf0b898{afterInit(){const _0xce978b=this['editor'],_0x2a9350=_0xce978b['locale'],_0x5d3253=_0xce978b['plugins']['get']('TrackChangesEditing');_0xce978b['plugins']['has']('BookmarkEditing')&&(_0x5d3253['enableCommand']('insertBookmark'),_0x5d3253['enableDefaultAttributesIntegration']('updateBookmark'),_0x5d3253['descriptionFactory']['registerDescriptionCallback'](_0x5afc32=>{if('insertion'!=_0x5afc32['type']&&'deletion'!=_0x5afc32['type']&&'attribute'!=_0x5afc32['type'])return;const _0x4e2ee4=_0x5afc32['getContainedElement']();if(null==_0x4e2ee4)return;if(!_0x4e2ee4['is']('element','bookmark'))return;const _0x45a4cf=_0x4e2ee4['getAttribute']('bookmarkId');if('insertion'==_0x5afc32['type'])return{'type':'insertion','content':Bt(_0x2a9350,'*Insert:*\x20%0','\x22'+_0x45a4cf+'\x22\x20'+Bt(_0x2a9350,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5afc32['type'])return{'type':'deletion','content':Bt(_0x2a9350,'*Remove:*\x20%0','\x22'+_0x45a4cf+'\x22\x20'+Bt(_0x2a9350,'ELEMENT_BOOKMARK'))};const {data:_0x129b8b}=_0x5afc32;return _0x129b8b&&'bookmarkId'==_0x129b8b['key']?{'type':'format','content':Bt(_0x2a9350,'*Set\x20bookmark:*\x20%0','\x22'+_0x129b8b['newValue']+'\x22')}:void 0x0;}));}},Vt=class extends _0xf0b898{afterInit(){const _0x4353d1=this['editor'];_0x4353d1['plugins']['has']('CaseChange')&&(_0x4353d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4353d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4353d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},zt=class extends _0xf0b898{afterInit(){const _0xbe7447=this['editor'];_0xbe7447['commands']['get']('ckbox')&&_0xbe7447['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},jt=class extends _0xf0b898{static get requires(){return[mt,Et];}constructor(_0x237d0d){super(_0x237d0d),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x3de455=this['editor'],_0x30e514=_0x3de455['plugins']['get']('ClipboardMarkersUtils'),_0x196eae=_0x3de455['plugins']['get'](Et);_0x30e514['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x196eae['on']('outputTransformation',(_0xdd3c0,_0x4a7e4a)=>{const _0x59c439=this['_getSuggestionEntries'](_0x4a7e4a);for(const [_0x581ac3,_0x773478]of _0x4a7e4a['content']['markers']){const _0x354adc=ct['_fromRangeInDocumentFragment'](_0x773478,_0x3de455['model']);function _0x120668(){_0x354adc['detach'](),_0x4a7e4a['content']['markers']['delete'](_0x581ac3);}_0x354adc['on']('change:drop',_0x120668),(_0x581ac3['startsWith']('suggestion:')||_0x581ac3['startsWith']('comment:'))&&_0x354adc['on']('change:range',()=>{_0x354adc['isCollapsed']&&_0x120668();}),_0x4a7e4a['content']['markers']['set'](_0x581ac3,_0x354adc);}const _0x506ceb=_0x59c439['filter'](_0x8710ea=>'deletion'===_0x8710ea['meta']['type'])['map'](_0x48a56b=>_0x48a56b['modelRange']);if(this['_shouldSkipDeletions'](_0x506ceb,_0x4a7e4a['content']))return[..._0x59c439]['forEach'](_0x54ec81=>{_0x4a7e4a['content']['markers']['get'](_0x54ec81['markerName'])['detach'](),_0x4a7e4a['content']['markers']['delete'](_0x54ec81['markerName']);}),void this['_restoreRegularRanges'](_0x4a7e4a['content']['markers']);[..._0x59c439]['forEach'](_0x45e3cd=>{const _0x3d25be=_0x3de455['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x45e3cd['meta']['type'],_0x45e3cd['meta']['subType'],'accept'),{markerName:_0x145dd1,meta:_0x2bf931}=_0x45e3cd;if(_0x4a7e4a['content']['markers']['has'](_0x145dd1)){switch(_0x2bf931['type']){case'deletion':if('tableRow'===_0x2bf931['subType']||'tableColumn'===_0x2bf931['subType']){if(!_0x3de455['plugins']['has']('TableUtils'))break;const _0x1c1823=_0x3de455['plugins']['get']('TableUtils'),_0x1beda1=_0x1c1823['getSelectionAffectedTableCells'](_0x3de455['model']['createSelection'](_0x4a7e4a['content']['markers']['get'](_0x145dd1))),_0x46b2a3=_0x1beda1[0x0]['findAncestor']('table');if('tableRow'===_0x2bf931['subType']){const {first:_0x1de027,last:_0x1920b8}=_0x1c1823['getRowIndexes'](_0x1beda1);_0x1c1823['removeRows'](_0x46b2a3,{'at':_0x1de027,'rows':_0x1920b8-_0x1de027+0x1});}else{const {first:_0x51f040,last:_0x54e6c4}=_0x1c1823['getColumnIndexes'](_0x1beda1);_0x1c1823['removeColumns'](_0x46b2a3,{'at':_0x51f040,'columns':_0x54e6c4-_0x51f040+0x1});}break;}_0x3d25be([_0x4a7e4a['content']['markers']['get'](_0x145dd1)]);}_0x4a7e4a['content']['markers']['has'](_0x145dd1)&&(_0x4a7e4a['content']['markers']['get'](_0x145dd1)['detach'](),_0x4a7e4a['content']['markers']['delete'](_0x145dd1));}}),this['_restoreRegularRanges'](_0x4a7e4a['content']['markers']);});}_getSuggestionEntries(_0x17a163){const _0x4e9659=_0x19fa80=>'dragstart'===_0x17a163['method']?_0x19fa80['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x19fa80;return Array['from'](_0x17a163['content']['markers'])['map'](([_0xb2454b,_0x4b7779])=>({'markerName':_0xb2454b,'modelRange':_0x4b7779,'meta':it(_0x4e9659(_0xb2454b))}))['filter'](({meta:_0x3d0512})=>'suggestion'===_0x3d0512['group']);}_shouldSkipDeletions(_0x54fbfa,_0x16b164){if(!_0x54fbfa['length'])return!0x1;let _0x40a5fb=[this['editor']['model']['createRangeIn'](_0x16b164)];for(const _0x4dac70 of _0x54fbfa)_0x40a5fb=_0x40a5fb['flatMap'](_0x522d6d=>_0x522d6d['getDifference'](_0x4dac70));return!_0x40a5fb['some'](_0x1da25e=>this['editor']['model']['hasContent'](_0x1da25e,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x14e745){[..._0x14e745['keys']()]['forEach'](_0x3d67b7=>{const _0x124994=_0x14e745['get'](_0x3d67b7);_0x124994['detach'](),_0x14e745['set'](_0x3d67b7,_0x124994['toRange']());});}},Kt=class extends _0xf0b898{afterInit(){const _0x1351ea=this['editor'];if(!_0x1351ea['plugins']['has']('CodeBlock'))return;const _0x89e0c9=_0x1351ea['plugins']['get']('TrackChangesEditing'),_0x803216=_0x1351ea['locale'],_0x48fa43=_0x1351ea['config']['get']('codeBlock')['languages'],_0x48be84=_0x1351ea['commands']['get']('codeBlock');_0x89e0c9['enableCommand']('indentCodeBlock'),_0x89e0c9['enableCommand']('outdentCodeBlock'),_0x89e0c9['enableCommand']('codeBlock',(_0x452ba6,_0x23188b={})=>{const _0x55789f=_0x1351ea['model'],_0x53bc33=_0x1351ea['model']['document']['selection'],_0x2611f9=_0x23188b&&void 0x0!==_0x23188b['forceValue']?_0x23188b['forceValue']:!_0x48be84['value'];let _0x27f6b1;_0x23188b['language']||(_0x23188b['language']=_0x48fa43[0x0]['language']),_0x27f6b1=_0x2611f9?Array['from'](_0x53bc33['getSelectedBlocks']())['filter'](_0xa56020=>{return Xt(_0xa56020)||(_0x288713=_0xa56020,_0x5e7bd0=_0x55789f['schema'],!_0x288713['is']('rootElement')&&!_0x5e7bd0['isLimit'](_0x288713)&&_0x5e7bd0['checkChild'](_0x288713['parent'],'codeBlock'));var _0x288713,_0x5e7bd0;}):Array['from'](_0x53bc33['getSelectedBlocks']())['filter'](_0x213ee7=>Xt(_0x213ee7));const _0x5917c8=Rt(_0x27f6b1,_0x55789f);_0x55789f['change'](()=>{for(const _0x472424 of _0x5917c8)_0x89e0c9['markBlockFormat'](_0x472424,{'commandName':'codeBlock','commandParams':[{..._0x23188b,'forceValue':_0x2611f9}],'formatGroupId':'blockName'});});}),(_0x89e0c9['descriptionFactory']['registerElementLabel']('codeBlock',_0x55c80f=>Bt(_0x803216,'ELEMENT_CODE_BLOCK',_0x55c80f)),_0x89e0c9['descriptionFactory']['registerDescriptionCallback'](_0xb5c844=>{if('formatBlock'!=_0xb5c844['type'])return;const _0x37512c=_0x803216['t'],{data:_0x2e5bae}=_0xb5c844;if(!_0x2e5bae||'codeBlock'!=_0x2e5bae['commandName'])return;const _0x927243=_0x2e5bae['commandParams'][0x0]['language'],_0x544a60=_0x37512c(_0x48fa43['find'](_0x4332cc=>_0x4332cc['language']===_0x927243)['label'])['toLowerCase']();return _0x2e5bae['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x803216,'*Set\x20format:*\x20%0',Bt(_0x803216,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x544a60+')')}:{'type':'format','content':Bt(_0x803216,'*Remove\x20format:*\x20%0',Bt(_0x803216,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Xt(_0x26072b){return'codeBlock'==_0x26072b['name'];}var qt=class extends _0xf0b898{afterInit(){const _0x3ab2ce=this['editor'];_0x3ab2ce['plugins']['has']('CommentsEditing')&&_0x3ab2ce['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Yt=class extends _0xf0b898{static get requires(){return[Tt];}init(){const _0x223d6d=this['editor'],_0x280af0=_0x223d6d['plugins']['get']('TrackChangesEditing');_0x280af0['enableCommand']('delete');const _0x2987f3=_0x223d6d['commands']['get']('deleteForward');_0x280af0['enableCommand']('deleteForward',(_0x5a56f3,_0x531c5c={})=>{const _0x5b31ea=_0x223d6d['model']['createSelection'](_0x223d6d['model']['document']['selection']);_0x5b31ea['isCollapsed']&&_0x223d6d['model']['modifySelection'](_0x5b31ea,{'direction':'forward','unit':_0x531c5c['unit']});const _0x11fb52=_0x5b31ea['getFirstRange'](),_0x178052=ct['fromRange'](_0x11fb52);let _0x5c3d8e;_0x5a56f3(_0x531c5c),_0x5c3d8e='$graveyard'==_0x178052['root']['rootName']?_0x223d6d['model']['createRange'](_0x11fb52['start']):_0x223d6d['model']['createRange'](_0x178052['start'],_0x178052['end']),_0x178052['detach'](),_0x223d6d['model']['enqueueChange'](_0x2987f3['buffer']['batch'],_0x435978=>{_0x2987f3['buffer']['lock'](),_0x435978['setSelection'](_0x435978['createRange'](_0x5c3d8e['end'])),_0x2987f3['buffer']['unlock']();});});}},Qt=class extends _0xf0b898{afterInit(){const _0x4e4221=this['editor'];if(!_0x4e4221['plugins']['has']('ListEditing'))return;const _0x38e7e0=_0x4e4221['locale'],_0x15ecb3=_0x4e4221['plugins']['get']('TrackChangesEditing'),_0x4ff7a5=_0x4e4221['plugins']['has']('TodoListEditing'),_0x3d50f3=!!_0x4e4221['config']['get']('list.multiBlock');function _0x25075f(_0x15af82){return{'type':'format','content':''+Bt(_0x38e7e0,'*Set\x20format:*\x20%0',_0x15af82)};}function _0x4cd1c1(_0x5eb5ab){return{'type':'format','content':''+Bt(_0x38e7e0,'*Remove\x20format:*\x20%0',_0x5eb5ab)};}_0x15ecb3['enableDefaultAttributesIntegration']('numberedList'),_0x15ecb3['enableDefaultAttributesIntegration']('bulletedList'),_0x15ecb3['enableDefaultAttributesIntegration']('customNumberedList'),_0x15ecb3['enableDefaultAttributesIntegration']('customBulletedList'),_0x15ecb3['enableDefaultAttributesIntegration']('indentList'),_0x15ecb3['enableDefaultAttributesIntegration']('outdentList'),_0x15ecb3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x15ecb3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3d50f3&&(_0x15ecb3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x15ecb3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4ff7a5&&(_0x15ecb3['enableDefaultAttributesIntegration']('todoList'),_0x15ecb3['enableDefaultAttributesIntegration']('checkTodoList'),_0x15ecb3['descriptionFactory']['registerDescriptionCallback'](_0x132d71=>{const {data:_0x26cabe}=_0x132d71;if(_0x26cabe&&'todoListChecked'==_0x26cabe['key'])return{'type':'format','content':_0x26cabe['newValue']?Bt(_0x38e7e0,'*Check\x20item*'):Bt(_0x38e7e0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1c362e=>{if(_0x1c362e['batch']['isUndo'])return!0x1;let _0x220c08=!0x1;const _0x2ddf7f=_0x15ecb3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b6c66=>'todoListChecked'===_0x15ecb3['_getAttributeKey'](_0x2b6c66));for(const _0x459a45 of _0x2ddf7f)'todo'!=_0x459a45['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x15ecb3['_findSuggestions'](_0x459a45['getFirstRange'](),'attribute')['find'](_0x5ae5a4=>'listType'===_0x15ecb3['_getAttributeKey'](_0x5ae5a4['suggestion']))||(_0x1c362e['removeMarker'](_0x459a45['getFirstMarker']()),_0x220c08=!0x0));return _0x220c08;})),_0x15ecb3['descriptionFactory']['registerAttributeLabel']('listIndent',Bt(_0x38e7e0,'FORMAT_INDENT'));const _0x44f8af={'type':'format','content':''};_0x15ecb3['descriptionFactory']['registerDescriptionCallback'](_0x3e0566=>{const {data:_0x425049}=_0x3e0566;if(!_0x425049||'listType'!=_0x425049['key'])return;let _0x376b89=_0x3e0566['head'];for(;_0x376b89;){if(_0x376b89['data']&&(('listStyle'==_0x376b89['data']['key']||'listMarkerStyle'==_0x376b89['data']['key'])&&(_0x376b89['data']['newValue']&&'default'!=_0x376b89['data']['newValue']||'default'!=_0x376b89['data']['oldValue']&&!_0x425049['newValue'])||!_0x3d50f3&&'$elementName'==_0x376b89['data']['key']))return _0x44f8af;_0x376b89=_0x376b89['next'];}if(null==_0x425049['newValue'])switch(_0x425049['oldValue']){case'bulleted':return _0x4cd1c1(Bt(_0x38e7e0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4cd1c1(Bt(_0x38e7e0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4cd1c1(Bt(_0x38e7e0,'ELEMENT_TODO_LIST'));}switch(_0x425049['newValue']){case'bulleted':return _0x25075f(Bt(_0x38e7e0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x25075f(Bt(_0x38e7e0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x25075f(Bt(_0x38e7e0,'ELEMENT_TODO_LIST'));}}),_0x15ecb3['descriptionFactory']['registerDescriptionCallback'](_0x5ca5af=>{const {data:_0x4de542}=_0x5ca5af;if(_0x4de542&&'listIndent'==_0x4de542['key'])return null==_0x4de542['newValue']||null==_0x4de542['oldValue']&&0x0==_0x4de542['newValue']?_0x44f8af:void 0x0;}),_0x15ecb3['descriptionFactory']['registerDescriptionCallback'](_0x28204a=>{if('attribute'!=_0x28204a['type'])return;const {data:_0x40c5e2}=_0x28204a;if(!_0x40c5e2||'listItemId'!=_0x40c5e2['key'])return;const _0x3659d5=Zt(_0x28204a);return'newValue'==_0x3659d5?{'type':'format','content':Bt(_0x38e7e0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3659d5?{'type':'format','content':Bt(_0x38e7e0,'*Split:*\x20list\x20item')}:_0x44f8af;}),_0x4e4221['model']['document']['registerPostFixer'](_0x1c27c2=>this['listItemIdFixer'](_0x1c27c2)),_0x4e4221['model']['document']['registerPostFixer'](_0x5b304c=>this['noTrackChangesFixer'](_0x5b304c)),_0x4e4221['model']['document']['on']('change:data',(_0x564556,_0x4ac303)=>{if(_0x4ac303['isUndo']||!_0x4ac303['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x483e59){if(_0x483e59['batch']['isUndo']||!_0x483e59['batch']['isLocal'])return!0x1;let _0x3fe831=!0x1;const _0x21d20b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ee72c=>_0x2ee72c['data']&&'listItemId'==_0x2ee72c['data']['key'])['filter'](_0x1f0b7c=>_0x1f0b7c['data']['newValue']&&_0x1f0b7c['data']['oldValue']);for(const _0x47e0f5 of _0x21d20b)Zt(_0x47e0f5)||(_0x483e59['removeMarker'](_0x47e0f5['getFirstMarker']()),_0x3fe831=!0x0);return _0x3fe831;}['noTrackChangesFixer'](_0x172bdc){if(_0x172bdc['batch']['isUndo']||!_0x172bdc['batch']['isLocal'])return!0x1;const _0x36a00f=this['editor']['model']['document']['differ'],_0x408278=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x408278['trackChangesCommand']['value'])return!0x1;let _0x4d8447=!0x1;const _0x6a82db=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x3d858a=_0x36a00f['getChanges']()['filter'](_0x512cc4=>'attribute'==_0x512cc4['type'])['filter'](_0x261c4d=>_0x6a82db['has'](_0x261c4d['attributeKey']));if(0x0==_0x3d858a['length'])return _0x4d8447;const _0x4e05d7=new Set(_0x36a00f['getMarkersToAdd']()['filter'](_0x34cd6d=>{if(!_0x34cd6d['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x387ec2=it(_0x34cd6d['name'])['subType']['split']('|')[0x0];return _0x6a82db['has'](_0x387ec2);})['map'](_0x3cb31c=>it(_0x3cb31c['name'])['id']));for(const _0x3815b2 of _0x3d858a){const _0x1b0c38=_0x408278['_findSuggestions'](_0x3815b2['range'],'attribute')['filter'](_0x528834=>{if(_0x528834['meta']['isNextTo'])return!0x1;if(_0x4e05d7['has'](_0x528834['suggestion']['id']))return!0x1;const _0x553cea=_0x408278['_getAttributeKey'](_0x528834['suggestion']);return _0x6a82db['has'](_0x553cea);})['map'](_0x30ff6d=>_0x30ff6d['suggestion']);if(_0x1b0c38['length']){for(const _0x5045a8 of _0x1b0c38)_0x172bdc['removeMarker'](_0x5045a8['getFirstMarker']());_0x4d8447=!0x0;}}return _0x4d8447;}['assureChains'](){const _0x39a6f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16e478=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x1e2b80;const _0x5b4a6e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x36231b=>{if(_0x36231b['data']['oldRange']||!_0x36231b['data']['newRange'])return null;if(!_0x36231b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3b1370}=it(_0x36231b['name']);if(!_0x39a6f3['hasSuggestion'](_0x3b1370))return null;const _0x4f0e3d=_0x39a6f3['getSuggestion'](_0x3b1370);return _0x16e478['includes'](_0x4f0e3d['data']['key']);})['map'](_0x34af06=>{const {id:_0x413f52}=it(_0x34af06['name']),_0x265eb8=_0x39a6f3['getSuggestion'](_0x413f52);return _0x1e2b80=_0x265eb8['attributes']['groupId'],_0x265eb8['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5b4a6e['size'])return;const _0x4a715a=_0x39a6f3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xba86fa=>'attribute'==_0xba86fa['type']&&_0xba86fa['data']&&_0x16e478['includes'](_0xba86fa['data']['key'])&&_0xba86fa['attributes']['groupId']!=_0x1e2b80)['map'](_0x2f505a=>({'listItem':_0x2f505a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2f505a['attributes']['groupId']})),_0x39f9e9=new Set();for(const {groupId:_0x39efa4,listItem:_0x1a2367}of _0x4a715a)_0x5b4a6e['has'](_0x1a2367)&&_0x39f9e9['add'](_0x39efa4);for(const _0x13ca95 of _0x39a6f3['getSuggestions']())_0x39f9e9['has'](_0x13ca95['attributes']['groupId'])&&_0x13ca95['setAttribute']('groupId',_0x1e2b80);}_supportLegacySuggestions(){const _0x11004e=this['editor'],_0x34a6c4=_0x11004e['locale'],_0x4bc0ab=_0x11004e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4bc0ab['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2ca516,_0x496e4a){const _0x1c6bb2=[];for(let _0x51c28c of _0x2ca516)_0x51c28c['start']['nodeAfter']===_0x51c28c['end']['parent']&&(_0x51c28c=_0x11004e['model']['createRange'](_0x11004e['model']['createPositionAt'](_0x51c28c['start']['nodeAfter'],0x0))),_0x1c6bb2['push'](_0x51c28c);_0x11004e['model']['change'](_0x2d08af=>{const _0x353f96=_0x11004e['model']['document']['selection'],_0x5450a6=Array['from'](_0x353f96['getRanges']())['map'](_0x33b6f7=>ct['fromRange'](_0x33b6f7));_0x2d08af['setSelection'](_0x1c6bb2),_0x11004e['commands']['get'](_0x496e4a['commandName'])['refresh'](),_0x496e4a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x11004e['execute'](_0x496e4a['commandName'],..._0x496e4a['commandParams']),_0x2d08af['setSelection'](_0x5450a6);for(const _0x59508c of _0x5450a6)_0x59508c['detach']();});}),_0x4bc0ab['descriptionFactory']['registerElementLabel'](function(_0x24f4ef){const _0x5702a6=!_0x11004e['model']['schema']['isObject'](_0x24f4ef),_0x4e15d4=_0x24f4ef['previousSibling'],_0x40fdb3=_0x24f4ef['nextSibling'],_0x843165=_0x24f4ef['getAttribute']('listItemId'),_0x2ad603=!_0x4e15d4||_0x4e15d4['getAttribute']('listItemId')!==_0x843165,_0x5114a5=!_0x40fdb3||_0x40fdb3['getAttribute']('listItemId')!==_0x843165;return _0x5702a6&&Boolean(_0x843165)&&_0x2ad603&&_0x5114a5;},_0x3a2380=>Bt(_0x34a6c4,'ELEMENT_LIST_ITEM',_0x3a2380));}_registerLegacyDescription(){const _0x155496=this['editor'],_0x24c41d=_0x155496['locale'];function _0x103456(_0x1db10a){const _0xbad425=_0x155496['commands']['get']('bulletedList')['value'],_0x3437f2=_0x155496['commands']['get']('numberedList')['value'];return'numberedList'===_0x1db10a?_0xbad425:_0x3437f2;}_0x155496['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1df2de){if('formatBlock'!=_0x1df2de['type'])return;const {data:_0xfb9a83}=_0x1df2de;if(!_0xfb9a83)return;let _0x4882d1,_0x546c50,_0x2f46b2,_0x241176;switch(_0xfb9a83['commandName']){case'bulletedList':_0x2f46b2=_0xfb9a83['commandParams'][0x0]['forceValue'],_0x241176=_0x103456(_0xfb9a83['commandName']),_0x4882d1=_0x2f46b2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x241176&&_0x155496['config']['get']('list.multiBlock')||(_0x4882d1='*Change\x20to:*\x20%0'),_0x546c50={'type':'format','content':Bt(_0x24c41d,_0x4882d1,Bt(_0x24c41d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2f46b2=_0xfb9a83['commandParams'][0x0]['forceValue'],_0x241176=_0x103456(_0xfb9a83['commandName']),_0x4882d1=_0x2f46b2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x241176&&_0x155496['config']['get']('list.multiBlock')||(_0x4882d1='*Change\x20to:*\x20%0'),_0x546c50={'type':'format','content':Bt(_0x24c41d,_0x4882d1,Bt(_0x24c41d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4882d1='*Indent:*\x20%0',_0x546c50={'type':'format','content':Bt(_0x24c41d,_0x4882d1,Bt(_0x24c41d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4882d1=function(_0x1a83dd){const _0x555c2a=_0x1a83dd['getFirstRange']();let _0x1103c0=_0x555c2a['start']['nodeAfter'];for(;_0x1103c0&&_0x555c2a['containsItem'](_0x1103c0);){if(_0x1103c0['getAttribute']('listIndent')>0x0)return!0x1;_0x1103c0=_0x1103c0['nextSibling'];}return!0x0;}(_0x1df2de)?Bt(_0x24c41d,'*Format:*\x20remove\x20from\x20%0',Bt(_0x24c41d,function(_0x1d05b7){return'ELEMENT_'+_0x1d05b7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1df2de))):Bt(_0x24c41d,'*Outdent:*\x20%0',Bt(_0x24c41d,'ELEMENT_LIST_ITEM')),_0x546c50={'type':'format','content':_0x4882d1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xfb9a83['multipleBlocks']&&(_0x4882d1='*Merge:*\x20%0',_0x546c50={'type':'deletion','content':Bt(_0x24c41d,_0x4882d1,Bt(_0x24c41d,'ELEMENT_LIST_ITEM'))});}return _0x546c50;});}};function Zt(_0x4ba16e){let _0x43e4f9=_0x4ba16e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x43e4f9;){const _0x2e15b7=_0x43e4f9['getAttribute']('listItemId');if(!_0x2e15b7)return!0x1;if(_0x2e15b7==_0x4ba16e['data']['newValue'])return'newValue';if(_0x2e15b7==_0x4ba16e['data']['oldValue'])return'oldValue';_0x43e4f9=_0x43e4f9['previousSibling'];}return!0x1;}var Jt=class extends _0xf0b898{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3c5bee=this['editor']['config']['get']('list.properties'),_0x52fc8a=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c5bee['styles']&&_0x52fc8a['enableDefaultAttributesIntegration']('listStyle'),_0x3c5bee['reversed']&&_0x52fc8a['enableDefaultAttributesIntegration']('listReversed'),_0x3c5bee['startIndex']&&_0x52fc8a['enableDefaultAttributesIntegration']('listStart');const _0xb1b2ae={'type':'format','content':''};_0x52fc8a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3ea022=this['editor']['locale'];_0x52fc8a['descriptionFactory']['registerAttributeLabel']('listReversed',Bt(_0x3ea022,'FORMAT_LIST_REVERSED')),_0x52fc8a['descriptionFactory']['registerDescriptionCallback'](_0x3e86ba=>{const {data:_0x40767a}=_0x3e86ba;if(_0x40767a&&'listReversed'==_0x40767a['key'])return null==_0x40767a['newValue']||0x0==_0x40767a['newValue']&&null==_0x40767a['oldValue']?_0xb1b2ae:void 0x0;}),_0x52fc8a['descriptionFactory']['registerAttributeLabel']('listStart',Bt(_0x3ea022,'FORMAT_LIST_START')),_0x52fc8a['descriptionFactory']['registerDescriptionCallback'](_0x2e9ada=>{const {data:_0x1f0ff0}=_0x2e9ada;if(_0x1f0ff0&&'listStart'==_0x1f0ff0['key'])return null==_0x1f0ff0['newValue']||0x1==_0x1f0ff0['newValue']&&null==_0x1f0ff0['oldValue']?_0xb1b2ae:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x338309=>{if(_0x338309['batch']['isUndo'])return!0x1;let _0x35a086=!0x1;const _0x4ea96f=_0x52fc8a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x288d79=>{const _0x39fa74=_0x52fc8a['_getAttributeKey'](_0x288d79);return'listStart'==_0x39fa74||'listReversed'==_0x39fa74;});for(const _0x4c10fe of _0x4ea96f){const _0x3ddd3c=_0x4c10fe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x3ddd3c&&'customNumbered'!=_0x3ddd3c&&(_0x52fc8a['_findSuggestions'](_0x4c10fe['getFirstRange'](),'attribute')['find'](_0x14d564=>'listType'==_0x52fc8a['_getAttributeKey'](_0x14d564['suggestion']))||(_0x338309['removeMarker'](_0x4c10fe['getFirstMarker']()),_0x35a086=!0x0));}return _0x35a086;}),this['_registerLegacyDescription']();}handleDescriptions(_0x253b27){const _0x1aa892=this['editor']['locale'],{data:_0x1ea276}=_0x253b27,_0x6a803f={'type':'format','content':''};if(!_0x1ea276||'listStyle'!=_0x1ea276['key'])return;if(!_0x1ea276['oldValue'])return'default'==_0x1ea276['newValue']?_0x6a803f:{'type':'format','content':''+Bt(_0x1aa892,'*Set\x20format:*\x20%0',Bt(_0x1aa892,this['_getTranslationKeyForListStyle'](_0x1ea276['newValue'])))};if(!_0x1ea276['newValue']){if('default'==_0x1ea276['oldValue'])return _0x6a803f;let _0x19bf8d=_0x253b27['head'];for(;_0x19bf8d;){if(_0x19bf8d['data']&&'listType'==_0x19bf8d['data']['key']&&_0x19bf8d['data']['newValue'])return _0x6a803f;_0x19bf8d=_0x19bf8d['next'];}return{'type':'format','content':''+Bt(_0x1aa892,'*Remove\x20format:*\x20%0',Bt(_0x1aa892,this['_getTranslationKeyForListStyle'](_0x1ea276['oldValue'])))};}if('default'!=_0x1ea276['newValue'])return{'type':'format','content':''+Bt(_0x1aa892,'*Set\x20format:*\x20%0',Bt(_0x1aa892,this['_getTranslationKeyForListStyle'](_0x1ea276['newValue'])))};let _0x1e205d=_0x253b27['head'];for(;_0x1e205d;){if(_0x1e205d['data']&&'listType'==_0x1e205d['data']['key']&&_0x1e205d['data']['newValue']&&_0x1e205d['data']['oldValue'])return _0x6a803f;_0x1e205d=_0x1e205d['next'];}return{'type':'format','content':Bt(_0x1aa892,'*Set\x20format:*\x20%0',Bt(_0x1aa892,'ELEMENT_'+_0x253b27['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x69568c=this['editor'],_0x579752=_0x69568c['locale'];_0x69568c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4adc93=>{if('formatBlock'!=_0x4adc93['type'])return;const {data:_0x82ddcd}=_0x4adc93;if(!_0x82ddcd)return;let _0x18eee8,_0x21fc49;switch(_0x82ddcd['commandName']){case'listStyle':_0x18eee8='*Change\x20to:*\x20%0',_0x21fc49={'type':'format','content':Bt(_0x579752,_0x18eee8,Bt(_0x579752,this['_getTranslationKeyForListStyle'](_0x82ddcd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x18eee8=_0x82ddcd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x21fc49={'type':'format','content':Bt(_0x579752,_0x18eee8)};break;case'listStart':_0x18eee8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x21fc49={'type':'format','content':Bt(_0x579752,_0x18eee8,_0x82ddcd['commandParams'][0x0]['startIndex'])};}return _0x21fc49;});}_getTranslationKeyForListStyle(_0x311607){return'ELEMENT_'+(_0x33b8a9=_0x311607,te['includes'](_0x33b8a9)?'bulleted':ee['includes'](_0x33b8a9)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x311607['toUpperCase']()['replace'](/-/g,'_');var _0x33b8a9;}};const te=['disc','circle','square'],ee=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var ne=class extends _0xf0b898{afterInit(){const _0x1f7202=this['editor'];_0x1f7202['commands']['get']('emoji')&&_0x1f7202['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ie=class extends _0xf0b898{static get requires(){return[pt];}init(){const _0x12b0f=this['editor'],_0x3b3874=_0x12b0f['plugins']['get']('TrackChangesEditing'),_0x14b47e=_0x12b0f['commands']['get']('enter');_0x3b3874['enableCommand']('enter',()=>{_0x12b0f['model']['change'](_0x8a029a=>{const _0x5575c3=_0x12b0f['model']['document']['selection'],_0x514db3=_0x5575c3['getFirstPosition'](),_0x778586=ct['fromRange'](_0x5575c3['getFirstRange']());if(_0x14b47e['enterBlock'](_0x8a029a)){const _0x230bef=_0x12b0f['model']['createPositionAt'](_0x514db3['parent']['nextSibling'],0x0),_0xedea7d=_0x8a029a['createRange'](_0x514db3,_0x230bef);_0x3b3874['markInsertion'](_0xedea7d);}else _0x8a029a['setSelection'](_0x8a029a['createRange'](_0x778586['end']));_0x778586['detach'](),_0x14b47e['fire']('afterExecute',{'writer':_0x8a029a});});});}},se=class extends _0xf0b898{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3abdfe=this['editor']['plugins']['get']('TrackChangesEditing');_0x3abdfe['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3abdfe['enableCommand']('findNext'),_0x3abdfe['enableCommand']('findPrevious'),_0x3abdfe['enableCommand']('replace'),_0x3abdfe['enableCommand']('replaceAll');}['handleFindCommand'](_0x424826,_0x548aa2,_0x31edfc={}){const _0xee57be=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x424826(_0x2dca61=>{let _0x39fc2b=('string'==typeof _0x548aa2?_0xee57be['findByTextCallback'](_0x548aa2,_0x31edfc):_0x548aa2)(_0x2dca61);Array['isArray'](_0x39fc2b)&&(_0x39fc2b={'results':_0x39fc2b,'searchText':'string'==typeof _0x548aa2?_0x548aa2:''});const _0x161726=_0x39fc2b['results']['filter'](_0x47f095=>!0x1===this['_isInDeletionRange'](_0x47f095,_0x2dca61['item']));return{..._0x39fc2b,'results':_0x161726};},_0x31edfc);}_isInDeletionRange(_0x42944f,_0x5d9a5c){const _0x57e05d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5d9a5c,_0x42944f['start']),this['editor']['model']['createPositionAt'](_0x5d9a5c,_0x42944f['end']));for(const _0x11eb62 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x57e05d['getIntersection'](_0x11eb62['getRange']()))return!0x0;return!0x1;}};const re=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var oe=class extends _0xf0b898{afterInit(){const _0x46fdbd=this['editor']['locale'],_0x547421=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x504ea7,commandName:_0x5009b4}of re)this['editor']['plugins']['has'](_0x504ea7)&&_0x547421['enableDefaultAttributesIntegration'](_0x5009b4);_0x547421['descriptionFactory']['registerAttributeLabel']('fontSize',Bt(_0x46fdbd,'FORMAT_FONT_SIZE')),_0x547421['descriptionFactory']['registerAttributeLabel']('fontFamily',Bt(_0x46fdbd,'FORMAT_FONT_FAMILY')),_0x547421['descriptionFactory']['registerAttributeLabel']('fontColor',Bt(_0x46fdbd,'FORMAT_FONT_COLOR')),_0x547421['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Bt(_0x46fdbd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x24ba9b=this['editor'],_0x5536ee=_0x24ba9b['locale'];_0x24ba9b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x199f7f=>{const _0x584d47=_0x5536ee['t'];if('formatInline'!=_0x199f7f['type'])return;const {data:_0x354931}=_0x199f7f;if(null!=_0x354931){if('fontSize'==_0x354931['commandName']){const _0x1dc26d=_0x354931['commandParams'][0x0]['value'];if(_0x1dc26d){const _0x569f73=_0x584d47(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x42400f=>_0x42400f['model']==_0x1dc26d)['title'])['toLowerCase']();return{'type':'format','content':Bt(_0x5536ee,'*Set\x20font\x20size:*\x20%0',_0x569f73)};}return{'type':'format','content':Bt(_0x5536ee,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x354931['commandName']){const _0x2df8b0=_0x354931['commandParams'][0x0]['value'];return _0x2df8b0?{'type':'format','content':Bt(_0x5536ee,'*Set\x20font\x20family:*\x20%0',_0x2df8b0)}:{'type':'format','content':Bt(_0x5536ee,'*Reset\x20font\x20family*')};}if('fontColor'==_0x354931['commandName']){const _0xccc7b3=_0x354931['commandParams'][0x0]['value'];if(_0xccc7b3){const _0x503d2b=_0x8e2d9e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x516ade=>_0x516ade['model']==_0xccc7b3);let _0x38807b=_0xccc7b3,_0x806438='';return _0x503d2b&&(_0x38807b=_0x503d2b['label'],_0x806438=_0x3088c8(_0x5536ee,_0x38807b)['toLowerCase']()),{'type':'format','content':Bt(_0x5536ee,'*Set\x20font\x20color:*\x20%0',_0x806438)['trim'](),'color':{'value':_0xccc7b3,'title':_0x806438||_0x38807b}};}return{'type':'format','content':Bt(_0x5536ee,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x354931['commandName']){const _0x10634a=_0x354931['commandParams'][0x0]['value'];if(_0x10634a){const _0xa61f21=_0x8e2d9e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xd34860=>_0xd34860['model']==_0x10634a);let _0x4f9cd3=_0x10634a,_0x350282='';return _0xa61f21&&(_0x4f9cd3=_0xa61f21['label'],_0x350282=_0x3088c8(_0x5536ee,_0x4f9cd3)['toLowerCase']()),{'type':'format','content':Bt(_0x5536ee,'*Set\x20font\x20background\x20color:*\x20%0',_0x350282)['trim'](),'color':{'value':_0x10634a,'title':_0x350282||_0x4f9cd3}};}return{'type':'format','content':Bt(_0x5536ee,'*Reset\x20font\x20background\x20color*')};}}});}},ae=class extends _0xf0b898{afterInit(){const {plugins:_0xecd2e4}=this['editor'];_0xecd2e4['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0xecd2e4['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x1198ab,plugins:_0x99fa43,commands:_0x586fe7}=this['editor'],_0x45d1f1=_0x99fa43['get']('TrackChangesEditing');_0x586fe7['get']('footnotesStyle')&&_0x45d1f1['enableDefaultAttributesIntegration']('footnotesStyle'),_0x586fe7['get']('footnotesStart')&&_0x45d1f1['enableDefaultAttributesIntegration']('footnotesStart'),_0x45d1f1['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Bt(_0x1198ab,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x45d1f1['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Bt(_0x1198ab,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x459815=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x186fb7,commands:_0x73c7e1}=this['editor'];_0x73c7e1['get']('insertFootnote')&&_0x459815['enableCommand']('insertFootnote'),_0x459815['descriptionFactory']['registerElementLabel']('footnoteRef',_0x334f41=>Bt(_0x186fb7,'ELEMENT_FOOTNOTE_REF',_0x334f41)),_0x459815['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x324573=>Bt(_0x186fb7,'ELEMENT_FOOTNOTE_DEFINITION',_0x324573)),_0x459815['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x47f8f8=>Bt(_0x186fb7,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x47f8f8));}},ce=class extends _0xf0b898{afterInit(){const _0x5cb36e=this['editor'],_0xe86eac=_0x5cb36e['plugins']['get']('TrackChangesEditing'),_0x48484b=_0x5cb36e['commands']['get']('copyFormat'),_0x2d2c6e=_0x5cb36e['commands']['get']('pasteFormat');_0x48484b&&_0x2d2c6e&&(_0xe86eac['enableDefaultAttributesIntegration']('pasteFormat'),_0xe86eac['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x5b7248=this['editor'],_0x4a4907=_0x5b7248['locale'];_0x5b7248['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9e2c4a=>{if('formatBlock'!=_0x9e2c4a['type']&&'formatInline'!=_0x9e2c4a['type'])return;const {data:_0x55f24f}=_0x9e2c4a;if(_0x55f24f&&'pasteFormat'===_0x55f24f['commandName']){const _0xcc1c02=[],_0x391c30=_0x55f24f['commandParams'][0x0];for(const [_0x7132c5,_0x518a24]of Object['entries'](_0x391c30))_0xcc1c02['push'](le(_0x5b7248,_0x7132c5,_0x518a24));return _0xcc1c02['length']?{'type':'format','content':Bt(_0x4a4907,'*Set\x20format\x20to:*\x20%0',_0xcc1c02['join'](',\x20'))}:{'type':'format','content':Bt(_0x4a4907,'*Remove\x20all\x20formatting*')};}});}};function le(_0x537f33,_0x5cef59,_0x547cef){const _0x44ee88=_0x537f33['locale'],_0x2d5f45=_0x44ee88['t'],_0x179a8=_0x5cef59['split'](/(?=[A-Z])/)['join']('\x20'),_0x3c9d48=_0x2d5f45(_0x179a8['charAt'](0x0)['toUpperCase']()+_0x179a8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x547cef)return _0x3c9d48;if('fontColor'===_0x5cef59||'fontBackgroundColor'===_0x5cef59){const _0x10789d=_0x8e2d9e(_0x537f33['config']['get']('fontColor.colors'))['find'](_0x4d3275=>_0x4d3275['model']==_0x547cef);return _0x3c9d48+'\x20('+(_0x10789d?_0x3088c8(_0x44ee88,_0x10789d['label'])['toLowerCase']():_0x547cef)+')';}if('fontSize'===_0x5cef59&&isNaN(parseFloat(_0x547cef))){const _0x12a900=_0x537f33['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x537f33['config']['get']('fontSize.options'))['find'](_0xd6a009=>_0xd6a009['model']==_0x547cef);return _0x3c9d48+'\x20('+(_0x12a900?_0x2d5f45(_0x12a900['title'])['toLowerCase']():_0x547cef)+')';}return _0x3c9d48+'\x20('+_0x547cef+')';}var ue=class extends _0xf0b898{afterInit(){const _0x4110cf=this['editor'];if(!_0x4110cf['plugins']['has']('GeneralHtmlSupport')||!_0x4110cf['plugins']['has']('DataSchema'))return;const _0x3fd129=_0x4110cf['plugins']['get']('TrackChangesEditing'),_0x455a38=_0x4110cf['plugins']['get']('GeneralHtmlSupport'),_0x5f0e04=_0x4110cf['plugins']['get']('DataSchema'),_0x345533=_0x4110cf['locale'],_0x5470f2=new Set(['htmlContent']);for(const _0x16c142 of _0x5f0e04['getDefinitionsForView'](/.*/,!0x1)){const _0x2bb4b3=_0x16c142['view'],_0x577cd6=_0x455a38['getGhsAttributeNameForElement'](_0x2bb4b3);_0x5470f2['add'](_0x577cd6),!_0x16c142['isInline']||_0x16c142['isObject']||'appliesToBlock'in _0x16c142&&_0x16c142['appliesToBlock']||_0x3fd129['descriptionFactory']['registerAttributeLabel'](_0x577cd6,_0x2bb4b3),_0x16c142['model']['startsWith']('html')&&_0x3fd129['descriptionFactory']['registerElementLabel'](_0x16c142['model'],_0x19fad3=>Bt(_0x345533,'ELEMENT_HTML_TAG',[_0x19fad3,_0x2bb4b3]));}_0x3fd129['descriptionFactory']['registerAttributeLabel']('htmlContent',Bt(_0x345533,'FORMAT_RAW_HTML_CONTENT')),_0x3fd129['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Bt(_0x345533,'FORMAT_HTML_LIST_ITEM')),_0x3fd129['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Bt(_0x345533,'FORMAT_HTML_BULLETED_LIST')),_0x3fd129['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Bt(_0x345533,'FORMAT_HTML_NUMBERED_LIST')),_0x3fd129['descriptionFactory']['registerDescriptionCallback'](_0x5154e2=>{if('attribute'!==_0x5154e2['type'])return;const _0x167726=_0x5154e2['data'];if(!_0x167726||!_0x5470f2['has'](_0x167726['key']))return;if('htmlContent'===_0x167726['key'])return{'type':'format','content':Bt(_0x345533,'*Change\x20%0\x20content*',Bt(_0x345533,'ELEMENT_RAW_HTML'))};const {setItems:_0x4c7d71,removeItems:_0x97d88f}=function(_0xb2789e,_0x3526b2,_0x1547e1){const _0x462375=[],_0x383490=[],_0x4b4909=_0xb2789e['styles']??{},_0x16e694=_0x3526b2['styles']??{};for(const _0x20889e of new Set([...Object['keys'](_0x4b4909),...Object['keys'](_0x16e694)]))_0x4b4909[_0x20889e]!==_0x16e694[_0x20889e]&&(void 0x0===_0x16e694[_0x20889e]?_0x383490['push'](_0x20889e):_0x462375['push'](_0x20889e+'\x20('+_0x16e694[_0x20889e]+')'));const _0x40dfb0=Bt(_0x1547e1,'FORMAT_HTML_CLASS'),_0x4e53a2=new Set(_0xb2789e['classes']??[]),_0x5e92e4=new Set(_0x3526b2['classes']??[]),_0x18c6b3=[..._0x5e92e4]['some'](_0x9b8db8=>!_0x4e53a2['has'](_0x9b8db8)),_0x38f575=[..._0x4e53a2]['some'](_0x4c0ef5=>!_0x5e92e4['has'](_0x4c0ef5));_0x18c6b3&&_0x462375['push'](_0x40dfb0),_0x38f575&&_0x383490['push'](_0x40dfb0);const _0x38eab7=Bt(_0x1547e1,'FORMAT_HTML_ATTRIBUTE'),_0xef9f09=_0xb2789e['attributes']??{},_0x41c1e9=_0x3526b2['attributes']??{};let _0x4f6989=!0x1,_0x1c3d49=!0x1;for(const _0x4d6305 of new Set([...Object['keys'](_0xef9f09),...Object['keys'](_0x41c1e9)]))_0xef9f09[_0x4d6305]!==_0x41c1e9[_0x4d6305]&&(void 0x0===_0x41c1e9[_0x4d6305]?_0x1c3d49=!0x0:_0x4f6989=!0x0);return _0x4f6989&&_0x462375['push'](_0x38eab7),_0x1c3d49&&_0x383490['push'](_0x38eab7),{'setItems':_0x462375,'removeItems':_0x383490};}(_0x167726['oldValue']??{},_0x167726['newValue']??{},_0x345533);if(!_0x4c7d71['length']&&!_0x97d88f['length'])return;const _0x56adc0=[];return _0x4c7d71['length']&&_0x56adc0['push'](Bt(_0x345533,'*Set\x20format:*\x20%0',_0x4c7d71['join'](',\x20'))),_0x97d88f['length']&&_0x56adc0['push'](Bt(_0x345533,'*Remove\x20format:*\x20%0',_0x97d88f['join'](',\x20'))),{'type':'format','content':_0x56adc0['join']('\x0a')};});}},de=class extends _0xf0b898{_headingOptions;afterInit(){const _0x553481=this['editor'];if(!_0x553481['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x553481['config']['get']('heading.options');const _0x1d7c7e=_0x553481['locale'],_0x184d09=_0x553481['plugins']['get']('TrackChangesEditing');_0x184d09['enableDefaultAttributesIntegration']('heading');for(const _0x2d6379 of this['_headingOptions'])'paragraph'!=_0x2d6379['model']&&_0x184d09['descriptionFactory']['registerElementLabel'](_0x2d6379['model'],_0x1b6306=>{const _0x1e1739=this['_getHeadingLevel'](_0x2d6379['model']);return null!==_0x1e1739?_0x380777(_0x1b6306,_0x1e1739):_0xa92919(_0x1b6306,_0x2d6379['title']);});function _0x380777(_0x5c0ee5,_0x219822){return Bt(_0x1d7c7e,'ELEMENT_HEADING',[_0x5c0ee5,_0x219822]);}function _0xa92919(_0x6cd543,_0x1bd584){return Bt(_0x1d7c7e,'ELEMENT_HEADING_CUSTOM',[_0x6cd543,_0x1bd584]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1b79eb=this['editor'],_0x248cbc=_0x1b79eb['locale'];function _0x492a3e(_0x398dfb,_0x592fbd){return Bt(_0x248cbc,'ELEMENT_HEADING_CUSTOM',[_0x398dfb,_0x592fbd]);}_0x1b79eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3adc28=>{if('formatBlock'!=_0x3adc28['type'])return;const {data:_0x3e3f4c}=_0x3adc28;if(_0x3e3f4c&&'heading'==_0x3e3f4c['commandName']){const _0x2fc837=_0x3e3f4c['commandParams'][0x0]['value'],_0x17279e=this['_getHeadingLevel'](_0x2fc837);if(null!==_0x17279e)return{'type':'format','content':Bt(_0x248cbc,'*Change\x20to:*\x20%0',(_0x1a42b1=0x1,_0x286e18=_0x17279e,Bt(_0x248cbc,'ELEMENT_HEADING',[_0x1a42b1,_0x286e18])))};const _0x4cdbc2=this['_headingOptions']['find'](_0x24c874=>_0x24c874['model']===_0x2fc837)['title'];return{'type':'format','content':Bt(_0x248cbc,'*Change\x20to:*\x20%0',_0x492a3e(0x1,_0x4cdbc2))};}var _0x1a42b1,_0x286e18;});}_getHeadingLevel(_0x4f1fd4){const _0x2b80d9=_0x4f1fd4['match'](/^heading(\d+)/);if(_0x2b80d9)return _0x2b80d9[0x1];const _0x2c07a7=this['_headingOptions']?.['find'](_0x2cc0ca=>_0x2cc0ca['model']==_0x4f1fd4);if(_0x2c07a7&&_0x2c07a7['view']){const _0x5b6fe1=_0x2c07a7['view'],_0x10b54f=(_0x5b6fe1['name']??_0x5b6fe1)['match'](/^h(\d+)/);if(_0x10b54f)return _0x10b54f[0x1];}return null;}},he=class extends _0xf0b898{afterInit(){const _0x46d961=this['editor'];if(!_0x46d961['plugins']['has']('HighlightEditing'))return;const _0x2168d9=_0x46d961['plugins']['get']('TrackChangesEditing'),_0x31717a=_0x46d961['locale'];_0x2168d9['enableDefaultAttributesIntegration']('highlight'),_0x2168d9['descriptionFactory']['registerAttributeLabel']('highlight',Bt(_0x31717a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4c81de=this['editor'],_0x5c830d=_0x4c81de['locale'];_0x4c81de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fab2f=>{if('formatInline'!=_0x3fab2f['type'])return;const {data:_0x45d62d}=_0x3fab2f;if(_0x45d62d&&'highlight'==_0x45d62d['commandName']){const _0x360619=_0x5c830d['t'],_0x5a7df9=_0x45d62d['commandParams'][0x0]['value'];if(_0x5a7df9){const _0x44b2b8=_0x4c81de['config']['get']('highlight.options')['find'](_0x39bc3c=>_0x39bc3c['model']==_0x5a7df9),_0x4e9da2=_0x360619(_0x44b2b8['title'])['toLowerCase']();return{'type':'format','content':Bt(_0x5c830d,'*Set\x20highlight:*\x20%0',_0x4e9da2),'color':{'value':_0x44b2b8['color'],'title':_0x44b2b8['title']}};}return{'type':'format','content':Bt(_0x5c830d,'*Remove\x20highlight*',Bt(_0x5c830d,'FORMAT_HIGHLIGHT'))};}});}},ge=class extends _0xf0b898{afterInit(){const _0x40d3b8=this['editor'];if(!_0x40d3b8['plugins']['has']('HorizontalLineEditing'))return;_0x40d3b8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x30c299=_0x40d3b8['plugins']['get']('TrackChangesEditing'),_0xc89daa=_0x40d3b8['locale'];_0x30c299['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1e0f6c=>Bt(_0xc89daa,'ELEMENT_HORIZONTAL_LINE',_0x1e0f6c));}},fe=class extends _0xf0b898{afterInit(){const _0x2e9671=this['editor'];if(!_0x2e9671['plugins']['has']('HtmlEmbed'))return;const _0xa337c7=_0x2e9671['plugins']['get']('TrackChangesEditing'),_0x1cad9f=_0x2e9671['locale'];_0xa337c7['descriptionFactory']['registerElementLabel']('rawHtml',_0x1ac1df=>Bt(_0x1cad9f,'ELEMENT_HTML_EMBED',_0x1ac1df)),_0xa337c7['enableDefaultAttributesIntegration']('htmlEmbed'),_0xa337c7['descriptionFactory']['registerDescriptionCallback'](_0x32a721=>{if('attribute'!=_0x32a721['type'])return;const {data:_0x35c19f}=_0x32a721;if(_0x35c19f&&'value'==_0x35c19f['key']&&_0x32a721['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x567c88=Bt(_0x1cad9f,'ELEMENT_HTML_EMBED');return{'type':'format','content':Bt(_0x1cad9f,'*Change\x20%0\x20content*',_0x567c88)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5afcf6=this['editor'],_0x2f2c19=_0x5afcf6['locale'];_0x5afcf6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20556f=>{if('formatBlock'!=_0x20556f['type'])return;const {data:_0xfb2951}=_0x20556f;if(_0xfb2951&&'htmlEmbed'==_0xfb2951['commandName']){const _0x4098e9=Bt(_0x2f2c19,'ELEMENT_HTML_EMBED');return{'type':'format','content':Bt(_0x2f2c19,'*Change\x20%0\x20content*',_0x4098e9)};}});}},me=class extends _0xf0b898{afterInit(){const _0x4c9282=this['editor'];if(!_0x4c9282['plugins']['has']('ImageEditing'))return;const _0x4949b4=_0x4c9282['plugins']['get']('TrackChangesEditing'),_0x2e085d=_0x4c9282['plugins']['get']('ImageUtils'),_0x350a4c=_0x4c9282['locale'];_0x4949b4['enableCommand']('insertImage'),_0x4949b4['descriptionFactory']['registerElementLabel']('imageBlock',_0x30de89=>Bt(_0x350a4c,'ELEMENT_IMAGE',_0x30de89)),_0x4949b4['descriptionFactory']['registerElementLabel']('imageInline',_0x28e43d=>Bt(_0x350a4c,'ELEMENT_INLINE_IMAGE',_0x28e43d)),_0x4949b4['descriptionFactory']['registerElementLabel']('caption',()=>Bt(_0x350a4c,'ELEMENT_CAPTION')),_0x4c9282['plugins']['has']('ImageUploadEditing')&&_0x4949b4['enableCommand']('uploadImage'),_0x4c9282['plugins']['has']('ImageBlockEditing')&&_0x4c9282['plugins']['has']('ImageInlineEditing')&&(_0x4949b4['enableCommand']('imageTypeInline',(_0x143872,_0x15d67c)=>{const _0x2e2573=_0x2e085d['getClosestSelectedImageElement'](_0x4c9282['model']['document']['selection']);_0x4c9282['model']['change'](()=>{_0x4949b4['markBlockFormat'](_0x2e2573,{'commandName':'imageTypeInline','commandParams':[_0x15d67c]},[],'convertBlockImageToInline');});}),_0x4949b4['enableCommand']('imageTypeBlock',(_0x4b4054,_0x2778b0)=>{_0x4c9282['model']['change'](_0x27c50a=>{let _0x3c3065=_0x2e085d['getClosestSelectedImageElement'](_0x4c9282['model']['document']['selection']),_0x57bffc=_0x27c50a['createRangeOn'](_0x3c3065);const _0x2bf252=at['fromPosition'](_0x57bffc['start'],'toPrevious'),_0x55a9a2=at['fromPosition'](_0x57bffc['end'],'toNext');_0x4949b4['forceDefaultExecution'](()=>_0x4b4054(_0x2778b0)),_0x3c3065=_0x2e085d['getClosestSelectedImageElement'](_0x4c9282['model']['document']['selection']),_0x57bffc=_0x27c50a['createRangeOn'](_0x3c3065);const _0x24b1c9=_0x27c50a['createRange'](_0x2bf252,_0x55a9a2);_0x2bf252['detach'](),_0x55a9a2['detach'](),_0x4949b4['markBlockFormat'](_0x3c3065,{'commandName':'imageTypeInline','commandParams':[_0x2778b0]},[],'convertInlineImageToBlock'),_0x24b1c9['start']['isBefore'](_0x57bffc['start'])&&_0x4949b4['markInsertion'](_0x27c50a['createRange'](_0x24b1c9['start'],_0x57bffc['start']),'convertInlineImageToBlock'),_0x57bffc['end']['isBefore'](_0x24b1c9['end'])&&_0x4949b4['markInsertion'](_0x27c50a['createRange'](_0x57bffc['end'],_0x24b1c9['end']),'convertInlineImageToBlock');});}),_0x4949b4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4949b4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4949b4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4949b4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4949b4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4949b4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x10f3f0])=>{const _0xf6410e=_0x4949b4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1290b4=_0x10f3f0['start'],_0x54c1b4=_0x10f3f0['end'];const _0xcada16=_0x4c9282['model']['schema']['getNearestSelectionRange'](_0x1290b4,'backward'),_0xecf81d=_0x4c9282['model']['schema']['getNearestSelectionRange'](_0x54c1b4,'forward');_0xcada16['isCollapsed']&&(_0x1290b4=_0xcada16['start']),_0xecf81d['isCollapsed']&&(_0x54c1b4=_0xecf81d['end']),_0xf6410e([_0x4c9282['model']['createRange'](_0x1290b4,_0x54c1b4)]);}),_0x4949b4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1bf107),_0x4949b4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1bf107)),_0x4c9282['plugins']['has']('ImageCaptionEditing')&&(_0x4949b4['enableCommand']('toggleImageCaption',(_0x33cabc,_0x540671)=>{const _0x1c7c80=_0x4c9282['plugins']['get']('ImageCaptionUtils');let _0x36e97a=_0x2e085d['getClosestSelectedImageElement'](_0x4c9282['model']['document']['selection']),_0xc6310c=_0x1c7c80['getCaptionFromImageModelElement'](_0x36e97a);_0x4c9282['model']['change'](()=>{if(_0xc6310c)return void _0x4949b4['markDeletion'](_0x4c9282['model']['createRangeOn'](_0xc6310c));const _0x597e76=_0x2e085d['isBlockImage'](_0x36e97a);_0x33cabc(_0x540671),_0x36e97a=_0x2e085d['getClosestSelectedImageElement'](_0x4c9282['model']['document']['selection']),_0xc6310c=_0x1c7c80['getCaptionFromImageModelElement'](_0x36e97a),_0x4949b4['markInsertion'](_0x4c9282['model']['createRangeOn'](_0xc6310c),_0x597e76?null:'imageCaption');});}),_0x4949b4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1bf107));const _0x2d65d0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x16761a(_0x3690e5,_0x3fe6c9){const _0x341ebc=_0x2d65d0['findIndex'](({type:_0x4aa686,subType:_0x22d15e})=>_0x3690e5['type']==_0x4aa686&&_0x3690e5['subType']==_0x22d15e),_0x43a81c=_0x2d65d0['findIndex'](({type:_0x30ca58,subType:_0xc3ee1})=>_0x3fe6c9['type']==_0x30ca58&&_0x3fe6c9['subType']==_0xc3ee1);if(_0x341ebc<0x0||_0x43a81c<0x0)return!0x1;const _0x15394c=_0x3690e5['getFirstRange'](),_0x8097b4=_0x3fe6c9['getFirstRange']();if((0x0==_0x341ebc||0x1==_0x341ebc)&&0x2==_0x43a81c&&_0x15394c['isIntersecting'](_0x8097b4))return!0x0;if(0x2==_0x341ebc&&0x3==_0x43a81c){const _0x3b3c08=_0x4949b4['_findSuggestions'](_0x15394c,'insertion')['filter'](({suggestion:_0x53299d,meta:_0x448930})=>_0x448930['isOwn']&&'convertInlineImageToBlock'==_0x53299d['subType']);if(_0x3b3c08['length']>0x1&&_0x8097b4['end']['isEqual'](_0x15394c['start']))return!0x0;if(0x1==_0x3b3c08['length']&&(_0x15394c['start']['isEqual'](_0x8097b4['end'])||_0x15394c['end']['isEqual'](_0x8097b4['start'])))return!0x0;}if(0x3==_0x341ebc&&0x3==_0x43a81c&&_0x15394c['start']['isBefore'](_0x8097b4['start'])){const _0xb6a036=_0x15394c['end']['nodeAfter'],_0x1774e7=_0x8097b4['start']['nodeBefore'];return _0x2e085d['isBlockImage'](_0xb6a036)&&_0xb6a036===_0x1774e7;}return!0x1;}function _0x1bf107(_0x1b6b21,_0xadc17a){return _0x16761a(_0x1b6b21,_0xadc17a)?[_0x1b6b21,_0xadc17a]:_0x16761a(_0xadc17a,_0x1b6b21)?[_0xadc17a,_0x1b6b21]:null;}_0x4c9282['plugins']['has']('ImageResize')&&(_0x4949b4['enableDefaultAttributesIntegration']('resizeImage'),_0x4949b4['descriptionFactory']['registerAttributeLabel']('resizedWidth',Bt(_0x350a4c,'FORMAT_IMAGE_SIZE'))),_0x4c9282['plugins']['has']('ImageTextAlternativeEditing')&&_0x4949b4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4c9282['plugins']['has']('PictureEditing')&&_0x4949b4['descriptionFactory']['registerDescriptionCallback'](_0x471d7c=>{if('attribute'!=_0x471d7c['type'])return;const {data:_0x4b5c33}=_0x471d7c;return _0x4b5c33&&'sources'==_0x4b5c33['key']?{'type':'format','content':''}:void 0x0;}),_0x4c9282['plugins']['has']('ImageSizeAttributes')&&_0x4949b4['descriptionFactory']['registerDescriptionCallback'](_0x3805eb=>{if('attribute'!=_0x3805eb['type'])return;const {data:_0x5758f6}=_0x3805eb;return!_0x5758f6||'width'!=_0x5758f6['key']&&'height'!=_0x5758f6['key']?void 0x0:{'type':'format','content':''};}),_0x4949b4['descriptionFactory']['registerDescriptionCallback'](_0x13c192=>{if(_0x2d65d0['find'](({type:_0x1414e0,subType:_0xadd956})=>_0x13c192['type']==_0x1414e0&&_0x13c192['subType']==_0xadd956))return _0x13c192['previous']?{}:void 0x0;}),_0x4949b4['descriptionFactory']['registerDescriptionCallback'](_0x18e222=>{if('insertion'==_0x18e222['type']||'deletion'==_0x18e222['type']){const _0x16c799=_0x18e222['getContainedElement']();if(_0x16c799&&_0x16c799['is']('element','caption'))return{'type':'insertion'==_0x18e222['type']?'addObject':'removeObject','element':_0x16c799,'quantity':0x1};}}),_0x4949b4['descriptionFactory']['registerDescriptionCallback'](_0x273ada=>'formatBlock'==_0x273ada['type']&&'convertInlineImageToBlock'==_0x273ada['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x273ada['type']&&'convertBlockImageToInline'==_0x273ada['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4949b4['descriptionFactory']['registerDescriptionCallback'](_0x5e1ea0=>{if('attribute'!=_0x5e1ea0['type'])return;const {data:_0x43daac}=_0x5e1ea0;if(!_0x43daac||'alt'!=_0x43daac['key'])return;const _0x1d391a=_0x43daac['newValue'];return _0x1d391a?{'type':'format','content':Bt(_0x350a4c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1d391a+'\x22')}:{'type':'format','content':Bt(_0x350a4c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x186d28=this['editor'],_0x554f31=_0x186d28['locale'];_0x186d28['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x105bb3=>{if('formatBlock'!=_0x105bb3['type']&&'formatInline'!=_0x105bb3['type'])return;const {data:_0x12191f}=_0x105bb3;if(_0x12191f){if('imageTextAlternative'==_0x12191f['commandName']){const _0x597f93=_0x12191f['commandParams'][0x0]['newValue'];return _0x597f93?{'type':'format','content':Bt(_0x554f31,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x597f93+'\x22')}:{'type':'format','content':Bt(_0x554f31,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x12191f['commandName']){const _0x37627c=_0x12191f['commandParams'][0x0]['width'];return _0x37627c?{'type':'format','content':Bt(_0x554f31,'*Set\x20image\x20width:*\x20%0',_0x37627c)}:{'type':'format','content':Bt(_0x554f31,'*Reset\x20image\x20width*')};}}});}},Ee=class extends _0xf0b898{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x44f789=this['editor']['locale'],_0x3eab4b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3eab4b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3eab4b['descriptionFactory']['registerDescriptionCallback'](_0x1bfc12=>{if('attribute'!=_0x1bfc12['type'])return;const {data:_0xa11279}=_0x1bfc12;return _0xa11279&&'src'==_0xa11279['key']?_0xa11279['newValue']&&_0xa11279['oldValue']?{'type':'format','content':Bt(_0x44f789,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x141f98=this['editor']['plugins']['get']('TrackChangesEditing');_0x141f98['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x141f98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x141f98['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x141f98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3e1435=this['editor'],_0xbf1792=_0x3e1435['locale'];_0x3e1435['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e7d48=>{if('formatBlock'!=_0x2e7d48['type']&&'formatInline'!=_0x2e7d48['type'])return;const {data:_0x1041c6}=_0x2e7d48;return _0x1041c6&&'replaceImageSource'==_0x1041c6['commandName']?{'type':'format','content':Bt(_0xbf1792,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},Te=class extends _0xf0b898{afterInit(){const _0x26ec35=this['editor'];if(!_0x26ec35['plugins']['has']('ImageStyleEditing'))return;const _0x211bcf=_0x26ec35['plugins']['get']('TrackChangesEditing'),_0x29fc7d=_0x26ec35['plugins']['get']('ImageUtils'),_0x5d84a2={};_0x211bcf['enableCommand']('imageStyle',(_0x5ca958,_0x2eeff0)=>{const _0x8ab0fd=_0x26ec35['plugins']['get']('Users')['me'],_0x428a41=_0x26ec35['commands']['get']('imageStyle');let _0x1a8782=_0x29fc7d['getClosestSelectedImageElement'](_0x26ec35['model']['document']['selection']),_0x2cf3ef=_0x26ec35['model']['createRangeOn'](_0x1a8782),_0x13eae3=_0x428a41['value'];if(_0x13eae3==_0x2eeff0['value'])return;if(_0x2eeff0['value']&&_0x29fc7d['isInlineImage'](_0x1a8782)&&!_0x428a41['isStyleEnabled'](_0x2eeff0['value']))return;const _0x2467fd={'commandName':'imageStyle','commandParams':[_0x2eeff0],'formatGroupId':_0xc08621()};_0x26ec35['model']['change'](()=>{if(_0x211bcf['getSuggestions']()['filter'](_0x2d51d4=>_0x2d51d4['isInContent']&&_0x8ab0fd==_0x2d51d4['author']&&('formatBlock'==_0x2d51d4['type']||'formatInline'==_0x2d51d4['type'])&&('imageStylePreApply'==_0x2d51d4['subType']||'imageStylePostApply'==_0x2d51d4['subType'])&&_0x2d51d4['getFirstRange']()['isEqual'](_0x2cf3ef))['forEach'](_0xc72ae8=>_0x211bcf['discardSuggestion'](_0xc72ae8['head'])),_0x1a8782=_0x29fc7d['getClosestSelectedImageElement'](_0x26ec35['model']['document']['selection']),_0x2cf3ef=_0x26ec35['model']['createRangeOn'](_0x1a8782),_0x428a41['refresh'](),_0x26ec35['commands']['get']('imageTypeInline')['refresh'](),_0x26ec35['commands']['get']('imageTypeBlock')['refresh'](),_0x13eae3=_0x428a41['value'],_0x13eae3!=_0x2eeff0['value'])return _0x29fc7d['isInlineImage'](_0x1a8782)&&_0x428a41['shouldConvertImageType'](_0x2eeff0['value'],_0x1a8782)?(_0x5ca958({..._0x2eeff0,'setImageSizes':!0x1}),_0x1a8782=_0x29fc7d['getClosestSelectedImageElement'](_0x26ec35['model']['document']['selection']),void _0x211bcf['markBlockFormat'](_0x1a8782,{..._0x2467fd,'commandReversedParams':[{'value':_0x13eae3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x29fc7d['isBlockImage'](_0x1a8782)?_0x211bcf['markBlockFormat'](_0x1a8782,_0x2467fd,[],'imageStylePostApply'):_0x211bcf['markInlineFormat'](_0x2cf3ef,_0x2467fd,'imageStylePostApply'));});});for(const _0x2d6d1a of _0x26ec35['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5d84a2[_0x2d6d1a['name']]=_0x2d6d1a['title']['toLowerCase']();_0x211bcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x211bcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x211bcf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x211bcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x40ad2c])=>{_0x29fc7d['setImageNaturalSizeAttributes'](_0x40ad2c['getContainedElement']());}),_0x211bcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x400650,_0x450fa2)=>{_0x211bcf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x400650,{'commandName':_0x450fa2['commandName'],'commandParams':_0x450fa2['commandReversedParams']});}),_0x211bcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x835467,_0x7763f9){return _0x4ff4d6(_0x835467,_0x7763f9)?[_0x835467,_0x7763f9]:_0x4ff4d6(_0x7763f9,_0x835467)?[_0x7763f9,_0x835467]:null;});const _0x2bf12c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ff4d6(_0x39dc40,_0x10bd1a){const _0x3eb5bd=_0x2bf12c['findIndex'](({type:_0x1263a4,subType:_0x570be9})=>_0x39dc40['type']==_0x1263a4&&_0x39dc40['subType']==_0x570be9),_0x5f5528=_0x2bf12c['findIndex'](({type:_0x2c8763,subType:_0xe48033})=>_0x10bd1a['type']==_0x2c8763&&_0x10bd1a['subType']==_0xe48033);if(_0x3eb5bd<0x0||_0x5f5528<0x0)return!0x1;const _0xec629b=_0x39dc40['getFirstRange'](),_0xc47456=_0x10bd1a['getFirstRange']();if((0x0==_0x3eb5bd||0x1==_0x3eb5bd)&&0x2==_0x5f5528&&_0xec629b['isIntersecting'](_0xc47456))return!0x0;if(0x2==_0x3eb5bd&&0x3==_0x5f5528){const _0xface98=_0x211bcf['_findSuggestions'](_0xec629b,'insertion')['filter'](({suggestion:_0x52bfd3,meta:_0x4f3603})=>_0x4f3603['isOwn']&&'convertInlineImageToBlock'==_0x52bfd3['subType']);if(_0xface98['length']>0x1&&_0xc47456['end']['isEqual'](_0xec629b['start']))return!0x0;if(0x1==_0xface98['length']&&(_0xec629b['start']['isEqual'](_0xc47456['end'])||_0xec629b['end']['isEqual'](_0xc47456['start'])))return!0x0;}if(0x3==_0x3eb5bd&&0x3==_0x5f5528&&_0xec629b['start']['isBefore'](_0xc47456['start'])){const _0x2c7d64=_0xec629b['end']['nodeAfter'],_0x45f7e4=_0xc47456['start']['nodeBefore'];return _0x29fc7d['isBlockImage'](_0x2c7d64)&&_0x2c7d64===_0x45f7e4;}return!0x1;}_0x26ec35['model']['document']['registerPostFixer'](()=>{let _0x2d1041=!0x1;const _0x5eda11=Array['from'](_0x26ec35['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x532ede,data:_0x12306a}of _0x5eda11){const {group:_0x525244,type:_0x3abc7c,subType:_0x3c9139,id:_0x27a7d7}=it(_0x532ede);if('suggestion'==_0x525244&&_0x211bcf['hasSuggestion'](_0x27a7d7)){if('formatBlock'==_0x3abc7c&&('imageStylePreApply'==_0x3c9139||'imageStylePostApply'==_0x3c9139)){const _0x4e58af=_0x211bcf['getSuggestion'](_0x27a7d7);if(_0x12306a['newRange']){const _0x1dd8a1=_0x4e58af['getFirstRange']()['getContainedElement']();if(_0x29fc7d['isBlockImage'](_0x1dd8a1))continue;_0x211bcf['discardSuggestion'](_0x4e58af),_0x2d1041=!0x0;}}if('insertion'==_0x3abc7c&&'imageCaption'==_0x3c9139&&!_0x12306a['newRange']){const _0x253157=_0x211bcf['getSuggestion'](_0x27a7d7);_0x253157['next']&&_0x253157['next']['isInContent']&&(_0x211bcf['discardSuggestion'](_0x253157['next']),_0x2d1041=!0x0);}}}return _0x2d1041;}),this['_registerLegacyDescription'](_0x5d84a2);}_registerLegacyDescription(_0x4bd9b1){const _0x9b586d=this['editor'],_0x47f6fb=_0x9b586d['locale'];_0x9b586d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9e31e4=>{if('formatBlock'!=_0x9e31e4['type']&&'formatInline'!=_0x9e31e4['type'])return;const {data:_0xa846f}=_0x9e31e4;if(!_0xa846f||'imageStyle'!=_0xa846f['commandName'])return;const _0x35ad7f=_0xa846f['commandParams'][0x0]['value'];return _0x3db9de('side'===_0x35ad7f?Bt(_0x47f6fb,'FORMAT_SIDE_IMAGE'):_0x4bd9b1[_0x35ad7f]||_0x35ad7f);function _0x3db9de(_0xe97f54){return{'type':'format','content':Bt(_0x47f6fb,'*Format:*\x20%0',_0xe97f54)};}});}},_e=class extends _0xf0b898{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x5b7fe1){super(_0x5b7fe1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x5e5d3d=this['editor'],_0x3ed8b5=_0x5e5d3d['commands']['get']('importWord'),_0xda2fbf=_0x5e5d3d['commands']['get']('trackChanges');_0x3ed8b5&&(_0x3ed8b5['on']('execute',(_0x1bffea,[,_0x3fa49d])=>{this['_trackChangesValueDuringImport']=_0xda2fbf['value'],_0x3fa49d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3ed8b5,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3ed8b5,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xda2fbf['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5e5d3d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x209030,_0x1894f5){const {suggestions:_0x5bf0c4}=_0x1894f5,_0x3f503a=this['editor']['commands']['get']('trackChanges'),_0x59cd15=_0x3f503a['value'];this['_trackChangesValueDuringImport']!==_0x59cd15&&(_0x3f503a['execute'](),this['_trackChangesExecuted']=!0x0),_0x5bf0c4&&_0x5bf0c4['forEach'](({id:_0x50b5ae,type:_0x562c7c,author:_0x4d9dca,created_at:_0xcf9ee2})=>{const _0x2ac07f={'id':_0x50b5ae,'type':_0x562c7c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4d9dca,'createdAt':_0xcf9ee2?new Date(_0xcf9ee2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2ac07f);});}},pe=class extends _0xf0b898{afterInit(){const _0x44f57b=this['editor'],_0x4a35e7=_0x44f57b['plugins']['get']('TrackChangesEditing');if(_0x44f57b['plugins']['has']('IndentEditing')&&(_0x4a35e7['enableCommand']('indent'),_0x4a35e7['enableCommand']('outdent')),_0x44f57b['plugins']['has']('IndentBlock')){for(const _0x36e8e2 of['indentBlock','outdentBlock'])_0x4a35e7['enableDefaultAttributesIntegration'](_0x36e8e2);if(_0x44f57b['plugins']['has']('ListEditing')){for(const _0x5a2729 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x4a35e7['enableDefaultAttributesIntegration'](_0x5a2729);}}const _0x37b7c4=_0x44f57b['locale'];_0x4a35e7['descriptionFactory']['registerAttributeLabel']('blockIndent',Bt(_0x37b7c4,'FORMAT_INDENT')),_0x4a35e7['descriptionFactory']['registerAttributeLabel']('blockIndentList',Bt(_0x37b7c4,'FORMAT_INDENT')),_0x4a35e7['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Bt(_0x37b7c4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xcc31e3=this['editor'],_0x2588be=_0xcc31e3['locale'],_0x1b8a3d=_0xcc31e3['plugins']['get']('TrackChangesEditing');_0x1b8a3d['descriptionFactory']['registerDescriptionCallback'](_0x581e6a=>{if('formatBlock'!=_0x581e6a['type'])return;const {data:_0xe9a42d}=_0x581e6a;if(!_0xe9a42d)return;if('indentBlock'!=_0xe9a42d['commandName']&&'outdentBlock'!=_0xe9a42d['commandName'])return;const _0x77fd0b=_0x581e6a['getItems']()[0x0],_0x50e2ca=_0x1b8a3d['descriptionFactory']['getItemLabel'](_0x77fd0b);return'indentBlock'==_0xe9a42d['commandName']?{'type':'format','content':Bt(_0x2588be,'*Indent:*\x20%0',_0x50e2ca)}:'outdentBlock'==_0xe9a42d['commandName']?{'type':'format','content':Bt(_0x2588be,'*Outdent:*\x20%0',_0x50e2ca)}:void 0x0;});}},Le=class extends _0xf0b898{static get requires(){return[_t];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ie=class extends _0xf0b898{afterInit(){const _0x2fa833=this['editor'];if(!_0x2fa833['plugins']['has']('LinkEditing'))return;const _0x5d70af=_0x2fa833['plugins']['get']('TrackChangesEditing'),_0x31bfa6=_0x2fa833['commands']['get']('link');_0x5d70af['enableDefaultAttributesIntegration']('link'),_0x5d70af['enableDefaultAttributesIntegration']('unlink');for(const _0x45a306 of _0x31bfa6['manualDecorators'])_0x5d70af['descriptionFactory']['registerAttributeLabel'](_0x45a306['id'],'link\x20('+_0x45a306['label']['toLowerCase']()+')');_0x5d70af['descriptionFactory']['registerDescriptionCallback'](_0xa2aaef=>{if('attribute'!=_0xa2aaef['type'])return;const {data:_0x2fd72d}=_0xa2aaef;if(!_0x2fd72d||'linkHref'!=_0x2fd72d['key'])return;const _0x4b484c=_0x2fd72d['newValue'],_0x40fa76=_0x2fa833['locale'];return{'type':'format','content':null==_0x4b484c?Bt(_0x40fa76,'*Remove\x20link*'):Bt(_0x40fa76,'*Set\x20link:*\x20%0','\x22'+_0x4b484c+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x52c491=this['editor'],_0x6e6458=_0x52c491['locale'];_0x52c491['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe9f867=>{if('formatInline'!=_0xe9f867['type'])return;const {data:_0x321817}=_0xe9f867;if(_0x321817){if('link'==_0x321817['commandName']){const _0x109699=_0x321817['commandParams'][0x0];return{'type':'format','content':Bt(_0x6e6458,'*Set\x20link:*\x20%0','\x22'+_0x109699+'\x22')};}return'unlink'==_0x321817['commandName']?{'type':'format','content':Bt(_0x6e6458,'*Remove\x20link*')}:void 0x0;}});}},Ae=class extends _0xf0b898{afterInit(){const _0x3d3208=this['editor'],_0x27bb87=_0x3d3208['locale'];if(!_0x3d3208['plugins']['has']('LegacyListEditing'))return;const _0x1d72b5=_0x3d3208['plugins']['get']('TrackChangesEditing'),_0xedae8f=_0x3d3208['plugins']['has']('LegacyTodoListEditing');function _0x5ad0ee(_0x22daa7){return()=>{const _0x4be32e=_0x3d3208['model']['document']['selection'],_0x4821f5=_0x3d3208['commands']['get'](_0x22daa7);if(_0x4821f5['value'])return void _0x3d3208['execute']('paragraph',{});const _0x15e414=_0x22daa7['slice'](0x0,-0x4),_0x57a518=function(_0x5152b1,_0x24f8a4,_0x45dc25){let _0x3495f3=Array['from'](_0x5152b1)['filter'](_0x119ff2=>function(_0x45653c,_0x33d7a1){return _0x33d7a1['checkChild'](_0x45653c['parent'],'listItem')&&!_0x33d7a1['isObject'](_0x45653c);}(_0x119ff2,_0x45dc25));_0x3495f3=_0x3495f3['filter'](_0x5ec01b=>!_0x5ec01b['is']('element','listItem')||_0x5ec01b['getAttribute']('listType')!=_0x24f8a4);const _0x33f662=new Set();for(const _0x504617 of _0x3495f3)_0x504617['is']('element','listItem')?_0x33f662['add'](be(_0x504617)):_0x33f662['add'](_0x504617);return Array['from'](_0x33f662);}(_0x4be32e['getSelectedBlocks'](),_0x15e414,_0x3d3208['model']['schema']);_0x3d3208['model']['change'](()=>{for(const _0x40e350 of _0x57a518)_0x1d72b5['markBlockFormat'](_0x40e350,{'commandName':_0x22daa7,'commandParams':[{'forceValue':!_0x4821f5['value']}],'formatGroupId':'blockName'},Ce(_0x40e350));});};}function _0x8882e(_0x270e04){return()=>{const _0x1f2aa9=function(_0x568f7c){let _0x33b118=Array['from'](_0x568f7c);const _0x19bfe4=_0x33b118['findIndex'](_0x49ea1a=>'listItem'!=_0x49ea1a['name']);return _0x19bfe4>-0x1&&(_0x33b118=_0x33b118['slice'](0x0,_0x19bfe4)),_0x33b118;}(_0x3d3208['model']['document']['selection']['getSelectedBlocks']()),_0x4e4411=_0x3d3208['model']['createRange'](_0x3d3208['model']['createPositionAt'](_0x1f2aa9[0x0],'before'),_0x3d3208['model']['createPositionAt'](_0x1f2aa9[_0x1f2aa9['length']-0x1],'end'));_0x3d3208['model']['change'](()=>{_0x1d72b5['markBlockFormat'](_0x4e4411,{'commandName':_0x270e04,'commandParams':[],'formatGroupId':'listIndent'},function(_0x43a096){const _0x2b6fbe=new Set();for(const _0x1c2a0d of _0x43a096){let _0x4b2709=_0x1c2a0d['nextSibling'];for(;_0x4b2709&&_0x4b2709['getAttribute']('listIndent')>_0x1c2a0d['getAttribute']('listIndent');)_0x2b6fbe['add'](_0x4b2709),_0x4b2709=_0x4b2709['nextSibling'];}return Array['from'](_0x2b6fbe);}(_0x1f2aa9));});};}_0x1d72b5['enableCommand']('numberedList',_0x5ad0ee('numberedList')),_0x1d72b5['enableCommand']('bulletedList',_0x5ad0ee('bulletedList')),_0xedae8f&&_0x1d72b5['enableCommand']('todoList',_0x5ad0ee('todoList')),_0x1d72b5['enableCommand']('indentList',_0x8882e('indentList')),_0x1d72b5['enableCommand']('outdentList',_0x8882e('outdentList')),_0xedae8f&&_0x1d72b5['enableCommand']('checkTodoList',()=>{const _0x2c038b=_0x3d3208['commands']['get']('checkTodoList'),_0x3f1ea2=Array['from'](_0x2c038b['_selectedElements']);_0x3f1ea2['filter'](_0x1ca711=>_0x1ca711['getAttribute']('todoListChecked')!=_0x2c038b['value']),_0x3d3208['model']['change'](()=>{for(const _0x4147d1 of _0x3f1ea2)_0x1d72b5['markBlockFormat'](_0x4147d1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2c038b['value']}]});});}),_0x1d72b5['descriptionFactory']['registerElementLabel']('listItem',_0x529d9e=>Bt(_0x27bb87,'ELEMENT_LIST_ITEM',_0x529d9e)),_0x1d72b5['descriptionFactory']['registerDescriptionCallback'](_0x33408d=>{if('formatBlock'!=_0x33408d['type']&&'formatInline'!=_0x33408d['type'])return;const {data:_0x4605ca}=_0x33408d;if(_0x4605ca){if('numberedList'==_0x4605ca['commandName']||'bulletedList'==_0x4605ca['commandName']||'todoList'==_0x4605ca['commandName'])switch(_0x4605ca['commandName']['replace']('List','')){case'bulleted':return _0xbff285(Bt(_0x27bb87,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xbff285(Bt(_0x27bb87,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xbff285(Bt(_0x27bb87,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4605ca['commandName'])return{'type':'format','content':Bt(_0x27bb87,'*Indent:*\x20%0',Bt(_0x27bb87,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4605ca['commandName'])return{'type':'format','content':Bt(_0x27bb87,'*Outdent:*\x20%0',Bt(_0x27bb87,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4605ca['commandName'])return _0x4605ca['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x27bb87,'*Check\x20item*')}:{'type':'format','content':Bt(_0x27bb87,'*Uncheck\x20item*')};}function _0xbff285(_0x5b8461){return{'type':'format','content':Bt(_0x27bb87,'*Change\x20to:*\x20%0',_0x5b8461)};}});}};function be(_0x20e3fe){const _0xc24b48=_0x20e3fe['getAttribute']('listIndent');if(0x0==_0xc24b48)return _0x20e3fe;let _0x52ec6e=_0x20e3fe;for(;_0x20e3fe['previousSibling']&&_0x20e3fe['previousSibling']['is']('element','listItem');){const _0x3fd6ed=_0x20e3fe['previousSibling']['getAttribute']('listIndent');if(_0x3fd6ed==_0xc24b48)_0x52ec6e=_0x20e3fe['previousSibling'];else{if(_0x3fd6ed<_0xc24b48)break;}_0x20e3fe=_0x20e3fe['previousSibling'];}return _0x52ec6e;}function Ce(_0x144a6b){const _0x520582=[];if(_0x144a6b['is']('element','listItem')&&_0x144a6b['getAttribute']('listIndent')>0x0){let _0x57bd09=_0x144a6b['nextSibling'];for(;_0x57bd09&&'listItem'==_0x57bd09['name']&&_0x57bd09['getAttribute']('listIndent')==_0x144a6b['getAttribute']('listIndent');)_0x520582['push'](_0x57bd09),_0x57bd09=_0x57bd09['nextSibling'];}return _0x520582;}var ke=class extends _0xf0b898{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x45ca1c=this['editor']['config']['get']('list.properties'),_0x54904=this['editor']['plugins']['get']('TrackChangesEditing');_0x45ca1c['styles']&&_0x54904['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x45ca1c['reversed']&&_0x54904['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x45ca1c['startIndex']&&_0x54904['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x54904['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x7b9e6a,_0x226fd1={}){const _0x187f04=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1457e0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x187f04['markMultiRangeBlockFormat'](_0x1457e0,{'commandName':'listStyle','commandParams':[{'type':_0x226fd1['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x57b72b,_0x3e1dcb={}){const _0x49335a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18bf83=this['_getSuggestionBlocks'](_0x3a230f=>_0x3a230f['is']('element','listItem')&&'numbered'===_0x3a230f['getAttribute']('listType'));if(_0x18bf83['length']<0x1)return;const _0x1abf93=_0x18bf83['map'](_0x5d8447=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5d8447,'before'),this['editor']['model']['createPositionAt'](_0x5d8447,0x0)));this['editor']['model']['change'](()=>{_0x49335a['markMultiRangeBlockFormat'](_0x1abf93,{'commandName':'listReversed','commandParams':[{'reversed':_0x3e1dcb['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x110539,_0x31087e={}){const _0x5591bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47a08f=this['_getSuggestionBlocks'](_0x454283=>_0x454283['is']('element','listItem')&&'numbered'===_0x454283['getAttribute']('listType'));if(_0x47a08f['length']<0x1)return;const _0x349855=_0x47a08f['map'](_0x52b078=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x52b078,'before'),this['editor']['model']['createPositionAt'](_0x52b078,0x0)));this['editor']['model']['change'](()=>{_0x5591bb['markMultiRangeBlockFormat'](_0x349855,{'commandName':'listStart','commandParams':[{'startIndex':_0x31087e['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x297b03){if('formatBlock'!=_0x297b03['type']&&'formatInline'!=_0x297b03['type'])return;const _0x3b3a57=this['editor']['locale'],{data:_0x37f031}=_0x297b03;if(!_0x37f031)return;let _0x4ae2aa,_0x4718df;switch(_0x37f031['commandName']){case'listStyle':_0x4ae2aa='*Change\x20to:*\x20%0',_0x4718df={'type':'format','content':Bt(_0x3b3a57,_0x4ae2aa,Bt(_0x3b3a57,this['_getTranslationKeyForListStyle'](_0x37f031['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4ae2aa=_0x37f031['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4718df={'type':'format','content':Bt(_0x3b3a57,_0x4ae2aa)};break;case'listStart':_0x4ae2aa='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4718df={'type':'format','content':Bt(_0x3b3a57,_0x4ae2aa,_0x37f031['commandParams'][0x0]['startIndex'])};}return _0x4718df;}_getSuggestionBlocksForListStyle(){const _0x5e43aa=this['editor']['plugins']['get']('LegacyListUtils');let _0x2ee0ce=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2ee0ce[0x0]?.['is']('element','listItem')&&_0x2ee0ce['unshift'](..._0x5e43aa['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2ee0ce[_0x2ee0ce['length']-0x1]?.['is']('element','listItem')&&_0x2ee0ce['push'](..._0x5e43aa['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2ee0ce=[...new Set(_0x2ee0ce)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2ee0ce=_0x2ee0ce['filter'](_0xfbcbb0=>_0xfbcbb0['is']('element','listItem'))),_0x2ee0ce;}_getSuggestionBlocks(_0x447548){const _0x202bf9=this['editor']['plugins']['get']('LegacyListUtils');let _0x403404=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x447548)['map'](_0x152116=>{const _0x385bfb=this['editor']['model']['createPositionAt'](_0x152116,0x0);return[..._0x202bf9['getSiblingNodes'](_0x385bfb,'backward'),..._0x202bf9['getSiblingNodes'](_0x385bfb,'forward')];})['flat']();return _0x403404=[...new Set(_0x403404)],_0x403404;}_getTranslationKeyForListStyle(_0x4e90f6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4e90f6)||'default')['toUpperCase']()+'_LIST_'+_0x4e90f6['toUpperCase']()['replace'](/-/g,'_');}},Re=class extends _0xf0b898{afterInit(){const _0x1aac6a=this['editor'];if(!_0x1aac6a['plugins']['has']('MediaEmbedEditing'))return;const _0x3c7a3a=_0x1aac6a['plugins']['get']('TrackChangesEditing'),_0x1aab17=_0x1aac6a['locale'];_0x3c7a3a['enableCommand']('mediaEmbed'),_0x3c7a3a['descriptionFactory']['registerElementLabel']('media',_0xd5ef3c=>Bt(_0x1aab17,'ELEMENT_MEDIA',_0xd5ef3c)),_0x1aac6a['plugins']['has']('MediaEmbedResizeEditing')&&(_0x3c7a3a['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x3c7a3a['descriptionFactory']['registerDescriptionCallback'](_0x7362e1=>{if('attribute'!=_0x7362e1['type'])return;const {data:_0x20c8d9}=_0x7362e1;if(!_0x20c8d9||'resizedWidth'!=_0x20c8d9['key'])return;const _0x26fdb9=_0x7362e1['getContainedElement']();if(!_0x26fdb9||!_0x26fdb9['is']('element','media'))return;const _0x2420b7=Bt(_0x1aab17,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Bt(_0x1aab17,'*Set\x20format:*\x20%0',_0x2420b7)};}));}},Ne=class extends _0xf0b898{afterInit(){const _0x3c5a30=this['editor'];if(!_0x3c5a30['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x2462a2=_0x3c5a30['plugins']['get']('TrackChangesEditing'),_0x2791b8=_0x3c5a30['locale'],_0x46fb2b=_0x3c5a30['plugins']['get']('MediaEmbedStyleEditing'),_0x3ff877={};for(const _0x324781 of _0x46fb2b['normalizedStyles'])_0x3ff877[_0x324781['name']]=_0x324781['title']['toLowerCase']();const _0x444024=_0x46fb2b['normalizedStyles']['find'](_0x1e1d71=>_0x1e1d71['isDefault'])?.['name'];_0x2462a2['enableCommand']('mediaStyle',(_0x2eebcd,_0x1c9e5b)=>{const _0x39b2d6=_0x3c5a30['plugins']['get']('Users')['me'],_0x362157=_0x3c5a30['commands']['get']('mediaStyle'),_0x1adeb6=function(_0x464feb){const _0x1156d9=_0x464feb['model']['document']['selection']['getSelectedElement']();return _0x1156d9&&_0x1156d9['is']('element','media')?_0x1156d9:null;}(_0x3c5a30);if(!_0x1adeb6)return;const _0x2448fc=_0x3c5a30['model']['createRangeOn'](_0x1adeb6);let _0x4c94d1=_0x362157['value'];if(_0x4c94d1==_0x1c9e5b['value'])return;const _0x54fe6c={'commandName':'mediaStyle','commandParams':[_0x1c9e5b],'formatGroupId':_0xc08621()};_0x3c5a30['model']['change'](()=>{_0x2462a2['getSuggestions']()['filter'](_0xf8240a=>_0xf8240a['isInContent']&&_0x39b2d6==_0xf8240a['author']&&'formatBlock'==_0xf8240a['type']&&'mediaStylePostApply'==_0xf8240a['subType']&&_0xf8240a['getFirstRange']()['isEqual'](_0x2448fc))['forEach'](_0x915e84=>_0x2462a2['discardSuggestion'](_0x915e84['head'])),_0x362157['refresh'](),_0x4c94d1=_0x362157['value'],_0x4c94d1!=_0x1c9e5b['value']&&_0x2462a2['markBlockFormat'](_0x1adeb6,{..._0x54fe6c,'commandReversedParams':[{'value':'string'==typeof _0x4c94d1?_0x4c94d1:null}]},[],'mediaStylePostApply');});}),_0x2462a2['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x2462a2['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x2126fd,_0x17686f)=>{_0x2462a2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2126fd,{'commandName':_0x17686f['commandName'],'commandParams':_0x17686f['commandReversedParams']});}),_0x2462a2['descriptionFactory']['registerDescriptionCallback'](_0x765d8b=>{if('formatBlock'!=_0x765d8b['type'])return;const {data:_0x8a610}=_0x765d8b;if(!_0x8a610||'mediaStyle'!=_0x8a610['commandName'])return;const _0x76f3a8=_0x8a610['commandParams'][0x0]['value']||_0x444024;if(!_0x76f3a8)return;const _0x5b419a=_0x3ff877[_0x76f3a8]||_0x76f3a8;return{'type':'format','content':Bt(_0x2791b8,'*Format:*\x20%0',_0x5b419a)};});}},ye=class extends _0xf0b898{afterInit(){const _0x3d0b09=this['editor'];_0x3d0b09['plugins']['has']('MentionEditing')&&_0x3d0b09['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Se=class extends _0xf0b898{afterInit(){const _0x47aa21=this['editor'];if(!_0x47aa21['plugins']['has']('MergeFieldsEditing'))return;const _0x54b900=_0x47aa21['plugins']['get']('TrackChangesEditing'),_0xa781c8=_0x47aa21['locale'];_0x54b900['enableCommand']('insertMergeField'),_0x54b900['enableCommand']('insertMergeFieldBlock'),_0x54b900['enableCommand']('insertMergeFieldImage'),_0x54b900['descriptionFactory']['registerElementLabel']('mergeField',_0x7ef9a4=>Bt(_0xa781c8,'ELEMENT_MERGE_FIELD',_0x7ef9a4)),_0x54b900['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x237e01=>Bt(_0xa781c8,'ELEMENT_MERGE_FIELD',_0x237e01)),_0x54b900['descriptionFactory']['registerDescriptionCallback'](_0xdcb3bf=>{if('insertion'!=_0xdcb3bf['type']&&'deletion'!=_0xdcb3bf['type'])return;const _0x2d1a65=_0xdcb3bf['getContainedElement']();if(null==_0x2d1a65)return;const _0x15dd9d=_0x47aa21['plugins']['get']('MergeFieldsEditing');let _0x917901;switch(_0x15dd9d['getMergeFieldType'](_0x2d1a65)){case null:return;case'image':{const _0x2c290a=_0x15dd9d['unwrapAffixes'](_0x2d1a65['getAttribute']('src'));_0x917901=_0x15dd9d['getLabel'](_0x2c290a)||_0x2c290a;break;}default:{const _0x225ec5=_0x2d1a65['getAttribute']('id');_0x917901=_0x15dd9d['getLabel'](_0x225ec5)||_0x225ec5;break;}}return'insertion'==_0xdcb3bf['type']?{'type':'insertion','content':Bt(_0xa781c8,'*Insert:*\x20%0','\x22'+_0x917901+'\x22\x20'+Bt(_0xa781c8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Bt(_0xa781c8,'*Remove:*\x20%0','\x22'+_0x917901+'\x22\x20'+Bt(_0xa781c8,'ELEMENT_MERGE_FIELD'))};});}},Me=class extends _0xf0b898{afterInit(){const _0x1cc553=this['editor'],_0x331110=_0x1cc553['plugins']['get']('TrackChangesEditing');_0x1cc553['plugins']['has']('MultiLevelList')&&(_0x331110['enableDefaultAttributesIntegration']('multiLevelList'),_0x331110['descriptionFactory']['registerDescriptionCallback'](_0x578e8f=>this['handleDescriptions'](_0x578e8f)));}handleDescriptions(_0x3eb78c){const _0x7ceefd=this['editor']['locale'],{data:_0x29550f}=_0x3eb78c,_0x1c05a0={'type':'format','content':''};if(_0x29550f&&'listMarkerStyle'==_0x29550f['key']){if(!_0x29550f['oldValue'])return{'type':'format','content':Bt(_0x7ceefd,'*Set\x20format:*\x20%0',Bt(_0x7ceefd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x29550f['newValue']+')'};if(!_0x29550f['newValue']){let _0x2a1804=_0x3eb78c['head'];for(;_0x2a1804;){if(_0x2a1804['data']&&'listType'==_0x2a1804['data']['key']&&_0x2a1804['data']['newValue'])return _0x1c05a0;_0x2a1804=_0x2a1804['next'];}return{'type':'format','content':Bt(_0x7ceefd,'*Remove\x20format:*\x20%0',Bt(_0x7ceefd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x29550f['oldValue']+')'};}}}},Oe=class extends _0xf0b898{afterInit(){const _0xb98837=this['editor'];if(!_0xb98837['plugins']['has']('PageBreakEditing'))return;_0xb98837['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3f0d2f=_0xb98837['plugins']['get']('TrackChangesEditing'),_0x361602=_0xb98837['locale'];_0x3f0d2f['descriptionFactory']['registerElementLabel']('pageBreak',_0x2c1f0a=>Bt(_0x361602,'ELEMENT_PAGE_BREAK',_0x2c1f0a));}},we=class extends _0xf0b898{afterInit(){const _0x515bd7=this['editor'];if(!_0x515bd7['plugins']['has']('Paragraph'))return;const _0x188873=_0x515bd7['locale'],_0x561684=_0x515bd7['plugins']['get']('TrackChangesEditing');_0x561684['descriptionFactory']['registerElementLabel']('paragraph',_0x240437=>Bt(_0x188873,'ELEMENT_PARAGRAPH',_0x240437)),_0x561684['enableDefaultAttributesIntegration']('paragraph'),_0x561684['enableCommand']('insertParagraph');const _0x11a051=_0x561684['descriptionFactory'];_0x11a051['registerDescriptionCallback'](_0x417189=>{if('insertion'!==_0x417189['type'])return;const {start:_0xa9283e,end:_0x15759a}=_0x417189['getFirstRange']();if(!_0xa9283e['isTouching'](_0x15759a)||!_0xa9283e['nodeAfter'])return;const _0x59c39c=_0x515bd7['model']['schema'],_0x4691f6=_0xa9283e['nodeAfter'];return _0x59c39c['isBlock'](_0x4691f6)&&!_0x59c39c['isLimit'](_0x4691f6)&&_0x59c39c['checkChild'](_0x4691f6,'$text')?{'type':'insertion','content':Bt(_0x188873,'*Insert:*\x20%0',_0x11a051['getItemLabel'](_0x4691f6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xc5be2e=this['editor'],_0x52dfa8=_0xc5be2e['locale'];_0xc5be2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa1da31=>{if('formatBlock'!=_0xa1da31['type'])return;const {data:_0x5d273a}=_0xa1da31;return _0x5d273a&&'paragraph'==_0x5d273a['commandName']?{'type':'format','content':Bt(_0x52dfa8,'*Change\x20to:*\x20%0',Bt(_0x52dfa8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Be=class extends _0xf0b898{afterInit(){const _0x5d6d73=this['editor'];_0x5d6d73['commands']['get']('replaceSource')&&_0x5d6d73['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Fe=class extends _0xf0b898{afterInit(){const _0x3964c8=this['editor'];_0x3964c8['plugins']['has']('RemoveFormatEditing')&&(_0x3964c8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x37d2b6=this['editor'];_0x37d2b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xda70d3=>{if('formatBlock'!=_0xda70d3['type']&&'formatInline'!=_0xda70d3['type'])return;const {data:_0x47aaea}=_0xda70d3;return _0x47aaea&&'removeFormat'==_0x47aaea['commandName']?{'type':'format','content':Bt(_0x37d2b6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},ve=class extends _0xf0b898{afterInit(){const _0x2dd892=this['editor'];if(!_0x2dd892['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2b5815=_0x2dd892['plugins']['get']('TrackChangesEditing');_0x2b5815['enableCommand']('goToPreviousRestrictedEditingException'),_0x2b5815['enableCommand']('goToNextRestrictedEditingException');const _0x1d3906=_0x2dd892['plugins']['get']('RestrictedEditingModeEditing');_0x1d3906['enableCommand']('trackChanges'),_0x1d3906['enableCommand']('acceptSuggestion'),_0x1d3906['enableCommand']('discardSuggestion'),_0x1d3906['enableCommand']('acceptAllSuggestions'),_0x1d3906['enableCommand']('discardAllSuggestions'),_0x1d3906['enableCommand']('acceptSelectedSuggestions'),_0x1d3906['enableCommand']('discardSelectedSuggestions');}},De=class extends _0xf0b898{afterInit(){const _0x4db59f=this['editor'];if(!_0x4db59f['plugins']['has']('ShiftEnter'))return;const _0x34217b=_0x4db59f['plugins']['get']('TrackChangesEditing');_0x34217b['enableCommand']('shiftEnter'),_0x34217b['descriptionFactory']['registerElementLabel']('softBreak',_0x46198f=>Bt(_0x4db59f['locale'],'ELEMENT_LINE_BREAK',_0x46198f));}};function Ue(_0x447bb5,_0xf51c6a,_0x5ab3a2){const _0x306588=[];for(const _0x265197 of _0xf51c6a['getItems']())_0x265197['hasAttribute'](_0x447bb5)&&_0x306588['push'](_0x5ab3a2['createRangeOn'](_0x265197));return _0x306588;}var Pe=class extends _0xf0b898{afterInit(){const _0xe55aa6=this['editor'],_0x8c6716=_0xe55aa6['plugins']['get']('TrackChangesEditing');_0xe55aa6['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x8c6716['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x32f1fe=this['editor'],_0x2f5a68=_0x32f1fe['model'],_0x7862e2=_0x32f1fe['locale'],_0x2f752e=_0x32f1fe['plugins']['get']('TrackChangesEditing'),_0x547790='restrictedEditingException',_0x5add3b=_0x32f1fe['commands']['get'](_0x547790);_0x2f752e['enableCommand'](_0x547790,(_0x2fd246,_0x370985={})=>{const _0x54cc71=_0x2f5a68['document']['selection'];if(_0x54cc71['isCollapsed'])return void _0x2fd246(_0x370985);const _0xb04fe5=void 0x0!==_0x370985['forceValue']?_0x370985['forceValue']:!_0x5add3b['value'];_0x2f5a68['change'](()=>{const _0x4edd11=Array['from'](_0x54cc71['getRanges']());for(const _0x20ce86 of _0x4edd11){const _0x2e46de=_0xb04fe5?[_0x20ce86]:Ue(_0x547790,_0x20ce86,_0x2f5a68);for(const _0x16eb7d of _0x2e46de)_0x2f752e['markInlineFormat'](_0x16eb7d,{'commandName':_0x547790,'commandParams':[{'forceValue':_0xb04fe5}]});}});}),_0x2f752e['descriptionFactory']['registerDescriptionCallback'](_0x5cdf74=>{if('formatBlock'!=_0x5cdf74['type']&&'formatInline'!=_0x5cdf74['type'])return;const {data:_0x34e2a3}=_0x5cdf74;return _0x34e2a3&&_0x34e2a3['commandName']==_0x547790?_0x34e2a3['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x7862e2,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Bt(_0x7862e2,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x3ae39d=this['editor'],_0x171e42=_0x3ae39d['locale'],_0x2c8030=_0x3ae39d['plugins']['get']('TrackChangesEditing'),_0x4e79b1='restrictedEditingExceptionBlock',_0x1da2f3=this['editor']['commands']['get'](_0x4e79b1);_0x2c8030['enableCommand'](_0x4e79b1,(_0x33c543,_0x1cd4d2={})=>{const _0x44bb78=this['editor']['model']['document']['selection'],_0x156f14=_0x1cd4d2&&void 0x0!==_0x1cd4d2['forceValue']?_0x1cd4d2['forceValue']:!_0x1da2f3['value'];let _0x2c8de0=[];if(_0x156f14){const _0x28e18f=Array['from'](_0x44bb78['getSelectedBlocks']())['filter'](_0x2db1e8=>function(_0x4b9927){return!!_0x4b9927['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x2db1e8)||function(_0x581ad1,_0x2b8193){const _0x4ee61e=_0x2b8193['createContext'](_0x581ad1['parent']);return!!_0x2b8193['checkChild'](_0x4ee61e,'restrictedEditingException')&&!!_0x2b8193['checkChild'](_0x4ee61e['push']('restrictedEditingException'),_0x581ad1);}(_0x2db1e8,this['editor']['model']['schema']));_0x2c8de0=Rt(_0x28e18f,_0x3ae39d['model']);}else{const _0x4102ee=Array['from'](_0x44bb78['getSelectedBlocks']())['map'](_0x251d9b=>function(_0x22722a){let _0x471334=_0x22722a;for(;_0x471334['parent'];){if('restrictedEditingException'==_0x471334['parent']['name'])return _0x471334;_0x471334=_0x471334['parent'];}return null;}(_0x251d9b))['filter'](_0x2bc3fe=>!!_0x2bc3fe);_0x2c8de0=Rt(_0x4102ee,_0x3ae39d['model']);}_0x3ae39d['model']['change'](()=>{for(const _0x171be3 of _0x2c8de0)_0x2c8030['markBlockFormat'](_0x171be3,{'commandName':_0x4e79b1,'commandParams':[{'forceValue':_0x156f14}]});});}),_0x2c8030['descriptionFactory']['registerDescriptionCallback'](_0x35cb37=>{const {data:_0x2be25f}=_0x35cb37;if(_0x2be25f&&_0x2be25f['commandName']==_0x4e79b1)return _0x2be25f['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x171e42,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Bt(_0x171e42,'FORMAT_RESTRICTED_DISABLED')};});}},xe=class extends _0xf0b898{afterInit(){const _0x507da5=this['editor'];_0x507da5['plugins']['has']('Style')&&_0x507da5['plugins']['has']('DataSchema')&&(_0x507da5['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x742e6f=this['editor'],_0x1fad96=_0x742e6f['locale'];_0x742e6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b8f37=>{if('formatBlock'!=_0x2b8f37['type']&&'formatInline'!=_0x2b8f37['type'])return;const {data:_0x1450d3}=_0x2b8f37;return _0x1450d3&&'style'===_0x1450d3['commandName']?_0x1450d3['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x1fad96,'*Set\x20format:*\x20%0',_0x1450d3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Bt(_0x1fad96,'*Remove\x20format:*\x20%0',_0x1450d3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ge=class extends _0xf0b898{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x18b71f){super(_0x18b71f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x46f111=this['editor'],_0xa70671=_0x46f111['model']['document']['selection'];if(!_0x46f111['plugins']['has']('TableEditing'))return;const _0x1075bd=_0x46f111['locale'],_0x472043=_0x46f111['plugins']['get']('TrackChangesEditing'),_0x49378f=_0x46f111['plugins']['get']('TableUtils');_0x472043['descriptionFactory']['registerElementLabel']('table',_0x2a33c5=>Bt(_0x1075bd,'ELEMENT_TABLE',_0x2a33c5)),this['_setupColumnsRowsFixing'](),_0x472043['enableCommand']('insertTable'),_0x472043['enableCommand']('selectTableRow'),_0x472043['enableCommand']('selectTableColumn');for(const _0x4087f3 of['insertTableRowAbove','insertTableRowBelow']){const _0x4d5b13=_0x46f111['commands']['get'](_0x4087f3);_0x472043['enableCommand'](_0x4087f3,_0x1fd3bf=>{_0x46f111['model']['change'](_0x2d9fa9=>{_0x1fd3bf();const _0x49ffc4='above'===_0x4d5b13['order'],_0x23d1d7=_0x49378f['getSelectionAffectedTableCells'](_0xa70671),_0x4ef2b1=_0x49378f['getRowIndexes'](_0x23d1d7),_0x5756f7=_0x49ffc4?_0x4ef2b1['first']-0x1:_0x4ef2b1['last']+0x1,_0x26c79b=_0x23d1d7[0x0]['findAncestor']('table'),_0x2abf08=_0x49378f['createTableWalker'](_0x26c79b,{'startRow':_0x5756f7,'endRow':_0x5756f7}),_0x26ddd5=Array['from'](_0x2abf08)['map'](_0x194425=>_0x2d9fa9['createRangeOn'](_0x194425['cell']));_0x472043['markMultiRangeInsertion'](_0x26ddd5,'tableRow');});});}for(const _0x1b312b of['insertTableColumnLeft','insertTableColumnRight']){const _0x20f5ec=_0x46f111['commands']['get'](_0x1b312b);_0x472043['enableCommand'](_0x1b312b,_0x1a15e0=>{_0x46f111['model']['change'](_0x1ad61e=>{_0x1a15e0();const _0x1ad381='left'===_0x20f5ec['order'],_0x5bd2a6=_0x49378f['getSelectionAffectedTableCells'](_0xa70671),_0x2c2a95=_0x49378f['getColumnIndexes'](_0x5bd2a6),_0x25a348=_0x1ad381?_0x2c2a95['first']-0x1:_0x2c2a95['last']+0x1,_0x3db550=_0x5bd2a6[0x0]['findAncestor']('table'),_0xb501fd=_0x49378f['createTableWalker'](_0x3db550,{'startRow':0x0,'column':_0x25a348,'includeAllSlots':!0x1}),_0x493f37=Array['from'](_0xb501fd)['map'](_0x3e6505=>_0x1ad61e['createRangeOn'](_0x3e6505['cell']));_0x472043['markMultiRangeInsertion'](_0x493f37,'tableColumn');});});}for(const _0x287f72 of['removeTableRow','removeTableColumn']){const _0x39301d=_0x287f72['substr'](0xb),_0x4a3311=_0x39301d['toLowerCase'](),_0xa015d3=_0x4a3311['substr'](0x0,0x3)+'span',_0x41076d='table'+_0x39301d,_0x3256c9='min'+_0x39301d,_0x4cdd34='max'+_0x39301d;_0x472043['enableCommand'](_0x287f72,()=>{_0x46f111['model']['change'](_0x29b74b=>{const _0x110f36=_0x49378f['getSelectionAffectedTableCells'](_0xa70671),_0x277ace=_0x110f36[0x0]['findAncestor']('table');let _0x5299df;if('removeTableRow'==_0x287f72){const _0x35b98c=_0x49378f['getRowIndexes'](_0x110f36);_0x5299df={'startRow':_0x35b98c['first'],'endRow':_0x35b98c['last'],'includeAllSlots':!0x0};}else{const _0x1e166e=_0x49378f['getColumnIndexes'](_0x110f36);_0x5299df={'startColumn':_0x1e166e['first'],'endColumn':_0x1e166e['last'],'includeAllSlots':!0x0};}const _0x24bb86=_0x49378f['createTableWalker'](_0x277ace,_0x5299df),_0x89dac7=Array['from'](_0x24bb86)['map'](({cell:_0x3fdb85})=>_0x3fdb85),_0x5d62e3=He(_0x89dac7['filter'](_0x901705=>_0x901705['hasAttribute'](_0xa015d3))),_0x2c4f78=He(_0x89dac7['filter'](_0x57445d=>!_0x57445d['hasAttribute'](_0xa015d3)))['map'](_0x5e6390=>_0x29b74b['createRangeOn'](_0x5e6390)),_0x2445c0=_0x472043['markMultiRangeDeletion'](_0x2c4f78,_0x41076d);if(_0x2445c0&&('tableRow'==_0x2445c0['subType']||'tableColumn'==_0x2445c0['subType'])){const _0xf18af4=this['_getSuggestionCoords'](_0x2445c0);for(const _0x122982 of _0x5d62e3){const _0x1b4b25=_0x29b74b['createRangeOn'](_0x122982),_0x24b4d9=_0x49378f['getCellLocation'](_0x122982),_0x36867b=_0x122982['getAttribute'](_0xa015d3)-0x1,_0x262558=_0xf18af4[_0x3256c9],_0x3877dc=_0xf18af4[_0x4cdd34];_0x262558<=_0x24b4d9[_0x4a3311]&&_0x24b4d9[_0x4a3311]+_0x36867b<=_0x3877dc&&_0x2445c0['addRange'](_0x1b4b25);}}});});}function _0x46b35e(_0x296d70){const _0x5c318f=Array['from'](_0xa70671['getRanges']())['map'](_0xe8d842=>ct['fromRange'](_0xe8d842));_0x46f111['model']['change'](_0x503462=>{const _0x1ecdb7=_0x503462['batch'];_0x296d70=_0x296d70['filter'](_0x6dac1f=>'$graveyard'!=_0x6dac1f['root']['rootName']),_0x503462['setSelection'](_0x296d70),_0x46f111['commands']['get']('removeTableRow')['refresh'](),_0x46f111['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x46f111['model']['enqueueChange'](()=>{_0x46f111['model']['enqueueChange'](_0x1ecdb7,_0x45e0d0=>{const _0x4fba94=_0x5c318f['filter'](_0x39a454=>'$graveyard'!=_0x39a454['root']['rootName']);_0x4fba94['length']>0x0&&_0x45e0d0['setSelection'](_0x4fba94);for(const _0x4b95a5 of _0x5c318f)_0x4b95a5['detach']();});});});}function _0x2633ed(_0x97678c){_0x46f111['model']['change'](_0x290c78=>{const _0x471f96=Array['from'](_0xa70671['getRanges']())['map'](_0x2afc13=>ct['fromRange'](_0x2afc13)),_0x51f944=[];for(const _0x2ee619 of _0x97678c)for(const _0x14ceb4 of _0x2ee619['getItems']({'shallow':!0x0}))_0x51f944['push'](_0x14ceb4);for(const _0x1365ff of _0x51f944)'$graveyard'!=_0x1365ff['root']['rootName']&&(_0x290c78['setSelection'](_0x290c78['createPositionAt'](_0x1365ff,0x0)),_0x46f111['commands']['get']('removeTableColumn')['refresh'](),_0x46f111['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2f93c1=_0x471f96['filter'](_0x3c99d7=>'$graveyard'!=_0x3c99d7['root']['rootName']);_0x2f93c1['length']>0x0&&_0x290c78['setSelection'](_0x2f93c1);for(const _0x5154ac of _0x471f96)_0x5154ac['detach']();});}function _0x114dc5(_0x326b10,_0x3e98f3){return _0x3e98f3['every'](_0x56013d=>_0x326b10['some'](_0x246983=>_0x246983['end']['isEqual'](_0x56013d['start'])||_0x56013d['end']['isEqual'](_0x246983['start'])));}function _0x6e4c78(_0x35c423,_0x1f6f71){return!_0x35c423['some'](_0x5e2c87=>_0x1f6f71['some'](_0x3fc92e=>_0x5e2c87['isIntersecting'](_0x3fc92e)))&&_0x35c423['some'](_0x5b2324=>_0x1f6f71['some'](_0x50acd9=>_0x5b2324['end']['isTouching'](_0x50acd9['start'])));}_0x472043['descriptionFactory']['registerDescriptionCallback'](_0x190a3b=>{if('insertion'!=_0x190a3b['type']&&'deletion'!=_0x190a3b['type'])return;const _0x277d60=_0x190a3b['getContainedElement']();if(null!=_0x277d60&&_0x277d60['is']('element','table')){if('insertion'==_0x190a3b['type']){const _0x517dd8=_0x190a3b['getItems']()['filter'](_0x14d919=>_0x14d919['is']('$textProxy'))['map'](_0x35f92f=>_0x35f92f['data']);if(_0x517dd8['length'])return{'type':'insertion','content':Bt(_0x1075bd,'*Insert:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x517dd8['join']('\x20')+'\x22'))};}if('deletion'==_0x190a3b['type']){const _0xdcc97b=_0x190a3b['getItems']()['filter'](_0x36b113=>_0x36b113['is']('$textProxy'))['map'](_0x21ea27=>_0x21ea27['data']);if(_0xdcc97b['length'])return{'type':'deletion','content':Bt(_0x1075bd,'*Remove:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xdcc97b['join']('\x20')+'\x22'))};}}}),_0x472043['descriptionFactory']['registerDescriptionCallback'](_0x3a75d1=>{if('tableRow'==_0x3a75d1['subType']){const _0x17ef6f=_0x3a75d1['getItems']()['filter'](_0x19fba3=>_0x19fba3['is']('$textProxy'))['map'](_0x27ff87=>_0x27ff87['data']),_0x4130c4=this['_getSuggestionCoords'](_0x3a75d1),_0x396828=_0x4130c4['maxRow']-_0x4130c4['minRow']+0x1;if('insertion'==_0x3a75d1['type'])return _0x17ef6f['length']?{'type':'insertion','content':Bt(_0x1075bd,'*Insert:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x396828,'\x22'+_0x17ef6f['join']('\x20')+'\x22']))}:{'type':'insertion','content':Bt(_0x1075bd,'*Insert:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_ROW',_0x396828))};if('deletion'==_0x3a75d1['type'])return _0x17ef6f['length']?{'type':'deletion','content':Bt(_0x1075bd,'*Remove:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x396828,'\x22'+_0x17ef6f['join']('\x20')+'\x22']))}:{'type':'deletion','content':Bt(_0x1075bd,'*Remove:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_ROW',_0x396828))};}if('tableColumn'==_0x3a75d1['subType']){const _0x56cced=_0x3a75d1['getItems']()['filter'](_0x571276=>_0x571276['is']('$textProxy'))['map'](_0x33d2d7=>_0x33d2d7['data']),_0x27aaa6=this['_getSuggestionCoords'](_0x3a75d1),_0x2c64b2=_0x27aaa6['maxColumn']-_0x27aaa6['minColumn']+0x1;if('insertion'==_0x3a75d1['type'])return _0x56cced['length']?{'type':'insertion','content':Bt(_0x1075bd,'*Insert:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2c64b2,'\x22'+_0x56cced['join']('\x20')+'\x22']))}:{'type':'insertion','content':Bt(_0x1075bd,'*Insert:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_COLUMN',_0x2c64b2))};if('deletion'==_0x3a75d1['type'])return _0x56cced['length']?{'type':'deletion','content':Bt(_0x1075bd,'*Remove:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2c64b2,'\x22'+_0x56cced['join']('\x20')+'\x22']))}:{'type':'deletion','content':Bt(_0x1075bd,'*Remove:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_COLUMN',_0x2c64b2))};}}),_0x472043['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x46b35e),_0x472043['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x46b35e),_0x472043['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2633ed),_0x472043['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2633ed),_0x472043['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x114dc5),_0x472043['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x114dc5),_0x472043['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x6e4c78),_0x472043['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x6e4c78);}_acceptFormatSuggestionCallbackFactory(){const _0x6d55ff=this['editor'],_0x337d52=_0x6d55ff['model']['document']['selection'];return(_0x5de8fd,_0x4e7a9d)=>{_0x6d55ff['model']['change'](_0x105a40=>{const {commandName:_0x3f1b66,commandParams:_0x14e7b4}=_0x4e7a9d;let _0x12a43e=_0x5de8fd[0x0]['end']['nodeBefore'];_0x14e7b4&&_0x14e7b4[0x0]&&!0x1===_0x14e7b4[0x0]['forceValue']&&(_0x12a43e=_0x5de8fd[0x0]['start']['nodeAfter']);const _0x1ff3c8=_0x105a40['createRangeIn'](_0x12a43e);if('$graveyard'==_0x1ff3c8['root']['rootName'])return;const _0x32c98f=Array['from'](_0x337d52['getRanges']())['map'](_0x104c21=>ct['fromRange'](_0x104c21));_0x105a40['setSelection'](_0x1ff3c8),_0x6d55ff['commands']['get'](_0x3f1b66)['refresh'](),_0x14e7b4['push']({'forceDefaultExecution':!0x0}),_0x6d55ff['execute'](_0x3f1b66,..._0x14e7b4);const _0x316edc=_0x32c98f['filter'](_0x230d9f=>'$graveyard'!=_0x230d9f['root']['rootName']);_0x316edc['length']>0x0&&_0x105a40['setSelection'](_0x316edc);for(const _0x2d674c of _0x32c98f)_0x2d674c['detach']();});};}_getCoordsForCells(_0xb31f9d){const _0x1c2955=this['editor']['plugins']['get']('TableUtils');let _0x4764fa=Number['MAX_SAFE_INTEGER'],_0xedd40b=Number['MIN_SAFE_INTEGER'],_0xae5acb=Number['MAX_SAFE_INTEGER'],_0x17a403=Number['MIN_SAFE_INTEGER'];for(const _0x6d382e of _0xb31f9d){if('$graveyard'==_0x6d382e['root']['rootName'])continue;const {row:_0x4269d1,column:_0x102e74}=_0x1c2955['getCellLocation'](_0x6d382e),_0x59bf69=_0x6d382e['hasAttribute']('rowspan')?_0x6d382e['getAttribute']('rowspan')-0x1:0x0,_0x50c495=_0x6d382e['hasAttribute']('colspan')?_0x6d382e['getAttribute']('colspan')-0x1:0x0;_0x4764fa=_0x4269d1<_0x4764fa?_0x4269d1:_0x4764fa,_0xedd40b=_0x4269d1+_0x59bf69>_0xedd40b?_0x4269d1+_0x59bf69:_0xedd40b,_0xae5acb=_0x102e74<_0xae5acb?_0x102e74:_0xae5acb,_0x17a403=_0x102e74+_0x50c495>_0x17a403?_0x102e74+_0x50c495:_0x17a403;}return{'minRow':_0x4764fa,'maxRow':_0xedd40b,'minColumn':_0xae5acb,'maxColumn':_0x17a403};}_setupColumnsRowsFixing(){const _0x34dff4=this['editor'],_0x450998=_0x34dff4['plugins']['get']('TrackChangesEditing'),_0x211b12=_0x34dff4['plugins']['get']('TableUtils');_0x34dff4['model']['document']['on']('change:data',()=>{const _0x32266c=Array['from'](_0x34dff4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21ee4f,data:_0x22ae19}of _0x32266c){const {group:_0x506a49,id:_0x30ac25,subType:_0x5f0bec}=it(_0x21ee4f);if('suggestion'!=_0x506a49)continue;if(null!=_0x22ae19['oldRange'])continue;const _0x4dd010=_0x450998['getSuggestion'](_0x30ac25);this['_tablePostFixingSubtypes']['includes'](_0x5f0bec)&&this['_tableSuggestions']['add'](_0x4dd010);}},{'priority':'low'});const _0x3aa097=(_0x45704f,_0x5451df)=>{let _0x4969af=!0x1;const _0x34ac0f=_0x5451df['createRangeOn'](_0x45704f),_0x3e5feb=_0x45704f['findAncestor']('table'),_0x19fe41=_0x211b12['getCellLocation'](_0x45704f);for(const _0x7f2fbf of this['_tableSuggestions']){const _0x4f5966=_0x7f2fbf['subType'],_0x32ce5c=_0x4f5966['startsWith']('tablePaste'),_0x5135e4=_0x4f5966['substr'](_0x32ce5c?0xa:0x5),_0x1dd2cd=_0x5135e4['toLowerCase'](),_0x3b5285=_0x1dd2cd['substr'](0x0,0x3)+'span',_0x50207c='min'+_0x5135e4,_0x304427='max'+_0x5135e4;if(!_0x7f2fbf['isInContent'])continue;if(_0x3e5feb!=_0x7f2fbf['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x7f2fbf['isIntersectingWithRange'](_0x34ac0f))continue;const _0x5e67cc=_0x45704f['hasAttribute'](_0x3b5285)?_0x45704f['getAttribute'](_0x3b5285)-0x1:0x0,_0x4e7d3f=this['_getSuggestionCoords'](_0x7f2fbf),_0x116de7=_0x4e7d3f[_0x50207c],_0x3d3ae1=_0x4e7d3f[_0x304427];_0x116de7<=_0x19fe41[_0x1dd2cd]&&_0x19fe41[_0x1dd2cd]+_0x5e67cc<=_0x3d3ae1&&(_0x7f2fbf['addRange'](_0x34ac0f),_0x4969af=!0x0);}return _0x4969af;};_0x34dff4['model']['document']['registerPostFixer'](_0x961c63=>{let _0x2ea385=!0x1;for(const _0x235bed of _0x34dff4['model']['document']['differ']['getChanges']())if('insert'==_0x235bed['type']){if('tableRow'==_0x235bed['name']){for(const _0x58c7e4 of _0x235bed['position']['nodeAfter']['getChildren']())_0x2ea385=_0x2ea385||_0x3aa097(_0x58c7e4,_0x961c63);}else'tableCell'==_0x235bed['name']&&(_0x2ea385=_0x2ea385||_0x3aa097(_0x235bed['position']['nodeAfter'],_0x961c63));}return _0x2ea385;});}_getSuggestionCoords(_0x5737f8){return this['_getCoordsForCells'](_0x5737f8['getRanges']()['map'](_0x253c3c=>_0x253c3c['start']['nodeAfter']));}};function He(_0x37def2){return Array['from'](new Set(_0x37def2)['values']());}var $e=class extends _0xf0b898{static get requires(){return[Ge];}afterInit(){const _0x4e2494=this['editor'],_0x1f0430=_0x4e2494['model']['document']['selection'],_0x2fd2d9=_0x4e2494['locale'];if(!_0x4e2494['plugins']['has']('TableEditing'))return;const _0x5e5b10=_0x4e2494['plugins']['get']('TrackChangesEditing'),_0x1df5c1=_0x4e2494['plugins']['get']('TableUtils'),_0x39d149=_0x4e2494['plugins']['get'](Ge);_0x39d149['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5e5b10['enableCommand']('mergeTableCells',()=>{const _0x2f9454=_0x1df5c1['getSelectionAffectedTableCells'](_0x4e2494['model']['document']['selection']);_0x4e2494['model']['change'](()=>{_0x5e5b10['markMultiRangeBlockFormat'](_0x2f9454,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4e2494['commands']['get']('mergeTableCells')['on']('execute',(_0x4288f8,_0x55ddd0)=>{_0x4e2494['commands']['get']('trackChanges')['value']&&(_0x55ddd0['length']>0x0&&_0x55ddd0[_0x55ddd0['length']-0x1]&&_0x55ddd0[_0x55ddd0['length']-0x1]['forceDefaultExecution']||_0x5e5b10['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4288f8['stop']());},{'priority':'highest'});for(const _0x40dfe3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x17df92=_0x4e2494['commands']['get'](_0x40dfe3);_0x5e5b10['enableCommand'](_0x40dfe3,()=>{const _0x1dc864=_0x4e2494['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x46527b=>_0x46527b['is']('element','tableCell')),_0x5dd481=_0x17df92['value'];_0x4e2494['model']['change'](()=>{_0x5e5b10['markMultiRangeBlockFormat']([_0x1dc864,_0x5dd481],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x26ee7d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x382666=_0x4e2494['commands']['get'](_0x26ee7d);_0x5e5b10['enableCommand'](_0x26ee7d,()=>{const _0x2906ce=_0x1df5c1['getSelectionAffectedTableCells'](_0x4e2494['model']['document']['selection']),_0x4ea884=_0x2906ce[0x0]['findAncestor']('table'),_0x2645c0=new Set();for(const _0x33253e of _0x2906ce){const {column:_0x4f1f3d,row:_0x2e785}=_0x1df5c1['getCellLocation'](_0x33253e),_0x33c59a='horizontally'==_0x382666['direction']?_0x1df5c1['createTableWalker'](_0x4ea884,{'startRow':_0x2e785,'endRow':_0x2e785,'includeAllSlots':!0x0}):_0x1df5c1['createTableWalker'](_0x4ea884,{'column':_0x4f1f3d,'includeAllSlots':!0x0});for(const {cell:_0x88bd85}of _0x33c59a)_0x2645c0['add'](_0x88bd85);}_0x4e2494['model']['change'](()=>{_0x5e5b10['markMultiRangeBlockFormat'](_0x2906ce,{'commandName':_0x26ee7d,'commandParams':[]},Array['from'](_0x2645c0),_0x26ee7d);});});}_0x5e5b10['descriptionFactory']['registerDescriptionCallback'](_0x578505=>{if('formatBlock'!=_0x578505['type']&&'formatInline'!=_0x578505['type'])return;const {data:_0x112dff}=_0x578505;return _0x112dff&&'mergeTableCells'==_0x112dff['commandName']?{'type':'format','content':Bt(_0x2fd2d9,'*Merge\x20cells*')}:void 0x0;}),_0x5e5b10['descriptionFactory']['registerDescriptionCallback'](_0x15f214=>{if('formatBlock'!=_0x15f214['type']&&'formatInline'!=_0x15f214['type'])return;const {data:_0x19b144}=_0x15f214;return _0x19b144?'splitTableCellVertically'==_0x19b144['commandName']?{'type':'format','content':Bt(_0x2fd2d9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x19b144['commandName']?{'type':'format','content':Bt(_0x2fd2d9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2327c8=_0x39d149['_acceptFormatSuggestionCallbackFactory']();for(const _0xa0504c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5e5b10['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa0504c,'accept',_0x2327c8);for(const _0x365c1d of['splitTableCellVertically','splitTableCellHorizontally'])_0x5e5b10['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x365c1d,'accept',_0x363803=>{_0x4e2494['model']['change'](_0x512793=>{const _0x5a328a=Array['from'](_0x363803)['filter'](_0x34fa09=>'$graveyard'!=_0x34fa09['root']['rootName']&&!!_0x34fa09['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x5a328a['length'])return;const _0x3e2d61=Array['from'](_0x1f0430['getRanges']())['map'](_0x463325=>ct['fromRange'](_0x463325));_0x512793['setSelection'](_0x5a328a),_0x4e2494['commands']['get'](_0x365c1d)['refresh'](),_0x4e2494['execute'](_0x365c1d,{'forceDefaultExecution':!0x0});const _0x2c0bcd=_0x3e2d61['filter'](_0x3dded6=>'$graveyard'!=_0x3dded6['root']['rootName']);_0x2c0bcd['length']>0x0&&_0x512793['setSelection'](_0x2c0bcd);for(const _0x309f86 of _0x3e2d61)_0x309f86['detach']();});});_0x5e5b10['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x49c4aa=>{_0x4e2494['model']['change'](_0x44ab94=>{const _0x394ba7=Array['from'](_0x1f0430['getRanges']())['map'](_0x317792=>ct['fromRange'](_0x317792));_0x44ab94['setSelection'](_0x49c4aa),_0x4e2494['commands']['get']('mergeTableCells')['refresh'](),_0x4e2494['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xb991=_0x394ba7['filter'](_0x2779c7=>'$graveyard'!=_0x2779c7['root']['rootName']);_0xb991['length']>0x0&&_0x44ab94['setSelection'](_0xb991);for(const _0x7bc2e7 of _0x394ba7)_0x7bc2e7['detach']();});});for(const _0x592d52 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xfeea60=_0x4e2494['commands']['get'](_0x592d52);_0xfeea60['on']('set:isEnabled',(_0x3fbd54,_0x30da98,_0x55654e)=>{if(_0x55654e){const _0x18e2a5=_0x4e2494['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1159c3=>_0x1159c3['is']('element','tableCell'));this['_areMergableCells'](_0xfeea60['value'],_0x18e2a5)||(_0x3fbd54['return']=!0x1,_0x3fbd54['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x2880fc=this['editor']['commands']['get']('mergeTableCells'),_0x4b656b=this['editor']['plugins']['get']('TableUtils');if(!_0x2880fc['isEnabled'])return!0x1;const _0x3a5a73=_0x4b656b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4afc7a of _0x3a5a73)for(const _0x5d877b of _0x3a5a73)if(_0x4afc7a!=_0x5d877b&&!this['_areMergableCells'](_0x4afc7a,_0x5d877b))return!0x1;return!0x0;}['_areMergableCells'](_0x1fcfd5,_0x5ec65c){const _0x3a8499=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52797a=this['editor']['model']['createRangeOn'](_0x1fcfd5),_0x1d66be=this['editor']['model']['createRangeOn'](_0x5ec65c),_0x1cc5ee=new Set(),_0x49156b=new Set();for(const _0xe1337e of _0x3a8499['getSuggestions']())if(('insertion'==_0xe1337e['type']||'deletion'==_0xe1337e['type']||'mergeTableCells'==_0xe1337e['subType'])&&_0xe1337e['isInContent']){for(const _0x47ec8b of _0xe1337e['getRanges']())_0x47ec8b['containsRange'](_0x52797a,!0x0)&&_0x1cc5ee['add'](_0xe1337e['type']+':'+_0xe1337e['author']['id']),_0x47ec8b['containsRange'](_0x1d66be,!0x0)&&_0x49156b['add'](_0xe1337e['type']+':'+_0xe1337e['author']['id']);}if(_0x1cc5ee['size']!=_0x49156b['size'])return!0x1;for(const _0xb92c7b of _0x1cc5ee)if(!_0x49156b['has'](_0xb92c7b))return!0x1;return!0x0;}},We=class extends _0xf0b898{static get requires(){return[Ge];}afterInit(){const _0x1e1b20=this['editor'];if(!_0x1e1b20['plugins']['has']('TableEditing'))return;const _0x46d93b=_0x1e1b20['locale'],_0x282e5e=_0x1e1b20['plugins']['get']('TrackChangesEditing');_0x282e5e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x282e5e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x282e5e['descriptionFactory']['registerAttributeLabel']('headingRows',Bt(_0x46d93b,'FORMAT_HEADER_ROW')),_0x282e5e['descriptionFactory']['registerAttributeLabel']('headingColumns',Bt(_0x46d93b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x2591f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc87863=this['editor']['plugins']['get'](Ge)['_acceptFormatSuggestionCallbackFactory']();_0x2591f0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xc87863),_0x2591f0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xc87863),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x34c993=this['editor']['plugins']['get']('TrackChangesEditing'),_0x204f60=this['editor']['plugins']['get']('TableUtils');function _0x34f698({showActiveMarker:_0x323ab6=!0x0,setDataAttribute:_0x757f65=!0x0}={}){return(_0x536337,_0x27356b,_0x475c4f)=>{const {type:_0x56b958,id:_0x8012af}=it(_0x27356b['markerName']);if(!_0x34c993['hasSuggestion'](_0x8012af))return;const _0x2baa1d=_0x34c993['getSuggestion'](_0x8012af),_0x4b77d3=_0x2baa1d['data'];if('formatBlock'!=_0x2baa1d['type']||!_0x4b77d3||'setTableColumnHeader'!=_0x4b77d3['commandName'])return;if(_0x27356b['item'])return void _0x536337['stop']();if(!_0x475c4f['consumable']['consume'](_0x27356b['markerRange'],_0x536337['name']))return;const _0x3510f4=_0x27356b['markerRange']['start']['nodeAfter'],_0x7541c9=_0x27356b['markerRange']['end']['nodeBefore'],_0xf51a67=_0x3510f4['parent']['parent'],{column:_0x164217}=_0x204f60['getCellLocation'](_0x3510f4),{column:_0x2b00e6}=_0x204f60['getCellLocation'](_0x7541c9);for(let _0x519cd2=_0x164217;_0x519cd2<=_0x2b00e6;_0x519cd2++){const _0x2de2c6=_0x204f60['createTableWalker'](_0xf51a67,{'column':_0x519cd2,'includeAllSlots':!0x1});for(const _0x1e4d77 of _0x2de2c6){const _0x4667d6=_0x1e4d77['cell'],_0xc89d58=_0x475c4f['mapper']['toViewElement'](_0x4667d6);_0x475c4f['writer']['addClass']('ck-suggestion-marker-'+_0x56b958,_0xc89d58),_0x757f65&&_0x475c4f['writer']['setAttribute']('data-suggestion',_0x8012af,_0xc89d58),_0x475c4f['mapper']['bindElementToMarker'](_0xc89d58,_0x27356b['markerName']),_0x323ab6&&(_0x34c993['activeMarkers']['includes'](_0x27356b['markerName'])?_0x475c4f['writer']['addClass']('ck-suggestion-marker--active',_0xc89d58):_0x475c4f['writer']['removeClass']('ck-suggestion-marker--active',_0xc89d58));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x34f698(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x10f8ef,_0x3b331b,_0x40568c)=>{_0x40568c['options']['showSuggestionHighlights']&&_0x34f698({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x10f8ef,_0x3b331b,_0x40568c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3bab49,_0xbcdd18,_0x29ff49)=>{const {type:_0x515083,id:_0x4af638}=it(_0xbcdd18['markerName']);if(!_0x34c993['hasSuggestion'](_0x4af638))return;const _0x574e4c=_0x34c993['getSuggestion'](_0x4af638),_0x57b266=_0x574e4c['data'];if('formatBlock'!=_0x574e4c['type']||!_0x57b266||'setTableColumnHeader'!=_0x57b266['commandName'])return;const _0x1a1e21=_0x29ff49['mapper']['markerNameToElements'](_0xbcdd18['markerName']);if(_0x1a1e21){for(const _0x55c744 of _0x1a1e21)_0x29ff49['writer']['removeClass']('ck-suggestion-marker-'+_0x515083,_0x55c744),_0x29ff49['writer']['removeClass']('ck-suggestion-marker--active',_0x55c744),_0x29ff49['writer']['removeAttribute']('data-suggestion',_0x55c744),_0x29ff49['mapper']['unbindElementFromMarkerName'](_0x55c744,_0xbcdd18['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0xd6c0a3=this['editor'],_0x279ccd=_0xd6c0a3['locale'];function _0x4ef1ea(_0x4e0a4e){return{'type':'format','content':Bt(_0x279ccd,'*Format:*\x20%0',_0x4e0a4e)};}_0xd6c0a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x189fed=>{if('formatBlock'!=_0x189fed['type'])return;const {data:_0x7df33f}=_0x189fed;return _0x7df33f?'setTableRowHeader'==_0x7df33f['commandName']?_0x7df33f['commandParams'][0x0]['forceValue']?_0x4ef1ea(Bt(_0x279ccd,'FORMAT_HEADER_ROW')):_0x4ef1ea(Bt(_0x279ccd,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x7df33f['commandName']?_0x7df33f['commandParams'][0x0]['forceValue']?_0x4ef1ea(Bt(_0x279ccd,'FORMAT_HEADER_COLUMN')):_0x4ef1ea(Bt(_0x279ccd,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},Ve=class extends _0xf0b898{static get requires(){return[Ge];}afterInit(){const _0x56f1ea=this['editor'];if(!_0x56f1ea['plugins']['has']('TableEditing')||!_0x56f1ea['config']['get']('table.enableFooters'))return;const _0x7594f9=_0x56f1ea['locale'],_0x2cfaf2=_0x56f1ea['plugins']['get']('TrackChangesEditing');_0x2cfaf2['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x2cfaf2['descriptionFactory']['registerAttributeLabel']('footerRows',Bt(_0x7594f9,'FORMAT_FOOTER_ROW'));}},ze=class extends _0xf0b898{afterInit(){const _0x49f8c8=this['editor'],_0x1ac45f=_0x49f8c8['locale'],_0x13a992=_0x49f8c8['plugins']['get']('TrackChangesEditing');function _0x4255e3(_0x551f1f){return{'type':'format','content':''+Bt(_0x1ac45f,'*Set\x20table\x20type:*\x20%0',_0x551f1f)};}_0x49f8c8['plugins']['has']('TableLayout')&&(_0x13a992['enableCommand']('insertTableLayout'),_0x13a992['enableDefaultAttributesIntegration']('tableType'),_0x13a992['descriptionFactory']['registerElementLabel'](_0x4c10a3=>_0x4c10a3['is']('element','table')&&'layout'===_0x4c10a3['getAttribute']('tableType'),_0x49db5f=>Bt(_0x1ac45f,'ELEMENT_LAYOUT_TABLE',_0x49db5f)),_0x13a992['descriptionFactory']['registerDescriptionCallback'](_0x65125=>{const {data:_0x2bb4e7}=_0x65125;if(_0x2bb4e7&&'tableType'==_0x2bb4e7['key'])switch(_0x2bb4e7['newValue']){case'layout':return _0x4255e3(Bt(_0x1ac45f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4255e3(Bt(_0x1ac45f,'ELEMENT_CONTENT_TABLE'));}}));}};const je=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ke=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](je['map'](_0x4a95f3=>[_0x4a95f3,null]));var Xe=class extends _0xf0b898{static get requires(){return[Ge];}afterInit(){const _0x392838=this['editor'];if(!_0x392838['plugins']['has']('TableClipboard'))return;const _0x197cae=_0x392838['plugins']['get']('TrackChangesEditing'),_0xa0dab3=_0x392838['plugins']['get']('TableUtils'),_0x416095=_0x392838['plugins']['get'](Ge),_0x450f1e=_0x392838['plugins']['get']('TableClipboard'),_0x3bdb2f=_0x392838['plugins']['get']('TableSelection'),_0x1eaa47=_0x392838['plugins']['get'](Et);_0x416095['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x392838['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x392838['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x44b7a8=null,_0x246f3c=!0x1;_0x1eaa47['on']('contentInsertion',(_0x5eff0d,_0x297b60)=>{_0x246f3c='paste'===_0x297b60['method'];}),_0x392838['model']['on']('insertContent',(_0x4fab8d,_0x2071c7)=>{if(!_0x246f3c&&null===_0x3bdb2f['getSelectedTableCells']())return;const [_0x47b922,_0x557b6c]=_0x2071c7,_0x508bdc=_0x2071c7[_0x2071c7['length']-0x1];_0x508bdc&&_0x508bdc['forceDefaultExecution']||_0x197cae['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2d766f,_0x251624,_0x429bc3,_0xfe3b73,_0x1a9e10){if(_0x251624&&!_0x251624['is']('documentSelection'))return!0x1;const _0x61f126=_0x1a9e10['getTableIfOnlyTableInContent'](_0x2d766f,_0x429bc3);if(!_0x61f126||!Ye(_0x61f126,void 0x0,_0xfe3b73))return!0x1;const _0x18f385=_0xfe3b73['getSelectionAffectedTableCells'](_0x429bc3['document']['selection']);if(!_0x18f385['length'])return!0x1;const _0x96cc8c=_0x18f385[0x0]['findAncestor']('table'),_0x347749=_0xfe3b73['getRowIndexes'](_0x18f385),_0xff43fb=_0xfe3b73['getColumnIndexes'](_0x18f385),_0x43090c={'startRow':_0x347749['first'],'endRow':_0x347749['last'],'startColumn':_0xff43fb['first'],'endColumn':_0xff43fb['last']};return 0x1==_0x18f385['length']&&(_0x43090c['endRow']+=_0xfe3b73['getRows'](_0x61f126)-0x1,_0x43090c['endColumn']+=_0xfe3b73['getColumns'](_0x61f126)-0x1),Ye(_0x96cc8c,_0x43090c,_0xfe3b73);}(_0x47b922,_0x557b6c,_0x392838['model'],_0xa0dab3,_0x450f1e)&&(_0x4fab8d['stop'](),_0x44b7a8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x392838['model']['change'](()=>{_0x392838['model']['insertContent'](_0x2071c7[0x0],_0x2071c7[0x1],_0x2071c7[0x2],{'forceDefaultExecution':!0x0});const _0x2b3406=_0xc08621(),{rowInsertionRanges:_0x16d1f5,columnInsertionRanges:_0x43dd13,insertionRanges:_0x5be27f,deletionRanges:_0x5762b4,cells:_0x199777}=_0x44b7a8;_0x16d1f5['length']&&_0x197cae['markMultiRangeInsertion'](_0x16d1f5,'tablePasteRow',{'tablePasteChainId':_0x2b3406}),_0x43dd13['length']&&_0x197cae['markMultiRangeInsertion'](_0x43dd13,'tablePasteColumn',{'tablePasteChainId':_0x2b3406}),_0x5be27f['length']&&(_0x197cae['markMultiRangeInsertion'](_0x5be27f,'tablePaste',{'tablePasteChainId':_0x2b3406,'skipNestingCheck':!0x0}),_0x5be27f['forEach'](_0xcfd8bb=>_0xcfd8bb['detach']?.())),_0x5762b4['length']&&(_0x197cae['markMultiRangeDeletion'](_0x5762b4,'tablePaste',{'tablePasteChainId':_0x2b3406,'skipNestingCheck':!0x0}),_0x5762b4['forEach'](_0x42e7b0=>_0x42e7b0['detach']?.()));const _0x2a21da=_0x197cae['markMultiRangeBlockFormat'](_0x199777['map'](({element:_0x5499ce})=>_0x5499ce),{'formatGroupId':_0xc08621()},[],'tablePasteCell',{'tablePasteChainId':_0x2b3406});if(_0x2a21da){const _0x18d245=_0x2a21da['getMarkers'](),_0x2289f2=[];for(const {element:_0x57fd3f,attributes:_0x1dd65e}of _0x199777){if(!_0x1dd65e)continue;const _0x201180=_0x392838['model']['createRangeOn'](_0x57fd3f),_0x57e9c4=_0x18d245['find'](_0x137474=>_0x137474['getRange']()['isEqual'](_0x201180));_0x57e9c4&&_0x2289f2['push']([_0x57e9c4['name'],_0x1dd65e]);}_0x2289f2['length']&&_0x2a21da['setAttribute']('markerAttributes',Object['fromEntries'](_0x2289f2));}_0x44b7a8=null;}));},{'priority':_0x487ef8['high']+0xa}),_0x1eaa47['on']('contentInsertion',()=>{_0x246f3c=!0x1;},{'priority':'lowest'}),_0x392838['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x20a2bb,_0x19a620)=>{const [_0x9009b3,_0x3ee0ba,,_0x280a0f]=_0x19a620;if(!_0x44b7a8)return;_0x20a2bb['stop']();const _0x44db29=_0x9009b3['cell'],_0x373458=_0x3ee0ba,_0x4a1453=qe(_0x44db29),_0x274537=qe(_0x373458);_0x20a2bb['return']=_0x44db29;let _0x38a588=null,_0x3a7d6d=null;if(_0x274537||_0x4a1453){if(_0x4a1453&&!_0x274537){_0x280a0f['remove'](_0x44db29['getChild'](0x0));for(const _0x3bbdd3 of Array['from'](_0x373458['getChildren']()))_0x280a0f['insert'](_0x3bbdd3,_0x44db29,'end');const _0x443ebc=_0x44b7a8['rowInsertionIndexes']['includes'](_0x9009b3['row']),_0x26c389=_0x44b7a8['columnInsertionIndexes']['includes'](_0x9009b3['column']);_0x443ebc||_0x26c389||(_0x38a588=ct['fromRange'](_0x280a0f['createRangeIn'](_0x44db29)));}else _0x274537&&!_0x4a1453&&(_0x3a7d6d=_0x280a0f['createRangeIn'](_0x44db29));}else{const _0x1573c3=_0x280a0f['createElement']('tableCellSuggestion'),_0x200f31=_0x280a0f['createElement']('tableCellSuggestion');_0x280a0f['wrap'](_0x280a0f['createRangeIn'](_0x44db29),_0x200f31),_0x280a0f['insert'](_0x1573c3,_0x44db29,0x0);for(const _0xb45dad of Array['from'](_0x373458['getChildren']()))_0x280a0f['insert'](_0xb45dad,_0x1573c3,'end');_0x38a588=ct['fromRange'](_0x280a0f['createRangeOn'](_0x1573c3)),_0x3a7d6d=ct['fromRange'](_0x280a0f['createRangeOn'](_0x200f31));}const _0x1f0707=Array['from'](_0x373458['getAttributes']())['filter'](([_0x5c8df7])=>je['includes'](_0x5c8df7));_0x44b7a8['cells']['push']({'element':_0x44db29,'attributes':_0x1f0707['length']?Object['fromEntries'](_0x1f0707):null}),_0x38a588&&_0x44b7a8['insertionRanges']['push'](_0x38a588),_0x3a7d6d&&_0x44b7a8['deletionRanges']['push'](_0x3a7d6d);},{'priority':'high'}),_0xa0dab3['on']('insertColumns',(_0x254d9a,_0x5b549d)=>{const [_0x3a92d3,_0x68ba31={}]=_0x5b549d;if(!_0x44b7a8)return;const _0x28beeb=_0x68ba31['at']||0x0,_0x295d7d=_0x68ba31['columns']||0x1;_0x44b7a8['columnInsertionIndexes']=new Array(_0x295d7d)['fill'](_0x28beeb)['map']((_0x207077,_0x5b4845)=>_0x207077+_0x5b4845);for(const {cell:_0x2f5bc6}of _0xa0dab3['createTableWalker'](_0x3a92d3,{'startColumn':_0x28beeb,'endColumn':_0x28beeb+_0x295d7d-0x1}))_0x44b7a8['columnInsertionRanges']['push'](_0x392838['model']['createRangeOn'](_0x2f5bc6));},{'priority':'low'}),_0xa0dab3['on']('insertRows',(_0x267f35,_0x519b2d)=>{const [_0x3d9b6e,_0x181dc3={}]=_0x519b2d;if(!_0x44b7a8)return;const _0x59c9d4=_0x181dc3['at']||0x0,_0x46aa73=_0x181dc3['rows']||0x1;_0x44b7a8['rowInsertionIndexes']=new Array(_0x46aa73)['fill'](_0x59c9d4)['map']((_0x124e0e,_0x1e4cfc)=>_0x124e0e+_0x1e4cfc);for(const {cell:_0x253252}of _0xa0dab3['createTableWalker'](_0x3d9b6e,{'startRow':_0x59c9d4,'endRow':_0x59c9d4+_0x46aa73-0x1}))_0x44b7a8['rowInsertionRanges']['push'](_0x392838['model']['createRangeOn'](_0x253252));},{'priority':'low'}),_0x197cae['descriptionFactory']['registerDescriptionCallback'](_0x54fdd3=>{if(_0x54fdd3['subType']&&_0x54fdd3['subType']['startsWith']('tablePaste'))return _0x54fdd3['previous']?{}:{'type':'insertion','content':Bt(_0x392838['locale'],'*Replace\x20table\x20cells*')};});const _0x366943=()=>!0x1;for(const _0x191048 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x197cae['_suggestionFactory']['registerCustomCallback']('insertion',_0x191048,'join',_0x366943),_0x197cae['_suggestionFactory']['registerCustomCallback']('deletion',_0x191048,'join',_0x366943),_0x197cae['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x191048,'join',_0x366943);_0x197cae['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x366943),_0x197cae['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1deae4,_0x3f79da,_0x442abf)=>{const _0x234fc8=_0x1deae4['map'](_0x365792=>_0x365792['getContainedElement']())['filter'](_0xbee0f9=>_0xbee0f9),_0x39f829=new Map(_0x234fc8['map'](_0x2ff9a5=>[_0x2ff9a5,null]));if(_0x44b7a8){for(const {element:_0x52ba56,attributes:_0x4dd0f4}of _0x44b7a8['cells'])_0x4dd0f4&&_0x39f829['set'](_0x52ba56,_0x4dd0f4);}else{if(_0x442abf&&_0x442abf['markerAttributes'])for(const [_0x207383,_0x596143]of Object['entries'](_0x442abf['markerAttributes'])){const _0x4f264c=_0x392838['model']['markers']['get'](_0x207383),_0x1cefea=_0x4f264c?_0x4f264c['getRange']()['getContainedElement']():null;_0x1cefea&&_0x39f829['set'](_0x1cefea,_0x596143);}}_0x392838['model']['change'](_0x37455c=>{for(const [_0x258114,_0x18e6bd]of _0x39f829)_0x37455c['setAttributes']({...Ke,..._0x18e6bd},_0x258114);});});const _0x1b3dcb=(_0x2a1c1a,_0xc2c772)=>{_0x197cae['_suggestionFactory']['registerCustomCallback'](_0x2a1c1a,'tablePaste',_0xc2c772,(_0x3a760b,_0x511027,_0x35f63d)=>{_0x392838['model']['change'](_0x840f09=>{const _0x24b006=[];for(const _0x2737e0 of _0x3a760b){const _0x2b7cd3=_0x2737e0['start']['nodeAfter'];_0x2b7cd3['is']('element','tableCellSuggestion')&&_0x24b006['push'](_0x2b7cd3);}_0x197cae['_suggestionFactory']['getSuggestionCallback'](_0x2a1c1a,null,_0xc2c772)(_0x3a760b,_0x511027,_0x35f63d);for(const _0x4062b1 of _0x24b006)'$graveyard'!=_0x4062b1['root']['rootName']&&_0x840f09['unwrap'](_0x4062b1);});});};_0x1b3dcb('insertion','accept'),_0x1b3dcb('insertion','discard'),_0x1b3dcb('deletion','accept'),_0x1b3dcb('deletion','discard'),_0x197cae['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x360b25=>{const _0x295146=_0x360b25['map'](_0x49f81d=>_0x49f81d['getContainedElement']()),_0x45d04e=_0x295146[0x0]['findAncestor']('table'),{minRow:_0x5dc229,maxRow:_0x27e2a5}=_0x416095['_getCoordsForCells'](_0x295146);_0xa0dab3['removeRows'](_0x45d04e,{'at':_0x5dc229,'rows':_0x27e2a5-_0x5dc229+0x1});}),_0x197cae['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xc46c30=>{const _0x2db3b7=_0xc46c30['map'](_0x54404f=>_0x54404f['getContainedElement']()),_0x55dba6=_0x2db3b7[0x0]['findAncestor']('table'),{minColumn:_0x54a84b,maxColumn:_0x90d980}=_0x416095['_getCoordsForCells'](_0x2db3b7);_0xa0dab3['removeColumns'](_0x55dba6,{'at':_0x54a84b,'columns':_0x90d980-_0x54a84b+0x1});});const _0x4a0f2f=(_0x46cfd0,_0x5440c2)=>{if(!_0x5440c2['subType']||!_0x5440c2['subType']['startsWith']('tablePaste'))return;const _0x3b700e=_0x5440c2['attributes']['tablePasteChainId'],_0x4c325e=_0x197cae['getSuggestions']()['filter'](_0x50093b=>_0x50093b['isInContent']&&_0x50093b['attributes']&&_0x50093b['attributes']['tablePasteChainId']==_0x3b700e);_0x4c325e['length']&&_0x5440c2['getAllAdjacentSuggestions']()['length']!=_0x4c325e['length']&&_0x4c325e['reduce']((_0x52d224,_0x237cfb)=>(_0x52d224['next']=_0x237cfb,_0x237cfb['previous']=_0x52d224,_0x237cfb));};function _0x49aba0(_0x5ee068,_0x106ad7=!0x0){const {id:_0x4e103b,authorId:_0x380126}=it(_0x5ee068['markerName']),_0x52b8d7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x51a75b=_0x197cae['activeMarkers']['includes'](_0x5ee068['markerName']);return _0x51a75b&&_0x52b8d7['push']('ck-suggestion-marker--active'),{'classes':_0x52b8d7,'attributes':{'data-suggestion':_0x4e103b,'data-author-id':_0x380126},'priority':_0x51a75b&&_0x106ad7?0xbc2:0xbb8};}_0x197cae['on']('suggestionLoaded',_0x4a0f2f,{'priority':'high'}),_0x197cae['on']('suggestionUnloaded',_0x4a0f2f,{'priority':'high'}),_0x392838['model']['document']['registerPostFixer'](()=>{let _0x161ffd=!0x1;const _0x9e4dc2=Array['from'](_0x392838['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x269df2,data:_0x4e2396}of _0x9e4dc2){const {group:_0x67a202,type:_0xa87d84,id:_0x4a0b4e}=it(_0x269df2);if('suggestion'!=_0x67a202||'deletion'!=_0xa87d84||_0x4e2396['oldRange'])continue;if(!_0x197cae['hasSuggestion'](_0x4a0b4e))continue;const _0x2aa696=_0x197cae['getSuggestion'](_0x4a0b4e)['getRanges'](),_0x56cd35=_0x392838['plugins']['get']('Users')['me'];for(const _0x5ea239 of _0x197cae['getSuggestions']())if(_0x5ea239['isInContent']&&_0x5ea239['author']==_0x56cd35&&'formatBlock'==_0x5ea239['type']&&'tablePasteCell'==_0x5ea239['subType']&&_0x5ea239['getRanges']()['every'](_0x48c82f=>_0x2aa696['some'](_0x5de5f4=>_0x5de5f4['containsRange'](_0x48c82f,!0x0)))){for(const _0x488fad of _0x5ea239['getAllAdjacentSuggestions']())_0x488fad['isInContent']&&(_0x488fad['discard'](),_0x161ffd=!0x0);}}return _0x161ffd;}),_0x392838['model']['document']['registerPostFixer'](_0x68b31b=>{const _0x16e010=_0x392838['commands']['get']('redo');if(!_0x16e010||!_0x16e010['_createdBatches']['has'](_0x68b31b['batch']))return!0x1;let _0x56681d=!0x1;const _0x5748c6=_0x392838['plugins']['get']('Users')['me'],_0x5be662=_0x392838['model']['document']['differ']['getChanges'](),_0x45b0b0=Array['from'](_0x392838['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x21643f,data:_0x54ca3c})=>{const {group:_0x15e2ca,subType:_0x667c8c,authorId:_0x31aa4d}=it(_0x21643f);return'suggestion'==_0x15e2ca&&'tablePaste'==_0x667c8c&&_0x31aa4d==_0x5748c6['id']&&!_0x54ca3c['oldRange'];});for(const _0x27b050 of _0x5be662){if('insert'!=_0x27b050['type']||'tableCellSuggestion'!=_0x27b050['name']||0x1!=_0x27b050['length'])continue;const _0x284fd3=_0x68b31b['createRange'](_0x27b050['position'],_0x27b050['position']['getShiftedBy'](0x1));if(!_0x45b0b0['find'](({data:_0x24ed1e})=>_0x24ed1e['newRange']['isEqual'](_0x284fd3))){for(const {name:_0x2d0f04,data:_0x24f53b}of _0x45b0b0)if(_0x284fd3['containsRange'](_0x24f53b['newRange'])){_0x68b31b['updateMarker'](_0x2d0f04,{'range':_0x284fd3}),_0x56681d=!0x0;break;}}}return _0x56681d;}),_0x392838['model']['document']['registerPostFixer'](_0x501d4b=>{let _0x1b6bac=!0x1;const _0xa2986c=_0x392838['plugins']['get']('Users')['me'],_0x3e925a=_0x197cae['getSuggestions']()['filter'](_0x271450=>_0x271450['isInContent']&&_0x271450['author']==_0xa2986c),_0x5b45e5=new Set(),_0x510f3a=new Set();for(const _0x4379b0 of _0x3e925a)if('tablePaste'==_0x4379b0['subType'])for(const _0x446fb8 of _0x4379b0['getMarkers']()){const _0x572c21=_0x446fb8['getRange']()['getContainedElement']();if(_0x572c21){if(_0x572c21['is']('element','tableCellSuggestion')&&qe(_0x572c21)){_0x4379b0['removeMarker'](_0x446fb8['name']),_0x5b45e5['add'](_0x572c21),_0x1b6bac=!0x0;const _0x4e5f40=_0x572c21['nextSibling'],_0x459850=_0x572c21['previousSibling'],_0x296b51=_0x4e5f40&&_0x4e5f40['is']('element','tableCellSuggestion'),_0xf466a2=_0x459850&&_0x459850['is']('element','tableCellSuggestion');_0x296b51&&!_0x5b45e5['has'](_0x4e5f40)&&_0x510f3a['add'](_0x4e5f40),_0xf466a2&&!_0x5b45e5['has'](_0x459850)&&_0x510f3a['add'](_0x459850);}else _0x572c21['is']('element','paragraph')&&_0x572c21['isEmpty']&&(_0x4379b0['removeMarker'](_0x446fb8['name']),_0x1b6bac=!0x0);}}else{if('tablePasteCell'==_0x4379b0['subType']){if(!_0x4379b0['attributes']||!_0x4379b0['attributes']['tablePasteChainId'])continue;const _0xb44360=_0x4379b0['attributes']['markerAttributes'];if(_0xb44360&&Object['keys'](_0xb44360)['length'])continue;const _0x47e724=_0x4379b0['attributes']['tablePasteChainId'];let _0x5be15b=!0x0,_0x10c3d7=!0x0;for(const _0x2ddc88 of _0x3e925a)if(_0x2ddc88['subType']&&_0x2ddc88['subType']['startsWith']('tablePaste')){if(!_0x2ddc88['attributes']['tablePasteChainId']){_0x10c3d7=!0x1;break;}if(_0x2ddc88['id']!=_0x4379b0['id']&&_0x2ddc88['attributes']['tablePasteChainId']==_0x47e724){_0x5be15b=!0x1;break;}}_0x10c3d7&&_0x5be15b&&(_0x4379b0['removeMarkers'](),_0x1b6bac=!0x0);}}for(const _0x416fef of _0x5b45e5)_0x501d4b['remove'](_0x416fef);for(const _0x32ce2f of _0x510f3a)_0x501d4b['unwrap'](_0x32ce2f);return _0x1b6bac;}),_0x392838['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x196fc1=>_0x49aba0(_0x196fc1),'converterPriority':'high'}),_0x392838['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x55cb85,_0x1c1d42)=>_0x1c1d42['options']['showSuggestionHighlights']?_0x49aba0(_0x55cb85,!0x1):null,'converterPriority':'high'});const _0x535e72=_0x392838['editing']['view'];this['listenTo'](_0x535e72['document'],'clipboardOutput',(_0x5acc18,_0x21ddab)=>{const _0x48ebc5=[];for(const _0x8e9f89 of _0x535e72['createRangeIn'](_0x21ddab['content'])['getItems']())_0x8e9f89['is']('element','suggestion-td')&&_0x48ebc5['push'](_0x8e9f89);_0x535e72['change'](_0x188ec0=>{for(const _0x2ad3fd of _0x48ebc5)_0x188ec0['move'](_0x188ec0['createRangeIn'](_0x2ad3fd),_0x188ec0['createPositionBefore'](_0x2ad3fd)),_0x188ec0['remove'](_0x2ad3fd);});});}};function qe(_0x178065){if(_0x178065['isEmpty'])return!0x0;const _0x2c0798=_0x178065['getChild'](0x0);return _0x2c0798['is']('element','paragraph')&&_0x2c0798['isEmpty'];}function Ye(_0x77077a,_0x53248a={},_0x3fa12b){for(const {isAnchor:_0x517988,cellHeight:_0x2d9067,cellWidth:_0x1dcc09}of _0x3fa12b['createTableWalker'](_0x77077a,{'includeAllSlots':!0x0,..._0x53248a}))if(!_0x517988||0x1!=_0x2d9067||0x1!=_0x1dcc09)return!0x1;return!0x0;}var Qe=class extends _0xf0b898{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x30f9c2=this['editor']['plugins']['get']('TrackChangesEditing');_0x30f9c2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x30f9c2['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x30f9c2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x30f9c2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0xa1121a=_0x30f9c2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x30f9c2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x3c23b6,_0x83ebc1)=>{_0xa1121a(_0x3c23b6,_0x83ebc1),this['_restoreCellWidths'](_0x3c23b6[0x0]['start']['nodeAfter'],_0x83ebc1['commandParams'][0x0]['cellWidths']);}),_0x30f9c2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x3363b2,_0x220e94){const _0x283d2d=this['editor']['plugins']['get']('TrackChangesEditing'),_0xec29a6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4ee6af=_0x220e94['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2c2185=_0xec29a6['getColumnGroupElement'](_0x4ee6af);let _0x52edca=_0x2c2185?_0xec29a6['getTableColumnsWidths'](_0x2c2185):null,_0x575e98=_0x4ee6af['getAttribute']('tableWidth')||null;const _0x814cbc=_0x220e94['tableWidth']||_0x575e98,_0x3f2028=_0x220e94['columnWidths']||_0x52edca;let _0x3beee4=this['_getCellWidths'](_0x4ee6af);const _0x552439=this['_foldResizeTableSuggestion'](_0x4ee6af);_0x552439&&(_0x575e98=_0x552439['tableWidth'],_0x52edca=_0x552439['columnWidths'],_0x3beee4=_0x552439['cellWidths']||_0x3beee4),_0x3363b2({'table':_0x4ee6af,'tableWidth':_0x814cbc,'columnWidths':_0x3f2028}),_0x283d2d['markBlockFormat'](_0x4ee6af,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x575e98,'columnWidths':_0x52edca,'cellWidths':_0x3beee4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x5aa949,_0x2d153f={}){if(void 0x0===_0x2d153f['value']||''===_0x2d153f['value'])return void _0x5aa949(_0x2d153f);const _0x19ad17=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3aa2b7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x452995=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x2d153f['batch']||(_0x2d153f['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x2d153f['batch'],()=>{const _0x36e010=_0x3aa2b7['getColumnGroupElement'](_0x452995);let _0x51888e=_0x36e010?_0x3aa2b7['getTableColumnsWidths'](_0x36e010):null,_0x41d3c3=_0x452995['getAttribute']('tableWidth')||null,_0x27f74f=this['_getCellWidths'](_0x452995);const _0x571a75=this['_foldResizeTableSuggestion'](_0x452995,!0x0);_0x571a75&&(_0x41d3c3=_0x571a75['tableWidth'],_0x51888e=_0x571a75['columnWidths'],_0x27f74f=_0x571a75['cellWidths']||_0x27f74f),_0x5aa949(_0x2d153f),_0x19ad17['markBlockFormat'](_0x452995,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x41d3c3,'columnWidths':_0x51888e,'cellWidths':_0x27f74f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x14994c,_0x10c79d=!0x1){const _0xcc4372=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a192f=this['editor']['plugins']['get']('Users')['me'];for(const _0x3e28f4 of _0xcc4372['getSuggestions']({'skipNotAttached':!0x0})){const _0x4991fd=_0x3e28f4['getContainedElement']();if('resizeTable'===_0x3e28f4['subType']&&_0x4991fd===_0x14994c){_0x3e28f4['author']!==_0x5a192f&&(_0x10c79d?_0x3e28f4['removeMarkers']():_0x3e28f4['discard']());const _0x5f1f8c=_0x3e28f4['data']['commandParams'];return{'tableWidth':_0x5f1f8c[0x0]['tableWidth'],'columnWidths':_0x5f1f8c[0x0]['columnWidths'],'cellWidths':_0x5f1f8c[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x9e3ee0){const _0x2183e0=[];for(const _0xe37a1f of _0x9e3ee0['getChildren']())if(_0xe37a1f['is']('element','tableRow')){for(const _0x34ffe5 of _0xe37a1f['getChildren']())_0x2183e0['push'](_0x34ffe5['getAttribute']('tableCellWidth')||null);}return _0x2183e0;}_restoreCellWidths(_0xd1635e,_0x324385){_0x324385&&this['editor']['model']['change'](_0x396726=>{let _0x480379=0x0;for(const _0x8c2f2a of _0xd1635e['getChildren']())if(_0x8c2f2a['is']('element','tableRow'))for(const _0x297010 of _0x8c2f2a['getChildren']()){const _0x48ec1d=_0x324385[_0x480379++];_0x48ec1d&&_0x396726['setAttribute']('tableCellWidth',_0x48ec1d,_0x297010);}});}handleSuggestionDescription(_0x355a6b){if('formatBlock'!=_0x355a6b['type']&&'formatInline'!=_0x355a6b['type'])return;const {data:_0x4b5d30}=_0x355a6b;return _0x4b5d30&&'resizeTable'===_0x4b5d30['formatGroupId']?{'type':'format','content':Bt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ze=class extends _0xf0b898{afterInit(){const _0x3577ad=this['editor'];_0x3577ad['plugins']['has']('Template')&&_0x3577ad['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Je=class extends _0xf0b898{afterInit(){const _0x45fbae=this['editor'];if(!_0x45fbae['commands']['get']('insertTableOfContents'))return;_0x45fbae['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x78433b=_0x45fbae['plugins']['get']('TrackChangesEditing'),_0x2bf99b=_0x45fbae['locale'];_0x78433b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3e1543=>Bt(_0x2bf99b,'ELEMENT_TABLE_OF_CONTENTS',_0x3e1543));}},tn=class extends _0xf0b898{afterInit(){const _0x181255=this['editor'];_0x181255['plugins']['has']('Title')&&(_0x181255['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Bt(_0x181255['locale'],'ELEMENT_TITLE')),_0x181255['model']['document']['registerPostFixer'](_0xc909e6=>{let _0x8edeab=!0x1;const _0x516dc2=Array['from'](_0x181255['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d4403,data:_0x14540f}of _0x516dc2){const {group:_0x43233a}=it(_0x2d4403);if('suggestion'!==_0x43233a||!_0x14540f['newRange'])continue;const _0x228732=_0x14540f['newRange'],_0x58637b=_0x228732['end']['nodeBefore'];if(!_0x58637b||!_0x58637b['is']('element','title-content'))continue;if(!_0x228732['start']['isTouching'](_0x228732['end']))continue;const _0x4eef00=_0x181255['model']['schema']['getNearestSelectionRange'](_0x228732['end'],'forward');if(_0x4eef00&&_0x4eef00['isCollapsed']){const _0x2b026a=_0xc909e6['createRange'](_0x228732['start'],_0x4eef00['start']);_0x2b026a['isEqual'](_0x228732)||(_0xc909e6['updateMarker'](_0x2d4403,{'range':_0x2b026a}),_0x8edeab=!0x0);}_0x8edeab||(_0xc909e6['removeMarker'](_0x2d4403),_0x8edeab=!0x0);}return _0x8edeab;}));}},en=class extends _0xf0b898{afterInit(){const _0xb2c84d=this['editor'],_0x696d70=_0xb2c84d['plugins']['get']('TrackChangesEditing');_0xb2c84d['plugins']['has']('Uploadcare')&&(_0x696d70['enableCommand']('uploadcare'),_0xb2c84d['plugins']['has']('UploadcareImageEdit')&&(_0x696d70['enableCommand']('uploadcareImageEdit'),_0x696d70['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x696d70['descriptionFactory']['registerDescriptionCallback'](_0x5def40=>{if('attribute'!=_0x5def40['type'])return;const {data:_0x4db9bf}=_0x5def40;return _0x4db9bf&&'uploadcareImageId'==_0x4db9bf['key']?{'type':'format','content':''}:void 0x0;})));}},nn=class extends _0xf0b898{afterInit(){const _0x5a91d7=this['editor'],_0x1cdfc8=_0x5a91d7['plugins']['get']('TrackChangesEditing');_0x5a91d7['plugins']['has']('UndoEditing')&&(_0x1cdfc8['enableCommand']('undo'),_0x1cdfc8['enableCommand']('redo'));}},sn=class extends _0xf0b898{static get requires(){return[Ge];}afterInit(){const _0x3de279=this['editor'];_0x3de279['plugins']['has']('TableCaptionEditing')&&_0x3de279['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},rn=class extends _0xf0b898{tableProperties;tableCellProperties;constructor(_0x42f76c){super(_0x42f76c),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x2d649b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x459162 of this['tableProperties'])_0x2d649b['enableCommand'](_0x459162,(_0x2e45cf,_0x5074c9)=>{const _0x5da9af=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x459162,[_0x5da9af],this['tableProperties'],'tableProperties',_0x2e45cf,_0x5074c9);});_0x2d649b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2d649b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2d649b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x360e86,_0x2a4e04)=>this['handleDiscardAction'](this['tableProperties'],_0x360e86,_0x2a4e04)),_0x2d649b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3f32f3 of this['tableCellProperties'])this['editor']['commands']['get'](_0x3f32f3)&&_0x2d649b['enableCommand'](_0x3f32f3,(_0x1b3ead,_0x59c807)=>{const _0x3fb0d4=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3f32f3,_0x3fb0d4,this['tableCellProperties'],'tableCellProperties',_0x1b3ead,_0x59c807);});_0x2d649b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2d649b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2d649b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x9ac5ce,_0x266d74)=>this['handleDiscardAction'](this['tableCellProperties'],_0x9ac5ce,_0x266d74)),_0x2d649b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x2d649b['descriptionFactory']['registerAttributeLabel']('tableCellType',Bt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x2d649b['descriptionFactory']['registerDescriptionCallback'](_0x6d6753=>this['handleSuggestionDescription'](_0x6d6753)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x259499,_0x57387f,_0x343305,_0x8615ee,_0x39e567,_0x528158){const _0x55de9f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x528158['batch'],()=>{for(const _0x5a49a2 of _0x57387f)if(this['_getSuggestion'](_0x5a49a2,_0x8615ee))_0x39e567(_0x528158);else{const _0x2b18f5={};for(const _0x285460 of _0x343305){const _0x3f072=_0x5a49a2['getAttribute'](_0x285460);void 0x0!==_0x3f072&&(_0x2b18f5[_0x285460]=_0x3f072);}const _0x3c3d6d=this['_getResizedColumnWidths'](_0x5a49a2);_0x3c3d6d&&(_0x2b18f5['columnWidths']=_0x3c3d6d),_0x39e567(_0x528158),_0x55de9f['markBlockFormat'](_0x5a49a2,{'commandParams':[_0x2b18f5]},[],_0x8615ee);}});}handleDiscardAction(_0x25e518,_0x5041af,_0x5be88a){const _0x57ac72=_0x5041af[0x0]['start']['nodeAfter'],_0x292304=_0x5be88a['commandParams'][0x0];this['editor']['model']['change'](_0x3896b3=>{for(const _0x38c9b4 of _0x25e518)void 0x0!==_0x292304[_0x38c9b4]?_0x3896b3['setAttribute'](_0x38c9b4,_0x292304[_0x38c9b4],_0x57ac72):_0x3896b3['removeAttribute'](_0x38c9b4,_0x57ac72);if(_0x292304['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x123378=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x19e4d2=_0x123378['getColumnGroupElement'](_0x57ac72);if(_0x19e4d2){const _0x4be236=_0x123378['getTableColumnsWidths'](_0x19e4d2),_0x27d85b=_0x57ac72['getAttribute']('tableWidth');if(('string'==typeof _0x27d85b&&_0x27d85b['trim']()['endsWith']('px'))!==_0x4be236['some'](_0x1cfa84=>'string'==typeof _0x1cfa84&&_0x1cfa84['endsWith']('px'))){const _0x112651=_0x123378['getTableColumnElements'](_0x19e4d2);_0x292304['columnWidths']['forEach']((_0x801617,_0x54b739)=>{_0x112651[_0x54b739]&&_0x3896b3['setAttribute']('columnWidth',_0x801617,_0x112651[_0x54b739]);});}}}});}_getResizedColumnWidths(_0x34691f){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x34691f['is']('element','table'))return;const _0x3ec5bb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2b3d44=_0x3ec5bb['getColumnGroupElement'](_0x34691f);return _0x2b3d44?_0x3ec5bb['getTableColumnsWidths'](_0x2b3d44):void 0x0;}handleSuggestionDescription(_0x4d89b5){if(_0x4d89b5['data'])switch(_0x4d89b5['subType']){case'tableProperties':return{'type':'format','content':Bt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Bt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0xfa3583,_0x11949c){const _0x22d0c8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x16b866 of _0x22d0c8['getSuggestions']({'skipNotAttached':!0x0})){const _0x350151=_0x16b866['getContainedElement']();if(_0x16b866['subType']===_0x11949c&&_0x350151===_0xfa3583)return _0x16b866;}return null;}_registerTablePropertiesAttributes(){const _0x5184c6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x210d48=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1a6273 of _0x210d48){const _0x2bb401=_0x1a6273['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x5184c6['descriptionFactory']['registerAttributeLabel'](_0x1a6273,Bt(this['editor']['locale'],'FORMAT_'+_0x2bb401));}}},on=class extends _0xf0b898{afterInit(){const _0x4719b3=this['editor'];if(!_0x4719b3['plugins']['has']('LineHeight'))return;const _0x3e6ba3=_0x4719b3['plugins']['get']('TrackChangesEditing'),_0x3c2af7=_0x4719b3['locale'];_0x3e6ba3['enableDefaultAttributesIntegration']('lineHeight'),_0x3e6ba3['descriptionFactory']['registerAttributeLabel']('lineHeight',Bt(_0x3c2af7,'FORMAT_LINE_HEIGHT'));}};const an='$elementName';function cn(_0xdda2b6){return'marker'==_0xdda2b6['type']&&_0xdda2b6['name']['startsWith']('$markedRemove');}function ln(_0x38395c){return _0x38395c?[_0x38395c]:[];}var un=class extends _0xf0b898{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x1d69dd,_0x80da0c,_0x445bdf,_0x15aff3,vt,Dt,Ut,Pt,Gt,Ht,Wt,zt,Vt,jt,Kt,qt,Yt,ne,ie,se,oe,ae,ce,ue,de,he,ge,fe,me,Te,Ee,_e,pe,Le,Ae,ke,Me,Ie,Qt,on,Jt,Re,Ne,ye,Se,Oe,we,Be,Fe,ve,De,Pe,xe,Ge,$e,We,Ve,ze,sn,Xe,Qe,Je,rn,Ze,tn,en,nn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12da25){super(_0x12da25),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xd86d99,_0x375863,_0x358c33,_0x4d4b52)=>{this['_model']['change'](()=>{for(const _0x5e75a2 of[..._0x4d4b52,..._0x358c33])this['_model']['markers']['has'](_0x5e75a2)&&_0x12da25['editing']['reconvertMarker'](_0x5e75a2);});}),this['descriptionFactory']=new Ft(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new dn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x12da25['plugins']['get'](_0x1d69dd),this['_suggestionsConversion']=_0x12da25['plugins']['get'](_0x80da0c),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x12da25['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x12da25['config']['get']('trackChanges.trackFormatChanges'),_0x12da25['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x12da25['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Lt(_0x12da25,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x3ac992=this['editor'];_0x3ac992['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2e45ba,{writer:_0x2972ff})=>{let _0x453a94='suggestion:'+_0x2e45ba['getAttribute']('suggestion-type')+':'+_0x2e45ba['getAttribute']('id');return _0x2e45ba['getAttribute']('marker-count')&&(_0x453a94+=':'+_0x2e45ba['getAttribute']('marker-count')),_0x2972ff['createElement']('$marker',{'data-name':_0x453a94});}}),_0x3ac992['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3ac992['model']['document']['registerPostFixer'](_0x177a25=>{let _0x2c660c=!0x1;const _0x7eb315=Array['from'](_0x3ac992['model']['document']['differ']['getChangedMarkers']()),_0x436f0e=new Set();for(const {name:_0x5d5588,data:_0x46915c}of _0x7eb315){const {group:_0x5abeda,type:_0x3fb2d5,subType:_0x310235,id:_0x19ca49}=it(_0x5d5588);if('suggestion'!==_0x5abeda)continue;const _0x219cb1=_0x310235?'suggestion:'+_0x3fb2d5+':'+_0x310235+':'+_0x19ca49:'suggestion:'+_0x3fb2d5+':'+_0x19ca49,_0x3990d5=_0x3ac992['model']['markers']['getMarkersGroup'](_0x219cb1),_0x433d8d=_0x3ac992['model']['markers']['get'](_0x5d5588),_0x439443=this['_suggestions']['get'](_0x19ca49);if(null!=_0x46915c['newRange']){'formatInline'==_0x3fb2d5&&(_0x2c660c=_0x2c660c||fn(_0x46915c['newRange'],_0x5d5588,_0x177a25,_0x3ac992['model']['schema']));const _0x1bea2f='attribute'==_0x3fb2d5&&this['_suggestionsConversion']['isBlockAttribute'](kn(_0x310235)),_0x343957='attribute'==_0x3fb2d5&&this['_suggestionsConversion']['isInlineAttribute'](kn(_0x310235));if(_0x46915c['newRange']['isCollapsed']||'$graveyard'==_0x46915c['newRange']['root']['rootName']||'formatBlock'==_0x3fb2d5&&!En(_0x46915c['newRange'])||_0x1bea2f&&!En(_0x46915c['newRange'])||_0x343957&&Tn(_0x46915c['newRange'])||'deletion'==_0x3fb2d5&&Tn(_0x46915c['newRange'])||_0x433d8d&&_n(_0x433d8d,_0x3990d5))_0x177a25['removeMarker'](_0x5d5588),_0x2c660c=!0x0;else{if(!_0x439443||!_0x439443['isInContent'])continue;if(_0x46915c['newRange']&&_0x46915c['oldRange']&&_0x46915c['newRange']['isEqual'](_0x46915c['oldRange']))continue;_0x436f0e['add'](_0x439443);}}}return _0x436f0e['size']>0x0&&(_0x2c660c=!!this['_joinWithAdjacentSuggestions'](_0x436f0e)||_0x2c660c),_0x2c660c;}),_0x3ac992['model']['document']['registerPostFixer'](_0x2fdb1a=>{let _0x5eb557=!0x1;for(const _0x2cd62c of _0x3ac992['model']['document']['differ']['getChanges']())if('insert'==_0x2cd62c['type'])for(const _0x3d32bc of this['_suggestions']['values']()){if(_0x3d32bc['isMultiRange']||!_0x3d32bc['isInContent'])continue;const _0x4456d9='formatBlock'==_0x3d32bc['type'],_0x51e6c0=this['_getAttributeKey'](_0x3d32bc),_0xa84d5a=_0x51e6c0&&this['_suggestionsConversion']['isBlockAttribute'](_0x51e6c0);if(!_0x4456d9&&!_0xa84d5a)continue;const _0x3af049=_0x3d32bc['getFirstRange']();if(_0x3af049['start']['parent']!=_0x3af049['end']['parent']&&!_0x3af049['end']['isAtEnd']){const _0x2615b4=_0x3ac992['model']['createPositionAt'](_0x3af049['start']['nodeAfter'],'end'),_0x26cf01=_0x3ac992['model']['createRange'](_0x3af049['start'],_0x2615b4);_0x2fdb1a['updateMarker'](_0x3d32bc['getFirstMarker'](),{'range':_0x26cf01}),_0x5eb557=!0x0;}}return _0x5eb557;}),_0x3ac992['model']['document']['registerPostFixer'](_0x374884=>this['_processAttributeChanges'](_0x374884)),_0x3ac992['model']['document']['registerPostFixer'](_0x534ea7=>!_0x534ea7['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x534ea7)),_0x3ac992['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3ac992['model']['document']['on']('change:data',(_0x391231,_0x4c904f)=>{if(!_0x4c904f['isLocal']||_0x4c904f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x480d96=_0x3ac992['model']['document']['differ']['getChanges']();if(0x0==_0x480d96['length'])return;const _0x576593=[],_0xd4806d=_0x480d96['filter'](_0x2501cf=>'attribute'==_0x2501cf['type']),_0x43ff9c=_0x480d96['filter'](_0x8ca07a=>'insert'==_0x8ca07a['type']&&'$text'!=_0x8ca07a['name']);for(const _0x4312c9 of _0xd4806d)this['_suggestionsConversion']['isRegisteredAttribute'](_0x4312c9['attributeKey'])&&_0x576593['push']({'key':_0x4312c9['attributeKey'],'newValue':_0x4312c9['attributeNewValue'],'oldValue':_0x4312c9['attributeOldValue'],'range':pn(_0x4312c9['range'],_0x3ac992['model'])});for(const _0x4f4a23 of _0x43ff9c){if('rename'!=_0x4f4a23['action']&&'refresh'!=_0x4f4a23['action'])continue;const _0xd4ebb8=Ln(_0x4f4a23['position']['nodeAfter'],_0x3ac992['model']),_0x5099f7=_0x4f4a23['before'];'rename'==_0x4f4a23['action']&&_0x576593['push']({'key':an,'newValue':_0x4f4a23['name'],'oldValue':_0x5099f7['name'],'range':_0xd4ebb8});for(const [_0x2544cc,_0x2640d4]of _0x5099f7['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2544cc))continue;const _0x20f168=_0x4f4a23['attributes']['get'](_0x2544cc);_0x2640d4!==_0x20f168&&_0x576593['push']({'key':_0x2544cc,'newValue':_0x20f168,'oldValue':_0x2640d4,'range':_0xd4ebb8});}for(const [_0x3b4c67,_0x4f3a6d]of _0x4f4a23['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x3b4c67)&&(_0x5099f7['attributes']['has'](_0x3b4c67)||_0x576593['push']({'key':_0x3b4c67,'newValue':_0x4f3a6d,'oldValue':null,'range':_0xd4ebb8}));}0x0!=_0x576593['length']&&_0x3ac992['model']['enqueueChange'](_0x4c904f,_0x6544e=>{const _0x4241ff=_0xc08621();for(const {range:_0x2c172f,key:_0x496af0,oldValue:_0x57779f,newValue:_0x35693b}of _0x576593)this['markAttributeChange'](_0x2c172f,_0x496af0,_0x57779f,_0x35693b,{'groupId':_0x4241ff});this['_reduceExistingSuggestions'](_0x6544e,_0x576593);});},{'priority':'lowest'}),_0x3ac992['model']['markers']['on']('update:suggestion',(_0x3de187,_0x151c31,_0x26e63e)=>{if(null==_0x26e63e){const {id:_0x6d1bd3}=it(_0x151c31['name']),_0x3ff2d3=this['_suggestions']['get'](_0x6d1bd3);_0x3ff2d3&&_0x3ff2d3['addMarkerName'](_0x151c31['name']);}}),_0x3ac992['model']['document']['on']('change:data',()=>{const _0x3ab83b=Array['from'](_0x3ac992['model']['document']['differ']['getChangedMarkers']())['filter'](_0xd9a859=>'suggestion'===it(_0xd9a859['name'])['group']);if(0x0===_0x3ab83b['length'])return;_0x3ab83b['sort']((_0x559cf1,_0x40961d)=>{const _0x453a9c=_0x559cf1['data']['oldRange'],_0x31b875=_0x40961d['data']['oldRange'];return null===_0x453a9c&&null===_0x31b875?0x0:null===_0x453a9c&&null!==_0x31b875?-0x1:null!==_0x453a9c&&null===_0x31b875?0x1:_0x453a9c['start']['isBefore'](_0x31b875['start'])?-0x1:0x1;});const _0x22df2d=new Set(),_0x5dfaed=new Set();for(const {name:_0x4b6ef5,data:_0x12d497}of _0x3ab83b){const {id:_0x5bd9fc}=it(_0x4b6ef5);if(null===_0x12d497['oldRange']){const _0x2b2c61=this['_handleNewSuggestionMarker'](_0x4b6ef5);_0x5dfaed['add'](_0x2b2c61);}else{const _0x33bafc=this['_suggestions']['get'](_0x5bd9fc);null!==_0x12d497['newRange']||_0x33bafc['isInContent']?(_0x22df2d['add'](_0x33bafc['head']),_0x5dfaed['add'](_0x33bafc)):this['_removeSuggestion'](_0x33bafc);}}_0x5dfaed['size']>0x0&&this['_refreshSuggestionsChain'](_0x5dfaed);for(const _0x1ca525 of _0x22df2d)this['fire']('suggestionChanged',_0x1ca525);}),_0x3ac992['model']['on']('applyOperation',(_0x5cd493,_0x652cde)=>{const _0x280944=_0x652cde[0x0];if(!this['_suggestions']['size'])return;if(!_0x280944['isDocumentOperation'])return;if(_0x280944['batch']['isUndo']||!_0x280944['batch']['isLocal'])return;let _0x545465,_0x156b01;switch(_0x280944['type']){case'insert':_0x545465=_0x3ac992['model']['createPositionAt'](_0x280944['position']),_0x156b01=_0x545465['getShiftedBy'](_0x280944['howMany']);break;case'split':_0x545465=_0x3ac992['model']['createPositionAt'](_0x280944['splitPosition']),_0x156b01=_0x3ac992['model']['createPositionAt'](_0x280944['moveTargetPosition']);break;case'move':_0x545465=_0x3ac992['model']['createPositionAt'](_0x280944['targetPosition']),_0x156b01=_0x545465['getShiftedBy'](_0x280944['howMany']);break;default:return;}const _0x42c9df=_0x3ac992['model']['createRange'](_0x545465,_0x156b01);_0x3ac992['model']['change'](()=>{for(const {suggestion:_0x2fe150,meta:_0x3f64f6}of this['_findSuggestions'](_0x42c9df)){if(_0x2fe150['isMultiRange'])continue;if('formatInline'==_0x2fe150['type'])continue;const _0x870e89=this['_getAttributeKey'](_0x2fe150);if(_0x870e89&&this['_suggestionsConversion']['isBlockAttribute'](_0x870e89)&&'split'!=_0x280944['type'])continue;const _0x5b75a6=_0x2fe150['data']&&_0x2fe150['data']['multipleBlocks'];('formatBlock'!=_0x2fe150['type']||'split'==_0x280944['type']&&!_0x5b75a6)&&(_0x3f64f6['containsRangeInObject']||'insertion'==_0x2fe150['type']&&_0x3f64f6['isOwn']||_0x2fe150['getFirstRange']()['containsRange'](_0x42c9df)&&this['_breakSuggestionMarker'](_0x2fe150,_0x545465,_0x156b01));}});},{'priority':'lowest'}),_0x3ac992['model']['on']('deleteContent',(_0x3ed79b,_0x594a42)=>{const _0x17603c=_0x594a42[0x0],_0x4c4b5b=_0x594a42[0x1];if(_0x4c4b5b&&_0x4c4b5b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x17603c['isCollapsed'])return;const _0x2e277e=_0x3ac992['model']['schema'],{start:_0x12da4a,end:_0x5b04e1}=_0x17603c['getFirstRange'](),_0x1df89a=_0x12da4a['nodeAfter']&&_0x2e277e['isLimit'](_0x12da4a['nodeAfter'])?null:_0x2e277e['getNearestSelectionRange'](_0x12da4a,'forward'),_0x553600=_0x5b04e1['nodeBefore']&&_0x2e277e['isLimit'](_0x5b04e1['nodeBefore'])?null:_0x2e277e['getNearestSelectionRange'](_0x5b04e1,'backward'),_0x1ed9e6=_0x3ac992['model']['createRange'](_0x1df89a?_0x1df89a['start']:_0x12da4a,_0x553600?_0x553600['end']:_0x5b04e1);_0x3ac992['model']['change'](_0x192d5d=>{this['markDeletion'](_0x1ed9e6);const _0x409c3e=_0x3ac992['model']['schema']['getNearestSelectionRange'](_0x1ed9e6['start']);_0x17603c['is']('documentSelection')?_0x192d5d['setSelection'](_0x409c3e):_0x17603c['setTo'](_0x409c3e);}),_0x3ed79b['stop']();},{'priority':_0x487ef8['normal']+0xa}),_0x3ac992['model']['on']('insertContent',(_0x514a35,_0x43c1dd)=>{const _0x39ad52=_0x43c1dd[_0x43c1dd['length']-0x1];_0x39ad52&&_0x39ad52['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3ac992['model']['change'](()=>{let _0x1dbdc5=_0x3ac992['model']['insertContent'](_0x43c1dd[0x0],_0x43c1dd[0x1],_0x43c1dd[0x2],{'forceDefaultExecution':!0x0});if(!_0x1dbdc5)return;_0x514a35['return']=_0x1dbdc5['clone']();const _0x1f3aea=_0x1dbdc5['end']['nodeBefore'],_0x303117=_0x3ac992['model']['schema'];_0x1f3aea&&_0x303117['isBlock'](_0x1f3aea)&&!_0x303117['isObject'](_0x1f3aea)&&(_0x1dbdc5=_0x3ac992['model']['createRange'](_0x1dbdc5['start'],_0x3ac992['model']['createPositionAt'](_0x1f3aea,'end'))),this['markInsertion'](_0x1dbdc5);}),_0x514a35['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x276078=new It(_0x3ac992,this['_suggestions']);_0x3ac992['commands']['add']('acceptSuggestion',_0x276078),this['enableCommand']('acceptSuggestion');const _0x2df286=new At(_0x3ac992,this['_suggestions']);_0x3ac992['commands']['add']('discardSuggestion',_0x2df286),this['enableCommand']('discardSuggestion'),_0x3ac992['commands']['add']('acceptAllSuggestions',new St(_0x3ac992,_0x276078,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3ac992['commands']['add']('discardAllSuggestions',new St(_0x3ac992,_0x2df286,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3ac992['commands']['add']('acceptSelectedSuggestions',new Mt(_0x3ac992,_0x276078,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3ac992['commands']['add']('discardSelectedSuggestions',new Mt(_0x3ac992,_0x2df286,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x456ee8=_0x3ac992['plugins']['get'](_0x1d69dd);this['listenTo'](_0x456ee8,'addComment',(_0x442721,{threadId:_0x2be437})=>{const _0xd2ed0=this['_suggestions']['get'](_0x2be437);_0xd2ed0&&_0xd2ed0['commentThread']&&0x1===_0xd2ed0['commentThread']['length']&&this['_updateSuggestionData'](_0x2be437,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x456ee8,'removeComment',(_0x4a1291,{threadId:_0x4a6339})=>{const _0x28f512=this['_suggestions']['get'](_0x4a6339);_0x28f512&&_0x28f512['commentThread']&&!_0x28f512['commentThread']['length']&&this['_updateSuggestionData'](_0x4a6339,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x1712dc){const _0x46e1d8='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x4f1dd2=0x797b8,_0x38265f={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x2f5478(_0x75709b){const _0x5b885f=new window['Promise'](_0x23871c=>{_0x75709b['once']('ready',_0x23871c);}),_0x4f7bc9=window['Date']['now'](),_0x1dc2c0=_0x75709b['config']['get']('licenseKey');async function _0x1e1530(){let _0x483785,_0x5e617f=null,_0x4ac7a5=null;try{return'GPL'==_0x1dc2c0?'NotAllowed':(_0x483785=_0x18cf84(),_0x483785?(_0x483785['usageEndpoint']&&(_0x4ac7a5=_0x2769c4(_0x483785['usageEndpoint'],_0x483785['jti'])),await _0x17be3()?_0x44dabb()?_0x5a38ef()?'Expired':_0x337e35()?('evaluation'==_0x483785['licenseType']&&(_0x5e617f=_0xb7a9f9('EvaluationLimit')),await _0x1117d7()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5a38ef(){const _0x4f4235=['evaluation','trial']['includes'](_0x483785['licenseType'])?_0x4f7bc9/0x3e8:0xe10*_0x4f1dd2;return _0x483785['exp']<_0x4f4235;}function _0x44dabb(){const _0x34878c=_0x483785['features'];if(!_0x34878c)return!0x1;if(_0x34878c['includes']('*'))return!0x0;if(_0x34878c['includes']('TC'))return!0x0;if(_0x34878c['includes']('RTC')){if(_0x33f8d3())return!0x0;if(_0x750bfe()||_0x28190e())return!0x0;}return!0x1;}function _0x337e35(){const _0x74bca2=_0x483785['licensedHosts'];if(!_0x74bca2||0x0==_0x74bca2['length'])return!0x0;const {hostname:_0x3bc659}=new URL(window['location']['href']);if(_0x74bca2['includes'](_0x3bc659))return!0x0;const _0x33a1cf=_0x3bc659['split']('.');return _0x74bca2['filter'](_0x243974=>_0x243974['includes']('*'))['map'](_0x2e65b6=>_0x2e65b6['split']('.'))['filter'](_0x503138=>_0x503138['length']<=_0x33a1cf['length'])['map'](_0x4b25e0=>Array(_0x33a1cf['length']-_0x4b25e0['length'])['fill']('*'===_0x4b25e0[0x0]?'*':'')['concat'](_0x4b25e0))['some'](_0x1cf09c=>_0x33a1cf['every']((_0x4fef65,_0x4eee23)=>_0x1cf09c[_0x4eee23]===_0x4fef65||'*'===_0x1cf09c[_0x4eee23]));}function _0x1117d7(){return _0x5e617f&&_0x4ac7a5?new window['Promise']((_0x55e604,_0x2f5edc)=>{_0x5e617f['then'](_0x55e604,_0x2f5edc),_0x4ac7a5['then'](_0x19b1b3=>{'Valid'!=_0x19b1b3&&_0x55e604(_0x19b1b3);},_0x2f5edc);}):_0x5e617f||_0x4ac7a5||'Valid';}}function _0x2769c4(_0x5a61eb,_0x6a93ba){return new window['Promise'](_0x11f1db=>{if(_0x5370d1())return _0x11f1db('Valid');_0x158e75(),_0x75709b['decorate']('_sendUsageRequest');let _0x4f8464=!0x1;const _0x3e039b=_0xc08621();function _0x5f5004(_0x321a9e){return!!_0x321a9e&&('object'==typeof _0x321a9e||'function'==typeof _0x321a9e)&&'function'==typeof _0x321a9e['then']&&'function'==typeof _0x321a9e['catch'];}function _0x1080e5(_0x302997){_0x106551(_0x302997)['then'](_0x21dc2f=>_0x21dc2f&&'ok'==_0x21dc2f['status']?_0x587406(_0x551946(_0x3e039b+_0x6a93ba))!=_0x21dc2f['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x18e666=>(_0x1f6af2(),_0x18e666),()=>{const _0x2c6fd5=_0x52442c();return null==_0x2c6fd5?(_0x1f6af2(),'Valid'):_0x4f7bc9-_0x2c6fd5>0x240c8400?'UsageLimit':'Valid';})['then'](_0x11f1db)['catch'](()=>{_0x11f1db('UsageLimit');});const _0x3b91e2=0x36ee80;function _0x1f6af2(){const _0x15efc9='llct-'+_0x587406(_0x551946(_0x5a61eb)),_0x63ff69=_0x14f55e(_0x587406(window['Math']['ceil'](_0x4f7bc9/_0x3b91e2)));window['localStorage']['setItem'](_0x15efc9,_0x63ff69);}function _0x52442c(){const _0x49517b='llct-'+_0x587406(_0x551946(_0x5a61eb)),_0x16c3ac=window['localStorage']['getItem'](_0x49517b);return _0x16c3ac?window['parseInt'](_0x14f55e(_0x16c3ac),0x10)*_0x3b91e2:null;}function _0x106551(_0x4e26ea){return new window['Promise']((_0x5d39c9,_0x27172f)=>{_0x4e26ea['then'](_0x5d39c9,_0x27172f),window['setTimeout'](_0x27172f,0x1d4c0);});}}_0x75709b['on']('_sendUsageRequest',(_0x3985be,_0x306b7c)=>{if(_0x306b7c[0x0]!=_0x5a61eb)return _0x11f1db('UsageLimit');_0x306b7c[0x1]={..._0x306b7c[0x1],'requestId':_0x3e039b};},{'priority':'high'}),_0x75709b['on']('_sendUsageRequest',_0x2ee18a=>{_0x5f5004(_0x2ee18a['return'])&&(_0x4f8464=!0x0,_0x1080e5(_0x2ee18a['return']));},{'priority':'low'}),_0x5b885f['then'](()=>{_0x4f8464||_0x11f1db('UsageLimit');});});function _0x5370d1(){return'auto'==_0x75709b['editing']['view']['_overlayModeHint'];}function _0x158e75(){_0x75709b['editing']['view']['_overlayModeHint']='auto';}}function _0xb7a9f9(_0x2c73ab){const _0x312253=[new window['Promise'](_0x5d227c=>setTimeout(_0x5d227c,0x93ecc)),_0x5b885f['then'](()=>new window['Promise'](_0x42694c=>{let _0x24283f=0x0;_0x75709b['model']['on']('applyOperation',(_0xa59f16,_0x5552da)=>{_0x5552da[0x0]['isDocumentOperation']&&_0x24283f++,0x5e8==_0x24283f&&(_0x42694c(),_0xa59f16['off']());});}))];return window['Promise']['race'](_0x312253)['then'](()=>_0x2c73ab);}async function _0x4f92dc(){await _0x5b885f,_0x75709b['model']['change']=_0x4be11d,_0x75709b['model']['enqueueChange']=_0x4be11d,_0x75709b['enableReadOnlyMode']('model');}function _0x33f8d3(){return _0x13d9ca('WebSocketGateway')&&'connected'==_0x581696('WebSocketGateway')['state'];}function _0x750bfe(){return _0x13d9ca('RevisionViewerIntegration');}function _0x28190e(){return _0x13d9ca('TrackChangesDataGetter');}function _0x4eccef(_0x38864d){const _0x5992be=_0x557040();_0x75709b[_0x5992be]='trackChangesLicenseKey'+_0x38864d,'Valid'!=_0x38864d&&_0x4f92dc();}function _0x557040(){const _0x5801a6=window['String'](window['performance']['now']())['replace']('.','');let _0x3e85f7='U';for(let _0x236acd=0x0;_0x236acd<_0x5801a6['length'];_0x236acd+=0x2){let _0x593b8e=window['parseInt'](_0x5801a6['substring'](_0x236acd,_0x236acd+0x2));_0x593b8e>=0x3e&&(_0x593b8e-=0x3e),_0x3e85f7+=_0x46e1d8[_0x593b8e];}return _0x3e85f7;}function _0x18cf84(){const _0x39cd3d=_0x1dc2c0['split']('.');if(0x3!=_0x39cd3d['length'])return null;return _0x4f35cd(_0x39cd3d[0x1]);function _0x4f35cd(_0x1b791f){const _0x1b28a9=_0x3347fb(_0x1b791f);return _0x1b28a9&&_0xd34d7d()?_0x1b28a9:null;function _0xd34d7d(){const _0x53efd1=_0x1b28a9['jti'],_0x2bec5f=window['parseInt'](_0x53efd1['substring'](_0x53efd1['length']-0x8),0x10),_0x1f19f8={..._0x1b28a9,'jti':_0x53efd1['substring'](0x0,_0x53efd1['length']-0x8)};return delete _0x1f19f8['vc'],_0x551946(_0x1f19f8)==_0x2bec5f;}}}async function _0x17be3(){let _0x11cbfe=!0x0;try{const [_0x5517bb,_0x3b17f4,_0x2892b0]=_0x1dc2c0['split']('.');return _0x53107a(_0x5517bb),await _0x4375e6(_0x5517bb,_0x3b17f4,_0x2892b0),_0x11cbfe;}catch{return!0x1;}function _0x53107a(_0x2b0cae){const _0x108574=_0x3347fb(_0x2b0cae);_0x108574&&'ES256'==_0x108574['alg']||(_0x11cbfe=!0x1);}async function _0x4375e6(_0x440da1,_0x3c317e,_0x4819b4){const _0x50f856=window['Uint8Array']['from'](_0x2a9cda(_0x4819b4),_0x5baddf=>_0x5baddf['charCodeAt'](0x0)),_0x542937=new window['TextEncoder']()['encode'](_0x440da1+'.'+_0x3c317e),_0x5f4dd9=window['crypto']['subtle'];if(!_0x5f4dd9)return;const _0x27ad24=await _0x5f4dd9['importKey']('jwk',_0x38265f,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5f4dd9['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x27ad24,_0x50f856,_0x542937)||(_0x11cbfe=!0x1);}}function _0x3347fb(_0x10398a){return _0x10398a['startsWith']('ey')?JSON['parse'](_0x2a9cda(_0x10398a)):null;}function _0x2a9cda(_0x9c6efa){return window['atob'](_0x9c6efa['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x551946(_0x3635cb){let _0x46c3e8=0x1505;function _0x4cd428(_0x2a83d9){for(let _0x186087=0x0;_0x186087<_0x2a83d9['length'];_0x186087++){const _0x4c8254=_0x2a83d9['charCodeAt'](_0x186087);_0x46c3e8=(_0x46c3e8<<0x5)+_0x46c3e8+_0x4c8254,_0x46c3e8&=_0x46c3e8;}}function _0x272d47(_0x196b77){Array['isArray'](_0x196b77)?_0x196b77['forEach'](_0x272d47):_0x196b77&&'object'==typeof _0x196b77?Object['entries'](_0x196b77)['sort']()['forEach'](([_0x30117a,_0x59fbd3])=>{_0x4cd428(_0x30117a),_0x272d47(_0x59fbd3);}):_0x4cd428(window['String'](_0x196b77));}return _0x272d47(_0x3635cb),_0x46c3e8>>>0x0;}function _0x587406(_0x1dbdee){return _0x1dbdee['toString'](0x10)['padStart'](0x8,'0');}function _0x14f55e(_0x199121){return _0x199121['split']('')['reverse']()['join']('');}function _0x13d9ca(_0xeabdfe){return _0x75709b['plugins']['has'](_0xeabdfe);}function _0x581696(_0x150654){return _0x75709b['plugins']['get'](_0x150654);}function _0x4be11d(){}_0x4eccef(await _0x1e1530());}_0x2f5478(_0x1712dc['editor']);}(this);}set adapter(_0x5b464a){if(this['_adapter'])throw new _0x53b517('track-changes-adapter-already-set',this);this['_adapter']=_0x5b464a;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x3806a7=!0x1,toJSON:_0x52e8e6=!0x1}={}){const _0x2db1dc=[];for(const _0x3495b7 of this['_suggestions']['values']())_0x3806a7&&!_0x3495b7['isInContent']||_0x2db1dc['push'](_0x3495b7);return _0x52e8e6?_0x2db1dc['map'](_0x194fc0=>_0x194fc0['toJSON']()):_0x2db1dc;}getSuggestion(_0x39b3ac){const _0x305d5e=this['_suggestions']['get'](_0x39b3ac);if(!_0x305d5e)throw new _0x53b517('track-changes-suggestion-not-found',this);return _0x305d5e;}hasSuggestion(_0x4d9ee1){return this['_suggestions']['has'](_0x4d9ee1);}addSuggestionData(_0x558e88){const {authorId:_0x2513f8,id:_0x27cc5d,originalSuggestionId:_0x50893d,attributes:_0x5850b7}=_0x558e88,[_0x2daa68,_0x15b486]=_0x558e88['type']['split'](':'),_0x388ae3=this['_suggestions']['get'](_0x27cc5d)||this['_createSuggestion'](_0x2daa68,_0x15b486,_0x27cc5d,_0x2513f8,_0x5850b7,_0x50893d);if(this['_addThreadToSuggestion'](_0x388ae3),this['_checkSuggestionCorrectness'](_0x388ae3,_0x2daa68,_0x15b486||null,_0x2513f8),_0x388ae3['createdAt']=_0x558e88['createdAt'],_0x388ae3['_isDataLoaded']=!0x0,_0x5850b7&&_0x5850b7['@external']){const _0x20acd8=_0x5850b7['@external'],_0x31dc02=this['_getExternalAuthor'](_0x20acd8['authorName']);_0x388ae3['authoredAt']=_0x20acd8['createdAt'],_0x388ae3['author']=_0x31dc02;}else _0x388ae3['authoredAt']=_0x558e88['createdAt'];switch(_0x558e88['data']&&(_0x388ae3['data']=_0x558e88['data']),_0x558e88['attributes']&&(_0x388ae3['attributes']=_0x558e88['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x388ae3['_saved']=!0x0),this['_suggestionState']['get'](_0x388ae3)){case'notReady':this['_suggestionState']['set'](_0x388ae3,'dataReady');break;case'markerReady':_0x388ae3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x388ae3])),this['_refreshSuggestionsChain'](new Set([_0x388ae3])),this['_suggestionState']['set'](_0x388ae3,'ready'),this['fire']('suggestionLoaded',_0x388ae3)):this['_suggestionState']['set'](_0x388ae3,'removed');}return _0x388ae3;}acceptSuggestion(_0x37d6fb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5dc5d5 of _0x37d6fb['getAllAdjacentSuggestions']())_0x5dc5d5['accept']();});});}discardSuggestion(_0x4918ee){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3c16b0 of _0x4918ee['getAllAdjacentSuggestions']())_0x3c16b0['discard']();});});}['enableCommand'](_0x6bf0e,_0x264c74){const _0x39137d=this['editor']['commands']['get'](_0x6bf0e);if(!_0x39137d)throw new _0x53b517('track-changes-command-not-found',this,{'commandName':_0x6bf0e});if(this['_enabledCommands']['has'](_0x39137d))throw new _0x53b517('track-changes-enable-command-twice',this,{'commandName':_0x6bf0e});this['_enabledCommands']['add'](_0x39137d),_0x264c74&&_0x39137d['on']('execute',(_0x1d3d61,_0x369011)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x369011['length']>0x0&&_0x369011[_0x369011['length']-0x1]&&_0x369011[_0x369011['length']-0x1]['forceDefaultExecution']?_0x369011['pop']():(_0x1d3d61['return']=_0x264c74((..._0x1b2ff6)=>_0x39137d['execute'](..._0x1b2ff6,{'forceDefaultExecution':!0x0}),..._0x369011),_0x1d3d61['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x474ca3){let _0x29e6fa,_0x3fc7f3;const _0x3b6280=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x29e6fa=_0x474ca3();}catch(_0x449446){_0x3fc7f3=_0x449446;}return _0x3b6280||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3fc7f3&&_0x53b517['rethrowUnexpectedError'](_0x3fc7f3,this),_0x29e6fa;}markInsertion(_0x56dab9,_0x35cd8e=null,_0x4bf38b={}){if(_0x56dab9['isCollapsed'])return null;const _0x5e424a=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4bf38b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xcb5966,meta:_0x51431d}of this['_findSuggestions'](_0x56dab9,'insertion'))if(_0x51431d['isOwn']){if(!_0x51431d['isNextTo']){if(_0x51431d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!bn(_0xcb5966,_0x4bf38b))continue;return _0xcb5966;}if(bn(_0xcb5966,_0x4bf38b))return _0xcb5966;this['_breakSuggestionMarker'](_0xcb5966,_0x56dab9['start'],_0x56dab9['end']);break;}if(_0x35cd8e==_0xcb5966['subType']&&bn(_0xcb5966,_0x4bf38b)){const _0x308c08=_0xcb5966['getFirstRange']();return _0x308c08['start']['isEqual'](_0x56dab9['end'])?this['_setSuggestionRange'](_0xcb5966,this['_model']['createRange'](_0x56dab9['start'],_0x308c08['end'])):this['_setSuggestionRange'](_0xcb5966,this['_model']['createRange'](_0x308c08['start'],_0x56dab9['end'])),_0xcb5966;}}const _0x786f13=_0xc08621(),_0x4125b6=_0x5e424a['id'],_0x4bca29=_0x35cd8e?'insertion:'+_0x35cd8e:'insertion',_0x1a7549=this['_setSuggestionData']({'id':_0x786f13,'type':_0x4bca29,'createdAt':new Date(),'authorId':_0x4125b6,'attributes':_0x4bf38b});return this['_addSuggestionMarker'](_0x4bca29,_0x786f13,_0x4125b6,_0x56dab9),_0x1a7549;}markMultiRangeInsertion(_0x1808b1,_0x5da04e='multi',_0x4c8758={}){const _0x3c81c5=this['editor']['plugins']['get']('Users')['me'],_0x87a199=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5da04e,'join');this['_trackingSessionId']&&(_0x4c8758['trackingSessionId']=this['_trackingSessionId']);for(const _0x2fab5a of this['getSuggestions']())if(_0x2fab5a['author']['id']==_0x3c81c5['id']&&'insertion'==_0x2fab5a['type']&&_0x2fab5a['subType']==_0x5da04e&&bn(_0x2fab5a,_0x4c8758)&&(_0x87a199(_0x2fab5a['getRanges'](),_0x1808b1)||_0x87a199(_0x1808b1,_0x2fab5a['getRanges']()))){for(const _0x50fd0e of _0x1808b1)_0x2fab5a['addRange'](_0x50fd0e);return _0x2fab5a;}for(const {suggestion:_0x563ca7,meta:_0x2e7972}of this['_findSuggestions'](_0x1808b1,'insertion')){if(!_0x2e7972['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2e7972['containsRangeInObject'])continue;if(!bn(_0x563ca7,_0x4c8758))continue;let _0x361b3d=!0x0;for(const _0xc1074e of _0x563ca7['getRanges']())for(const _0x24bb2e of _0x1808b1)if(!_0xc1074e['containsRange'](_0x24bb2e)){_0x361b3d=!0x1;break;}if(_0x361b3d)return _0x563ca7;}const _0x54dd00=_0xc08621(),_0x58e830=_0x3c81c5['id'],_0x41d91b='insertion:'+_0x5da04e,_0x3a2a47=this['_setSuggestionData']({'id':_0x54dd00,'type':_0x41d91b,'createdAt':new Date(),'authorId':_0x58e830,'attributes':_0x4c8758});for(const _0x187e9e of _0x1808b1)this['_addSuggestionMarker'](_0x41d91b,_0x54dd00,_0x58e830,_0x187e9e,wt['getMultiRangeId']());return _0x3a2a47;}markInlineFormat(_0x2c7280,_0x5ef176,_0x34acf7=null,_0x43e7a2={}){if(_0x34acf7=_0x34acf7||mn(_0x5ef176),_0x2c7280['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x43e7a2['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x559871=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x34acf7,'accept');return this['forceDefaultExecution'](()=>_0x559871([_0x2c7280],_0x5ef176,_0x43e7a2)),null;}const _0x9af482=this['editor']['plugins']['get']('Users')['me'],_0x37788e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x467d7a,meta:_0x5786eb}of this['_findSuggestions'](_0x2c7280,'insertion'))_0x5786eb['isOwn']&&!_0x5786eb['isInsideObject']&&_0x37788e['push'](..._0x467d7a['getRanges']());}const _0x4edfa8=function(_0x5215ac,_0x4032e9){const _0x590b7b=[];for(const _0x5956fb of _0x4032e9){const _0xf77b0=_0x5215ac['getIntersection'](_0x5956fb);_0xf77b0&&_0x590b7b['push'](_0xf77b0);}return _0x590b7b;}(_0x2c7280,_0x37788e),_0x5d96bf=function(_0x10be11,_0x2af5de){const _0x4e5d07=[_0x10be11];for(const _0x285472 of _0x2af5de){let _0x58a927=0x0;for(;_0x58a927<_0x4e5d07['length'];){const _0xec12ed=_0x4e5d07[_0x58a927]['getDifference'](_0x285472);_0x4e5d07['splice'](_0x58a927,0x1,..._0xec12ed),_0x58a927+=_0xec12ed['length'];}}return _0x4e5d07;}(_0x2c7280,_0x37788e);_0x4edfa8['length']&&this['_model']['change'](()=>{for(const _0x1da1fe of _0x4edfa8){const _0x1b16b0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x34acf7,'accept');this['forceDefaultExecution'](()=>_0x1b16b0([_0x1da1fe],_0x5ef176,_0x43e7a2));}});for(const _0x393784 of _0x5d96bf){let _0x4e6fae=null,_0x28b888=_0x393784['start'],_0x2222f4=_0x393784['end'];for(const {suggestion:_0x199df0,meta:_0x576da8}of this['_findSuggestions'](_0x393784,'formatInline')){if(!_0x576da8['isOwn'])continue;if(_0x199df0['subType']!=_0x34acf7)continue;if(!bn(_0x199df0,_0x43e7a2))continue;const _0x410c87=_0x199df0['getFirstRange']();if(_0x410c87['containsRange'](_0x393784,!0x0))return null;_0x28b888=_0x28b888['isBefore'](_0x410c87['start'])?_0x28b888:_0x410c87['start'],_0x2222f4=_0x2222f4['isAfter'](_0x410c87['end'])?_0x2222f4:_0x410c87['end'],_0x4e6fae?_0x410c87['start']['isBefore'](_0x4e6fae['getFirstRange']()['start'])?(_0x4e6fae['removeMarkers'](),_0x4e6fae=_0x199df0):_0x199df0['removeMarkers']():_0x4e6fae=_0x199df0;}const _0x5570ea=this['_model']['createRange'](_0x28b888,_0x2222f4);if(_0x4e6fae)this['_setSuggestionRange'](_0x4e6fae,_0x5570ea);else{const _0x586088=_0xc08621(),_0x38f944=_0x9af482['id'];this['_setSuggestionData']({'id':_0x586088,'type':'formatInline:'+_0x34acf7,'data':_0x5ef176,'createdAt':new Date(),'authorId':_0x38f944,'attributes':_0x43e7a2}),this['_addSuggestionMarker']('formatInline:'+_0x34acf7,_0x586088,_0x38f944,_0x5570ea);}}return null;}markBlockFormat(_0xeabd56,_0x5c0502,_0x1bbb1e=[],_0x31f022=null,_0x2dff5c={}){_0x5c0502['formatGroupId']||(_0x5c0502['formatGroupId']=_0x5c0502['commandName']),_0x5c0502['multipleBlocks']=_0xeabd56['is']('range'),_0x31f022=_0x31f022||mn(_0x5c0502);const _0x15e7a9=_0x1bbb1e['map'](_0x2253b7=>Ln(_0x2253b7,this['_model'])),_0x6524ab=_0xeabd56['is']('range')?_0xeabd56:Ln(_0xeabd56,this['_model']);if(this['_trackingSessionId']&&(_0x2dff5c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x37e38f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31f022,'accept');return this['forceDefaultExecution'](()=>_0x37e38f([_0x6524ab],_0x5c0502,_0x2dff5c)),null;}_0x15e7a9['push'](_0x6524ab);let _0xcd668=!0x0;for(const _0x98a6a6 of _0x15e7a9)if(!this['_rangeIsInLocalUserInsertion'](_0x98a6a6)){_0xcd668=!0x1;break;}if(_0xcd668&&'always'!==this['_trackFormatChanges']){const _0xf883cc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31f022,'accept');return this['forceDefaultExecution'](()=>_0xf883cc([_0x6524ab],_0x5c0502,_0x2dff5c)),null;}let _0x1e3635=null,_0x338452=_0x6524ab['start'],_0x6175b4=_0x6524ab['end'];for(const {suggestion:_0x56f634,meta:_0x3e4973}of this['_findSuggestions'](_0x6524ab,'formatBlock')){if(!_0x3e4973['isOwn'])continue;if(_0x3e4973['isNextTo']||_0x3e4973['containsRangeInObject']||_0x3e4973['isInsideObject'])continue;if(_0x56f634['data']['formatGroupId']!=_0x5c0502['formatGroupId'])continue;if(!bn(_0x56f634,_0x2dff5c))continue;const _0x211299=_0x56f634['getFirstRange']();if(_0x56f634['subType']==_0x31f022){if(_0x211299['containsRange'](_0x6524ab,!0x0))return null;_0x338452=_0x338452['isBefore'](_0x211299['start'])?_0x338452:_0x211299['start'],_0x6175b4=_0x6175b4['isAfter'](_0x211299['end'])?_0x6175b4:_0x211299['end'],_0x1e3635?_0x211299['start']['isBefore'](_0x1e3635['getFirstRange']()['start'])?(_0x1e3635['removeMarkers'](),_0x1e3635=_0x56f634):_0x56f634['removeMarkers']():_0x1e3635=_0x56f634;}else{const _0x4708ac=_0x6524ab['getIntersection'](_0x211299);this['_cutOutSuggestionMarker'](_0x56f634,_0x4708ac);}}const _0x7ab452=this['editor']['plugins']['get']('Users')['me'],_0x387ce9=_0xc08621(),_0x30c5b0=_0x7ab452['id'];if(_0x1e3635)return this['_setSuggestionRange'](_0x1e3635,this['_model']['createRange'](_0x338452,_0x6175b4)),_0x1e3635;{const _0x34f8d6=this['_setSuggestionData']({'id':_0x387ce9,'type':'formatBlock:'+_0x31f022,'data':_0x5c0502,'createdAt':new Date(),'authorId':_0x30c5b0,'attributes':_0x2dff5c});return this['_addSuggestionMarker']('formatBlock:'+_0x31f022,_0x387ce9,_0x30c5b0,this['_model']['createRange'](_0x338452,_0x6175b4)),_0x34f8d6;}}markMultiRangeBlockFormat(_0x1dd688,_0x272d66,_0x22d211=[],_0x5a38ba=null,_0x5f2dc7={}){_0x272d66['formatGroupId']||(_0x272d66['formatGroupId']=_0x272d66['commandName']);const _0x2bcecf=_0x1dd688[0x0];_0x272d66['multipleBlocks']=_0x2bcecf['is']('range'),_0x5a38ba=_0x5a38ba||mn(_0x272d66);const _0x13d356=_0x22d211['map'](_0x37f7b0=>Ln(_0x37f7b0,this['_model'])),_0x2f7202=_0x2bcecf['is']('range')?_0x1dd688:_0x1dd688['map'](_0x44b964=>Ln(_0x44b964,this['_model']));if(this['_trackingSessionId']&&(_0x5f2dc7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2310da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a38ba,'accept');return this['forceDefaultExecution'](()=>_0x2310da(_0x2f7202,_0x272d66,_0x5f2dc7)),null;}_0x13d356['push'](..._0x2f7202);let _0x185aef=!0x0;for(const _0x3174b4 of _0x13d356)if(!this['_rangeIsInLocalUserInsertion'](_0x3174b4)){_0x185aef=!0x1;break;}if(_0x185aef&&'always'!==this['_trackFormatChanges']){const _0x1d14bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a38ba,'accept');return this['forceDefaultExecution'](()=>_0x1d14bf(_0x2f7202,_0x272d66,_0x5f2dc7)),null;}const _0x3fd6c7=this['editor']['plugins']['get']('Users')['me'];for(const _0xcf7e89 of this['getSuggestions']()){const _0x531100=_0xcf7e89['data'];if(_0xcf7e89['author']['id']!=_0x3fd6c7['id'])continue;if('formatBlock'!=_0xcf7e89['type']||_0x531100['formatGroupId']!=_0x272d66['formatGroupId'])continue;if(!bn(_0xcf7e89,_0x5f2dc7))continue;const _0xec9acc=_0xcf7e89['subType']==_0x5a38ba;for(let _0xfdfd17=0x0;_0xfdfd17<_0x2f7202['length'];_0xfdfd17++){const _0x52378f=_0x2f7202[_0xfdfd17];for(const _0x209d26 of _0xcf7e89['getMarkers']()){const _0x66e9dd=_0x209d26['getRange']();if(_0x52378f['isEqual'](_0x66e9dd)){_0xec9acc?(_0x2f7202['splice'](_0xfdfd17,0x1),_0xfdfd17--):_0xcf7e89['removeMarker'](_0x209d26['name']);break;}}}}if(0x0==_0x2f7202['length'])return null;const _0x1fa084=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a38ba,'join');for(const _0x4df4b8 of this['getSuggestions']()){const _0x53b323=_0x4df4b8['data'];if(_0x4df4b8['author']['id']==_0x3fd6c7['id']&&('formatBlock'==_0x4df4b8['type']&&_0x53b323['formatGroupId']==_0x272d66['formatGroupId']&&_0x4df4b8['subType']==_0x5a38ba&&bn(_0x4df4b8,_0x5f2dc7)&&(_0x1fa084(_0x4df4b8['getRanges'](),_0x2f7202)||_0x1fa084(_0x2f7202,_0x4df4b8['getRanges']())))){for(const _0x406273 of _0x2f7202)_0x4df4b8['addRange'](_0x406273);return _0x4df4b8;}}const _0x4ed9d9=_0xc08621(),_0x2f54ac=_0x3fd6c7['id'],_0x11a317='formatBlock:'+_0x5a38ba,_0x5d45dd=this['_setSuggestionData']({'id':_0x4ed9d9,'type':_0x11a317,'data':_0x272d66,'createdAt':new Date(),'authorId':_0x2f54ac,'attributes':_0x5f2dc7});for(const _0x3a145c of _0x2f7202)this['_addSuggestionMarker'](_0x11a317,_0x4ed9d9,_0x2f54ac,_0x3a145c,wt['getMultiRangeId']());return _0x5d45dd;}markDeletion(_0x121985,_0x261026=null,_0x5372c0={}){if(_0x121985['isCollapsed'])return null;const _0x1a54ad=this['editor']['plugins']['get']('Users')['me'],_0x4d7603=new ct(_0x121985['start'],_0x121985['end']);this['_trackingSessionId']&&(_0x5372c0['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x587289,meta:_0xdc041c}of this['_findSuggestions'](_0x4d7603,'insertion'))if(_0xdc041c['isOwn']&&!_0xdc041c['isNextTo']){if(_0x587289['isMultiRange']){const _0x4fb8d7=_0x587289['getRanges']()['filter'](_0x39d9bf=>'$graveyard'!=_0x39d9bf['root']['rootName']);if(_0x4fb8d7['every'](_0x1c8962=>_0x4d7603['containsRange'](_0x1c8962,!0x0))&&_0x587289['discard'](),_0x4fb8d7['some'](_0x28d0f2=>_0x28d0f2['containsRange'](_0x4d7603,!0x0))){const _0x415051=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x261026,'accept');return this['forceDefaultExecution'](()=>_0x415051([_0x4d7603],null,_0x5372c0)),null;}}else{const _0xa35aaa=_0x4d7603['getIntersection'](_0x587289['getFirstRange']());null!==_0xa35aaa&&_0x587289['_onDiscard']([_0xa35aaa],null,_0x5372c0);}}if(_0x4d7603['detach'](),_0x4d7603['isCollapsed']||'$graveyard'==_0x4d7603['root']['rootName'])return null;let _0x383815=null,_0x3d61e5=_0x4d7603['start'],_0x562857=_0x4d7603['end'];const _0x349753=this['_findSuggestions'](_0x4d7603,'deletion');for(const {suggestion:_0x3b0f49,meta:_0x4a6bd7}of _0x349753){const _0xb4a671=this['_model']['createRange'](_0x3d61e5,_0x562857);if(_0x4a6bd7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a6bd7['containsRangeInObject']&&!_0x4a6bd7['isInsideObject'])){if(_0x3b0f49['isMultiRange']){if(!bn(_0x3b0f49,_0x5372c0))continue;let _0x3c41e7=!0x0;for(const _0x49c2ea of _0x3b0f49['getRanges']()){if(_0x49c2ea['containsRange'](_0xb4a671,!0x0))return _0x3b0f49;_0xb4a671['containsRange'](_0x49c2ea)||(_0x3c41e7=!0x1);}_0x3c41e7&&_0x3b0f49['discard']();}else{const _0x33183b=_0x3b0f49['getFirstRange']();if(_0x33183b['containsRange'](_0xb4a671,!0x0))return _0x3b0f49;if(!bn(_0x3b0f49,_0x5372c0)){_0xb4a671['containsRange'](_0x33183b)?_0x3b0f49['removeMarkers']():_0x33183b['containsPosition'](_0x3d61e5)?_0x3d61e5=_0x33183b['end']:_0x33183b['containsPosition'](_0x562857)&&(_0x562857=_0x33183b['start']);continue;}_0x3d61e5=_0x3d61e5['isBefore'](_0x33183b['start'])?_0x3d61e5:_0x33183b['start'],_0x562857=_0x562857['isAfter'](_0x33183b['end'])?_0x562857:_0x33183b['end'],_0x5372c0=Object['assign']({},_0x3b0f49['attributes']),_0x383815?_0x33183b['start']['isBefore'](_0x383815['getFirstRange']()['start'])?(_0x383815['removeMarkers'](),_0x383815=_0x3b0f49):_0x3b0f49['removeMarkers']():_0x383815=_0x3b0f49;}}}if(_0x383815)return this['_setSuggestionRange'](_0x383815,this['_model']['createRange'](_0x3d61e5,_0x562857)),_0x383815;{const _0x4e119b=_0xc08621(),_0x4e6ee9=this['_model']['createRange'](_0x3d61e5,_0x562857),_0x20a371=_0x1a54ad['id'],_0x4ac37a=_0x261026?'deletion:'+_0x261026:'deletion',_0x3a0472=this['_setSuggestionData']({'id':_0x4e119b,'type':_0x4ac37a,'createdAt':new Date(),'authorId':_0x20a371,'attributes':_0x5372c0});return this['_addSuggestionMarker'](_0x4ac37a,_0x4e119b,_0x20a371,_0x4e6ee9),_0x3a0472;}}markMultiRangeDeletion(_0x372af3,_0x451975='multi',_0x1ddc1c={}){const _0x4f8945=this['editor']['plugins']['get']('Users')['me'],_0x575fe7=_0x372af3['map'](_0x2c7764=>new ct(_0x2c7764['start'],_0x2c7764['end'])),_0x37f612=new Set();this['_trackingSessionId']&&(_0x1ddc1c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4f6a4a,meta:_0x1a87f0}of this['_findSuggestions'](_0x575fe7,'insertion'))_0x1a87f0['isOwn']&&!_0x1a87f0['isNextTo']&&_0x37f612['add'](_0x4f6a4a);for(const _0x5e853e of _0x37f612)if(_0x5e853e['isMultiRange']){const _0x29c8c5=_0x5e853e['getRanges']();if(_0x5e853e['attributes']&&_0x5e853e['attributes']['skipNestingCheck']||_0x29c8c5['every'](_0x4e2769=>_0x575fe7['some'](_0x14e383=>_0x14e383['containsRange'](_0x4e2769,!0x0)))&&_0x5e853e['discard'](),_0x575fe7['every'](_0x4c9be7=>_0x29c8c5['some'](_0x5252cb=>_0x5252cb['containsRange'](_0x4c9be7,!0x0)))){const _0x516559=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x451975,'accept');return this['forceDefaultExecution'](()=>_0x516559(_0x372af3,null,_0x1ddc1c)),null;}}else{const _0xa795c3=_0x5e853e['getFirstRange']();if(_0x575fe7['some'](_0x23f571=>_0x23f571['containsRange'](_0xa795c3,!0x0))&&_0x5e853e['discard'](),_0x575fe7['every'](_0x5c56ba=>_0xa795c3['containsRange'](_0x5c56ba,!0x0))){const _0x1ef4c0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x451975,'accept');return this['forceDefaultExecution'](()=>_0x1ef4c0(_0x575fe7,null,_0x1ddc1c)),null;}}const _0x36f7fa=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x451975,'join');let _0x56b801=null;for(const _0x3057db of this['getSuggestions']())if(_0x3057db['author']['id']==_0x4f8945['id']&&_0x3057db['isInContent']&&'deletion'==_0x3057db['type']&&_0x3057db['subType']==_0x451975&&bn(_0x3057db,_0x1ddc1c)&&(_0x36f7fa(_0x3057db['getRanges'](),_0x575fe7)||_0x36f7fa(_0x575fe7,_0x3057db['getRanges']()))){if(_0x56b801){if(_0x3057db['commentThread']&&_0x3057db['commentThread']['length'])continue;for(const _0x31b53e of _0x3057db['getRanges']())_0x56b801['isIntersectingWithRange'](_0x31b53e)||_0x56b801['addRange'](_0x31b53e);_0x3057db['removeMarkers']();}else{_0x56b801=_0x3057db;for(const _0x2d04fd of _0x575fe7)_0x3057db['isIntersectingWithRange'](_0x2d04fd)||_0x3057db['addRange'](_0x2d04fd);}}if(_0x56b801)return _0x56b801;_0x37f612['clear']();for(const {suggestion:_0x4b1df4,meta:_0xc1859c}of this['_findSuggestions'](_0x575fe7,'deletion'))_0xc1859c['isOwn']&&(this['_mergeNestedSuggestions']||!_0xc1859c['containsRangeInObject']&&!_0xc1859c['isInsideObject'])&&bn(_0x4b1df4,_0x1ddc1c)&&_0x37f612['add'](_0x4b1df4);for(const _0x465ca5 of _0x37f612){const _0x12dd55=_0x465ca5['getRanges']();if((!_0x1ddc1c||!_0x1ddc1c['skipNestingCheck'])&&_0x575fe7['every'](_0x599558=>_0x12dd55['some'](_0x2d1670=>_0x2d1670['containsRange'](_0x599558,!0x0))))return _0x465ca5;_0x465ca5['attributes']&&_0x465ca5['attributes']['skipNestingCheck']||_0x12dd55['every'](_0x5bfa28=>_0x575fe7['some'](_0x2a61f9=>_0x2a61f9['containsRange'](_0x5bfa28,!0x0)))&&_0x465ca5['discard']();}const _0x135d9f=_0xc08621(),_0x2bd4fb=_0x4f8945['id'],_0x41477d='deletion:'+_0x451975,_0x5e1a0b=this['_setSuggestionData']({'id':_0x135d9f,'type':_0x41477d,'createdAt':new Date(),'authorId':_0x2bd4fb,'attributes':_0x1ddc1c});for(const _0xce26cc of _0x575fe7)_0xce26cc['detach'](),_0xce26cc['isCollapsed']||'$graveyard'==_0xce26cc['root']['rootName']||this['_addSuggestionMarker'](_0x41477d,_0x135d9f,_0x2bd4fb,_0xce26cc,wt['getMultiRangeId']());return _0x5e1a0b;}markAttributeChange(_0x565269,_0x23da82,_0x53b20e,_0x475415,_0x2aae3e){if(_0x565269['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2f3196=this['editor']['plugins']['get']('Users')['me']['id'],_0x18ff54=Array['from'](this['_suggestions']['values']())['filter'](_0x333262=>'attribute'==_0x333262['type']&&_0x333262['data']['key']==_0x23da82&&_0x333262['isIntersectingWithRange'](_0x565269));if(this['_trackingSessionId']&&(_0x2aae3e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3d857d=this['_findSuggestions'](_0x565269,'insertion')['filter'](({meta:_0x29b681})=>_0x29b681['isOwn']&&!_0x29b681['isInsideObject']&&!_0x29b681['isNextTo'])['map'](({suggestion:_0x42eeac})=>_0x42eeac);_0x18ff54['unshift'](..._0x3d857d);}const _0x362f7e=new Map([[_0x565269,_0x53b20e]]);for(const _0x2d39c7 of _0x18ff54){const _0x4c7494='attribute'==_0x2d39c7['type']?_0x2d39c7['data']['oldValue']:void 0x0,_0x356191=_0x2d39c7['getFirstRange'](),_0x490399=Array['from'](_0x362f7e['keys']())['find'](_0x250035=>_0x250035['isIntersecting'](_0x356191));if(!_0x490399)continue;const _0x511a06=_0x490399['getDifference'](_0x356191);this['_suggestionsConversion']['isBlockAttribute'](_0x23da82)&&'insertion'==_0x2d39c7['type']&&0x0!=_0x511a06['length']||(_0x362f7e['delete'](_0x490399),_0x511a06['forEach'](_0x316476=>{_0x362f7e['set'](_0x316476,_0x53b20e);}),'insertion'!=_0x2d39c7['type']&&_0x4c7494!=_0x475415&&_0x362f7e['set'](_0x490399['getIntersection'](_0x356191),_0x4c7494));}const _0x101f31=[];for(const [_0x3158c7,_0x17b8ed]of _0x362f7e){const _0x268d07=_0xc08621(),_0x53644c={'key':_0x23da82,'oldValue':_0x17b8ed,'newValue':_0x475415};_0x23da82['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':_0x23da82});const _0x51d2e1=('attribute:'+_0x23da82+'|'+mn({'newValue':_0x475415}))['substring'](0x0,0x3c),_0x5a3f4a=this['_setSuggestionData']({'id':_0x268d07,'type':_0x51d2e1,'data':_0x53644c,'createdAt':new Date(),'authorId':_0x2f3196,'attributes':_0x2aae3e});_0x101f31['push'](_0x5a3f4a),this['_addSuggestionMarker'](_0x51d2e1,_0x268d07,_0x2f3196,_0x3158c7);}return _0x101f31;}enableDefaultAttributesIntegration(_0x4fc136){this['enableCommand'](_0x4fc136,(_0x57a88a,..._0x3ab9a0)=>{this['recordAttributeChanges'](()=>{_0x57a88a(..._0x3ab9a0);});});}startTrackingSession(_0x109ade){return this['_trackingSessionId']=void 0x0!==_0x109ade?_0x109ade:_0xc08621(),this['_trackingSessionId'];}_getAttributeKey(_0x599862){return'attribute'==_0x599862['type']?kn(_0x599862['subType']):null;}_applyOperationsAsSuggestions(_0x319abc){if(0x0==_0x319abc['length'])return;const _0x30317e=this['editor'],_0x7b9150=[],_0x520df7=_0x326e64=>{const _0x1a0d25=_0x326e64['_aiSource'];return _0x1a0d25?{'@ai':{'type':_0x1a0d25}}:{};},_0x25be07=(_0x35e609,_0x3de121,_0x5308a0,_0x42f317)=>{const _0x48e19e=new Set(_0x42f317['flatMap'](_0x51ef59=>_0x51ef59['getMarkerNames']()));let _0x5f45b2=!0x1;for(let _0x408f70=_0x3de121;_0x408f70<_0x35e609['operations']['length'];_0x408f70++){const _0x1584e6=_0x35e609['operations'][_0x408f70];if('marker'==_0x1584e6['type']){if(!_0x48e19e['has'](_0x1584e6['name']))continue;_0x5f45b2=!0x0;}_0x1584e6['_aiSource']=_0x5308a0;}return _0x5f45b2;};_0x30317e['model']['change'](_0x522391=>{for(let _0x4eab2c=0x0;_0x4eab2c<_0x319abc['length'];_0x4eab2c++){const _0x5c9103=_0x319abc[_0x4eab2c],_0x433ab1=_0x5c9103['_aiSource'];if(_0x5c9103['baseVersion']=_0x30317e['model']['document']['version'],_0x5c9103['isDocumentOperation']=!0x0,tt(_0x5c9103))continue;if(cn(_0x5c9103)){const _0x1bdbb9=_0x2002be(_0x5c9103['newRange'],_0x30317e['model']);_0x7b9150['unshift']({'range':ct['fromRange'](_0x1bdbb9),'operation':_0x5c9103});continue;}const _0x4f0f0c=_0x522391['batch']['operations']['length']+0x1;let _0x52eadc=[];switch(_0x5c9103['type']){case'rename':{const _0x208bbc=_0x5c9103['oldName'],_0x3522dd=_0x5c9103['newName'];if(_0x208bbc==_0x3522dd)break;_0x522391['batch']['addOperation'](_0x5c9103),_0x30317e['model']['applyOperation'](_0x5c9103);const _0x3c5512='$elementName',_0x467f2d=_0x5c9103['position'],_0x9c8082=_0x30317e['model']['createRange'](_0x467f2d,_0x30317e['model']['createPositionAt'](_0x467f2d['nodeAfter'],'end'));_0x52eadc=this['markAttributeChange'](_0x9c8082,_0x3c5512,_0x208bbc,_0x3522dd,{..._0x520df7(_0x5c9103),'groupId':_0xc08621()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x360e4a=_0x5c9103['oldValue'],_0x2cea24=_0x5c9103['newValue'];if(_0x360e4a==_0x2cea24)break;_0x522391['batch']['addOperation'](_0x5c9103),_0x30317e['model']['applyOperation'](_0x5c9103);const _0x34d9a5=_0x5c9103['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x34d9a5))break;const _0x49e17b=_0x2002be(_0x5c9103['range'],_0x30317e['model']);_0x52eadc=this['markAttributeChange'](_0x49e17b,_0x34d9a5,_0x360e4a,_0x2cea24,{..._0x520df7(_0x5c9103),'groupId':_0xc08621()});break;}case'insert':{if(_0x522391['batch']['addOperation'](_0x5c9103),_0x30317e['model']['applyOperation'](_0x5c9103),_0x319abc[_0x4eab2c+0x1]&&'move'==_0x319abc[_0x4eab2c+0x1]['type'])break;const _0x6e126f=_0x5c9103['position'],_0x13878f=_0x5c9103['howMany'],_0x32512e=_0x2002be(_0x30317e['model']['createRange'](_0x6e126f,_0x6e126f['getShiftedBy'](_0x13878f)),_0x30317e['model']);_0x52eadc=ln(this['markInsertion'](_0x32512e,null,{..._0x520df7(_0x5c9103)}));break;}case'split':{_0x522391['batch']['addOperation'](_0x5c9103),_0x30317e['model']['applyOperation'](_0x5c9103);const _0x4636d2=_0x5c9103['splitPosition'],_0x26f5a1=_0x5c9103['moveTargetPosition'],_0x54b01c=_0x30317e['model']['createRange'](_0x4636d2,_0x26f5a1);_0x52eadc=ln(this['markInsertion'](_0x54b01c,null,{..._0x520df7(_0x5c9103)}));break;}case'move':case'remove':_0x522391['batch']['addOperation'](_0x5c9103),_0x30317e['model']['applyOperation'](_0x5c9103);}_0x433ab1&&_0x25be07(_0x522391['batch'],_0x4f0f0c,_0x433ab1,_0x52eadc)&&delete _0x5c9103['_aiSource'];}for(const {range:_0x6a760f,operation:_0x25fd39}of _0x7b9150){const _0x373bb9=_0x25fd39['_aiSource'],_0x1fa406=_0x520df7(_0x25fd39),_0x555338=_0x522391['batch']['operations']['length'];_0x6a760f['detach']();const _0xedc1ff=this['markDeletion'](_0x6a760f,null,{..._0x1fa406});_0x373bb9&&_0x25be07(_0x522391['batch'],_0x555338,_0x373bb9,ln(_0xedc1ff));}});}_setSuggestionRange(_0x5484e3,_0x1af82d){const _0x2fb61e=_0x5484e3['getFirstMarker']();this['_model']['change'](_0x46c1d0=>{_0x46c1d0['updateMarker'](_0x2fb61e,{'range':_0x1af82d});});}_addThreadToSuggestion(_0x452525){const _0x2d23db=_0x452525['id'],_0x32359b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2d23db)||this['_commentsRepository']['addCommentThread']({'channelId':_0x32359b,'threadId':_0x2d23db,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x947fbd=this['_commentsRepository']['getCommentThread'](_0x2d23db);_0x947fbd['unbind']('isRemovable'),_0x947fbd['isRemovable']=!0x1,_0x452525['commentThread']=_0x947fbd;}_checkSuggestionCorrectness(_0x3da075,_0x3b8043,_0x290630,_0x39a5db){if(_0x3da075['type']!=_0x3b8043||_0x3da075['subType']!=_0x290630||_0x3da075['creator']['id']!=_0x39a5db)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x53b517('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x16fbc4,_0x42d0df){const _0x791f86=_0x16fbc4['getFirstRange']();if(_0x42d0df['isEqual'](_0x791f86))_0x16fbc4['removeMarkers']();else{if(_0x791f86['containsRange'](_0x42d0df)){const _0x15d620=this['_model']['createPositionAt'](_0x42d0df['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16fbc4,this['_model']['createRange'](_0x791f86['start'],_0x15d620));const _0xa04d=_0xc08621(),_0x32297d=_0x16fbc4['creator']['id'],_0x50590c=_0x16fbc4['type']+':'+_0x16fbc4['subType'];this['_setSuggestionData']({'id':_0xa04d,'type':_0x50590c,'createdAt':new Date(),'authorId':_0x32297d,'data':_0x16fbc4['data'],'attributes':_0x16fbc4['attributes']});const _0x56bd74=this['_model']['createPositionAt'](_0x42d0df['end']['parent'],'after'),_0xe7878d=this['_model']['createRange'](_0x56bd74,_0x791f86['end']);this['_addSuggestionMarker'](_0x50590c,_0xa04d,_0x32297d,_0xe7878d);}else{if(_0x791f86['containsPosition'](_0x42d0df['start'])){const _0x354b02=this['_model']['createPositionAt'](_0x42d0df['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16fbc4,this['_model']['createRange'](_0x791f86['start'],_0x354b02));}else{const _0x328c8e=this['_model']['createPositionAt'](_0x42d0df['end']['parent'],'after');this['_setSuggestionRange'](_0x16fbc4,this['_model']['createRange'](_0x328c8e,_0x791f86['end']));}}}}_rangeIsInLocalUserInsertion(_0x4699bf){for(const {suggestion:_0x29b6b0,meta:_0x41b02b}of this['_findSuggestions'](_0x4699bf,'insertion')){if(!_0x41b02b['isOwn'])continue;const _0x2b29c6=_0x29b6b0['getRanges']();for(const _0x2d741e of _0x2b29c6)if(!_0x4699bf['getDifference'](_0x2d741e)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x109206){return this['editor']['plugins']['get']('Users')['getUser'](_0x109206);}_getExternalAuthor(_0x5839a1){const _0x1de3fd=this['editor']['plugins']['get']('Users'),_0x398b26=_0x324b07('external:'+_0x5839a1),_0x3f7926=_0x1de3fd['getUser'](_0x398b26);return _0x3f7926||_0x1de3fd['addUser']({'id':_0x398b26,'name':_0x5839a1});}_createSuggestion(_0x39d9aa,_0x960f61,_0x11c90a,_0x1374e0,_0x24e704,_0xd2fa94){const _0x544416=this['_getAuthorFromId'](_0x1374e0);if(!_0x544416)throw new _0x53b517('track-changes-user-not-found',this,{'authorId':_0x1374e0,'suggestionId':_0x11c90a});const _0x1d029c=this['_suggestionFactory']['buildSuggestion'](_0x39d9aa,_0x960f61,_0x11c90a,_0x544416,_0x24e704,_0x3de70d=>{this['_updateSuggestionData'](_0x11c90a,{'attributes':_0x3de70d});const _0x172a14=this['getSuggestion'](_0x11c90a);this['_joinWithAdjacentSuggestions'](new Set([_0x172a14])),this['_refreshSuggestionsChain'](new Set([_0x172a14]));},_0xd2fa94);return this['listenTo'](_0x1d029c,'accept',()=>{this['_updateSuggestionData'](_0x11c90a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1d029c,'discard',()=>{this['_updateSuggestionData'](_0x11c90a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x11c90a,_0x1d029c),this['_suggestionState']['set'](_0x1d029c,'notReady'),_0x1d029c;}_breakSuggestionMarker(_0x3cb470,_0x5c4eb0,_0x9c39a){const _0x4fef10=_0x3cb470['getFirstRange'](),_0x1832d8=_0x4fef10['start'],_0x3539e1=_0x4fef10['end'];this['_setSuggestionRange'](_0x3cb470,this['_model']['createRange'](_0x1832d8,_0x5c4eb0));const _0x299535=_0xc08621(),_0x396830=_0x3cb470['creator']['id'],_0x259094=_0x3cb470['type']+(_0x3cb470['subType']?':'+_0x3cb470['subType']:'');this['_setSuggestionData']({'id':_0x299535,'type':_0x259094,'createdAt':new Date(),'authorId':_0x396830,'originalSuggestionId':_0x3cb470['_originalSuggestionId']||_0x3cb470['id'],'attributes':_0x3cb470['attributes'],'data':_0x3cb470['data']});const _0x2c6fd3=this['_getAttributeKey'](_0x3cb470);('formatBlock'==_0x3cb470['type']||_0x2c6fd3&&this['_suggestionsConversion']['isBlockAttribute'](_0x2c6fd3))&&(_0x9c39a=this['_model']['createPositionBefore'](_0x9c39a['parent'])),this['_addSuggestionMarker'](_0x259094,_0x299535,_0x396830,this['_model']['createRange'](_0x9c39a,_0x3539e1));}_findSuggestions(_0x17e1b6,_0x33dccf=null){const _0x1c0dcd=[],_0x151411=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x17e1b6)||(_0x17e1b6=[_0x17e1b6]);for(const _0x5b9d17 of this['getSuggestions']()){if(!_0x5b9d17['isInContent'])continue;if(_0x33dccf&&_0x5b9d17['type']!=_0x33dccf)continue;let _0x2c17be=!0x1;for(const _0x3ff334 of _0x5b9d17['getRanges']()){for(const _0x29b7a7 of _0x17e1b6){const _0xc2c2e0=_0x29b7a7['start']['isEqual'](_0x3ff334['end'])||_0x29b7a7['end']['isEqual'](_0x3ff334['start']);if(_0xc2c2e0||_0x29b7a7['getIntersection'](_0x3ff334)){const _0x43cee7=_0x29b7a7['containsRange'](_0x3ff334)&&hn(this['_model']['schema'],_0x3ff334['start'],_0x29b7a7),_0x1c9d2e=_0x3ff334['containsRange'](_0x29b7a7)&&hn(this['_model']['schema'],_0x29b7a7['start'],_0x3ff334);_0x1c0dcd['push']({'suggestion':_0x5b9d17,'meta':{'isOwn':_0x151411==_0x5b9d17['author'],'isNextTo':_0xc2c2e0,'isInsideObject':_0x43cee7,'containsRangeInObject':_0x1c9d2e}}),_0x2c17be=!0x0;break;}}if(_0x2c17be)break;}}return _0x1c0dcd;}_addSuggestionMarker(_0x277a38,_0x592caf,_0x346903,_0x45cff2,_0x3c765d){this['_model']['change'](_0x201e2f=>{let _0x4bd4ce='suggestion:'+_0x277a38+':'+_0x592caf+':'+_0x346903;_0x3c765d&&(_0x4bd4ce=_0x4bd4ce+':'+_0x3c765d),_0x201e2f['addMarker'](_0x4bd4ce,{'range':_0x45cff2,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x147ecb){const _0x2ffd2a=_0x147ecb['previous'],_0x3e1e4d=_0x147ecb['next'];_0x147ecb['previous']=null,_0x147ecb['next']=null,null!=_0x2ffd2a&&_0x2ffd2a['next']==_0x147ecb&&(_0x2ffd2a['next']=_0x3e1e4d),null!=_0x3e1e4d&&_0x3e1e4d['previous']==_0x147ecb&&(_0x3e1e4d['previous']=_0x2ffd2a),'ready'==this['_suggestionState']['get'](_0x147ecb)&&(this['_suggestionState']['set'](_0x147ecb,'removed'),this['fire']('suggestionUnloaded',_0x147ecb,_0x2ffd2a,_0x3e1e4d));}_setSuggestionData(_0x694d78){const _0x1ed4b4=_0x694d78['id'],_0x6fedcc=this['addSuggestionData'](_0x694d78);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4630fc=this['editor']['plugins']['get']('PendingActions'),_0x165a09=_0x6fedcc['hasComments'],_0x5f40dd=_0x6fedcc['subType']?_0x6fedcc['type']+':'+_0x6fedcc['subType']:_0x6fedcc['type'],_0x5c8edf=this['editor']['locale'],_0x5b4fda=_0x4630fc['add'](Bt(_0x5c8edf,'PENDING_ACTION_SUGGESTION')),_0x4f1f40={'id':_0x1ed4b4,'type':_0x5f40dd,'hasComments':_0x165a09,'data':_0x694d78['data']||null,'originalSuggestionId':_0x694d78['originalSuggestionId']||null,'attributes':_0x6fedcc['attributes']};this['_adapter']['addSuggestion'](_0x4f1f40)['then'](_0x21ddce=>{_0x6fedcc['_saved']=!0x0,_0x4630fc['remove'](_0x5b4fda),_0x21ddce&&_0x21ddce['createdAt']&&(this['_suggestions']['get'](_0x1ed4b4)['createdAt']=_0x21ddce['createdAt']);})['catch'](_0xa5d232=>{throw _0x15e49f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x6fedcc['discard']();}),_0x6fedcc['stopListening'](),this['_suggestions']['delete'](_0x6fedcc['id']),this['_suggestionState']['delete'](_0x6fedcc),_0xa5d232;});}return _0x6fedcc;}_updateSuggestionData(_0x3a7151,_0x20d7c1){const _0x5e5fa0=this['editor']['plugins']['get']('PendingActions'),_0x407b10=this['getSuggestion'](_0x3a7151);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x407b10['_saved']){const _0x5dfa3f=_0x5e5fa0['add'](Bt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3a7151,_0x20d7c1)['then'](()=>{_0x5e5fa0['remove'](_0x5dfa3f);});}else _0x407b10['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3a7151,_0x20d7c1);});}}_getSuggestionData(_0x3947ce){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x53b517('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3947ce);}_handleNewSuggestionMarker(_0x24d592){const {id:_0x21e632,type:_0x2c9801,subType:_0x354c22,authorId:_0x46b88f}=it(_0x24d592),_0x141ca5=this['_suggestions']['get'](_0x21e632)||this['_createSuggestion'](_0x2c9801,_0x354c22,_0x21e632,_0x46b88f,{});switch(this['_checkSuggestionCorrectness'](_0x141ca5,_0x2c9801,_0x354c22,_0x46b88f),this['_suggestionState']['get'](_0x141ca5)){case'notReady':this['_getSuggestionData'](_0x21e632)['then'](_0x32c941=>{let _0x1adef9=Promise['resolve']();_0x32c941['hasComments']&&(_0x1adef9=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x21e632})),_0x1adef9['then'](()=>{this['addSuggestionData'](_0x32c941)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x141ca5,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x21e632,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x141ca5,'ready'),this['fire']('suggestionLoaded',_0x141ca5);break;case'ready':this['fire']('suggestionChanged',_0x141ca5);}return _0x141ca5['addMarkerName'](_0x24d592),_0x141ca5;}_refreshSuggestionsChain(_0x4620f7){const _0x2297e9=Array['from'](_0x4620f7),_0x4dec2f=_0x2297e9['filter'](_0x3417fc=>'attribute'==_0x3417fc['type']);this['_refreshAttributeSuggestionsChain'](_0x4dec2f);const _0x3e3c57=_0x2297e9['filter'](_0x14bf6e=>!_0x14bf6e['isMultiRange']&&'attribute'!=_0x14bf6e['type']),_0xdc717e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x29b4ce=>!_0x29b4ce['isMultiRange']&&'attribute'!=_0x29b4ce['type']),_0x43925f=_0xdc717e['filter'](_0x5ec648=>!_0x4620f7['has'](_0x5ec648)),_0x1ee907=new Map(_0xdc717e['map'](_0x47fe4a=>[_0x47fe4a,this['_suggestionFactory']['getSuggestionCallback'](_0x47fe4a['type'],_0x47fe4a['subType'],'chain')])),_0x5724a1=new Map(_0xdc717e['map'](_0x10ad84=>[_0x10ad84,_0x10ad84['getFirstRange']()])),_0x39a22f=new Set(),_0x4fb6b5=new Set();for(let _0x5819a9=0x0;_0x5819a9<_0x3e3c57['length'];_0x5819a9++)_0x18f710(_0x3e3c57[_0x5819a9],_0x3e3c57,_0x5819a9+0x1);for(let _0x59bcaf=0x0;_0x59bcaf<_0x3e3c57['length'];_0x59bcaf++)_0x18f710(_0x3e3c57[_0x59bcaf],_0x43925f,0x0);const _0x173905=new Set();for(let _0x212499=0x0;_0x212499<_0x3e3c57['length'];_0x212499++){const _0x378fc1=_0x3e3c57[_0x212499];!_0x4fb6b5['has'](_0x378fc1)&&_0x378fc1['previous']&&(_0x173905['add'](_0x378fc1['previous']),_0x378fc1['previous']['next']===_0x378fc1&&(_0x378fc1['previous']['next']=null),_0x378fc1['previous']=null),!_0x39a22f['has'](_0x378fc1)&&_0x378fc1['next']&&(_0x173905['add'](_0x378fc1['next']),_0x378fc1['next']['previous']===_0x378fc1&&(_0x378fc1['next']['previous']=null),_0x378fc1['next']=null);}function _0x18f710(_0x157c54,_0x4ca5fa,_0x1480f7){for(let _0x420611=_0x1480f7;_0x420611<_0x4ca5fa['length'];_0x420611++){const _0xb02c60=_0x390c5e(_0x157c54,_0x4ca5fa[_0x420611]);_0xb02c60&&(_0xb02c60[0x0]['next']=_0xb02c60[0x1],_0xb02c60[0x1]['previous']=_0xb02c60[0x0],_0x39a22f['add'](_0xb02c60[0x0]),_0x4fb6b5['add'](_0xb02c60[0x1]));}}function _0x390c5e(_0x57f141,_0x2ad917){if(_0x57f141['author']['id']!==_0x2ad917['author']['id'])return null;const _0x3d7f2e=_0x1ee907['get'](_0x57f141)(_0x57f141,_0x2ad917,_0x5724a1['get'](_0x57f141),_0x5724a1['get'](_0x2ad917));return _0x3d7f2e&&_0x1ee907['get'](_0x2ad917)(_0x57f141,_0x2ad917,_0x5724a1['get'](_0x57f141),_0x5724a1['get'](_0x2ad917))?_0x3d7f2e[0x1]['commentThread']&&_0x3d7f2e[0x1]['commentThread']['length']?null:_0x3d7f2e:null;}_0x173905['size']&&this['_refreshSuggestionsChain'](_0x173905);}_refreshAttributeSuggestionsChain(_0x46ae1d){if(0x0==_0x46ae1d['length'])return;const _0x1af923=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa294c6=>'attribute'==_0xa294c6['type']&&_0xa294c6['_isDataLoaded']),_0x22b7ea=[],_0x4515ce=new Map();for(const _0x36a7b0 of _0x1af923){const _0x5554c7=_0x324b07(_0x36a7b0['attributes']);_0x4515ce['has'](_0x5554c7)||(_0x4515ce['set'](_0x5554c7,_0x22b7ea['length']),_0x22b7ea['push']([])),_0x22b7ea[_0x4515ce['get'](_0x5554c7)]['push'](_0x36a7b0);}!(function(){_0x22b7ea['sort']((_0x2c6589,_0x5c825f)=>{const _0x237f88=_0x2c6589[0x0]['createdAt'],_0x3ae0b9=_0x5c825f[0x0]['createdAt'];return _0x237f88==_0x3ae0b9?_0x2c6589[0x0]['attributes']['groupId']<_0x5c825f[0x0]['attributes']['groupId']?-0x1:0x1:_0x237f88<_0x3ae0b9?-0x1:0x1;});for(const _0x359704 of _0x22b7ea)_0x359704['sort']((_0x26b9c6,_0x1b1f8a)=>_0x26b9c6['id']<_0x1b1f8a['id']?-0x1:0x1);}());for(let _0x82034f=0x0;_0x82034f<_0x22b7ea['length'];_0x82034f++){if(0x0==_0x22b7ea[_0x82034f]['length'])continue;const _0x31d4d7=[];for(let _0x1b0a13=_0x82034f+0x1;_0x1b0a13<_0x22b7ea['length'];_0x1b0a13++)0x0!=_0x22b7ea[_0x1b0a13]['length']&&_0x2dc11c(_0x22b7ea[_0x82034f],_0x22b7ea[_0x1b0a13])&&_0x31d4d7['push'](_0x1b0a13);for(const _0x3707b1 of _0x31d4d7)_0x22b7ea[_0x82034f]=_0x22b7ea[_0x82034f]['concat'](_0x22b7ea[_0x3707b1]),_0x22b7ea[_0x3707b1]=[];}for(const _0x2ca6df of _0x22b7ea)for(let _0x232a5e=0x0;_0x232a5e<_0x2ca6df['length'];_0x232a5e++){const _0x523cd3=_0x2ca6df[_0x232a5e+0x1]||null;_0x2ca6df[_0x232a5e]['next']!==_0x523cd3&&(_0x2ca6df[_0x232a5e]['next']=_0x523cd3);}for(const _0x578ee3 of _0x22b7ea)for(let _0x3fd25f=0x0;_0x3fd25f<_0x578ee3['length'];_0x3fd25f++){const _0x4fa104=_0x578ee3[_0x3fd25f-0x1]||null;_0x578ee3[_0x3fd25f]['previous']!==_0x4fa104&&(_0x578ee3[_0x3fd25f]['previous']=_0x4fa104);}function _0x2dc11c(_0x26d021,_0x1cf7b6){if(_0x26d021[0x0]['attributes']['groupId']!==_0x1cf7b6[0x0]['attributes']['groupId']&&_0x26d021[0x0]['author']!==_0x1cf7b6[0x0]['author'])return!0x1;if(!function(_0x5c95ea,_0x2b08e4){return!_0x5c95ea['hasComments']&&!_0x2b08e4['hasComments']||(!_0x5c95ea['hasComments']||!_0x2b08e4['hasComments'])&&(!!(_0x5c95ea['hasComments']&&_0x2b08e4['createdAt']<_0x5c95ea['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x2b08e4['hasComments']&&_0x5c95ea['createdAt']<_0x2b08e4['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x26d021[0x0],_0x1cf7b6[0x0]))return!0x1;const _0x1a69dd=ht(_0x26d021[0x0]['attributes'],['groupId','trackingSessionId']),_0x1d84ec=ht(_0x1cf7b6[0x0]['attributes'],['groupId','trackingSessionId']);return!!dt(_0x1a69dd,_0x1d84ec)&&(_0x26d021[0x0]['attributes']['groupId']==_0x1cf7b6[0x0]['attributes']['groupId']||_0x26d021[0x0]['attributes']['trackingSessionId']===_0x1cf7b6[0x0]['attributes']['trackingSessionId']&&(!!_0x26d021['every'](_0x40c43b=>_0x1cf7b6['some'](_0x1e40e0=>_0x40c43b['getFirstRange']()['isEqual'](_0x1e40e0['getFirstRange']())))&&_0x1cf7b6['every'](_0xcc482d=>_0x26d021['some'](_0x57bcd8=>_0xcc482d['getFirstRange']()['isEqual'](_0x57bcd8['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0xdadd1c){const _0x4791dd=Array['from'](_0xdadd1c),_0x3dd27d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x9be98c=_0x3dd27d['filter'](_0x58e014=>!_0xdadd1c['has'](_0x58e014)),_0x192d3a=new Map(_0x4791dd['map'](_0x1ca03e=>[_0x1ca03e,this['_suggestionFactory']['getSuggestionCallback'](_0x1ca03e['type'],_0x1ca03e['subType'],'join')])),_0x1ba322=new Map(_0x3dd27d['map'](_0xa18c23=>[_0xa18c23,_0xa18c23['getRanges']()]));for(let _0x7c385d=0x0;_0x7c385d<_0x4791dd['length'];_0x7c385d++)if(_0x199a03(this,_0x4791dd[_0x7c385d],_0x4791dd,_0x7c385d+0x1))return!0x0;for(let _0x25cf6f=0x0;_0x25cf6f<_0x4791dd['length'];_0x25cf6f++)if(_0x199a03(this,_0x4791dd[_0x25cf6f],_0x9be98c,0x0))return!0x0;return!0x1;function _0x199a03(_0x5c629f,_0x3b000f,_0x9f23d8,_0x118cdc){for(let _0x3d502e=_0x118cdc;_0x3d502e<_0x9f23d8['length'];_0x3d502e++){const _0x1edc8e=_0x9f23d8[_0x3d502e];if(_0x1edc8e['type']!==_0x3b000f['type']||_0x1edc8e['author']['id']!==_0x3b000f['author']['id']||_0x1edc8e['subType']!==_0x3b000f['subType'])continue;if(!An(_0x3b000f,_0x1edc8e))continue;if('attribute'==_0x3b000f['type']&&_0x3b000f['data']['oldValue']!=_0x1edc8e['data']['oldValue'])continue;if('attribute'==_0x3b000f['type']&&_0x5c629f['_suggestionsConversion']['isBlockAttribute'](_0x3b000f['data']['key']))continue;if('formatBlock'==_0x3b000f['type']){const _0x1872c0=_0x5c629f['editor']['model'],_0x2f2fc6=_0x3b000f['getContainedElement']();if(_0x2f2fc6&&(_0x1872c0['schema']['isObject'](_0x2f2fc6)||_0x1872c0['schema']['isLimit'](_0x2f2fc6)))continue;}const _0x124473=_0x192d3a['get'](_0x3b000f),_0x59d609=_0x1ba322['get'](_0x3b000f),_0x22598d=_0x1ba322['get'](_0x1edc8e),_0x528e85=_0x3b000f['commentThread']&&_0x3b000f['commentThread']['length'],_0x58675e=_0x1edc8e['commentThread']&&_0x1edc8e['commentThread']['length'];if(!_0x528e85&&_0x124473(_0x22598d,_0x59d609))return _0x5c629f['_joinSuggestions'](_0x1edc8e,_0x3b000f),_0x1ba322['delete'](_0x3b000f),!0x0;if(!_0x58675e&&_0x124473(_0x59d609,_0x22598d))return _0x5c629f['_joinSuggestions'](_0x3b000f,_0x1edc8e),_0x1ba322['delete'](_0x1edc8e),!0x0;}return!0x1;}}_joinSuggestions(_0x29a41a,_0x350546){if(_0x29a41a['isMultiRange']){for(const _0x2c0d1a of _0x350546['getRanges']())_0x29a41a['addRange'](_0x2c0d1a);}else{const _0x27e3ed=_0x350546['getFirstRange']()['end'];this['_setSuggestionRange'](_0x29a41a,this['_model']['createRange'](_0x29a41a['getFirstRange']()['start'],_0x27e3ed));}_0x350546['removeMarkers']();}_getMarkerAnnouncementText(_0x5214a6,_0x5983a9,_0x25bdb0){const _0x3c3e76=_0x5214a6['startsWith']('format')||_0x5214a6['startsWith']('attribute')?'FORMATTING':_0x5214a6['toUpperCase']();return Bt(this['editor']['locale'],_0x5983a9+'_'+_0x3c3e76+'_SUGGESTION_ANNOUNCEMENT',_0x25bdb0);}_initAriaMarkerChangeAnnouncements(){const _0x30cd87=this['editor'];if(!_0x30cd87['ui'])return;const {ariaLiveAnnouncer:_0x866aae}=_0x30cd87['ui'];st(this['_model'],({left:_0x8d6e6,entered:_0x430dd8})=>{for(const _0x85eacd of _0x8d6e6){const {group:_0x56d9c7,type:_0x1bc607}=it(_0x85eacd['name']);if('suggestion'===_0x56d9c7){_0x866aae['announce'](this['_getMarkerAnnouncementText'](_0x1bc607,'LEAVE'));break;}}for(const _0x2a66cd of _0x430dd8){const {group:_0x4b81f9,type:_0x1785b8}=it(_0x2a66cd['name']);if('suggestion'===_0x4b81f9){_0x866aae['announce'](this['_getMarkerAnnouncementText'](_0x1785b8,'ENTER',_0x1ab253(_0x2654de)));break;}}});}_processAttributeChanges(_0x3df07d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5674a0=this['editor'],_0x5efec5=_0x5674a0['model']['document']['differ']['getChanges']();if(0x0==_0x5efec5['length'])return!0x1;const _0xf210e3=[],_0x24a3a2=_0x5efec5['filter'](_0x453d62=>'attribute'==_0x453d62['type']),_0x327343=_0x5efec5['filter'](_0x144d3c=>'insert'==_0x144d3c['type']&&'$text'!=_0x144d3c['name']),_0x19a6bf=_0x5efec5['filter'](_0x12c73f=>'remove'==_0x12c73f['type']&&'$text'!=_0x12c73f['name']);for(const _0x3419a1 of _0x24a3a2)_0xf210e3['push']({'key':_0x3419a1['attributeKey'],'newValue':_0x3419a1['attributeNewValue'],'oldValue':_0x3419a1['attributeOldValue'],'range':pn(_0x3419a1['range'],_0x5674a0['model'])});for(const _0x4305fa of _0x327343){const _0x305992=_0x19a6bf['find'](_0x218a76=>_0x218a76['position']['isEqual'](_0x4305fa['position']));_0x305992&&_0xf210e3['push']({'key':an,'newValue':_0x4305fa['name'],'oldValue':_0x305992['name'],'range':_0x5674a0['model']['createRangeOn'](_0x4305fa['position']['nodeAfter'])});}return 0x0!=_0xf210e3['length']&&this['_reduceExistingSuggestions'](_0x3df07d,_0xf210e3);}_processAttributeSuggestions(_0x142388){let _0x477e66=!0x1;const _0x13679c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1f1f23=>_0x1f1f23['data']['newRange']&&_0x1f1f23['name']['startsWith']('suggestion:attribute:'));for(const _0x1c2dc5 of _0x13679c){const {subType:_0x2833c8,id:_0x1390af}=it(_0x1c2dc5['name']),_0x2601a3=_0x2833c8['split']('|')[0x0];for(const _0xbfda99 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xbfda99['id']!=_0x1390af&&'attribute'==_0xbfda99['type']&&_0xbfda99['data']&&_0xbfda99['data']['key']==_0x2601a3&&_0xbfda99['getFirstRange']()['isIntersecting'](_0x1c2dc5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xbfda99,_0x1c2dc5['data']['newRange'],_0x142388),_0x477e66=!0x0);}return _0x477e66;}recordAttributeChanges(_0x27af5f){this['_recordAttributeSuggestions']=!0x0,_0x27af5f();}_reduceExistingSuggestions(_0x2003cb,_0x17f420){if(0x0==_0x17f420['length'])return!0x1;let _0x49789a=!0x1;for(const _0x22609e of _0x17f420){const _0x8d4b63=this['_findSuggestions'](_0x22609e['range'],'attribute')['filter'](_0x50dbed=>!_0x50dbed['meta']['isNextTo'])['map'](_0xcf1011=>_0xcf1011['suggestion']),_0xa8be44=_0x324b07({'newValue':_0x22609e['newValue']});_0x8d4b63['filter'](_0x50d46e=>{const [_0x38fa8c,_0x2c060e]=_0x50d46e['subType']['split']('|');return _0x38fa8c==_0x22609e['key']&&_0x2c060e!=_0xa8be44;})['forEach'](_0x42e6e8=>{this['_reduceSuggestionAttributeRange'](_0x42e6e8,_0x22609e['range'],_0x2003cb),_0x49789a=!0x0;});}return _0x49789a;}_reduceSuggestionAttributeRange(_0x32454a,_0x4e9d3a,_0x76f69d){const _0x976b81=_0x32454a['getFirstRange']()['getDifference'](_0x4e9d3a);0x0!==_0x976b81['length']?0x1!==_0x976b81['length']?this['_breakSuggestionMarker'](_0x32454a,_0x4e9d3a['start'],_0x4e9d3a['end']):this['_setSuggestionRange'](_0x32454a,_0x976b81[0x0]):_0x76f69d['removeMarker'](_0x32454a['getFirstMarker']());}},dn=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x1d5615){this['_editor']=_0x1d5615,this['_model']=_0x1d5615['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x185f27,_0x463e87,_0x10015f,_0x3a6735,_0x2f2a87,_0x166d4c,_0x50cc99){return new wt(this['_model'],{'type':_0x185f27,'subType':_0x463e87,'id':_0x10015f,'originalSuggestionId':_0x50cc99,'author':_0x3a6735,'creator':_0x3a6735,'attributes':_0x2f2a87,'onAttributesChange':_0x166d4c,'onAccept':(..._0x5f4e8f)=>this['getSuggestionCallback'](_0x185f27,_0x463e87,'accept')(..._0x5f4e8f),'onDiscard':(..._0x5f1024)=>this['getSuggestionCallback'](_0x185f27,_0x463e87,'discard')(..._0x5f1024)});}registerCustomCallback(_0x39d0ec,_0x577fd7,_0x458c3a,_0x3ea4bf){const _0x301839=_0x39d0ec+':'+_0x577fd7+':'+_0x458c3a;this['_customCallbacks']['set'](_0x301839,_0x3ea4bf);}getSuggestionCallback(_0x27d822,_0x185b08,_0x1e2d15){const _0xe6df4=_0x27d822+':'+_0x185b08+':'+_0x1e2d15;return this['_customCallbacks']['get'](_0xe6df4)||this['_defaultCallbacks']['get'](_0x27d822+':'+_0x1e2d15);}_registerDefaultCallbacks(){const _0x23bd47=()=>!0x1,_0x1835d2=_0x4785a8=>{_0x4785a8['sort']((_0x3a4472,_0x57ba09)=>_0x3a4472['start']['isBefore'](_0x57ba09['start'])?0x1:-0x1),this['_model']['change'](_0x5c1c41=>{for(const _0x45e5ae of _0x4785a8){let _0x484722;_0x484722=_0x45e5ae['end']['isAtEnd']&&_0x45e5ae['end']['parent']==_0x45e5ae['start']['nodeAfter']?_0x5c1c41['createSelection'](_0x45e5ae['start']['nodeAfter'],'on'):_0x5c1c41['createSelection'](_0x45e5ae),this['_model']['deleteContent'](_0x484722,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x29e17f=(_0x52b289,_0x103995)=>{_0x103995&&this['_model']['change'](_0x3485f0=>{const {commandName:_0x3e8a30,commandParams:_0x2d3161=[]}=_0x103995,_0x4a7298=_0x52b289['map'](_0xd7cb7c=>(gn(_0xd7cb7c)&&(_0xd7cb7c=this['_model']['createRange'](_0xd7cb7c['end'])),_0xd7cb7c))['filter'](_0x55fc73=>'$graveyard'!==_0x55fc73['root']['rootName']);if(_0x4a7298['length']<0x1)return;const _0x40306f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x26890e=>ct['fromRange'](_0x26890e));_0x3485f0['setSelection'](_0x4a7298);for(const _0x41ba9b of this['_editor']['commands']['commands']())_0x41ba9b['refresh']();_0x2d3161['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3e8a30,..._0x2d3161);const _0xb8bd23=_0x40306f['filter'](_0x559ddf=>'$graveyard'!=_0x559ddf['root']['rootName']);_0xb8bd23['length']>0x0&&_0x3485f0['setSelection'](_0xb8bd23);for(const _0x30012c of _0x40306f)_0x30012c['detach']();});},_0x230c1d=(_0x2c1526,_0x209f1a)=>0x1==_0x2c1526['length']&&0x1==_0x209f1a['length']&&_0x2c1526[0x0]['end']['isEqual'](_0x209f1a[0x0]['start']),_0xf56de2=(_0x47cebc,_0x1d322d,_0x5683e0,_0x13581e)=>In(_0x47cebc,_0x1d322d,_0x5683e0,_0x13581e)?[_0x47cebc,_0x1d322d]:In(_0x1d322d,_0x47cebc,_0x13581e,_0x5683e0)?[_0x1d322d,_0x47cebc]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x23bd47),this['_defaultCallbacks']['set']('insertion:discard',_0x1835d2),this['_defaultCallbacks']['set']('insertion:join',_0x230c1d),this['_defaultCallbacks']['set']('insertion:chain',_0xf56de2),this['_defaultCallbacks']['set']('deletion:accept',_0x1835d2),this['_defaultCallbacks']['set']('deletion:discard',_0x23bd47),this['_defaultCallbacks']['set']('deletion:join',_0x230c1d),this['_defaultCallbacks']['set']('deletion:chain',_0xf56de2),this['_defaultCallbacks']['set']('formatInline:accept',_0x29e17f),this['_defaultCallbacks']['set']('formatInline:discard',_0x23bd47),this['_defaultCallbacks']['set']('formatInline:join',_0x230c1d),this['_defaultCallbacks']['set']('formatInline:chain',_0x23bd47),this['_defaultCallbacks']['set']('formatBlock:accept',_0x29e17f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x23bd47),this['_defaultCallbacks']['set']('formatBlock:join',_0x230c1d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x23bd47),this['_defaultCallbacks']['set']('attribute:accept',_0x23bd47),this['_defaultCallbacks']['set']('attribute:discard',(_0x49df58,_0x591f18)=>{if(!_0x591f18)return;const _0x4dbea9=this['_editor']['plugins']['get'](_0x80da0c);this['_model']['change'](_0x46380d=>{if('$elementName'==_0x591f18['key'])for(const _0x16f4f3 of _0x49df58){const _0x217f3a=_0x16f4f3['start']['nodeAfter'],_0x589ac1=_0x591f18['oldValue'];_0x46380d['rename'](_0x217f3a,_0x589ac1);}else{if(_0x4dbea9['isBlockAttribute'](_0x591f18['key'])){for(const _0x3b9d27 of _0x49df58)void 0x0!==_0x591f18['oldValue']?_0x46380d['setAttribute'](_0x591f18['key'],_0x591f18['oldValue'],_0x3b9d27['start']['nodeAfter']):_0x46380d['removeAttribute'](_0x591f18['key'],_0x3b9d27['start']['nodeAfter']);}else{for(const _0x4fcac0 of _0x49df58)_0x591f18['oldValue']?_0x46380d['setAttribute'](_0x591f18['key'],_0x591f18['oldValue'],_0x4fcac0):_0x46380d['removeAttribute'](_0x591f18['key'],_0x4fcac0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x230c1d);}};function hn(_0x254582,_0xa52171,_0x32ddfb){for(const _0x250c38 of _0xa52171['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x250c38['root']==_0x250c38)return!0x1;if(!_0x32ddfb['containsItem'](_0x250c38))return!0x1;if(_0x254582['isObject'](_0x250c38)||_0x254582['isLimit'](_0x250c38))return!0x0;}return!0x1;}function gn(_0x219372){return _0x219372['end']['parent']==_0x219372['start']['nodeAfter']&&_0x219372['end']['isAtStart'];}function fn(_0x42cef1,_0x1bdd2a,_0x2f5e54,_0x56f1d4){const _0x48133e=_0x3b4f15=>!_0x3b4f15['item']['is']('$textProxy')&&!_0x56f1d4['isObject'](_0x3b4f15['item']),_0x4d7412=_0x42cef1['start']['getLastMatchingPosition'](_0x48133e),_0x36c748=_0x42cef1['end']['getLastMatchingPosition'](_0x48133e,{'direction':'backward'});return(!_0x42cef1['start']['isEqual'](_0x4d7412)||!_0x42cef1['end']['isEqual'](_0x36c748))&&(_0x4d7412['isBefore'](_0x36c748)?_0x2f5e54['updateMarker'](_0x1bdd2a,{'range':_0x2f5e54['createRange'](_0x4d7412,_0x36c748)}):_0x2f5e54['removeMarker'](_0x1bdd2a),!0x0);}function mn(_0x565036){return _0x324b07(_0x565036);}function En(_0x2bd18a){const _0x105c83=_0x2bd18a['start']['nodeAfter'];return _0x105c83&&_0x105c83['is']('element');}function Tn(_0x25b498){return gn(_0x25b498)||function(_0x3bbf98){return _0x3bbf98['start']['parent']==_0x3bbf98['end']['nodeBefore']&&_0x3bbf98['start']['isAtEnd'];}(_0x25b498);}function _n(_0x28f5df,_0x169f3e){try{const _0x50ba42=_0x28f5df['getRange']();for(const _0x2ef87f of _0x169f3e)if(_0x28f5df!==_0x2ef87f&&_0x50ba42&&_0x50ba42['isIntersecting'](_0x2ef87f['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function pn(_0x3b7b02,_0x56d92a){return null==_0x3b7b02['end']['nodeBefore']&&_0x3b7b02['end']['parent']==_0x3b7b02['start']['nodeAfter']?Ln(_0x3b7b02['start']['nodeAfter'],_0x56d92a):_0x3b7b02;}function Ln(_0x435f73,_0x49dcd5){const _0x327d70=_0x49dcd5['schema']['isObject'](_0x435f73)||_0x49dcd5['schema']['isSelectable'](_0x435f73);return _0x49dcd5['createRange'](_0x49dcd5['createPositionAt'](_0x435f73,'before'),_0x327d70?_0x49dcd5['createPositionAfter'](_0x435f73):_0x49dcd5['createPositionAt'](_0x435f73,'end'));}function In(_0x26961d,_0x28db0e,_0x5370dc,_0x1f4a5c){return!!An(_0x26961d,_0x28db0e)&&_0x5370dc['end']['isEqual'](_0x1f4a5c['start']);}function An(_0x463386,_0x461cee){if(!_0x463386['_isDataLoaded']||!_0x461cee['_isDataLoaded'])return!0x1;const _0x1b2003=new Set(Object['keys'](_0x463386['attributes'])),_0x1598b6=new Set(Object['keys'](_0x461cee['attributes']));if(_0x1b2003['delete']('groupId'),_0x1598b6['delete']('groupId'),0x0==_0x1b2003['size']&&0x0==_0x1598b6['size'])return!0x0;if(_0x1b2003['size']!=_0x1598b6['size'])return!0x1;const _0x43c94c={..._0x463386['attributes']},_0x2852d7={..._0x461cee['attributes']};return delete _0x43c94c['groupId'],delete _0x2852d7['groupId'],JSON['stringify'](_0x43c94c)==JSON['stringify'](_0x2852d7);}function bn(_0x101aaa,_0x44575d){const _0x4ba2bf=Cn(_0x101aaa['attributes']),_0x3182dd=Cn(_0x44575d);if(!_0x101aaa['_isDataLoaded'])return!0x1;if(!dt(_0x4ba2bf['@ai'],_0x3182dd['@ai']))return!0x1;for(const _0x37dbe8 of Object['keys'](_0x3182dd))if(!dt(_0x4ba2bf[_0x37dbe8],_0x3182dd[_0x37dbe8]))return!0x1;return!0x0;}function Cn(_0x472452){const _0x2de505=Object['assign']({},_0x472452);return delete _0x2de505['skipNestingCheck'],delete _0x2de505['tablePasteChainId'],_0x2de505;}function kn(_0x3f0fec){return _0x3f0fec['split']('|')[0x0];}const Rn=/* #__PURE__ -- @preserve */
26
- _0x3ee82e();var Nn=class extends Rn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x560554,_0x1103c2,_0x5399ce,_0x5c0f56){super(),this['model']=_0x1103c2,this['view']=_0x5399ce,this['commentThreadController']=_0x5c0f56,this['_editor']=_0x560554,this['_acceptCommand']=_0x560554['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x560554['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x20e7ce,_0x5ebbba)=>_0x20e7ce||_0x5ebbba),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4e30a5=>_0x4e30a5&&this['_editor']['model']['canEditAt'](_0x1103c2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4cd1f2=>_0x4cd1f2&&this['_editor']['model']['canEditAt'](_0x1103c2['getRanges']())),this['_pendingAction']=null,_0x5399ce['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5399ce,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5399ce,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5399ce,'change:isDirty',()=>{_0x5399ce['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 _0x16eec9=Bt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x16eec9);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},yn=class extends _0x31b427{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x6708d0,_0x347f66,_0x4d2b67,_0xb6af89){super(_0x6708d0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1adbb8(_0x6708d0,Bt(_0x6708d0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x347f66['authoredAt']),this['bind']('authoredAt')['to'](_0x347f66),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x347f66,'authoredAt',this,'descriptionParts',(_0x55d04c,_0x496de4,_0x154601)=>{const _0x1fd959=_0x154601['map'](_0x3aee78=>bt(_0x3aee78['content']))['join']('.\x20')+'.',_0x4d3e05=_0x347f66['aiSource']&&'author'===_0xb6af89['showAISource']?_0xb6af89['aiAuthor']['name']:_0x347f66['author']['name'],_0x56d4d6=Bt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x55d04c-0x1,_0x4d3e05,_0x496de4?_0xb6af89['formatDateTime'](_0x496de4):'',new DOMParser()['parseFromString'](_0x362c85(_0x1fd959),'text/html')['body']['textContent']]);return _0x347f66['aiSource']&&'pill'===_0xb6af89['showAISource']?_0x56d4d6+'\x20'+Bt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x56d4d6;}),this['focusables']=new _0x39df58(),this['focusTracker']=new _0x4a0fc0(),this['keystrokes']=new _0xf61f0d(),this['focusCycler']=new _0x3a6372({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2beecb=>_0x2beecb['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x347f66,this['_localUser']=_0x4d2b67,this['_config']=_0xb6af89,_0xb6af89['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),nt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x3efd2c}=this['_config'];this['commentsListView']=new _0x3efd2c(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',_0x2f7509=>_0x2f7509+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5d1d43,_0x4de9a8)=>_0x5d1d43||!!_0x4de9a8);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x136b37}=this['_config'],_0x431d8c=new _0x136b37(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x47b0e3=_0x431d8c['commentInputView'];return _0x431d8c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x47b0e3,'value',(_0x2c457d,_0x4fae81,_0x50baf8)=>!!_0x50baf8||_0x2c457d&&!_0x4fae81),_0x47b0e3['on']('submit',(_0x11d675,_0x12d488)=>{this['fire']('addComment',_0x12d488),_0x47b0e3['editor']['setData']('');}),_0x47b0e3['on']('cancel',()=>this['focus']()),_0x47b0e3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x431d8c;}},Sn=class extends yn{suggestionView;_descriptionElement;constructor(_0x2009ea,_0x196a1f,_0x202cec,_0x3e0616){super(_0x2009ea,_0x196a1f,_0x202cec,_0x3e0616),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xb5812c=>_0xb5812c&&_0xb5812c[0x0]?_0xb5812c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x534119,_0x4c583d)=>{let _0x4bfa4a='';for(const _0x46e072 of _0x534119)_0x4bfa4a+='<p>'+bt(_0x46e072['content'],_0x46e072['color'])+'</p>';return _0x4c583d?_0x4bfa4a:rt(_0x4bfa4a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3e0616['SuggestionView'](_0x2009ea,_0x196a1f,{'formatDateTime':_0x3e0616['formatDateTime'],'showAISource':_0x3e0616['showAISource'],'aiAuthor':_0x3e0616['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['acceptButton']['bind']('tooltip')['to'](this,'canAccept',_0x470baa=>!!_0x470baa||Bt(_0x2009ea,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['suggestionView']['discardButton']['bind']('tooltip')['to'](this,'canDiscard',_0x30d814=>!!_0x30d814||Bt(_0x2009ea,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}getTemplate(){const _0x164cdd=this['bindTemplate'],_0xb5a2d1=[this['suggestionView']];return this['commentsListView']&&_0xb5a2d1['push'](this['commentsListView']),this['commentThreadInputView']&&_0xb5a2d1['push'](this['commentThreadInputView']),_0xb5a2d1['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x164cdd['if']('isActive','ck-suggestion-wrapper--active'),_0x164cdd['to']('type',_0x51868d=>'ck-suggestion-'+_0x51868d),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x164cdd['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xb5a2d1};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},Mn=class extends _0x31b427{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x2022e8,_0x1137f2,_0x20078e){super(_0x2022e8),this['_model']=_0x1137f2,this['_config']=_0x20078e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1137f2),this['acceptButton']=this['_createButton'](Bt(_0x2022e8,'Accept\x20suggestion'),_0x462308,'ck-suggestion--accept\x20ck-button_small','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Bt(_0x2022e8,'Discard\x20suggestion'),_0x496249,'ck-suggestion--discard\x20ck-button_small','discardSuggestion','sw');const _0x3a4fba=!!_0x1137f2['aiSource']&&'author'===_0x20078e['showAISource'],_0x5a1dc1=_0x3a4fba?this['_createAIUser'](_0x20078e['aiAuthor']):_0x1137f2['author'],_0x16e3d1=_0x3a4fba&&!_0x20078e['aiAuthor']['avatar']?_0x4f0a95:void 0x0;this['userView']=new _0x27b4e2(_0x2022e8,_0x5a1dc1,this['getUserViewNotificationText'](),_0x16e3d1),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x39df58([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4a0fc0(),this['keystrokes']=new _0xf61f0d(),this['focusCycler']=new _0x3a6372({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5b0f76=>_0x5b0f76['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x19037c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x19037c['innerHTML']=_0x362c85(this['description']),this['on']('change:description',(_0x2e492b,_0x5850fc,_0x2a5ecb)=>{_0x19037c['innerHTML']=_0x362c85(_0x2a5ecb);}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x15d09f=this['bindTemplate'],_0xedcd6a=new _0x5de5f9();_0xedcd6a['content']=_0x1a5a99;const _0x2c5236=[{'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']}},_0xedcd6a,{'tag':'time','attributes':{'datetime':_0x15d09f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x15d09f['to']('authoredAt',_0x2c51b1=>this['_config']['formatDateTime'](_0x2c51b1))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x2c5236['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x463ac8=new _0x1da1de(this['locale']);_0x463ac8['set']({'icon':_0x502305,'label':Bt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Bt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'size':'small','class':'ck-pill_ai'}),_0x2c5236['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x463ac8]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x2c5236}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Bt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Bt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Bt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Bt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x1a67b8){return new _0x9913b9({'id':'ck-ai-author','name':_0x1a67b8['name'],'avatar':_0x1a67b8['avatar'],'color':new _0x2fb5b8(0x0)});}_createButton(_0x250b5a,_0x5072a7,_0x49b9f7,_0x297fbf,_0x2937b8){const _0xe2d45b=new _0x5bb055(this['locale']);return _0xe2d45b['set']({'label':_0x250b5a,'icon':_0x5072a7,'tooltip':!0x0,'tooltipPosition':_0x2937b8}),_0xe2d45b['extendTemplate']({'attributes':{'class':_0x49b9f7}}),_0xe2d45b['on']('execute',()=>{this['fire'](_0x297fbf,this['_model']['id']);}),_0xe2d45b;}_setupKeyboardNavigation(){const _0x5ef66f=this['element'];this['keystrokes']['listenTo'](_0x5ef66f);for(const _0x33548d of this['focusables'])this['focusTracker']['add'](_0x33548d['element']),this['keystrokes']['listenTo'](_0x33548d['element']);this['keystrokes']['set']('enter',(_0xe0764f,_0x2c4177)=>{_0x5ef66f===_0xe0764f['target']&&(this['focusCycler']['focusFirst'](),_0x2c4177());}),this['keystrokes']['set']('esc',(_0x3e7fcc,_0x27d6c8)=>{_0x5ef66f!==_0x3e7fcc['target']&&(this['focus'](),_0x27d6c8());});}},On=class extends _0xf0b898{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[un,_0x445bdf,_0x1d69dd,_0x43d964,_0x280652];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x194f3b){super(_0x194f3b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x533075=this['editor']['config'];_0x533075['define']('trackChanges.SuggestionThreadView',Sn),_0x533075['define']('trackChanges.SuggestionView',Mn),_0x533075['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x533075['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x4d745d,_0x4cbd48){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x43aeaa,_0x90957b]of this['_handleControllerBuffer']){const _0x55fb2e=this['_suggestionToController']['has'](_0x43aeaa);_0x55fb2e||_0x90957b?_0x55fb2e&&_0x90957b&&this['_destroyController'](_0x43aeaa):this['_initializeController'](_0x43aeaa);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x280652)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4d745d,_0x4cbd48);}init(){const _0x647016=this['editor'],_0x24f19c=_0x647016['plugins']['get'](un),_0x4d2dd2=_0x647016['plugins']['get'](_0x43d964),_0x51332b=_0x647016['plugins']['get'](_0x280652),_0x59a312=_0x647016['plugins']['get'](_0x1d69dd);this['_addUIComponentsToFactory'](),_0x51332b['addSourceCollector'](()=>{const _0x2eccc0=[];for(const [_0xe79334,_0x49a108]of Array['from'](this['_suggestionToController'])){const _0x432de2=_0xe79334['getAllAdjacentSuggestions'](),_0x2fd549=[];for(const _0x31b94b of _0x432de2){if(!_0x31b94b['isInContent'])continue;if(_0x31b94b['isMultiRange']){_0x2fd549['push'](..._0x31b94b['getRanges']());continue;}const _0x4e083c=_0x31b94b['getFirstRange']();if(_0x2fd549['length']>0x0){const _0x2011e6=_0x2fd549[0x0]['getJoined'](_0x4e083c);if(_0x2011e6){_0x2fd549[0x0]=_0x2011e6;continue;}}_0x2fd549['push'](_0x4e083c);}_0x2eccc0['push']([_0x49a108['view'],_0x2fd549]);}return _0x2eccc0;}),this['listenTo'](_0x24f19c,'suggestionLoaded',(_0x3878a1,_0x4b1aa8)=>{this['listenTo'](_0x4b1aa8,'change:previous',(_0x5e6220,_0x3ee3d6,_0x8e4311,_0xff9dfa)=>{_0x4b1aa8['isInContent']&&(null==_0x8e4311?(this['_updateController'](_0xff9dfa['head']),this['_handleSuggestionControllerDelayed'](_0x4b1aa8,!0x1)):(this['_updateController'](_0x8e4311['head']),null==_0xff9dfa&&this['_handleSuggestionControllerDelayed'](_0x4b1aa8,!0x0)));}),null!==_0x4b1aa8['previous']?this['_updateController'](_0x4b1aa8['head']):this['_handleSuggestionControllerDelayed'](_0x4b1aa8,!0x1);}),this['listenTo'](_0x24f19c,'suggestionUnloaded',(_0xb8b9ba,_0x24657b,_0x1a72dd)=>{this['stopListening'](_0x24657b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x24657b),this['_suggestionToController']['has'](_0x24657b)&&this['_destroyController'](_0x24657b),_0x1a72dd&&this['_updateController'](_0x1a72dd['head']);}),this['listenTo'](_0x24f19c,'suggestionChanged',(_0x239418,_0x11d577)=>{this['_updateController'](_0x11d577);}),this['listenTo'](_0x4d2dd2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x59a312,'addComment',(_0x5598bd,{threadId:_0x4499cf,isFromAdapter:_0x1510d2})=>{if(_0x1510d2||!_0x24f19c['hasSuggestion'](_0x4499cf))return;const _0x496478=_0x24f19c['getSuggestion'](_0x4499cf);this['_suggestionToController']['get'](_0x496478)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x52c9a8=[this['editor']];for(const _0x1fdb13 of _0x52c9a8){let _0x22c5ef;for(const _0x2059e3 in _0x1fdb13){const _0x32abd7=_0x2059e3,_0x286975=_0x1fdb13[_0x32abd7];if('trackChangesLicenseKeyValid'==_0x286975||'trackChangesLicenseKeyInvalid'==_0x286975||'trackChangesLicenseKeyExpired'==_0x286975||'trackChangesLicenseKeyDomainLimit'==_0x286975||'trackChangesLicenseKeyNotAllowed'==_0x286975||'trackChangesLicenseKeyEvaluationLimit'==_0x286975||'trackChangesLicenseKeyUsageLimit'==_0x286975){delete _0x1fdb13[_0x32abd7],_0x22c5ef=_0x286975,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x22c5ef&&_0x1fdb13['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x22c5ef&&_0x1fdb13['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x22c5ef&&_0x1fdb13['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x22c5ef&&_0x1fdb13['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x22c5ef&&_0x1fdb13['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x22c5ef&&_0x1fdb13['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x34a253){const _0x539eff=this['_suggestionToController']['get'](_0x34a253);return _0x539eff&&this['editor']['plugins']['get'](_0x43d964)['getByInnerView'](_0x539eff['view'])||null;}getSuggestionForAnnotation(_0x3d78d6){const _0xa2fe61=this['_viewToController']['get'](_0x3d78d6['innerView']);return _0xa2fe61?_0xa2fe61['model']:null;}_refreshActiveMarkers(){const _0x2a2c4f=this['editor']['plugins']['get'](_0x43d964),_0x4d05c2=this['editor']['plugins']['get'](un),_0x4e8f68=Array['from'](_0x2a2c4f['activeAnnotations'],_0x4ebc3e=>_0x4ebc3e['innerView'])['filter'](_0x1fd03f=>this['_viewToController']['has'](_0x1fd03f)),_0xc88477=[];for(const _0x2a754d of _0x4e8f68){const _0x330f0c=this['_viewToController']['get'](_0x2a754d)['model']['getAllAdjacentSuggestions']();_0xc88477['push'](..._0x330f0c['reduce']((_0x16ea6e,_0x1aadab)=>[..._0x16ea6e,..._0x1aadab['getMarkerNames']()],[]));}_0x4d05c2['activeMarkers']=_0xc88477;}_addUIComponentsToFactory(){const _0x256e1e=this['editor'],_0x79e8f1=_0x256e1e['locale'],_0x63709c=Bt(_0x79e8f1,'Track\x20changes'),_0x2d406b=new _0x3968f8([{'type':'switchbutton','model':new _0x227918({'withText':!0x0,'isToggleable':!0x0,'label':_0x63709c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x227918({'withText':!0x0,'label':Bt(_0x79e8f1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x227918({'withText':!0x0,'label':Bt(_0x79e8f1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x227918({'withText':!0x0,'label':Bt(_0x79e8f1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x227918({'withText':!0x0,'label':Bt(_0x79e8f1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x256e1e['plugins']['has']('TrackChangesPreview')&&_0x2d406b['addMany']([{'type':'separator'},{'type':'button','model':new _0x227918({'withText':!0x0,'label':Bt(_0x79e8f1,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1cf503 of _0x2d406b)if(wn(_0x1cf503)){const _0x5129c1=_0x256e1e['commands']['get'](_0x1cf503['model']['commandName']);_0x1cf503['model']['bind']('isOn','isEnabled')['to'](_0x5129c1,'value','isEnabled');}_0x256e1e['ui']['componentFactory']['add']('trackChanges',_0x2d82f8=>this['_createToolbarButton'](_0x2d82f8,_0x2d406b,_0x63709c)),_0x256e1e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2bda70=>this['_createMenuBarMenu'](_0x2bda70,_0x2d406b,_0x63709c));}_createToolbarButton(_0x1880df,_0x2b67b2,_0xaf72e3){const _0x2ff792=_0x179874(_0x1880df,_0x438c75),_0x3f672d=this['editor']['commands']['get']('trackChanges');_0x2ff792['buttonView']['set']({'tooltip':_0xaf72e3,'label':_0xaf72e3,'icon':_0x1a5a99}),_0x2ff792['buttonView']['bind']('isOn')['to'](_0x3f672d,'value'),_0x2ff792['buttonView']['on']('execute',()=>{_0x3f672d['execute'](),this['editor']['editing']['view']['focus']();}),_0x46f027(_0x2ff792,_0x2b67b2,{'role':'menu'});const _0x3f13bc=[];for(const _0x3f3ddf of _0x2b67b2)wn(_0x3f3ddf)&&_0x3f13bc['push'](this['editor']['commands']['get'](_0x3f3ddf['model']['commandName']));const _0x3ac19f=_0x2ff792['buttonView'];return _0x3ac19f['actionView']['unbind']('isEnabled'),_0x3ac19f['arrowView']['unbind']('isEnabled'),_0x3ac19f['actionView']['bind']('isEnabled')['to'](_0x3f672d,'isEnabled'),_0x3ac19f['arrowView']['bind']('isEnabled')['toMany'](_0x3f13bc,'isEnabled',(..._0x271ff1)=>_0x271ff1['some'](_0x985769=>_0x985769)),_0x2ff792['on']('execute',_0x4c6caa=>{this['editor']['execute'](_0x4c6caa['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2ff792;}_createMenuBarMenu(_0x1d3122,_0x1b1345,_0x2beae7){const _0x1d49f4=new _0x29a1f3(_0x1d3122),_0x5ae74e=this['editor']['commands']['get']('trackChanges');_0x1d49f4['buttonView']['set']({'label':_0x2beae7,'icon':_0x1a5a99});const _0x5f2740=new _0x378699(_0x1d3122);for(const _0x9bd558 of _0x1b1345){if('separator'==_0x9bd558['type']){_0x5f2740['items']['add'](new _0x28794d(_0x1d3122));continue;}const _0x3987b7=new _0x32dbbf(_0x1d3122,_0x1d49f4),_0x240dba=new _0x1ee833(_0x1d3122),_0x115e76=_0x9bd558['model'];_0x240dba['bind'](...Object['keys'](_0x115e76))['to'](_0x115e76),_0x240dba['delegate']('execute')['to'](_0x1d49f4),_0x240dba['on']('execute',()=>{this['editor']['execute'](_0x115e76['commandName']),this['editor']['editing']['view']['focus']();}),_0x3987b7['children']['add'](_0x240dba),_0x5f2740['items']['add'](_0x3987b7);}return _0x1d49f4['bind']('isEnabled')['to'](_0x5ae74e,'isEnabled'),_0x1d49f4['panelView']['children']['add'](_0x5f2740),_0x1d49f4;}_initializeController(_0x2e5a02){const _0x1e378d=this['editor'],_0x52bae4=_0x1e378d['config'],_0x248894=_0x1e378d['plugins']['get'](_0x43d964),_0x234af9=_0x1e378d['plugins']['get'](_0x1d69dd),_0x551905=_0x1e378d['plugins']['get'](_0x280652),_0x493fde=_0x1e378d['plugins']['get'](_0x445bdf)['me'],_0x3ed789=_0x52bae4['get']('trackChanges')['SuggestionThreadView'],_0x409248=_0x52bae4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2726f6,CommentThreadInputView:_0x59a4ae}=_0x1e378d['plugins']['get']('CommentsUI');let _0x30bf8c,_0x313b84,_0x3865ba;this['_annotationViews']['has'](_0x2e5a02['id'])?(_0x313b84=this['_annotationViews']['get'](_0x2e5a02['id']),_0x30bf8c=_0x313b84['mainView']):(_0x30bf8c=new _0x3ed789(_0x1e378d['locale'],_0x2e5a02,_0x493fde,{'disableComments':this['_disableComments'],'editorConfig':{..._0x52bae4['get']('comments.editorConfig'),'licenseKey':_0x52bae4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x52bae4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x52bae4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x52bae4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x9d87d0(_0x52bae4['get']('locale'),_0x1e378d['locale']),'CommentView':_0x52bae4['get']('comments')['CommentView'],'CommentsListView':_0x2726f6,'CommentThreadInputView':_0x59a4ae,'SuggestionView':_0x409248,'showAISource':_0x52bae4['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x52bae4['get']('trackChanges.aiAuthor'),'name':_0x52bae4['get']('trackChanges.aiAuthor')?.['name']||Bt(_0x1e378d['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x30bf8c['suggestionView']['acceptButton']['on']('execute',()=>{_0x1e378d['editing']['view']['focus']();}),_0x30bf8c['suggestionView']['discardButton']['on']('execute',()=>{_0x1e378d['editing']['view']['focus']();}),_0x313b84=_0x248894['createAnnotationView'](this['editor']['locale'],_0x30bf8c),_0x313b84['bind']('isDirty')['to'](_0x30bf8c,'isDirty'),_0x313b84['bind']('length')['to'](_0x30bf8c),_0x313b84['bind']('type')['to'](_0x30bf8c,'type',_0x12a167=>'suggestion-'+_0x12a167),_0x30bf8c['on']('escape',()=>{_0x3865ba['fire']('escape');}),this['_annotationViews']['set'](_0x2e5a02['id'],_0x313b84));const _0x5dfe44=_0x234af9['createCommentThreadController'](_0x2e5a02['commentThread'],_0x30bf8c),_0x4e2573=new Nn(_0x1e378d,_0x2e5a02,_0x30bf8c,_0x5dfe44),_0x5e1174=_0x2e5a02['getAllAdjacentSuggestions']()['filter'](_0x52172e=>_0x52172e['isInContent']);_0x30bf8c['descriptionParts']=_0x1e378d['plugins']['get'](un)['descriptionFactory']['getDescriptions'](_0x5e1174),this['_suggestionToController']['set'](_0x2e5a02,_0x4e2573),this['_viewToController']['set'](_0x30bf8c,_0x4e2573);const _0x29a6d5=()=>{const _0x3cf501=[],_0x4a333a=_0x2e5a02['getAllAdjacentSuggestions']()['filter'](_0x1751f8=>_0x1751f8['isInContent']);for(const _0xf338c8 of _0x4a333a)_0x3cf501['push'](..._0xf338c8['getMarkers']());return _0x43b5ca(_0x1e378d['editing'],_0x3cf501);};_0x3865ba=_0x248894['createAnnotation']({'view':_0x313b84,'target':_0x29a6d5,'type':()=>'suggestion-'+_0x4e2573['view']['type'],'isVisible':!!_0x29a6d5()}),_0x234af9['_bindAnnotationToEditors'](_0x30bf8c,_0x3865ba),_0x248894['add'](_0x3865ba),_0x551905['registerAnnotation'](_0x3865ba);}_destroyController(_0x34a336){const _0x55d7a7=this['editor']['plugins']['get'](_0x1d69dd),_0x9f9372=this['editor']['plugins']['get'](_0x43d964),_0x1d8557=this['_suggestionToController']['get'](_0x34a336),_0x444361=_0x1d8557['view'],_0x58fc6c=_0x9f9372['getByInnerView'](_0x444361);_0x55d7a7['_unbindEditors'](_0x444361),_0x58fc6c&&_0x9f9372['remove'](_0x58fc6c),this['_suggestionToController']['delete'](_0x34a336),this['_viewToController']['delete'](_0x444361),_0x1d8557['destroy']();}_updateController(_0x34076f){if(!_0x34076f['isInContent']||!this['_suggestionToController']['has'](_0x34076f))return;const _0x588d9e=this['editor']['plugins']['get'](un),_0x567d7f=this['_suggestionToController']['get'](_0x34076f),_0x11d3ca=_0x34076f['getAllAdjacentSuggestions']();_0x567d7f['view']['descriptionParts']=_0x588d9e['descriptionFactory']['getDescriptions'](_0x11d3ca);}destroy(){for(const _0x21c54b of this['_suggestionToController']['keys']())this['_destroyController'](_0x21c54b);for(const _0xd6fb76 of this['_annotationViews']['values']())_0xd6fb76['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function wn(_0x172fdd){return'model'in _0x172fdd;}var Bn=class extends _0xf0b898{static get requires(){return[un,On,_0x3f3d36];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0xc980f8){this['editor']['plugins']['get'](un)['adapter']=_0xc980f8;}get adapter(){return this['editor']['plugins']['get'](un)['adapter'];}addSuggestion(_0x18b5bd){return this['editor']['plugins']['get'](un)['addSuggestionData'](_0x18b5bd);}getSuggestions({skipNotAttached:_0x2d9cb6=!0x1,toJSON:_0x500279=!0x1}={}){return this['editor']['plugins']['get'](un)['getSuggestions']({'skipNotAttached':_0x2d9cb6,'toJSON':_0x500279});}getSuggestion(_0x3783f3){return this['editor']['plugins']['get'](un)['getSuggestion'](_0x3783f3);}};const Fn=['Pagination'];var vn=class extends _0xf0b898{static get requires(){return[un];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x41fd81=this['editor'];if(_0x41fd81['config']['define']('trackChangesData.editorCreator',_0x15ccf4=>{const _0x7a0ae2=_0x41fd81['model']['document']['getRootNames']()['reduce']((_0x539819,_0x1d42d3)=>(_0x539819[_0x1d42d3]='',_0x539819),{});return _0x41fd81['constructor']['create'](_0x7a0ae2,_0x15ccf4);}),'function'!=typeof _0x41fd81['config']['get']('trackChangesData')['editorCreator'])throw new _0x53b517('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x1d9cf7){return Pn(this['editor'],!0x0,_0x1d9cf7);}getDataWithDiscardedSuggestions(_0x44c097){return Pn(this['editor'],!0x1,_0x44c097);}},Dn=class extends _0xf0b898{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xc96e3d){super(_0xc96e3d),this['result']='end',_0xc96e3d['editing']['view']['_overlayModeHint']='auto',_0xc96e3d['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}init(){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}};function Un(_0xb6c526){return void 0x0!==_0xb6c526['getRootsAttributes'];}async function Pn(_0x1132b8,_0x4b681a,_0x241544){const _0x1a822e=et(_0x1132b8,Fn);if(_0x1a822e['plugins']['push'](un,Dn),Un(_0x1132b8)){_0x1a822e['roots']=Object['create'](null);for(const _0x5b18e7 of _0x1132b8['model']['document']['getRootNames']())_0x1a822e['roots'][_0x5b18e7]={'modelAttributes':_0x1132b8['getRootAttributes'](_0x5b18e7)};}const _0x4ee783=document['createDocumentFragment'](),_0x1aa14e=_0x1132b8['config']['get']('trackChangesData')['editorCreator'],_0x2671c4=await _0x1aa14e(_0x1a822e,()=>function(_0x27dd10){const _0x1b5aa6=document['createElement']('div');return _0x27dd10['appendChild'](_0x1b5aa6),_0x1b5aa6;}(_0x4ee783));!function(_0x13d13c,_0x5a32e0){const _0x44669f=_0x13d13c['model']['document']['getRootNames']()['reduce']((_0x39d2fe,_0x13bca1)=>(_0x39d2fe[_0x13bca1]=_0x13d13c['data']['get']({'rootName':_0x13bca1}),_0x39d2fe),{}),_0x4aa502=_0x13d13c['plugins']['get']('Users')['users']['map'](_0x1cfbbb=>({'id':_0x1cfbbb['id'],'name':_0x1cfbbb['name']})),_0x5281d3=_0x13d13c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x135854=_0x13d13c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x53b8bd=_0x5a32e0['plugins']['get']('Users'),_0x41cf5b=_0x5a32e0['plugins']['get']('TrackChangesEditing'),_0x4b179c=_0x5a32e0['plugins']['get']('CommentsRepository');for(const _0x215ee5 of _0x4b179c['getCommentThreads']())_0x215ee5['remove']();for(const _0x13b606 of _0x4aa502)_0x53b8bd['getUser'](_0x13b606['id'])||_0x53b8bd['addUser'](_0x13b606);_0x53b8bd['me']||_0x53b8bd['useAnonymousUser']();for(const _0x3728c2 of _0x135854)_0x4b179c['addCommentThread'](_0x3728c2);for(const _0x499f33 of _0x5281d3)_0x41cf5b['addSuggestionData'](_0x499f33);_0x5a32e0['data']['set'](_0x44669f);}(_0x1132b8,_0x2671c4),_0x2671c4['execute'](_0x4b681a?'acceptAllSuggestions':'discardAllSuggestions');const _0x3658e0=Un(_0x2671c4)?_0x2671c4['getFullData'](_0x241544):_0x2671c4['data']['get'](_0x241544);return await _0x2671c4['destroy'](),_0x3658e0;}var xn=class extends _0x31b427{options;constructor(_0x2b4420,_0x4b51ec){super(_0x2b4420),this['options']=_0x4b51ec,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}setPreviewData(_0x1143fc,_0x4c0272){if(!this['element'])return;const _0xdab05b=[];for(const [_0xdefb09,_0x589bfb]of _0x1143fc){const _0x3674e5=document['createElement']('div');_0x3674e5['setAttribute']('data-ck-root-name',_0xdefb09),_0x3674e5['className']=_0x589bfb['classes']+'\x20ck-track-changes-preview__root-container',_0x3674e5['innerHTML']=_0x362c85(_0x589bfb['content']),_0xdab05b['push'](_0x3674e5);}_0x4c0272(this['element'],_0xdab05b),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Gn=class extends _0x137f1b{constructor(_0x289f97){super(_0x289f97),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x31be79=this['editor'],_0x386f20=_0x31be79['locale'],_0xaa1db7=_0x31be79['plugins']['get']('Dialog');let _0x73c390;const _0x2d4cee=function(_0x5967b8){const _0x1cb9ba={};if('editables'in _0x5967b8['ui']['view']){for(const [_0x5a0770,_0x4c3bf2]of Object['entries'](_0x5967b8['ui']['view']['editables']))_0x1cb9ba[_0x5a0770]=_0x4c3bf2['element'];}else _0x1cb9ba[_0x5967b8['model']['document']['getRootNames']()[0x0]]=_0x5967b8['ui']['view']['editable']['element'];return _0x1cb9ba;}(_0x31be79),_0x55edf7=function(_0x2de985){let _0x137a5c=0x0;for(const _0x488d12 of Object['values'](_0x2de985))_0x137a5c=Math['max'](_0x137a5c,_0x488d12['getBoundingClientRect']()['width']);let _0x23ee11=0x0;for(const _0x1ccb0e of Object['values'](_0x2de985))_0x23ee11+=_0x1ccb0e['getBoundingClientRect']()['height'];const _0x2ca925=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x137a5c,'height':Math['min'](_0x23ee11,_0x2ca925)};}(_0x2d4cee);_0xaa1db7['show']({'id':'finalContentPreview','title':Bt(_0x386f20,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new xn(_0x386f20,{'dialogRects':_0x55edf7}),'onHide':()=>{_0x73c390['destroy']();},'onShow':()=>{_0x31be79['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x417f24=>{const _0xf244eb=this['_standarizeRootsData'](_0x417f24,_0x31be79,_0x2d4cee);_0xaa1db7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xf244eb,_0x31be79['config']['get']('trackChanges.preview.renderFunction'));}),_0x73c390=new _0x54c5f7(_0x386f20,[_0xaa1db7['view']]),_0x73c390['attachToDom'](_0x31be79['ui']['view']['body']['mountTarget']),_0x73c390['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x31be79['once']('destroy',()=>{_0x73c390['destroy']();});const _0x10c1f3=_0xaa1db7['view']['headerView']['class'];_0xaa1db7['view']['headerView']['class']=_0x10c1f3?_0x10c1f3+'\x20ck-reset_all':'ck-reset_all',_0xaa1db7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xaa1db7['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x444e15=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2d710f=_0x444e15['previewMode'],_0x4462c2={};if('$labels'===_0x2d710f){for(const _0x7e01aa of _0x444e15['getMergeFieldsIds']())_0x4462c2[_0x7e01aa]=_0x444e15['getLabel'](_0x7e01aa)||_0x7e01aa;}else{const _0x159c75='$defaultValues'===_0x2d710f?_0x444e15['getDefaultValues']():_0x444e15['getDataSetValues'](_0x2d710f,!0x0);for(const _0x4fcbbd of Object['entries'](_0x159c75)){const [_0x35e48e,_0x425ae4]=_0x4fcbbd;_0x4462c2[_0x35e48e]=null!==_0x425ae4?_0x425ae4:_0x444e15['getLabel'](_0x35e48e)||_0x35e48e;}}return{'mergeFieldsData':_0x4462c2};}_standarizeRootsData(_0x248aad,_0x57d3a2,_0x4f8015){let _0x4e3cc9;_0x4e3cc9='string'==typeof _0x248aad?{[_0x57d3a2['model']['document']['getRootNames']()[0x0]]:_0x248aad}:_0x248aad;const _0x44b8cd=this['_fixMediaEmbeds'](_0x4e3cc9,_0x57d3a2);return function(_0x386d1e,_0x102ded){const _0x462d1d=new Set(['ck-focused','ck-editor__editable_root']);for(const [_0x3bb22e,_0x4f707e]of _0x386d1e)_0x4f707e['classes']=Array['from'](_0x102ded[_0x3bb22e]['classList'])['filter'](_0x4e8df6=>!_0x462d1d['has'](_0x4e8df6))['join']('\x20');return _0x386d1e;}(this['_sortRoots'](_0x57d3a2)['reduce']((_0x293411,_0x82e049)=>(_0x293411['push']([_0x82e049,{'content':_0x44b8cd[_0x82e049],'classes':''}]),_0x293411),[]),_0x4f8015);}['_fixMediaEmbeds'](_0x3bffe8,_0xc16d5f){if(!_0xc16d5f['plugins']['has']('MediaEmbedEditing'))return _0x3bffe8;const _0x5c76a5=_0xc16d5f['plugins']['get']('MediaEmbedEditing');for(const [_0x17a344,_0x4637a4]of Object['entries'](_0x3bffe8)){const _0x54231d=document['createElement']('div');_0x54231d['innerHTML']=_0x362c85(_0x4637a4),_0x54231d['querySelectorAll']('figure.media')['forEach'](_0x4d84c5=>{const _0x410cc4=_0x4d84c5['querySelector']('oembed');if(_0x410cc4){const _0x598ac1=_0x410cc4['getAttribute']('url');if(_0x598ac1){const _0x28ab78=_0x5c76a5['registry']['getMediaViewElement'](new lt(_0xc16d5f['editing']['view']['document']),_0x598ac1,{'elementName':'','renderForEditingView':!0x0}),_0x5dda48=document['createElement']('div');_0x5dda48['classList']['add']('ck-media__wrapper'),_0x28ab78['render'](_0x5dda48,_0xc16d5f['editing']['view']['domConverter']),_0x410cc4['replaceWith'](_0x5dda48);}}}),_0x3bffe8[_0x17a344]=_0x54231d['innerHTML'];}return _0x3bffe8;}_sortRoots(_0x29ded2){if(!function(_0x56463c){return void 0x0!==_0x56463c['getRootsAttributes'];}(_0x29ded2))return _0x29ded2['model']['document']['getRootNames']();const _0x59b2e2=[],_0x46a8fd=new Map();for(const _0x1b7a28 of _0x29ded2['model']['document']['getRootNames']()){const _0x502c35=_0x29ded2['editing']['view']['getDomRoot'](_0x1b7a28)['getClientRects']()['item'](0x0);_0x59b2e2['push'](_0x1b7a28),_0x46a8fd['set'](_0x1b7a28,_0x502c35);}return _0x59b2e2['sort']((_0x4a31cc,_0x4fc61e)=>{const _0x3bc84f=_0x46a8fd['get'](_0x4a31cc),_0x5c640c=_0x46a8fd['get'](_0x4fc61e);return _0x3bc84f['y']-_0x5c640c['y']||_0x3bc84f['x']-_0x5c640c['x'];}),_0x59b2e2;}},Hn=class extends _0xf0b898{static get requires(){return[vn,_0x449084];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x497b0e){super(_0x497b0e),_0x497b0e['commands']['add']('previewFinalContent',new Gn(this['editor'])),_0x497b0e['config']['define']('trackChanges.preview.renderFunction',(_0x428799,_0x3195d8)=>{for(const _0x4fcb6 of _0x3195d8)_0x428799['appendChild'](_0x4fcb6);});}};export{It as AcceptSuggestionCommand,yn as BaseSuggestionThreadView,At as DiscardSuggestionCommand,St as ExecuteOnAllSuggestionsCommand,Mt as ExecuteOnSelectedSuggestionsCommand,Gn as PreviewFinalContentCommand,wt as Suggestion,Ft as SuggestionDescriptionFactory,Sn as SuggestionThreadView,Mn as SuggestionView,Bn as TrackChanges,Lt as TrackChangesCommand,vn as TrackChangesData,Dn as TrackChangesDataGetter,un as TrackChangesEditing,Hn as TrackChangesPreview,On as TrackChangesUI};
23
+ import{Command as _0x5ed105,PendingActions as _0x58af6d,Plugin as _0x343d5f}from'@ckeditor/ckeditor5-core';import{Annotations as _0x274aee,Comments as _0x15138f,CommentsRepository as _0x54906c,EditorAnnotations as _0x424c9a}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x2ccabb,Collection as _0x26bf81,FocusTracker as _0x17b233,KeystrokeHandler as _0x18e0bc,ObservableMixin as _0x36dcf5,getEnvKeystrokeText as _0x41def4,insertToPriorityArray as _0x58a366,logWarning as _0x546d88,priorities as _0x426eae,trustedHtml as _0x197577,uid as _0x4795d2}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x46b9b8,IconCancel as _0x265eb,IconCheck as _0x47f9b8,IconSparkle as _0x94802e,IconTrackChanges as _0x5880c8}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x34efa9,Dialog as _0x4d4105,FocusCycler as _0x33d4cb,IconView as _0x15c805,ListSeparatorView as _0x21d50e,MenuBarMenuListItemButtonView as _0x1a6d58,MenuBarMenuListItemView as _0x4580fa,MenuBarMenuListView as _0x57aca6,MenuBarMenuView as _0x435739,SplitButtonView as _0x5597bd,UIModel as _0x60108d,View as _0x33cb2f,ViewCollection as _0x1f5194,_getLocalizedColorName as _0x3508e8,addListToDropdown as _0x12f457,createDropdown as _0x4f845d,normalizeColorOptions as _0x31d355}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x25841d,CollaborationUserColor as _0x457659,FOCUS_ANNOTATION_KEYSTROKE as _0x2ab53e,LateFocusButtonView as _0x2f8a65,PillView as _0x8c012f,SuggestionsConversion as _0x16e815,User as _0x3b559a,UserView as _0xd581df,Users as _0x36c40a,fixElementSuggestionRange as _0x26dc97,getAllMarkersDomElementsSorted as _0x40b699,getDateTimeFormatter as _0x22c9dc,hashObject as _0x8b3a38,isInvalidAttributeOperation as tt,sanitizeEditorConfig as et,setupThreadKeyboardNavigation as nt,splitSuggestionMarkerName as it,surroundingMarkersDetector as st,trimHtml as rt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as ot,ModelLivePosition as at,ModelLiveRange as ct,ViewDowncastWriter as lt}from'@ckeditor/ckeditor5-engine';import{cloneDeep as ut,isEqual as dt,omit as ht,set as gt,unset as ft}from'es-toolkit/compat';import{ClipboardMarkersUtils as mt,ClipboardPipeline as Et}from'@ckeditor/ckeditor5-clipboard';import{Delete as Tt,Input as _t}from'@ckeditor/ckeditor5-typing';import{Enter as pt}from'@ckeditor/ckeditor5-enter';var Lt=class extends _0x5ed105{['_enabledCommands'];constructor(_0x1c5b67,_0x2bc5bd){super(_0x1c5b67),this['_enabledCommands']=_0x2bc5bd,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 _0x4d01ea of this['editor']['commands']['commands']())_0x4d01ea['affectsData']&&!this['_enabledCommands']['has'](_0x4d01ea)&&_0x4d01ea['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4aa7a6 of this['editor']['commands']['commands']())_0x4aa7a6['affectsData']&&!this['_enabledCommands']['has'](_0x4aa7a6)&&_0x4aa7a6['clearForceDisabled']('TrackChangesCommand');}},It=class extends _0x5ed105{_suggestions;constructor(_0x4f2413,_0x951f47){super(_0x4f2413),this['_suggestions']=_0x951f47,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x892a98){const _0xf081d=this['_suggestions']['get'](_0x892a98);if(!_0xf081d)throw new _0x2ccabb('track-changes-accept-suggestion-not-found',this);const _0xd7f8a4=_0xf081d['getRanges']();this['editor']['model']['canEditAt'](_0xd7f8a4)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xf081d);}},At=class extends _0x5ed105{_suggestions;constructor(_0x1de495,_0x18f32d){super(_0x1de495),this['_suggestions']=_0x18f32d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x563b0e){const _0x19e0d1=this['_suggestions']['get'](_0x563b0e);if(!_0x19e0d1)throw new _0x2ccabb('track-changes-discard-suggestion-not-found',this);const _0x29133b=_0x19e0d1['getRanges']();this['editor']['model']['canEditAt'](_0x29133b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x19e0d1);}};function bt(_0x206e0d,_0x5c2d65){let _0x13800c='';return _0x13800c+=_0x206e0d['split']('*')['map']((_0x5801a9,_0x1f8ca9)=>_0x1f8ca9%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Ct(_0x5801a9)+'</span>':Ct(_0x5801a9))['join'](''),_0x5c2d65&&(_0x13800c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5c2d65['value']+'\x22\x20title=\x22'+_0x5c2d65['title']+'\x22></span>'),_0x13800c;}function Ct(_0xdd26e2){const _0x3e9c2a=document['createElement']('span');return _0x3e9c2a['innerText']=_0xdd26e2,_0x3e9c2a['innerHTML'];}function kt(_0x5135aa){return _0x5135aa['sort']((_0x229c5d,_0x4babf3)=>'attribute'===_0x229c5d['type']&&'attribute'!==_0x4babf3['type']?-0x1:'attribute'!==_0x229c5d['type']&&'attribute'===_0x4babf3['type']?0x1:'deletion'==_0x229c5d['type']&&'deletion'!=_0x4babf3['type']?-0x1:'deletion'!=_0x229c5d['type']&&'deletion'==_0x4babf3['type']?0x1:0x0);}function Rt(_0x33b56c,_0x37c3fd){let _0x4db794,_0x4149c9=0x0;const _0x71d864=[],_0x36a355=_0x37c3fd['schema'];for(;_0x4149c9<_0x33b56c['length'];){const _0x517975=_0x33b56c[_0x4149c9],_0x426c38=_0x33b56c[_0x4149c9+0x1];_0x4db794||(_0x4db794=_0x37c3fd['createPositionBefore'](_0x517975)),Nt(_0x37c3fd,_0x517975,_0x426c38)||(_0x71d864['push'](_0x37c3fd['createRange'](_0x4db794,_0x36a355['isObject'](_0x517975)?_0x37c3fd['createPositionAfter'](_0x517975):_0x37c3fd['createPositionAt'](_0x517975,'end'))),_0x4db794=null),_0x4149c9++;}return _0x71d864;}function Nt(_0x5db93a,_0x53958b,_0x256b7b){if(!_0x256b7b)return!0x1;const _0xc1b005=_0x5db93a['createPositionAfter'](_0x53958b),_0x2824bb=_0x5db93a['createPositionBefore'](_0x256b7b);return _0xc1b005['isTouching'](_0x2824bb);}function yt(_0x10e75b,_0x1d495d,_0x44c806){for(;_0x44c806['length'];){const _0xaa7be4=_0x44c806['splice'](0x0,0x64);_0x10e75b['change'](()=>{for(const _0xb91938 of _0xaa7be4)_0xb91938['isInContent']&&_0x1d495d['execute'](_0xb91938['id']);});}}var St=class extends _0x5ed105{['_command'];_suggestions;constructor(_0x299141,_0x5bc94f,_0x443cb7){super(_0x299141),this['_command']=_0x5bc94f,this['_suggestions']=_0x443cb7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x392c5b=Array['from'](this['_suggestions']['values']())['some'](_0x4a8484=>_0x4a8484['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x392c5b;}execute(){const _0xe1863e=kt(Array['from'](this['_suggestions']['values']()));for(const _0x2571be of _0xe1863e){const _0x9221d9=_0x2571be['getRanges']();if(!this['editor']['model']['canEditAt'](_0x9221d9))return;}yt(this['editor']['model'],this['_command'],_0xe1863e);}},Mt=class extends _0x5ed105{['_command'];_suggestions;_selectedSuggestions;constructor(_0x3c0b3f,_0x4dd41b,_0x315364){super(_0x3c0b3f),this['_command']=_0x4dd41b,this['_suggestions']=_0x315364,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3be4bb=this['editor']['model']['document']['selection'],_0x39062f=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2768a6,_0x4f9373){const _0x4ac705=Array['from'](_0x2768a6['getRanges']()),_0x498632=new Set();for(const _0x1bd5e6 of _0x4f9373)if(_0x1bd5e6['isInContent']){for(const _0x3371d8 of _0x4ac705)for(const _0x4357e3 of _0x1bd5e6['getRanges']())(_0x3371d8['isIntersecting'](_0x4357e3)||_0x2768a6['isCollapsed']&&!_0x1bd5e6['isMultiRange']&&_0x1bd5e6['next']&&_0x4357e3['end']['isTouching'](_0x3371d8['start']))&&_0x498632['add'](_0x1bd5e6);}return _0x498632;}(_0x3be4bb,_0x39062f),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x3370df=kt(Array['from'](this['_selectedSuggestions']));for(const _0x40cb40 of _0x3370df){const _0x4d7d02=_0x40cb40['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4d7d02))return;}yt(this['editor']['model'],this['_command'],_0x3370df);}};const Ot=/* #__PURE__ -- @preserve */
24
+ _0x36dcf5();var wt=class Suggestion extends Ot{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x726a3e,_0x224f3c){super(),this['id']=_0x224f3c['id'],this['type']=_0x224f3c['type'],this['subType']=_0x224f3c['subType']||null,this['author']=_0x224f3c['author'],this['creator']=_0x224f3c['creator']||_0x224f3c['author'],this['data']=null,this['_originalSuggestionId']=_0x224f3c['originalSuggestionId']||null,this['_model']=_0x726a3e,this['_onAccept']=_0x224f3c['onAccept'],this['_onDiscard']=_0x224f3c['onDiscard'],this['_onAttributesChange']=_0x224f3c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x224f3c['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x2f7ca5=this;for(;_0x2f7ca5['previous'];)_0x2f7ca5=_0x2f7ca5['previous'];return _0x2f7ca5;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x252bd6){this['_markerNames']['add'](_0x252bd6);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x205295=>this['_model']['markers']['get'](_0x205295))['filter'](_0x4f6064=>_0x4f6064);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x79fcfd=>{for(const _0x4c8090 of this['getMarkers']())_0x79fcfd['removeMarker'](_0x4c8090);}),this['_markerNames']['clear']();}['removeMarker'](_0x5aa0b0){this['_model']['change'](_0x1a6643=>{_0x1a6643['removeMarker'](_0x5aa0b0);}),this['_markerNames']['delete'](_0x5aa0b0);}['addRange'](_0x96dca8){const _0x4a9442='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x4a9442),this['_model']['change'](_0x4345c3=>{_0x4345c3['addMarker'](_0x4a9442,{'range':_0x96dca8,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x3bdc9b){for(const _0x4cee00 of this['getRanges']())if(_0x4cee00['isIntersecting'](_0x3bdc9b))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x3b87ad=>_0x3b87ad['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x1406f4,_0xb20ff3)=>[..._0x1406f4,..._0xb20ff3['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x1f449c=this['getRanges']();if(0x1!=_0x1f449c['length'])return null;const _0x20f77b=_0x1f449c[0x0],_0x2964f4=_0x20f77b['start']['nodeAfter'],_0x1e66fa=_0x20f77b['end']['nodeBefore'];return _0x2964f4 instanceof ot?_0x2964f4!=_0x1e66fa?null:_0x2964f4: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 _0x4f6b6a=[];let _0x50b5e0=this['head'];for(;_0x50b5e0;)_0x4f6b6a['push'](_0x50b5e0),_0x50b5e0=_0x50b5e0['next'];return _0x4f6b6a;}setAttribute(_0x2594a7,_0x36384d){const _0x32da9f=ut(this['attributes']);gt(_0x32da9f,_0x2594a7,_0x36384d),dt(_0x32da9f,this['attributes'])||(this['attributes']=_0x32da9f,this['_onAttributesChange'](_0x32da9f));}removeAttribute(_0x19d812){const _0x4fc0b7=ut(this['attributes']);ft(_0x4fc0b7,_0x19d812),dt(_0x4fc0b7,this['attributes'])||(this['attributes']=_0x4fc0b7,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 _0x4795d2()['substr'](0x1,0x5);}};function Bt(_0x439257,_0x3c47dc,_0x188ec5){const _0x2985a9=_0x439257['t'],t=_0x439257['t'];switch(_0x3c47dc){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x188ec5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x188ec5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x188ec5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x188ec5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x188ec5);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',_0x188ec5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x188ec5);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x188ec5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x188ec5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x188ec5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x188ec5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x188ec5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x188ec5);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x188ec5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x188ec5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x188ec5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x188ec5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x188ec5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x188ec5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x188ec5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x188ec5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x188ec5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x188ec5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x188ec5);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x188ec5);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'},_0x188ec5);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x188ec5);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x188ec5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x188ec5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x188ec5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x188ec5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x188ec5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x188ec5);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x188ec5);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x188ec5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x188ec5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x188ec5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x188ec5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x188ec5);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x188ec5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x188ec5);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'},_0x188ec5);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x188ec5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x188ec5);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'},_0x188ec5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x188ec5);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'},_0x188ec5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x188ec5);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x188ec5);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x188ec5);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x188ec5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x188ec5);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x188ec5);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x188ec5);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x2985a9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x188ec5);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2985a9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x188ec5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x188ec5);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x188ec5);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x188ec5);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x188ec5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});case'SUGGESTION_ACTIONS_DISABLED_TOOLTIP':return t({'string':'This\x20suggestion\x20can\x27t\x20be\x20resolved\x20right\x20now.','id':'SUGGESTION_ACTIONS_DISABLED_TOOLTIP'});default:return _0x3c47dc;}}var Ft=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x50a785,_0xae51df){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x50a785,this['_locale']=_0xae51df;}getDescriptions(_0x4458ea){const _0x175d03=[],_0x1ebab7=new Set(),_0x18453f=new Set();for(let _0x53abfb=0x0;_0x53abfb<_0x4458ea['length'];_0x53abfb++){const _0x24f271=_0x4458ea[_0x53abfb];if(!_0x24f271['isInContent'])continue;const _0x34eda4=this['_handleCustomCallbackDescription'](_0x24f271);if(_0x34eda4){if(null!=_0x24f271['subType']){if(_0x1ebab7['has'](_0x24f271['subType']))continue;_0x1ebab7['add'](_0x24f271['subType']);}_0x175d03['push'](_0x34eda4);}else{if('attribute'==_0x24f271['type']){const _0xe3ffc0=_0x24f271['data']['key'];if(_0x18453f['has'](_0xe3ffc0))continue;_0x18453f['add'](_0x24f271['data']['key']),'$elementName'==_0xe3ffc0?this['_handleRenameSuggestionDescription'](_0x175d03,_0x24f271):this['_handleAttributeSuggestionDescription'](_0x175d03,_0x24f271);continue;}'insertion'!=_0x24f271['type']&&'deletion'!=_0x24f271['type']||this['_handleInsertRemoveSuggestionDescription'](_0x175d03,_0x24f271,_0x4458ea[_0x53abfb+0x1]);}}return this['_resolveDescriptionItems'](_0x175d03);}registerDescriptionCallback(_0x1cad3b){this['_customCallbacks']['push'](_0x1cad3b);}registerElementLabel(_0xcc4aa8,_0x189563,_0x166923=_0x426eae['normal']){'function'==typeof _0xcc4aa8?_0x58a366(this['_itemLabelsCallbacks'],{'matchingCallback':_0xcc4aa8,'label':_0x189563,'priority':_0x166923}):this['_itemLabels']['set'](_0xcc4aa8,_0x189563);}registerAttributeLabel(_0x53fe32,_0x9b15b8){this['_attributeLabels']['set'](_0x53fe32,_0x9b15b8);}getItemLabel(_0x25e4d2,_0x28c6e2=0x1){let _0x4a5a9e;for(const _0x528749 of this['_itemLabelsCallbacks'])if(_0x528749['matchingCallback'](_0x25e4d2)){_0x4a5a9e=_0x528749['label'];break;}return _0x4a5a9e||(_0x4a5a9e=this['_itemLabels']['get'](_0x25e4d2['name'])),_0x4a5a9e?_0x4a5a9e(_0x28c6e2):0x1!==_0x28c6e2?_0x28c6e2+'\x20'+_0x25e4d2['name']+'s':''+_0x25e4d2['name'];}_addDescriptionItems(_0x2946af,_0x45917e){const _0x2dc4d7=_0x45917e['getFirstRange']()['getWalker'](),_0x1ac466='insertion'==_0x45917e['type']?'add':'remove';for(const _0x15b797 of _0x2dc4d7){const _0x176384=_0x15b797['item'],_0x36e4be=_0x2946af[_0x2946af['length']-0x1];if(_0x176384['is']('$textProxy'))_0x36e4be&&_0x36e4be['type']['indexOf']('Container')>-0x1&&_0x2946af['pop'](),_0x36e4be&&'text'==_0x36e4be['type']?_0x36e4be[_0x1ac466]+=_0x176384['data']:_0x2946af['push']({'type':'text','add':'add'==_0x1ac466?_0x176384['data']:'','remove':'remove'==_0x1ac466?_0x176384['data']:''});else{if(this['_schema']['isObject'](_0x176384)){const _0x42a5bc=_0x176384;if(_0x36e4be&&_0x36e4be['type']['indexOf']('Container')>-0x1&&_0x2946af['pop'](),'elementEnd'==_0x15b797['type'])continue;_0x36e4be&&_0x36e4be['type']==_0x1ac466+'Object'&&_0x36e4be['element']['name']==_0x42a5bc['name']?_0x36e4be['quantity']++:_0x2946af['push']({'type':_0x1ac466+'Object','element':_0x42a5bc,'quantity':0x1}),_0x2dc4d7['skip'](_0x3f2ba7=>!('elementEnd'==_0x3f2ba7['type']&&_0x3f2ba7['item']==_0x176384));}else{if(this['_schema']['checkChild'](_0x176384,'$text')||_0x176384['is']('element','softBreak')){const _0x59d224=_0x176384;if('add'==_0x1ac466&&'elementStart'==_0x15b797['type']||'remove'==_0x1ac466&&'elementEnd'==_0x15b797['type'])continue;if(_0x36e4be&&-0x1==_0x36e4be['type']['indexOf']('Container')){'text'==_0x36e4be['type']&&(_0x36e4be[_0x1ac466]+='\x0a');continue;}let _0x6a570;if(_0x6a570='add'==_0x1ac466?_0x59d224['nextSibling']&&!this['_schema']['isObject'](_0x59d224['nextSibling'])?_0x59d224['nextSibling']:null:_0x59d224['previousSibling']&&!this['_schema']['isObject'](_0x59d224['previousSibling'])?_0x59d224['previousSibling']:null,_0x59d224['isEmpty']||_0x6a570&&_0x6a570['isEmpty']){const _0x14e9e0=_0x6a570&&_0x6a570['isEmpty']?_0x6a570:_0x59d224;_0x36e4be&&_0x36e4be['type']==_0x1ac466+'EmptyContainer'&&_0x36e4be['element']['name']==_0x14e9e0['name']?_0x36e4be['quantity']++:_0x2946af['push']({'type':_0x1ac466+'EmptyContainer','element':_0x14e9e0,'quantity':0x1});}else _0x2946af['push']({'type':_0x1ac466+'Container','element':_0x59d224});}}}}}_resolveDescriptionItems(_0x44b1d8){const _0x229bce=this['_locale'],_0xca57fd=[],_0x58c796=[],_0x196d8d=[];for(const _0x61872a of _0x44b1d8)switch(_0x61872a['type']){case'text':if(_0x61872a['add']=_0x61872a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x61872a['remove']=_0x61872a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x61872a['add']&&''!=_0x61872a['remove']){_0xca57fd['push']({'type':'replace','content':Bt(_0x229bce,'REPLACE_TEXT',['\x22'+_0x61872a['remove']+'\x22','\x22'+_0x61872a['add']+'\x22'])});continue;}if(null!=_0x61872a['add']['match'](/^ +$/)){_0xca57fd['push']({'type':'insertion','content':Bt(_0x229bce,'*Insert:*\x20%0',Bt(_0x229bce,'ELEMENT_SPACE',_0x61872a['add']['length']))});continue;}if(null!=_0x61872a['remove']['match'](/^ +$/)){_0xca57fd['push']({'type':'deletion','content':Bt(_0x229bce,'*Remove:*\x20%0',Bt(_0x229bce,'ELEMENT_SPACE',_0x61872a['remove']['length']))});continue;}if(''!=_0x61872a['add']){_0xca57fd['push']({'type':'insertion','content':Bt(_0x229bce,'*Insert:*\x20%0','\x22'+_0x61872a['add']+'\x22')});continue;}_0xca57fd['push']({'type':'deletion','content':Bt(_0x229bce,'*Remove:*\x20%0','\x22'+_0x61872a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xca57fd['push']({'type':'insertion','content':Bt(_0x229bce,'*Insert:*\x20%0',this['getItemLabel'](_0x61872a['element'],_0x61872a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xca57fd['push']({'type':'deletion','content':Bt(_0x229bce,'*Remove:*\x20%0',this['getItemLabel'](_0x61872a['element'],_0x61872a['quantity']))});continue;case'addContainer':_0xca57fd['push']({'type':'insertion','content':Bt(_0x229bce,'*Split:*\x20%0',this['getItemLabel'](_0x61872a['element'],_0x61872a['quantity']))});continue;case'removeContainer':_0xca57fd['push']({'type':'deletion','content':Bt(_0x229bce,'*Merge:*\x20%0',this['getItemLabel'](_0x61872a['element'],_0x61872a['quantity']))});continue;case'addFormat':_0x58c796['push'](_0x61872a['key']);continue;case'removeFormat':_0x196d8d['push'](_0x61872a['key']);continue;default:_0xca57fd['push'](_0x61872a);}if(_0x58c796['length']){const _0x32326a=_0x58c796['map'](_0x394ba3=>this['_attributeLabels']['has'](_0x394ba3)?this['_attributeLabels']['get'](_0x394ba3):_0x394ba3)['join'](',\x20');_0xca57fd['push']({'type':'format','content':Bt(this['_locale'],'*Set\x20format:*\x20%0',_0x32326a)});}if(_0x196d8d['length']){const _0x3028d7=_0x196d8d['map'](_0x32ba8b=>this['_attributeLabels']['has'](_0x32ba8b)?this['_attributeLabels']['get'](_0x32ba8b):_0x32ba8b)['join'](',\x20');_0xca57fd['push']({'type':'format','content':Bt(this['_locale'],'*Remove\x20format:*\x20%0',_0x3028d7)});}return _0xca57fd;}_handleCustomCallbackDescription(_0x2d2576){for(const _0x138e2c of this['_customCallbacks']){const _0x39e23d=_0x138e2c(_0x2d2576);if(_0x39e23d&&'type'in _0x39e23d)return _0x39e23d;}}_handleAttributeSuggestionDescription(_0x16a82c,_0x2b0e0c){const _0x3c9d8e=_0x2b0e0c['data'],_0x5400f3=void 0x0===_0x3c9d8e['newValue']?'removeFormat':'addFormat';_0x16a82c['push']({'type':_0x5400f3,'key':_0x3c9d8e['key']});}_handleRenameSuggestionDescription(_0x214ad7,_0x521290){_0x214ad7['push']({'type':'format','content':Bt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x521290['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x497a97,_0x295e03,_0x25fb7c){if(this['_addDescriptionItems'](_0x497a97,_0x295e03),_0x25fb7c&&_0x25fb7c['getFirstRange']()&&!_0x295e03['getFirstRange']()['end']['isEqual'](_0x25fb7c['getFirstRange']()['start'])){const _0x583054=_0x497a97[_0x497a97['length']-0x1],_0x1fbf8d='insertion'==_0x295e03['type']?'add':'remove';_0x583054&&'text'==_0x583054['type']&&(_0x583054[_0x1fbf8d]+='\x0a');}}},vt=class extends _0x343d5f{afterInit(){const _0x4bae8f=this['editor'],_0x457940=_0x4bae8f['plugins']['get']('TrackChangesEditing');_0x4bae8f['commands']['get']('showAIAssistant')&&_0x457940['enableCommand']('showAIAssistant');}},Dt=class extends _0x343d5f{afterInit(){const _0x133c94=this['editor'],_0x427d25=_0x133c94['plugins']['get']('TrackChangesEditing');_0x133c94['commands']['get']('toggleAi')&&_0x427d25['enableCommand']('toggleAi');}},Ut=class extends _0x343d5f{afterInit(){const _0x344544=this['editor'],_0x1d5d20=_0x344544['plugins']['get']('TrackChangesEditing');_0x344544['commands']['get']('aiQuickAction')&&_0x1d5d20['enableCommand']('aiQuickAction');}},Pt=class extends _0x343d5f{afterInit(){const _0x1edf44=this['editor'],_0x4da0b3=_0x1edf44['locale'];if(!_0x1edf44['plugins']['has']('AlignmentEditing'))return;const _0x4937dd=_0x1edf44['plugins']['get']('TrackChangesEditing');_0x4937dd['enableDefaultAttributesIntegration']('alignment'),_0x4937dd['descriptionFactory']['registerAttributeLabel']('alignment',Bt(_0x4da0b3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5c95d4=this['editor'],_0xdf9379=_0x5c95d4['locale'];_0x5c95d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x529052=>{if('formatBlock'!=_0x529052['type'])return;const {data:_0x3a7734}=_0x529052;if(_0x3a7734&&'alignment'==_0x3a7734['commandName']){const _0x294b4a=_0x3a7734['commandParams'][0x0]['value'];return{'type':'format','content':Bt(_0xdf9379,'*Format:*\x20%0',function(_0x2ed900){switch(_0x2ed900){case'left':return Bt(_0xdf9379,'FORMAT_ALIGN_TO_LEFT');case'right':return Bt(_0xdf9379,'FORMAT_ALIGN_TO_RIGHT');case'center':return Bt(_0xdf9379,'FORMAT_ALIGN_TO_CENTER');case'justify':return Bt(_0xdf9379,'FORMAT_JUSTIFY_TEXT');}}(_0x294b4a))};}});}};const xt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Gt=class extends _0x343d5f{afterInit(){const _0x179818=this['editor'],_0x260280=_0x179818['plugins']['get']('TrackChangesEditing'),_0x60b4ee=_0x179818['locale'];for(const _0x161e57 of xt){if(!_0x179818['plugins']['has'](_0x161e57))continue;const _0x4a2084=_0x161e57['slice'](0x0,-0x7)['toLowerCase'](),_0xc5bf73='FORMAT_'+_0x4a2084['toUpperCase']();_0x260280['enableDefaultAttributesIntegration'](_0x4a2084),_0x260280['descriptionFactory']['registerAttributeLabel'](_0x4a2084,Bt(_0x60b4ee,_0xc5bf73));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x10b5f4=this['editor'],_0x3ec7f0=_0x10b5f4['locale'],_0x36f026=_0x10b5f4['plugins']['get']('TrackChangesEditing');function _0x2599c1(_0x56106d,_0x26e6d1){_0x36f026['descriptionFactory']['registerDescriptionCallback'](_0x1c6b51=>{if('formatInline'!=_0x1c6b51['type'])return;const {data:_0x105cbc}=_0x1c6b51;return _0x105cbc&&_0x105cbc['commandName']===_0x56106d?_0x105cbc['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x3ec7f0,'*Format:*\x20%0',_0x26e6d1)}:{'type':'format','content':Bt(_0x3ec7f0,'*Remove\x20format:*\x20%0',_0x26e6d1)}:void 0x0;});}_0x2599c1('bold',Bt(_0x3ec7f0,'FORMAT_BOLD')),_0x2599c1('italic',Bt(_0x3ec7f0,'FORMAT_ITALIC')),_0x2599c1('underline',Bt(_0x3ec7f0,'FORMAT_UNDERLINE')),_0x2599c1('code',Bt(_0x3ec7f0,'FORMAT_CODE')),_0x2599c1('strikethrough',Bt(_0x3ec7f0,'FORMAT_STRIKETHROUGH')),_0x2599c1('subscript',Bt(_0x3ec7f0,'FORMAT_SUBSCRIPT')),_0x2599c1('superscript',Bt(_0x3ec7f0,'FORMAT_SUPERSCRIPT'));}},Ht=class extends _0x343d5f{afterInit(){const _0x288231=this['editor'],_0x67775=_0x288231['locale'];if(!_0x288231['plugins']['has']('BlockQuoteEditing'))return;const _0x13815a=_0x288231['plugins']['get']('TrackChangesEditing'),_0x5dffa9=this['editor']['commands']['get']('blockQuote');_0x13815a['enableCommand']('blockQuote',(_0xe31c23,_0x130e80={})=>{const _0x3a0c4a=this['editor']['model']['document']['selection'],_0x31bc30=_0x130e80&&void 0x0!==_0x130e80['forceValue']?_0x130e80['forceValue']:!_0x5dffa9['value'];let _0x58a96e=[];if(_0x31bc30){const _0x1d6f1a=Array['from'](_0x3a0c4a['getSelectedBlocks']())['filter'](_0x3957af=>$t(_0x3957af)||function(_0x3a3461,_0x4009c1){const _0x52c416=_0x4009c1['createContext'](_0x3a3461['parent']);return!!_0x4009c1['checkChild'](_0x52c416,'blockQuote')&&!!_0x4009c1['checkChild'](_0x52c416['push']('blockQuote'),_0x3a3461);}(_0x3957af,this['editor']['model']['schema']));_0x58a96e=Rt(_0x1d6f1a,_0x288231['model']);}else{const _0x60dfce=Array['from'](_0x3a0c4a['getSelectedBlocks']())['filter'](_0x475396=>$t(_0x475396));_0x58a96e=Rt(_0x60dfce,_0x288231['model']);}_0x288231['model']['change'](()=>{for(const _0x2913ec of _0x58a96e)_0x13815a['markBlockFormat'](_0x2913ec,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x31bc30}]});});}),_0x13815a['descriptionFactory']['registerDescriptionCallback'](_0x5f0b18=>{const {data:_0x494fe0}=_0x5f0b18;if(_0x494fe0&&'blockQuote'==_0x494fe0['commandName']){const _0xad534a=Bt(_0x67775,'ELEMENT_BLOCK_QUOTE');return _0x494fe0['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x67775,'*Set\x20format:*\x20%0',_0xad534a)}:{'type':'format','content':Bt(_0x67775,'*Remove\x20format:*\x20%0',_0xad534a)};}});}};function $t(_0x420dc5){return'blockQuote'==_0x420dc5['parent']['name'];}var Wt=class extends _0x343d5f{afterInit(){const _0x556cd4=this['editor'],_0x3d55cc=_0x556cd4['locale'],_0x54fedd=_0x556cd4['plugins']['get']('TrackChangesEditing');_0x556cd4['plugins']['has']('BookmarkEditing')&&(_0x54fedd['enableCommand']('insertBookmark'),_0x54fedd['enableDefaultAttributesIntegration']('updateBookmark'),_0x54fedd['descriptionFactory']['registerDescriptionCallback'](_0x1f5441=>{if('insertion'!=_0x1f5441['type']&&'deletion'!=_0x1f5441['type']&&'attribute'!=_0x1f5441['type'])return;const _0x1c758a=_0x1f5441['getContainedElement']();if(null==_0x1c758a)return;if(!_0x1c758a['is']('element','bookmark'))return;const _0x1d7708=_0x1c758a['getAttribute']('bookmarkId');if('insertion'==_0x1f5441['type'])return{'type':'insertion','content':Bt(_0x3d55cc,'*Insert:*\x20%0','\x22'+_0x1d7708+'\x22\x20'+Bt(_0x3d55cc,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1f5441['type'])return{'type':'deletion','content':Bt(_0x3d55cc,'*Remove:*\x20%0','\x22'+_0x1d7708+'\x22\x20'+Bt(_0x3d55cc,'ELEMENT_BOOKMARK'))};const {data:_0x2a996f}=_0x1f5441;return _0x2a996f&&'bookmarkId'==_0x2a996f['key']?{'type':'format','content':Bt(_0x3d55cc,'*Set\x20bookmark:*\x20%0','\x22'+_0x2a996f['newValue']+'\x22')}:void 0x0;}));}},Vt=class extends _0x343d5f{afterInit(){const _0x504991=this['editor'];_0x504991['plugins']['has']('CaseChange')&&(_0x504991['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x504991['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x504991['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},zt=class extends _0x343d5f{afterInit(){const _0x59bbc9=this['editor'];_0x59bbc9['commands']['get']('ckbox')&&_0x59bbc9['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},jt=class extends _0x343d5f{static get requires(){return[mt,Et];}constructor(_0x4f596c){super(_0x4f596c),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0xd614de=this['editor'],_0x3caae7=_0xd614de['plugins']['get']('ClipboardMarkersUtils'),_0x3cae08=_0xd614de['plugins']['get'](Et);_0x3caae7['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x3cae08['on']('outputTransformation',(_0x46fbb4,_0x14e785)=>{const _0x2fd954=this['_getSuggestionEntries'](_0x14e785);for(const [_0x1a848e,_0xdb1e83]of _0x14e785['content']['markers']){const _0x3e81f9=ct['_fromRangeInDocumentFragment'](_0xdb1e83,_0xd614de['model']);function _0x5078dd(){_0x3e81f9['detach'](),_0x14e785['content']['markers']['delete'](_0x1a848e);}_0x3e81f9['on']('change:drop',_0x5078dd),(_0x1a848e['startsWith']('suggestion:')||_0x1a848e['startsWith']('comment:'))&&_0x3e81f9['on']('change:range',()=>{_0x3e81f9['isCollapsed']&&_0x5078dd();}),_0x14e785['content']['markers']['set'](_0x1a848e,_0x3e81f9);}const _0x4dfd27=_0x2fd954['filter'](_0x3b19cc=>'deletion'===_0x3b19cc['meta']['type'])['map'](_0x1fd281=>_0x1fd281['modelRange']);if(this['_shouldSkipDeletions'](_0x4dfd27,_0x14e785['content']))return[..._0x2fd954]['forEach'](_0x1d3055=>{_0x14e785['content']['markers']['get'](_0x1d3055['markerName'])['detach'](),_0x14e785['content']['markers']['delete'](_0x1d3055['markerName']);}),void this['_restoreRegularRanges'](_0x14e785['content']['markers']);[..._0x2fd954]['forEach'](_0x1812cb=>{const _0x23dc74=_0xd614de['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x1812cb['meta']['type'],_0x1812cb['meta']['subType'],'accept'),{markerName:_0x2803a9,meta:_0x413503}=_0x1812cb;if(_0x14e785['content']['markers']['has'](_0x2803a9)){switch(_0x413503['type']){case'deletion':if('tableRow'===_0x413503['subType']||'tableColumn'===_0x413503['subType']){if(!_0xd614de['plugins']['has']('TableUtils'))break;const _0x1678e0=_0xd614de['plugins']['get']('TableUtils'),_0x1dcd5a=_0x1678e0['getSelectionAffectedTableCells'](_0xd614de['model']['createSelection'](_0x14e785['content']['markers']['get'](_0x2803a9))),_0x47aca0=_0x1dcd5a[0x0]['findAncestor']('table');if('tableRow'===_0x413503['subType']){const {first:_0x2f900b,last:_0x5e2064}=_0x1678e0['getRowIndexes'](_0x1dcd5a);_0x1678e0['removeRows'](_0x47aca0,{'at':_0x2f900b,'rows':_0x5e2064-_0x2f900b+0x1});}else{const {first:_0xd51d99,last:_0x56cfaa}=_0x1678e0['getColumnIndexes'](_0x1dcd5a);_0x1678e0['removeColumns'](_0x47aca0,{'at':_0xd51d99,'columns':_0x56cfaa-_0xd51d99+0x1});}break;}_0x23dc74([_0x14e785['content']['markers']['get'](_0x2803a9)]);}_0x14e785['content']['markers']['has'](_0x2803a9)&&(_0x14e785['content']['markers']['get'](_0x2803a9)['detach'](),_0x14e785['content']['markers']['delete'](_0x2803a9));}}),this['_restoreRegularRanges'](_0x14e785['content']['markers']);});}_getSuggestionEntries(_0x5e9fe8){const _0x3d6f24=_0x3d91f6=>'dragstart'===_0x5e9fe8['method']?_0x3d91f6['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x3d91f6;return Array['from'](_0x5e9fe8['content']['markers'])['map'](([_0x4251c4,_0x22a8f5])=>({'markerName':_0x4251c4,'modelRange':_0x22a8f5,'meta':it(_0x3d6f24(_0x4251c4))}))['filter'](({meta:_0x4dd999})=>'suggestion'===_0x4dd999['group']);}_shouldSkipDeletions(_0x33a955,_0x8d8f60){if(!_0x33a955['length'])return!0x1;let _0x13538d=[this['editor']['model']['createRangeIn'](_0x8d8f60)];for(const _0x13000c of _0x33a955)_0x13538d=_0x13538d['flatMap'](_0x565f6e=>_0x565f6e['getDifference'](_0x13000c));return!_0x13538d['some'](_0x4c801a=>this['editor']['model']['hasContent'](_0x4c801a,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x53ba94){[..._0x53ba94['keys']()]['forEach'](_0x1df6a1=>{const _0x170e83=_0x53ba94['get'](_0x1df6a1);_0x170e83['detach'](),_0x53ba94['set'](_0x1df6a1,_0x170e83['toRange']());});}},Kt=class extends _0x343d5f{afterInit(){const _0x4ec2ec=this['editor'];if(!_0x4ec2ec['plugins']['has']('CodeBlock'))return;const _0x16d569=_0x4ec2ec['plugins']['get']('TrackChangesEditing'),_0x52a637=_0x4ec2ec['locale'],_0x367ed6=_0x4ec2ec['config']['get']('codeBlock')['languages'],_0x358890=_0x4ec2ec['commands']['get']('codeBlock');_0x16d569['enableCommand']('indentCodeBlock'),_0x16d569['enableCommand']('outdentCodeBlock'),_0x16d569['enableCommand']('codeBlock',(_0x4231fe,_0x4fb90f={})=>{const _0x155a56=_0x4ec2ec['model'],_0x5824c0=_0x4ec2ec['model']['document']['selection'],_0xd03ff3=_0x4fb90f&&void 0x0!==_0x4fb90f['forceValue']?_0x4fb90f['forceValue']:!_0x358890['value'];let _0x21f235;_0x4fb90f['language']||(_0x4fb90f['language']=_0x367ed6[0x0]['language']),_0x21f235=_0xd03ff3?Array['from'](_0x5824c0['getSelectedBlocks']())['filter'](_0x332961=>{return Xt(_0x332961)||(_0x4c984d=_0x332961,_0x2bad48=_0x155a56['schema'],!_0x4c984d['is']('rootElement')&&!_0x2bad48['isLimit'](_0x4c984d)&&_0x2bad48['checkChild'](_0x4c984d['parent'],'codeBlock'));var _0x4c984d,_0x2bad48;}):Array['from'](_0x5824c0['getSelectedBlocks']())['filter'](_0x3dcd33=>Xt(_0x3dcd33));const _0x5d86b7=Rt(_0x21f235,_0x155a56);_0x155a56['change'](()=>{for(const _0x103845 of _0x5d86b7)_0x16d569['markBlockFormat'](_0x103845,{'commandName':'codeBlock','commandParams':[{..._0x4fb90f,'forceValue':_0xd03ff3}],'formatGroupId':'blockName'});});}),(_0x16d569['descriptionFactory']['registerElementLabel']('codeBlock',_0x1dc50f=>Bt(_0x52a637,'ELEMENT_CODE_BLOCK',_0x1dc50f)),_0x16d569['descriptionFactory']['registerDescriptionCallback'](_0x393e30=>{if('formatBlock'!=_0x393e30['type'])return;const _0x386c0d=_0x52a637['t'],{data:_0x5058d9}=_0x393e30;if(!_0x5058d9||'codeBlock'!=_0x5058d9['commandName'])return;const _0xf5f68e=_0x5058d9['commandParams'][0x0]['language'],_0x3f2d92=_0x386c0d(_0x367ed6['find'](_0x3396db=>_0x3396db['language']===_0xf5f68e)['label'])['toLowerCase']();return _0x5058d9['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x52a637,'*Set\x20format:*\x20%0',Bt(_0x52a637,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3f2d92+')')}:{'type':'format','content':Bt(_0x52a637,'*Remove\x20format:*\x20%0',Bt(_0x52a637,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Xt(_0x4a164a){return'codeBlock'==_0x4a164a['name'];}var qt=class extends _0x343d5f{afterInit(){const _0x8abe2b=this['editor'];_0x8abe2b['plugins']['has']('CommentsEditing')&&_0x8abe2b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Yt=class extends _0x343d5f{static get requires(){return[Tt];}init(){const _0x5feb17=this['editor'],_0x3c839a=_0x5feb17['plugins']['get']('TrackChangesEditing');_0x3c839a['enableCommand']('delete');const _0x21d477=_0x5feb17['commands']['get']('deleteForward');_0x3c839a['enableCommand']('deleteForward',(_0x4461f6,_0x3d9259={})=>{const _0x26aecd=_0x5feb17['model']['createSelection'](_0x5feb17['model']['document']['selection']);_0x26aecd['isCollapsed']&&_0x5feb17['model']['modifySelection'](_0x26aecd,{'direction':'forward','unit':_0x3d9259['unit']});const _0x2efdf0=_0x26aecd['getFirstRange'](),_0x4f5f8b=ct['fromRange'](_0x2efdf0);let _0x49c850;_0x4461f6(_0x3d9259),_0x49c850='$graveyard'==_0x4f5f8b['root']['rootName']?_0x5feb17['model']['createRange'](_0x2efdf0['start']):_0x5feb17['model']['createRange'](_0x4f5f8b['start'],_0x4f5f8b['end']),_0x4f5f8b['detach'](),_0x5feb17['model']['enqueueChange'](_0x21d477['buffer']['batch'],_0x3f17b1=>{_0x21d477['buffer']['lock'](),_0x3f17b1['setSelection'](_0x3f17b1['createRange'](_0x49c850['end'])),_0x21d477['buffer']['unlock']();});});}},Qt=class extends _0x343d5f{afterInit(){const _0x14c6b9=this['editor'];if(!_0x14c6b9['plugins']['has']('ListEditing'))return;const _0x567b44=_0x14c6b9['locale'],_0x40f110=_0x14c6b9['plugins']['get']('TrackChangesEditing'),_0xe93129=_0x14c6b9['plugins']['has']('TodoListEditing'),_0x691cf2=!!_0x14c6b9['config']['get']('list.multiBlock');function _0x5897be(_0x5e32a7){return{'type':'format','content':''+Bt(_0x567b44,'*Set\x20format:*\x20%0',_0x5e32a7)};}function _0xaac5b6(_0x3c5cea){return{'type':'format','content':''+Bt(_0x567b44,'*Remove\x20format:*\x20%0',_0x3c5cea)};}_0x40f110['enableDefaultAttributesIntegration']('numberedList'),_0x40f110['enableDefaultAttributesIntegration']('bulletedList'),_0x40f110['enableDefaultAttributesIntegration']('customNumberedList'),_0x40f110['enableDefaultAttributesIntegration']('customBulletedList'),_0x40f110['enableDefaultAttributesIntegration']('indentList'),_0x40f110['enableDefaultAttributesIntegration']('outdentList'),_0x40f110['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x40f110['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x691cf2&&(_0x40f110['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x40f110['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xe93129&&(_0x40f110['enableDefaultAttributesIntegration']('todoList'),_0x40f110['enableDefaultAttributesIntegration']('checkTodoList'),_0x40f110['descriptionFactory']['registerDescriptionCallback'](_0x57f70a=>{const {data:_0x415d69}=_0x57f70a;if(_0x415d69&&'todoListChecked'==_0x415d69['key'])return{'type':'format','content':_0x415d69['newValue']?Bt(_0x567b44,'*Check\x20item*'):Bt(_0x567b44,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4e8f52=>{if(_0x4e8f52['batch']['isUndo'])return!0x1;let _0x428eb7=!0x1;const _0x34d070=_0x40f110['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa6eed6=>'todoListChecked'===_0x40f110['_getAttributeKey'](_0xa6eed6));for(const _0x3b0257 of _0x34d070)'todo'!=_0x3b0257['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x40f110['_findSuggestions'](_0x3b0257['getFirstRange'](),'attribute')['find'](_0x5ea171=>'listType'===_0x40f110['_getAttributeKey'](_0x5ea171['suggestion']))||(_0x4e8f52['removeMarker'](_0x3b0257['getFirstMarker']()),_0x428eb7=!0x0));return _0x428eb7;})),_0x40f110['descriptionFactory']['registerAttributeLabel']('listIndent',Bt(_0x567b44,'FORMAT_INDENT'));const _0x133948={'type':'format','content':''};_0x40f110['descriptionFactory']['registerDescriptionCallback'](_0x5b796f=>{const {data:_0x56c6de}=_0x5b796f;if(!_0x56c6de||'listType'!=_0x56c6de['key'])return;let _0x47d65c=_0x5b796f['head'];for(;_0x47d65c;){if(_0x47d65c['data']&&(('listStyle'==_0x47d65c['data']['key']||'listMarkerStyle'==_0x47d65c['data']['key'])&&(_0x47d65c['data']['newValue']&&'default'!=_0x47d65c['data']['newValue']||'default'!=_0x47d65c['data']['oldValue']&&!_0x56c6de['newValue'])||!_0x691cf2&&'$elementName'==_0x47d65c['data']['key']))return _0x133948;_0x47d65c=_0x47d65c['next'];}if(null==_0x56c6de['newValue'])switch(_0x56c6de['oldValue']){case'bulleted':return _0xaac5b6(Bt(_0x567b44,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xaac5b6(Bt(_0x567b44,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xaac5b6(Bt(_0x567b44,'ELEMENT_TODO_LIST'));}switch(_0x56c6de['newValue']){case'bulleted':return _0x5897be(Bt(_0x567b44,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5897be(Bt(_0x567b44,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5897be(Bt(_0x567b44,'ELEMENT_TODO_LIST'));}}),_0x40f110['descriptionFactory']['registerDescriptionCallback'](_0x2bfd9d=>{const {data:_0x4b7153}=_0x2bfd9d;if(_0x4b7153&&'listIndent'==_0x4b7153['key'])return null==_0x4b7153['newValue']||null==_0x4b7153['oldValue']&&0x0==_0x4b7153['newValue']?_0x133948:void 0x0;}),_0x40f110['descriptionFactory']['registerDescriptionCallback'](_0x269a0a=>{if('attribute'!=_0x269a0a['type'])return;const {data:_0x80c833}=_0x269a0a;if(!_0x80c833||'listItemId'!=_0x80c833['key'])return;const _0x53d4bf=Zt(_0x269a0a);return'newValue'==_0x53d4bf?{'type':'format','content':Bt(_0x567b44,'*Merge:*\x20list\x20item')}:'oldValue'==_0x53d4bf?{'type':'format','content':Bt(_0x567b44,'*Split:*\x20list\x20item')}:_0x133948;}),_0x14c6b9['model']['document']['registerPostFixer'](_0x2a74d5=>this['listItemIdFixer'](_0x2a74d5)),_0x14c6b9['model']['document']['registerPostFixer'](_0x501ef2=>this['noTrackChangesFixer'](_0x501ef2)),_0x14c6b9['model']['document']['on']('change:data',(_0x58e7bd,_0x50a8b0)=>{if(_0x50a8b0['isUndo']||!_0x50a8b0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x1b6825){if(_0x1b6825['batch']['isUndo']||!_0x1b6825['batch']['isLocal'])return!0x1;let _0x2ee72b=!0x1;const _0x3488ae=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf1de4c=>_0xf1de4c['data']&&'listItemId'==_0xf1de4c['data']['key'])['filter'](_0x4bc3f9=>_0x4bc3f9['data']['newValue']&&_0x4bc3f9['data']['oldValue']);for(const _0x50bc93 of _0x3488ae)Zt(_0x50bc93)||(_0x1b6825['removeMarker'](_0x50bc93['getFirstMarker']()),_0x2ee72b=!0x0);return _0x2ee72b;}['noTrackChangesFixer'](_0x539767){if(_0x539767['batch']['isUndo']||!_0x539767['batch']['isLocal'])return!0x1;const _0x422556=this['editor']['model']['document']['differ'],_0x3cdd34=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3cdd34['trackChangesCommand']['value'])return!0x1;let _0x4d0bc3=!0x1;const _0x241c1e=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x249c64=_0x422556['getChanges']()['filter'](_0x2a9b4e=>'attribute'==_0x2a9b4e['type'])['filter'](_0x19fead=>_0x241c1e['has'](_0x19fead['attributeKey']));if(0x0==_0x249c64['length'])return _0x4d0bc3;const _0x5064f5=new Set(_0x422556['getMarkersToAdd']()['filter'](_0x22a5a8=>{if(!_0x22a5a8['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x411e48=it(_0x22a5a8['name'])['subType']['split']('|')[0x0];return _0x241c1e['has'](_0x411e48);})['map'](_0xbe4e27=>it(_0xbe4e27['name'])['id']));for(const _0x1ac861 of _0x249c64){const _0x3c732e=_0x3cdd34['_findSuggestions'](_0x1ac861['range'],'attribute')['filter'](_0x5e1f31=>{if(_0x5e1f31['meta']['isNextTo'])return!0x1;if(_0x5064f5['has'](_0x5e1f31['suggestion']['id']))return!0x1;const _0x595e71=_0x3cdd34['_getAttributeKey'](_0x5e1f31['suggestion']);return _0x241c1e['has'](_0x595e71);})['map'](_0x289bd1=>_0x289bd1['suggestion']);if(_0x3c732e['length']){for(const _0x4be755 of _0x3c732e)_0x539767['removeMarker'](_0x4be755['getFirstMarker']());_0x4d0bc3=!0x0;}}return _0x4d0bc3;}['assureChains'](){const _0xd77d79=this['editor']['plugins']['get']('TrackChangesEditing'),_0x167098=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x4e18e2;const _0x368f34=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xaf05b8=>{if(_0xaf05b8['data']['oldRange']||!_0xaf05b8['data']['newRange'])return null;if(!_0xaf05b8['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x255d3d}=it(_0xaf05b8['name']);if(!_0xd77d79['hasSuggestion'](_0x255d3d))return null;const _0x7bfc2c=_0xd77d79['getSuggestion'](_0x255d3d);return _0x167098['includes'](_0x7bfc2c['data']['key']);})['map'](_0xc9fe52=>{const {id:_0x1e915d}=it(_0xc9fe52['name']),_0x379c7c=_0xd77d79['getSuggestion'](_0x1e915d);return _0x4e18e2=_0x379c7c['attributes']['groupId'],_0x379c7c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x368f34['size'])return;const _0x41d75a=_0xd77d79['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e0383=>'attribute'==_0x5e0383['type']&&_0x5e0383['data']&&_0x167098['includes'](_0x5e0383['data']['key'])&&_0x5e0383['attributes']['groupId']!=_0x4e18e2)['map'](_0x55b49c=>({'listItem':_0x55b49c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x55b49c['attributes']['groupId']})),_0x410b65=new Set();for(const {groupId:_0x35bc4b,listItem:_0x55199c}of _0x41d75a)_0x368f34['has'](_0x55199c)&&_0x410b65['add'](_0x35bc4b);for(const _0xd422b9 of _0xd77d79['getSuggestions']())_0x410b65['has'](_0xd422b9['attributes']['groupId'])&&_0xd422b9['setAttribute']('groupId',_0x4e18e2);}_supportLegacySuggestions(){const _0x24f8a8=this['editor'],_0x488519=_0x24f8a8['locale'],_0x58555e=_0x24f8a8['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x58555e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x520daf,_0xb9dc26){const _0x3f73e0=[];for(let _0x11b8a9 of _0x520daf)_0x11b8a9['start']['nodeAfter']===_0x11b8a9['end']['parent']&&(_0x11b8a9=_0x24f8a8['model']['createRange'](_0x24f8a8['model']['createPositionAt'](_0x11b8a9['start']['nodeAfter'],0x0))),_0x3f73e0['push'](_0x11b8a9);_0x24f8a8['model']['change'](_0x45d3a4=>{const _0x29c2af=_0x24f8a8['model']['document']['selection'],_0x25c5de=Array['from'](_0x29c2af['getRanges']())['map'](_0x2aede7=>ct['fromRange'](_0x2aede7));_0x45d3a4['setSelection'](_0x3f73e0),_0x24f8a8['commands']['get'](_0xb9dc26['commandName'])['refresh'](),_0xb9dc26['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x24f8a8['execute'](_0xb9dc26['commandName'],..._0xb9dc26['commandParams']),_0x45d3a4['setSelection'](_0x25c5de);for(const _0x440284 of _0x25c5de)_0x440284['detach']();});}),_0x58555e['descriptionFactory']['registerElementLabel'](function(_0x3218be){const _0x1c3496=!_0x24f8a8['model']['schema']['isObject'](_0x3218be),_0x36e1a7=_0x3218be['previousSibling'],_0x32f67=_0x3218be['nextSibling'],_0x3125ef=_0x3218be['getAttribute']('listItemId'),_0x3bdfd4=!_0x36e1a7||_0x36e1a7['getAttribute']('listItemId')!==_0x3125ef,_0x71db13=!_0x32f67||_0x32f67['getAttribute']('listItemId')!==_0x3125ef;return _0x1c3496&&Boolean(_0x3125ef)&&_0x3bdfd4&&_0x71db13;},_0x168111=>Bt(_0x488519,'ELEMENT_LIST_ITEM',_0x168111));}_registerLegacyDescription(){const _0x71499c=this['editor'],_0x57ddd6=_0x71499c['locale'];function _0x3359ed(_0x544150){const _0x4ac0ef=_0x71499c['commands']['get']('bulletedList')['value'],_0x58287c=_0x71499c['commands']['get']('numberedList')['value'];return'numberedList'===_0x544150?_0x4ac0ef:_0x58287c;}_0x71499c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x132592){if('formatBlock'!=_0x132592['type'])return;const {data:_0x114491}=_0x132592;if(!_0x114491)return;let _0x265e5d,_0x22f41d,_0xa0bc68,_0x3d04d8;switch(_0x114491['commandName']){case'bulletedList':_0xa0bc68=_0x114491['commandParams'][0x0]['forceValue'],_0x3d04d8=_0x3359ed(_0x114491['commandName']),_0x265e5d=_0xa0bc68?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3d04d8&&_0x71499c['config']['get']('list.multiBlock')||(_0x265e5d='*Change\x20to:*\x20%0'),_0x22f41d={'type':'format','content':Bt(_0x57ddd6,_0x265e5d,Bt(_0x57ddd6,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xa0bc68=_0x114491['commandParams'][0x0]['forceValue'],_0x3d04d8=_0x3359ed(_0x114491['commandName']),_0x265e5d=_0xa0bc68?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3d04d8&&_0x71499c['config']['get']('list.multiBlock')||(_0x265e5d='*Change\x20to:*\x20%0'),_0x22f41d={'type':'format','content':Bt(_0x57ddd6,_0x265e5d,Bt(_0x57ddd6,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x265e5d='*Indent:*\x20%0',_0x22f41d={'type':'format','content':Bt(_0x57ddd6,_0x265e5d,Bt(_0x57ddd6,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x265e5d=function(_0x595180){const _0x4b2b4e=_0x595180['getFirstRange']();let _0x2be8d7=_0x4b2b4e['start']['nodeAfter'];for(;_0x2be8d7&&_0x4b2b4e['containsItem'](_0x2be8d7);){if(_0x2be8d7['getAttribute']('listIndent')>0x0)return!0x1;_0x2be8d7=_0x2be8d7['nextSibling'];}return!0x0;}(_0x132592)?Bt(_0x57ddd6,'*Format:*\x20remove\x20from\x20%0',Bt(_0x57ddd6,function(_0x268c3a){return'ELEMENT_'+_0x268c3a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x132592))):Bt(_0x57ddd6,'*Outdent:*\x20%0',Bt(_0x57ddd6,'ELEMENT_LIST_ITEM')),_0x22f41d={'type':'format','content':_0x265e5d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x114491['multipleBlocks']&&(_0x265e5d='*Merge:*\x20%0',_0x22f41d={'type':'deletion','content':Bt(_0x57ddd6,_0x265e5d,Bt(_0x57ddd6,'ELEMENT_LIST_ITEM'))});}return _0x22f41d;});}};function Zt(_0x4f1ed6){let _0x23fbeb=_0x4f1ed6['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x23fbeb;){const _0x468846=_0x23fbeb['getAttribute']('listItemId');if(!_0x468846)return!0x1;if(_0x468846==_0x4f1ed6['data']['newValue'])return'newValue';if(_0x468846==_0x4f1ed6['data']['oldValue'])return'oldValue';_0x23fbeb=_0x23fbeb['previousSibling'];}return!0x1;}var Jt=class extends _0x343d5f{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x137891=this['editor']['config']['get']('list.properties'),_0xc4f783=this['editor']['plugins']['get']('TrackChangesEditing');_0x137891['styles']&&_0xc4f783['enableDefaultAttributesIntegration']('listStyle'),_0x137891['reversed']&&_0xc4f783['enableDefaultAttributesIntegration']('listReversed'),_0x137891['startIndex']&&_0xc4f783['enableDefaultAttributesIntegration']('listStart');const _0x9314c3={'type':'format','content':''};_0xc4f783['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x21991c=this['editor']['locale'];_0xc4f783['descriptionFactory']['registerAttributeLabel']('listReversed',Bt(_0x21991c,'FORMAT_LIST_REVERSED')),_0xc4f783['descriptionFactory']['registerDescriptionCallback'](_0x701a83=>{const {data:_0x16069b}=_0x701a83;if(_0x16069b&&'listReversed'==_0x16069b['key'])return null==_0x16069b['newValue']||0x0==_0x16069b['newValue']&&null==_0x16069b['oldValue']?_0x9314c3:void 0x0;}),_0xc4f783['descriptionFactory']['registerAttributeLabel']('listStart',Bt(_0x21991c,'FORMAT_LIST_START')),_0xc4f783['descriptionFactory']['registerDescriptionCallback'](_0xd94f12=>{const {data:_0x12d9bc}=_0xd94f12;if(_0x12d9bc&&'listStart'==_0x12d9bc['key'])return null==_0x12d9bc['newValue']||0x1==_0x12d9bc['newValue']&&null==_0x12d9bc['oldValue']?_0x9314c3:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x54f8d8=>{if(_0x54f8d8['batch']['isUndo'])return!0x1;let _0x1c80f5=!0x1;const _0x5510c2=_0xc4f783['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e8ad5=>{const _0x4bd7de=_0xc4f783['_getAttributeKey'](_0x2e8ad5);return'listStart'==_0x4bd7de||'listReversed'==_0x4bd7de;});for(const _0x316ed9 of _0x5510c2){const _0x594118=_0x316ed9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x594118&&'customNumbered'!=_0x594118&&(_0xc4f783['_findSuggestions'](_0x316ed9['getFirstRange'](),'attribute')['find'](_0x1da8f3=>'listType'==_0xc4f783['_getAttributeKey'](_0x1da8f3['suggestion']))||(_0x54f8d8['removeMarker'](_0x316ed9['getFirstMarker']()),_0x1c80f5=!0x0));}return _0x1c80f5;}),this['_registerLegacyDescription']();}handleDescriptions(_0x54e2a8){const _0x586e6b=this['editor']['locale'],{data:_0x50b258}=_0x54e2a8,_0x1a3e7d={'type':'format','content':''};if(!_0x50b258||'listStyle'!=_0x50b258['key'])return;if(!_0x50b258['oldValue'])return'default'==_0x50b258['newValue']?_0x1a3e7d:{'type':'format','content':''+Bt(_0x586e6b,'*Set\x20format:*\x20%0',Bt(_0x586e6b,this['_getTranslationKeyForListStyle'](_0x50b258['newValue'])))};if(!_0x50b258['newValue']){if('default'==_0x50b258['oldValue'])return _0x1a3e7d;let _0x2cf4d8=_0x54e2a8['head'];for(;_0x2cf4d8;){if(_0x2cf4d8['data']&&'listType'==_0x2cf4d8['data']['key']&&_0x2cf4d8['data']['newValue'])return _0x1a3e7d;_0x2cf4d8=_0x2cf4d8['next'];}return{'type':'format','content':''+Bt(_0x586e6b,'*Remove\x20format:*\x20%0',Bt(_0x586e6b,this['_getTranslationKeyForListStyle'](_0x50b258['oldValue'])))};}if('default'!=_0x50b258['newValue'])return{'type':'format','content':''+Bt(_0x586e6b,'*Set\x20format:*\x20%0',Bt(_0x586e6b,this['_getTranslationKeyForListStyle'](_0x50b258['newValue'])))};let _0x39f23c=_0x54e2a8['head'];for(;_0x39f23c;){if(_0x39f23c['data']&&'listType'==_0x39f23c['data']['key']&&_0x39f23c['data']['newValue']&&_0x39f23c['data']['oldValue'])return _0x1a3e7d;_0x39f23c=_0x39f23c['next'];}return{'type':'format','content':Bt(_0x586e6b,'*Set\x20format:*\x20%0',Bt(_0x586e6b,'ELEMENT_'+_0x54e2a8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x4c6122=this['editor'],_0x28d011=_0x4c6122['locale'];_0x4c6122['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17fe12=>{if('formatBlock'!=_0x17fe12['type'])return;const {data:_0x4fb175}=_0x17fe12;if(!_0x4fb175)return;let _0x5c36d4,_0x22b149;switch(_0x4fb175['commandName']){case'listStyle':_0x5c36d4='*Change\x20to:*\x20%0',_0x22b149={'type':'format','content':Bt(_0x28d011,_0x5c36d4,Bt(_0x28d011,this['_getTranslationKeyForListStyle'](_0x4fb175['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5c36d4=_0x4fb175['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x22b149={'type':'format','content':Bt(_0x28d011,_0x5c36d4)};break;case'listStart':_0x5c36d4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x22b149={'type':'format','content':Bt(_0x28d011,_0x5c36d4,_0x4fb175['commandParams'][0x0]['startIndex'])};}return _0x22b149;});}_getTranslationKeyForListStyle(_0x26bc5a){return'ELEMENT_'+(_0x33c5e3=_0x26bc5a,te['includes'](_0x33c5e3)?'bulleted':ee['includes'](_0x33c5e3)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x26bc5a['toUpperCase']()['replace'](/-/g,'_');var _0x33c5e3;}};const te=['disc','circle','square'],ee=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var ne=class extends _0x343d5f{afterInit(){const _0x51dcdc=this['editor'];_0x51dcdc['commands']['get']('emoji')&&_0x51dcdc['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ie=class extends _0x343d5f{static get requires(){return[pt];}init(){const _0x4460b6=this['editor'],_0x2251bb=_0x4460b6['plugins']['get']('TrackChangesEditing'),_0x31859f=_0x4460b6['commands']['get']('enter');_0x2251bb['enableCommand']('enter',()=>{_0x4460b6['model']['change'](_0x18b8ec=>{const _0x1dcdd9=_0x4460b6['model']['document']['selection'],_0x132448=_0x1dcdd9['getFirstPosition'](),_0x35af65=ct['fromRange'](_0x1dcdd9['getFirstRange']());if(_0x31859f['enterBlock'](_0x18b8ec)){const _0x3746a6=_0x4460b6['model']['createPositionAt'](_0x132448['parent']['nextSibling'],0x0),_0x3bc095=_0x18b8ec['createRange'](_0x132448,_0x3746a6);_0x2251bb['markInsertion'](_0x3bc095);}else _0x18b8ec['setSelection'](_0x18b8ec['createRange'](_0x35af65['end']));_0x35af65['detach'](),_0x31859f['fire']('afterExecute',{'writer':_0x18b8ec});});});}},se=class extends _0x343d5f{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3c6b96=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c6b96['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3c6b96['enableCommand']('findNext'),_0x3c6b96['enableCommand']('findPrevious'),_0x3c6b96['enableCommand']('replace'),_0x3c6b96['enableCommand']('replaceAll');}['handleFindCommand'](_0x457b39,_0x58f13e,_0x4e2961={}){const _0x36d23e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x457b39(_0x4c4f4e=>{let _0x469e4f=('string'==typeof _0x58f13e?_0x36d23e['findByTextCallback'](_0x58f13e,_0x4e2961):_0x58f13e)(_0x4c4f4e);Array['isArray'](_0x469e4f)&&(_0x469e4f={'results':_0x469e4f,'searchText':'string'==typeof _0x58f13e?_0x58f13e:''});const _0x493891=_0x469e4f['results']['filter'](_0x4fd50a=>!0x1===this['_isInDeletionRange'](_0x4fd50a,_0x4c4f4e['item']));return{..._0x469e4f,'results':_0x493891};},_0x4e2961);}_isInDeletionRange(_0x3b26e3,_0x5af7b4){const _0x2b1f49=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5af7b4,_0x3b26e3['start']),this['editor']['model']['createPositionAt'](_0x5af7b4,_0x3b26e3['end']));for(const _0xcd79c0 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2b1f49['getIntersection'](_0xcd79c0['getRange']()))return!0x0;return!0x1;}};const re=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var oe=class extends _0x343d5f{afterInit(){const _0x294ae7=this['editor']['locale'],_0x5a0efc=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x11e43b,commandName:_0x352b7b}of re)this['editor']['plugins']['has'](_0x11e43b)&&_0x5a0efc['enableDefaultAttributesIntegration'](_0x352b7b);_0x5a0efc['descriptionFactory']['registerAttributeLabel']('fontSize',Bt(_0x294ae7,'FORMAT_FONT_SIZE')),_0x5a0efc['descriptionFactory']['registerAttributeLabel']('fontFamily',Bt(_0x294ae7,'FORMAT_FONT_FAMILY')),_0x5a0efc['descriptionFactory']['registerAttributeLabel']('fontColor',Bt(_0x294ae7,'FORMAT_FONT_COLOR')),_0x5a0efc['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Bt(_0x294ae7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5dcf0c=this['editor'],_0x5d453b=_0x5dcf0c['locale'];_0x5dcf0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x303fe5=>{const _0x4ee861=_0x5d453b['t'];if('formatInline'!=_0x303fe5['type'])return;const {data:_0x42a5ed}=_0x303fe5;if(null!=_0x42a5ed){if('fontSize'==_0x42a5ed['commandName']){const _0x4726f5=_0x42a5ed['commandParams'][0x0]['value'];if(_0x4726f5){const _0x26c4d9=_0x4ee861(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3fdc13=>_0x3fdc13['model']==_0x4726f5)['title'])['toLowerCase']();return{'type':'format','content':Bt(_0x5d453b,'*Set\x20font\x20size:*\x20%0',_0x26c4d9)};}return{'type':'format','content':Bt(_0x5d453b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x42a5ed['commandName']){const _0x3e98a5=_0x42a5ed['commandParams'][0x0]['value'];return _0x3e98a5?{'type':'format','content':Bt(_0x5d453b,'*Set\x20font\x20family:*\x20%0',_0x3e98a5)}:{'type':'format','content':Bt(_0x5d453b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x42a5ed['commandName']){const _0x27c2c3=_0x42a5ed['commandParams'][0x0]['value'];if(_0x27c2c3){const _0x28d05e=_0x31d355(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3c004f=>_0x3c004f['model']==_0x27c2c3);let _0x35d70c=_0x27c2c3,_0x23e443='';return _0x28d05e&&(_0x35d70c=_0x28d05e['label'],_0x23e443=_0x3508e8(_0x5d453b,_0x35d70c)['toLowerCase']()),{'type':'format','content':Bt(_0x5d453b,'*Set\x20font\x20color:*\x20%0',_0x23e443)['trim'](),'color':{'value':_0x27c2c3,'title':_0x23e443||_0x35d70c}};}return{'type':'format','content':Bt(_0x5d453b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x42a5ed['commandName']){const _0x1ec4be=_0x42a5ed['commandParams'][0x0]['value'];if(_0x1ec4be){const _0xaae5ef=_0x31d355(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x83fb4=>_0x83fb4['model']==_0x1ec4be);let _0x4499b1=_0x1ec4be,_0x3f7809='';return _0xaae5ef&&(_0x4499b1=_0xaae5ef['label'],_0x3f7809=_0x3508e8(_0x5d453b,_0x4499b1)['toLowerCase']()),{'type':'format','content':Bt(_0x5d453b,'*Set\x20font\x20background\x20color:*\x20%0',_0x3f7809)['trim'](),'color':{'value':_0x1ec4be,'title':_0x3f7809||_0x4499b1}};}return{'type':'format','content':Bt(_0x5d453b,'*Reset\x20font\x20background\x20color*')};}}});}},ae=class extends _0x343d5f{afterInit(){const {plugins:_0x5b228f}=this['editor'];_0x5b228f['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x5b228f['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x37a2ea,plugins:_0x58096b,commands:_0x545b31}=this['editor'],_0x2527a7=_0x58096b['get']('TrackChangesEditing');_0x545b31['get']('footnotesStyle')&&_0x2527a7['enableDefaultAttributesIntegration']('footnotesStyle'),_0x545b31['get']('footnotesStart')&&_0x2527a7['enableDefaultAttributesIntegration']('footnotesStart'),_0x2527a7['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Bt(_0x37a2ea,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x2527a7['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Bt(_0x37a2ea,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x2510d4=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x22977b,commands:_0x21c94a}=this['editor'];_0x21c94a['get']('insertFootnote')&&_0x2510d4['enableCommand']('insertFootnote'),_0x2510d4['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4ed005=>Bt(_0x22977b,'ELEMENT_FOOTNOTE_REF',_0x4ed005)),_0x2510d4['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x458a39=>Bt(_0x22977b,'ELEMENT_FOOTNOTE_DEFINITION',_0x458a39)),_0x2510d4['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x64ecdf=>Bt(_0x22977b,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x64ecdf));}},ce=class extends _0x343d5f{afterInit(){const _0x5acc9a=this['editor'],_0x1390e7=_0x5acc9a['plugins']['get']('TrackChangesEditing'),_0xa06aca=_0x5acc9a['commands']['get']('copyFormat'),_0x5bd693=_0x5acc9a['commands']['get']('pasteFormat');_0xa06aca&&_0x5bd693&&(_0x1390e7['enableDefaultAttributesIntegration']('pasteFormat'),_0x1390e7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x30063b=this['editor'],_0x5a1d95=_0x30063b['locale'];_0x30063b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dc56b=>{if('formatBlock'!=_0x3dc56b['type']&&'formatInline'!=_0x3dc56b['type'])return;const {data:_0x60dc6d}=_0x3dc56b;if(_0x60dc6d&&'pasteFormat'===_0x60dc6d['commandName']){const _0x1af82a=[],_0xf599e9=_0x60dc6d['commandParams'][0x0];for(const [_0x10e4f1,_0x162caa]of Object['entries'](_0xf599e9))_0x1af82a['push'](le(_0x30063b,_0x10e4f1,_0x162caa));return _0x1af82a['length']?{'type':'format','content':Bt(_0x5a1d95,'*Set\x20format\x20to:*\x20%0',_0x1af82a['join'](',\x20'))}:{'type':'format','content':Bt(_0x5a1d95,'*Remove\x20all\x20formatting*')};}});}};function le(_0x351f05,_0xe1b45e,_0x45a0c5){const _0x22af56=_0x351f05['locale'],_0x3d7fa8=_0x22af56['t'],_0x76ee23=_0xe1b45e['split'](/(?=[A-Z])/)['join']('\x20'),_0x495f42=_0x3d7fa8(_0x76ee23['charAt'](0x0)['toUpperCase']()+_0x76ee23['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x45a0c5)return _0x495f42;if('fontColor'===_0xe1b45e||'fontBackgroundColor'===_0xe1b45e){const _0x4d798a=_0x31d355(_0x351f05['config']['get']('fontColor.colors'))['find'](_0x4d1ddd=>_0x4d1ddd['model']==_0x45a0c5);return _0x495f42+'\x20('+(_0x4d798a?_0x3508e8(_0x22af56,_0x4d798a['label'])['toLowerCase']():_0x45a0c5)+')';}if('fontSize'===_0xe1b45e&&isNaN(parseFloat(_0x45a0c5))){const _0x5667dc=_0x351f05['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x351f05['config']['get']('fontSize.options'))['find'](_0x196415=>_0x196415['model']==_0x45a0c5);return _0x495f42+'\x20('+(_0x5667dc?_0x3d7fa8(_0x5667dc['title'])['toLowerCase']():_0x45a0c5)+')';}return _0x495f42+'\x20('+_0x45a0c5+')';}var ue=class extends _0x343d5f{afterInit(){const _0x548ad7=this['editor'];if(!_0x548ad7['plugins']['has']('GeneralHtmlSupport')||!_0x548ad7['plugins']['has']('DataSchema'))return;const _0x24b4f0=_0x548ad7['plugins']['get']('TrackChangesEditing'),_0x315488=_0x548ad7['plugins']['get']('GeneralHtmlSupport'),_0x3e1e13=_0x548ad7['plugins']['get']('DataSchema'),_0x1e2a38=_0x548ad7['locale'],_0x25a751=new Set(['htmlContent']);for(const _0x2dd966 of _0x3e1e13['getDefinitionsForView'](/.*/,!0x1)){const _0x44d6b7=_0x2dd966['view'],_0x2f2617=_0x315488['getGhsAttributeNameForElement'](_0x44d6b7);_0x25a751['add'](_0x2f2617),!_0x2dd966['isInline']||_0x2dd966['isObject']||'appliesToBlock'in _0x2dd966&&_0x2dd966['appliesToBlock']||_0x24b4f0['descriptionFactory']['registerAttributeLabel'](_0x2f2617,_0x44d6b7),_0x2dd966['model']['startsWith']('html')&&_0x24b4f0['descriptionFactory']['registerElementLabel'](_0x2dd966['model'],_0x3d35cb=>Bt(_0x1e2a38,'ELEMENT_HTML_TAG',[_0x3d35cb,_0x44d6b7]));}_0x24b4f0['descriptionFactory']['registerAttributeLabel']('htmlContent',Bt(_0x1e2a38,'FORMAT_RAW_HTML_CONTENT')),_0x24b4f0['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Bt(_0x1e2a38,'FORMAT_HTML_LIST_ITEM')),_0x24b4f0['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Bt(_0x1e2a38,'FORMAT_HTML_BULLETED_LIST')),_0x24b4f0['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Bt(_0x1e2a38,'FORMAT_HTML_NUMBERED_LIST')),_0x24b4f0['descriptionFactory']['registerDescriptionCallback'](_0x32f025=>{if('attribute'!==_0x32f025['type'])return;const _0x40ff9b=_0x32f025['data'];if(!_0x40ff9b||!_0x25a751['has'](_0x40ff9b['key']))return;if('htmlContent'===_0x40ff9b['key'])return{'type':'format','content':Bt(_0x1e2a38,'*Change\x20%0\x20content*',Bt(_0x1e2a38,'ELEMENT_RAW_HTML'))};const {setItems:_0x374456,removeItems:_0xbcfb01}=function(_0x6c2159,_0xa36d16,_0x33a37c){const _0x5b8c54=[],_0x2b26bf=[],_0x5f201c=_0x6c2159['styles']??{},_0x538b69=_0xa36d16['styles']??{};for(const _0x566b77 of new Set([...Object['keys'](_0x5f201c),...Object['keys'](_0x538b69)]))_0x5f201c[_0x566b77]!==_0x538b69[_0x566b77]&&(void 0x0===_0x538b69[_0x566b77]?_0x2b26bf['push'](_0x566b77):_0x5b8c54['push'](_0x566b77+'\x20('+_0x538b69[_0x566b77]+')'));const _0x52f62e=Bt(_0x33a37c,'FORMAT_HTML_CLASS'),_0x29f5cd=new Set(_0x6c2159['classes']??[]),_0x4a056f=new Set(_0xa36d16['classes']??[]),_0x1ef36b=[..._0x4a056f]['some'](_0x5339e4=>!_0x29f5cd['has'](_0x5339e4)),_0x114117=[..._0x29f5cd]['some'](_0x4ce08c=>!_0x4a056f['has'](_0x4ce08c));_0x1ef36b&&_0x5b8c54['push'](_0x52f62e),_0x114117&&_0x2b26bf['push'](_0x52f62e);const _0x23b774=Bt(_0x33a37c,'FORMAT_HTML_ATTRIBUTE'),_0x1793f4=_0x6c2159['attributes']??{},_0x33ca9d=_0xa36d16['attributes']??{};let _0x199573=!0x1,_0x4c5100=!0x1;for(const _0x54dde0 of new Set([...Object['keys'](_0x1793f4),...Object['keys'](_0x33ca9d)]))_0x1793f4[_0x54dde0]!==_0x33ca9d[_0x54dde0]&&(void 0x0===_0x33ca9d[_0x54dde0]?_0x4c5100=!0x0:_0x199573=!0x0);return _0x199573&&_0x5b8c54['push'](_0x23b774),_0x4c5100&&_0x2b26bf['push'](_0x23b774),{'setItems':_0x5b8c54,'removeItems':_0x2b26bf};}(_0x40ff9b['oldValue']??{},_0x40ff9b['newValue']??{},_0x1e2a38);if(!_0x374456['length']&&!_0xbcfb01['length'])return;const _0x5286e4=[];return _0x374456['length']&&_0x5286e4['push'](Bt(_0x1e2a38,'*Set\x20format:*\x20%0',_0x374456['join'](',\x20'))),_0xbcfb01['length']&&_0x5286e4['push'](Bt(_0x1e2a38,'*Remove\x20format:*\x20%0',_0xbcfb01['join'](',\x20'))),{'type':'format','content':_0x5286e4['join']('\x0a')};});}},de=class extends _0x343d5f{_headingOptions;afterInit(){const _0x440bea=this['editor'];if(!_0x440bea['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x440bea['config']['get']('heading.options');const _0x1b1099=_0x440bea['locale'],_0x37b70f=_0x440bea['plugins']['get']('TrackChangesEditing');_0x37b70f['enableDefaultAttributesIntegration']('heading');for(const _0x5488c6 of this['_headingOptions'])'paragraph'!=_0x5488c6['model']&&_0x37b70f['descriptionFactory']['registerElementLabel'](_0x5488c6['model'],_0x546fc3=>{const _0x4f60ab=this['_getHeadingLevel'](_0x5488c6['model']);return null!==_0x4f60ab?_0x1557f4(_0x546fc3,_0x4f60ab):_0x2c728d(_0x546fc3,_0x5488c6['title']);});function _0x1557f4(_0x3bc1db,_0xa35e5f){return Bt(_0x1b1099,'ELEMENT_HEADING',[_0x3bc1db,_0xa35e5f]);}function _0x2c728d(_0x4dec89,_0x415c8c){return Bt(_0x1b1099,'ELEMENT_HEADING_CUSTOM',[_0x4dec89,_0x415c8c]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4ef13b=this['editor'],_0x1eeec3=_0x4ef13b['locale'];function _0x4a5b1d(_0x1b8a86,_0x3de2a5){return Bt(_0x1eeec3,'ELEMENT_HEADING_CUSTOM',[_0x1b8a86,_0x3de2a5]);}_0x4ef13b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49a6d4=>{if('formatBlock'!=_0x49a6d4['type'])return;const {data:_0x2b4826}=_0x49a6d4;if(_0x2b4826&&'heading'==_0x2b4826['commandName']){const _0x7ac975=_0x2b4826['commandParams'][0x0]['value'],_0x2b63d8=this['_getHeadingLevel'](_0x7ac975);if(null!==_0x2b63d8)return{'type':'format','content':Bt(_0x1eeec3,'*Change\x20to:*\x20%0',(_0x2005ba=0x1,_0x3df72f=_0x2b63d8,Bt(_0x1eeec3,'ELEMENT_HEADING',[_0x2005ba,_0x3df72f])))};const _0x38f96d=this['_headingOptions']['find'](_0x283e61=>_0x283e61['model']===_0x7ac975)['title'];return{'type':'format','content':Bt(_0x1eeec3,'*Change\x20to:*\x20%0',_0x4a5b1d(0x1,_0x38f96d))};}var _0x2005ba,_0x3df72f;});}_getHeadingLevel(_0x58a531){const _0x1b52bf=_0x58a531['match'](/^heading(\d+)/);if(_0x1b52bf)return _0x1b52bf[0x1];const _0x1b6954=this['_headingOptions']?.['find'](_0x25d340=>_0x25d340['model']==_0x58a531);if(_0x1b6954&&_0x1b6954['view']){const _0x219794=_0x1b6954['view'],_0x24f0eb=(_0x219794['name']??_0x219794)['match'](/^h(\d+)/);if(_0x24f0eb)return _0x24f0eb[0x1];}return null;}},he=class extends _0x343d5f{afterInit(){const _0x1e5090=this['editor'];if(!_0x1e5090['plugins']['has']('HighlightEditing'))return;const _0x332ce6=_0x1e5090['plugins']['get']('TrackChangesEditing'),_0x1f2c96=_0x1e5090['locale'];_0x332ce6['enableDefaultAttributesIntegration']('highlight'),_0x332ce6['descriptionFactory']['registerAttributeLabel']('highlight',Bt(_0x1f2c96,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x45d461=this['editor'],_0x582576=_0x45d461['locale'];_0x45d461['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2761af=>{if('formatInline'!=_0x2761af['type'])return;const {data:_0x18e331}=_0x2761af;if(_0x18e331&&'highlight'==_0x18e331['commandName']){const _0x598f1a=_0x582576['t'],_0x320274=_0x18e331['commandParams'][0x0]['value'];if(_0x320274){const _0x2625d9=_0x45d461['config']['get']('highlight.options')['find'](_0x520bcb=>_0x520bcb['model']==_0x320274),_0x262a25=_0x598f1a(_0x2625d9['title'])['toLowerCase']();return{'type':'format','content':Bt(_0x582576,'*Set\x20highlight:*\x20%0',_0x262a25),'color':{'value':_0x2625d9['color'],'title':_0x2625d9['title']}};}return{'type':'format','content':Bt(_0x582576,'*Remove\x20highlight*',Bt(_0x582576,'FORMAT_HIGHLIGHT'))};}});}},ge=class extends _0x343d5f{afterInit(){const _0x16ded5=this['editor'];if(!_0x16ded5['plugins']['has']('HorizontalLineEditing'))return;_0x16ded5['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1d3b3b=_0x16ded5['plugins']['get']('TrackChangesEditing'),_0x357ae0=_0x16ded5['locale'];_0x1d3b3b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1c95d0=>Bt(_0x357ae0,'ELEMENT_HORIZONTAL_LINE',_0x1c95d0));}},fe=class extends _0x343d5f{afterInit(){const _0x599bd5=this['editor'];if(!_0x599bd5['plugins']['has']('HtmlEmbed'))return;const _0x45c045=_0x599bd5['plugins']['get']('TrackChangesEditing'),_0x2b4ab0=_0x599bd5['locale'];_0x45c045['descriptionFactory']['registerElementLabel']('rawHtml',_0x3c8601=>Bt(_0x2b4ab0,'ELEMENT_HTML_EMBED',_0x3c8601)),_0x45c045['enableDefaultAttributesIntegration']('htmlEmbed'),_0x45c045['descriptionFactory']['registerDescriptionCallback'](_0x286d87=>{if('attribute'!=_0x286d87['type'])return;const {data:_0x53895f}=_0x286d87;if(_0x53895f&&'value'==_0x53895f['key']&&_0x286d87['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3be7ca=Bt(_0x2b4ab0,'ELEMENT_HTML_EMBED');return{'type':'format','content':Bt(_0x2b4ab0,'*Change\x20%0\x20content*',_0x3be7ca)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x95b8d0=this['editor'],_0x5b4a12=_0x95b8d0['locale'];_0x95b8d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd6ed0a=>{if('formatBlock'!=_0xd6ed0a['type'])return;const {data:_0x38e8bb}=_0xd6ed0a;if(_0x38e8bb&&'htmlEmbed'==_0x38e8bb['commandName']){const _0x4a761c=Bt(_0x5b4a12,'ELEMENT_HTML_EMBED');return{'type':'format','content':Bt(_0x5b4a12,'*Change\x20%0\x20content*',_0x4a761c)};}});}},me=class extends _0x343d5f{afterInit(){const _0x389b54=this['editor'];if(!_0x389b54['plugins']['has']('ImageEditing'))return;const _0x214cec=_0x389b54['plugins']['get']('TrackChangesEditing'),_0x543e8d=_0x389b54['plugins']['get']('ImageUtils'),_0x38c563=_0x389b54['locale'];_0x214cec['enableCommand']('insertImage'),_0x214cec['descriptionFactory']['registerElementLabel']('imageBlock',_0x21212d=>Bt(_0x38c563,'ELEMENT_IMAGE',_0x21212d)),_0x214cec['descriptionFactory']['registerElementLabel']('imageInline',_0x316f65=>Bt(_0x38c563,'ELEMENT_INLINE_IMAGE',_0x316f65)),_0x214cec['descriptionFactory']['registerElementLabel']('caption',()=>Bt(_0x38c563,'ELEMENT_CAPTION')),_0x389b54['plugins']['has']('ImageUploadEditing')&&_0x214cec['enableCommand']('uploadImage'),_0x389b54['plugins']['has']('ImageBlockEditing')&&_0x389b54['plugins']['has']('ImageInlineEditing')&&(_0x214cec['enableCommand']('imageTypeInline',(_0x2c06ad,_0x3da1a9)=>{const _0x29ef20=_0x543e8d['getClosestSelectedImageElement'](_0x389b54['model']['document']['selection']);_0x389b54['model']['change'](()=>{_0x214cec['markBlockFormat'](_0x29ef20,{'commandName':'imageTypeInline','commandParams':[_0x3da1a9]},[],'convertBlockImageToInline');});}),_0x214cec['enableCommand']('imageTypeBlock',(_0x4aaa96,_0x53db7f)=>{_0x389b54['model']['change'](_0x58e36c=>{let _0x2e07bc=_0x543e8d['getClosestSelectedImageElement'](_0x389b54['model']['document']['selection']),_0x4f2d10=_0x58e36c['createRangeOn'](_0x2e07bc);const _0x55287d=at['fromPosition'](_0x4f2d10['start'],'toPrevious'),_0x4fac46=at['fromPosition'](_0x4f2d10['end'],'toNext');_0x214cec['forceDefaultExecution'](()=>_0x4aaa96(_0x53db7f)),_0x2e07bc=_0x543e8d['getClosestSelectedImageElement'](_0x389b54['model']['document']['selection']),_0x4f2d10=_0x58e36c['createRangeOn'](_0x2e07bc);const _0x26e9ae=_0x58e36c['createRange'](_0x55287d,_0x4fac46);_0x55287d['detach'](),_0x4fac46['detach'](),_0x214cec['markBlockFormat'](_0x2e07bc,{'commandName':'imageTypeInline','commandParams':[_0x53db7f]},[],'convertInlineImageToBlock'),_0x26e9ae['start']['isBefore'](_0x4f2d10['start'])&&_0x214cec['markInsertion'](_0x58e36c['createRange'](_0x26e9ae['start'],_0x4f2d10['start']),'convertInlineImageToBlock'),_0x4f2d10['end']['isBefore'](_0x26e9ae['end'])&&_0x214cec['markInsertion'](_0x58e36c['createRange'](_0x4f2d10['end'],_0x26e9ae['end']),'convertInlineImageToBlock');});}),_0x214cec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x214cec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x214cec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x214cec['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x214cec['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x214cec['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x23fa8f])=>{const _0x1e4cae=_0x214cec['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x428565=_0x23fa8f['start'],_0x3f22b7=_0x23fa8f['end'];const _0x3584bb=_0x389b54['model']['schema']['getNearestSelectionRange'](_0x428565,'backward'),_0x527683=_0x389b54['model']['schema']['getNearestSelectionRange'](_0x3f22b7,'forward');_0x3584bb['isCollapsed']&&(_0x428565=_0x3584bb['start']),_0x527683['isCollapsed']&&(_0x3f22b7=_0x527683['end']),_0x1e4cae([_0x389b54['model']['createRange'](_0x428565,_0x3f22b7)]);}),_0x214cec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2af893),_0x214cec['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2af893)),_0x389b54['plugins']['has']('ImageCaptionEditing')&&(_0x214cec['enableCommand']('toggleImageCaption',(_0x255650,_0x45bfc1)=>{const _0x5c170a=_0x389b54['plugins']['get']('ImageCaptionUtils');let _0x15c858=_0x543e8d['getClosestSelectedImageElement'](_0x389b54['model']['document']['selection']),_0x7584ae=_0x5c170a['getCaptionFromImageModelElement'](_0x15c858);_0x389b54['model']['change'](()=>{if(_0x7584ae)return void _0x214cec['markDeletion'](_0x389b54['model']['createRangeOn'](_0x7584ae));const _0x9965bc=_0x543e8d['isBlockImage'](_0x15c858);_0x255650(_0x45bfc1),_0x15c858=_0x543e8d['getClosestSelectedImageElement'](_0x389b54['model']['document']['selection']),_0x7584ae=_0x5c170a['getCaptionFromImageModelElement'](_0x15c858),_0x214cec['markInsertion'](_0x389b54['model']['createRangeOn'](_0x7584ae),_0x9965bc?null:'imageCaption');});}),_0x214cec['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2af893));const _0x202898=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xba1de2(_0x25e2ca,_0x19da47){const _0x4c51fb=_0x202898['findIndex'](({type:_0x42cc6d,subType:_0x46eed5})=>_0x25e2ca['type']==_0x42cc6d&&_0x25e2ca['subType']==_0x46eed5),_0x2736d8=_0x202898['findIndex'](({type:_0x574bc7,subType:_0x1e93fb})=>_0x19da47['type']==_0x574bc7&&_0x19da47['subType']==_0x1e93fb);if(_0x4c51fb<0x0||_0x2736d8<0x0)return!0x1;const _0x27f19d=_0x25e2ca['getFirstRange'](),_0x266ead=_0x19da47['getFirstRange']();if((0x0==_0x4c51fb||0x1==_0x4c51fb)&&0x2==_0x2736d8&&_0x27f19d['isIntersecting'](_0x266ead))return!0x0;if(0x2==_0x4c51fb&&0x3==_0x2736d8){const _0x2f47b6=_0x214cec['_findSuggestions'](_0x27f19d,'insertion')['filter'](({suggestion:_0x2db425,meta:_0x4f9a87})=>_0x4f9a87['isOwn']&&'convertInlineImageToBlock'==_0x2db425['subType']);if(_0x2f47b6['length']>0x1&&_0x266ead['end']['isEqual'](_0x27f19d['start']))return!0x0;if(0x1==_0x2f47b6['length']&&(_0x27f19d['start']['isEqual'](_0x266ead['end'])||_0x27f19d['end']['isEqual'](_0x266ead['start'])))return!0x0;}if(0x3==_0x4c51fb&&0x3==_0x2736d8&&_0x27f19d['start']['isBefore'](_0x266ead['start'])){const _0x43f0ea=_0x27f19d['end']['nodeAfter'],_0x49608c=_0x266ead['start']['nodeBefore'];return _0x543e8d['isBlockImage'](_0x43f0ea)&&_0x43f0ea===_0x49608c;}return!0x1;}function _0x2af893(_0x167c9d,_0x222e45){return _0xba1de2(_0x167c9d,_0x222e45)?[_0x167c9d,_0x222e45]:_0xba1de2(_0x222e45,_0x167c9d)?[_0x222e45,_0x167c9d]:null;}_0x389b54['plugins']['has']('ImageResize')&&(_0x214cec['enableDefaultAttributesIntegration']('resizeImage'),_0x214cec['descriptionFactory']['registerAttributeLabel']('resizedWidth',Bt(_0x38c563,'FORMAT_IMAGE_SIZE'))),_0x389b54['plugins']['has']('ImageTextAlternativeEditing')&&_0x214cec['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x389b54['plugins']['has']('PictureEditing')&&_0x214cec['descriptionFactory']['registerDescriptionCallback'](_0x3832ec=>{if('attribute'!=_0x3832ec['type'])return;const {data:_0x3fea6c}=_0x3832ec;return _0x3fea6c&&'sources'==_0x3fea6c['key']?{'type':'format','content':''}:void 0x0;}),_0x389b54['plugins']['has']('ImageSizeAttributes')&&_0x214cec['descriptionFactory']['registerDescriptionCallback'](_0x315a0c=>{if('attribute'!=_0x315a0c['type'])return;const {data:_0x2784b2}=_0x315a0c;return!_0x2784b2||'width'!=_0x2784b2['key']&&'height'!=_0x2784b2['key']?void 0x0:{'type':'format','content':''};}),_0x214cec['descriptionFactory']['registerDescriptionCallback'](_0x264aed=>{if(_0x202898['find'](({type:_0x3eca5c,subType:_0x1e7c6e})=>_0x264aed['type']==_0x3eca5c&&_0x264aed['subType']==_0x1e7c6e))return _0x264aed['previous']?{}:void 0x0;}),_0x214cec['descriptionFactory']['registerDescriptionCallback'](_0x4b9449=>{if('insertion'==_0x4b9449['type']||'deletion'==_0x4b9449['type']){const _0x374f61=_0x4b9449['getContainedElement']();if(_0x374f61&&_0x374f61['is']('element','caption'))return{'type':'insertion'==_0x4b9449['type']?'addObject':'removeObject','element':_0x374f61,'quantity':0x1};}}),_0x214cec['descriptionFactory']['registerDescriptionCallback'](_0x2c2d9a=>'formatBlock'==_0x2c2d9a['type']&&'convertInlineImageToBlock'==_0x2c2d9a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2c2d9a['type']&&'convertBlockImageToInline'==_0x2c2d9a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x214cec['descriptionFactory']['registerDescriptionCallback'](_0x46d66e=>{if('attribute'!=_0x46d66e['type'])return;const {data:_0x5de316}=_0x46d66e;if(!_0x5de316||'alt'!=_0x5de316['key'])return;const _0x1cc80b=_0x5de316['newValue'];return _0x1cc80b?{'type':'format','content':Bt(_0x38c563,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1cc80b+'\x22')}:{'type':'format','content':Bt(_0x38c563,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4f4e6e=this['editor'],_0x19cd95=_0x4f4e6e['locale'];_0x4f4e6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a1f6f=>{if('formatBlock'!=_0x3a1f6f['type']&&'formatInline'!=_0x3a1f6f['type'])return;const {data:_0x3d3047}=_0x3a1f6f;if(_0x3d3047){if('imageTextAlternative'==_0x3d3047['commandName']){const _0x4f3685=_0x3d3047['commandParams'][0x0]['newValue'];return _0x4f3685?{'type':'format','content':Bt(_0x19cd95,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4f3685+'\x22')}:{'type':'format','content':Bt(_0x19cd95,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3d3047['commandName']){const _0x19ea41=_0x3d3047['commandParams'][0x0]['width'];return _0x19ea41?{'type':'format','content':Bt(_0x19cd95,'*Set\x20image\x20width:*\x20%0',_0x19ea41)}:{'type':'format','content':Bt(_0x19cd95,'*Reset\x20image\x20width*')};}}});}},Ee=class extends _0x343d5f{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xf5225a=this['editor']['locale'],_0x5c2f43=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c2f43['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5c2f43['descriptionFactory']['registerDescriptionCallback'](_0x2e51a9=>{if('attribute'!=_0x2e51a9['type'])return;const {data:_0x24f5b1}=_0x2e51a9;return _0x24f5b1&&'src'==_0x24f5b1['key']?_0x24f5b1['newValue']&&_0x24f5b1['oldValue']?{'type':'format','content':Bt(_0xf5225a,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x3d6b85=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d6b85['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3d6b85['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3d6b85['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3d6b85['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5dc928=this['editor'],_0x21a3c2=_0x5dc928['locale'];_0x5dc928['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5898b3=>{if('formatBlock'!=_0x5898b3['type']&&'formatInline'!=_0x5898b3['type'])return;const {data:_0x14fc63}=_0x5898b3;return _0x14fc63&&'replaceImageSource'==_0x14fc63['commandName']?{'type':'format','content':Bt(_0x21a3c2,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},Te=class extends _0x343d5f{afterInit(){const _0x106fb7=this['editor'];if(!_0x106fb7['plugins']['has']('ImageStyleEditing'))return;const _0x43d62e=_0x106fb7['plugins']['get']('TrackChangesEditing'),_0x45c549=_0x106fb7['plugins']['get']('ImageUtils'),_0x1dae3e={};_0x43d62e['enableCommand']('imageStyle',(_0x371762,_0x7d8e98)=>{const _0x5dd822=_0x106fb7['plugins']['get']('Users')['me'],_0x5a5d03=_0x106fb7['commands']['get']('imageStyle');let _0x1c5b46=_0x45c549['getClosestSelectedImageElement'](_0x106fb7['model']['document']['selection']),_0x451ba2=_0x106fb7['model']['createRangeOn'](_0x1c5b46),_0x3cfcc1=_0x5a5d03['value'];if(_0x3cfcc1==_0x7d8e98['value'])return;if(_0x7d8e98['value']&&_0x45c549['isInlineImage'](_0x1c5b46)&&!_0x5a5d03['isStyleEnabled'](_0x7d8e98['value']))return;const _0x60402={'commandName':'imageStyle','commandParams':[_0x7d8e98],'formatGroupId':_0x4795d2()};_0x106fb7['model']['change'](()=>{if(_0x43d62e['getSuggestions']()['filter'](_0x392640=>_0x392640['isInContent']&&_0x5dd822==_0x392640['author']&&('formatBlock'==_0x392640['type']||'formatInline'==_0x392640['type'])&&('imageStylePreApply'==_0x392640['subType']||'imageStylePostApply'==_0x392640['subType'])&&_0x392640['getFirstRange']()['isEqual'](_0x451ba2))['forEach'](_0x27748c=>_0x43d62e['discardSuggestion'](_0x27748c['head'])),_0x1c5b46=_0x45c549['getClosestSelectedImageElement'](_0x106fb7['model']['document']['selection']),_0x451ba2=_0x106fb7['model']['createRangeOn'](_0x1c5b46),_0x5a5d03['refresh'](),_0x106fb7['commands']['get']('imageTypeInline')['refresh'](),_0x106fb7['commands']['get']('imageTypeBlock')['refresh'](),_0x3cfcc1=_0x5a5d03['value'],_0x3cfcc1!=_0x7d8e98['value'])return _0x45c549['isInlineImage'](_0x1c5b46)&&_0x5a5d03['shouldConvertImageType'](_0x7d8e98['value'],_0x1c5b46)?(_0x371762({..._0x7d8e98,'setImageSizes':!0x1}),_0x1c5b46=_0x45c549['getClosestSelectedImageElement'](_0x106fb7['model']['document']['selection']),void _0x43d62e['markBlockFormat'](_0x1c5b46,{..._0x60402,'commandReversedParams':[{'value':_0x3cfcc1||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x45c549['isBlockImage'](_0x1c5b46)?_0x43d62e['markBlockFormat'](_0x1c5b46,_0x60402,[],'imageStylePostApply'):_0x43d62e['markInlineFormat'](_0x451ba2,_0x60402,'imageStylePostApply'));});});for(const _0x374cdd of _0x106fb7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1dae3e[_0x374cdd['name']]=_0x374cdd['title']['toLowerCase']();_0x43d62e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x43d62e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x43d62e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x43d62e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x7f1e02])=>{_0x45c549['setImageNaturalSizeAttributes'](_0x7f1e02['getContainedElement']());}),_0x43d62e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3a9088,_0x3643dc)=>{_0x43d62e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3a9088,{'commandName':_0x3643dc['commandName'],'commandParams':_0x3643dc['commandReversedParams']});}),_0x43d62e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x146535,_0x14739b){return _0x550263(_0x146535,_0x14739b)?[_0x146535,_0x14739b]:_0x550263(_0x14739b,_0x146535)?[_0x14739b,_0x146535]:null;});const _0x11f495=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x550263(_0x42ebce,_0x4ff9f9){const _0x56a2a6=_0x11f495['findIndex'](({type:_0x54efd1,subType:_0x20b525})=>_0x42ebce['type']==_0x54efd1&&_0x42ebce['subType']==_0x20b525),_0x30c690=_0x11f495['findIndex'](({type:_0x49324d,subType:_0x4459d2})=>_0x4ff9f9['type']==_0x49324d&&_0x4ff9f9['subType']==_0x4459d2);if(_0x56a2a6<0x0||_0x30c690<0x0)return!0x1;const _0x55e6da=_0x42ebce['getFirstRange'](),_0x2046ac=_0x4ff9f9['getFirstRange']();if((0x0==_0x56a2a6||0x1==_0x56a2a6)&&0x2==_0x30c690&&_0x55e6da['isIntersecting'](_0x2046ac))return!0x0;if(0x2==_0x56a2a6&&0x3==_0x30c690){const _0x345d90=_0x43d62e['_findSuggestions'](_0x55e6da,'insertion')['filter'](({suggestion:_0x574773,meta:_0x7e6961})=>_0x7e6961['isOwn']&&'convertInlineImageToBlock'==_0x574773['subType']);if(_0x345d90['length']>0x1&&_0x2046ac['end']['isEqual'](_0x55e6da['start']))return!0x0;if(0x1==_0x345d90['length']&&(_0x55e6da['start']['isEqual'](_0x2046ac['end'])||_0x55e6da['end']['isEqual'](_0x2046ac['start'])))return!0x0;}if(0x3==_0x56a2a6&&0x3==_0x30c690&&_0x55e6da['start']['isBefore'](_0x2046ac['start'])){const _0x4a63d0=_0x55e6da['end']['nodeAfter'],_0x4c8ae3=_0x2046ac['start']['nodeBefore'];return _0x45c549['isBlockImage'](_0x4a63d0)&&_0x4a63d0===_0x4c8ae3;}return!0x1;}_0x106fb7['model']['document']['registerPostFixer'](()=>{let _0x290f79=!0x1;const _0x2e458b=Array['from'](_0x106fb7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf0db36,data:_0x123089}of _0x2e458b){const {group:_0x510227,type:_0x4d3b92,subType:_0x4a36c2,id:_0xb37d1d}=it(_0xf0db36);if('suggestion'==_0x510227&&_0x43d62e['hasSuggestion'](_0xb37d1d)){if('formatBlock'==_0x4d3b92&&('imageStylePreApply'==_0x4a36c2||'imageStylePostApply'==_0x4a36c2)){const _0x4cee35=_0x43d62e['getSuggestion'](_0xb37d1d);if(_0x123089['newRange']){const _0x482e92=_0x4cee35['getFirstRange']()['getContainedElement']();if(_0x45c549['isBlockImage'](_0x482e92))continue;_0x43d62e['discardSuggestion'](_0x4cee35),_0x290f79=!0x0;}}if('insertion'==_0x4d3b92&&'imageCaption'==_0x4a36c2&&!_0x123089['newRange']){const _0x1a893b=_0x43d62e['getSuggestion'](_0xb37d1d);_0x1a893b['next']&&_0x1a893b['next']['isInContent']&&(_0x43d62e['discardSuggestion'](_0x1a893b['next']),_0x290f79=!0x0);}}}return _0x290f79;}),this['_registerLegacyDescription'](_0x1dae3e);}_registerLegacyDescription(_0x2aa817){const _0x3b1fc6=this['editor'],_0x3568b4=_0x3b1fc6['locale'];_0x3b1fc6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29f96b=>{if('formatBlock'!=_0x29f96b['type']&&'formatInline'!=_0x29f96b['type'])return;const {data:_0xdeec0e}=_0x29f96b;if(!_0xdeec0e||'imageStyle'!=_0xdeec0e['commandName'])return;const _0x2de6f5=_0xdeec0e['commandParams'][0x0]['value'];return _0x50f833('side'===_0x2de6f5?Bt(_0x3568b4,'FORMAT_SIDE_IMAGE'):_0x2aa817[_0x2de6f5]||_0x2de6f5);function _0x50f833(_0x21ca8c){return{'type':'format','content':Bt(_0x3568b4,'*Format:*\x20%0',_0x21ca8c)};}});}},_e=class extends _0x343d5f{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x4d9ca4){super(_0x4d9ca4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x1f18cc=this['editor'],_0x500df6=_0x1f18cc['commands']['get']('importWord'),_0x15516c=_0x1f18cc['commands']['get']('trackChanges');_0x500df6&&(_0x500df6['on']('execute',(_0x456a33,[,_0x3e3519])=>{this['_trackChangesValueDuringImport']=_0x15516c['value'],_0x3e3519['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x500df6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x500df6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x15516c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1f18cc['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x1a4558,_0xb00238){const {suggestions:_0x31cce3}=_0xb00238,_0x5dd4a7=this['editor']['commands']['get']('trackChanges'),_0x3dbfed=_0x5dd4a7['value'];this['_trackChangesValueDuringImport']!==_0x3dbfed&&(_0x5dd4a7['execute'](),this['_trackChangesExecuted']=!0x0),_0x31cce3&&_0x31cce3['forEach'](({id:_0xa1b28f,type:_0x51302e,author:_0x1986a0,created_at:_0x4b8c13})=>{const _0x216e85={'id':_0xa1b28f,'type':_0x51302e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1986a0,'createdAt':_0x4b8c13?new Date(_0x4b8c13):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x216e85);});}},pe=class extends _0x343d5f{afterInit(){const _0x2eceea=this['editor'],_0x4ccf01=_0x2eceea['plugins']['get']('TrackChangesEditing');if(_0x2eceea['plugins']['has']('IndentEditing')&&(_0x4ccf01['enableCommand']('indent'),_0x4ccf01['enableCommand']('outdent')),_0x2eceea['plugins']['has']('IndentBlock')){for(const _0x3d2a74 of['indentBlock','outdentBlock'])_0x4ccf01['enableDefaultAttributesIntegration'](_0x3d2a74);if(_0x2eceea['plugins']['has']('ListEditing')){for(const _0x367111 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x4ccf01['enableDefaultAttributesIntegration'](_0x367111);}}const _0x509d8d=_0x2eceea['locale'];_0x4ccf01['descriptionFactory']['registerAttributeLabel']('blockIndent',Bt(_0x509d8d,'FORMAT_INDENT')),_0x4ccf01['descriptionFactory']['registerAttributeLabel']('blockIndentList',Bt(_0x509d8d,'FORMAT_INDENT')),_0x4ccf01['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Bt(_0x509d8d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1d6470=this['editor'],_0x103abb=_0x1d6470['locale'],_0x5817e1=_0x1d6470['plugins']['get']('TrackChangesEditing');_0x5817e1['descriptionFactory']['registerDescriptionCallback'](_0x33c26f=>{if('formatBlock'!=_0x33c26f['type'])return;const {data:_0x4df1a6}=_0x33c26f;if(!_0x4df1a6)return;if('indentBlock'!=_0x4df1a6['commandName']&&'outdentBlock'!=_0x4df1a6['commandName'])return;const _0x27532a=_0x33c26f['getItems']()[0x0],_0xa95b7=_0x5817e1['descriptionFactory']['getItemLabel'](_0x27532a);return'indentBlock'==_0x4df1a6['commandName']?{'type':'format','content':Bt(_0x103abb,'*Indent:*\x20%0',_0xa95b7)}:'outdentBlock'==_0x4df1a6['commandName']?{'type':'format','content':Bt(_0x103abb,'*Outdent:*\x20%0',_0xa95b7)}:void 0x0;});}},Le=class extends _0x343d5f{static get requires(){return[_t];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ie=class extends _0x343d5f{afterInit(){const _0x5e0036=this['editor'];if(!_0x5e0036['plugins']['has']('LinkEditing'))return;const _0x3136ad=_0x5e0036['plugins']['get']('TrackChangesEditing'),_0xf6421d=_0x5e0036['commands']['get']('link');_0x3136ad['enableDefaultAttributesIntegration']('link'),_0x3136ad['enableDefaultAttributesIntegration']('unlink');for(const _0x4c841b of _0xf6421d['manualDecorators'])_0x3136ad['descriptionFactory']['registerAttributeLabel'](_0x4c841b['id'],'link\x20('+_0x4c841b['label']['toLowerCase']()+')');_0x3136ad['descriptionFactory']['registerDescriptionCallback'](_0x4d5bd8=>{if('attribute'!=_0x4d5bd8['type'])return;const {data:_0x204f89}=_0x4d5bd8;if(!_0x204f89||'linkHref'!=_0x204f89['key'])return;const _0x4ac212=_0x204f89['newValue'],_0x4e2047=_0x5e0036['locale'];return{'type':'format','content':null==_0x4ac212?Bt(_0x4e2047,'*Remove\x20link*'):Bt(_0x4e2047,'*Set\x20link:*\x20%0','\x22'+_0x4ac212+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x339a68=this['editor'],_0x2cb029=_0x339a68['locale'];_0x339a68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1107dd=>{if('formatInline'!=_0x1107dd['type'])return;const {data:_0x5b38dc}=_0x1107dd;if(_0x5b38dc){if('link'==_0x5b38dc['commandName']){const _0x1700eb=_0x5b38dc['commandParams'][0x0];return{'type':'format','content':Bt(_0x2cb029,'*Set\x20link:*\x20%0','\x22'+_0x1700eb+'\x22')};}return'unlink'==_0x5b38dc['commandName']?{'type':'format','content':Bt(_0x2cb029,'*Remove\x20link*')}:void 0x0;}});}},Ae=class extends _0x343d5f{afterInit(){const _0x481d38=this['editor'],_0x3ddc3d=_0x481d38['locale'];if(!_0x481d38['plugins']['has']('LegacyListEditing'))return;const _0x555005=_0x481d38['plugins']['get']('TrackChangesEditing'),_0x593b43=_0x481d38['plugins']['has']('LegacyTodoListEditing');function _0x12d71b(_0x15308f){return()=>{const _0x11b158=_0x481d38['model']['document']['selection'],_0x57b105=_0x481d38['commands']['get'](_0x15308f);if(_0x57b105['value'])return void _0x481d38['execute']('paragraph',{});const _0x2aff0f=_0x15308f['slice'](0x0,-0x4),_0x17440e=function(_0x83a1f,_0x1bddc7,_0x3688de){let _0x588ff3=Array['from'](_0x83a1f)['filter'](_0x426603=>function(_0x47caab,_0x43381c){return _0x43381c['checkChild'](_0x47caab['parent'],'listItem')&&!_0x43381c['isObject'](_0x47caab);}(_0x426603,_0x3688de));_0x588ff3=_0x588ff3['filter'](_0x42dc9a=>!_0x42dc9a['is']('element','listItem')||_0x42dc9a['getAttribute']('listType')!=_0x1bddc7);const _0x3f3c9b=new Set();for(const _0x2052fb of _0x588ff3)_0x2052fb['is']('element','listItem')?_0x3f3c9b['add'](be(_0x2052fb)):_0x3f3c9b['add'](_0x2052fb);return Array['from'](_0x3f3c9b);}(_0x11b158['getSelectedBlocks'](),_0x2aff0f,_0x481d38['model']['schema']);_0x481d38['model']['change'](()=>{for(const _0xc5254a of _0x17440e)_0x555005['markBlockFormat'](_0xc5254a,{'commandName':_0x15308f,'commandParams':[{'forceValue':!_0x57b105['value']}],'formatGroupId':'blockName'},Ce(_0xc5254a));});};}function _0x491560(_0x441329){return()=>{const _0x830e8e=function(_0x6ab0d1){let _0x1427ee=Array['from'](_0x6ab0d1);const _0x35fa11=_0x1427ee['findIndex'](_0x3c63a2=>'listItem'!=_0x3c63a2['name']);return _0x35fa11>-0x1&&(_0x1427ee=_0x1427ee['slice'](0x0,_0x35fa11)),_0x1427ee;}(_0x481d38['model']['document']['selection']['getSelectedBlocks']()),_0x185391=_0x481d38['model']['createRange'](_0x481d38['model']['createPositionAt'](_0x830e8e[0x0],'before'),_0x481d38['model']['createPositionAt'](_0x830e8e[_0x830e8e['length']-0x1],'end'));_0x481d38['model']['change'](()=>{_0x555005['markBlockFormat'](_0x185391,{'commandName':_0x441329,'commandParams':[],'formatGroupId':'listIndent'},function(_0x44d8a6){const _0x112446=new Set();for(const _0x200772 of _0x44d8a6){let _0x32fb52=_0x200772['nextSibling'];for(;_0x32fb52&&_0x32fb52['getAttribute']('listIndent')>_0x200772['getAttribute']('listIndent');)_0x112446['add'](_0x32fb52),_0x32fb52=_0x32fb52['nextSibling'];}return Array['from'](_0x112446);}(_0x830e8e));});};}_0x555005['enableCommand']('numberedList',_0x12d71b('numberedList')),_0x555005['enableCommand']('bulletedList',_0x12d71b('bulletedList')),_0x593b43&&_0x555005['enableCommand']('todoList',_0x12d71b('todoList')),_0x555005['enableCommand']('indentList',_0x491560('indentList')),_0x555005['enableCommand']('outdentList',_0x491560('outdentList')),_0x593b43&&_0x555005['enableCommand']('checkTodoList',()=>{const _0x1b3c0b=_0x481d38['commands']['get']('checkTodoList'),_0x4d3b11=Array['from'](_0x1b3c0b['_selectedElements']);_0x4d3b11['filter'](_0x251b79=>_0x251b79['getAttribute']('todoListChecked')!=_0x1b3c0b['value']),_0x481d38['model']['change'](()=>{for(const _0x21d85b of _0x4d3b11)_0x555005['markBlockFormat'](_0x21d85b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1b3c0b['value']}]});});}),_0x555005['descriptionFactory']['registerElementLabel']('listItem',_0x42b883=>Bt(_0x3ddc3d,'ELEMENT_LIST_ITEM',_0x42b883)),_0x555005['descriptionFactory']['registerDescriptionCallback'](_0x53a5fe=>{if('formatBlock'!=_0x53a5fe['type']&&'formatInline'!=_0x53a5fe['type'])return;const {data:_0x1a14a8}=_0x53a5fe;if(_0x1a14a8){if('numberedList'==_0x1a14a8['commandName']||'bulletedList'==_0x1a14a8['commandName']||'todoList'==_0x1a14a8['commandName'])switch(_0x1a14a8['commandName']['replace']('List','')){case'bulleted':return _0x483dc6(Bt(_0x3ddc3d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x483dc6(Bt(_0x3ddc3d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x483dc6(Bt(_0x3ddc3d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1a14a8['commandName'])return{'type':'format','content':Bt(_0x3ddc3d,'*Indent:*\x20%0',Bt(_0x3ddc3d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1a14a8['commandName'])return{'type':'format','content':Bt(_0x3ddc3d,'*Outdent:*\x20%0',Bt(_0x3ddc3d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1a14a8['commandName'])return _0x1a14a8['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x3ddc3d,'*Check\x20item*')}:{'type':'format','content':Bt(_0x3ddc3d,'*Uncheck\x20item*')};}function _0x483dc6(_0x1bd81e){return{'type':'format','content':Bt(_0x3ddc3d,'*Change\x20to:*\x20%0',_0x1bd81e)};}});}};function be(_0x3d378b){const _0x25449e=_0x3d378b['getAttribute']('listIndent');if(0x0==_0x25449e)return _0x3d378b;let _0xf3d477=_0x3d378b;for(;_0x3d378b['previousSibling']&&_0x3d378b['previousSibling']['is']('element','listItem');){const _0x15cfda=_0x3d378b['previousSibling']['getAttribute']('listIndent');if(_0x15cfda==_0x25449e)_0xf3d477=_0x3d378b['previousSibling'];else{if(_0x15cfda<_0x25449e)break;}_0x3d378b=_0x3d378b['previousSibling'];}return _0xf3d477;}function Ce(_0x150301){const _0x612fb6=[];if(_0x150301['is']('element','listItem')&&_0x150301['getAttribute']('listIndent')>0x0){let _0x41c00c=_0x150301['nextSibling'];for(;_0x41c00c&&'listItem'==_0x41c00c['name']&&_0x41c00c['getAttribute']('listIndent')==_0x150301['getAttribute']('listIndent');)_0x612fb6['push'](_0x41c00c),_0x41c00c=_0x41c00c['nextSibling'];}return _0x612fb6;}var ke=class extends _0x343d5f{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xd9076f=this['editor']['config']['get']('list.properties'),_0x53975f=this['editor']['plugins']['get']('TrackChangesEditing');_0xd9076f['styles']&&_0x53975f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xd9076f['reversed']&&_0x53975f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xd9076f['startIndex']&&_0x53975f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x53975f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x28fcd9,_0x3e7fea={}){const _0x43453e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x219ce7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x43453e['markMultiRangeBlockFormat'](_0x219ce7,{'commandName':'listStyle','commandParams':[{'type':_0x3e7fea['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x4a039a,_0x1c8625={}){const _0x24afd0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7c3370=this['_getSuggestionBlocks'](_0x482e76=>_0x482e76['is']('element','listItem')&&'numbered'===_0x482e76['getAttribute']('listType'));if(_0x7c3370['length']<0x1)return;const _0x3ba618=_0x7c3370['map'](_0x5040ab=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5040ab,'before'),this['editor']['model']['createPositionAt'](_0x5040ab,0x0)));this['editor']['model']['change'](()=>{_0x24afd0['markMultiRangeBlockFormat'](_0x3ba618,{'commandName':'listReversed','commandParams':[{'reversed':_0x1c8625['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x9fbe3e,_0x2193ed={}){const _0x205bec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15406d=this['_getSuggestionBlocks'](_0xd49b9e=>_0xd49b9e['is']('element','listItem')&&'numbered'===_0xd49b9e['getAttribute']('listType'));if(_0x15406d['length']<0x1)return;const _0xdcae24=_0x15406d['map'](_0x239268=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x239268,'before'),this['editor']['model']['createPositionAt'](_0x239268,0x0)));this['editor']['model']['change'](()=>{_0x205bec['markMultiRangeBlockFormat'](_0xdcae24,{'commandName':'listStart','commandParams':[{'startIndex':_0x2193ed['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0xe441c4){if('formatBlock'!=_0xe441c4['type']&&'formatInline'!=_0xe441c4['type'])return;const _0x5a9772=this['editor']['locale'],{data:_0x1d14d3}=_0xe441c4;if(!_0x1d14d3)return;let _0xcec2c1,_0x4e726f;switch(_0x1d14d3['commandName']){case'listStyle':_0xcec2c1='*Change\x20to:*\x20%0',_0x4e726f={'type':'format','content':Bt(_0x5a9772,_0xcec2c1,Bt(_0x5a9772,this['_getTranslationKeyForListStyle'](_0x1d14d3['commandParams'][0x0]['type'])))};break;case'listReversed':_0xcec2c1=_0x1d14d3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4e726f={'type':'format','content':Bt(_0x5a9772,_0xcec2c1)};break;case'listStart':_0xcec2c1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4e726f={'type':'format','content':Bt(_0x5a9772,_0xcec2c1,_0x1d14d3['commandParams'][0x0]['startIndex'])};}return _0x4e726f;}_getSuggestionBlocksForListStyle(){const _0x468b1b=this['editor']['plugins']['get']('LegacyListUtils');let _0x131bab=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x131bab[0x0]?.['is']('element','listItem')&&_0x131bab['unshift'](..._0x468b1b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x131bab[_0x131bab['length']-0x1]?.['is']('element','listItem')&&_0x131bab['push'](..._0x468b1b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x131bab=[...new Set(_0x131bab)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x131bab=_0x131bab['filter'](_0x21654f=>_0x21654f['is']('element','listItem'))),_0x131bab;}_getSuggestionBlocks(_0x359566){const _0x12703c=this['editor']['plugins']['get']('LegacyListUtils');let _0x82160e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x359566)['map'](_0x594afb=>{const _0x5999d9=this['editor']['model']['createPositionAt'](_0x594afb,0x0);return[..._0x12703c['getSiblingNodes'](_0x5999d9,'backward'),..._0x12703c['getSiblingNodes'](_0x5999d9,'forward')];})['flat']();return _0x82160e=[...new Set(_0x82160e)],_0x82160e;}_getTranslationKeyForListStyle(_0x10293a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x10293a)||'default')['toUpperCase']()+'_LIST_'+_0x10293a['toUpperCase']()['replace'](/-/g,'_');}},Re=class extends _0x343d5f{afterInit(){const _0x296bf3=this['editor'];if(!_0x296bf3['plugins']['has']('MediaEmbedEditing'))return;const _0x3826da=_0x296bf3['plugins']['get']('TrackChangesEditing'),_0x42ae49=_0x296bf3['locale'];_0x3826da['enableCommand']('mediaEmbed'),_0x3826da['descriptionFactory']['registerElementLabel']('media',_0x4d31a8=>Bt(_0x42ae49,'ELEMENT_MEDIA',_0x4d31a8)),_0x296bf3['plugins']['has']('MediaEmbedResizeEditing')&&(_0x3826da['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x3826da['descriptionFactory']['registerDescriptionCallback'](_0x11ffdd=>{if('attribute'!=_0x11ffdd['type'])return;const {data:_0x28c325}=_0x11ffdd;if(!_0x28c325||'resizedWidth'!=_0x28c325['key'])return;const _0x42c806=_0x11ffdd['getContainedElement']();if(!_0x42c806||!_0x42c806['is']('element','media'))return;const _0x529376=Bt(_0x42ae49,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Bt(_0x42ae49,'*Set\x20format:*\x20%0',_0x529376)};}));}},Ne=class extends _0x343d5f{afterInit(){const _0x2f8854=this['editor'];if(!_0x2f8854['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x3cefbc=_0x2f8854['plugins']['get']('TrackChangesEditing'),_0x5b7209=_0x2f8854['locale'],_0x46e799=_0x2f8854['plugins']['get']('MediaEmbedStyleEditing'),_0x40af95={};for(const _0x425ab3 of _0x46e799['normalizedStyles'])_0x40af95[_0x425ab3['name']]=_0x425ab3['title']['toLowerCase']();const _0x4a2718=_0x46e799['normalizedStyles']['find'](_0x44435a=>_0x44435a['isDefault'])?.['name'];_0x3cefbc['enableCommand']('mediaStyle',(_0xa15559,_0x598dfc)=>{const _0x195937=_0x2f8854['plugins']['get']('Users')['me'],_0x2b7cb6=_0x2f8854['commands']['get']('mediaStyle'),_0x3cf96f=function(_0x1562d3){const _0x5835ba=_0x1562d3['model']['document']['selection']['getSelectedElement']();return _0x5835ba&&_0x5835ba['is']('element','media')?_0x5835ba:null;}(_0x2f8854);if(!_0x3cf96f)return;const _0x2bb8e9=_0x2f8854['model']['createRangeOn'](_0x3cf96f);let _0x43539a=_0x2b7cb6['value'];if(_0x43539a==_0x598dfc['value'])return;const _0x100f90={'commandName':'mediaStyle','commandParams':[_0x598dfc],'formatGroupId':_0x4795d2()};_0x2f8854['model']['change'](()=>{_0x3cefbc['getSuggestions']()['filter'](_0x55a86f=>_0x55a86f['isInContent']&&_0x195937==_0x55a86f['author']&&'formatBlock'==_0x55a86f['type']&&'mediaStylePostApply'==_0x55a86f['subType']&&_0x55a86f['getFirstRange']()['isEqual'](_0x2bb8e9))['forEach'](_0x1ac9c7=>_0x3cefbc['discardSuggestion'](_0x1ac9c7['head'])),_0x2b7cb6['refresh'](),_0x43539a=_0x2b7cb6['value'],_0x43539a!=_0x598dfc['value']&&_0x3cefbc['markBlockFormat'](_0x3cf96f,{..._0x100f90,'commandReversedParams':[{'value':'string'==typeof _0x43539a?_0x43539a:null}]},[],'mediaStylePostApply');});}),_0x3cefbc['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x3cefbc['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x1c813e,_0x24b465)=>{_0x3cefbc['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1c813e,{'commandName':_0x24b465['commandName'],'commandParams':_0x24b465['commandReversedParams']});}),_0x3cefbc['descriptionFactory']['registerDescriptionCallback'](_0xa290d9=>{if('formatBlock'!=_0xa290d9['type'])return;const {data:_0x131838}=_0xa290d9;if(!_0x131838||'mediaStyle'!=_0x131838['commandName'])return;const _0x305287=_0x131838['commandParams'][0x0]['value']||_0x4a2718;if(!_0x305287)return;const _0x3dd8d2=_0x40af95[_0x305287]||_0x305287;return{'type':'format','content':Bt(_0x5b7209,'*Format:*\x20%0',_0x3dd8d2)};});}},ye=class extends _0x343d5f{afterInit(){const _0x2c28ef=this['editor'];_0x2c28ef['plugins']['has']('MentionEditing')&&_0x2c28ef['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Se=class extends _0x343d5f{afterInit(){const _0x4f155d=this['editor'];if(!_0x4f155d['plugins']['has']('MergeFieldsEditing'))return;const _0x2facc0=_0x4f155d['plugins']['get']('TrackChangesEditing'),_0xc2cb0a=_0x4f155d['locale'];_0x2facc0['enableCommand']('insertMergeField'),_0x2facc0['enableCommand']('insertMergeFieldBlock'),_0x2facc0['enableCommand']('insertMergeFieldImage'),_0x2facc0['descriptionFactory']['registerElementLabel']('mergeField',_0x4bdd5a=>Bt(_0xc2cb0a,'ELEMENT_MERGE_FIELD',_0x4bdd5a)),_0x2facc0['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xd32070=>Bt(_0xc2cb0a,'ELEMENT_MERGE_FIELD',_0xd32070)),_0x2facc0['descriptionFactory']['registerDescriptionCallback'](_0x376f11=>{if('insertion'!=_0x376f11['type']&&'deletion'!=_0x376f11['type'])return;const _0x5bb7a5=_0x376f11['getContainedElement']();if(null==_0x5bb7a5)return;const _0x39ba7c=_0x4f155d['plugins']['get']('MergeFieldsEditing');let _0x431e4;switch(_0x39ba7c['getMergeFieldType'](_0x5bb7a5)){case null:return;case'image':{const _0x340257=_0x39ba7c['unwrapAffixes'](_0x5bb7a5['getAttribute']('src'));_0x431e4=_0x39ba7c['getLabel'](_0x340257)||_0x340257;break;}default:{const _0x522200=_0x5bb7a5['getAttribute']('id');_0x431e4=_0x39ba7c['getLabel'](_0x522200)||_0x522200;break;}}return'insertion'==_0x376f11['type']?{'type':'insertion','content':Bt(_0xc2cb0a,'*Insert:*\x20%0','\x22'+_0x431e4+'\x22\x20'+Bt(_0xc2cb0a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Bt(_0xc2cb0a,'*Remove:*\x20%0','\x22'+_0x431e4+'\x22\x20'+Bt(_0xc2cb0a,'ELEMENT_MERGE_FIELD'))};});}},Me=class extends _0x343d5f{afterInit(){const _0x37fb67=this['editor'],_0x4633ec=_0x37fb67['plugins']['get']('TrackChangesEditing');_0x37fb67['plugins']['has']('MultiLevelList')&&(_0x4633ec['enableDefaultAttributesIntegration']('multiLevelList'),_0x4633ec['descriptionFactory']['registerDescriptionCallback'](_0x4542d6=>this['handleDescriptions'](_0x4542d6)));}handleDescriptions(_0x16f277){const _0x2c66e5=this['editor']['locale'],{data:_0x3a6c0a}=_0x16f277,_0x5b918b={'type':'format','content':''};if(_0x3a6c0a&&'listMarkerStyle'==_0x3a6c0a['key']){if(!_0x3a6c0a['oldValue'])return{'type':'format','content':Bt(_0x2c66e5,'*Set\x20format:*\x20%0',Bt(_0x2c66e5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3a6c0a['newValue']+')'};if(!_0x3a6c0a['newValue']){let _0x3bbe4a=_0x16f277['head'];for(;_0x3bbe4a;){if(_0x3bbe4a['data']&&'listType'==_0x3bbe4a['data']['key']&&_0x3bbe4a['data']['newValue'])return _0x5b918b;_0x3bbe4a=_0x3bbe4a['next'];}return{'type':'format','content':Bt(_0x2c66e5,'*Remove\x20format:*\x20%0',Bt(_0x2c66e5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3a6c0a['oldValue']+')'};}}}},Oe=class extends _0x343d5f{afterInit(){const _0x51b872=this['editor'];if(!_0x51b872['plugins']['has']('PageBreakEditing'))return;_0x51b872['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xcd539a=_0x51b872['plugins']['get']('TrackChangesEditing'),_0x72b10b=_0x51b872['locale'];_0xcd539a['descriptionFactory']['registerElementLabel']('pageBreak',_0x39e58a=>Bt(_0x72b10b,'ELEMENT_PAGE_BREAK',_0x39e58a));}},we=class extends _0x343d5f{afterInit(){const _0x58086f=this['editor'];if(!_0x58086f['plugins']['has']('Paragraph'))return;const _0x2b1e88=_0x58086f['locale'],_0x22c28d=_0x58086f['plugins']['get']('TrackChangesEditing');_0x22c28d['descriptionFactory']['registerElementLabel']('paragraph',_0x5705dd=>Bt(_0x2b1e88,'ELEMENT_PARAGRAPH',_0x5705dd)),_0x22c28d['enableDefaultAttributesIntegration']('paragraph'),_0x22c28d['enableCommand']('insertParagraph');const _0x556ab1=_0x22c28d['descriptionFactory'];_0x556ab1['registerDescriptionCallback'](_0x252620=>{if('insertion'!==_0x252620['type'])return;const {start:_0x5a4920,end:_0x562aa0}=_0x252620['getFirstRange']();if(!_0x5a4920['isTouching'](_0x562aa0)||!_0x5a4920['nodeAfter'])return;const _0x58841b=_0x58086f['model']['schema'],_0x457d47=_0x5a4920['nodeAfter'];return _0x58841b['isBlock'](_0x457d47)&&!_0x58841b['isLimit'](_0x457d47)&&_0x58841b['checkChild'](_0x457d47,'$text')?{'type':'insertion','content':Bt(_0x2b1e88,'*Insert:*\x20%0',_0x556ab1['getItemLabel'](_0x457d47,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x161cfe=this['editor'],_0x405a40=_0x161cfe['locale'];_0x161cfe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x219252=>{if('formatBlock'!=_0x219252['type'])return;const {data:_0x3b6853}=_0x219252;return _0x3b6853&&'paragraph'==_0x3b6853['commandName']?{'type':'format','content':Bt(_0x405a40,'*Change\x20to:*\x20%0',Bt(_0x405a40,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Be=class extends _0x343d5f{afterInit(){const _0x409f0c=this['editor'];_0x409f0c['commands']['get']('replaceSource')&&_0x409f0c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Fe=class extends _0x343d5f{afterInit(){const _0x4504f9=this['editor'];_0x4504f9['plugins']['has']('RemoveFormatEditing')&&(_0x4504f9['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x307dd4=this['editor'];_0x307dd4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28c971=>{if('formatBlock'!=_0x28c971['type']&&'formatInline'!=_0x28c971['type'])return;const {data:_0x1e7363}=_0x28c971;return _0x1e7363&&'removeFormat'==_0x1e7363['commandName']?{'type':'format','content':Bt(_0x307dd4['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},ve=class extends _0x343d5f{afterInit(){const _0x326368=this['editor'];if(!_0x326368['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x295007=_0x326368['plugins']['get']('TrackChangesEditing');_0x295007['enableCommand']('goToPreviousRestrictedEditingException'),_0x295007['enableCommand']('goToNextRestrictedEditingException');const _0x5dec2f=_0x326368['plugins']['get']('RestrictedEditingModeEditing');_0x5dec2f['enableCommand']('trackChanges'),_0x5dec2f['enableCommand']('acceptSuggestion'),_0x5dec2f['enableCommand']('discardSuggestion'),_0x5dec2f['enableCommand']('acceptAllSuggestions'),_0x5dec2f['enableCommand']('discardAllSuggestions'),_0x5dec2f['enableCommand']('acceptSelectedSuggestions'),_0x5dec2f['enableCommand']('discardSelectedSuggestions');}},De=class extends _0x343d5f{afterInit(){const _0x28bb1a=this['editor'];if(!_0x28bb1a['plugins']['has']('ShiftEnter'))return;const _0x21ab54=_0x28bb1a['plugins']['get']('TrackChangesEditing');_0x21ab54['enableCommand']('shiftEnter'),_0x21ab54['descriptionFactory']['registerElementLabel']('softBreak',_0xc43aa6=>Bt(_0x28bb1a['locale'],'ELEMENT_LINE_BREAK',_0xc43aa6));}};function Ue(_0x357e75,_0xced4dc,_0x189a49){const _0xa79912=[];for(const _0xe86bdf of _0xced4dc['getItems']())_0xe86bdf['hasAttribute'](_0x357e75)&&_0xa79912['push'](_0x189a49['createRangeOn'](_0xe86bdf));return _0xa79912;}var Pe=class extends _0x343d5f{afterInit(){const _0x27f685=this['editor'],_0x11333c=_0x27f685['plugins']['get']('TrackChangesEditing');_0x27f685['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x11333c['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0xa4aebe=this['editor'],_0x55a3ff=_0xa4aebe['model'],_0x184669=_0xa4aebe['locale'],_0x4e214d=_0xa4aebe['plugins']['get']('TrackChangesEditing'),_0x8c4f55='restrictedEditingException',_0x2e3e4d=_0xa4aebe['commands']['get'](_0x8c4f55);_0x4e214d['enableCommand'](_0x8c4f55,(_0x497816,_0x529016={})=>{const _0x98523=_0x55a3ff['document']['selection'];if(_0x98523['isCollapsed'])return void _0x497816(_0x529016);const _0x3a49f6=void 0x0!==_0x529016['forceValue']?_0x529016['forceValue']:!_0x2e3e4d['value'];_0x55a3ff['change'](()=>{const _0x39df28=Array['from'](_0x98523['getRanges']());for(const _0x54b86c of _0x39df28){const _0x22f710=_0x3a49f6?[_0x54b86c]:Ue(_0x8c4f55,_0x54b86c,_0x55a3ff);for(const _0x1b1280 of _0x22f710)_0x4e214d['markInlineFormat'](_0x1b1280,{'commandName':_0x8c4f55,'commandParams':[{'forceValue':_0x3a49f6}]});}});}),_0x4e214d['descriptionFactory']['registerDescriptionCallback'](_0x441104=>{if('formatBlock'!=_0x441104['type']&&'formatInline'!=_0x441104['type'])return;const {data:_0x2473c0}=_0x441104;return _0x2473c0&&_0x2473c0['commandName']==_0x8c4f55?_0x2473c0['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x184669,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Bt(_0x184669,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x771380=this['editor'],_0x3f273d=_0x771380['locale'],_0x4e9107=_0x771380['plugins']['get']('TrackChangesEditing'),_0x36ab='restrictedEditingExceptionBlock',_0x349508=this['editor']['commands']['get'](_0x36ab);_0x4e9107['enableCommand'](_0x36ab,(_0x505afa,_0x5cfa60={})=>{const _0x349a8c=this['editor']['model']['document']['selection'],_0x5ba024=_0x5cfa60&&void 0x0!==_0x5cfa60['forceValue']?_0x5cfa60['forceValue']:!_0x349508['value'];let _0x312b4b=[];if(_0x5ba024){const _0x489256=Array['from'](_0x349a8c['getSelectedBlocks']())['filter'](_0x217661=>function(_0x51de72){return!!_0x51de72['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x217661)||function(_0x428b81,_0x79ddcb){const _0x1580dd=_0x79ddcb['createContext'](_0x428b81['parent']);return!!_0x79ddcb['checkChild'](_0x1580dd,'restrictedEditingException')&&!!_0x79ddcb['checkChild'](_0x1580dd['push']('restrictedEditingException'),_0x428b81);}(_0x217661,this['editor']['model']['schema']));_0x312b4b=Rt(_0x489256,_0x771380['model']);}else{const _0x1fc4f9=Array['from'](_0x349a8c['getSelectedBlocks']())['map'](_0x3ad2fb=>function(_0x2640ef){let _0x47fb0e=_0x2640ef;for(;_0x47fb0e['parent'];){if('restrictedEditingException'==_0x47fb0e['parent']['name'])return _0x47fb0e;_0x47fb0e=_0x47fb0e['parent'];}return null;}(_0x3ad2fb))['filter'](_0x5cd36f=>!!_0x5cd36f);_0x312b4b=Rt(_0x1fc4f9,_0x771380['model']);}_0x771380['model']['change'](()=>{for(const _0x4ea7ed of _0x312b4b)_0x4e9107['markBlockFormat'](_0x4ea7ed,{'commandName':_0x36ab,'commandParams':[{'forceValue':_0x5ba024}]});});}),_0x4e9107['descriptionFactory']['registerDescriptionCallback'](_0x273438=>{const {data:_0x37b53c}=_0x273438;if(_0x37b53c&&_0x37b53c['commandName']==_0x36ab)return _0x37b53c['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x3f273d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Bt(_0x3f273d,'FORMAT_RESTRICTED_DISABLED')};});}},xe=class extends _0x343d5f{afterInit(){const _0x482c05=this['editor'];_0x482c05['plugins']['has']('Style')&&_0x482c05['plugins']['has']('DataSchema')&&(_0x482c05['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x2e18d4=this['editor'],_0x326cb8=_0x2e18d4['locale'];_0x2e18d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15720a=>{if('formatBlock'!=_0x15720a['type']&&'formatInline'!=_0x15720a['type'])return;const {data:_0x5a1885}=_0x15720a;return _0x5a1885&&'style'===_0x5a1885['commandName']?_0x5a1885['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x326cb8,'*Set\x20format:*\x20%0',_0x5a1885['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Bt(_0x326cb8,'*Remove\x20format:*\x20%0',_0x5a1885['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ge=class extends _0x343d5f{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x364b47){super(_0x364b47),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x3e508d=this['editor'],_0x2ee2ae=_0x3e508d['model']['document']['selection'];if(!_0x3e508d['plugins']['has']('TableEditing'))return;const _0x583b20=_0x3e508d['locale'],_0x587661=_0x3e508d['plugins']['get']('TrackChangesEditing'),_0x5f149e=_0x3e508d['plugins']['get']('TableUtils');_0x587661['descriptionFactory']['registerElementLabel']('table',_0x4a3de4=>Bt(_0x583b20,'ELEMENT_TABLE',_0x4a3de4)),this['_setupColumnsRowsFixing'](),_0x587661['enableCommand']('insertTable'),_0x587661['enableCommand']('selectTableRow'),_0x587661['enableCommand']('selectTableColumn');for(const _0x1baff5 of['insertTableRowAbove','insertTableRowBelow']){const _0x71cec7=_0x3e508d['commands']['get'](_0x1baff5);_0x587661['enableCommand'](_0x1baff5,_0x615e9e=>{_0x3e508d['model']['change'](_0x431c8d=>{_0x615e9e();const _0x33863b='above'===_0x71cec7['order'],_0x4ffdb1=_0x5f149e['getSelectionAffectedTableCells'](_0x2ee2ae),_0x213596=_0x5f149e['getRowIndexes'](_0x4ffdb1),_0x385fd1=_0x33863b?_0x213596['first']-0x1:_0x213596['last']+0x1,_0x342c04=_0x4ffdb1[0x0]['findAncestor']('table'),_0xe370ea=_0x5f149e['createTableWalker'](_0x342c04,{'startRow':_0x385fd1,'endRow':_0x385fd1}),_0x42f916=Array['from'](_0xe370ea)['map'](_0x53efe8=>_0x431c8d['createRangeOn'](_0x53efe8['cell']));_0x587661['markMultiRangeInsertion'](_0x42f916,'tableRow');});});}for(const _0xbd7b7b of['insertTableColumnLeft','insertTableColumnRight']){const _0x394a87=_0x3e508d['commands']['get'](_0xbd7b7b);_0x587661['enableCommand'](_0xbd7b7b,_0x24d7a4=>{_0x3e508d['model']['change'](_0x45818e=>{_0x24d7a4();const _0x140d47='left'===_0x394a87['order'],_0x1aab2e=_0x5f149e['getSelectionAffectedTableCells'](_0x2ee2ae),_0x485499=_0x5f149e['getColumnIndexes'](_0x1aab2e),_0x30dd11=_0x140d47?_0x485499['first']-0x1:_0x485499['last']+0x1,_0x39904f=_0x1aab2e[0x0]['findAncestor']('table'),_0x386d1c=_0x5f149e['createTableWalker'](_0x39904f,{'startRow':0x0,'column':_0x30dd11,'includeAllSlots':!0x1}),_0x24937e=Array['from'](_0x386d1c)['map'](_0x1256a8=>_0x45818e['createRangeOn'](_0x1256a8['cell']));_0x587661['markMultiRangeInsertion'](_0x24937e,'tableColumn');});});}for(const _0x3ff3fc of['removeTableRow','removeTableColumn']){const _0xe78e2d=_0x3ff3fc['substr'](0xb),_0x3751cc=_0xe78e2d['toLowerCase'](),_0x537910=_0x3751cc['substr'](0x0,0x3)+'span',_0x320042='table'+_0xe78e2d,_0xe5a572='min'+_0xe78e2d,_0x19c5b7='max'+_0xe78e2d;_0x587661['enableCommand'](_0x3ff3fc,()=>{_0x3e508d['model']['change'](_0x10661f=>{const _0x4985eb=_0x5f149e['getSelectionAffectedTableCells'](_0x2ee2ae),_0x1d4f0f=_0x4985eb[0x0]['findAncestor']('table');let _0x3d4e33;if('removeTableRow'==_0x3ff3fc){const _0x2d3a74=_0x5f149e['getRowIndexes'](_0x4985eb);_0x3d4e33={'startRow':_0x2d3a74['first'],'endRow':_0x2d3a74['last'],'includeAllSlots':!0x0};}else{const _0x5f0d94=_0x5f149e['getColumnIndexes'](_0x4985eb);_0x3d4e33={'startColumn':_0x5f0d94['first'],'endColumn':_0x5f0d94['last'],'includeAllSlots':!0x0};}const _0x46a2cf=_0x5f149e['createTableWalker'](_0x1d4f0f,_0x3d4e33),_0x1e56ff=Array['from'](_0x46a2cf)['map'](({cell:_0x23df85})=>_0x23df85),_0x4ecb37=He(_0x1e56ff['filter'](_0x1325ca=>_0x1325ca['hasAttribute'](_0x537910))),_0xa6d6c=He(_0x1e56ff['filter'](_0x2e28a9=>!_0x2e28a9['hasAttribute'](_0x537910)))['map'](_0x2842de=>_0x10661f['createRangeOn'](_0x2842de)),_0x56c26a=_0x587661['markMultiRangeDeletion'](_0xa6d6c,_0x320042);if(_0x56c26a&&('tableRow'==_0x56c26a['subType']||'tableColumn'==_0x56c26a['subType'])){const _0x372653=this['_getSuggestionCoords'](_0x56c26a);for(const _0x419125 of _0x4ecb37){const _0x5759f2=_0x10661f['createRangeOn'](_0x419125),_0xb05973=_0x5f149e['getCellLocation'](_0x419125),_0xd19737=_0x419125['getAttribute'](_0x537910)-0x1,_0x60c948=_0x372653[_0xe5a572],_0xb8cd64=_0x372653[_0x19c5b7];_0x60c948<=_0xb05973[_0x3751cc]&&_0xb05973[_0x3751cc]+_0xd19737<=_0xb8cd64&&_0x56c26a['addRange'](_0x5759f2);}}});});}function _0x286c5f(_0x2f79c3){const _0x22ed10=Array['from'](_0x2ee2ae['getRanges']())['map'](_0x3d533c=>ct['fromRange'](_0x3d533c));_0x3e508d['model']['change'](_0x1fd554=>{const _0x16ce7d=_0x1fd554['batch'];_0x2f79c3=_0x2f79c3['filter'](_0x2cd7a9=>'$graveyard'!=_0x2cd7a9['root']['rootName']),_0x1fd554['setSelection'](_0x2f79c3),_0x3e508d['commands']['get']('removeTableRow')['refresh'](),_0x3e508d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3e508d['model']['enqueueChange'](()=>{_0x3e508d['model']['enqueueChange'](_0x16ce7d,_0x4da527=>{const _0x459376=_0x22ed10['filter'](_0x2aa3d0=>'$graveyard'!=_0x2aa3d0['root']['rootName']);_0x459376['length']>0x0&&_0x4da527['setSelection'](_0x459376);for(const _0x4187a7 of _0x22ed10)_0x4187a7['detach']();});});});}function _0x1db08f(_0x1d19a7){_0x3e508d['model']['change'](_0x2017a8=>{const _0x5516d5=Array['from'](_0x2ee2ae['getRanges']())['map'](_0x34edce=>ct['fromRange'](_0x34edce)),_0x203052=[];for(const _0x4fe6e3 of _0x1d19a7)for(const _0x34a9fd of _0x4fe6e3['getItems']({'shallow':!0x0}))_0x203052['push'](_0x34a9fd);for(const _0x459fb1 of _0x203052)'$graveyard'!=_0x459fb1['root']['rootName']&&(_0x2017a8['setSelection'](_0x2017a8['createPositionAt'](_0x459fb1,0x0)),_0x3e508d['commands']['get']('removeTableColumn')['refresh'](),_0x3e508d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5836b4=_0x5516d5['filter'](_0x36c1db=>'$graveyard'!=_0x36c1db['root']['rootName']);_0x5836b4['length']>0x0&&_0x2017a8['setSelection'](_0x5836b4);for(const _0x268fb2 of _0x5516d5)_0x268fb2['detach']();});}function _0x21ee38(_0x6380b7,_0x212173){return _0x212173['every'](_0x2ffd00=>_0x6380b7['some'](_0x267835=>_0x267835['end']['isEqual'](_0x2ffd00['start'])||_0x2ffd00['end']['isEqual'](_0x267835['start'])));}function _0x569560(_0x21205a,_0x32b5b1){return!_0x21205a['some'](_0x5cd323=>_0x32b5b1['some'](_0x24783e=>_0x5cd323['isIntersecting'](_0x24783e)))&&_0x21205a['some'](_0x55052d=>_0x32b5b1['some'](_0x1e2f9f=>_0x55052d['end']['isTouching'](_0x1e2f9f['start'])));}_0x587661['descriptionFactory']['registerDescriptionCallback'](_0x2694b6=>{if('insertion'!=_0x2694b6['type']&&'deletion'!=_0x2694b6['type'])return;const _0x29bf7b=_0x2694b6['getContainedElement']();if(null!=_0x29bf7b&&_0x29bf7b['is']('element','table')){if('insertion'==_0x2694b6['type']){const _0x1aaf77=_0x2694b6['getItems']()['filter'](_0x1a7b36=>_0x1a7b36['is']('$textProxy'))['map'](_0x5c7958=>_0x5c7958['data']);if(_0x1aaf77['length'])return{'type':'insertion','content':Bt(_0x583b20,'*Insert:*\x20%0',Bt(_0x583b20,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1aaf77['join']('\x20')+'\x22'))};}if('deletion'==_0x2694b6['type']){const _0x1adbed=_0x2694b6['getItems']()['filter'](_0x8fb838=>_0x8fb838['is']('$textProxy'))['map'](_0x2a6b92=>_0x2a6b92['data']);if(_0x1adbed['length'])return{'type':'deletion','content':Bt(_0x583b20,'*Remove:*\x20%0',Bt(_0x583b20,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1adbed['join']('\x20')+'\x22'))};}}}),_0x587661['descriptionFactory']['registerDescriptionCallback'](_0x1a78ee=>{if('tableRow'==_0x1a78ee['subType']){const _0x2ab53a=_0x1a78ee['getItems']()['filter'](_0xb1b833=>_0xb1b833['is']('$textProxy'))['map'](_0x58cccd=>_0x58cccd['data']),_0x25802d=this['_getSuggestionCoords'](_0x1a78ee),_0xa9acda=_0x25802d['maxRow']-_0x25802d['minRow']+0x1;if('insertion'==_0x1a78ee['type'])return _0x2ab53a['length']?{'type':'insertion','content':Bt(_0x583b20,'*Insert:*\x20%0',Bt(_0x583b20,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xa9acda,'\x22'+_0x2ab53a['join']('\x20')+'\x22']))}:{'type':'insertion','content':Bt(_0x583b20,'*Insert:*\x20%0',Bt(_0x583b20,'ELEMENT_TABLE_ROW',_0xa9acda))};if('deletion'==_0x1a78ee['type'])return _0x2ab53a['length']?{'type':'deletion','content':Bt(_0x583b20,'*Remove:*\x20%0',Bt(_0x583b20,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xa9acda,'\x22'+_0x2ab53a['join']('\x20')+'\x22']))}:{'type':'deletion','content':Bt(_0x583b20,'*Remove:*\x20%0',Bt(_0x583b20,'ELEMENT_TABLE_ROW',_0xa9acda))};}if('tableColumn'==_0x1a78ee['subType']){const _0x58fba7=_0x1a78ee['getItems']()['filter'](_0x5b26c5=>_0x5b26c5['is']('$textProxy'))['map'](_0x2c7e8d=>_0x2c7e8d['data']),_0x4ef546=this['_getSuggestionCoords'](_0x1a78ee),_0x5caa1b=_0x4ef546['maxColumn']-_0x4ef546['minColumn']+0x1;if('insertion'==_0x1a78ee['type'])return _0x58fba7['length']?{'type':'insertion','content':Bt(_0x583b20,'*Insert:*\x20%0',Bt(_0x583b20,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5caa1b,'\x22'+_0x58fba7['join']('\x20')+'\x22']))}:{'type':'insertion','content':Bt(_0x583b20,'*Insert:*\x20%0',Bt(_0x583b20,'ELEMENT_TABLE_COLUMN',_0x5caa1b))};if('deletion'==_0x1a78ee['type'])return _0x58fba7['length']?{'type':'deletion','content':Bt(_0x583b20,'*Remove:*\x20%0',Bt(_0x583b20,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5caa1b,'\x22'+_0x58fba7['join']('\x20')+'\x22']))}:{'type':'deletion','content':Bt(_0x583b20,'*Remove:*\x20%0',Bt(_0x583b20,'ELEMENT_TABLE_COLUMN',_0x5caa1b))};}}),_0x587661['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x286c5f),_0x587661['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x286c5f),_0x587661['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1db08f),_0x587661['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1db08f),_0x587661['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x21ee38),_0x587661['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x21ee38),_0x587661['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x569560),_0x587661['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x569560);}_acceptFormatSuggestionCallbackFactory(){const _0x533138=this['editor'],_0x4ab9e0=_0x533138['model']['document']['selection'];return(_0x50bc64,_0x369ee9)=>{_0x533138['model']['change'](_0x1bb579=>{const {commandName:_0x26fc57,commandParams:_0x3c4fe3}=_0x369ee9;let _0x40609=_0x50bc64[0x0]['end']['nodeBefore'];_0x3c4fe3&&_0x3c4fe3[0x0]&&!0x1===_0x3c4fe3[0x0]['forceValue']&&(_0x40609=_0x50bc64[0x0]['start']['nodeAfter']);const _0x22b556=_0x1bb579['createRangeIn'](_0x40609);if('$graveyard'==_0x22b556['root']['rootName'])return;const _0x286b9b=Array['from'](_0x4ab9e0['getRanges']())['map'](_0x37d796=>ct['fromRange'](_0x37d796));_0x1bb579['setSelection'](_0x22b556),_0x533138['commands']['get'](_0x26fc57)['refresh'](),_0x3c4fe3['push']({'forceDefaultExecution':!0x0}),_0x533138['execute'](_0x26fc57,..._0x3c4fe3);const _0x7e2d15=_0x286b9b['filter'](_0x5c4172=>'$graveyard'!=_0x5c4172['root']['rootName']);_0x7e2d15['length']>0x0&&_0x1bb579['setSelection'](_0x7e2d15);for(const _0x1ac1ca of _0x286b9b)_0x1ac1ca['detach']();});};}_getCoordsForCells(_0x424ecf){const _0x352f50=this['editor']['plugins']['get']('TableUtils');let _0x47ab21=Number['MAX_SAFE_INTEGER'],_0xb4cb16=Number['MIN_SAFE_INTEGER'],_0x421a2a=Number['MAX_SAFE_INTEGER'],_0x46ebc3=Number['MIN_SAFE_INTEGER'];for(const _0x5e6219 of _0x424ecf){if('$graveyard'==_0x5e6219['root']['rootName'])continue;const {row:_0x5b7521,column:_0x3729a2}=_0x352f50['getCellLocation'](_0x5e6219),_0x38199b=_0x5e6219['hasAttribute']('rowspan')?_0x5e6219['getAttribute']('rowspan')-0x1:0x0,_0x3c63a0=_0x5e6219['hasAttribute']('colspan')?_0x5e6219['getAttribute']('colspan')-0x1:0x0;_0x47ab21=_0x5b7521<_0x47ab21?_0x5b7521:_0x47ab21,_0xb4cb16=_0x5b7521+_0x38199b>_0xb4cb16?_0x5b7521+_0x38199b:_0xb4cb16,_0x421a2a=_0x3729a2<_0x421a2a?_0x3729a2:_0x421a2a,_0x46ebc3=_0x3729a2+_0x3c63a0>_0x46ebc3?_0x3729a2+_0x3c63a0:_0x46ebc3;}return{'minRow':_0x47ab21,'maxRow':_0xb4cb16,'minColumn':_0x421a2a,'maxColumn':_0x46ebc3};}_setupColumnsRowsFixing(){const _0x164f7e=this['editor'],_0x5d4880=_0x164f7e['plugins']['get']('TrackChangesEditing'),_0x3c9caa=_0x164f7e['plugins']['get']('TableUtils');_0x164f7e['model']['document']['on']('change:data',()=>{const _0x58336f=Array['from'](_0x164f7e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2457e3,data:_0x31365e}of _0x58336f){const {group:_0x367b2a,id:_0x571f12,subType:_0x40e589}=it(_0x2457e3);if('suggestion'!=_0x367b2a)continue;if(null!=_0x31365e['oldRange'])continue;const _0x2f66b9=_0x5d4880['getSuggestion'](_0x571f12);this['_tablePostFixingSubtypes']['includes'](_0x40e589)&&this['_tableSuggestions']['add'](_0x2f66b9);}},{'priority':'low'});const _0x4cafb3=(_0x1d2f37,_0x11248b)=>{let _0x1c945e=!0x1;const _0x1b5a53=_0x11248b['createRangeOn'](_0x1d2f37),_0x2f7cff=_0x1d2f37['findAncestor']('table'),_0x20b57=_0x3c9caa['getCellLocation'](_0x1d2f37);for(const _0x3a32c8 of this['_tableSuggestions']){const _0x4e3d9b=_0x3a32c8['subType'],_0x23fed1=_0x4e3d9b['startsWith']('tablePaste'),_0x311397=_0x4e3d9b['substr'](_0x23fed1?0xa:0x5),_0x426417=_0x311397['toLowerCase'](),_0x159394=_0x426417['substr'](0x0,0x3)+'span',_0x19f697='min'+_0x311397,_0x51b459='max'+_0x311397;if(!_0x3a32c8['isInContent'])continue;if(_0x2f7cff!=_0x3a32c8['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3a32c8['isIntersectingWithRange'](_0x1b5a53))continue;const _0x35ba3e=_0x1d2f37['hasAttribute'](_0x159394)?_0x1d2f37['getAttribute'](_0x159394)-0x1:0x0,_0x150017=this['_getSuggestionCoords'](_0x3a32c8),_0x3524ce=_0x150017[_0x19f697],_0x57eb0c=_0x150017[_0x51b459];_0x3524ce<=_0x20b57[_0x426417]&&_0x20b57[_0x426417]+_0x35ba3e<=_0x57eb0c&&(_0x3a32c8['addRange'](_0x1b5a53),_0x1c945e=!0x0);}return _0x1c945e;};_0x164f7e['model']['document']['registerPostFixer'](_0x2133a0=>{let _0x45baa5=!0x1;for(const _0x416a6e of _0x164f7e['model']['document']['differ']['getChanges']())if('insert'==_0x416a6e['type']){if('tableRow'==_0x416a6e['name']){for(const _0x2b48a9 of _0x416a6e['position']['nodeAfter']['getChildren']())_0x45baa5=_0x45baa5||_0x4cafb3(_0x2b48a9,_0x2133a0);}else'tableCell'==_0x416a6e['name']&&(_0x45baa5=_0x45baa5||_0x4cafb3(_0x416a6e['position']['nodeAfter'],_0x2133a0));}return _0x45baa5;});}_getSuggestionCoords(_0x2169fa){return this['_getCoordsForCells'](_0x2169fa['getRanges']()['map'](_0x4194b1=>_0x4194b1['start']['nodeAfter']));}};function He(_0x4c664b){return Array['from'](new Set(_0x4c664b)['values']());}var $e=class extends _0x343d5f{static get requires(){return[Ge];}afterInit(){const _0x1d665d=this['editor'],_0x538335=_0x1d665d['model']['document']['selection'],_0x45342c=_0x1d665d['locale'];if(!_0x1d665d['plugins']['has']('TableEditing'))return;const _0x5ac0ca=_0x1d665d['plugins']['get']('TrackChangesEditing'),_0x5c7064=_0x1d665d['plugins']['get']('TableUtils'),_0x2f9538=_0x1d665d['plugins']['get'](Ge);_0x2f9538['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5ac0ca['enableCommand']('mergeTableCells',()=>{const _0x176d9c=_0x5c7064['getSelectionAffectedTableCells'](_0x1d665d['model']['document']['selection']);_0x1d665d['model']['change'](()=>{_0x5ac0ca['markMultiRangeBlockFormat'](_0x176d9c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1d665d['commands']['get']('mergeTableCells')['on']('execute',(_0xcd2783,_0x21bfbf)=>{_0x1d665d['commands']['get']('trackChanges')['value']&&(_0x21bfbf['length']>0x0&&_0x21bfbf[_0x21bfbf['length']-0x1]&&_0x21bfbf[_0x21bfbf['length']-0x1]['forceDefaultExecution']||_0x5ac0ca['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xcd2783['stop']());},{'priority':'highest'});for(const _0x46e423 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2731ad=_0x1d665d['commands']['get'](_0x46e423);_0x5ac0ca['enableCommand'](_0x46e423,()=>{const _0xfccf8d=_0x1d665d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x15b228=>_0x15b228['is']('element','tableCell')),_0xa7c81f=_0x2731ad['value'];_0x1d665d['model']['change'](()=>{_0x5ac0ca['markMultiRangeBlockFormat']([_0xfccf8d,_0xa7c81f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xa5f001 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3cc8fe=_0x1d665d['commands']['get'](_0xa5f001);_0x5ac0ca['enableCommand'](_0xa5f001,()=>{const _0x396eb4=_0x5c7064['getSelectionAffectedTableCells'](_0x1d665d['model']['document']['selection']),_0x2c1f72=_0x396eb4[0x0]['findAncestor']('table'),_0x37e05b=new Set();for(const _0x7c4e8e of _0x396eb4){const {column:_0xbb9a2f,row:_0x25b8f8}=_0x5c7064['getCellLocation'](_0x7c4e8e),_0x44a3ab='horizontally'==_0x3cc8fe['direction']?_0x5c7064['createTableWalker'](_0x2c1f72,{'startRow':_0x25b8f8,'endRow':_0x25b8f8,'includeAllSlots':!0x0}):_0x5c7064['createTableWalker'](_0x2c1f72,{'column':_0xbb9a2f,'includeAllSlots':!0x0});for(const {cell:_0x576630}of _0x44a3ab)_0x37e05b['add'](_0x576630);}_0x1d665d['model']['change'](()=>{_0x5ac0ca['markMultiRangeBlockFormat'](_0x396eb4,{'commandName':_0xa5f001,'commandParams':[]},Array['from'](_0x37e05b),_0xa5f001);});});}_0x5ac0ca['descriptionFactory']['registerDescriptionCallback'](_0x5530b5=>{if('formatBlock'!=_0x5530b5['type']&&'formatInline'!=_0x5530b5['type'])return;const {data:_0x2ca80d}=_0x5530b5;return _0x2ca80d&&'mergeTableCells'==_0x2ca80d['commandName']?{'type':'format','content':Bt(_0x45342c,'*Merge\x20cells*')}:void 0x0;}),_0x5ac0ca['descriptionFactory']['registerDescriptionCallback'](_0x1bf71f=>{if('formatBlock'!=_0x1bf71f['type']&&'formatInline'!=_0x1bf71f['type'])return;const {data:_0x4ca023}=_0x1bf71f;return _0x4ca023?'splitTableCellVertically'==_0x4ca023['commandName']?{'type':'format','content':Bt(_0x45342c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4ca023['commandName']?{'type':'format','content':Bt(_0x45342c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3a3fe4=_0x2f9538['_acceptFormatSuggestionCallbackFactory']();for(const _0x1ad64a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5ac0ca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ad64a,'accept',_0x3a3fe4);for(const _0x1cbca5 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5ac0ca['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1cbca5,'accept',_0x16adc3=>{_0x1d665d['model']['change'](_0x5d2461=>{const _0x4c64b4=Array['from'](_0x16adc3)['filter'](_0x378597=>'$graveyard'!=_0x378597['root']['rootName']&&!!_0x378597['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x4c64b4['length'])return;const _0x3f1fd7=Array['from'](_0x538335['getRanges']())['map'](_0x5bd3f1=>ct['fromRange'](_0x5bd3f1));_0x5d2461['setSelection'](_0x4c64b4),_0x1d665d['commands']['get'](_0x1cbca5)['refresh'](),_0x1d665d['execute'](_0x1cbca5,{'forceDefaultExecution':!0x0});const _0x2b5b24=_0x3f1fd7['filter'](_0x550e8b=>'$graveyard'!=_0x550e8b['root']['rootName']);_0x2b5b24['length']>0x0&&_0x5d2461['setSelection'](_0x2b5b24);for(const _0x97b803 of _0x3f1fd7)_0x97b803['detach']();});});_0x5ac0ca['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5d89ff=>{_0x1d665d['model']['change'](_0x5a8e4c=>{const _0x383c5c=Array['from'](_0x538335['getRanges']())['map'](_0x34ae52=>ct['fromRange'](_0x34ae52));_0x5a8e4c['setSelection'](_0x5d89ff),_0x1d665d['commands']['get']('mergeTableCells')['refresh'](),_0x1d665d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5519da=_0x383c5c['filter'](_0x3691c2=>'$graveyard'!=_0x3691c2['root']['rootName']);_0x5519da['length']>0x0&&_0x5a8e4c['setSelection'](_0x5519da);for(const _0x5ae0ab of _0x383c5c)_0x5ae0ab['detach']();});});for(const _0xf93882 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3177aa=_0x1d665d['commands']['get'](_0xf93882);_0x3177aa['on']('set:isEnabled',(_0x2d555a,_0x5727cb,_0x3c143d)=>{if(_0x3c143d){const _0x1c21f2=_0x1d665d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2f3fd3=>_0x2f3fd3['is']('element','tableCell'));this['_areMergableCells'](_0x3177aa['value'],_0x1c21f2)||(_0x2d555a['return']=!0x1,_0x2d555a['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x2d01fb=this['editor']['commands']['get']('mergeTableCells'),_0x1902b1=this['editor']['plugins']['get']('TableUtils');if(!_0x2d01fb['isEnabled'])return!0x1;const _0x3e9501=_0x1902b1['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5e7e1c of _0x3e9501)for(const _0x2ab3d9 of _0x3e9501)if(_0x5e7e1c!=_0x2ab3d9&&!this['_areMergableCells'](_0x5e7e1c,_0x2ab3d9))return!0x1;return!0x0;}['_areMergableCells'](_0x48122e,_0x194e66){const _0x31bfc6=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd2f87d=this['editor']['model']['createRangeOn'](_0x48122e),_0x5d017b=this['editor']['model']['createRangeOn'](_0x194e66),_0xfebdc=new Set(),_0x6ac6b8=new Set();for(const _0x41a3e1 of _0x31bfc6['getSuggestions']())if(('insertion'==_0x41a3e1['type']||'deletion'==_0x41a3e1['type']||'mergeTableCells'==_0x41a3e1['subType'])&&_0x41a3e1['isInContent']){for(const _0x114f3e of _0x41a3e1['getRanges']())_0x114f3e['containsRange'](_0xd2f87d,!0x0)&&_0xfebdc['add'](_0x41a3e1['type']+':'+_0x41a3e1['author']['id']),_0x114f3e['containsRange'](_0x5d017b,!0x0)&&_0x6ac6b8['add'](_0x41a3e1['type']+':'+_0x41a3e1['author']['id']);}if(_0xfebdc['size']!=_0x6ac6b8['size'])return!0x1;for(const _0x5d3d5a of _0xfebdc)if(!_0x6ac6b8['has'](_0x5d3d5a))return!0x1;return!0x0;}},We=class extends _0x343d5f{static get requires(){return[Ge];}afterInit(){const _0x248a61=this['editor'];if(!_0x248a61['plugins']['has']('TableEditing'))return;const _0x19814a=_0x248a61['locale'],_0x2b3ad9=_0x248a61['plugins']['get']('TrackChangesEditing');_0x2b3ad9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2b3ad9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2b3ad9['descriptionFactory']['registerAttributeLabel']('headingRows',Bt(_0x19814a,'FORMAT_HEADER_ROW')),_0x2b3ad9['descriptionFactory']['registerAttributeLabel']('headingColumns',Bt(_0x19814a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x479b41=this['editor']['plugins']['get']('TrackChangesEditing'),_0x518eb6=this['editor']['plugins']['get'](Ge)['_acceptFormatSuggestionCallbackFactory']();_0x479b41['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x518eb6),_0x479b41['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x518eb6),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x4b6f4c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18d13d=this['editor']['plugins']['get']('TableUtils');function _0xd8869e({showActiveMarker:_0x3d5148=!0x0,setDataAttribute:_0x498604=!0x0}={}){return(_0x1840e5,_0xa6f73,_0x2a8879)=>{const {type:_0x27768a,id:_0xa66b88}=it(_0xa6f73['markerName']);if(!_0x4b6f4c['hasSuggestion'](_0xa66b88))return;const _0x3b03f3=_0x4b6f4c['getSuggestion'](_0xa66b88),_0x5abd2f=_0x3b03f3['data'];if('formatBlock'!=_0x3b03f3['type']||!_0x5abd2f||'setTableColumnHeader'!=_0x5abd2f['commandName'])return;if(_0xa6f73['item'])return void _0x1840e5['stop']();if(!_0x2a8879['consumable']['consume'](_0xa6f73['markerRange'],_0x1840e5['name']))return;const _0x391374=_0xa6f73['markerRange']['start']['nodeAfter'],_0xfbe0a4=_0xa6f73['markerRange']['end']['nodeBefore'],_0x3e1807=_0x391374['parent']['parent'],{column:_0x1f2a07}=_0x18d13d['getCellLocation'](_0x391374),{column:_0x9acedc}=_0x18d13d['getCellLocation'](_0xfbe0a4);for(let _0x2e08c5=_0x1f2a07;_0x2e08c5<=_0x9acedc;_0x2e08c5++){const _0x5ccf5e=_0x18d13d['createTableWalker'](_0x3e1807,{'column':_0x2e08c5,'includeAllSlots':!0x1});for(const _0x50d08c of _0x5ccf5e){const _0xe5604c=_0x50d08c['cell'],_0xf84bd3=_0x2a8879['mapper']['toViewElement'](_0xe5604c);_0x2a8879['writer']['addClass']('ck-suggestion-marker-'+_0x27768a,_0xf84bd3),_0x498604&&_0x2a8879['writer']['setAttribute']('data-suggestion',_0xa66b88,_0xf84bd3),_0x2a8879['mapper']['bindElementToMarker'](_0xf84bd3,_0xa6f73['markerName']),_0x3d5148&&(_0x4b6f4c['activeMarkers']['includes'](_0xa6f73['markerName'])?_0x2a8879['writer']['addClass']('ck-suggestion-marker--active',_0xf84bd3):_0x2a8879['writer']['removeClass']('ck-suggestion-marker--active',_0xf84bd3));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xd8869e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x338fbf,_0x2b6bde,_0x593c9c)=>{_0x593c9c['options']['showSuggestionHighlights']&&_0xd8869e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x338fbf,_0x2b6bde,_0x593c9c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2b6c84,_0x3eb409,_0x31394a)=>{const {type:_0x5331e7,id:_0x4fa581}=it(_0x3eb409['markerName']);if(!_0x4b6f4c['hasSuggestion'](_0x4fa581))return;const _0x39f9a1=_0x4b6f4c['getSuggestion'](_0x4fa581),_0x15eeec=_0x39f9a1['data'];if('formatBlock'!=_0x39f9a1['type']||!_0x15eeec||'setTableColumnHeader'!=_0x15eeec['commandName'])return;const _0x363728=_0x31394a['mapper']['markerNameToElements'](_0x3eb409['markerName']);if(_0x363728){for(const _0x3b6689 of _0x363728)_0x31394a['writer']['removeClass']('ck-suggestion-marker-'+_0x5331e7,_0x3b6689),_0x31394a['writer']['removeClass']('ck-suggestion-marker--active',_0x3b6689),_0x31394a['writer']['removeAttribute']('data-suggestion',_0x3b6689),_0x31394a['mapper']['unbindElementFromMarkerName'](_0x3b6689,_0x3eb409['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x5cdaa7=this['editor'],_0x2da9f4=_0x5cdaa7['locale'];function _0x31976e(_0x256551){return{'type':'format','content':Bt(_0x2da9f4,'*Format:*\x20%0',_0x256551)};}_0x5cdaa7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcc33f8=>{if('formatBlock'!=_0xcc33f8['type'])return;const {data:_0x4457a4}=_0xcc33f8;return _0x4457a4?'setTableRowHeader'==_0x4457a4['commandName']?_0x4457a4['commandParams'][0x0]['forceValue']?_0x31976e(Bt(_0x2da9f4,'FORMAT_HEADER_ROW')):_0x31976e(Bt(_0x2da9f4,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x4457a4['commandName']?_0x4457a4['commandParams'][0x0]['forceValue']?_0x31976e(Bt(_0x2da9f4,'FORMAT_HEADER_COLUMN')):_0x31976e(Bt(_0x2da9f4,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},Ve=class extends _0x343d5f{static get requires(){return[Ge];}afterInit(){const _0x2922de=this['editor'];if(!_0x2922de['plugins']['has']('TableEditing')||!_0x2922de['config']['get']('table.enableFooters'))return;const _0x13dd97=_0x2922de['locale'],_0xbe4933=_0x2922de['plugins']['get']('TrackChangesEditing');_0xbe4933['enableDefaultAttributesIntegration']('setTableFooterRow'),_0xbe4933['descriptionFactory']['registerAttributeLabel']('footerRows',Bt(_0x13dd97,'FORMAT_FOOTER_ROW'));}},ze=class extends _0x343d5f{afterInit(){const _0x55b349=this['editor'],_0x125d04=_0x55b349['locale'],_0x2f7512=_0x55b349['plugins']['get']('TrackChangesEditing');function _0x116e56(_0x553f6d){return{'type':'format','content':''+Bt(_0x125d04,'*Set\x20table\x20type:*\x20%0',_0x553f6d)};}_0x55b349['plugins']['has']('TableLayout')&&(_0x2f7512['enableCommand']('insertTableLayout'),_0x2f7512['enableDefaultAttributesIntegration']('tableType'),_0x2f7512['descriptionFactory']['registerElementLabel'](_0x3141a3=>_0x3141a3['is']('element','table')&&'layout'===_0x3141a3['getAttribute']('tableType'),_0x1b98d4=>Bt(_0x125d04,'ELEMENT_LAYOUT_TABLE',_0x1b98d4)),_0x2f7512['descriptionFactory']['registerDescriptionCallback'](_0x50ce89=>{const {data:_0x190b6}=_0x50ce89;if(_0x190b6&&'tableType'==_0x190b6['key'])switch(_0x190b6['newValue']){case'layout':return _0x116e56(Bt(_0x125d04,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x116e56(Bt(_0x125d04,'ELEMENT_CONTENT_TABLE'));}}));}};const je=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ke=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](je['map'](_0x383340=>[_0x383340,null]));var Xe=class extends _0x343d5f{static get requires(){return[Ge];}afterInit(){const _0x1d1199=this['editor'];if(!_0x1d1199['plugins']['has']('TableClipboard'))return;const _0x352c53=_0x1d1199['plugins']['get']('TrackChangesEditing'),_0x52ff69=_0x1d1199['plugins']['get']('TableUtils'),_0x4fd414=_0x1d1199['plugins']['get'](Ge),_0x3ab3b6=_0x1d1199['plugins']['get']('TableClipboard'),_0x3d3c92=_0x1d1199['plugins']['get']('TableSelection'),_0x25441d=_0x1d1199['plugins']['get'](Et);_0x4fd414['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1d1199['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1d1199['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x224c18=null,_0x412913=!0x1;_0x25441d['on']('contentInsertion',(_0x5b9fa2,_0x4021d2)=>{_0x412913='paste'===_0x4021d2['method'];}),_0x1d1199['model']['on']('insertContent',(_0x17f517,_0xcef75a)=>{if(!_0x412913&&null===_0x3d3c92['getSelectedTableCells']())return;const [_0x98255b,_0x3bfae2]=_0xcef75a,_0x30fbef=_0xcef75a[_0xcef75a['length']-0x1];_0x30fbef&&_0x30fbef['forceDefaultExecution']||_0x352c53['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1164f1,_0x18721b,_0x4eabdd,_0x4d7512,_0x8a13db){if(_0x18721b&&!_0x18721b['is']('documentSelection'))return!0x1;const _0x548ea8=_0x8a13db['getTableIfOnlyTableInContent'](_0x1164f1,_0x4eabdd);if(!_0x548ea8||!Ye(_0x548ea8,void 0x0,_0x4d7512))return!0x1;const _0x2d15a2=_0x4d7512['getSelectionAffectedTableCells'](_0x4eabdd['document']['selection']);if(!_0x2d15a2['length'])return!0x1;const _0x217855=_0x2d15a2[0x0]['findAncestor']('table'),_0x428799=_0x4d7512['getRowIndexes'](_0x2d15a2),_0x14cbd7=_0x4d7512['getColumnIndexes'](_0x2d15a2),_0x4cabf1={'startRow':_0x428799['first'],'endRow':_0x428799['last'],'startColumn':_0x14cbd7['first'],'endColumn':_0x14cbd7['last']};return 0x1==_0x2d15a2['length']&&(_0x4cabf1['endRow']+=_0x4d7512['getRows'](_0x548ea8)-0x1,_0x4cabf1['endColumn']+=_0x4d7512['getColumns'](_0x548ea8)-0x1),Ye(_0x217855,_0x4cabf1,_0x4d7512);}(_0x98255b,_0x3bfae2,_0x1d1199['model'],_0x52ff69,_0x3ab3b6)&&(_0x17f517['stop'](),_0x224c18={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1d1199['model']['change'](()=>{_0x1d1199['model']['insertContent'](_0xcef75a[0x0],_0xcef75a[0x1],_0xcef75a[0x2],{'forceDefaultExecution':!0x0});const _0x3c8d0a=_0x4795d2(),{rowInsertionRanges:_0x418691,columnInsertionRanges:_0x520072,insertionRanges:_0x44c78e,deletionRanges:_0x59bfd7,cells:_0x23306a}=_0x224c18;_0x418691['length']&&_0x352c53['markMultiRangeInsertion'](_0x418691,'tablePasteRow',{'tablePasteChainId':_0x3c8d0a}),_0x520072['length']&&_0x352c53['markMultiRangeInsertion'](_0x520072,'tablePasteColumn',{'tablePasteChainId':_0x3c8d0a}),_0x44c78e['length']&&(_0x352c53['markMultiRangeInsertion'](_0x44c78e,'tablePaste',{'tablePasteChainId':_0x3c8d0a,'skipNestingCheck':!0x0}),_0x44c78e['forEach'](_0x3c9df7=>_0x3c9df7['detach']?.())),_0x59bfd7['length']&&(_0x352c53['markMultiRangeDeletion'](_0x59bfd7,'tablePaste',{'tablePasteChainId':_0x3c8d0a,'skipNestingCheck':!0x0}),_0x59bfd7['forEach'](_0x1790f1=>_0x1790f1['detach']?.()));const _0x53920b=_0x352c53['markMultiRangeBlockFormat'](_0x23306a['map'](({element:_0x47b8d5})=>_0x47b8d5),{'formatGroupId':_0x4795d2()},[],'tablePasteCell',{'tablePasteChainId':_0x3c8d0a});if(_0x53920b){const _0x6de82=_0x53920b['getMarkers'](),_0x236f74=[];for(const {element:_0x36cbcf,attributes:_0x375371}of _0x23306a){if(!_0x375371)continue;const _0x22ad85=_0x1d1199['model']['createRangeOn'](_0x36cbcf),_0x480ea0=_0x6de82['find'](_0x33dc90=>_0x33dc90['getRange']()['isEqual'](_0x22ad85));_0x480ea0&&_0x236f74['push']([_0x480ea0['name'],_0x375371]);}_0x236f74['length']&&_0x53920b['setAttribute']('markerAttributes',Object['fromEntries'](_0x236f74));}_0x224c18=null;}));},{'priority':_0x426eae['high']+0xa}),_0x25441d['on']('contentInsertion',()=>{_0x412913=!0x1;},{'priority':'lowest'}),_0x1d1199['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3493d4,_0x2fc885)=>{const [_0x4aed84,_0x5696e9,,_0x2aaea3]=_0x2fc885;if(!_0x224c18)return;_0x3493d4['stop']();const _0x11c07f=_0x4aed84['cell'],_0x3cf225=_0x5696e9,_0x2bc37b=qe(_0x11c07f),_0x492c3e=qe(_0x3cf225);_0x3493d4['return']=_0x11c07f;let _0x4ece3b=null,_0xd14634=null;if(_0x492c3e||_0x2bc37b){if(_0x2bc37b&&!_0x492c3e){_0x2aaea3['remove'](_0x11c07f['getChild'](0x0));for(const _0x1ca1ca of Array['from'](_0x3cf225['getChildren']()))_0x2aaea3['insert'](_0x1ca1ca,_0x11c07f,'end');const _0x13bcc7=_0x224c18['rowInsertionIndexes']['includes'](_0x4aed84['row']),_0x311ff5=_0x224c18['columnInsertionIndexes']['includes'](_0x4aed84['column']);_0x13bcc7||_0x311ff5||(_0x4ece3b=ct['fromRange'](_0x2aaea3['createRangeIn'](_0x11c07f)));}else _0x492c3e&&!_0x2bc37b&&(_0xd14634=_0x2aaea3['createRangeIn'](_0x11c07f));}else{const _0x3c2d0b=_0x2aaea3['createElement']('tableCellSuggestion'),_0x26849d=_0x2aaea3['createElement']('tableCellSuggestion');_0x2aaea3['wrap'](_0x2aaea3['createRangeIn'](_0x11c07f),_0x26849d),_0x2aaea3['insert'](_0x3c2d0b,_0x11c07f,0x0);for(const _0x25862b of Array['from'](_0x3cf225['getChildren']()))_0x2aaea3['insert'](_0x25862b,_0x3c2d0b,'end');_0x4ece3b=ct['fromRange'](_0x2aaea3['createRangeOn'](_0x3c2d0b)),_0xd14634=ct['fromRange'](_0x2aaea3['createRangeOn'](_0x26849d));}const _0x51a027=Array['from'](_0x3cf225['getAttributes']())['filter'](([_0x421bbd])=>je['includes'](_0x421bbd));_0x224c18['cells']['push']({'element':_0x11c07f,'attributes':_0x51a027['length']?Object['fromEntries'](_0x51a027):null}),_0x4ece3b&&_0x224c18['insertionRanges']['push'](_0x4ece3b),_0xd14634&&_0x224c18['deletionRanges']['push'](_0xd14634);},{'priority':'high'}),_0x52ff69['on']('insertColumns',(_0x461ebc,_0x50cbdf)=>{const [_0x20d2d2,_0x5c6e92={}]=_0x50cbdf;if(!_0x224c18)return;const _0x34c400=_0x5c6e92['at']||0x0,_0x5f21a0=_0x5c6e92['columns']||0x1;_0x224c18['columnInsertionIndexes']=new Array(_0x5f21a0)['fill'](_0x34c400)['map']((_0x5d73d4,_0x3e3e75)=>_0x5d73d4+_0x3e3e75);for(const {cell:_0x2b44a4}of _0x52ff69['createTableWalker'](_0x20d2d2,{'startColumn':_0x34c400,'endColumn':_0x34c400+_0x5f21a0-0x1}))_0x224c18['columnInsertionRanges']['push'](_0x1d1199['model']['createRangeOn'](_0x2b44a4));},{'priority':'low'}),_0x52ff69['on']('insertRows',(_0x4abbf,_0x488518)=>{const [_0x152b3d,_0x3ac17e={}]=_0x488518;if(!_0x224c18)return;const _0x2d878d=_0x3ac17e['at']||0x0,_0x57a225=_0x3ac17e['rows']||0x1;_0x224c18['rowInsertionIndexes']=new Array(_0x57a225)['fill'](_0x2d878d)['map']((_0x36f72b,_0x5b1489)=>_0x36f72b+_0x5b1489);for(const {cell:_0xb20140}of _0x52ff69['createTableWalker'](_0x152b3d,{'startRow':_0x2d878d,'endRow':_0x2d878d+_0x57a225-0x1}))_0x224c18['rowInsertionRanges']['push'](_0x1d1199['model']['createRangeOn'](_0xb20140));},{'priority':'low'}),_0x352c53['descriptionFactory']['registerDescriptionCallback'](_0x12bed1=>{if(_0x12bed1['subType']&&_0x12bed1['subType']['startsWith']('tablePaste'))return _0x12bed1['previous']?{}:{'type':'insertion','content':Bt(_0x1d1199['locale'],'*Replace\x20table\x20cells*')};});const _0x14be17=()=>!0x1;for(const _0x31af45 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x352c53['_suggestionFactory']['registerCustomCallback']('insertion',_0x31af45,'join',_0x14be17),_0x352c53['_suggestionFactory']['registerCustomCallback']('deletion',_0x31af45,'join',_0x14be17),_0x352c53['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x31af45,'join',_0x14be17);_0x352c53['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x14be17),_0x352c53['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2eff65,_0x4003b2,_0x2627f4)=>{const _0x394ac7=_0x2eff65['map'](_0x475540=>_0x475540['getContainedElement']())['filter'](_0x2c155a=>_0x2c155a),_0x4e9f5f=new Map(_0x394ac7['map'](_0xce668d=>[_0xce668d,null]));if(_0x224c18){for(const {element:_0x30db9a,attributes:_0x411f86}of _0x224c18['cells'])_0x411f86&&_0x4e9f5f['set'](_0x30db9a,_0x411f86);}else{if(_0x2627f4&&_0x2627f4['markerAttributes'])for(const [_0xecc4c5,_0x43a551]of Object['entries'](_0x2627f4['markerAttributes'])){const _0x52b0d3=_0x1d1199['model']['markers']['get'](_0xecc4c5),_0x53bc1d=_0x52b0d3?_0x52b0d3['getRange']()['getContainedElement']():null;_0x53bc1d&&_0x4e9f5f['set'](_0x53bc1d,_0x43a551);}}_0x1d1199['model']['change'](_0x33fa30=>{for(const [_0x313718,_0x25a269]of _0x4e9f5f)_0x33fa30['setAttributes']({...Ke,..._0x25a269},_0x313718);});});const _0x10b87f=(_0x4130bf,_0x5db1ec)=>{_0x352c53['_suggestionFactory']['registerCustomCallback'](_0x4130bf,'tablePaste',_0x5db1ec,(_0xf8d0cd,_0x1d27e0,_0x67d53f)=>{_0x1d1199['model']['change'](_0x4726a1=>{const _0x193afe=[];for(const _0x4dd622 of _0xf8d0cd){const _0x20ba36=_0x4dd622['start']['nodeAfter'];_0x20ba36['is']('element','tableCellSuggestion')&&_0x193afe['push'](_0x20ba36);}_0x352c53['_suggestionFactory']['getSuggestionCallback'](_0x4130bf,null,_0x5db1ec)(_0xf8d0cd,_0x1d27e0,_0x67d53f);for(const _0xe54df9 of _0x193afe)'$graveyard'!=_0xe54df9['root']['rootName']&&_0x4726a1['unwrap'](_0xe54df9);});});};_0x10b87f('insertion','accept'),_0x10b87f('insertion','discard'),_0x10b87f('deletion','accept'),_0x10b87f('deletion','discard'),_0x352c53['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x57cd40=>{const _0x141e93=_0x57cd40['map'](_0x4324c2=>_0x4324c2['getContainedElement']()),_0x1c85c8=_0x141e93[0x0]['findAncestor']('table'),{minRow:_0x1093d2,maxRow:_0x8e589b}=_0x4fd414['_getCoordsForCells'](_0x141e93);_0x52ff69['removeRows'](_0x1c85c8,{'at':_0x1093d2,'rows':_0x8e589b-_0x1093d2+0x1});}),_0x352c53['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x340105=>{const _0x19045b=_0x340105['map'](_0x3cb877=>_0x3cb877['getContainedElement']()),_0x339b6a=_0x19045b[0x0]['findAncestor']('table'),{minColumn:_0x3f94c3,maxColumn:_0x4335f9}=_0x4fd414['_getCoordsForCells'](_0x19045b);_0x52ff69['removeColumns'](_0x339b6a,{'at':_0x3f94c3,'columns':_0x4335f9-_0x3f94c3+0x1});});const _0xa92315=(_0x49ac62,_0x35c5ce)=>{if(!_0x35c5ce['subType']||!_0x35c5ce['subType']['startsWith']('tablePaste'))return;const _0x2efe56=_0x35c5ce['attributes']['tablePasteChainId'],_0x4c7b04=_0x352c53['getSuggestions']()['filter'](_0x322f46=>_0x322f46['isInContent']&&_0x322f46['attributes']&&_0x322f46['attributes']['tablePasteChainId']==_0x2efe56);_0x4c7b04['length']&&_0x35c5ce['getAllAdjacentSuggestions']()['length']!=_0x4c7b04['length']&&_0x4c7b04['reduce']((_0xda7c65,_0x272a16)=>(_0xda7c65['next']=_0x272a16,_0x272a16['previous']=_0xda7c65,_0x272a16));};function _0x49e550(_0x9a4d76,_0x14e5a8=!0x0){const {id:_0x5af0ea,authorId:_0x48cbe5}=it(_0x9a4d76['markerName']),_0xec49c8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x27277a=_0x352c53['activeMarkers']['includes'](_0x9a4d76['markerName']);return _0x27277a&&_0xec49c8['push']('ck-suggestion-marker--active'),{'classes':_0xec49c8,'attributes':{'data-suggestion':_0x5af0ea,'data-author-id':_0x48cbe5},'priority':_0x27277a&&_0x14e5a8?0xbc2:0xbb8};}_0x352c53['on']('suggestionLoaded',_0xa92315,{'priority':'high'}),_0x352c53['on']('suggestionUnloaded',_0xa92315,{'priority':'high'}),_0x1d1199['model']['document']['registerPostFixer'](()=>{let _0xf94400=!0x1;const _0x52c741=Array['from'](_0x1d1199['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x125957,data:_0x4b9818}of _0x52c741){const {group:_0x182140,type:_0x48d379,id:_0x34e0da}=it(_0x125957);if('suggestion'!=_0x182140||'deletion'!=_0x48d379||_0x4b9818['oldRange'])continue;if(!_0x352c53['hasSuggestion'](_0x34e0da))continue;const _0x3fc7ae=_0x352c53['getSuggestion'](_0x34e0da)['getRanges'](),_0x3b3c47=_0x1d1199['plugins']['get']('Users')['me'];for(const _0x2f0b57 of _0x352c53['getSuggestions']())if(_0x2f0b57['isInContent']&&_0x2f0b57['author']==_0x3b3c47&&'formatBlock'==_0x2f0b57['type']&&'tablePasteCell'==_0x2f0b57['subType']&&_0x2f0b57['getRanges']()['every'](_0x273dc2=>_0x3fc7ae['some'](_0x21e554=>_0x21e554['containsRange'](_0x273dc2,!0x0)))){for(const _0x281c7e of _0x2f0b57['getAllAdjacentSuggestions']())_0x281c7e['isInContent']&&(_0x281c7e['discard'](),_0xf94400=!0x0);}}return _0xf94400;}),_0x1d1199['model']['document']['registerPostFixer'](_0x43e191=>{const _0x1514f2=_0x1d1199['commands']['get']('redo');if(!_0x1514f2||!_0x1514f2['_createdBatches']['has'](_0x43e191['batch']))return!0x1;let _0x34bfe0=!0x1;const _0x37e44d=_0x1d1199['plugins']['get']('Users')['me'],_0x1f0f04=_0x1d1199['model']['document']['differ']['getChanges'](),_0x270f25=Array['from'](_0x1d1199['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x35e34e,data:_0x51ccfc})=>{const {group:_0x2274a3,subType:_0xee78a3,authorId:_0x39736a}=it(_0x35e34e);return'suggestion'==_0x2274a3&&'tablePaste'==_0xee78a3&&_0x39736a==_0x37e44d['id']&&!_0x51ccfc['oldRange'];});for(const _0x315d9e of _0x1f0f04){if('insert'!=_0x315d9e['type']||'tableCellSuggestion'!=_0x315d9e['name']||0x1!=_0x315d9e['length'])continue;const _0x58e5dd=_0x43e191['createRange'](_0x315d9e['position'],_0x315d9e['position']['getShiftedBy'](0x1));if(!_0x270f25['find'](({data:_0xd0dff7})=>_0xd0dff7['newRange']['isEqual'](_0x58e5dd))){for(const {name:_0x5a749b,data:_0x353ff0}of _0x270f25)if(_0x58e5dd['containsRange'](_0x353ff0['newRange'])){_0x43e191['updateMarker'](_0x5a749b,{'range':_0x58e5dd}),_0x34bfe0=!0x0;break;}}}return _0x34bfe0;}),_0x1d1199['model']['document']['registerPostFixer'](_0x1b86bf=>{let _0x113794=!0x1;const _0x53ff87=_0x1d1199['plugins']['get']('Users')['me'],_0x235549=_0x352c53['getSuggestions']()['filter'](_0x12f37e=>_0x12f37e['isInContent']&&_0x12f37e['author']==_0x53ff87),_0x1c5cef=new Set(),_0x2b2a2a=new Set();for(const _0x13a10c of _0x235549)if('tablePaste'==_0x13a10c['subType'])for(const _0x4316e1 of _0x13a10c['getMarkers']()){const _0x46a852=_0x4316e1['getRange']()['getContainedElement']();if(_0x46a852){if(_0x46a852['is']('element','tableCellSuggestion')&&qe(_0x46a852)){_0x13a10c['removeMarker'](_0x4316e1['name']),_0x1c5cef['add'](_0x46a852),_0x113794=!0x0;const _0x5256df=_0x46a852['nextSibling'],_0x52f1c7=_0x46a852['previousSibling'],_0x33484e=_0x5256df&&_0x5256df['is']('element','tableCellSuggestion'),_0xb26d31=_0x52f1c7&&_0x52f1c7['is']('element','tableCellSuggestion');_0x33484e&&!_0x1c5cef['has'](_0x5256df)&&_0x2b2a2a['add'](_0x5256df),_0xb26d31&&!_0x1c5cef['has'](_0x52f1c7)&&_0x2b2a2a['add'](_0x52f1c7);}else _0x46a852['is']('element','paragraph')&&_0x46a852['isEmpty']&&(_0x13a10c['removeMarker'](_0x4316e1['name']),_0x113794=!0x0);}}else{if('tablePasteCell'==_0x13a10c['subType']){if(!_0x13a10c['attributes']||!_0x13a10c['attributes']['tablePasteChainId'])continue;const _0x298150=_0x13a10c['attributes']['markerAttributes'];if(_0x298150&&Object['keys'](_0x298150)['length'])continue;const _0x587813=_0x13a10c['attributes']['tablePasteChainId'];let _0x16c328=!0x0,_0x123183=!0x0;for(const _0x3c0041 of _0x235549)if(_0x3c0041['subType']&&_0x3c0041['subType']['startsWith']('tablePaste')){if(!_0x3c0041['attributes']['tablePasteChainId']){_0x123183=!0x1;break;}if(_0x3c0041['id']!=_0x13a10c['id']&&_0x3c0041['attributes']['tablePasteChainId']==_0x587813){_0x16c328=!0x1;break;}}_0x123183&&_0x16c328&&(_0x13a10c['removeMarkers'](),_0x113794=!0x0);}}for(const _0x49808d of _0x1c5cef)_0x1b86bf['remove'](_0x49808d);for(const _0x561bd8 of _0x2b2a2a)_0x1b86bf['unwrap'](_0x561bd8);return _0x113794;}),_0x1d1199['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x52574d=>_0x49e550(_0x52574d),'converterPriority':'high'}),_0x1d1199['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x28aa47,_0x40591a)=>_0x40591a['options']['showSuggestionHighlights']?_0x49e550(_0x28aa47,!0x1):null,'converterPriority':'high'});const _0x46ab55=_0x1d1199['editing']['view'];this['listenTo'](_0x46ab55['document'],'clipboardOutput',(_0x17d6f5,_0x49eed2)=>{const _0x1d7a1f=[];for(const _0x510573 of _0x46ab55['createRangeIn'](_0x49eed2['content'])['getItems']())_0x510573['is']('element','suggestion-td')&&_0x1d7a1f['push'](_0x510573);_0x46ab55['change'](_0x4915ad=>{for(const _0x47c954 of _0x1d7a1f)_0x4915ad['move'](_0x4915ad['createRangeIn'](_0x47c954),_0x4915ad['createPositionBefore'](_0x47c954)),_0x4915ad['remove'](_0x47c954);});});}};function qe(_0x1b2fd0){if(_0x1b2fd0['isEmpty'])return!0x0;const _0x468d98=_0x1b2fd0['getChild'](0x0);return _0x468d98['is']('element','paragraph')&&_0x468d98['isEmpty'];}function Ye(_0x1ca9f4,_0x45766c={},_0x21aa21){for(const {isAnchor:_0x40b158,cellHeight:_0x2ea9fb,cellWidth:_0x5c024e}of _0x21aa21['createTableWalker'](_0x1ca9f4,{'includeAllSlots':!0x0,..._0x45766c}))if(!_0x40b158||0x1!=_0x2ea9fb||0x1!=_0x5c024e)return!0x1;return!0x0;}var Qe=class extends _0x343d5f{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x30e0f9=this['editor']['plugins']['get']('TrackChangesEditing');_0x30e0f9['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x30e0f9['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x30e0f9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x30e0f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x52b5d0=_0x30e0f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x30e0f9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x144adf,_0x50bf92)=>{_0x52b5d0(_0x144adf,_0x50bf92),this['_restoreCellWidths'](_0x144adf[0x0]['start']['nodeAfter'],_0x50bf92['commandParams'][0x0]['cellWidths']);}),_0x30e0f9['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x5eff23,_0x5f30d2){const _0x576ebe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4aff13=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x11b9ba=_0x5f30d2['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x588586=_0x4aff13['getColumnGroupElement'](_0x11b9ba);let _0x39ffd8=_0x588586?_0x4aff13['getTableColumnsWidths'](_0x588586):null,_0x16e328=_0x11b9ba['getAttribute']('tableWidth')||null;const _0x53847b=_0x5f30d2['tableWidth']||_0x16e328,_0x531ef0=_0x5f30d2['columnWidths']||_0x39ffd8;let _0x32f25f=this['_getCellWidths'](_0x11b9ba);const _0x5b0983=this['_foldResizeTableSuggestion'](_0x11b9ba);_0x5b0983&&(_0x16e328=_0x5b0983['tableWidth'],_0x39ffd8=_0x5b0983['columnWidths'],_0x32f25f=_0x5b0983['cellWidths']||_0x32f25f),_0x5eff23({'table':_0x11b9ba,'tableWidth':_0x53847b,'columnWidths':_0x531ef0}),_0x576ebe['markBlockFormat'](_0x11b9ba,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x16e328,'columnWidths':_0x39ffd8,'cellWidths':_0x32f25f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x4334ce,_0x2cceb3={}){if(void 0x0===_0x2cceb3['value']||''===_0x2cceb3['value'])return void _0x4334ce(_0x2cceb3);const _0x5b74c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x531a72=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3ee468=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x2cceb3['batch']||(_0x2cceb3['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x2cceb3['batch'],()=>{const _0x31edd0=_0x531a72['getColumnGroupElement'](_0x3ee468);let _0x291093=_0x31edd0?_0x531a72['getTableColumnsWidths'](_0x31edd0):null,_0x5396bb=_0x3ee468['getAttribute']('tableWidth')||null,_0x2def4d=this['_getCellWidths'](_0x3ee468);const _0x49ead6=this['_foldResizeTableSuggestion'](_0x3ee468,!0x0);_0x49ead6&&(_0x5396bb=_0x49ead6['tableWidth'],_0x291093=_0x49ead6['columnWidths'],_0x2def4d=_0x49ead6['cellWidths']||_0x2def4d),_0x4334ce(_0x2cceb3),_0x5b74c8['markBlockFormat'](_0x3ee468,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5396bb,'columnWidths':_0x291093,'cellWidths':_0x2def4d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x4f4908,_0x3dd208=!0x1){const _0x451192=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49e334=this['editor']['plugins']['get']('Users')['me'];for(const _0x29ff4f of _0x451192['getSuggestions']({'skipNotAttached':!0x0})){const _0x6ab7a7=_0x29ff4f['getContainedElement']();if('resizeTable'===_0x29ff4f['subType']&&_0x6ab7a7===_0x4f4908){_0x29ff4f['author']!==_0x49e334&&(_0x3dd208?_0x29ff4f['removeMarkers']():_0x29ff4f['discard']());const _0x2ae033=_0x29ff4f['data']['commandParams'];return{'tableWidth':_0x2ae033[0x0]['tableWidth'],'columnWidths':_0x2ae033[0x0]['columnWidths'],'cellWidths':_0x2ae033[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x31724a){const _0x4db5e8=[];for(const _0x1c61e1 of _0x31724a['getChildren']())if(_0x1c61e1['is']('element','tableRow')){for(const _0x531563 of _0x1c61e1['getChildren']())_0x4db5e8['push'](_0x531563['getAttribute']('tableCellWidth')||null);}return _0x4db5e8;}_restoreCellWidths(_0x45a051,_0x508d9c){_0x508d9c&&this['editor']['model']['change'](_0x3354ed=>{let _0x375402=0x0;for(const _0x15e4ec of _0x45a051['getChildren']())if(_0x15e4ec['is']('element','tableRow'))for(const _0xeea62a of _0x15e4ec['getChildren']()){const _0x5307f4=_0x508d9c[_0x375402++];_0x5307f4&&_0x3354ed['setAttribute']('tableCellWidth',_0x5307f4,_0xeea62a);}});}handleSuggestionDescription(_0x236257){if('formatBlock'!=_0x236257['type']&&'formatInline'!=_0x236257['type'])return;const {data:_0x4635a9}=_0x236257;return _0x4635a9&&'resizeTable'===_0x4635a9['formatGroupId']?{'type':'format','content':Bt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ze=class extends _0x343d5f{afterInit(){const _0x28fa70=this['editor'];_0x28fa70['plugins']['has']('Template')&&_0x28fa70['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Je=class extends _0x343d5f{afterInit(){const _0x25bae0=this['editor'];if(!_0x25bae0['commands']['get']('insertTableOfContents'))return;_0x25bae0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3011d6=_0x25bae0['plugins']['get']('TrackChangesEditing'),_0x32c8c4=_0x25bae0['locale'];_0x3011d6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3071f6=>Bt(_0x32c8c4,'ELEMENT_TABLE_OF_CONTENTS',_0x3071f6));}},tn=class extends _0x343d5f{afterInit(){const _0xdc8955=this['editor'];_0xdc8955['plugins']['has']('Title')&&(_0xdc8955['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Bt(_0xdc8955['locale'],'ELEMENT_TITLE')),_0xdc8955['model']['document']['registerPostFixer'](_0x1d1410=>{let _0x57f9df=!0x1;const _0xe744ad=Array['from'](_0xdc8955['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b3ada,data:_0x502d71}of _0xe744ad){const {group:_0x47693a}=it(_0x5b3ada);if('suggestion'!==_0x47693a||!_0x502d71['newRange'])continue;const _0x5ecf3c=_0x502d71['newRange'],_0x155224=_0x5ecf3c['end']['nodeBefore'];if(!_0x155224||!_0x155224['is']('element','title-content'))continue;if(!_0x5ecf3c['start']['isTouching'](_0x5ecf3c['end']))continue;const _0x5e6cdd=_0xdc8955['model']['schema']['getNearestSelectionRange'](_0x5ecf3c['end'],'forward');if(_0x5e6cdd&&_0x5e6cdd['isCollapsed']){const _0x512480=_0x1d1410['createRange'](_0x5ecf3c['start'],_0x5e6cdd['start']);_0x512480['isEqual'](_0x5ecf3c)||(_0x1d1410['updateMarker'](_0x5b3ada,{'range':_0x512480}),_0x57f9df=!0x0);}_0x57f9df||(_0x1d1410['removeMarker'](_0x5b3ada),_0x57f9df=!0x0);}return _0x57f9df;}));}},en=class extends _0x343d5f{afterInit(){const _0x2c8dfa=this['editor'],_0x272b14=_0x2c8dfa['plugins']['get']('TrackChangesEditing');_0x2c8dfa['plugins']['has']('Uploadcare')&&(_0x272b14['enableCommand']('uploadcare'),_0x2c8dfa['plugins']['has']('UploadcareImageEdit')&&(_0x272b14['enableCommand']('uploadcareImageEdit'),_0x272b14['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x272b14['descriptionFactory']['registerDescriptionCallback'](_0x2b2fd8=>{if('attribute'!=_0x2b2fd8['type'])return;const {data:_0x1bca64}=_0x2b2fd8;return _0x1bca64&&'uploadcareImageId'==_0x1bca64['key']?{'type':'format','content':''}:void 0x0;})));}},nn=class extends _0x343d5f{afterInit(){const _0x1f283c=this['editor'],_0x179025=_0x1f283c['plugins']['get']('TrackChangesEditing');_0x1f283c['plugins']['has']('UndoEditing')&&(_0x179025['enableCommand']('undo'),_0x179025['enableCommand']('redo'));}},sn=class extends _0x343d5f{static get requires(){return[Ge];}afterInit(){const _0x3d5ef6=this['editor'];_0x3d5ef6['plugins']['has']('TableCaptionEditing')&&_0x3d5ef6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},rn=class extends _0x343d5f{tableProperties;tableCellProperties;constructor(_0x266e15){super(_0x266e15),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x104f7d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x121b19 of this['tableProperties'])_0x104f7d['enableCommand'](_0x121b19,(_0xf5e41a,_0x3ef109)=>{const _0x57a3fc=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x121b19,[_0x57a3fc],this['tableProperties'],'tableProperties',_0xf5e41a,_0x3ef109);});_0x104f7d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x104f7d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x104f7d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x94a1b,_0x2ebe2a)=>this['handleDiscardAction'](this['tableProperties'],_0x94a1b,_0x2ebe2a)),_0x104f7d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x31eced of this['tableCellProperties'])this['editor']['commands']['get'](_0x31eced)&&_0x104f7d['enableCommand'](_0x31eced,(_0x27d9b7,_0x1c1d51)=>{const _0x171b4b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x31eced,_0x171b4b,this['tableCellProperties'],'tableCellProperties',_0x27d9b7,_0x1c1d51);});_0x104f7d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x104f7d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x104f7d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x287fb5,_0x463fd2)=>this['handleDiscardAction'](this['tableCellProperties'],_0x287fb5,_0x463fd2)),_0x104f7d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x104f7d['descriptionFactory']['registerAttributeLabel']('tableCellType',Bt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x104f7d['descriptionFactory']['registerDescriptionCallback'](_0x2737bb=>this['handleSuggestionDescription'](_0x2737bb)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x4ab66a,_0x5f2e5e,_0xda443b,_0xc72cb3,_0x43bb5e,_0xbce58b){const _0x31a4cb=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xbce58b['batch'],()=>{for(const _0xce0cbf of _0x5f2e5e)if(this['_getSuggestion'](_0xce0cbf,_0xc72cb3))_0x43bb5e(_0xbce58b);else{const _0x1efcc7={};for(const _0xae714b of _0xda443b){const _0x12211c=_0xce0cbf['getAttribute'](_0xae714b);void 0x0!==_0x12211c&&(_0x1efcc7[_0xae714b]=_0x12211c);}const _0x7c3622=this['_getResizedColumnWidths'](_0xce0cbf);_0x7c3622&&(_0x1efcc7['columnWidths']=_0x7c3622),_0x43bb5e(_0xbce58b),_0x31a4cb['markBlockFormat'](_0xce0cbf,{'commandParams':[_0x1efcc7]},[],_0xc72cb3);}});}handleDiscardAction(_0x29b471,_0x3d45cc,_0x1a29a8){const _0x532226=_0x3d45cc[0x0]['start']['nodeAfter'],_0x3f3b70=_0x1a29a8['commandParams'][0x0];this['editor']['model']['change'](_0x576d93=>{for(const _0x27c53b of _0x29b471)void 0x0!==_0x3f3b70[_0x27c53b]?_0x576d93['setAttribute'](_0x27c53b,_0x3f3b70[_0x27c53b],_0x532226):_0x576d93['removeAttribute'](_0x27c53b,_0x532226);if(_0x3f3b70['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x35c9f7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x41c8d4=_0x35c9f7['getColumnGroupElement'](_0x532226);if(_0x41c8d4){const _0x267455=_0x35c9f7['getTableColumnsWidths'](_0x41c8d4),_0x13a236=_0x532226['getAttribute']('tableWidth');if(('string'==typeof _0x13a236&&_0x13a236['trim']()['endsWith']('px'))!==_0x267455['some'](_0x311445=>'string'==typeof _0x311445&&_0x311445['endsWith']('px'))){const _0x2862cd=_0x35c9f7['getTableColumnElements'](_0x41c8d4);_0x3f3b70['columnWidths']['forEach']((_0x58f068,_0x5b11a6)=>{_0x2862cd[_0x5b11a6]&&_0x576d93['setAttribute']('columnWidth',_0x58f068,_0x2862cd[_0x5b11a6]);});}}}});}_getResizedColumnWidths(_0x5f44c7){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x5f44c7['is']('element','table'))return;const _0x415eed=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x9894ee=_0x415eed['getColumnGroupElement'](_0x5f44c7);return _0x9894ee?_0x415eed['getTableColumnsWidths'](_0x9894ee):void 0x0;}handleSuggestionDescription(_0x7704c5){if(_0x7704c5['data'])switch(_0x7704c5['subType']){case'tableProperties':return{'type':'format','content':Bt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Bt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x27255f,_0x1aff8e){const _0x3ea286=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x126d32 of _0x3ea286['getSuggestions']({'skipNotAttached':!0x0})){const _0x4f5bea=_0x126d32['getContainedElement']();if(_0x126d32['subType']===_0x1aff8e&&_0x4f5bea===_0x27255f)return _0x126d32;}return null;}_registerTablePropertiesAttributes(){const _0x30ba5f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x214762=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x39a4e1 of _0x214762){const _0x3b4bb4=_0x39a4e1['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x30ba5f['descriptionFactory']['registerAttributeLabel'](_0x39a4e1,Bt(this['editor']['locale'],'FORMAT_'+_0x3b4bb4));}}},on=class extends _0x343d5f{afterInit(){const _0x8d2df5=this['editor'];if(!_0x8d2df5['plugins']['has']('LineHeight'))return;const _0x534a3f=_0x8d2df5['plugins']['get']('TrackChangesEditing'),_0x18ce56=_0x8d2df5['locale'];_0x534a3f['enableDefaultAttributesIntegration']('lineHeight'),_0x534a3f['descriptionFactory']['registerAttributeLabel']('lineHeight',Bt(_0x18ce56,'FORMAT_LINE_HEIGHT'));}};const an='$elementName';function cn(_0x151de9){return'marker'==_0x151de9['type']&&_0x151de9['name']['startsWith']('$markedRemove');}function ln(_0x2de1b2){return _0x2de1b2?[_0x2de1b2]:[];}var un=class extends _0x343d5f{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x54906c,_0x16e815,_0x36c40a,_0x58af6d,vt,Dt,Ut,Pt,Gt,Ht,Wt,zt,Vt,jt,Kt,qt,Yt,ne,ie,se,oe,ae,ce,ue,de,he,ge,fe,me,Te,Ee,_e,pe,Le,Ae,ke,Me,Ie,Qt,on,Jt,Re,Ne,ye,Se,Oe,we,Be,Fe,ve,De,Pe,xe,Ge,$e,We,Ve,ze,sn,Xe,Qe,Je,rn,Ze,tn,en,nn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ac332){super(_0x4ac332),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2a0b2d,_0x5affca,_0x26e7ab,_0x24cfef)=>{this['_model']['change'](()=>{for(const _0x33339b of[..._0x24cfef,..._0x26e7ab])this['_model']['markers']['has'](_0x33339b)&&_0x4ac332['editing']['reconvertMarker'](_0x33339b);});}),this['descriptionFactory']=new Ft(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new dn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4ac332['plugins']['get'](_0x54906c),this['_suggestionsConversion']=_0x4ac332['plugins']['get'](_0x16e815),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4ac332['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4ac332['config']['get']('trackChanges.trackFormatChanges'),_0x4ac332['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4ac332['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Lt(_0x4ac332,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x4c25c3=this['editor'];_0x4c25c3['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x137aa1,{writer:_0x42affe})=>{let _0x1ab007='suggestion:'+_0x137aa1['getAttribute']('suggestion-type')+':'+_0x137aa1['getAttribute']('id');return _0x137aa1['getAttribute']('marker-count')&&(_0x1ab007+=':'+_0x137aa1['getAttribute']('marker-count')),_0x42affe['createElement']('$marker',{'data-name':_0x1ab007});}}),_0x4c25c3['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4c25c3['model']['document']['registerPostFixer'](_0x4d1e82=>{let _0xfadca0=!0x1;const _0x472f74=Array['from'](_0x4c25c3['model']['document']['differ']['getChangedMarkers']()),_0x132398=new Set();for(const {name:_0xd182f0,data:_0x536357}of _0x472f74){const {group:_0x65cfbf,type:_0x5c5f64,subType:_0x382609,id:_0x2fa8b4}=it(_0xd182f0);if('suggestion'!==_0x65cfbf)continue;const _0x4c9abd=_0x382609?'suggestion:'+_0x5c5f64+':'+_0x382609+':'+_0x2fa8b4:'suggestion:'+_0x5c5f64+':'+_0x2fa8b4,_0x13e07b=_0x4c25c3['model']['markers']['getMarkersGroup'](_0x4c9abd),_0x1278e6=_0x4c25c3['model']['markers']['get'](_0xd182f0),_0x59de39=this['_suggestions']['get'](_0x2fa8b4);if(null!=_0x536357['newRange']){'formatInline'==_0x5c5f64&&(_0xfadca0=_0xfadca0||fn(_0x536357['newRange'],_0xd182f0,_0x4d1e82,_0x4c25c3['model']['schema']));const _0x5a3a6d='attribute'==_0x5c5f64&&this['_suggestionsConversion']['isBlockAttribute'](kn(_0x382609)),_0x4a94b9='attribute'==_0x5c5f64&&this['_suggestionsConversion']['isInlineAttribute'](kn(_0x382609));if(_0x536357['newRange']['isCollapsed']||'$graveyard'==_0x536357['newRange']['root']['rootName']||'formatBlock'==_0x5c5f64&&!En(_0x536357['newRange'])||_0x5a3a6d&&!En(_0x536357['newRange'])||_0x4a94b9&&Tn(_0x536357['newRange'])||'deletion'==_0x5c5f64&&Tn(_0x536357['newRange'])||_0x1278e6&&_n(_0x1278e6,_0x13e07b))_0x4d1e82['removeMarker'](_0xd182f0),_0xfadca0=!0x0;else{if(!_0x59de39||!_0x59de39['isInContent'])continue;if(_0x536357['newRange']&&_0x536357['oldRange']&&_0x536357['newRange']['isEqual'](_0x536357['oldRange']))continue;_0x132398['add'](_0x59de39);}}}return _0x132398['size']>0x0&&(_0xfadca0=!!this['_joinWithAdjacentSuggestions'](_0x132398)||_0xfadca0),_0xfadca0;}),_0x4c25c3['model']['document']['registerPostFixer'](_0x381db5=>{let _0xe9bafb=!0x1;for(const _0x27a200 of _0x4c25c3['model']['document']['differ']['getChanges']())if('insert'==_0x27a200['type'])for(const _0x82ba93 of this['_suggestions']['values']()){if(_0x82ba93['isMultiRange']||!_0x82ba93['isInContent'])continue;const _0x543981='formatBlock'==_0x82ba93['type'],_0x20f415=this['_getAttributeKey'](_0x82ba93),_0xfe8b70=_0x20f415&&this['_suggestionsConversion']['isBlockAttribute'](_0x20f415);if(!_0x543981&&!_0xfe8b70)continue;const _0x2b96d4=_0x82ba93['getFirstRange']();if(_0x2b96d4['start']['parent']!=_0x2b96d4['end']['parent']&&!_0x2b96d4['end']['isAtEnd']){const _0x1e8201=_0x4c25c3['model']['createPositionAt'](_0x2b96d4['start']['nodeAfter'],'end'),_0x232c9b=_0x4c25c3['model']['createRange'](_0x2b96d4['start'],_0x1e8201);_0x381db5['updateMarker'](_0x82ba93['getFirstMarker'](),{'range':_0x232c9b}),_0xe9bafb=!0x0;}}return _0xe9bafb;}),_0x4c25c3['model']['document']['registerPostFixer'](_0x570058=>this['_processAttributeChanges'](_0x570058)),_0x4c25c3['model']['document']['registerPostFixer'](_0x4bbfd9=>!_0x4bbfd9['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4bbfd9)),_0x4c25c3['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4c25c3['model']['document']['on']('change:data',(_0x3f60c3,_0x5f0d5a)=>{if(!_0x5f0d5a['isLocal']||_0x5f0d5a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2c4f9e=_0x4c25c3['model']['document']['differ']['getChanges']();if(0x0==_0x2c4f9e['length'])return;const _0x4c168d=[],_0x19d5f3=_0x2c4f9e['filter'](_0x2740a6=>'attribute'==_0x2740a6['type']),_0x546c00=_0x2c4f9e['filter'](_0x417c39=>'insert'==_0x417c39['type']&&'$text'!=_0x417c39['name']);for(const _0x11b009 of _0x19d5f3)this['_suggestionsConversion']['isRegisteredAttribute'](_0x11b009['attributeKey'])&&_0x4c168d['push']({'key':_0x11b009['attributeKey'],'newValue':_0x11b009['attributeNewValue'],'oldValue':_0x11b009['attributeOldValue'],'range':pn(_0x11b009['range'],_0x4c25c3['model'])});for(const _0x2be3c7 of _0x546c00){if('rename'!=_0x2be3c7['action']&&'refresh'!=_0x2be3c7['action'])continue;const _0x16cc3b=Ln(_0x2be3c7['position']['nodeAfter'],_0x4c25c3['model']),_0x1678f9=_0x2be3c7['before'];'rename'==_0x2be3c7['action']&&_0x4c168d['push']({'key':an,'newValue':_0x2be3c7['name'],'oldValue':_0x1678f9['name'],'range':_0x16cc3b});for(const [_0x1e170c,_0x2c9d77]of _0x1678f9['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x1e170c))continue;const _0x44e5ec=_0x2be3c7['attributes']['get'](_0x1e170c);_0x2c9d77!==_0x44e5ec&&_0x4c168d['push']({'key':_0x1e170c,'newValue':_0x44e5ec,'oldValue':_0x2c9d77,'range':_0x16cc3b});}for(const [_0x245581,_0x280d3b]of _0x2be3c7['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x245581)&&(_0x1678f9['attributes']['has'](_0x245581)||_0x4c168d['push']({'key':_0x245581,'newValue':_0x280d3b,'oldValue':null,'range':_0x16cc3b}));}0x0!=_0x4c168d['length']&&_0x4c25c3['model']['enqueueChange'](_0x5f0d5a,_0x57ce61=>{const _0x25fdb1=_0x4795d2();for(const {range:_0x54b07d,key:_0x2e63,oldValue:_0x157a27,newValue:_0x34016d}of _0x4c168d)this['markAttributeChange'](_0x54b07d,_0x2e63,_0x157a27,_0x34016d,{'groupId':_0x25fdb1});this['_reduceExistingSuggestions'](_0x57ce61,_0x4c168d);});},{'priority':'lowest'}),_0x4c25c3['model']['markers']['on']('update:suggestion',(_0x515841,_0x525506,_0x494f43)=>{if(null==_0x494f43){const {id:_0x3e909a}=it(_0x525506['name']),_0x4a034c=this['_suggestions']['get'](_0x3e909a);_0x4a034c&&_0x4a034c['addMarkerName'](_0x525506['name']);}}),_0x4c25c3['model']['document']['on']('change:data',()=>{const _0x6ddfc2=Array['from'](_0x4c25c3['model']['document']['differ']['getChangedMarkers']())['filter'](_0x36ef45=>'suggestion'===it(_0x36ef45['name'])['group']);if(0x0===_0x6ddfc2['length'])return;_0x6ddfc2['sort']((_0x346095,_0x326879)=>{const _0x269e3f=_0x346095['data']['oldRange'],_0x588c3f=_0x326879['data']['oldRange'];return null===_0x269e3f&&null===_0x588c3f?0x0:null===_0x269e3f&&null!==_0x588c3f?-0x1:null!==_0x269e3f&&null===_0x588c3f?0x1:_0x269e3f['start']['isBefore'](_0x588c3f['start'])?-0x1:0x1;});const _0x2cd5d6=new Set(),_0x3d2066=new Set();for(const {name:_0x4490fc,data:_0x7a2e70}of _0x6ddfc2){const {id:_0x388bd8}=it(_0x4490fc);if(null===_0x7a2e70['oldRange']){const _0x2bab9a=this['_handleNewSuggestionMarker'](_0x4490fc);_0x3d2066['add'](_0x2bab9a);}else{const _0x5601fc=this['_suggestions']['get'](_0x388bd8);null!==_0x7a2e70['newRange']||_0x5601fc['isInContent']?(_0x2cd5d6['add'](_0x5601fc['head']),_0x3d2066['add'](_0x5601fc)):this['_removeSuggestion'](_0x5601fc);}}_0x3d2066['size']>0x0&&this['_refreshSuggestionsChain'](_0x3d2066);for(const _0x1d40ad of _0x2cd5d6)this['fire']('suggestionChanged',_0x1d40ad);}),_0x4c25c3['model']['on']('applyOperation',(_0x4dc0ed,_0x3a29da)=>{const _0x342322=_0x3a29da[0x0];if(!this['_suggestions']['size'])return;if(!_0x342322['isDocumentOperation'])return;if(_0x342322['batch']['isUndo']||!_0x342322['batch']['isLocal'])return;let _0xf71a4d,_0xa47ece;switch(_0x342322['type']){case'insert':_0xf71a4d=_0x4c25c3['model']['createPositionAt'](_0x342322['position']),_0xa47ece=_0xf71a4d['getShiftedBy'](_0x342322['howMany']);break;case'split':_0xf71a4d=_0x4c25c3['model']['createPositionAt'](_0x342322['splitPosition']),_0xa47ece=_0x4c25c3['model']['createPositionAt'](_0x342322['moveTargetPosition']);break;case'move':_0xf71a4d=_0x4c25c3['model']['createPositionAt'](_0x342322['targetPosition']),_0xa47ece=_0xf71a4d['getShiftedBy'](_0x342322['howMany']);break;default:return;}const _0x511e6d=_0x4c25c3['model']['createRange'](_0xf71a4d,_0xa47ece);_0x4c25c3['model']['change'](()=>{for(const {suggestion:_0x35335,meta:_0x8b3e9f}of this['_findSuggestions'](_0x511e6d)){if(_0x35335['isMultiRange'])continue;if('formatInline'==_0x35335['type'])continue;const _0x22a47e=this['_getAttributeKey'](_0x35335);if(_0x22a47e&&this['_suggestionsConversion']['isBlockAttribute'](_0x22a47e)&&'split'!=_0x342322['type'])continue;const _0x520ad5=_0x35335['data']&&_0x35335['data']['multipleBlocks'];('formatBlock'!=_0x35335['type']||'split'==_0x342322['type']&&!_0x520ad5)&&(_0x8b3e9f['containsRangeInObject']||'insertion'==_0x35335['type']&&_0x8b3e9f['isOwn']||_0x35335['getFirstRange']()['containsRange'](_0x511e6d)&&this['_breakSuggestionMarker'](_0x35335,_0xf71a4d,_0xa47ece));}});},{'priority':'lowest'}),_0x4c25c3['model']['on']('deleteContent',(_0x41f683,_0x55ef58)=>{const _0x5aa0be=_0x55ef58[0x0],_0x3e2a6e=_0x55ef58[0x1];if(_0x3e2a6e&&_0x3e2a6e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5aa0be['isCollapsed'])return;const _0x3a937a=_0x4c25c3['model']['schema'],{start:_0x1a8b73,end:_0x4064bb}=_0x5aa0be['getFirstRange'](),_0xda7f04=_0x1a8b73['nodeAfter']&&_0x3a937a['isLimit'](_0x1a8b73['nodeAfter'])?null:_0x3a937a['getNearestSelectionRange'](_0x1a8b73,'forward'),_0x569ab4=_0x4064bb['nodeBefore']&&_0x3a937a['isLimit'](_0x4064bb['nodeBefore'])?null:_0x3a937a['getNearestSelectionRange'](_0x4064bb,'backward'),_0x4af9c5=_0x4c25c3['model']['createRange'](_0xda7f04?_0xda7f04['start']:_0x1a8b73,_0x569ab4?_0x569ab4['end']:_0x4064bb);_0x4c25c3['model']['change'](_0x4db1b9=>{this['markDeletion'](_0x4af9c5);const _0x3e8ec2=_0x4c25c3['model']['schema']['getNearestSelectionRange'](_0x4af9c5['start']);_0x5aa0be['is']('documentSelection')?_0x4db1b9['setSelection'](_0x3e8ec2):_0x5aa0be['setTo'](_0x3e8ec2);}),_0x41f683['stop']();},{'priority':_0x426eae['normal']+0xa}),_0x4c25c3['model']['on']('insertContent',(_0x50bffd,_0x2bf6e8)=>{const _0xbedbbe=_0x2bf6e8[_0x2bf6e8['length']-0x1];_0xbedbbe&&_0xbedbbe['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4c25c3['model']['change'](()=>{let _0x3031d9=_0x4c25c3['model']['insertContent'](_0x2bf6e8[0x0],_0x2bf6e8[0x1],_0x2bf6e8[0x2],{'forceDefaultExecution':!0x0});if(!_0x3031d9)return;_0x50bffd['return']=_0x3031d9['clone']();const _0x603e5a=_0x3031d9['end']['nodeBefore'],_0x174c01=_0x4c25c3['model']['schema'];_0x603e5a&&_0x174c01['isBlock'](_0x603e5a)&&!_0x174c01['isObject'](_0x603e5a)&&(_0x3031d9=_0x4c25c3['model']['createRange'](_0x3031d9['start'],_0x4c25c3['model']['createPositionAt'](_0x603e5a,'end'))),this['markInsertion'](_0x3031d9);}),_0x50bffd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5226dc=new It(_0x4c25c3,this['_suggestions']);_0x4c25c3['commands']['add']('acceptSuggestion',_0x5226dc),this['enableCommand']('acceptSuggestion');const _0x11cf88=new At(_0x4c25c3,this['_suggestions']);_0x4c25c3['commands']['add']('discardSuggestion',_0x11cf88),this['enableCommand']('discardSuggestion'),_0x4c25c3['commands']['add']('acceptAllSuggestions',new St(_0x4c25c3,_0x5226dc,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4c25c3['commands']['add']('discardAllSuggestions',new St(_0x4c25c3,_0x11cf88,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4c25c3['commands']['add']('acceptSelectedSuggestions',new Mt(_0x4c25c3,_0x5226dc,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4c25c3['commands']['add']('discardSelectedSuggestions',new Mt(_0x4c25c3,_0x11cf88,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x132f3e=_0x4c25c3['plugins']['get'](_0x54906c);this['listenTo'](_0x132f3e,'addComment',(_0x203202,{threadId:_0x478256})=>{const _0x51ba5d=this['_suggestions']['get'](_0x478256);_0x51ba5d&&_0x51ba5d['commentThread']&&0x1===_0x51ba5d['commentThread']['length']&&this['_updateSuggestionData'](_0x478256,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x132f3e,'removeComment',(_0x44f757,{threadId:_0x116107})=>{const _0xdf6a26=this['_suggestions']['get'](_0x116107);_0xdf6a26&&_0xdf6a26['commentThread']&&!_0xdf6a26['commentThread']['length']&&this['_updateSuggestionData'](_0x116107,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x58af06){const _0x26cf31='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x69e88f=0x797d0,_0x58ba05={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x227b53(_0x493e59){const _0x6fb5e1=new window['Promise'](_0x25869f=>{_0x493e59['once']('ready',_0x25869f);}),_0x1a13ae=window['Date']['now'](),_0x3a9a8e=_0x493e59['config']['get']('licenseKey');async function _0x5c7e7c(){let _0x5c3fe2,_0x3882d2=null,_0xc3a3cf=null;try{return'GPL'==_0x3a9a8e?'NotAllowed':(_0x5c3fe2=_0x9bdd16(),_0x5c3fe2?(_0x5c3fe2['usageEndpoint']&&(_0xc3a3cf=_0x2af9a0(_0x5c3fe2['usageEndpoint'],_0x5c3fe2['jti'])),await _0x2a205d()?_0x38b86e()?_0xd84644()?'Expired':_0x415969()?('evaluation'==_0x5c3fe2['licenseType']&&(_0x3882d2=_0x7a7afd('EvaluationLimit')),await _0x2bf988()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0xd84644(){const _0x18b93e=['evaluation','trial']['includes'](_0x5c3fe2['licenseType'])?_0x1a13ae/0x3e8:0xe10*_0x69e88f;return _0x5c3fe2['exp']<_0x18b93e;}function _0x38b86e(){const _0x9eb18d=_0x5c3fe2['features'];if(!_0x9eb18d)return!0x1;if(_0x9eb18d['includes']('*'))return!0x0;if(_0x9eb18d['includes']('TC'))return!0x0;if(_0x9eb18d['includes']('RTC')){if(_0x39fd5e())return!0x0;if(_0x15e00a()||_0x391633())return!0x0;}return!0x1;}function _0x415969(){const _0x42e1ca=_0x5c3fe2['licensedHosts'];if(!_0x42e1ca||0x0==_0x42e1ca['length'])return!0x0;const {hostname:_0x531837}=new URL(window['location']['href']);if(_0x42e1ca['includes'](_0x531837))return!0x0;const _0x4cc4e6=_0x531837['split']('.');return _0x42e1ca['filter'](_0x19aa97=>_0x19aa97['includes']('*'))['map'](_0x12bc5d=>_0x12bc5d['split']('.'))['filter'](_0x157a6a=>_0x157a6a['length']<=_0x4cc4e6['length'])['map'](_0x4f9ff7=>Array(_0x4cc4e6['length']-_0x4f9ff7['length'])['fill']('*'===_0x4f9ff7[0x0]?'*':'')['concat'](_0x4f9ff7))['some'](_0x9b0daa=>_0x4cc4e6['every']((_0x1eac31,_0x1d3e47)=>_0x9b0daa[_0x1d3e47]===_0x1eac31||'*'===_0x9b0daa[_0x1d3e47]));}function _0x2bf988(){return _0x3882d2&&_0xc3a3cf?new window['Promise']((_0x362e97,_0x108837)=>{_0x3882d2['then'](_0x362e97,_0x108837),_0xc3a3cf['then'](_0x19ef6c=>{'Valid'!=_0x19ef6c&&_0x362e97(_0x19ef6c);},_0x108837);}):_0x3882d2||_0xc3a3cf||'Valid';}}function _0x2af9a0(_0x487fe3,_0xce4088){return new window['Promise'](_0x15e6ba=>{if(_0x1df95a())return _0x15e6ba('Valid');_0xff82f7(),_0x493e59['decorate']('_sendUsageRequest');let _0x5b18df=!0x1;const _0x3d23fa=_0x4795d2();function _0xaad758(_0xbc862f){return!!_0xbc862f&&('object'==typeof _0xbc862f||'function'==typeof _0xbc862f)&&'function'==typeof _0xbc862f['then']&&'function'==typeof _0xbc862f['catch'];}function _0x567873(_0x1e0dfe){_0x301b29(_0x1e0dfe)['then'](_0x5625fe=>_0x5625fe&&'ok'==_0x5625fe['status']?_0x3d4a06(_0x14af81(_0x3d23fa+_0xce4088))!=_0x5625fe['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x5d8fef=>(_0x46f83b(),_0x5d8fef),()=>{const _0xb2c770=_0x108b58();return null==_0xb2c770?(_0x46f83b(),'Valid'):_0x1a13ae-_0xb2c770>0x240c8400?'UsageLimit':'Valid';})['then'](_0x15e6ba)['catch'](()=>{_0x15e6ba('UsageLimit');});const _0x35cc8c=0x36ee80;function _0x46f83b(){const _0x257e26='llct-'+_0x3d4a06(_0x14af81(_0x487fe3)),_0x383692=_0x4cdae2(_0x3d4a06(window['Math']['ceil'](_0x1a13ae/_0x35cc8c)));window['localStorage']['setItem'](_0x257e26,_0x383692);}function _0x108b58(){const _0x227dfc='llct-'+_0x3d4a06(_0x14af81(_0x487fe3)),_0x4453b3=window['localStorage']['getItem'](_0x227dfc);return _0x4453b3?window['parseInt'](_0x4cdae2(_0x4453b3),0x10)*_0x35cc8c:null;}function _0x301b29(_0x2a5ec8){return new window['Promise']((_0x1fa149,_0x41f7c1)=>{_0x2a5ec8['then'](_0x1fa149,_0x41f7c1),window['setTimeout'](_0x41f7c1,0x1d4c0);});}}_0x493e59['on']('_sendUsageRequest',(_0x3358fd,_0x4b57a7)=>{if(_0x4b57a7[0x0]!=_0x487fe3)return _0x15e6ba('UsageLimit');_0x4b57a7[0x1]={..._0x4b57a7[0x1],'requestId':_0x3d23fa};},{'priority':'high'}),_0x493e59['on']('_sendUsageRequest',_0x285676=>{_0xaad758(_0x285676['return'])&&(_0x5b18df=!0x0,_0x567873(_0x285676['return']));},{'priority':'low'}),_0x6fb5e1['then'](()=>{_0x5b18df||_0x15e6ba('UsageLimit');});});function _0x1df95a(){return'auto'==_0x493e59['editing']['view']['_overlayModeHint'];}function _0xff82f7(){_0x493e59['editing']['view']['_overlayModeHint']='auto';}}function _0x7a7afd(_0x27c527){const _0x8d5402=[new window['Promise'](_0x519bb3=>setTimeout(_0x519bb3,0x93ecc)),_0x6fb5e1['then'](()=>new window['Promise'](_0x4a023c=>{let _0x57e2ac=0x0;_0x493e59['model']['on']('applyOperation',(_0x65130,_0x311f2b)=>{_0x311f2b[0x0]['isDocumentOperation']&&_0x57e2ac++,0x5e8==_0x57e2ac&&(_0x4a023c(),_0x65130['off']());});}))];return window['Promise']['race'](_0x8d5402)['then'](()=>_0x27c527);}async function _0x48ea52(){await _0x6fb5e1,_0x493e59['model']['change']=_0x4cd3b7,_0x493e59['model']['enqueueChange']=_0x4cd3b7,_0x493e59['enableReadOnlyMode']('model');}function _0x39fd5e(){return _0x3c36bd('WebSocketGateway')&&'connected'==_0x233c7d('WebSocketGateway')['state'];}function _0x15e00a(){return _0x3c36bd('RevisionViewerIntegration');}function _0x391633(){return _0x3c36bd('TrackChangesDataGetter');}function _0x4807c3(_0x5e56ec){const _0x3ade53=_0xa30fc6();_0x493e59[_0x3ade53]='trackChangesLicenseKey'+_0x5e56ec,'Valid'!=_0x5e56ec&&_0x48ea52();}function _0xa30fc6(){const _0xb44d95=window['String'](window['performance']['now']())['replace']('.','');let _0x56e22a='U';for(let _0x3aca2c=0x0;_0x3aca2c<_0xb44d95['length'];_0x3aca2c+=0x2){let _0x5b37e7=window['parseInt'](_0xb44d95['substring'](_0x3aca2c,_0x3aca2c+0x2));_0x5b37e7>=0x3e&&(_0x5b37e7-=0x3e),_0x56e22a+=_0x26cf31[_0x5b37e7];}return _0x56e22a;}function _0x9bdd16(){const _0x19c6a0=_0x3a9a8e['split']('.');if(0x3!=_0x19c6a0['length'])return null;return _0x309f31(_0x19c6a0[0x1]);function _0x309f31(_0x489d50){const _0x2631c9=_0x59b917(_0x489d50);return _0x2631c9&&_0x2f947a()?_0x2631c9:null;function _0x2f947a(){const _0x27aba3=_0x2631c9['jti'],_0x129425=window['parseInt'](_0x27aba3['substring'](_0x27aba3['length']-0x8),0x10),_0x5a85d0={..._0x2631c9,'jti':_0x27aba3['substring'](0x0,_0x27aba3['length']-0x8)};return delete _0x5a85d0['vc'],_0x14af81(_0x5a85d0)==_0x129425;}}}async function _0x2a205d(){let _0x250376=!0x0;try{const [_0x3c27b9,_0x3fe4de,_0x4aa95d]=_0x3a9a8e['split']('.');return _0x39fbe0(_0x3c27b9),await _0x3c5ed0(_0x3c27b9,_0x3fe4de,_0x4aa95d),_0x250376;}catch{return!0x1;}function _0x39fbe0(_0x233eba){const _0x59dcdb=_0x59b917(_0x233eba);_0x59dcdb&&'ES256'==_0x59dcdb['alg']||(_0x250376=!0x1);}async function _0x3c5ed0(_0x3f882b,_0x39ccf7,_0x11c0c3){const _0x13100b=window['Uint8Array']['from'](_0x2f32b5(_0x11c0c3),_0x5cc623=>_0x5cc623['charCodeAt'](0x0)),_0x451fec=new window['TextEncoder']()['encode'](_0x3f882b+'.'+_0x39ccf7),_0x336bfb=window['crypto']['subtle'];if(!_0x336bfb)return;const _0x2b17f7=await _0x336bfb['importKey']('jwk',_0x58ba05,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x336bfb['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x2b17f7,_0x13100b,_0x451fec)||(_0x250376=!0x1);}}function _0x59b917(_0x2dc7f6){return _0x2dc7f6['startsWith']('ey')?JSON['parse'](_0x2f32b5(_0x2dc7f6)):null;}function _0x2f32b5(_0x28937b){return window['atob'](_0x28937b['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x14af81(_0x3e8e55){let _0x5bdf85=0x1505;function _0x3eae96(_0x34c7f3){for(let _0x47a376=0x0;_0x47a376<_0x34c7f3['length'];_0x47a376++){const _0x56f320=_0x34c7f3['charCodeAt'](_0x47a376);_0x5bdf85=(_0x5bdf85<<0x5)+_0x5bdf85+_0x56f320,_0x5bdf85&=_0x5bdf85;}}function _0x5dac61(_0x5e3180){Array['isArray'](_0x5e3180)?_0x5e3180['forEach'](_0x5dac61):_0x5e3180&&'object'==typeof _0x5e3180?Object['entries'](_0x5e3180)['sort']()['forEach'](([_0x1a28d8,_0x4b9d9e])=>{_0x3eae96(_0x1a28d8),_0x5dac61(_0x4b9d9e);}):_0x3eae96(window['String'](_0x5e3180));}return _0x5dac61(_0x3e8e55),_0x5bdf85>>>0x0;}function _0x3d4a06(_0x3bd6c6){return _0x3bd6c6['toString'](0x10)['padStart'](0x8,'0');}function _0x4cdae2(_0x1ad362){return _0x1ad362['split']('')['reverse']()['join']('');}function _0x3c36bd(_0x49b39d){return _0x493e59['plugins']['has'](_0x49b39d);}function _0x233c7d(_0x5cc006){return _0x493e59['plugins']['get'](_0x5cc006);}function _0x4cd3b7(){}_0x4807c3(await _0x5c7e7c());}_0x227b53(_0x58af06['editor']);}(this);}set adapter(_0x14ee1d){if(this['_adapter'])throw new _0x2ccabb('track-changes-adapter-already-set',this);this['_adapter']=_0x14ee1d;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x3e362=!0x1,toJSON:_0x625713=!0x1}={}){const _0x3ac996=[];for(const _0x48bd5c of this['_suggestions']['values']())_0x3e362&&!_0x48bd5c['isInContent']||_0x3ac996['push'](_0x48bd5c);return _0x625713?_0x3ac996['map'](_0x49a003=>_0x49a003['toJSON']()):_0x3ac996;}getSuggestion(_0x293d45){const _0xa9f399=this['_suggestions']['get'](_0x293d45);if(!_0xa9f399)throw new _0x2ccabb('track-changes-suggestion-not-found',this);return _0xa9f399;}hasSuggestion(_0x2c2027){return this['_suggestions']['has'](_0x2c2027);}addSuggestionData(_0x2ce079){const {authorId:_0x474bda,id:_0x12c83e,originalSuggestionId:_0x37d7ee,attributes:_0x4aa4fc}=_0x2ce079,[_0x362e40,_0x3a211f]=_0x2ce079['type']['split'](':'),_0x27b5b7=this['_suggestions']['get'](_0x12c83e)||this['_createSuggestion'](_0x362e40,_0x3a211f,_0x12c83e,_0x474bda,_0x4aa4fc,_0x37d7ee);if(this['_addThreadToSuggestion'](_0x27b5b7),this['_checkSuggestionCorrectness'](_0x27b5b7,_0x362e40,_0x3a211f||null,_0x474bda),_0x27b5b7['createdAt']=_0x2ce079['createdAt'],_0x27b5b7['_isDataLoaded']=!0x0,_0x4aa4fc&&_0x4aa4fc['@external']){const _0x4345aa=_0x4aa4fc['@external'],_0x4ff339=this['_getExternalAuthor'](_0x4345aa['authorName']);_0x27b5b7['authoredAt']=_0x4345aa['createdAt'],_0x27b5b7['author']=_0x4ff339;}else _0x27b5b7['authoredAt']=_0x2ce079['createdAt'];switch(_0x2ce079['data']&&(_0x27b5b7['data']=_0x2ce079['data']),_0x2ce079['attributes']&&(_0x27b5b7['attributes']=_0x2ce079['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x27b5b7['_saved']=!0x0),this['_suggestionState']['get'](_0x27b5b7)){case'notReady':this['_suggestionState']['set'](_0x27b5b7,'dataReady');break;case'markerReady':_0x27b5b7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x27b5b7])),this['_refreshSuggestionsChain'](new Set([_0x27b5b7])),this['_suggestionState']['set'](_0x27b5b7,'ready'),this['fire']('suggestionLoaded',_0x27b5b7)):this['_suggestionState']['set'](_0x27b5b7,'removed');}return _0x27b5b7;}acceptSuggestion(_0x34aea9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1f8624 of _0x34aea9['getAllAdjacentSuggestions']())_0x1f8624['accept']();});});}discardSuggestion(_0x4c984f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x30e08d of _0x4c984f['getAllAdjacentSuggestions']())_0x30e08d['discard']();});});}['enableCommand'](_0x2ad4f3,_0x3da937){const _0x4ab6bb=this['editor']['commands']['get'](_0x2ad4f3);if(!_0x4ab6bb)throw new _0x2ccabb('track-changes-command-not-found',this,{'commandName':_0x2ad4f3});if(this['_enabledCommands']['has'](_0x4ab6bb))throw new _0x2ccabb('track-changes-enable-command-twice',this,{'commandName':_0x2ad4f3});this['_enabledCommands']['add'](_0x4ab6bb),_0x3da937&&_0x4ab6bb['on']('execute',(_0x4c9a36,_0x363e18)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x363e18['length']>0x0&&_0x363e18[_0x363e18['length']-0x1]&&_0x363e18[_0x363e18['length']-0x1]['forceDefaultExecution']?_0x363e18['pop']():(_0x4c9a36['return']=_0x3da937((..._0x35c2f7)=>_0x4ab6bb['execute'](..._0x35c2f7,{'forceDefaultExecution':!0x0}),..._0x363e18),_0x4c9a36['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x252252){let _0x1b4ab5,_0x526bb2;const _0x117b61=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1b4ab5=_0x252252();}catch(_0x14a697){_0x526bb2=_0x14a697;}return _0x117b61||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x526bb2&&_0x2ccabb['rethrowUnexpectedError'](_0x526bb2,this),_0x1b4ab5;}markInsertion(_0x22b4bf,_0x4e9a5e=null,_0x105584={}){if(_0x22b4bf['isCollapsed'])return null;const _0xdcec97=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x105584['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x48c39f,meta:_0x27ed6c}of this['_findSuggestions'](_0x22b4bf,'insertion'))if(_0x27ed6c['isOwn']){if(!_0x27ed6c['isNextTo']){if(_0x27ed6c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!bn(_0x48c39f,_0x105584))continue;return _0x48c39f;}if(bn(_0x48c39f,_0x105584))return _0x48c39f;this['_breakSuggestionMarker'](_0x48c39f,_0x22b4bf['start'],_0x22b4bf['end']);break;}if(_0x4e9a5e==_0x48c39f['subType']&&bn(_0x48c39f,_0x105584)){const _0x134d3a=_0x48c39f['getFirstRange']();return _0x134d3a['start']['isEqual'](_0x22b4bf['end'])?this['_setSuggestionRange'](_0x48c39f,this['_model']['createRange'](_0x22b4bf['start'],_0x134d3a['end'])):this['_setSuggestionRange'](_0x48c39f,this['_model']['createRange'](_0x134d3a['start'],_0x22b4bf['end'])),_0x48c39f;}}const _0x34c5aa=_0x4795d2(),_0x5b04fc=_0xdcec97['id'],_0x43c1cc=_0x4e9a5e?'insertion:'+_0x4e9a5e:'insertion',_0x5f34f9=this['_setSuggestionData']({'id':_0x34c5aa,'type':_0x43c1cc,'createdAt':new Date(),'authorId':_0x5b04fc,'attributes':_0x105584});return this['_addSuggestionMarker'](_0x43c1cc,_0x34c5aa,_0x5b04fc,_0x22b4bf),_0x5f34f9;}markMultiRangeInsertion(_0x153596,_0x2f0573='multi',_0x54b2d9={}){const _0x10269a=this['editor']['plugins']['get']('Users')['me'],_0x57134a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2f0573,'join');this['_trackingSessionId']&&(_0x54b2d9['trackingSessionId']=this['_trackingSessionId']);for(const _0x546daa of this['getSuggestions']())if(_0x546daa['author']['id']==_0x10269a['id']&&'insertion'==_0x546daa['type']&&_0x546daa['subType']==_0x2f0573&&bn(_0x546daa,_0x54b2d9)&&(_0x57134a(_0x546daa['getRanges'](),_0x153596)||_0x57134a(_0x153596,_0x546daa['getRanges']()))){for(const _0x421abe of _0x153596)_0x546daa['addRange'](_0x421abe);return _0x546daa;}for(const {suggestion:_0x802ef8,meta:_0x4c8de7}of this['_findSuggestions'](_0x153596,'insertion')){if(!_0x4c8de7['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4c8de7['containsRangeInObject'])continue;if(!bn(_0x802ef8,_0x54b2d9))continue;let _0x43eabb=!0x0;for(const _0x1c7c79 of _0x802ef8['getRanges']())for(const _0x3dcb74 of _0x153596)if(!_0x1c7c79['containsRange'](_0x3dcb74)){_0x43eabb=!0x1;break;}if(_0x43eabb)return _0x802ef8;}const _0x36986c=_0x4795d2(),_0x54bbce=_0x10269a['id'],_0x33f471='insertion:'+_0x2f0573,_0x2ae14f=this['_setSuggestionData']({'id':_0x36986c,'type':_0x33f471,'createdAt':new Date(),'authorId':_0x54bbce,'attributes':_0x54b2d9});for(const _0x52d1c6 of _0x153596)this['_addSuggestionMarker'](_0x33f471,_0x36986c,_0x54bbce,_0x52d1c6,wt['getMultiRangeId']());return _0x2ae14f;}markInlineFormat(_0x446953,_0x449b3d,_0x4287be=null,_0x1373df={}){if(_0x4287be=_0x4287be||mn(_0x449b3d),_0x446953['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1373df['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x574e7a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4287be,'accept');return this['forceDefaultExecution'](()=>_0x574e7a([_0x446953],_0x449b3d,_0x1373df)),null;}const _0x2210a9=this['editor']['plugins']['get']('Users')['me'],_0x3c9fd4=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3e53fb,meta:_0x3afcc5}of this['_findSuggestions'](_0x446953,'insertion'))_0x3afcc5['isOwn']&&!_0x3afcc5['isInsideObject']&&_0x3c9fd4['push'](..._0x3e53fb['getRanges']());}const _0x10d620=function(_0x1ce249,_0x200d06){const _0x4184c1=[];for(const _0x34b870 of _0x200d06){const _0x1015a3=_0x1ce249['getIntersection'](_0x34b870);_0x1015a3&&_0x4184c1['push'](_0x1015a3);}return _0x4184c1;}(_0x446953,_0x3c9fd4),_0x477d50=function(_0x3baf2d,_0xd2b776){const _0x54ed98=[_0x3baf2d];for(const _0x45d378 of _0xd2b776){let _0x18d2b=0x0;for(;_0x18d2b<_0x54ed98['length'];){const _0x354f45=_0x54ed98[_0x18d2b]['getDifference'](_0x45d378);_0x54ed98['splice'](_0x18d2b,0x1,..._0x354f45),_0x18d2b+=_0x354f45['length'];}}return _0x54ed98;}(_0x446953,_0x3c9fd4);_0x10d620['length']&&this['_model']['change'](()=>{for(const _0x1c057f of _0x10d620){const _0x4cdf33=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4287be,'accept');this['forceDefaultExecution'](()=>_0x4cdf33([_0x1c057f],_0x449b3d,_0x1373df));}});for(const _0x5e3749 of _0x477d50){let _0x28f52f=null,_0x2b0908=_0x5e3749['start'],_0x4bfdff=_0x5e3749['end'];for(const {suggestion:_0xd385a6,meta:_0x25c49d}of this['_findSuggestions'](_0x5e3749,'formatInline')){if(!_0x25c49d['isOwn'])continue;if(_0xd385a6['subType']!=_0x4287be)continue;if(!bn(_0xd385a6,_0x1373df))continue;const _0x1d4f33=_0xd385a6['getFirstRange']();if(_0x1d4f33['containsRange'](_0x5e3749,!0x0))return null;_0x2b0908=_0x2b0908['isBefore'](_0x1d4f33['start'])?_0x2b0908:_0x1d4f33['start'],_0x4bfdff=_0x4bfdff['isAfter'](_0x1d4f33['end'])?_0x4bfdff:_0x1d4f33['end'],_0x28f52f?_0x1d4f33['start']['isBefore'](_0x28f52f['getFirstRange']()['start'])?(_0x28f52f['removeMarkers'](),_0x28f52f=_0xd385a6):_0xd385a6['removeMarkers']():_0x28f52f=_0xd385a6;}const _0x2db871=this['_model']['createRange'](_0x2b0908,_0x4bfdff);if(_0x28f52f)this['_setSuggestionRange'](_0x28f52f,_0x2db871);else{const _0x1d982d=_0x4795d2(),_0x5b7261=_0x2210a9['id'];this['_setSuggestionData']({'id':_0x1d982d,'type':'formatInline:'+_0x4287be,'data':_0x449b3d,'createdAt':new Date(),'authorId':_0x5b7261,'attributes':_0x1373df}),this['_addSuggestionMarker']('formatInline:'+_0x4287be,_0x1d982d,_0x5b7261,_0x2db871);}}return null;}markBlockFormat(_0x4cfdff,_0x180fb9,_0x2d2797=[],_0x246eee=null,_0x30a4ce={}){_0x180fb9['formatGroupId']||(_0x180fb9['formatGroupId']=_0x180fb9['commandName']),_0x180fb9['multipleBlocks']=_0x4cfdff['is']('range'),_0x246eee=_0x246eee||mn(_0x180fb9);const _0x57aa42=_0x2d2797['map'](_0x5dd338=>Ln(_0x5dd338,this['_model'])),_0xa0b02c=_0x4cfdff['is']('range')?_0x4cfdff:Ln(_0x4cfdff,this['_model']);if(this['_trackingSessionId']&&(_0x30a4ce['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x461b45=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x246eee,'accept');return this['forceDefaultExecution'](()=>_0x461b45([_0xa0b02c],_0x180fb9,_0x30a4ce)),null;}_0x57aa42['push'](_0xa0b02c);let _0x9c691b=!0x0;for(const _0x1228ab of _0x57aa42)if(!this['_rangeIsInLocalUserInsertion'](_0x1228ab)){_0x9c691b=!0x1;break;}if(_0x9c691b&&'always'!==this['_trackFormatChanges']){const _0x588acb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x246eee,'accept');return this['forceDefaultExecution'](()=>_0x588acb([_0xa0b02c],_0x180fb9,_0x30a4ce)),null;}let _0x34df13=null,_0x241043=_0xa0b02c['start'],_0x3114d3=_0xa0b02c['end'];for(const {suggestion:_0x4d9751,meta:_0x22a01c}of this['_findSuggestions'](_0xa0b02c,'formatBlock')){if(!_0x22a01c['isOwn'])continue;if(_0x22a01c['isNextTo']||_0x22a01c['containsRangeInObject']||_0x22a01c['isInsideObject'])continue;if(_0x4d9751['data']['formatGroupId']!=_0x180fb9['formatGroupId'])continue;if(!bn(_0x4d9751,_0x30a4ce))continue;const _0x19ac14=_0x4d9751['getFirstRange']();if(_0x4d9751['subType']==_0x246eee){if(_0x19ac14['containsRange'](_0xa0b02c,!0x0))return null;_0x241043=_0x241043['isBefore'](_0x19ac14['start'])?_0x241043:_0x19ac14['start'],_0x3114d3=_0x3114d3['isAfter'](_0x19ac14['end'])?_0x3114d3:_0x19ac14['end'],_0x34df13?_0x19ac14['start']['isBefore'](_0x34df13['getFirstRange']()['start'])?(_0x34df13['removeMarkers'](),_0x34df13=_0x4d9751):_0x4d9751['removeMarkers']():_0x34df13=_0x4d9751;}else{const _0x23515c=_0xa0b02c['getIntersection'](_0x19ac14);this['_cutOutSuggestionMarker'](_0x4d9751,_0x23515c);}}const _0x4aa2f9=this['editor']['plugins']['get']('Users')['me'],_0x2d5e79=_0x4795d2(),_0x48fbdb=_0x4aa2f9['id'];if(_0x34df13)return this['_setSuggestionRange'](_0x34df13,this['_model']['createRange'](_0x241043,_0x3114d3)),_0x34df13;{const _0x58948e=this['_setSuggestionData']({'id':_0x2d5e79,'type':'formatBlock:'+_0x246eee,'data':_0x180fb9,'createdAt':new Date(),'authorId':_0x48fbdb,'attributes':_0x30a4ce});return this['_addSuggestionMarker']('formatBlock:'+_0x246eee,_0x2d5e79,_0x48fbdb,this['_model']['createRange'](_0x241043,_0x3114d3)),_0x58948e;}}markMultiRangeBlockFormat(_0x15f6e1,_0x5e2563,_0x30f725=[],_0x5c0dfc=null,_0x4a71c6={}){_0x5e2563['formatGroupId']||(_0x5e2563['formatGroupId']=_0x5e2563['commandName']);const _0x4b263b=_0x15f6e1[0x0];_0x5e2563['multipleBlocks']=_0x4b263b['is']('range'),_0x5c0dfc=_0x5c0dfc||mn(_0x5e2563);const _0x3a22c9=_0x30f725['map'](_0x1e1ece=>Ln(_0x1e1ece,this['_model'])),_0x16a851=_0x4b263b['is']('range')?_0x15f6e1:_0x15f6e1['map'](_0x31e15c=>Ln(_0x31e15c,this['_model']));if(this['_trackingSessionId']&&(_0x4a71c6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x358d5e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c0dfc,'accept');return this['forceDefaultExecution'](()=>_0x358d5e(_0x16a851,_0x5e2563,_0x4a71c6)),null;}_0x3a22c9['push'](..._0x16a851);let _0x2a90a7=!0x0;for(const _0x297d7a of _0x3a22c9)if(!this['_rangeIsInLocalUserInsertion'](_0x297d7a)){_0x2a90a7=!0x1;break;}if(_0x2a90a7&&'always'!==this['_trackFormatChanges']){const _0x55143b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c0dfc,'accept');return this['forceDefaultExecution'](()=>_0x55143b(_0x16a851,_0x5e2563,_0x4a71c6)),null;}const _0x4e8966=this['editor']['plugins']['get']('Users')['me'];for(const _0x5598d3 of this['getSuggestions']()){const _0x20784c=_0x5598d3['data'];if(_0x5598d3['author']['id']!=_0x4e8966['id'])continue;if('formatBlock'!=_0x5598d3['type']||_0x20784c['formatGroupId']!=_0x5e2563['formatGroupId'])continue;if(!bn(_0x5598d3,_0x4a71c6))continue;const _0x3d86b8=_0x5598d3['subType']==_0x5c0dfc;for(let _0x23517c=0x0;_0x23517c<_0x16a851['length'];_0x23517c++){const _0x553266=_0x16a851[_0x23517c];for(const _0xb1de9e of _0x5598d3['getMarkers']()){const _0x141d61=_0xb1de9e['getRange']();if(_0x553266['isEqual'](_0x141d61)){_0x3d86b8?(_0x16a851['splice'](_0x23517c,0x1),_0x23517c--):_0x5598d3['removeMarker'](_0xb1de9e['name']);break;}}}}if(0x0==_0x16a851['length'])return null;const _0x32a8dd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c0dfc,'join');for(const _0x3b63a1 of this['getSuggestions']()){const _0x574011=_0x3b63a1['data'];if(_0x3b63a1['author']['id']==_0x4e8966['id']&&('formatBlock'==_0x3b63a1['type']&&_0x574011['formatGroupId']==_0x5e2563['formatGroupId']&&_0x3b63a1['subType']==_0x5c0dfc&&bn(_0x3b63a1,_0x4a71c6)&&(_0x32a8dd(_0x3b63a1['getRanges'](),_0x16a851)||_0x32a8dd(_0x16a851,_0x3b63a1['getRanges']())))){for(const _0x2887a4 of _0x16a851)_0x3b63a1['addRange'](_0x2887a4);return _0x3b63a1;}}const _0x1d704e=_0x4795d2(),_0x1861b1=_0x4e8966['id'],_0x366e3b='formatBlock:'+_0x5c0dfc,_0x5c4e6c=this['_setSuggestionData']({'id':_0x1d704e,'type':_0x366e3b,'data':_0x5e2563,'createdAt':new Date(),'authorId':_0x1861b1,'attributes':_0x4a71c6});for(const _0x1d96e6 of _0x16a851)this['_addSuggestionMarker'](_0x366e3b,_0x1d704e,_0x1861b1,_0x1d96e6,wt['getMultiRangeId']());return _0x5c4e6c;}markDeletion(_0x2d41c6,_0x26ba62=null,_0x4e25a3={}){if(_0x2d41c6['isCollapsed'])return null;const _0x1c5159=this['editor']['plugins']['get']('Users')['me'],_0x1fbe23=new ct(_0x2d41c6['start'],_0x2d41c6['end']);this['_trackingSessionId']&&(_0x4e25a3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4cdd4b,meta:_0xa8ead3}of this['_findSuggestions'](_0x1fbe23,'insertion'))if(_0xa8ead3['isOwn']&&!_0xa8ead3['isNextTo']){if(_0x4cdd4b['isMultiRange']){const _0x2dac66=_0x4cdd4b['getRanges']()['filter'](_0xa76ef5=>'$graveyard'!=_0xa76ef5['root']['rootName']);if(_0x2dac66['every'](_0x20f9fb=>_0x1fbe23['containsRange'](_0x20f9fb,!0x0))&&_0x4cdd4b['discard'](),_0x2dac66['some'](_0x288011=>_0x288011['containsRange'](_0x1fbe23,!0x0))){const _0x262182=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x26ba62,'accept');return this['forceDefaultExecution'](()=>_0x262182([_0x1fbe23],null,_0x4e25a3)),null;}}else{const _0x2eede5=_0x1fbe23['getIntersection'](_0x4cdd4b['getFirstRange']());null!==_0x2eede5&&_0x4cdd4b['_onDiscard']([_0x2eede5],null,_0x4e25a3);}}if(_0x1fbe23['detach'](),_0x1fbe23['isCollapsed']||'$graveyard'==_0x1fbe23['root']['rootName'])return null;let _0x2f3748=null,_0x533e51=_0x1fbe23['start'],_0x2d235c=_0x1fbe23['end'];const _0x18f78e=this['_findSuggestions'](_0x1fbe23,'deletion');for(const {suggestion:_0xf551c,meta:_0x514a75}of _0x18f78e){const _0x185ca2=this['_model']['createRange'](_0x533e51,_0x2d235c);if(_0x514a75['isOwn']&&(this['_mergeNestedSuggestions']||!_0x514a75['containsRangeInObject']&&!_0x514a75['isInsideObject'])){if(_0xf551c['isMultiRange']){if(!bn(_0xf551c,_0x4e25a3))continue;let _0xd154e1=!0x0;for(const _0x521a3c of _0xf551c['getRanges']()){if(_0x521a3c['containsRange'](_0x185ca2,!0x0))return _0xf551c;_0x185ca2['containsRange'](_0x521a3c)||(_0xd154e1=!0x1);}_0xd154e1&&_0xf551c['discard']();}else{const _0x9a635a=_0xf551c['getFirstRange']();if(_0x9a635a['containsRange'](_0x185ca2,!0x0))return _0xf551c;if(!bn(_0xf551c,_0x4e25a3)){_0x185ca2['containsRange'](_0x9a635a)?_0xf551c['removeMarkers']():_0x9a635a['containsPosition'](_0x533e51)?_0x533e51=_0x9a635a['end']:_0x9a635a['containsPosition'](_0x2d235c)&&(_0x2d235c=_0x9a635a['start']);continue;}_0x533e51=_0x533e51['isBefore'](_0x9a635a['start'])?_0x533e51:_0x9a635a['start'],_0x2d235c=_0x2d235c['isAfter'](_0x9a635a['end'])?_0x2d235c:_0x9a635a['end'],_0x4e25a3=Object['assign']({},_0xf551c['attributes']),_0x2f3748?_0x9a635a['start']['isBefore'](_0x2f3748['getFirstRange']()['start'])?(_0x2f3748['removeMarkers'](),_0x2f3748=_0xf551c):_0xf551c['removeMarkers']():_0x2f3748=_0xf551c;}}}if(_0x2f3748)return this['_setSuggestionRange'](_0x2f3748,this['_model']['createRange'](_0x533e51,_0x2d235c)),_0x2f3748;{const _0x2a6768=_0x4795d2(),_0x339354=this['_model']['createRange'](_0x533e51,_0x2d235c),_0x8b3b7f=_0x1c5159['id'],_0x52e877=_0x26ba62?'deletion:'+_0x26ba62:'deletion',_0x23d88d=this['_setSuggestionData']({'id':_0x2a6768,'type':_0x52e877,'createdAt':new Date(),'authorId':_0x8b3b7f,'attributes':_0x4e25a3});return this['_addSuggestionMarker'](_0x52e877,_0x2a6768,_0x8b3b7f,_0x339354),_0x23d88d;}}markMultiRangeDeletion(_0xde03dd,_0x206577='multi',_0x567c9e={}){const _0x1082e0=this['editor']['plugins']['get']('Users')['me'],_0x47bccb=_0xde03dd['map'](_0x724d3e=>new ct(_0x724d3e['start'],_0x724d3e['end'])),_0x37c959=new Set();this['_trackingSessionId']&&(_0x567c9e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xcf9f7a,meta:_0x4cf35d}of this['_findSuggestions'](_0x47bccb,'insertion'))_0x4cf35d['isOwn']&&!_0x4cf35d['isNextTo']&&_0x37c959['add'](_0xcf9f7a);for(const _0x557643 of _0x37c959)if(_0x557643['isMultiRange']){const _0x51b7bc=_0x557643['getRanges']();if(_0x557643['attributes']&&_0x557643['attributes']['skipNestingCheck']||_0x51b7bc['every'](_0x1ebfef=>_0x47bccb['some'](_0x4122d2=>_0x4122d2['containsRange'](_0x1ebfef,!0x0)))&&_0x557643['discard'](),_0x47bccb['every'](_0x212ffe=>_0x51b7bc['some'](_0x59243f=>_0x59243f['containsRange'](_0x212ffe,!0x0)))){const _0x13aff8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x206577,'accept');return this['forceDefaultExecution'](()=>_0x13aff8(_0xde03dd,null,_0x567c9e)),null;}}else{const _0xf01004=_0x557643['getFirstRange']();if(_0x47bccb['some'](_0x1720b9=>_0x1720b9['containsRange'](_0xf01004,!0x0))&&_0x557643['discard'](),_0x47bccb['every'](_0x3b7b6e=>_0xf01004['containsRange'](_0x3b7b6e,!0x0))){const _0x1367f5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x206577,'accept');return this['forceDefaultExecution'](()=>_0x1367f5(_0x47bccb,null,_0x567c9e)),null;}}const _0x2dd357=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x206577,'join');let _0x19a90a=null;for(const _0x5259f2 of this['getSuggestions']())if(_0x5259f2['author']['id']==_0x1082e0['id']&&_0x5259f2['isInContent']&&'deletion'==_0x5259f2['type']&&_0x5259f2['subType']==_0x206577&&bn(_0x5259f2,_0x567c9e)&&(_0x2dd357(_0x5259f2['getRanges'](),_0x47bccb)||_0x2dd357(_0x47bccb,_0x5259f2['getRanges']()))){if(_0x19a90a){if(_0x5259f2['commentThread']&&_0x5259f2['commentThread']['length'])continue;for(const _0x5308ed of _0x5259f2['getRanges']())_0x19a90a['isIntersectingWithRange'](_0x5308ed)||_0x19a90a['addRange'](_0x5308ed);_0x5259f2['removeMarkers']();}else{_0x19a90a=_0x5259f2;for(const _0x4d47ba of _0x47bccb)_0x5259f2['isIntersectingWithRange'](_0x4d47ba)||_0x5259f2['addRange'](_0x4d47ba);}}if(_0x19a90a)return _0x19a90a;_0x37c959['clear']();for(const {suggestion:_0x3b57d,meta:_0x20f139}of this['_findSuggestions'](_0x47bccb,'deletion'))_0x20f139['isOwn']&&(this['_mergeNestedSuggestions']||!_0x20f139['containsRangeInObject']&&!_0x20f139['isInsideObject'])&&bn(_0x3b57d,_0x567c9e)&&_0x37c959['add'](_0x3b57d);for(const _0x26881b of _0x37c959){const _0x52eb81=_0x26881b['getRanges']();if((!_0x567c9e||!_0x567c9e['skipNestingCheck'])&&_0x47bccb['every'](_0x579fce=>_0x52eb81['some'](_0xa6765a=>_0xa6765a['containsRange'](_0x579fce,!0x0))))return _0x26881b;_0x26881b['attributes']&&_0x26881b['attributes']['skipNestingCheck']||_0x52eb81['every'](_0xff5bf4=>_0x47bccb['some'](_0x5bda30=>_0x5bda30['containsRange'](_0xff5bf4,!0x0)))&&_0x26881b['discard']();}const _0x59a5cb=_0x4795d2(),_0x1cd733=_0x1082e0['id'],_0xc8c4a2='deletion:'+_0x206577,_0x45932e=this['_setSuggestionData']({'id':_0x59a5cb,'type':_0xc8c4a2,'createdAt':new Date(),'authorId':_0x1cd733,'attributes':_0x567c9e});for(const _0x427a16 of _0x47bccb)_0x427a16['detach'](),_0x427a16['isCollapsed']||'$graveyard'==_0x427a16['root']['rootName']||this['_addSuggestionMarker'](_0xc8c4a2,_0x59a5cb,_0x1cd733,_0x427a16,wt['getMultiRangeId']());return _0x45932e;}markAttributeChange(_0x2f9cff,_0x1695e,_0x31c64c,_0x1a67de,_0x299dff){if(_0x2f9cff['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x538e9a=this['editor']['plugins']['get']('Users')['me']['id'],_0x56fe09=Array['from'](this['_suggestions']['values']())['filter'](_0x4de41e=>'attribute'==_0x4de41e['type']&&_0x4de41e['data']['key']==_0x1695e&&_0x4de41e['isIntersectingWithRange'](_0x2f9cff));if(this['_trackingSessionId']&&(_0x299dff['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x564dae=this['_findSuggestions'](_0x2f9cff,'insertion')['filter'](({meta:_0x238e16})=>_0x238e16['isOwn']&&!_0x238e16['isInsideObject']&&!_0x238e16['isNextTo'])['map'](({suggestion:_0x33f974})=>_0x33f974);_0x56fe09['unshift'](..._0x564dae);}const _0x501e78=new Map([[_0x2f9cff,_0x31c64c]]);for(const _0x195a1d of _0x56fe09){const _0x3db735='attribute'==_0x195a1d['type']?_0x195a1d['data']['oldValue']:void 0x0,_0x1f449b=_0x195a1d['getFirstRange'](),_0x4c81ce=Array['from'](_0x501e78['keys']())['find'](_0x33ad31=>_0x33ad31['isIntersecting'](_0x1f449b));if(!_0x4c81ce)continue;const _0x5a3df7=_0x4c81ce['getDifference'](_0x1f449b);this['_suggestionsConversion']['isBlockAttribute'](_0x1695e)&&'insertion'==_0x195a1d['type']&&0x0!=_0x5a3df7['length']||(_0x501e78['delete'](_0x4c81ce),_0x5a3df7['forEach'](_0x125414=>{_0x501e78['set'](_0x125414,_0x31c64c);}),'insertion'!=_0x195a1d['type']&&_0x3db735!=_0x1a67de&&_0x501e78['set'](_0x4c81ce['getIntersection'](_0x1f449b),_0x3db735));}const _0x54399f=[];for(const [_0x2fa606,_0x1e60f4]of _0x501e78){const _0x52d430=_0x4795d2(),_0x2f326a={'key':_0x1695e,'oldValue':_0x1e60f4,'newValue':_0x1a67de};_0x1695e['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':_0x1695e});const _0x436de1=('attribute:'+_0x1695e+'|'+mn({'newValue':_0x1a67de}))['substring'](0x0,0x3c),_0x30f411=this['_setSuggestionData']({'id':_0x52d430,'type':_0x436de1,'data':_0x2f326a,'createdAt':new Date(),'authorId':_0x538e9a,'attributes':_0x299dff});_0x54399f['push'](_0x30f411),this['_addSuggestionMarker'](_0x436de1,_0x52d430,_0x538e9a,_0x2fa606);}return _0x54399f;}enableDefaultAttributesIntegration(_0x2fbcc2){this['enableCommand'](_0x2fbcc2,(_0x51c15b,..._0x43ba46)=>{this['recordAttributeChanges'](()=>{_0x51c15b(..._0x43ba46);});});}startTrackingSession(_0x44c749){return this['_trackingSessionId']=void 0x0!==_0x44c749?_0x44c749:_0x4795d2(),this['_trackingSessionId'];}_getAttributeKey(_0x3ec870){return'attribute'==_0x3ec870['type']?kn(_0x3ec870['subType']):null;}_applyOperationsAsSuggestions(_0x3609f0){if(0x0==_0x3609f0['length'])return;const _0x427307=this['editor'],_0x43c94a=[],_0x243457=_0x30af6b=>{const _0x1b4b1c=_0x30af6b['_aiSource'];return _0x1b4b1c?{'@ai':{'type':_0x1b4b1c}}:{};},_0x25fff3=(_0x426f88,_0x2e4429,_0x539d2c,_0x44ae50)=>{const _0xe29b4d=new Set(_0x44ae50['flatMap'](_0xdd5136=>_0xdd5136['getMarkerNames']()));let _0x2081a3=!0x1;for(let _0xe64bf8=_0x2e4429;_0xe64bf8<_0x426f88['operations']['length'];_0xe64bf8++){const _0x305806=_0x426f88['operations'][_0xe64bf8];if('marker'==_0x305806['type']){if(!_0xe29b4d['has'](_0x305806['name']))continue;_0x2081a3=!0x0;}_0x305806['_aiSource']=_0x539d2c;}return _0x2081a3;};_0x427307['model']['change'](_0x387b95=>{for(let _0x5b9eae=0x0;_0x5b9eae<_0x3609f0['length'];_0x5b9eae++){const _0x54417c=_0x3609f0[_0x5b9eae],_0x32f023=_0x54417c['_aiSource'];if(_0x54417c['baseVersion']=_0x427307['model']['document']['version'],_0x54417c['isDocumentOperation']=!0x0,tt(_0x54417c))continue;if(cn(_0x54417c)){const _0x3b9f09=_0x26dc97(_0x54417c['newRange'],_0x427307['model']);_0x43c94a['unshift']({'range':ct['fromRange'](_0x3b9f09),'operation':_0x54417c});continue;}const _0x1a9578=_0x387b95['batch']['operations']['length']+0x1;let _0x20636a=[];switch(_0x54417c['type']){case'rename':{const _0x273a87=_0x54417c['oldName'],_0x3eb28d=_0x54417c['newName'];if(_0x273a87==_0x3eb28d)break;_0x387b95['batch']['addOperation'](_0x54417c),_0x427307['model']['applyOperation'](_0x54417c);const _0x417252='$elementName',_0x45f2da=_0x54417c['position'],_0x2d16a8=_0x427307['model']['createRange'](_0x45f2da,_0x427307['model']['createPositionAt'](_0x45f2da['nodeAfter'],'end'));_0x20636a=this['markAttributeChange'](_0x2d16a8,_0x417252,_0x273a87,_0x3eb28d,{..._0x243457(_0x54417c),'groupId':_0x4795d2()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xe7e8ea=_0x54417c['oldValue'],_0x4d8aa0=_0x54417c['newValue'];if(_0xe7e8ea==_0x4d8aa0)break;_0x387b95['batch']['addOperation'](_0x54417c),_0x427307['model']['applyOperation'](_0x54417c);const _0x3feca7=_0x54417c['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3feca7))break;const _0x4ddd90=_0x26dc97(_0x54417c['range'],_0x427307['model']);_0x20636a=this['markAttributeChange'](_0x4ddd90,_0x3feca7,_0xe7e8ea,_0x4d8aa0,{..._0x243457(_0x54417c),'groupId':_0x4795d2()});break;}case'insert':{if(_0x387b95['batch']['addOperation'](_0x54417c),_0x427307['model']['applyOperation'](_0x54417c),_0x3609f0[_0x5b9eae+0x1]&&'move'==_0x3609f0[_0x5b9eae+0x1]['type'])break;const _0x12abea=_0x54417c['position'],_0x1c8109=_0x54417c['howMany'],_0x1c5c29=_0x26dc97(_0x427307['model']['createRange'](_0x12abea,_0x12abea['getShiftedBy'](_0x1c8109)),_0x427307['model']);_0x20636a=ln(this['markInsertion'](_0x1c5c29,null,{..._0x243457(_0x54417c)}));break;}case'split':{_0x387b95['batch']['addOperation'](_0x54417c),_0x427307['model']['applyOperation'](_0x54417c);const _0x327fd6=_0x54417c['splitPosition'],_0x37b6ac=_0x54417c['moveTargetPosition'],_0x11be2a=_0x427307['model']['createRange'](_0x327fd6,_0x37b6ac);_0x20636a=ln(this['markInsertion'](_0x11be2a,null,{..._0x243457(_0x54417c)}));break;}case'move':case'remove':_0x387b95['batch']['addOperation'](_0x54417c),_0x427307['model']['applyOperation'](_0x54417c);}_0x32f023&&_0x25fff3(_0x387b95['batch'],_0x1a9578,_0x32f023,_0x20636a)&&delete _0x54417c['_aiSource'];}for(const {range:_0x3b95f5,operation:_0x4a476d}of _0x43c94a){const _0x1a9976=_0x4a476d['_aiSource'],_0xc29e56=_0x243457(_0x4a476d),_0x563c2d=_0x387b95['batch']['operations']['length'];_0x3b95f5['detach']();const _0x52ac20=this['markDeletion'](_0x3b95f5,null,{..._0xc29e56});_0x1a9976&&_0x25fff3(_0x387b95['batch'],_0x563c2d,_0x1a9976,ln(_0x52ac20));}});}_setSuggestionRange(_0x173b70,_0x4c6e30){const _0x40bc94=_0x173b70['getFirstMarker']();this['_model']['change'](_0x16e5fb=>{_0x16e5fb['updateMarker'](_0x40bc94,{'range':_0x4c6e30});});}_addThreadToSuggestion(_0x135b7d){const _0xd0b9c3=_0x135b7d['id'],_0x359ccb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xd0b9c3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x359ccb,'threadId':_0xd0b9c3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1cc7bf=this['_commentsRepository']['getCommentThread'](_0xd0b9c3);_0x1cc7bf['unbind']('isRemovable'),_0x1cc7bf['isRemovable']=!0x1,_0x135b7d['commentThread']=_0x1cc7bf;}_checkSuggestionCorrectness(_0x2cc219,_0x44eb73,_0x53ab7b,_0x527e35){if(_0x2cc219['type']!=_0x44eb73||_0x2cc219['subType']!=_0x53ab7b||_0x2cc219['creator']['id']!=_0x527e35)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2ccabb('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x41d125,_0x3fdcd4){const _0x318498=_0x41d125['getFirstRange']();if(_0x3fdcd4['isEqual'](_0x318498))_0x41d125['removeMarkers']();else{if(_0x318498['containsRange'](_0x3fdcd4)){const _0x3b2599=this['_model']['createPositionAt'](_0x3fdcd4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x41d125,this['_model']['createRange'](_0x318498['start'],_0x3b2599));const _0x16fb6a=_0x4795d2(),_0x1cbf5d=_0x41d125['creator']['id'],_0x12f99f=_0x41d125['type']+':'+_0x41d125['subType'];this['_setSuggestionData']({'id':_0x16fb6a,'type':_0x12f99f,'createdAt':new Date(),'authorId':_0x1cbf5d,'data':_0x41d125['data'],'attributes':_0x41d125['attributes']});const _0x3e5764=this['_model']['createPositionAt'](_0x3fdcd4['end']['parent'],'after'),_0x1fc152=this['_model']['createRange'](_0x3e5764,_0x318498['end']);this['_addSuggestionMarker'](_0x12f99f,_0x16fb6a,_0x1cbf5d,_0x1fc152);}else{if(_0x318498['containsPosition'](_0x3fdcd4['start'])){const _0x11e08d=this['_model']['createPositionAt'](_0x3fdcd4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x41d125,this['_model']['createRange'](_0x318498['start'],_0x11e08d));}else{const _0x45c1ec=this['_model']['createPositionAt'](_0x3fdcd4['end']['parent'],'after');this['_setSuggestionRange'](_0x41d125,this['_model']['createRange'](_0x45c1ec,_0x318498['end']));}}}}_rangeIsInLocalUserInsertion(_0x5902de){for(const {suggestion:_0x3d0609,meta:_0x1cc862}of this['_findSuggestions'](_0x5902de,'insertion')){if(!_0x1cc862['isOwn'])continue;const _0x56428c=_0x3d0609['getRanges']();for(const _0x4ebe2e of _0x56428c)if(!_0x5902de['getDifference'](_0x4ebe2e)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0xbccb71){return this['editor']['plugins']['get']('Users')['getUser'](_0xbccb71);}_getExternalAuthor(_0x323336){const _0x4db837=this['editor']['plugins']['get']('Users'),_0x43537f=_0x8b3a38('external:'+_0x323336),_0x2c5125=_0x4db837['getUser'](_0x43537f);return _0x2c5125||_0x4db837['addUser']({'id':_0x43537f,'name':_0x323336});}_createSuggestion(_0x1b94b5,_0x5932d8,_0x1faadd,_0x5a5d2d,_0x4e8494,_0x5c9b6e){const _0x23d8f3=this['_getAuthorFromId'](_0x5a5d2d);if(!_0x23d8f3)throw new _0x2ccabb('track-changes-user-not-found',this,{'authorId':_0x5a5d2d,'suggestionId':_0x1faadd});const _0x83aa18=this['_suggestionFactory']['buildSuggestion'](_0x1b94b5,_0x5932d8,_0x1faadd,_0x23d8f3,_0x4e8494,_0x53c5ce=>{this['_updateSuggestionData'](_0x1faadd,{'attributes':_0x53c5ce});const _0x3c4872=this['getSuggestion'](_0x1faadd);this['_joinWithAdjacentSuggestions'](new Set([_0x3c4872])),this['_refreshSuggestionsChain'](new Set([_0x3c4872]));},_0x5c9b6e);return this['listenTo'](_0x83aa18,'accept',()=>{this['_updateSuggestionData'](_0x1faadd,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x83aa18,'discard',()=>{this['_updateSuggestionData'](_0x1faadd,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1faadd,_0x83aa18),this['_suggestionState']['set'](_0x83aa18,'notReady'),_0x83aa18;}_breakSuggestionMarker(_0x46e327,_0x38c843,_0x4564dd){const _0x4a6bee=_0x46e327['getFirstRange'](),_0x680f58=_0x4a6bee['start'],_0x4cbc53=_0x4a6bee['end'];this['_setSuggestionRange'](_0x46e327,this['_model']['createRange'](_0x680f58,_0x38c843));const _0x26ef95=_0x4795d2(),_0x593e7b=_0x46e327['creator']['id'],_0x10ea9c=_0x46e327['type']+(_0x46e327['subType']?':'+_0x46e327['subType']:'');this['_setSuggestionData']({'id':_0x26ef95,'type':_0x10ea9c,'createdAt':new Date(),'authorId':_0x593e7b,'originalSuggestionId':_0x46e327['_originalSuggestionId']||_0x46e327['id'],'attributes':_0x46e327['attributes'],'data':_0x46e327['data']});const _0x1775c5=this['_getAttributeKey'](_0x46e327);('formatBlock'==_0x46e327['type']||_0x1775c5&&this['_suggestionsConversion']['isBlockAttribute'](_0x1775c5))&&(_0x4564dd=this['_model']['createPositionBefore'](_0x4564dd['parent'])),this['_addSuggestionMarker'](_0x10ea9c,_0x26ef95,_0x593e7b,this['_model']['createRange'](_0x4564dd,_0x4cbc53));}_findSuggestions(_0x221522,_0x1e890c=null){const _0x39bd9e=[],_0x4aaefe=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x221522)||(_0x221522=[_0x221522]);for(const _0x86219b of this['getSuggestions']()){if(!_0x86219b['isInContent'])continue;if(_0x1e890c&&_0x86219b['type']!=_0x1e890c)continue;let _0x3418a9=!0x1;for(const _0x208790 of _0x86219b['getRanges']()){for(const _0x335b27 of _0x221522){const _0x61a04b=_0x335b27['start']['isEqual'](_0x208790['end'])||_0x335b27['end']['isEqual'](_0x208790['start']);if(_0x61a04b||_0x335b27['getIntersection'](_0x208790)){const _0x2fe558=_0x335b27['containsRange'](_0x208790)&&hn(this['_model']['schema'],_0x208790['start'],_0x335b27),_0x3cbeff=_0x208790['containsRange'](_0x335b27)&&hn(this['_model']['schema'],_0x335b27['start'],_0x208790);_0x39bd9e['push']({'suggestion':_0x86219b,'meta':{'isOwn':_0x4aaefe==_0x86219b['author'],'isNextTo':_0x61a04b,'isInsideObject':_0x2fe558,'containsRangeInObject':_0x3cbeff}}),_0x3418a9=!0x0;break;}}if(_0x3418a9)break;}}return _0x39bd9e;}_addSuggestionMarker(_0xb6d89d,_0x4136da,_0x503bc7,_0x21545d,_0xd6f9f7){this['_model']['change'](_0x52f011=>{let _0x3ece73='suggestion:'+_0xb6d89d+':'+_0x4136da+':'+_0x503bc7;_0xd6f9f7&&(_0x3ece73=_0x3ece73+':'+_0xd6f9f7),_0x52f011['addMarker'](_0x3ece73,{'range':_0x21545d,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x322762){const _0x5257ac=_0x322762['previous'],_0x326c3b=_0x322762['next'];_0x322762['previous']=null,_0x322762['next']=null,null!=_0x5257ac&&_0x5257ac['next']==_0x322762&&(_0x5257ac['next']=_0x326c3b),null!=_0x326c3b&&_0x326c3b['previous']==_0x322762&&(_0x326c3b['previous']=_0x5257ac),'ready'==this['_suggestionState']['get'](_0x322762)&&(this['_suggestionState']['set'](_0x322762,'removed'),this['fire']('suggestionUnloaded',_0x322762,_0x5257ac,_0x326c3b));}_setSuggestionData(_0x41ab8b){const _0x18a3b7=_0x41ab8b['id'],_0x54d983=this['addSuggestionData'](_0x41ab8b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4e7011=this['editor']['plugins']['get']('PendingActions'),_0x205543=_0x54d983['hasComments'],_0x1d9998=_0x54d983['subType']?_0x54d983['type']+':'+_0x54d983['subType']:_0x54d983['type'],_0xf39bd5=this['editor']['locale'],_0x289275=_0x4e7011['add'](Bt(_0xf39bd5,'PENDING_ACTION_SUGGESTION')),_0x5634f7={'id':_0x18a3b7,'type':_0x1d9998,'hasComments':_0x205543,'data':_0x41ab8b['data']||null,'originalSuggestionId':_0x41ab8b['originalSuggestionId']||null,'attributes':_0x54d983['attributes']};this['_adapter']['addSuggestion'](_0x5634f7)['then'](_0x5b1980=>{_0x54d983['_saved']=!0x0,_0x4e7011['remove'](_0x289275),_0x5b1980&&_0x5b1980['createdAt']&&(this['_suggestions']['get'](_0x18a3b7)['createdAt']=_0x5b1980['createdAt']);})['catch'](_0x11a9b5=>{throw _0x546d88('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x54d983['discard']();}),_0x54d983['stopListening'](),this['_suggestions']['delete'](_0x54d983['id']),this['_suggestionState']['delete'](_0x54d983),_0x11a9b5;});}return _0x54d983;}_updateSuggestionData(_0x782e09,_0x256c99){const _0x31eeb4=this['editor']['plugins']['get']('PendingActions'),_0x35e1a7=this['getSuggestion'](_0x782e09);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x35e1a7['_saved']){const _0x277036=_0x31eeb4['add'](Bt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x782e09,_0x256c99)['then'](()=>{_0x31eeb4['remove'](_0x277036);});}else _0x35e1a7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x782e09,_0x256c99);});}}_getSuggestionData(_0x4f0411){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2ccabb('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4f0411);}_handleNewSuggestionMarker(_0x305ccc){const {id:_0x241860,type:_0x2a2ee1,subType:_0x1801bc,authorId:_0x27a03f}=it(_0x305ccc),_0x6e3f90=this['_suggestions']['get'](_0x241860)||this['_createSuggestion'](_0x2a2ee1,_0x1801bc,_0x241860,_0x27a03f,{});switch(this['_checkSuggestionCorrectness'](_0x6e3f90,_0x2a2ee1,_0x1801bc,_0x27a03f),this['_suggestionState']['get'](_0x6e3f90)){case'notReady':this['_getSuggestionData'](_0x241860)['then'](_0x464e62=>{let _0x4f8585=Promise['resolve']();_0x464e62['hasComments']&&(_0x4f8585=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x241860})),_0x4f8585['then'](()=>{this['addSuggestionData'](_0x464e62)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x6e3f90,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x241860,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x6e3f90,'ready'),this['fire']('suggestionLoaded',_0x6e3f90);break;case'ready':this['fire']('suggestionChanged',_0x6e3f90);}return _0x6e3f90['addMarkerName'](_0x305ccc),_0x6e3f90;}_refreshSuggestionsChain(_0x59c7f3){const _0x5e3005=Array['from'](_0x59c7f3),_0x36d029=_0x5e3005['filter'](_0x563a42=>'attribute'==_0x563a42['type']);this['_refreshAttributeSuggestionsChain'](_0x36d029);const _0x1961e7=_0x5e3005['filter'](_0x130288=>!_0x130288['isMultiRange']&&'attribute'!=_0x130288['type']),_0x16d848=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dd0b5=>!_0x5dd0b5['isMultiRange']&&'attribute'!=_0x5dd0b5['type']),_0x2dfd4c=_0x16d848['filter'](_0x18d6e6=>!_0x59c7f3['has'](_0x18d6e6)),_0xc3b169=new Map(_0x16d848['map'](_0x33cc59=>[_0x33cc59,this['_suggestionFactory']['getSuggestionCallback'](_0x33cc59['type'],_0x33cc59['subType'],'chain')])),_0x3559f1=new Map(_0x16d848['map'](_0x431f89=>[_0x431f89,_0x431f89['getFirstRange']()])),_0x1d273a=new Set(),_0x3af8bb=new Set();for(let _0x1a8627=0x0;_0x1a8627<_0x1961e7['length'];_0x1a8627++)_0x391160(_0x1961e7[_0x1a8627],_0x1961e7,_0x1a8627+0x1);for(let _0x5d6a60=0x0;_0x5d6a60<_0x1961e7['length'];_0x5d6a60++)_0x391160(_0x1961e7[_0x5d6a60],_0x2dfd4c,0x0);const _0x831f4a=new Set();for(let _0x8d9cc=0x0;_0x8d9cc<_0x1961e7['length'];_0x8d9cc++){const _0x32a708=_0x1961e7[_0x8d9cc];!_0x3af8bb['has'](_0x32a708)&&_0x32a708['previous']&&(_0x831f4a['add'](_0x32a708['previous']),_0x32a708['previous']['next']===_0x32a708&&(_0x32a708['previous']['next']=null),_0x32a708['previous']=null),!_0x1d273a['has'](_0x32a708)&&_0x32a708['next']&&(_0x831f4a['add'](_0x32a708['next']),_0x32a708['next']['previous']===_0x32a708&&(_0x32a708['next']['previous']=null),_0x32a708['next']=null);}function _0x391160(_0x4f1d7e,_0x2f9b2a,_0xb547a0){for(let _0x33aedc=_0xb547a0;_0x33aedc<_0x2f9b2a['length'];_0x33aedc++){const _0x303166=_0x3f91b5(_0x4f1d7e,_0x2f9b2a[_0x33aedc]);_0x303166&&(_0x303166[0x0]['next']=_0x303166[0x1],_0x303166[0x1]['previous']=_0x303166[0x0],_0x1d273a['add'](_0x303166[0x0]),_0x3af8bb['add'](_0x303166[0x1]));}}function _0x3f91b5(_0x2dc745,_0x4101cb){if(_0x2dc745['author']['id']!==_0x4101cb['author']['id'])return null;const _0x52b02d=_0xc3b169['get'](_0x2dc745)(_0x2dc745,_0x4101cb,_0x3559f1['get'](_0x2dc745),_0x3559f1['get'](_0x4101cb));return _0x52b02d&&_0xc3b169['get'](_0x4101cb)(_0x2dc745,_0x4101cb,_0x3559f1['get'](_0x2dc745),_0x3559f1['get'](_0x4101cb))?_0x52b02d[0x1]['commentThread']&&_0x52b02d[0x1]['commentThread']['length']?null:_0x52b02d:null;}_0x831f4a['size']&&this['_refreshSuggestionsChain'](_0x831f4a);}_refreshAttributeSuggestionsChain(_0x433242){if(0x0==_0x433242['length'])return;const _0x92fcf7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5bbad4=>'attribute'==_0x5bbad4['type']&&_0x5bbad4['_isDataLoaded']),_0x5ec028=[],_0x1001f6=new Map();for(const _0x1d4e11 of _0x92fcf7){const _0x1f25c9=_0x8b3a38(_0x1d4e11['attributes']);_0x1001f6['has'](_0x1f25c9)||(_0x1001f6['set'](_0x1f25c9,_0x5ec028['length']),_0x5ec028['push']([])),_0x5ec028[_0x1001f6['get'](_0x1f25c9)]['push'](_0x1d4e11);}!(function(){_0x5ec028['sort']((_0x1ed4fc,_0x4e042b)=>{const _0x5704ac=_0x1ed4fc[0x0]['createdAt'],_0x7b33f3=_0x4e042b[0x0]['createdAt'];return _0x5704ac==_0x7b33f3?_0x1ed4fc[0x0]['attributes']['groupId']<_0x4e042b[0x0]['attributes']['groupId']?-0x1:0x1:_0x5704ac<_0x7b33f3?-0x1:0x1;});for(const _0xa6e4da of _0x5ec028)_0xa6e4da['sort']((_0x14ec10,_0x17688c)=>_0x14ec10['id']<_0x17688c['id']?-0x1:0x1);}());for(let _0x4dd2a6=0x0;_0x4dd2a6<_0x5ec028['length'];_0x4dd2a6++){if(0x0==_0x5ec028[_0x4dd2a6]['length'])continue;const _0x34cc7d=[];for(let _0x30bf7f=_0x4dd2a6+0x1;_0x30bf7f<_0x5ec028['length'];_0x30bf7f++)0x0!=_0x5ec028[_0x30bf7f]['length']&&_0x186ba3(_0x5ec028[_0x4dd2a6],_0x5ec028[_0x30bf7f])&&_0x34cc7d['push'](_0x30bf7f);for(const _0x53ad4e of _0x34cc7d)_0x5ec028[_0x4dd2a6]=_0x5ec028[_0x4dd2a6]['concat'](_0x5ec028[_0x53ad4e]),_0x5ec028[_0x53ad4e]=[];}for(const _0x13e9be of _0x5ec028)for(let _0xd3e324=0x0;_0xd3e324<_0x13e9be['length'];_0xd3e324++){const _0x44a5dd=_0x13e9be[_0xd3e324+0x1]||null;_0x13e9be[_0xd3e324]['next']!==_0x44a5dd&&(_0x13e9be[_0xd3e324]['next']=_0x44a5dd);}for(const _0x4bbd20 of _0x5ec028)for(let _0x38be6f=0x0;_0x38be6f<_0x4bbd20['length'];_0x38be6f++){const _0x201a8a=_0x4bbd20[_0x38be6f-0x1]||null;_0x4bbd20[_0x38be6f]['previous']!==_0x201a8a&&(_0x4bbd20[_0x38be6f]['previous']=_0x201a8a);}function _0x186ba3(_0x4f4862,_0x33027d){if(_0x4f4862[0x0]['attributes']['groupId']!==_0x33027d[0x0]['attributes']['groupId']&&_0x4f4862[0x0]['author']!==_0x33027d[0x0]['author'])return!0x1;if(!function(_0x2364e3,_0xae1e0f){return!_0x2364e3['hasComments']&&!_0xae1e0f['hasComments']||(!_0x2364e3['hasComments']||!_0xae1e0f['hasComments'])&&(!!(_0x2364e3['hasComments']&&_0xae1e0f['createdAt']<_0x2364e3['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0xae1e0f['hasComments']&&_0x2364e3['createdAt']<_0xae1e0f['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x4f4862[0x0],_0x33027d[0x0]))return!0x1;const _0xce57c9=ht(_0x4f4862[0x0]['attributes'],['groupId','trackingSessionId']),_0x17fdb7=ht(_0x33027d[0x0]['attributes'],['groupId','trackingSessionId']);return!!dt(_0xce57c9,_0x17fdb7)&&(_0x4f4862[0x0]['attributes']['groupId']==_0x33027d[0x0]['attributes']['groupId']||_0x4f4862[0x0]['attributes']['trackingSessionId']===_0x33027d[0x0]['attributes']['trackingSessionId']&&(!!_0x4f4862['every'](_0x5b2db2=>_0x33027d['some'](_0x3ec45f=>_0x5b2db2['getFirstRange']()['isEqual'](_0x3ec45f['getFirstRange']())))&&_0x33027d['every'](_0x85a704=>_0x4f4862['some'](_0x272448=>_0x85a704['getFirstRange']()['isEqual'](_0x272448['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x5a83a8){const _0x2f7999=Array['from'](_0x5a83a8),_0x5c9b9e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x31d3f0=_0x5c9b9e['filter'](_0x145785=>!_0x5a83a8['has'](_0x145785)),_0x475933=new Map(_0x2f7999['map'](_0x122331=>[_0x122331,this['_suggestionFactory']['getSuggestionCallback'](_0x122331['type'],_0x122331['subType'],'join')])),_0xb7908e=new Map(_0x5c9b9e['map'](_0x34287d=>[_0x34287d,_0x34287d['getRanges']()]));for(let _0x4c5d95=0x0;_0x4c5d95<_0x2f7999['length'];_0x4c5d95++)if(_0xb3548d(this,_0x2f7999[_0x4c5d95],_0x2f7999,_0x4c5d95+0x1))return!0x0;for(let _0x8f3f23=0x0;_0x8f3f23<_0x2f7999['length'];_0x8f3f23++)if(_0xb3548d(this,_0x2f7999[_0x8f3f23],_0x31d3f0,0x0))return!0x0;return!0x1;function _0xb3548d(_0x4f7986,_0x2889ed,_0x18402f,_0x15fa0c){for(let _0x40cd73=_0x15fa0c;_0x40cd73<_0x18402f['length'];_0x40cd73++){const _0x36a690=_0x18402f[_0x40cd73];if(_0x36a690['type']!==_0x2889ed['type']||_0x36a690['author']['id']!==_0x2889ed['author']['id']||_0x36a690['subType']!==_0x2889ed['subType'])continue;if(!An(_0x2889ed,_0x36a690))continue;if('attribute'==_0x2889ed['type']&&_0x2889ed['data']['oldValue']!=_0x36a690['data']['oldValue'])continue;if('attribute'==_0x2889ed['type']&&_0x4f7986['_suggestionsConversion']['isBlockAttribute'](_0x2889ed['data']['key']))continue;if('formatBlock'==_0x2889ed['type']){const _0x54ade1=_0x4f7986['editor']['model'],_0xe51410=_0x2889ed['getContainedElement']();if(_0xe51410&&(_0x54ade1['schema']['isObject'](_0xe51410)||_0x54ade1['schema']['isLimit'](_0xe51410)))continue;}const _0x43f869=_0x475933['get'](_0x2889ed),_0x1e26e2=_0xb7908e['get'](_0x2889ed),_0x9f06d8=_0xb7908e['get'](_0x36a690),_0x41e803=_0x2889ed['commentThread']&&_0x2889ed['commentThread']['length'],_0x1f0eb4=_0x36a690['commentThread']&&_0x36a690['commentThread']['length'];if(!_0x41e803&&_0x43f869(_0x9f06d8,_0x1e26e2))return _0x4f7986['_joinSuggestions'](_0x36a690,_0x2889ed),_0xb7908e['delete'](_0x2889ed),!0x0;if(!_0x1f0eb4&&_0x43f869(_0x1e26e2,_0x9f06d8))return _0x4f7986['_joinSuggestions'](_0x2889ed,_0x36a690),_0xb7908e['delete'](_0x36a690),!0x0;}return!0x1;}}_joinSuggestions(_0x1f7921,_0x2e250e){if(_0x1f7921['isMultiRange']){for(const _0x41606e of _0x2e250e['getRanges']())_0x1f7921['addRange'](_0x41606e);}else{const _0x211165=_0x2e250e['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1f7921,this['_model']['createRange'](_0x1f7921['getFirstRange']()['start'],_0x211165));}_0x2e250e['removeMarkers']();}_getMarkerAnnouncementText(_0x34e50d,_0x1ef4b6,_0xbb2a10){const _0x3086b6=_0x34e50d['startsWith']('format')||_0x34e50d['startsWith']('attribute')?'FORMATTING':_0x34e50d['toUpperCase']();return Bt(this['editor']['locale'],_0x1ef4b6+'_'+_0x3086b6+'_SUGGESTION_ANNOUNCEMENT',_0xbb2a10);}_initAriaMarkerChangeAnnouncements(){const _0xf32c6f=this['editor'];if(!_0xf32c6f['ui'])return;const {ariaLiveAnnouncer:_0x3d1142}=_0xf32c6f['ui'];st(this['_model'],({left:_0x9877a3,entered:_0x2beb9d})=>{for(const _0x2d2d3e of _0x9877a3){const {group:_0xc1bf3b,type:_0x42a73a}=it(_0x2d2d3e['name']);if('suggestion'===_0xc1bf3b){_0x3d1142['announce'](this['_getMarkerAnnouncementText'](_0x42a73a,'LEAVE'));break;}}for(const _0x4ab658 of _0x2beb9d){const {group:_0x4c8b0f,type:_0x231480}=it(_0x4ab658['name']);if('suggestion'===_0x4c8b0f){_0x3d1142['announce'](this['_getMarkerAnnouncementText'](_0x231480,'ENTER',_0x41def4(_0x2ab53e)));break;}}});}_processAttributeChanges(_0x4e2ff2){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3ee216=this['editor'],_0x12f330=_0x3ee216['model']['document']['differ']['getChanges']();if(0x0==_0x12f330['length'])return!0x1;const _0x1a1353=[],_0x2aa34c=_0x12f330['filter'](_0x2cf36b=>'attribute'==_0x2cf36b['type']),_0x4c7fbe=_0x12f330['filter'](_0x5ea85b=>'insert'==_0x5ea85b['type']&&'$text'!=_0x5ea85b['name']),_0x121de3=_0x12f330['filter'](_0x28555d=>'remove'==_0x28555d['type']&&'$text'!=_0x28555d['name']);for(const _0x2e1565 of _0x2aa34c)_0x1a1353['push']({'key':_0x2e1565['attributeKey'],'newValue':_0x2e1565['attributeNewValue'],'oldValue':_0x2e1565['attributeOldValue'],'range':pn(_0x2e1565['range'],_0x3ee216['model'])});for(const _0x1fc3fa of _0x4c7fbe){const _0x965f6d=_0x121de3['find'](_0x37fc0b=>_0x37fc0b['position']['isEqual'](_0x1fc3fa['position']));_0x965f6d&&_0x1a1353['push']({'key':an,'newValue':_0x1fc3fa['name'],'oldValue':_0x965f6d['name'],'range':_0x3ee216['model']['createRangeOn'](_0x1fc3fa['position']['nodeAfter'])});}return 0x0!=_0x1a1353['length']&&this['_reduceExistingSuggestions'](_0x4e2ff2,_0x1a1353);}_processAttributeSuggestions(_0x1794ae){let _0xf29077=!0x1;const _0x247adf=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x167ad5=>_0x167ad5['data']['newRange']&&_0x167ad5['name']['startsWith']('suggestion:attribute:'));for(const _0xa9db0a of _0x247adf){const {subType:_0x1ae485,id:_0xbca1cd}=it(_0xa9db0a['name']),_0x1eccfb=_0x1ae485['split']('|')[0x0];for(const _0x52d16f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x52d16f['id']!=_0xbca1cd&&'attribute'==_0x52d16f['type']&&_0x52d16f['data']&&_0x52d16f['data']['key']==_0x1eccfb&&_0x52d16f['getFirstRange']()['isIntersecting'](_0xa9db0a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x52d16f,_0xa9db0a['data']['newRange'],_0x1794ae),_0xf29077=!0x0);}return _0xf29077;}recordAttributeChanges(_0x2f3c33){this['_recordAttributeSuggestions']=!0x0,_0x2f3c33();}_reduceExistingSuggestions(_0x2a5ede,_0x518233){if(0x0==_0x518233['length'])return!0x1;let _0x290706=!0x1;for(const _0x223c2e of _0x518233){const _0x5d0275=this['_findSuggestions'](_0x223c2e['range'],'attribute')['filter'](_0x59c3d9=>!_0x59c3d9['meta']['isNextTo'])['map'](_0x5c85d7=>_0x5c85d7['suggestion']),_0x5e7c13=_0x8b3a38({'newValue':_0x223c2e['newValue']});_0x5d0275['filter'](_0x1b8ce5=>{const [_0x5339a7,_0x83ad9c]=_0x1b8ce5['subType']['split']('|');return _0x5339a7==_0x223c2e['key']&&_0x83ad9c!=_0x5e7c13;})['forEach'](_0x5b9f02=>{this['_reduceSuggestionAttributeRange'](_0x5b9f02,_0x223c2e['range'],_0x2a5ede),_0x290706=!0x0;});}return _0x290706;}_reduceSuggestionAttributeRange(_0x1f1e7d,_0x4c960c,_0x4c1c3e){const _0x5a55e1=_0x1f1e7d['getFirstRange']()['getDifference'](_0x4c960c);0x0!==_0x5a55e1['length']?0x1!==_0x5a55e1['length']?this['_breakSuggestionMarker'](_0x1f1e7d,_0x4c960c['start'],_0x4c960c['end']):this['_setSuggestionRange'](_0x1f1e7d,_0x5a55e1[0x0]):_0x4c1c3e['removeMarker'](_0x1f1e7d['getFirstMarker']());}},dn=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x417a06){this['_editor']=_0x417a06,this['_model']=_0x417a06['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x2b96cb,_0x35e785,_0x5c0f09,_0x5ad34e,_0x4b4686,_0x2691ee,_0x46293c){return new wt(this['_model'],{'type':_0x2b96cb,'subType':_0x35e785,'id':_0x5c0f09,'originalSuggestionId':_0x46293c,'author':_0x5ad34e,'creator':_0x5ad34e,'attributes':_0x4b4686,'onAttributesChange':_0x2691ee,'onAccept':(..._0x527092)=>this['getSuggestionCallback'](_0x2b96cb,_0x35e785,'accept')(..._0x527092),'onDiscard':(..._0x21e02e)=>this['getSuggestionCallback'](_0x2b96cb,_0x35e785,'discard')(..._0x21e02e)});}registerCustomCallback(_0x4eaf08,_0x1f422c,_0x44ef6f,_0x3e0955){const _0x1475fc=_0x4eaf08+':'+_0x1f422c+':'+_0x44ef6f;this['_customCallbacks']['set'](_0x1475fc,_0x3e0955);}getSuggestionCallback(_0x34de64,_0x19802e,_0x2d04d8){const _0x4aa664=_0x34de64+':'+_0x19802e+':'+_0x2d04d8;return this['_customCallbacks']['get'](_0x4aa664)||this['_defaultCallbacks']['get'](_0x34de64+':'+_0x2d04d8);}_registerDefaultCallbacks(){const _0x2f5816=()=>!0x1,_0x49b396=_0x5d7c97=>{_0x5d7c97['sort']((_0x3fee30,_0x2f1c7a)=>_0x3fee30['start']['isBefore'](_0x2f1c7a['start'])?0x1:-0x1),this['_model']['change'](_0x666081=>{for(const _0x35ac54 of _0x5d7c97){let _0x4f1216;_0x4f1216=_0x35ac54['end']['isAtEnd']&&_0x35ac54['end']['parent']==_0x35ac54['start']['nodeAfter']?_0x666081['createSelection'](_0x35ac54['start']['nodeAfter'],'on'):_0x666081['createSelection'](_0x35ac54),this['_model']['deleteContent'](_0x4f1216,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x316a55=(_0x40dc4f,_0x45310b)=>{_0x45310b&&this['_model']['change'](_0x454c32=>{const {commandName:_0x1b45f7,commandParams:_0x5655fa=[]}=_0x45310b,_0x33d7eb=_0x40dc4f['map'](_0x368e60=>(gn(_0x368e60)&&(_0x368e60=this['_model']['createRange'](_0x368e60['end'])),_0x368e60))['filter'](_0x49f7bc=>'$graveyard'!==_0x49f7bc['root']['rootName']);if(_0x33d7eb['length']<0x1)return;const _0x81b3dc=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x8e4ceb=>ct['fromRange'](_0x8e4ceb));_0x454c32['setSelection'](_0x33d7eb);for(const _0xb0aff1 of this['_editor']['commands']['commands']())_0xb0aff1['refresh']();_0x5655fa['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1b45f7,..._0x5655fa);const _0x3d5f39=_0x81b3dc['filter'](_0x57d117=>'$graveyard'!=_0x57d117['root']['rootName']);_0x3d5f39['length']>0x0&&_0x454c32['setSelection'](_0x3d5f39);for(const _0x56d95e of _0x81b3dc)_0x56d95e['detach']();});},_0x59a7f3=(_0x3088a8,_0x59d80f)=>0x1==_0x3088a8['length']&&0x1==_0x59d80f['length']&&_0x3088a8[0x0]['end']['isEqual'](_0x59d80f[0x0]['start']),_0x32fed8=(_0x170682,_0x5722a9,_0x3e7d23,_0x1a49fa)=>In(_0x170682,_0x5722a9,_0x3e7d23,_0x1a49fa)?[_0x170682,_0x5722a9]:In(_0x5722a9,_0x170682,_0x1a49fa,_0x3e7d23)?[_0x5722a9,_0x170682]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2f5816),this['_defaultCallbacks']['set']('insertion:discard',_0x49b396),this['_defaultCallbacks']['set']('insertion:join',_0x59a7f3),this['_defaultCallbacks']['set']('insertion:chain',_0x32fed8),this['_defaultCallbacks']['set']('deletion:accept',_0x49b396),this['_defaultCallbacks']['set']('deletion:discard',_0x2f5816),this['_defaultCallbacks']['set']('deletion:join',_0x59a7f3),this['_defaultCallbacks']['set']('deletion:chain',_0x32fed8),this['_defaultCallbacks']['set']('formatInline:accept',_0x316a55),this['_defaultCallbacks']['set']('formatInline:discard',_0x2f5816),this['_defaultCallbacks']['set']('formatInline:join',_0x59a7f3),this['_defaultCallbacks']['set']('formatInline:chain',_0x2f5816),this['_defaultCallbacks']['set']('formatBlock:accept',_0x316a55),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2f5816),this['_defaultCallbacks']['set']('formatBlock:join',_0x59a7f3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2f5816),this['_defaultCallbacks']['set']('attribute:accept',_0x2f5816),this['_defaultCallbacks']['set']('attribute:discard',(_0x52d301,_0x22f175)=>{if(!_0x22f175)return;const _0x48a203=this['_editor']['plugins']['get'](_0x16e815);this['_model']['change'](_0x2174f7=>{if('$elementName'==_0x22f175['key'])for(const _0x3e908b of _0x52d301){const _0x13cd11=_0x3e908b['start']['nodeAfter'],_0x503f36=_0x22f175['oldValue'];_0x2174f7['rename'](_0x13cd11,_0x503f36);}else{if(_0x48a203['isBlockAttribute'](_0x22f175['key'])){for(const _0x3961bf of _0x52d301)void 0x0!==_0x22f175['oldValue']?_0x2174f7['setAttribute'](_0x22f175['key'],_0x22f175['oldValue'],_0x3961bf['start']['nodeAfter']):_0x2174f7['removeAttribute'](_0x22f175['key'],_0x3961bf['start']['nodeAfter']);}else{for(const _0x3f09c7 of _0x52d301)_0x22f175['oldValue']?_0x2174f7['setAttribute'](_0x22f175['key'],_0x22f175['oldValue'],_0x3f09c7):_0x2174f7['removeAttribute'](_0x22f175['key'],_0x3f09c7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x59a7f3);}};function hn(_0xc5b8dc,_0x4170ca,_0x30dc98){for(const _0x4cfeb3 of _0x4170ca['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4cfeb3['root']==_0x4cfeb3)return!0x1;if(!_0x30dc98['containsItem'](_0x4cfeb3))return!0x1;if(_0xc5b8dc['isObject'](_0x4cfeb3)||_0xc5b8dc['isLimit'](_0x4cfeb3))return!0x0;}return!0x1;}function gn(_0x24cf43){return _0x24cf43['end']['parent']==_0x24cf43['start']['nodeAfter']&&_0x24cf43['end']['isAtStart'];}function fn(_0x56fdf1,_0x245494,_0x27957e,_0x2017bc){const _0xdcb3f3=_0x2d74b=>!_0x2d74b['item']['is']('$textProxy')&&!_0x2017bc['isObject'](_0x2d74b['item']),_0x3097f9=_0x56fdf1['start']['getLastMatchingPosition'](_0xdcb3f3),_0x23b7d9=_0x56fdf1['end']['getLastMatchingPosition'](_0xdcb3f3,{'direction':'backward'});return(!_0x56fdf1['start']['isEqual'](_0x3097f9)||!_0x56fdf1['end']['isEqual'](_0x23b7d9))&&(_0x3097f9['isBefore'](_0x23b7d9)?_0x27957e['updateMarker'](_0x245494,{'range':_0x27957e['createRange'](_0x3097f9,_0x23b7d9)}):_0x27957e['removeMarker'](_0x245494),!0x0);}function mn(_0x1bf841){return _0x8b3a38(_0x1bf841);}function En(_0x5aa1dd){const _0x588de0=_0x5aa1dd['start']['nodeAfter'];return _0x588de0&&_0x588de0['is']('element');}function Tn(_0x329498){return gn(_0x329498)||function(_0x28085c){return _0x28085c['start']['parent']==_0x28085c['end']['nodeBefore']&&_0x28085c['start']['isAtEnd'];}(_0x329498);}function _n(_0x1bc881,_0x4c82b8){try{const _0x10b526=_0x1bc881['getRange']();for(const _0x32f956 of _0x4c82b8)if(_0x1bc881!==_0x32f956&&_0x10b526&&_0x10b526['isIntersecting'](_0x32f956['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function pn(_0x192230,_0x299c86){return null==_0x192230['end']['nodeBefore']&&_0x192230['end']['parent']==_0x192230['start']['nodeAfter']?Ln(_0x192230['start']['nodeAfter'],_0x299c86):_0x192230;}function Ln(_0x1b5bb6,_0x3b752f){const _0x4eed0f=_0x3b752f['schema']['isObject'](_0x1b5bb6)||_0x3b752f['schema']['isSelectable'](_0x1b5bb6);return _0x3b752f['createRange'](_0x3b752f['createPositionAt'](_0x1b5bb6,'before'),_0x4eed0f?_0x3b752f['createPositionAfter'](_0x1b5bb6):_0x3b752f['createPositionAt'](_0x1b5bb6,'end'));}function In(_0x19abba,_0x159c91,_0x4a6805,_0x7ab26a){return!!An(_0x19abba,_0x159c91)&&_0x4a6805['end']['isEqual'](_0x7ab26a['start']);}function An(_0x33bca8,_0x3a2e50){if(!_0x33bca8['_isDataLoaded']||!_0x3a2e50['_isDataLoaded'])return!0x1;const _0xf524ed=new Set(Object['keys'](_0x33bca8['attributes'])),_0x1d3a4a=new Set(Object['keys'](_0x3a2e50['attributes']));if(_0xf524ed['delete']('groupId'),_0x1d3a4a['delete']('groupId'),0x0==_0xf524ed['size']&&0x0==_0x1d3a4a['size'])return!0x0;if(_0xf524ed['size']!=_0x1d3a4a['size'])return!0x1;const _0x578848={..._0x33bca8['attributes']},_0x25d21e={..._0x3a2e50['attributes']};return delete _0x578848['groupId'],delete _0x25d21e['groupId'],JSON['stringify'](_0x578848)==JSON['stringify'](_0x25d21e);}function bn(_0x459839,_0xbb0d7e){const _0x562196=Cn(_0x459839['attributes']),_0x21e344=Cn(_0xbb0d7e);if(!_0x459839['_isDataLoaded'])return!0x1;if(!dt(_0x562196['@ai'],_0x21e344['@ai']))return!0x1;for(const _0x3d896e of Object['keys'](_0x21e344))if(!dt(_0x562196[_0x3d896e],_0x21e344[_0x3d896e]))return!0x1;return!0x0;}function Cn(_0x3ea875){const _0x4dccc0=Object['assign']({},_0x3ea875);return delete _0x4dccc0['skipNestingCheck'],delete _0x4dccc0['tablePasteChainId'],_0x4dccc0;}function kn(_0x3157ab){return _0x3157ab['split']('|')[0x0];}const Rn=/* #__PURE__ -- @preserve */
26
+ _0x36dcf5();var Nn=class extends Rn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x42c0b9,_0x3f8415,_0x171491,_0x58b4fb){super(),this['model']=_0x3f8415,this['view']=_0x171491,this['commentThreadController']=_0x58b4fb,this['_editor']=_0x42c0b9,this['_acceptCommand']=_0x42c0b9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x42c0b9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x58a05c,_0x5bdcd0)=>_0x58a05c||_0x5bdcd0),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3fae23=>_0x3fae23&&this['_editor']['model']['canEditAt'](_0x3f8415['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x76cc3d=>_0x76cc3d&&this['_editor']['model']['canEditAt'](_0x3f8415['getRanges']())),this['_pendingAction']=null,_0x171491['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x171491,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x171491,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x171491,'change:isDirty',()=>{_0x171491['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 _0x354893=Bt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x354893);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},yn=class extends _0x33cb2f{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5d7ca2,_0x148e39,_0x2ac65c,_0x180464){super(_0x5d7ca2),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x25841d(_0x5d7ca2,Bt(_0x5d7ca2,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x148e39['authoredAt']),this['bind']('authoredAt')['to'](_0x148e39),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x148e39,'authoredAt',this,'descriptionParts',(_0x1ded90,_0x36f1e5,_0x42abdb)=>{const _0x2b03c2=_0x42abdb['map'](_0xe48725=>bt(_0xe48725['content']))['join']('.\x20')+'.',_0x3cae2f=_0x148e39['aiSource']&&'author'===_0x180464['showAISource']?_0x180464['aiAuthor']['name']:_0x148e39['author']['name'],_0x3023e0=Bt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1ded90-0x1,_0x3cae2f,_0x36f1e5?_0x180464['formatDateTime'](_0x36f1e5):'',new DOMParser()['parseFromString'](_0x197577(_0x2b03c2),'text/html')['body']['textContent']]);return _0x148e39['aiSource']&&'pill'===_0x180464['showAISource']?_0x3023e0+'\x20'+Bt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x3023e0;}),this['focusables']=new _0x1f5194(),this['focusTracker']=new _0x17b233(),this['keystrokes']=new _0x18e0bc(),this['focusCycler']=new _0x33d4cb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4a62ae=>_0x4a62ae['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x148e39,this['_localUser']=_0x2ac65c,this['_config']=_0x180464,_0x180464['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),nt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x4eb83f}=this['_config'];this['commentsListView']=new _0x4eb83f(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',_0x1e0d48=>_0x1e0d48+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x54d171,_0x2cb516)=>_0x54d171||!!_0x2cb516);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x4c9c61}=this['_config'],_0x21aaef=new _0x4c9c61(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4762fe=_0x21aaef['commentInputView'];return _0x21aaef['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4762fe,'value',(_0x478b63,_0x41cc81,_0x5719f7)=>!!_0x5719f7||_0x478b63&&!_0x41cc81),_0x4762fe['on']('submit',(_0x1b681b,_0x355f21)=>{this['fire']('addComment',_0x355f21),_0x4762fe['editor']['setData']('');}),_0x4762fe['on']('cancel',()=>this['focus']()),_0x4762fe['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x21aaef;}},Sn=class extends yn{suggestionView;_descriptionElement;constructor(_0x47ae04,_0x28568c,_0xc7e36f,_0x356dd5){super(_0x47ae04,_0x28568c,_0xc7e36f,_0x356dd5),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x427fa9=>_0x427fa9&&_0x427fa9[0x0]?_0x427fa9[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2b7ab8,_0x5b3c43)=>{let _0x2cfa45='';for(const _0x38cb12 of _0x2b7ab8)_0x2cfa45+='<p>'+bt(_0x38cb12['content'],_0x38cb12['color'])+'</p>';return _0x5b3c43?_0x2cfa45:rt(_0x2cfa45,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x356dd5['SuggestionView'](_0x47ae04,_0x28568c,{'formatDateTime':_0x356dd5['formatDateTime'],'showAISource':_0x356dd5['showAISource'],'aiAuthor':_0x356dd5['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['acceptButton']['bind']('tooltip')['to'](this,'canAccept',_0x17ef2a=>!!_0x17ef2a||Bt(_0x47ae04,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['suggestionView']['discardButton']['bind']('tooltip')['to'](this,'canDiscard',_0x5cc000=>!!_0x5cc000||Bt(_0x47ae04,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}getTemplate(){const _0x3cf571=this['bindTemplate'],_0x8767ba=[this['suggestionView']];return this['commentsListView']&&_0x8767ba['push'](this['commentsListView']),this['commentThreadInputView']&&_0x8767ba['push'](this['commentThreadInputView']),_0x8767ba['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3cf571['if']('isActive','ck-suggestion-wrapper--active'),_0x3cf571['to']('type',_0x1627f0=>'ck-suggestion-'+_0x1627f0),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x3cf571['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x8767ba};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},Mn=class extends _0x33cb2f{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x19dcdd,_0x5ce945,_0x16b3c2){super(_0x19dcdd),this['_model']=_0x5ce945,this['_config']=_0x16b3c2,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5ce945),this['acceptButton']=this['_createButton'](Bt(_0x19dcdd,'Accept\x20suggestion'),_0x47f9b8,'ck-suggestion--accept\x20ck-button_small','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Bt(_0x19dcdd,'Discard\x20suggestion'),_0x265eb,'ck-suggestion--discard\x20ck-button_small','discardSuggestion','sw');const _0x5c085d=!!_0x5ce945['aiSource']&&'author'===_0x16b3c2['showAISource'],_0x33454e=_0x5c085d?this['_createAIUser'](_0x16b3c2['aiAuthor']):_0x5ce945['author'],_0x3b68b4=_0x5c085d&&!_0x16b3c2['aiAuthor']['avatar']?_0x46b9b8:void 0x0;this['userView']=new _0xd581df(_0x19dcdd,_0x33454e,this['getUserViewNotificationText'](),_0x3b68b4),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1f5194([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x17b233(),this['keystrokes']=new _0x18e0bc(),this['focusCycler']=new _0x33d4cb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2c5d8e=>_0x2c5d8e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4db6cf=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4db6cf['innerHTML']=_0x197577(this['description']),this['on']('change:description',(_0x555d03,_0x12859d,_0x1fc447)=>{_0x4db6cf['innerHTML']=_0x197577(_0x1fc447);}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x1836db=this['bindTemplate'],_0x1259e6=new _0x15c805();_0x1259e6['content']=_0x5880c8;const _0x13fb72=[{'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']}},_0x1259e6,{'tag':'time','attributes':{'datetime':_0x1836db['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1836db['to']('authoredAt',_0x35db9a=>this['_config']['formatDateTime'](_0x35db9a))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x13fb72['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x1170e4=new _0x8c012f(this['locale']);_0x1170e4['set']({'icon':_0x94802e,'label':Bt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Bt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'size':'small','class':'ck-pill_ai'}),_0x13fb72['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x1170e4]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x13fb72}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Bt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Bt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Bt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Bt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x470312){return new _0x3b559a({'id':'ck-ai-author','name':_0x470312['name'],'avatar':_0x470312['avatar'],'color':new _0x457659(0x0)});}_createButton(_0x5cd642,_0x4e5cb4,_0x3992d6,_0x53f386,_0x566537){const _0x9b2ac6=new _0x2f8a65(this['locale']);return _0x9b2ac6['set']({'label':_0x5cd642,'icon':_0x4e5cb4,'tooltip':!0x0,'tooltipPosition':_0x566537}),_0x9b2ac6['extendTemplate']({'attributes':{'class':_0x3992d6}}),_0x9b2ac6['on']('execute',()=>{this['fire'](_0x53f386,this['_model']['id']);}),_0x9b2ac6;}_setupKeyboardNavigation(){const _0x42bdcb=this['element'];this['keystrokes']['listenTo'](_0x42bdcb);for(const _0x54d867 of this['focusables'])this['focusTracker']['add'](_0x54d867['element']),this['keystrokes']['listenTo'](_0x54d867['element']);this['keystrokes']['set']('enter',(_0x43a397,_0x2bc58c)=>{_0x42bdcb===_0x43a397['target']&&(this['focusCycler']['focusFirst'](),_0x2bc58c());}),this['keystrokes']['set']('esc',(_0x4daf2e,_0x4e45d7)=>{_0x42bdcb!==_0x4daf2e['target']&&(this['focus'](),_0x4e45d7());});}},On=class extends _0x343d5f{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[un,_0x36c40a,_0x54906c,_0x274aee,_0x424c9a];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x22c833){super(_0x22c833),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x56d9a4=this['editor']['config'];_0x56d9a4['define']('trackChanges.SuggestionThreadView',Sn),_0x56d9a4['define']('trackChanges.SuggestionView',Mn),_0x56d9a4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x56d9a4['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x31c509,_0x2c6a14){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2726c7,_0x2dd71a]of this['_handleControllerBuffer']){const _0x3ac9cb=this['_suggestionToController']['has'](_0x2726c7);_0x3ac9cb||_0x2dd71a?_0x3ac9cb&&_0x2dd71a&&this['_destroyController'](_0x2726c7):this['_initializeController'](_0x2726c7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x424c9a)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x31c509,_0x2c6a14);}init(){const _0x5310b3=this['editor'],_0x188154=_0x5310b3['plugins']['get'](un),_0x171961=_0x5310b3['plugins']['get'](_0x274aee),_0x282d7d=_0x5310b3['plugins']['get'](_0x424c9a),_0x2e55bb=_0x5310b3['plugins']['get'](_0x54906c);this['_addUIComponentsToFactory'](),_0x282d7d['addSourceCollector'](()=>{const _0x2de8c9=[];for(const [_0x9fdf76,_0x3b2844]of Array['from'](this['_suggestionToController'])){const _0x3fea2c=_0x9fdf76['getAllAdjacentSuggestions'](),_0x277ef7=[];for(const _0x584f94 of _0x3fea2c){if(!_0x584f94['isInContent'])continue;if(_0x584f94['isMultiRange']){_0x277ef7['push'](..._0x584f94['getRanges']());continue;}const _0x48c6c4=_0x584f94['getFirstRange']();if(_0x277ef7['length']>0x0){const _0x1e8eb3=_0x277ef7[0x0]['getJoined'](_0x48c6c4);if(_0x1e8eb3){_0x277ef7[0x0]=_0x1e8eb3;continue;}}_0x277ef7['push'](_0x48c6c4);}_0x2de8c9['push']([_0x3b2844['view'],_0x277ef7]);}return _0x2de8c9;}),this['listenTo'](_0x188154,'suggestionLoaded',(_0x307c2c,_0x38ad99)=>{this['listenTo'](_0x38ad99,'change:previous',(_0x272786,_0x437022,_0x8fb08b,_0x25fde5)=>{_0x38ad99['isInContent']&&(null==_0x8fb08b?(this['_updateController'](_0x25fde5['head']),this['_handleSuggestionControllerDelayed'](_0x38ad99,!0x1)):(this['_updateController'](_0x8fb08b['head']),null==_0x25fde5&&this['_handleSuggestionControllerDelayed'](_0x38ad99,!0x0)));}),null!==_0x38ad99['previous']?this['_updateController'](_0x38ad99['head']):this['_handleSuggestionControllerDelayed'](_0x38ad99,!0x1);}),this['listenTo'](_0x188154,'suggestionUnloaded',(_0x57816f,_0x31384e,_0x253854)=>{this['stopListening'](_0x31384e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x31384e),this['_suggestionToController']['has'](_0x31384e)&&this['_destroyController'](_0x31384e),_0x253854&&this['_updateController'](_0x253854['head']);}),this['listenTo'](_0x188154,'suggestionChanged',(_0x2f6f76,_0xab477e)=>{this['_updateController'](_0xab477e);}),this['listenTo'](_0x171961,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2e55bb,'addComment',(_0x3a9f50,{threadId:_0x5c98e2,isFromAdapter:_0x2a107f})=>{if(_0x2a107f||!_0x188154['hasSuggestion'](_0x5c98e2))return;const _0x34d37e=_0x188154['getSuggestion'](_0x5c98e2);this['_suggestionToController']['get'](_0x34d37e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0xeb4b94=[this['editor']];for(const _0x29a28b of _0xeb4b94){let _0x370549;for(const _0x46429c in _0x29a28b){const _0x5717ed=_0x46429c,_0x32004f=_0x29a28b[_0x5717ed];if('trackChangesLicenseKeyValid'==_0x32004f||'trackChangesLicenseKeyInvalid'==_0x32004f||'trackChangesLicenseKeyExpired'==_0x32004f||'trackChangesLicenseKeyDomainLimit'==_0x32004f||'trackChangesLicenseKeyNotAllowed'==_0x32004f||'trackChangesLicenseKeyEvaluationLimit'==_0x32004f||'trackChangesLicenseKeyUsageLimit'==_0x32004f){delete _0x29a28b[_0x5717ed],_0x370549=_0x32004f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x370549&&_0x29a28b['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x370549&&_0x29a28b['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x370549&&_0x29a28b['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x370549&&_0x29a28b['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x370549&&_0x29a28b['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x370549&&_0x29a28b['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x3295cf){const _0x34078d=this['_suggestionToController']['get'](_0x3295cf);return _0x34078d&&this['editor']['plugins']['get'](_0x274aee)['getByInnerView'](_0x34078d['view'])||null;}getSuggestionForAnnotation(_0x76ed09){const _0x1cae61=this['_viewToController']['get'](_0x76ed09['innerView']);return _0x1cae61?_0x1cae61['model']:null;}_refreshActiveMarkers(){const _0x2eae81=this['editor']['plugins']['get'](_0x274aee),_0x33438d=this['editor']['plugins']['get'](un),_0x5dd691=Array['from'](_0x2eae81['activeAnnotations'],_0x163646=>_0x163646['innerView'])['filter'](_0x438977=>this['_viewToController']['has'](_0x438977)),_0x22bf63=[];for(const _0x318df1 of _0x5dd691){const _0x11cc8f=this['_viewToController']['get'](_0x318df1)['model']['getAllAdjacentSuggestions']();_0x22bf63['push'](..._0x11cc8f['reduce']((_0x2d6023,_0xca02c8)=>[..._0x2d6023,..._0xca02c8['getMarkerNames']()],[]));}_0x33438d['activeMarkers']=_0x22bf63;}_addUIComponentsToFactory(){const _0x4142a2=this['editor'],_0x5af58b=_0x4142a2['locale'],_0x469408=Bt(_0x5af58b,'Track\x20changes'),_0x416b9e=new _0x26bf81([{'type':'switchbutton','model':new _0x60108d({'withText':!0x0,'isToggleable':!0x0,'label':_0x469408,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x60108d({'withText':!0x0,'label':Bt(_0x5af58b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x60108d({'withText':!0x0,'label':Bt(_0x5af58b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x60108d({'withText':!0x0,'label':Bt(_0x5af58b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x60108d({'withText':!0x0,'label':Bt(_0x5af58b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4142a2['plugins']['has']('TrackChangesPreview')&&_0x416b9e['addMany']([{'type':'separator'},{'type':'button','model':new _0x60108d({'withText':!0x0,'label':Bt(_0x5af58b,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5baf67 of _0x416b9e)if(wn(_0x5baf67)){const _0xe0d20f=_0x4142a2['commands']['get'](_0x5baf67['model']['commandName']);_0x5baf67['model']['bind']('isOn','isEnabled')['to'](_0xe0d20f,'value','isEnabled');}_0x4142a2['ui']['componentFactory']['add']('trackChanges',_0x7b00ab=>this['_createToolbarButton'](_0x7b00ab,_0x416b9e,_0x469408)),_0x4142a2['ui']['componentFactory']['add']('menuBar:trackChanges',_0x59798c=>this['_createMenuBarMenu'](_0x59798c,_0x416b9e,_0x469408));}_createToolbarButton(_0x2ab70c,_0x238f94,_0x3e63d0){const _0x47597e=_0x4f845d(_0x2ab70c,_0x5597bd),_0x5dfe7e=this['editor']['commands']['get']('trackChanges');_0x47597e['buttonView']['set']({'tooltip':_0x3e63d0,'label':_0x3e63d0,'icon':_0x5880c8}),_0x47597e['buttonView']['bind']('isOn')['to'](_0x5dfe7e,'value'),_0x47597e['buttonView']['on']('execute',()=>{_0x5dfe7e['execute'](),this['editor']['editing']['view']['focus']();}),_0x12f457(_0x47597e,_0x238f94,{'role':'menu'});const _0x5d2eac=[];for(const _0x454d43 of _0x238f94)wn(_0x454d43)&&_0x5d2eac['push'](this['editor']['commands']['get'](_0x454d43['model']['commandName']));const _0x32f57c=_0x47597e['buttonView'];return _0x32f57c['actionView']['unbind']('isEnabled'),_0x32f57c['arrowView']['unbind']('isEnabled'),_0x32f57c['actionView']['bind']('isEnabled')['to'](_0x5dfe7e,'isEnabled'),_0x32f57c['arrowView']['bind']('isEnabled')['toMany'](_0x5d2eac,'isEnabled',(..._0x5a423c)=>_0x5a423c['some'](_0x3f143c=>_0x3f143c)),_0x47597e['on']('execute',_0x258314=>{this['editor']['execute'](_0x258314['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x47597e;}_createMenuBarMenu(_0x313630,_0x11bf51,_0x3dca24){const _0x240a17=new _0x435739(_0x313630),_0x26f212=this['editor']['commands']['get']('trackChanges');_0x240a17['buttonView']['set']({'label':_0x3dca24,'icon':_0x5880c8});const _0x55018a=new _0x57aca6(_0x313630);for(const _0x2e9e17 of _0x11bf51){if('separator'==_0x2e9e17['type']){_0x55018a['items']['add'](new _0x21d50e(_0x313630));continue;}const _0x2c645f=new _0x4580fa(_0x313630,_0x240a17),_0x20760a=new _0x1a6d58(_0x313630),_0x14ccaa=_0x2e9e17['model'];_0x20760a['bind'](...Object['keys'](_0x14ccaa))['to'](_0x14ccaa),_0x20760a['delegate']('execute')['to'](_0x240a17),_0x20760a['on']('execute',()=>{this['editor']['execute'](_0x14ccaa['commandName']),this['editor']['editing']['view']['focus']();}),_0x2c645f['children']['add'](_0x20760a),_0x55018a['items']['add'](_0x2c645f);}return _0x240a17['bind']('isEnabled')['to'](_0x26f212,'isEnabled'),_0x240a17['panelView']['children']['add'](_0x55018a),_0x240a17;}_initializeController(_0x376b15){const _0x53ba59=this['editor'],_0x6dc4e4=_0x53ba59['config'],_0x1b2c15=_0x53ba59['plugins']['get'](_0x274aee),_0x3b96d5=_0x53ba59['plugins']['get'](_0x54906c),_0x3408cc=_0x53ba59['plugins']['get'](_0x424c9a),_0x4111b7=_0x53ba59['plugins']['get'](_0x36c40a)['me'],_0xbe8d6b=_0x6dc4e4['get']('trackChanges')['SuggestionThreadView'],_0x421fa9=_0x6dc4e4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4ab891,CommentThreadInputView:_0x521906}=_0x53ba59['plugins']['get']('CommentsUI');let _0x540613,_0x14cd0f,_0x3799f8;this['_annotationViews']['has'](_0x376b15['id'])?(_0x14cd0f=this['_annotationViews']['get'](_0x376b15['id']),_0x540613=_0x14cd0f['mainView']):(_0x540613=new _0xbe8d6b(_0x53ba59['locale'],_0x376b15,_0x4111b7,{'disableComments':this['_disableComments'],'editorConfig':{..._0x6dc4e4['get']('comments.editorConfig'),'licenseKey':_0x6dc4e4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x6dc4e4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x6dc4e4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x6dc4e4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x22c9dc(_0x6dc4e4['get']('locale'),_0x53ba59['locale']),'CommentView':_0x6dc4e4['get']('comments')['CommentView'],'CommentsListView':_0x4ab891,'CommentThreadInputView':_0x521906,'SuggestionView':_0x421fa9,'showAISource':_0x6dc4e4['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x6dc4e4['get']('trackChanges.aiAuthor'),'name':_0x6dc4e4['get']('trackChanges.aiAuthor')?.['name']||Bt(_0x53ba59['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x540613['suggestionView']['acceptButton']['on']('execute',()=>{_0x53ba59['editing']['view']['focus']();}),_0x540613['suggestionView']['discardButton']['on']('execute',()=>{_0x53ba59['editing']['view']['focus']();}),_0x14cd0f=_0x1b2c15['createAnnotationView'](this['editor']['locale'],_0x540613),_0x14cd0f['bind']('isDirty')['to'](_0x540613,'isDirty'),_0x14cd0f['bind']('length')['to'](_0x540613),_0x14cd0f['bind']('type')['to'](_0x540613,'type',_0x433f51=>'suggestion-'+_0x433f51),_0x540613['on']('escape',()=>{_0x3799f8['fire']('escape');}),this['_annotationViews']['set'](_0x376b15['id'],_0x14cd0f));const _0x33a2ab=_0x3b96d5['createCommentThreadController'](_0x376b15['commentThread'],_0x540613),_0x3c7a1d=new Nn(_0x53ba59,_0x376b15,_0x540613,_0x33a2ab),_0x2a6d1e=_0x376b15['getAllAdjacentSuggestions']()['filter'](_0x3f8e9c=>_0x3f8e9c['isInContent']);_0x540613['descriptionParts']=_0x53ba59['plugins']['get'](un)['descriptionFactory']['getDescriptions'](_0x2a6d1e),this['_suggestionToController']['set'](_0x376b15,_0x3c7a1d),this['_viewToController']['set'](_0x540613,_0x3c7a1d);const _0x2307a3=()=>{const _0x50aab6=[],_0x5b9b79=_0x376b15['getAllAdjacentSuggestions']()['filter'](_0x2ddc26=>_0x2ddc26['isInContent']);for(const _0x1a002f of _0x5b9b79)_0x50aab6['push'](..._0x1a002f['getMarkers']());return _0x40b699(_0x53ba59['editing'],_0x50aab6);};_0x3799f8=_0x1b2c15['createAnnotation']({'view':_0x14cd0f,'target':_0x2307a3,'type':()=>'suggestion-'+_0x3c7a1d['view']['type'],'isVisible':!!_0x2307a3()}),_0x3b96d5['_bindAnnotationToEditors'](_0x540613,_0x3799f8),_0x1b2c15['add'](_0x3799f8),_0x3408cc['registerAnnotation'](_0x3799f8);}_destroyController(_0xf6064c){const _0x198011=this['editor']['plugins']['get'](_0x54906c),_0x50b8b6=this['editor']['plugins']['get'](_0x274aee),_0x3515ea=this['_suggestionToController']['get'](_0xf6064c),_0x598fa5=_0x3515ea['view'],_0x2eb891=_0x50b8b6['getByInnerView'](_0x598fa5);_0x198011['_unbindEditors'](_0x598fa5),_0x2eb891&&_0x50b8b6['remove'](_0x2eb891),this['_suggestionToController']['delete'](_0xf6064c),this['_viewToController']['delete'](_0x598fa5),_0x3515ea['destroy']();}_updateController(_0x30a2ad){if(!_0x30a2ad['isInContent']||!this['_suggestionToController']['has'](_0x30a2ad))return;const _0x582d4f=this['editor']['plugins']['get'](un),_0x156bee=this['_suggestionToController']['get'](_0x30a2ad),_0x250193=_0x30a2ad['getAllAdjacentSuggestions']();_0x156bee['view']['descriptionParts']=_0x582d4f['descriptionFactory']['getDescriptions'](_0x250193);}destroy(){for(const _0x5b748d of this['_suggestionToController']['keys']())this['_destroyController'](_0x5b748d);for(const _0x53f91a of this['_annotationViews']['values']())_0x53f91a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function wn(_0x341d9d){return'model'in _0x341d9d;}var Bn=class extends _0x343d5f{static get requires(){return[un,On,_0x15138f];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x262a91){this['editor']['plugins']['get'](un)['adapter']=_0x262a91;}get adapter(){return this['editor']['plugins']['get'](un)['adapter'];}addSuggestion(_0x477ff9){return this['editor']['plugins']['get'](un)['addSuggestionData'](_0x477ff9);}getSuggestions({skipNotAttached:_0x47e020=!0x1,toJSON:_0x2d5143=!0x1}={}){return this['editor']['plugins']['get'](un)['getSuggestions']({'skipNotAttached':_0x47e020,'toJSON':_0x2d5143});}getSuggestion(_0x341392){return this['editor']['plugins']['get'](un)['getSuggestion'](_0x341392);}};const Fn=['Pagination'];var vn=class extends _0x343d5f{static get requires(){return[un];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x37a554=this['editor'];if(_0x37a554['config']['define']('trackChangesData.editorCreator',_0x43fc3b=>{const _0x60d161=_0x37a554['model']['document']['getRootNames']()['reduce']((_0x38201c,_0x385b1d)=>(_0x38201c[_0x385b1d]='',_0x38201c),{});return _0x37a554['constructor']['create'](_0x60d161,_0x43fc3b);}),'function'!=typeof _0x37a554['config']['get']('trackChangesData')['editorCreator'])throw new _0x2ccabb('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x4d86b6){return Pn(this['editor'],!0x0,_0x4d86b6);}getDataWithDiscardedSuggestions(_0x514bf5){return Pn(this['editor'],!0x1,_0x514bf5);}},Dn=class extends _0x343d5f{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x193ae6){super(_0x193ae6),this['result']='end',_0x193ae6['editing']['view']['_overlayModeHint']='auto',_0x193ae6['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}init(){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}};function Un(_0x20dffe){return void 0x0!==_0x20dffe['getRootsAttributes'];}async function Pn(_0x2078da,_0x21eb1a,_0x24b1c2){const _0x38eb4a=et(_0x2078da,Fn);if(_0x38eb4a['plugins']['push'](un,Dn),Un(_0x2078da)){_0x38eb4a['roots']=Object['create'](null);for(const _0x56b15c of _0x2078da['model']['document']['getRootNames']())_0x38eb4a['roots'][_0x56b15c]={'modelAttributes':_0x2078da['getRootAttributes'](_0x56b15c)};}const _0x33d4e3=document['createDocumentFragment'](),_0x231c6f=_0x2078da['config']['get']('trackChangesData')['editorCreator'],_0x46c5bd=await _0x231c6f(_0x38eb4a,()=>function(_0x333ac2){const _0x330f41=document['createElement']('div');return _0x333ac2['appendChild'](_0x330f41),_0x330f41;}(_0x33d4e3));!function(_0x42e519,_0x35dccb){const _0x24f26c=_0x42e519['model']['document']['getRootNames']()['reduce']((_0x5d6281,_0x18fde2)=>(_0x5d6281[_0x18fde2]=_0x42e519['data']['get']({'rootName':_0x18fde2}),_0x5d6281),{}),_0x3493f2=_0x42e519['plugins']['get']('Users')['users']['map'](_0x2e5d9b=>({'id':_0x2e5d9b['id'],'name':_0x2e5d9b['name']})),_0x54eb08=_0x42e519['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5e15f2=_0x42e519['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x13a88a=_0x35dccb['plugins']['get']('Users'),_0x3bdf93=_0x35dccb['plugins']['get']('TrackChangesEditing'),_0x469ce1=_0x35dccb['plugins']['get']('CommentsRepository');for(const _0xebf1ce of _0x469ce1['getCommentThreads']())_0xebf1ce['remove']();for(const _0x4f0c12 of _0x3493f2)_0x13a88a['getUser'](_0x4f0c12['id'])||_0x13a88a['addUser'](_0x4f0c12);_0x13a88a['me']||_0x13a88a['useAnonymousUser']();for(const _0xbddc7 of _0x5e15f2)_0x469ce1['addCommentThread'](_0xbddc7);for(const _0x577f48 of _0x54eb08)_0x3bdf93['addSuggestionData'](_0x577f48);_0x35dccb['data']['set'](_0x24f26c);}(_0x2078da,_0x46c5bd),_0x46c5bd['execute'](_0x21eb1a?'acceptAllSuggestions':'discardAllSuggestions');const _0xab7736=Un(_0x46c5bd)?_0x46c5bd['getFullData'](_0x24b1c2):_0x46c5bd['data']['get'](_0x24b1c2);return await _0x46c5bd['destroy'](),_0xab7736;}var xn=class extends _0x33cb2f{options;constructor(_0x3c8d4f,_0x57212d){super(_0x3c8d4f),this['options']=_0x57212d,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}setPreviewData(_0x2e4a05,_0x4e6a12){if(!this['element'])return;const _0x5c9763=[];for(const [_0x2c4701,_0x4668b9]of _0x2e4a05){const _0x3cf911=document['createElement']('div');_0x3cf911['setAttribute']('data-ck-root-name',_0x2c4701),_0x3cf911['className']=_0x4668b9['classes']+'\x20ck-track-changes-preview__root-container',_0x3cf911['innerHTML']=_0x197577(_0x4668b9['content']),_0x5c9763['push'](_0x3cf911);}_0x4e6a12(this['element'],_0x5c9763),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Gn=class extends _0x5ed105{constructor(_0x305c51){super(_0x305c51),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x488029=this['editor'],_0x492ef5=_0x488029['locale'],_0x480260=_0x488029['plugins']['get']('Dialog');let _0x44b08f;const _0x51fb70=function(_0x327001){const _0x356413={};if('editables'in _0x327001['ui']['view']){for(const [_0x4848b1,_0x484f89]of Object['entries'](_0x327001['ui']['view']['editables']))_0x356413[_0x4848b1]=_0x484f89['element'];}else _0x356413[_0x327001['model']['document']['getRootNames']()[0x0]]=_0x327001['ui']['view']['editable']['element'];return _0x356413;}(_0x488029),_0x4af12d=function(_0xc7e21c){let _0x4a221c=0x0;for(const _0x308718 of Object['values'](_0xc7e21c))_0x4a221c=Math['max'](_0x4a221c,_0x308718['getBoundingClientRect']()['width']);let _0x5688c5=0x0;for(const _0x36281d of Object['values'](_0xc7e21c))_0x5688c5+=_0x36281d['getBoundingClientRect']()['height'];const _0x1087d5=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x4a221c,'height':Math['min'](_0x5688c5,_0x1087d5)};}(_0x51fb70);_0x480260['show']({'id':'finalContentPreview','title':Bt(_0x492ef5,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new xn(_0x492ef5,{'dialogRects':_0x4af12d}),'onHide':()=>{_0x44b08f['destroy']();},'onShow':()=>{_0x488029['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1c1394=>{const _0x5ccde8=this['_standarizeRootsData'](_0x1c1394,_0x488029,_0x51fb70);_0x480260['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5ccde8,_0x488029['config']['get']('trackChanges.preview.renderFunction'));}),_0x44b08f=new _0x34efa9(_0x492ef5,[_0x480260['view']]),_0x44b08f['attachToDom'](_0x488029['ui']['view']['body']['mountTarget']),_0x44b08f['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x488029['once']('destroy',()=>{_0x44b08f['destroy']();});const _0x233250=_0x480260['view']['headerView']['class'];_0x480260['view']['headerView']['class']=_0x233250?_0x233250+'\x20ck-reset_all':'ck-reset_all',_0x480260['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x480260['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1fbab5=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x41545d=_0x1fbab5['previewMode'],_0x3708b0={};if('$labels'===_0x41545d){for(const _0x1d9f17 of _0x1fbab5['getMergeFieldsIds']())_0x3708b0[_0x1d9f17]=_0x1fbab5['getLabel'](_0x1d9f17)||_0x1d9f17;}else{const _0xd44eff='$defaultValues'===_0x41545d?_0x1fbab5['getDefaultValues']():_0x1fbab5['getDataSetValues'](_0x41545d,!0x0);for(const _0xf1b71 of Object['entries'](_0xd44eff)){const [_0x3d9e7e,_0x2ef9ee]=_0xf1b71;_0x3708b0[_0x3d9e7e]=null!==_0x2ef9ee?_0x2ef9ee:_0x1fbab5['getLabel'](_0x3d9e7e)||_0x3d9e7e;}}return{'mergeFieldsData':_0x3708b0};}_standarizeRootsData(_0xf55114,_0x457920,_0x39dbfa){let _0xbee2a0;_0xbee2a0='string'==typeof _0xf55114?{[_0x457920['model']['document']['getRootNames']()[0x0]]:_0xf55114}:_0xf55114;const _0x35d639=this['_fixMediaEmbeds'](_0xbee2a0,_0x457920);return function(_0x51a8c4,_0x588f6e){const _0x377653=new Set(['ck-focused','ck-editor__editable_root']);for(const [_0xfba2c9,_0xf18b9f]of _0x51a8c4)_0xf18b9f['classes']=Array['from'](_0x588f6e[_0xfba2c9]['classList'])['filter'](_0x32a287=>!_0x377653['has'](_0x32a287))['join']('\x20');return _0x51a8c4;}(this['_sortRoots'](_0x457920)['reduce']((_0x82cb4a,_0xd7bd53)=>(_0x82cb4a['push']([_0xd7bd53,{'content':_0x35d639[_0xd7bd53],'classes':''}]),_0x82cb4a),[]),_0x39dbfa);}['_fixMediaEmbeds'](_0x5d34af,_0x481cdc){if(!_0x481cdc['plugins']['has']('MediaEmbedEditing'))return _0x5d34af;const _0x9bf5cf=_0x481cdc['plugins']['get']('MediaEmbedEditing');for(const [_0x1878d2,_0x34cead]of Object['entries'](_0x5d34af)){const _0x1c5000=document['createElement']('div');_0x1c5000['innerHTML']=_0x197577(_0x34cead),_0x1c5000['querySelectorAll']('figure.media')['forEach'](_0x44e818=>{const _0x7944b9=_0x44e818['querySelector']('oembed');if(_0x7944b9){const _0x3e61e8=_0x7944b9['getAttribute']('url');if(_0x3e61e8){const _0xba9d99=_0x9bf5cf['registry']['getMediaViewElement'](new lt(_0x481cdc['editing']['view']['document']),_0x3e61e8,{'elementName':'','renderForEditingView':!0x0}),_0x5a352a=document['createElement']('div');_0x5a352a['classList']['add']('ck-media__wrapper'),_0xba9d99['render'](_0x5a352a,_0x481cdc['editing']['view']['domConverter']),_0x7944b9['replaceWith'](_0x5a352a);}}}),_0x5d34af[_0x1878d2]=_0x1c5000['innerHTML'];}return _0x5d34af;}_sortRoots(_0x3f3b79){if(!function(_0x22f371){return void 0x0!==_0x22f371['getRootsAttributes'];}(_0x3f3b79))return _0x3f3b79['model']['document']['getRootNames']();const _0x4aa1ac=[],_0x1ecf86=new Map();for(const _0x26e6cd of _0x3f3b79['model']['document']['getRootNames']()){const _0x3ccbb6=_0x3f3b79['editing']['view']['getDomRoot'](_0x26e6cd)['getClientRects']()['item'](0x0);_0x4aa1ac['push'](_0x26e6cd),_0x1ecf86['set'](_0x26e6cd,_0x3ccbb6);}return _0x4aa1ac['sort']((_0x2946a5,_0x4f9c52)=>{const _0x5d231b=_0x1ecf86['get'](_0x2946a5),_0x483c8f=_0x1ecf86['get'](_0x4f9c52);return _0x5d231b['y']-_0x483c8f['y']||_0x5d231b['x']-_0x483c8f['x'];}),_0x4aa1ac;}},Hn=class extends _0x343d5f{static get requires(){return[vn,_0x4d4105];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f9a76){super(_0x2f9a76),_0x2f9a76['commands']['add']('previewFinalContent',new Gn(this['editor'])),_0x2f9a76['config']['define']('trackChanges.preview.renderFunction',(_0x4afc5e,_0x1b44cd)=>{for(const _0x1c804b of _0x1b44cd)_0x4afc5e['appendChild'](_0x1c804b);});}};export{It as AcceptSuggestionCommand,yn as BaseSuggestionThreadView,At as DiscardSuggestionCommand,St as ExecuteOnAllSuggestionsCommand,Mt as ExecuteOnSelectedSuggestionsCommand,Gn as PreviewFinalContentCommand,wt as Suggestion,Ft as SuggestionDescriptionFactory,Sn as SuggestionThreadView,Mn as SuggestionView,Bn as TrackChanges,Lt as TrackChangesCommand,vn as TrackChangesData,Dn as TrackChangesDataGetter,un as TrackChangesEditing,Hn as TrackChangesPreview,On as TrackChangesUI};