@ckeditor/ckeditor5-track-changes 48.1.0-alpha.5 → 48.1.0-alpha.6

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 (148) hide show
  1. package/dist/index.js +4 -4
  2. package/dist/translations/af.js +1 -1
  3. package/dist/translations/af.umd.js +1 -1
  4. package/dist/translations/ar.js +1 -1
  5. package/dist/translations/ar.umd.js +1 -1
  6. package/dist/translations/ast.js +1 -1
  7. package/dist/translations/ast.umd.js +1 -1
  8. package/dist/translations/az.js +1 -1
  9. package/dist/translations/az.umd.js +1 -1
  10. package/dist/translations/be.js +1 -1
  11. package/dist/translations/be.umd.js +1 -1
  12. package/dist/translations/bg.js +1 -1
  13. package/dist/translations/bg.umd.js +1 -1
  14. package/dist/translations/bn.js +1 -1
  15. package/dist/translations/bn.umd.js +1 -1
  16. package/dist/translations/bs.js +1 -1
  17. package/dist/translations/bs.umd.js +1 -1
  18. package/dist/translations/ca.js +1 -1
  19. package/dist/translations/ca.umd.js +1 -1
  20. package/dist/translations/cs.js +1 -1
  21. package/dist/translations/cs.umd.js +1 -1
  22. package/dist/translations/da.js +1 -1
  23. package/dist/translations/da.umd.js +1 -1
  24. package/dist/translations/de-ch.js +1 -1
  25. package/dist/translations/de-ch.umd.js +1 -1
  26. package/dist/translations/de.js +1 -1
  27. package/dist/translations/de.umd.js +1 -1
  28. package/dist/translations/el.js +1 -1
  29. package/dist/translations/el.umd.js +1 -1
  30. package/dist/translations/en-au.js +1 -1
  31. package/dist/translations/en-au.umd.js +1 -1
  32. package/dist/translations/en-gb.js +1 -1
  33. package/dist/translations/en-gb.umd.js +1 -1
  34. package/dist/translations/en.js +1 -1
  35. package/dist/translations/en.umd.js +1 -1
  36. package/dist/translations/eo.js +1 -1
  37. package/dist/translations/eo.umd.js +1 -1
  38. package/dist/translations/es-co.js +1 -1
  39. package/dist/translations/es-co.umd.js +1 -1
  40. package/dist/translations/es.js +1 -1
  41. package/dist/translations/es.umd.js +1 -1
  42. package/dist/translations/et.js +1 -1
  43. package/dist/translations/et.umd.js +1 -1
  44. package/dist/translations/eu.js +1 -1
  45. package/dist/translations/eu.umd.js +1 -1
  46. package/dist/translations/fa.js +1 -1
  47. package/dist/translations/fa.umd.js +1 -1
  48. package/dist/translations/fi.js +1 -1
  49. package/dist/translations/fi.umd.js +1 -1
  50. package/dist/translations/fr.js +1 -1
  51. package/dist/translations/fr.umd.js +1 -1
  52. package/dist/translations/gl.js +1 -1
  53. package/dist/translations/gl.umd.js +1 -1
  54. package/dist/translations/gu.js +1 -1
  55. package/dist/translations/gu.umd.js +1 -1
  56. package/dist/translations/he.js +1 -1
  57. package/dist/translations/he.umd.js +1 -1
  58. package/dist/translations/hi.js +1 -1
  59. package/dist/translations/hi.umd.js +1 -1
  60. package/dist/translations/hr.js +1 -1
  61. package/dist/translations/hr.umd.js +1 -1
  62. package/dist/translations/hu.js +1 -1
  63. package/dist/translations/hu.umd.js +1 -1
  64. package/dist/translations/hy.js +1 -1
  65. package/dist/translations/hy.umd.js +1 -1
  66. package/dist/translations/id.js +1 -1
  67. package/dist/translations/id.umd.js +1 -1
  68. package/dist/translations/it.js +1 -1
  69. package/dist/translations/it.umd.js +1 -1
  70. package/dist/translations/ja.js +1 -1
  71. package/dist/translations/ja.umd.js +1 -1
  72. package/dist/translations/jv.js +1 -1
  73. package/dist/translations/jv.umd.js +1 -1
  74. package/dist/translations/kk.js +1 -1
  75. package/dist/translations/kk.umd.js +1 -1
  76. package/dist/translations/km.js +1 -1
  77. package/dist/translations/km.umd.js +1 -1
  78. package/dist/translations/kn.js +1 -1
  79. package/dist/translations/kn.umd.js +1 -1
  80. package/dist/translations/ko.js +1 -1
  81. package/dist/translations/ko.umd.js +1 -1
  82. package/dist/translations/ku.js +1 -1
  83. package/dist/translations/ku.umd.js +1 -1
  84. package/dist/translations/lt.js +1 -1
  85. package/dist/translations/lt.umd.js +1 -1
  86. package/dist/translations/lv.js +1 -1
  87. package/dist/translations/lv.umd.js +1 -1
  88. package/dist/translations/ms.js +1 -1
  89. package/dist/translations/ms.umd.js +1 -1
  90. package/dist/translations/nb.js +1 -1
  91. package/dist/translations/nb.umd.js +1 -1
  92. package/dist/translations/ne.js +1 -1
  93. package/dist/translations/ne.umd.js +1 -1
  94. package/dist/translations/nl.js +1 -1
  95. package/dist/translations/nl.umd.js +1 -1
  96. package/dist/translations/no.js +1 -1
  97. package/dist/translations/no.umd.js +1 -1
  98. package/dist/translations/oc.js +1 -1
  99. package/dist/translations/oc.umd.js +1 -1
  100. package/dist/translations/pl.js +1 -1
  101. package/dist/translations/pl.umd.js +1 -1
  102. package/dist/translations/pt-br.js +1 -1
  103. package/dist/translations/pt-br.umd.js +1 -1
  104. package/dist/translations/pt.js +1 -1
  105. package/dist/translations/pt.umd.js +1 -1
  106. package/dist/translations/ro.js +1 -1
  107. package/dist/translations/ro.umd.js +1 -1
  108. package/dist/translations/ru.js +1 -1
  109. package/dist/translations/ru.umd.js +1 -1
  110. package/dist/translations/si.js +1 -1
  111. package/dist/translations/si.umd.js +1 -1
  112. package/dist/translations/sk.js +1 -1
  113. package/dist/translations/sk.umd.js +1 -1
  114. package/dist/translations/sl.js +1 -1
  115. package/dist/translations/sl.umd.js +1 -1
  116. package/dist/translations/sq.js +1 -1
  117. package/dist/translations/sq.umd.js +1 -1
  118. package/dist/translations/sr-latn.js +1 -1
  119. package/dist/translations/sr-latn.umd.js +1 -1
  120. package/dist/translations/sr.js +1 -1
  121. package/dist/translations/sr.umd.js +1 -1
  122. package/dist/translations/sv.js +1 -1
  123. package/dist/translations/sv.umd.js +1 -1
  124. package/dist/translations/th.js +1 -1
  125. package/dist/translations/th.umd.js +1 -1
  126. package/dist/translations/ti.js +1 -1
  127. package/dist/translations/ti.umd.js +1 -1
  128. package/dist/translations/tk.js +1 -1
  129. package/dist/translations/tk.umd.js +1 -1
  130. package/dist/translations/tr.js +1 -1
  131. package/dist/translations/tr.umd.js +1 -1
  132. package/dist/translations/tt.js +1 -1
  133. package/dist/translations/tt.umd.js +1 -1
  134. package/dist/translations/ug.js +1 -1
  135. package/dist/translations/ug.umd.js +1 -1
  136. package/dist/translations/uk.js +1 -1
  137. package/dist/translations/uk.umd.js +1 -1
  138. package/dist/translations/ur.js +1 -1
  139. package/dist/translations/ur.umd.js +1 -1
  140. package/dist/translations/uz.js +1 -1
  141. package/dist/translations/uz.umd.js +1 -1
  142. package/dist/translations/vi.js +1 -1
  143. package/dist/translations/vi.umd.js +1 -1
  144. package/dist/translations/zh-cn.js +1 -1
  145. package/dist/translations/zh-cn.umd.js +1 -1
  146. package/dist/translations/zh.js +1 -1
  147. package/dist/translations/zh.umd.js +1 -1
  148. package/package.json +25 -25
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x43109b,Plugin as _0x372529,PendingActions as _0x457507}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x1b50ae,Annotations as _0x4c07fe,EditorAnnotations as _0x510385,Comments as _0x10d661}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0xa37ad8,ObservableMixin as _0x3d4f99,uid as _0x103bb9,priorities as _0x1074f0,insertToPriorityArray as _0x4718f7,logWarning as _0x329fd4,getEnvKeystrokeText as _0x106db3,FocusTracker as _0x5e3e85,KeystrokeHandler as _0x57f125,Collection as _0x7d90ad}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4cf0c3,IconCancel as _0x57c5e5,IconTrackChanges as _0x29a29a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x4b0c46,View as _0x4e3494,ViewCollection as _0x1b8b44,FocusCycler as _0x4ad6de,UIModel as _0x11033b,createDropdown as _0x3ada1f,SplitButtonView as _0x55e7e9,addListToDropdown as _0x2fe2f3,MenuBarMenuView as _0x4b4306,MenuBarMenuListView as _0x53deca,ListSeparatorView as _0x27407b,MenuBarMenuListItemView as _0x48e305,MenuBarMenuListItemButtonView as _0x4b4270,BodyCollection as _0x4f68d1,Dialog as _0xd987bd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x4a9b4b,SuggestionsConversion as _0x54fb01,Users as _0x574963,DocumentCompare as _0xea4cf3,fixElementSuggestionRange as _0x34d52d,hashObject as _0x4b85e2,surroundingMarkersDetector as _0x2c8291,FOCUS_ANNOTATION_KEYSTROKE as _0xbe4ea3,AriaDescriptionView as _0x5d9930,setupThreadKeyboardNavigation as _0x5e5a7e,trimHtml as _0x48d7d1,UserView as _0x2809de,LateFocusButtonView as _0x4bcfd6,getDateTimeFormatter as _0x365fcd,getAllMarkersDomElementsSorted as _0x2e829b,sanitizeEditorConfig as _0x416994}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x6a20f2,ModelLiveRange as _0xb14de3,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class ht extends _0x43109b{['_enabledCommands'];constructor(_0x54fecf,_0x15d9d5){super(_0x54fecf),this['_enabledCommands']=_0x15d9d5,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 _0x33f819 of this['editor']['commands']['commands']())_0x33f819['affectsData']&&!this['_enabledCommands']['has'](_0x33f819)&&_0x33f819['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xc7d2e4 of this['editor']['commands']['commands']())_0xc7d2e4['affectsData']&&!this['_enabledCommands']['has'](_0xc7d2e4)&&_0xc7d2e4['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x43109b{['_suggestions'];constructor(_0xec146e,_0x42c728){super(_0xec146e),this['_suggestions']=_0x42c728,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x26c75e){const _0x525940=this['_suggestions']['get'](_0x26c75e);if(!_0x525940)throw new _0xa37ad8('track-changes-accept-suggestion-not-found',this);const _0x534c6b=_0x525940['getRanges']();this['editor']['model']['canEditAt'](_0x534c6b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x525940);}}class ft extends _0x43109b{['_suggestions'];constructor(_0x3eae08,_0x4131b2){super(_0x3eae08),this['_suggestions']=_0x4131b2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5a8aa7){const _0x4ae088=this['_suggestions']['get'](_0x5a8aa7);if(!_0x4ae088)throw new _0xa37ad8('track-changes-discard-suggestion-not-found',this);const _0x4004c5=_0x4ae088['getRanges']();this['editor']['model']['canEditAt'](_0x4004c5)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4ae088);}}function gt(_0x2b8205,_0x17a756){let _0x5d3a72='';return _0x5d3a72+=_0x2b8205['split']('*')['map']((_0x466e1d,_0x52aad3)=>_0x52aad3%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x466e1d)+'</span>':mt(_0x466e1d))['join'](''),_0x17a756&&(_0x5d3a72+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x17a756['value']+'\x22\x20title=\x22'+_0x17a756['title']+'\x22></span>'),_0x5d3a72;}function mt(_0x3fe0d0){const _0x3c5040=document['createElement']('span');return _0x3c5040['innerText']=_0x3fe0d0,_0x3c5040['innerHTML'];}function Et(_0x17fdae){return _0x17fdae['sort']((_0xa23d00,_0x3c9ef6)=>'attribute'===_0xa23d00['type']&&'attribute'!==_0x3c9ef6['type']?-0x1:'attribute'!==_0xa23d00['type']&&'attribute'===_0x3c9ef6['type']?0x1:'deletion'==_0xa23d00['type']&&'deletion'!=_0x3c9ef6['type']?-0x1:'deletion'!=_0xa23d00['type']&&'deletion'==_0x3c9ef6['type']?0x1:0x0);}function Tt(_0x2cb12b,_0x5cc6ce){let _0x279194,_0x1beee9=0x0;const _0x4ebbe0=[],_0x174b8c=_0x5cc6ce['schema'];for(;_0x1beee9<_0x2cb12b['length'];){const _0x3a7e33=_0x2cb12b[_0x1beee9],_0x8501d4=_0x2cb12b[_0x1beee9+0x1];_0x279194||(_0x279194=_0x5cc6ce['createPositionBefore'](_0x3a7e33)),_t(_0x5cc6ce,_0x3a7e33,_0x8501d4)||(_0x4ebbe0['push'](_0x5cc6ce['createRange'](_0x279194,_0x174b8c['isObject'](_0x3a7e33)?_0x5cc6ce['createPositionAfter'](_0x3a7e33):_0x5cc6ce['createPositionAt'](_0x3a7e33,'end'))),_0x279194=null),_0x1beee9++;}return _0x4ebbe0;}function _t(_0x3aeda6,_0x2fa78c,_0x481e4a){if(!_0x481e4a)return!0x1;const _0x1b6f9d=_0x3aeda6['createPositionAfter'](_0x2fa78c),_0x537313=_0x3aeda6['createPositionBefore'](_0x481e4a);return _0x1b6f9d['isTouching'](_0x537313);}function pt(_0x5c5152,_0x143ec9,_0x3b195c){for(;_0x3b195c['length'];){const _0x235f35=_0x3b195c['splice'](0x0,0x64);_0x5c5152['change'](()=>{for(const _0x3da355 of _0x235f35)_0x3da355['isInContent']&&_0x143ec9['execute'](_0x3da355['id']);});}}class Lt extends _0x43109b{['_command'];['_suggestions'];constructor(_0x2c3ac4,_0x5eead5,_0x1bd894){super(_0x2c3ac4),this['_command']=_0x5eead5,this['_suggestions']=_0x1bd894,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x553881=Array['from'](this['_suggestions']['values']())['some'](_0x47764d=>_0x47764d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x553881;}['execute'](){const _0x19b30f=Et(Array['from'](this['_suggestions']['values']()));for(const _0x3ab326 of _0x19b30f){const _0x281eea=_0x3ab326['getRanges']();if(!this['editor']['model']['canEditAt'](_0x281eea))return;}pt(this['editor']['model'],this['_command'],_0x19b30f);}}class It extends _0x43109b{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1a33c2,_0x719678,_0x5800d7){super(_0x1a33c2),this['_command']=_0x719678,this['_suggestions']=_0x5800d7,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5b9bf8=this['editor']['model']['document']['selection'],_0x387746=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x25ace8,_0x20cbe7){const _0x538444=Array['from'](_0x25ace8['getRanges']()),_0x7fe565=new Set();for(const _0x285b9b of _0x20cbe7)if(_0x285b9b['isInContent']){for(const _0x555613 of _0x538444)for(const _0x2dc9c0 of _0x285b9b['getRanges']())(_0x555613['isIntersecting'](_0x2dc9c0)||_0x25ace8['isCollapsed']&&!_0x285b9b['isMultiRange']&&_0x285b9b['next']&&_0x2dc9c0['end']['isTouching'](_0x555613['start']))&&_0x7fe565['add'](_0x285b9b);}return _0x7fe565;}(_0x5b9bf8,_0x387746),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4c11c9=Et(Array['from'](this['_selectedSuggestions']));for(const _0xa1139d of _0x4c11c9){const _0xc551f4=_0xa1139d['getRanges']();if(!this['editor']['model']['canEditAt'](_0xc551f4))return;}pt(this['editor']['model'],this['_command'],_0x4c11c9);}}class bt extends/* #__PURE__ -- @preserve */
24
- _0x3d4f99(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x65d676,_0x6bdf7){super(),this['id']=_0x6bdf7['id'],this['type']=_0x6bdf7['type'],this['subType']=_0x6bdf7['subType']||null,this['author']=_0x6bdf7['author'],this['creator']=_0x6bdf7['creator']||_0x6bdf7['author'],this['isExternal']=Boolean(_0x6bdf7['attributes']&&_0x6bdf7['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x6bdf7['originalSuggestionId']||null,this['_model']=_0x65d676,this['_onAccept']=_0x6bdf7['onAccept'],this['_onDiscard']=_0x6bdf7['onDiscard'],this['_onAttributesChange']=_0x6bdf7['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x6bdf7['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x45a92a=this;for(;_0x45a92a['previous'];)_0x45a92a=_0x45a92a['previous'];return _0x45a92a;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x871ed2){this['_markerNames']['add'](_0x871ed2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5ae702=>this['_model']['markers']['get'](_0x5ae702))['filter'](_0x203b90=>_0x203b90);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4da0ac=>{for(const _0x35871e of this['getMarkers']())_0x4da0ac['removeMarker'](_0x35871e);}),this['_markerNames']['clear']();}['removeMarker'](_0x4bf52){this['_model']['change'](_0x2f317b=>{_0x2f317b['removeMarker'](_0x4bf52);}),this['_markerNames']['delete'](_0x4bf52);}['addRange'](_0x1c044b){const _0xf15a87='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0xf15a87),this['_model']['change'](_0x1faa8b=>{_0x1faa8b['addMarker'](_0xf15a87,{'range':_0x1c044b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x16dd10){for(const _0x585c21 of this['getRanges']())if(_0x585c21['isIntersecting'](_0x16dd10))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4387a7=>_0x4387a7['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3b9d0e,_0x216b78)=>[..._0x3b9d0e,..._0x216b78['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x426fab=this['getRanges']();if(0x1!=_0x426fab['length'])return null;const _0x9a0222=_0x426fab[0x0],_0x8e743e=_0x9a0222['start']['nodeAfter'],_0x66c59e=_0x9a0222['end']['nodeBefore'];return _0x8e743e instanceof _0x6a20f2?_0x8e743e!=_0x66c59e?null:_0x8e743e: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 _0x326cce=[];let _0x261d05=this['head'];for(;_0x261d05;)_0x326cce['push'](_0x261d05),_0x261d05=_0x261d05['next'];return _0x326cce;}['setAttribute'](_0x50093c,_0x252614){const _0x5c8ec5=nt(this['attributes']);it(_0x5c8ec5,_0x50093c,_0x252614),st(_0x5c8ec5,this['attributes'])||(this['attributes']=_0x5c8ec5,this['_onAttributesChange'](_0x5c8ec5));}['removeAttribute'](_0x240cb2){const _0x3ebfa1=nt(this['attributes']);rt(_0x3ebfa1,_0x240cb2),st(_0x3ebfa1,this['attributes'])||(this['attributes']=_0x3ebfa1,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 _0x103bb9()['substr'](0x1,0x5);}}function At(_0x3df8b5,_0x15a81,_0x2d66ad){const _0x46a9c2=_0x3df8b5['t'],t=_0x3df8b5['t'];switch(_0x15a81){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',_0x2d66ad);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2d66ad);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2d66ad);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2d66ad);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2d66ad);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',_0x2d66ad);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2d66ad);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',_0x2d66ad);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2d66ad);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2d66ad);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2d66ad);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2d66ad);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2d66ad);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2d66ad);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2d66ad);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2d66ad);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2d66ad);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2d66ad);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2d66ad);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2d66ad);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2d66ad);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2d66ad);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2d66ad);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2d66ad);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2d66ad);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'},_0x2d66ad);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2d66ad);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2d66ad);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2d66ad);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2d66ad);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2d66ad);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2d66ad);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2d66ad);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x2d66ad);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2d66ad);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2d66ad);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2d66ad);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2d66ad);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'},_0x2d66ad);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2d66ad);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'},_0x2d66ad);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_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'},_0x2d66ad);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2d66ad);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'},_0x2d66ad);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2d66ad);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'},_0x2d66ad);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2d66ad);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2d66ad);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2d66ad);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2d66ad);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2d66ad);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'},_0x2d66ad);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2d66ad);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x46a9c2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2d66ad);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x46a9c2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2d66ad);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2d66ad);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'},_0x2d66ad);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'},_0x2d66ad);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'},_0x2d66ad);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x15a81;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x121818,_0x49e1b3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x121818,this['_locale']=_0x49e1b3;}['getDescriptions'](_0x4f76fb){const _0x3461eb=[],_0xca7be1=new Set(),_0x15a84b=new Set();for(let _0x3cc79b=0x0;_0x3cc79b<_0x4f76fb['length'];_0x3cc79b++){const _0x4be819=_0x4f76fb[_0x3cc79b];if(!_0x4be819['isInContent'])continue;const _0x2e7d2c=this['_handleCustomCallbackDescription'](_0x4be819);if(_0x2e7d2c){if(null!=_0x4be819['subType']){if(_0xca7be1['has'](_0x4be819['subType']))continue;_0xca7be1['add'](_0x4be819['subType']);}_0x3461eb['push'](_0x2e7d2c);}else{if('attribute'==_0x4be819['type']){const _0x4f50a6=_0x4be819['data']['key'];if(_0x15a84b['has'](_0x4f50a6))continue;_0x15a84b['add'](_0x4be819['data']['key']),_0x4f50a6==Ke?this['_handleRenameSuggestionDescription'](_0x3461eb,_0x4be819):this['_handleAttributeSuggestionDescription'](_0x3461eb,_0x4be819);continue;}'insertion'!=_0x4be819['type']&&'deletion'!=_0x4be819['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3461eb,_0x4be819,_0x4f76fb[_0x3cc79b+0x1]);}}return this['_resolveDescriptionItems'](_0x3461eb);}['registerDescriptionCallback'](_0x6022ea){this['_customCallbacks']['push'](_0x6022ea);}['registerElementLabel'](_0x550d0c,_0xf824e6,_0x6edad4=_0x1074f0['normal']){'function'==typeof _0x550d0c?_0x4718f7(this['_itemLabelsCallbacks'],{'matchingCallback':_0x550d0c,'label':_0xf824e6,'priority':_0x6edad4}):this['_itemLabels']['set'](_0x550d0c,_0xf824e6);}['registerAttributeLabel'](_0x27f4f1,_0x199b81){this['_attributeLabels']['set'](_0x27f4f1,_0x199b81);}['getItemLabel'](_0x40190f,_0x3e2a1f=0x1){let _0x434c5a;for(const _0x5450c1 of this['_itemLabelsCallbacks'])if(_0x5450c1['matchingCallback'](_0x40190f)){_0x434c5a=_0x5450c1['label'];break;}return _0x434c5a||(_0x434c5a=this['_itemLabels']['get'](_0x40190f['name'])),_0x434c5a?_0x434c5a(_0x3e2a1f):0x1!==_0x3e2a1f?_0x3e2a1f+'\x20'+_0x40190f['name']+'s':''+_0x40190f['name'];}['_addDescriptionItems'](_0x3d1b5c,_0x31b014){const _0x3bab82=_0x31b014['getFirstRange']()['getWalker'](),_0xafe63c='insertion'==_0x31b014['type']?'add':'remove';for(const _0x2ad088 of _0x3bab82){const _0x4d2f9e=_0x2ad088['item'],_0x5b40b2=_0x3d1b5c[_0x3d1b5c['length']-0x1];if(_0x4d2f9e['is']('$textProxy'))_0x5b40b2&&_0x5b40b2['type']['indexOf']('Container')>-0x1&&_0x3d1b5c['pop'](),_0x5b40b2&&'text'==_0x5b40b2['type']?_0x5b40b2[_0xafe63c]+=_0x4d2f9e['data']:_0x3d1b5c['push']({'type':'text','add':'add'==_0xafe63c?_0x4d2f9e['data']:'','remove':'remove'==_0xafe63c?_0x4d2f9e['data']:''});else{if(this['_schema']['isObject'](_0x4d2f9e)){const _0x8ed9c7=_0x4d2f9e;if(_0x5b40b2&&_0x5b40b2['type']['indexOf']('Container')>-0x1&&_0x3d1b5c['pop'](),'elementEnd'==_0x2ad088['type'])continue;_0x5b40b2&&_0x5b40b2['type']==_0xafe63c+'Object'&&_0x5b40b2['element']['name']==_0x8ed9c7['name']?_0x5b40b2['quantity']++:_0x3d1b5c['push']({'type':_0xafe63c+'Object','element':_0x8ed9c7,'quantity':0x1}),_0x3bab82['skip'](_0x4a7645=>!('elementEnd'==_0x4a7645['type']&&_0x4a7645['item']==_0x4d2f9e));}else{if(this['_schema']['checkChild'](_0x4d2f9e,'$text')||_0x4d2f9e['is']('element','softBreak')){const _0x3b03c3=_0x4d2f9e;if('add'==_0xafe63c&&'elementStart'==_0x2ad088['type']||'remove'==_0xafe63c&&'elementEnd'==_0x2ad088['type'])continue;if(_0x5b40b2&&-0x1==_0x5b40b2['type']['indexOf']('Container')){'text'==_0x5b40b2['type']&&(_0x5b40b2[_0xafe63c]+='\x0a');continue;}let _0x1c4508;if(_0x1c4508='add'==_0xafe63c?_0x3b03c3['nextSibling']&&!this['_schema']['isObject'](_0x3b03c3['nextSibling'])?_0x3b03c3['nextSibling']:null:_0x3b03c3['previousSibling']&&!this['_schema']['isObject'](_0x3b03c3['previousSibling'])?_0x3b03c3['previousSibling']:null,_0x3b03c3['isEmpty']||_0x1c4508&&_0x1c4508['isEmpty']){const _0x5d8b0c=_0x1c4508&&_0x1c4508['isEmpty']?_0x1c4508:_0x3b03c3;_0x5b40b2&&_0x5b40b2['type']==_0xafe63c+'EmptyContainer'&&_0x5b40b2['element']['name']==_0x5d8b0c['name']?_0x5b40b2['quantity']++:_0x3d1b5c['push']({'type':_0xafe63c+'EmptyContainer','element':_0x5d8b0c,'quantity':0x1});}else _0x3d1b5c['push']({'type':_0xafe63c+'Container','element':_0x3b03c3});}}}}}['_resolveDescriptionItems'](_0x28f275){const _0x3c0150=this['_locale'],_0x38fab2=[],_0x37e74c=[],_0x54612e=[];for(const _0x50088f of _0x28f275)switch(_0x50088f['type']){case'text':if(_0x50088f['add']=_0x50088f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x50088f['remove']=_0x50088f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x50088f['add']&&''!=_0x50088f['remove']){_0x38fab2['push']({'type':'replace','content':At(_0x3c0150,'REPLACE_TEXT',['\x22'+_0x50088f['remove']+'\x22','\x22'+_0x50088f['add']+'\x22'])});continue;}if(null!=_0x50088f['add']['match'](/^ +$/)){_0x38fab2['push']({'type':'insertion','content':At(_0x3c0150,'*Insert:*\x20%0',At(_0x3c0150,'ELEMENT_SPACE',_0x50088f['add']['length']))});continue;}if(null!=_0x50088f['remove']['match'](/^ +$/)){_0x38fab2['push']({'type':'deletion','content':At(_0x3c0150,'*Remove:*\x20%0',At(_0x3c0150,'ELEMENT_SPACE',_0x50088f['remove']['length']))});continue;}if(''!=_0x50088f['add']){_0x38fab2['push']({'type':'insertion','content':At(_0x3c0150,'*Insert:*\x20%0','\x22'+_0x50088f['add']+'\x22')});continue;}_0x38fab2['push']({'type':'deletion','content':At(_0x3c0150,'*Remove:*\x20%0','\x22'+_0x50088f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x38fab2['push']({'type':'insertion','content':At(_0x3c0150,'*Insert:*\x20%0',this['getItemLabel'](_0x50088f['element'],_0x50088f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x38fab2['push']({'type':'deletion','content':At(_0x3c0150,'*Remove:*\x20%0',this['getItemLabel'](_0x50088f['element'],_0x50088f['quantity']))});continue;case'addContainer':_0x38fab2['push']({'type':'insertion','content':At(_0x3c0150,'*Split:*\x20%0',this['getItemLabel'](_0x50088f['element'],_0x50088f['quantity']))});continue;case'removeContainer':_0x38fab2['push']({'type':'deletion','content':At(_0x3c0150,'*Merge:*\x20%0',this['getItemLabel'](_0x50088f['element'],_0x50088f['quantity']))});continue;case'addFormat':_0x37e74c['push'](_0x50088f['key']);continue;case'removeFormat':_0x54612e['push'](_0x50088f['key']);continue;default:_0x38fab2['push'](_0x50088f);}if(_0x37e74c['length']){const _0xaf56a=_0x37e74c['map'](_0x3cce7e=>this['_attributeLabels']['has'](_0x3cce7e)?this['_attributeLabels']['get'](_0x3cce7e):_0x3cce7e)['join'](',\x20');_0x38fab2['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0xaf56a)});}if(_0x54612e['length']){const _0x3d539c=_0x54612e['map'](_0x2969fe=>this['_attributeLabels']['has'](_0x2969fe)?this['_attributeLabels']['get'](_0x2969fe):_0x2969fe)['join'](',\x20');_0x38fab2['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x3d539c)});}return _0x38fab2;}['_handleCustomCallbackDescription'](_0x2e174c){for(const _0x534a60 of this['_customCallbacks']){const _0x1d0e65=_0x534a60(_0x2e174c);if(_0x1d0e65&&'type'in _0x1d0e65)return _0x1d0e65;}}['_handleAttributeSuggestionDescription'](_0x5beedf,_0x28f69e){const _0x298ea4=_0x28f69e['data'],_0x300c91=void 0x0===_0x298ea4['newValue']?'removeFormat':'addFormat';_0x5beedf['push']({'type':_0x300c91,'key':_0x298ea4['key']});}['_handleRenameSuggestionDescription'](_0x16675a,_0x109344){_0x16675a['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x109344['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2e9d0a,_0x4661c1,_0xfeec0d){if(this['_addDescriptionItems'](_0x2e9d0a,_0x4661c1),_0xfeec0d&&_0xfeec0d['getFirstRange']()&&!_0x4661c1['getFirstRange']()['end']['isEqual'](_0xfeec0d['getFirstRange']()['start'])){const _0x3eafc1=_0x2e9d0a[_0x2e9d0a['length']-0x1],_0x21bf8e='insertion'==_0x4661c1['type']?'add':'remove';_0x3eafc1&&'text'==_0x3eafc1['type']&&(_0x3eafc1[_0x21bf8e]+='\x0a');}}}class Ct extends _0x372529{['afterInit'](){const _0xad2fe6=this['editor'],_0x5cde83=_0xad2fe6['plugins']['get']('TrackChangesEditing');_0xad2fe6['commands']['get']('showAIAssistant')&&_0x5cde83['enableCommand']('showAIAssistant');}}class yt extends _0x372529{['afterInit'](){const _0x576608=this['editor'],_0x2c323b=_0x576608['plugins']['get']('TrackChangesEditing');_0x576608['commands']['get']('toggleAi')&&_0x2c323b['enableCommand']('toggleAi');}}class Nt extends _0x372529{['afterInit'](){const _0x2dd18f=this['editor'],_0x5c865c=_0x2dd18f['plugins']['get']('TrackChangesEditing');_0x2dd18f['commands']['get']('aiQuickAction')&&_0x5c865c['enableCommand']('aiQuickAction');}}class Rt extends _0x372529{['afterInit'](){const _0x58d02c=this['editor'],_0x4ed7c8=_0x58d02c['locale'];if(!_0x58d02c['plugins']['has']('AlignmentEditing'))return;const _0x3a5c82=_0x58d02c['plugins']['get']('TrackChangesEditing');_0x3a5c82['enableDefaultAttributesIntegration']('alignment'),_0x3a5c82['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x4ed7c8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x442cb9=this['editor'],_0x5ae440=_0x442cb9['locale'];_0x442cb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5469a4=>{if('formatBlock'!=_0x5469a4['type'])return;const {data:_0x1ddb7a}=_0x5469a4;if(_0x1ddb7a&&'alignment'==_0x1ddb7a['commandName']){const _0x37564e=_0x1ddb7a['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x5ae440,'*Format:*\x20%0',function(_0x25d3e0){switch(_0x25d3e0){case'left':return At(_0x5ae440,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x5ae440,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x5ae440,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x5ae440,'FORMAT_JUSTIFY_TEXT');}}(_0x37564e))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x372529{['afterInit'](){const _0x4acf1e=this['editor'],_0x5dceb9=_0x4acf1e['plugins']['get']('TrackChangesEditing'),_0xa16ec7=_0x4acf1e['locale'];for(const _0x12fb9a of St){if(!_0x4acf1e['plugins']['has'](_0x12fb9a))continue;const _0x85a0cd=_0x12fb9a['slice'](0x0,-0x7)['toLowerCase'](),_0x35c4e2='FORMAT_'+_0x85a0cd['toUpperCase']();_0x5dceb9['enableDefaultAttributesIntegration'](_0x85a0cd),_0x5dceb9['descriptionFactory']['registerAttributeLabel'](_0x85a0cd,At(_0xa16ec7,_0x35c4e2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dc72f=this['editor'],_0x3ffe6=_0x5dc72f['locale'],_0x50b86a=_0x5dc72f['plugins']['get']('TrackChangesEditing');function _0x1a2611(_0x583dab,_0x1b7a45){_0x50b86a['descriptionFactory']['registerDescriptionCallback'](_0x3b94e5=>{if('formatInline'!=_0x3b94e5['type'])return;const {data:_0x431452}=_0x3b94e5;return _0x431452&&_0x431452['commandName']===_0x583dab?_0x431452['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x3ffe6,'*Format:*\x20%0',_0x1b7a45)}:{'type':'format','content':At(_0x3ffe6,'*Remove\x20format:*\x20%0',_0x1b7a45)}:void 0x0;});}_0x1a2611('bold',At(_0x3ffe6,'FORMAT_BOLD')),_0x1a2611('italic',At(_0x3ffe6,'FORMAT_ITALIC')),_0x1a2611('underline',At(_0x3ffe6,'FORMAT_UNDERLINE')),_0x1a2611('code',At(_0x3ffe6,'FORMAT_CODE')),_0x1a2611('strikethrough',At(_0x3ffe6,'FORMAT_STRIKETHROUGH')),_0x1a2611('subscript',At(_0x3ffe6,'FORMAT_SUBSCRIPT')),_0x1a2611('superscript',At(_0x3ffe6,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x372529{['afterInit'](){const _0x50d2be=this['editor'],_0x2617fc=_0x50d2be['locale'];if(!_0x50d2be['plugins']['has']('BlockQuoteEditing'))return;const _0x44c399=_0x50d2be['plugins']['get']('TrackChangesEditing'),_0x4b6408=this['editor']['commands']['get']('blockQuote');_0x44c399['enableCommand']('blockQuote',(_0x1c59d0,_0x311c69={})=>{const _0x43af32=this['editor']['model']['document']['selection'],_0x35ec15=_0x311c69&&void 0x0!==_0x311c69['forceValue']?_0x311c69['forceValue']:!_0x4b6408['value'];let _0x9810d6=[];if(_0x35ec15){const _0x29aeb5=Array['from'](_0x43af32['getSelectedBlocks']())['filter'](_0x1aa391=>wt(_0x1aa391)||function(_0x1bbe77,_0x1ce8ab){const _0x4c3bdf=_0x1ce8ab['checkChild'](_0x1bbe77['parent'],'blockQuote'),_0x349e93=_0x1ce8ab['checkChild'](['$root','blockQuote'],_0x1bbe77);return _0x4c3bdf&&_0x349e93;}(_0x1aa391,this['editor']['model']['schema']));_0x9810d6=Tt(_0x29aeb5,_0x50d2be['model']);}else{const _0x113ba6=Array['from'](_0x43af32['getSelectedBlocks']())['filter'](_0x4a564d=>wt(_0x4a564d));_0x9810d6=Tt(_0x113ba6,_0x50d2be['model']);}_0x50d2be['model']['change'](()=>{for(const _0x48c1a6 of _0x9810d6)_0x44c399['markBlockFormat'](_0x48c1a6,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x35ec15}]});});}),_0x44c399['descriptionFactory']['registerDescriptionCallback'](_0x3e9eb2=>{const {data:_0x3a68d4}=_0x3e9eb2;if(_0x3a68d4&&'blockQuote'==_0x3a68d4['commandName']){const _0x4174e9=At(_0x2617fc,'ELEMENT_BLOCK_QUOTE');return _0x3a68d4['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x2617fc,'*Set\x20format:*\x20%0',_0x4174e9)}:{'type':'format','content':At(_0x2617fc,'*Remove\x20format:*\x20%0',_0x4174e9)};}});}}function wt(_0x371cf5){return'blockQuote'==_0x371cf5['parent']['name'];}class Bt extends _0x372529{['afterInit'](){const _0x3ba47b=this['editor'],_0x3cae29=_0x3ba47b['locale'],_0x145878=_0x3ba47b['plugins']['get']('TrackChangesEditing');_0x3ba47b['plugins']['has']('BookmarkEditing')&&(_0x145878['enableCommand']('insertBookmark'),_0x145878['enableDefaultAttributesIntegration']('updateBookmark'),_0x145878['descriptionFactory']['registerDescriptionCallback'](_0x317bb4=>{if('insertion'!=_0x317bb4['type']&&'deletion'!=_0x317bb4['type']&&'attribute'!=_0x317bb4['type'])return;const _0x365467=_0x317bb4['getContainedElement']();if(null==_0x365467)return;if(!_0x365467['is']('element','bookmark'))return;const _0x248036=_0x365467['getAttribute']('bookmarkId');if('insertion'==_0x317bb4['type'])return{'type':'insertion','content':At(_0x3cae29,'*Insert:*\x20%0','\x22'+_0x248036+'\x22\x20'+At(_0x3cae29,'ELEMENT_BOOKMARK'))};if('deletion'==_0x317bb4['type'])return{'type':'deletion','content':At(_0x3cae29,'*Remove:*\x20%0','\x22'+_0x248036+'\x22\x20'+At(_0x3cae29,'ELEMENT_BOOKMARK'))};const {data:_0x403c65}=_0x317bb4;if(!_0x403c65||'bookmarkId'!=_0x403c65['key'])return;return{'type':'format','content':At(_0x3cae29,'*Set\x20bookmark:*\x20%0','\x22'+_0x403c65['newValue']+'\x22')};}));}}class Ft extends _0x372529{['afterInit'](){const _0x328516=this['editor'];_0x328516['plugins']['has']('CaseChange')&&(_0x328516['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x328516['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x328516['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x372529{['afterInit'](){const _0x566956=this['editor'];_0x566956['commands']['get']('ckbox')&&_0x566956['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x372529{['afterInit'](){const _0x3337a2=this['editor'];if(!_0x3337a2['plugins']['has']('CodeBlock'))return;const _0x9679da=_0x3337a2['plugins']['get']('TrackChangesEditing'),_0x5efd81=_0x3337a2['locale'],_0x3a7ffc=_0x3337a2['config']['get']('codeBlock')['languages'],_0x4ccb16=_0x3337a2['commands']['get']('codeBlock');_0x9679da['enableCommand']('indentCodeBlock'),_0x9679da['enableCommand']('outdentCodeBlock'),_0x9679da['enableCommand']('codeBlock',(_0x598afb,_0x118fab={})=>{const _0x5b1d51=_0x3337a2['model'],_0x2a9a64=_0x3337a2['model']['document']['selection'],_0x1be392=_0x118fab&&void 0x0!==_0x118fab['forceValue']?_0x118fab['forceValue']:!_0x4ccb16['value'];let _0x2337c9;_0x118fab['language']||(_0x118fab['language']=_0x3a7ffc[0x0]['language']),_0x2337c9=_0x1be392?Array['from'](_0x2a9a64['getSelectedBlocks']())['filter'](_0x9dc1f5=>xt(_0x9dc1f5)||function(_0x53af36,_0x62df69){if(_0x53af36['is']('rootElement')||_0x62df69['isLimit'](_0x53af36))return!0x1;return _0x62df69['checkChild'](_0x53af36['parent'],'codeBlock');}(_0x9dc1f5,_0x5b1d51['schema'])):Array['from'](_0x2a9a64['getSelectedBlocks']())['filter'](_0x23a9e9=>xt(_0x23a9e9));const _0xb385f0=Tt(_0x2337c9,_0x5b1d51);_0x5b1d51['change'](()=>{for(const _0x179ba3 of _0xb385f0)_0x9679da['markBlockFormat'](_0x179ba3,{'commandName':'codeBlock','commandParams':[{..._0x118fab,'forceValue':_0x1be392}],'formatGroupId':'blockName'});});}),(_0x9679da['descriptionFactory']['registerElementLabel']('codeBlock',_0x8513ab=>At(_0x5efd81,'ELEMENT_CODE_BLOCK',_0x8513ab)),_0x9679da['descriptionFactory']['registerDescriptionCallback'](_0x1cc2a3=>{if('formatBlock'!=_0x1cc2a3['type'])return;const _0x361057=_0x5efd81['t'],{data:_0x20bd84}=_0x1cc2a3;if(!_0x20bd84||'codeBlock'!=_0x20bd84['commandName'])return;const _0x4675a6=_0x20bd84['commandParams'][0x0]['language'],_0x4ad1c2=_0x361057(_0x3a7ffc['find'](_0x4e37a1=>_0x4e37a1['language']===_0x4675a6)['label'])['toLowerCase']();return _0x20bd84['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5efd81,'*Set\x20format:*\x20%0',At(_0x5efd81,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4ad1c2+')')}:{'type':'format','content':At(_0x5efd81,'*Remove\x20format:*\x20%0',At(_0x5efd81,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x2e6c8a){return'codeBlock'==_0x2e6c8a['name'];}class Pt extends _0x372529{['afterInit'](){const _0xb7957e=this['editor'];if(!_0xb7957e['plugins']['has']('CommentsEditing'))return;_0xb7957e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x372529{static get['requires'](){return[at];}['init'](){const _0x5db031=this['editor'],_0x1a0f01=_0x5db031['plugins']['get']('TrackChangesEditing');_0x1a0f01['enableCommand']('delete');const _0x128998=_0x5db031['commands']['get']('deleteForward');_0x1a0f01['enableCommand']('deleteForward',(_0x30cc81,_0x58da6a={})=>{const _0xc8e29=_0x5db031['model']['createSelection'](_0x5db031['model']['document']['selection']);_0xc8e29['isCollapsed']&&_0x5db031['model']['modifySelection'](_0xc8e29,{'direction':'forward','unit':_0x58da6a['unit']});const _0x2eab56=_0xc8e29['getFirstRange'](),_0x25ce9b=_0xb14de3['fromRange'](_0x2eab56);let _0x2cadc7;_0x30cc81(_0x58da6a),_0x2cadc7='$graveyard'==_0x25ce9b['root']['rootName']?_0x5db031['model']['createRange'](_0x2eab56['start']):_0x5db031['model']['createRange'](_0x25ce9b['start'],_0x25ce9b['end']),_0x25ce9b['detach'](),_0x5db031['model']['enqueueChange'](_0x128998['buffer']['batch'],_0x9b2b43=>{_0x128998['buffer']['lock'](),_0x9b2b43['setSelection'](_0x9b2b43['createRange'](_0x2cadc7['end'])),_0x128998['buffer']['unlock']();});});}}class Gt extends _0x372529{['afterInit'](){const _0xb11d77=this['editor'];if(!_0xb11d77['plugins']['has']('ListEditing'))return;const _0x4502cb=_0xb11d77['locale'],_0x43a6a0=_0xb11d77['plugins']['get']('TrackChangesEditing'),_0x785e6e=_0xb11d77['plugins']['has']('TodoListEditing'),_0x199d98=!!_0xb11d77['config']['get']('list.multiBlock');function _0x2d5473(_0x2a0917){return{'type':'format','content':''+At(_0x4502cb,'*Set\x20format:*\x20%0',_0x2a0917)};}function _0x1df0c5(_0x2c50fc){return{'type':'format','content':''+At(_0x4502cb,'*Remove\x20format:*\x20%0',_0x2c50fc)};}_0x43a6a0['enableDefaultAttributesIntegration']('numberedList'),_0x43a6a0['enableDefaultAttributesIntegration']('bulletedList'),_0x43a6a0['enableDefaultAttributesIntegration']('customNumberedList'),_0x43a6a0['enableDefaultAttributesIntegration']('customBulletedList'),_0x43a6a0['enableDefaultAttributesIntegration']('indentList'),_0x43a6a0['enableDefaultAttributesIntegration']('outdentList'),_0x43a6a0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x43a6a0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x199d98&&(_0x43a6a0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x43a6a0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x785e6e&&(_0x43a6a0['enableDefaultAttributesIntegration']('todoList'),_0x43a6a0['enableDefaultAttributesIntegration']('checkTodoList'),_0x43a6a0['descriptionFactory']['registerDescriptionCallback'](_0x268966=>{const {data:_0x5982e6}=_0x268966;if(_0x5982e6&&'todoListChecked'==_0x5982e6['key'])return{'type':'format','content':_0x5982e6['newValue']?At(_0x4502cb,'*Check\x20item*'):At(_0x4502cb,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3db428=>{if(_0x3db428['batch']['isUndo'])return!0x1;let _0x134bb1=!0x1;const _0x52e523=_0x43a6a0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3fd580=>'todoListChecked'===_0x43a6a0['_getAttributeKey'](_0x3fd580));for(const _0x5769eb of _0x52e523){'todo'!=_0x5769eb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x43a6a0['_findSuggestions'](_0x5769eb['getFirstRange'](),'attribute')['find'](_0x3beda3=>'listType'===_0x43a6a0['_getAttributeKey'](_0x3beda3['suggestion']))||(_0x3db428['removeMarker'](_0x5769eb['getFirstMarker']()),_0x134bb1=!0x0));}return _0x134bb1;})),_0x43a6a0['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x4502cb,'FORMAT_INDENT'));const _0x19ea07={'type':'format','content':''};_0x43a6a0['descriptionFactory']['registerDescriptionCallback'](_0x1401ad=>{const {data:_0xfbf97d}=_0x1401ad;if(!_0xfbf97d||'listType'!=_0xfbf97d['key'])return;let _0x485877=_0x1401ad['head'];for(;_0x485877;){if(_0x485877['data']&&(('listStyle'==_0x485877['data']['key']||'listMarkerStyle'==_0x485877['data']['key'])&&(_0x485877['data']['newValue']&&'default'!=_0x485877['data']['newValue']||'default'!=_0x485877['data']['oldValue']&&!_0xfbf97d['newValue'])||!_0x199d98&&_0x485877['data']['key']==Ke))return _0x19ea07;_0x485877=_0x485877['next'];}if(null==_0xfbf97d['newValue'])switch(_0xfbf97d['oldValue']){case'bulleted':return _0x1df0c5(At(_0x4502cb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1df0c5(At(_0x4502cb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1df0c5(At(_0x4502cb,'ELEMENT_TODO_LIST'));}switch(_0xfbf97d['newValue']){case'bulleted':return _0x2d5473(At(_0x4502cb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2d5473(At(_0x4502cb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2d5473(At(_0x4502cb,'ELEMENT_TODO_LIST'));}}),_0x43a6a0['descriptionFactory']['registerDescriptionCallback'](_0x941d43=>{const {data:_0x298777}=_0x941d43;if(_0x298777&&'listIndent'==_0x298777['key'])return null==_0x298777['newValue']||null==_0x298777['oldValue']&&0x0==_0x298777['newValue']?_0x19ea07:void 0x0;}),_0x43a6a0['descriptionFactory']['registerDescriptionCallback'](_0x56142c=>{if('attribute'!=_0x56142c['type'])return;const {data:_0x284d93}=_0x56142c;if(!_0x284d93||'listItemId'!=_0x284d93['key'])return;const _0xe768df=Ht(_0x56142c);return'newValue'==_0xe768df?{'type':'format','content':At(_0x4502cb,'*Merge:*\x20list\x20item')}:'oldValue'==_0xe768df?{'type':'format','content':At(_0x4502cb,'*Split:*\x20list\x20item')}:_0x19ea07;}),_0xb11d77['model']['document']['registerPostFixer'](_0x268473=>this['listItemIdFixer'](_0x268473)),_0xb11d77['model']['document']['registerPostFixer'](_0x41f1b8=>this['noTrackChangesFixer'](_0x41f1b8)),_0xb11d77['model']['document']['on']('change:data',(_0xaf11dc,_0x712cf6)=>{if(_0x712cf6['isUndo']||!_0x712cf6['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x57f3e7){if(_0x57f3e7['batch']['isUndo']||!_0x57f3e7['batch']['isLocal'])return!0x1;let _0x279e5a=!0x1;const _0x378131=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4cff5f=>_0x4cff5f['data']&&'listItemId'==_0x4cff5f['data']['key'])['filter'](_0x1b8809=>_0x1b8809['data']['newValue']&&_0x1b8809['data']['oldValue']);for(const _0x420d2b of _0x378131)Ht(_0x420d2b)||(_0x57f3e7['removeMarker'](_0x420d2b['getFirstMarker']()),_0x279e5a=!0x0);return _0x279e5a;}['noTrackChangesFixer'](_0x3f5289){if(_0x3f5289['batch']['isUndo']||!_0x3f5289['batch']['isLocal'])return!0x1;const _0x211b59=this['editor']['model']['document']['differ'],_0x3c8101=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3c8101['trackChangesCommand']['value'])return!0x1;let _0x923c28=!0x1;const _0x408fe8=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x1e0a42=_0x211b59['getChanges']()['filter'](_0x242578=>'attribute'==_0x242578['type'])['filter'](_0x149631=>_0x408fe8['has'](_0x149631['attributeKey']));if(0x0==_0x1e0a42['length'])return _0x923c28;const _0x4f04ff=new Set(_0x211b59['getMarkersToAdd']()['filter'](_0x8be6ab=>{if(!_0x8be6ab['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x283fa1=_0x4a9b4b(_0x8be6ab['name'])['subType']['split']('|')[0x0];return _0x408fe8['has'](_0x283fa1);})['map'](_0x1cb886=>_0x4a9b4b(_0x1cb886['name'])['id']));for(const _0x14e5bc of _0x1e0a42){const _0x282672=_0x3c8101['_findSuggestions'](_0x14e5bc['range'],'attribute')['filter'](_0x33dc5f=>{if(_0x33dc5f['meta']['isNextTo'])return!0x1;if(_0x4f04ff['has'](_0x33dc5f['suggestion']['id']))return!0x1;const _0x58da0f=_0x3c8101['_getAttributeKey'](_0x33dc5f['suggestion']);return _0x408fe8['has'](_0x58da0f);})['map'](_0x16f734=>_0x16f734['suggestion']);if(_0x282672['length']){for(const _0x443fad of _0x282672)_0x3f5289['removeMarker'](_0x443fad['getFirstMarker']());_0x923c28=!0x0;}}return _0x923c28;}['assureChains'](){const _0x251680=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fac82=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x34a7f8;const _0x26e832=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x575c42=>{if(_0x575c42['data']['oldRange']||!_0x575c42['data']['newRange'])return null;if(!_0x575c42['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4578ec}=_0x4a9b4b(_0x575c42['name']);if(!_0x251680['hasSuggestion'](_0x4578ec))return null;const _0x46b152=_0x251680['getSuggestion'](_0x4578ec);return _0x2fac82['includes'](_0x46b152['data']['key']);})['map'](_0x2b58a9=>{const {id:_0x53d7d0}=_0x4a9b4b(_0x2b58a9['name']),_0x3befca=_0x251680['getSuggestion'](_0x53d7d0);return _0x34a7f8=_0x3befca['attributes']['groupId'],_0x3befca['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x26e832['size'])return;const _0x4277d5=_0x251680['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x552d9e=>'attribute'==_0x552d9e['type']&&_0x552d9e['data']&&_0x2fac82['includes'](_0x552d9e['data']['key'])&&_0x552d9e['attributes']['groupId']!=_0x34a7f8)['map'](_0x318c7a=>({'listItem':_0x318c7a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x318c7a['attributes']['groupId']})),_0x217482=new Set();for(const {groupId:_0x3257fb,listItem:_0x5741fd}of _0x4277d5)_0x26e832['has'](_0x5741fd)&&_0x217482['add'](_0x3257fb);for(const _0x528a96 of _0x251680['getSuggestions']())_0x217482['has'](_0x528a96['attributes']['groupId'])&&_0x528a96['setAttribute']('groupId',_0x34a7f8);}['_supportLegacySuggestions'](){const _0x370f1e=this['editor'],_0xf91ef6=_0x370f1e['locale'],_0x1e0249=_0x370f1e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1e0249['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x27cbff,_0x13a3d4){const _0xdb36e4=[];for(let _0x28d369 of _0x27cbff)_0x28d369['start']['nodeAfter']===_0x28d369['end']['parent']&&(_0x28d369=_0x370f1e['model']['createRange'](_0x370f1e['model']['createPositionAt'](_0x28d369['start']['nodeAfter'],0x0))),_0xdb36e4['push'](_0x28d369);_0x370f1e['model']['change'](_0x144f44=>{const _0xb8b81c=_0x370f1e['model']['document']['selection'],_0x1b5072=Array['from'](_0xb8b81c['getRanges']())['map'](_0x5392d2=>_0xb14de3['fromRange'](_0x5392d2));_0x144f44['setSelection'](_0xdb36e4),_0x370f1e['commands']['get'](_0x13a3d4['commandName'])['refresh'](),_0x13a3d4['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x370f1e['execute'](_0x13a3d4['commandName'],..._0x13a3d4['commandParams']),_0x144f44['setSelection'](_0x1b5072);for(const _0x4d8aa2 of _0x1b5072)_0x4d8aa2['detach']();});}),_0x1e0249['descriptionFactory']['registerElementLabel'](function(_0x2587e1){const _0xa73b02=!_0x370f1e['model']['schema']['isObject'](_0x2587e1),_0xb1c2d3=_0x2587e1['previousSibling'],_0x12148c=_0x2587e1['nextSibling'],_0x59a520=_0x2587e1['getAttribute']('listItemId'),_0x35a720=!_0xb1c2d3||_0xb1c2d3['getAttribute']('listItemId')!==_0x59a520,_0x4fcb85=!_0x12148c||_0x12148c['getAttribute']('listItemId')!==_0x59a520;return _0xa73b02&&Boolean(_0x59a520)&&_0x35a720&&_0x4fcb85;},_0x4d706c=>At(_0xf91ef6,'ELEMENT_LIST_ITEM',_0x4d706c));}['_registerLegacyDescription'](){const _0x18ae70=this['editor'],_0x7ee801=_0x18ae70['locale'];function _0x60b1b1(_0x54ea70){const _0x47907c=_0x18ae70['commands']['get']('bulletedList')['value'],_0x11f957=_0x18ae70['commands']['get']('numberedList')['value'];return'numberedList'===_0x54ea70?_0x47907c:_0x11f957;}_0x18ae70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x58fbdb){if('formatBlock'!=_0x58fbdb['type'])return;const {data:_0x52638d}=_0x58fbdb;if(!_0x52638d)return;let _0x32233e,_0x305330,_0x3d5da1,_0x1f7387;switch(_0x52638d['commandName']){case'bulletedList':_0x3d5da1=_0x52638d['commandParams'][0x0]['forceValue'],_0x1f7387=_0x60b1b1(_0x52638d['commandName']),_0x32233e=_0x3d5da1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f7387&&_0x18ae70['config']['get']('list.multiBlock')||(_0x32233e='*Change\x20to:*\x20%0'),_0x305330={'type':'format','content':At(_0x7ee801,_0x32233e,At(_0x7ee801,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3d5da1=_0x52638d['commandParams'][0x0]['forceValue'],_0x1f7387=_0x60b1b1(_0x52638d['commandName']),_0x32233e=_0x3d5da1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f7387&&_0x18ae70['config']['get']('list.multiBlock')||(_0x32233e='*Change\x20to:*\x20%0'),_0x305330={'type':'format','content':At(_0x7ee801,_0x32233e,At(_0x7ee801,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x32233e='*Indent:*\x20%0',_0x305330={'type':'format','content':At(_0x7ee801,_0x32233e,At(_0x7ee801,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x32233e=function(_0x490860){const _0x4e201b=_0x490860['getFirstRange']();let _0x4d303c=_0x4e201b['start']['nodeAfter'];for(;_0x4d303c&&_0x4e201b['containsItem'](_0x4d303c);){if(_0x4d303c['getAttribute']('listIndent')>0x0)return!0x1;_0x4d303c=_0x4d303c['nextSibling'];}return!0x0;}(_0x58fbdb)?At(_0x7ee801,'*Format:*\x20remove\x20from\x20%0',At(_0x7ee801,function(_0x14cb39){return'ELEMENT_'+_0x14cb39['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x58fbdb))):At(_0x7ee801,'*Outdent:*\x20%0',At(_0x7ee801,'ELEMENT_LIST_ITEM')),_0x305330={'type':'format','content':_0x32233e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x52638d['multipleBlocks']&&(_0x32233e='*Merge:*\x20%0',_0x305330={'type':'deletion','content':At(_0x7ee801,_0x32233e,At(_0x7ee801,'ELEMENT_LIST_ITEM'))});}return _0x305330;});}}function Ht(_0x13a425){let _0x4f4a67=_0x13a425['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4f4a67;){const _0x2ad52f=_0x4f4a67['getAttribute']('listItemId');if(!_0x2ad52f)return!0x1;if(_0x2ad52f==_0x13a425['data']['newValue'])return'newValue';if(_0x2ad52f==_0x13a425['data']['oldValue'])return'oldValue';_0x4f4a67=_0x4f4a67['previousSibling'];}return!0x1;}class $t extends _0x372529{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x58fd63=this['editor']['config']['get']('list.properties'),_0x84267f=this['editor']['plugins']['get']('TrackChangesEditing');_0x58fd63['styles']&&_0x84267f['enableDefaultAttributesIntegration']('listStyle'),_0x58fd63['reversed']&&_0x84267f['enableDefaultAttributesIntegration']('listReversed'),_0x58fd63['startIndex']&&_0x84267f['enableDefaultAttributesIntegration']('listStart');const _0x48f999={'type':'format','content':''};_0x84267f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x167824=this['editor']['locale'];_0x84267f['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x167824,'FORMAT_LIST_REVERSED')),_0x84267f['descriptionFactory']['registerDescriptionCallback'](_0x2c3404=>{const {data:_0x292ceb}=_0x2c3404;if(_0x292ceb&&'listReversed'==_0x292ceb['key'])return null==_0x292ceb['newValue']||0x0==_0x292ceb['newValue']&&null==_0x292ceb['oldValue']?_0x48f999:void 0x0;}),_0x84267f['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x167824,'FORMAT_LIST_START')),_0x84267f['descriptionFactory']['registerDescriptionCallback'](_0x20221c=>{const {data:_0x3c40e5}=_0x20221c;if(_0x3c40e5&&'listStart'==_0x3c40e5['key'])return null==_0x3c40e5['newValue']||0x1==_0x3c40e5['newValue']&&null==_0x3c40e5['oldValue']?_0x48f999:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x583509=>{if(_0x583509['batch']['isUndo'])return!0x1;let _0x529aec=!0x1;const _0x58d3bc=_0x84267f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xdfaf48=>{const _0x593254=_0x84267f['_getAttributeKey'](_0xdfaf48);return'listStart'==_0x593254||'listReversed'==_0x593254;});for(const _0x1bb0c1 of _0x58d3bc){const _0x2087f3=_0x1bb0c1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2087f3||'customNumbered'==_0x2087f3)continue;_0x84267f['_findSuggestions'](_0x1bb0c1['getFirstRange'](),'attribute')['find'](_0x29a3d6=>'listType'==_0x84267f['_getAttributeKey'](_0x29a3d6['suggestion']))||(_0x583509['removeMarker'](_0x1bb0c1['getFirstMarker']()),_0x529aec=!0x0);}return _0x529aec;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x59e97f){const _0x528c47=this['editor']['locale'],{data:_0x2ecf7a}=_0x59e97f,_0x4e06f9={'type':'format','content':''};if(!_0x2ecf7a||'listStyle'!=_0x2ecf7a['key'])return;if(!_0x2ecf7a['oldValue'])return'default'==_0x2ecf7a['newValue']?_0x4e06f9:{'type':'format','content':''+At(_0x528c47,'*Set\x20format:*\x20%0',At(_0x528c47,this['_getTranslationKeyForListStyle'](_0x2ecf7a['newValue'])))};if(!_0x2ecf7a['newValue']){if('default'==_0x2ecf7a['oldValue'])return _0x4e06f9;let _0xb6be23=_0x59e97f['head'];for(;_0xb6be23;){if(_0xb6be23['data']&&'listType'==_0xb6be23['data']['key']&&_0xb6be23['data']['newValue'])return _0x4e06f9;_0xb6be23=_0xb6be23['next'];}return{'type':'format','content':''+At(_0x528c47,'*Remove\x20format:*\x20%0',At(_0x528c47,this['_getTranslationKeyForListStyle'](_0x2ecf7a['oldValue'])))};}if('default'!=_0x2ecf7a['newValue'])return{'type':'format','content':''+At(_0x528c47,'*Set\x20format:*\x20%0',At(_0x528c47,this['_getTranslationKeyForListStyle'](_0x2ecf7a['newValue'])))};let _0x406667=_0x59e97f['head'];for(;_0x406667;){if(_0x406667['data']&&'listType'==_0x406667['data']['key']&&_0x406667['data']['newValue']&&_0x406667['data']['oldValue'])return _0x4e06f9;_0x406667=_0x406667['next'];}return{'type':'format','content':At(_0x528c47,'*Set\x20format:*\x20%0',At(_0x528c47,'ELEMENT_'+_0x59e97f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x196504=this['editor'],_0x113586=_0x196504['locale'];_0x196504['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ad25e=>{if('formatBlock'!=_0x5ad25e['type'])return;const {data:_0x1b8448}=_0x5ad25e;if(!_0x1b8448)return;let _0x29837f,_0x56151b;switch(_0x1b8448['commandName']){case'listStyle':_0x29837f='*Change\x20to:*\x20%0',_0x56151b={'type':'format','content':At(_0x113586,_0x29837f,At(_0x113586,this['_getTranslationKeyForListStyle'](_0x1b8448['commandParams'][0x0]['type'])))};break;case'listReversed':_0x29837f=_0x1b8448['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56151b={'type':'format','content':At(_0x113586,_0x29837f)};break;case'listStart':_0x29837f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56151b={'type':'format','content':At(_0x113586,_0x29837f,_0x1b8448['commandParams'][0x0]['startIndex'])};}return _0x56151b;});}['_getTranslationKeyForListStyle'](_0x45629d){return'ELEMENT_'+function(_0x3833e0){if(Wt['includes'](_0x3833e0))return'bulleted';if(Vt['includes'](_0x3833e0))return'numbered';return null;}(_0x45629d)['toUpperCase']()+'_LIST_'+_0x45629d['toUpperCase']()['replace'](/-/g,'_');}}const Wt=['disc','circle','square'],Vt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class jt extends _0x372529{['afterInit'](){const _0x51ced1=this['editor'];_0x51ced1['commands']['get']('emoji')&&_0x51ced1['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x372529{static get['requires'](){return[lt];}['init'](){const _0x403ba0=this['editor'],_0x3bc250=_0x403ba0['plugins']['get']('TrackChangesEditing'),_0x1d1349=_0x403ba0['commands']['get']('enter');_0x3bc250['enableCommand']('enter',()=>{_0x403ba0['model']['change'](_0x1a22d0=>{const _0x43d3a6=_0x403ba0['model']['document']['selection'],_0x577936=_0x43d3a6['getFirstPosition'](),_0x3543ba=_0xb14de3['fromRange'](_0x43d3a6['getFirstRange']());if(_0x1d1349['enterBlock'](_0x1a22d0)){const _0x53bb56=_0x403ba0['model']['createPositionAt'](_0x577936['parent']['nextSibling'],0x0),_0x4d97e1=_0x1a22d0['createRange'](_0x577936,_0x53bb56);_0x3bc250['markInsertion'](_0x4d97e1);}else _0x1a22d0['setSelection'](_0x1a22d0['createRange'](_0x3543ba['end']));_0x3543ba['detach'](),_0x1d1349['fire']('afterExecute',{'writer':_0x1a22d0});});});}}class Kt extends _0x372529{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x46c0df=this['editor']['plugins']['get']('TrackChangesEditing');_0x46c0df['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x46c0df['enableCommand']('findNext'),_0x46c0df['enableCommand']('findPrevious'),_0x46c0df['enableCommand']('replace'),_0x46c0df['enableCommand']('replaceAll');}['handleFindCommand'](_0x1e1e7e,_0x5817f4,_0x111e8d={}){const _0x38da6a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1e1e7e(_0x7cfa9f=>{let _0x34f0a7=('string'==typeof _0x5817f4?_0x38da6a['findByTextCallback'](_0x5817f4,_0x111e8d):_0x5817f4)(_0x7cfa9f);Array['isArray'](_0x34f0a7)&&(_0x34f0a7={'results':_0x34f0a7,'searchText':'string'==typeof _0x5817f4?_0x5817f4:''});const _0x40366b=_0x34f0a7['results']['filter'](_0x42b306=>!0x1===this['_isInDeletionRange'](_0x42b306,_0x7cfa9f['item']));return{..._0x34f0a7,'results':_0x40366b};},_0x111e8d);}['_isInDeletionRange'](_0x528886,_0x4e62f2){const _0x355b24=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e62f2,_0x528886['start']),this['editor']['model']['createPositionAt'](_0x4e62f2,_0x528886['end']));for(const _0x2a6b21 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x355b24['getIntersection'](_0x2a6b21['getRange']()))return!0x0;return!0x1;}}const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Yt extends _0x372529{['afterInit'](){const _0x1aa68e=this['editor']['locale'],_0xa3587a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5eba61,commandName:_0x41e696}of Xt)this['editor']['plugins']['has'](_0x5eba61)&&_0xa3587a['enableDefaultAttributesIntegration'](_0x41e696);_0xa3587a['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x1aa68e,'FORMAT_FONT_SIZE')),_0xa3587a['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x1aa68e,'FORMAT_FONT_FAMILY')),_0xa3587a['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x1aa68e,'FORMAT_FONT_COLOR')),_0xa3587a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x1aa68e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x352619=this['editor'],_0xf32bac=_0x352619['locale'];_0x352619['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x195808=>{const _0x481176=_0xf32bac['t'];if('formatInline'!=_0x195808['type'])return;const {data:_0x5ac80a}=_0x195808;if(null!=_0x5ac80a){if('fontSize'==_0x5ac80a['commandName']){const _0x41503a=_0x5ac80a['commandParams'][0x0]['value'];if(_0x41503a){const _0x50e02c=_0x481176(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x230ce9=>_0x230ce9['model']==_0x41503a)['title'])['toLowerCase']();return{'type':'format','content':At(_0xf32bac,'*Set\x20font\x20size:*\x20%0',_0x50e02c)};}return{'type':'format','content':At(_0xf32bac,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5ac80a['commandName']){const _0x2cdd70=_0x5ac80a['commandParams'][0x0]['value'];return _0x2cdd70?{'type':'format','content':At(_0xf32bac,'*Set\x20font\x20family:*\x20%0',_0x2cdd70)}:{'type':'format','content':At(_0xf32bac,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5ac80a['commandName']){const _0x11e413=_0x5ac80a['commandParams'][0x0]['value'];if(_0x11e413){const _0x3f446a=_0x4b0c46(this['editor']['config']['get']('fontColor.colors'))['find'](_0x575b38=>_0x575b38['model']==_0x11e413);let _0x45ae3e=_0x11e413,_0x1c138d='';return _0x3f446a&&(_0x45ae3e=_0x3f446a['label'],_0x1c138d=_0x481176(_0x45ae3e)['toLowerCase']()),{'type':'format','content':At(_0xf32bac,'*Set\x20font\x20color:*\x20%0',_0x1c138d)['trim'](),'color':{'value':_0x11e413,'title':_0x1c138d||_0x45ae3e}};}return{'type':'format','content':At(_0xf32bac,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5ac80a['commandName']){const _0x1ad404=_0x5ac80a['commandParams'][0x0]['value'];if(_0x1ad404){const _0x16fdff=_0x4b0c46(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x45b9af=>_0x45b9af['model']==_0x1ad404);let _0x46a106=_0x1ad404,_0x591b41='';return _0x16fdff&&(_0x46a106=_0x16fdff['label'],_0x591b41=_0x481176(_0x46a106)['toLowerCase']()),{'type':'format','content':At(_0xf32bac,'*Set\x20font\x20background\x20color:*\x20%0',_0x591b41)['trim'](),'color':{'value':_0x1ad404,'title':_0x591b41||_0x46a106}};}return{'type':'format','content':At(_0xf32bac,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x372529{['afterInit'](){const {plugins:_0x93d1da}=this['editor'];_0x93d1da['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x93d1da['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x14859e,plugins:_0x5a3871,commands:_0x151026}=this['editor'],_0x3e1113=_0x5a3871['get']('TrackChangesEditing');_0x151026['get']('footnotesStyle')&&_0x3e1113['enableDefaultAttributesIntegration']('footnotesStyle'),_0x151026['get']('footnotesStart')&&_0x3e1113['enableDefaultAttributesIntegration']('footnotesStart'),_0x3e1113['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x14859e,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x3e1113['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x14859e,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x186657=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x3e00fe,commands:_0x2450f9}=this['editor'];_0x2450f9['get']('insertFootnote')&&_0x186657['enableCommand']('insertFootnote'),_0x186657['descriptionFactory']['registerElementLabel']('footnoteRef',_0x44f279=>At(_0x3e00fe,'ELEMENT_FOOTNOTE_REF',_0x44f279)),_0x186657['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4ae451=>At(_0x3e00fe,'ELEMENT_FOOTNOTE_DEFINITION',_0x4ae451)),_0x186657['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x51261e=>At(_0x3e00fe,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x51261e));}}class Qt extends _0x372529{['afterInit'](){const _0x3893e5=this['editor'],_0x1204aa=_0x3893e5['plugins']['get']('TrackChangesEditing'),_0x2a0182=_0x3893e5['commands']['get']('copyFormat'),_0x1d4d78=_0x3893e5['commands']['get']('pasteFormat');_0x2a0182&&_0x1d4d78&&(_0x1204aa['enableDefaultAttributesIntegration']('pasteFormat'),_0x1204aa['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x17af72=this['editor'],_0x5c0cb8=_0x17af72['locale'];_0x17af72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f1f91=>{if('formatBlock'!=_0x4f1f91['type']&&'formatInline'!=_0x4f1f91['type'])return;const {data:_0x1c443a}=_0x4f1f91;if(_0x1c443a&&'pasteFormat'===_0x1c443a['commandName']){const _0x3edbf1=[],_0x228205=_0x1c443a['commandParams'][0x0];for(const [_0x284252,_0x1a0e37]of Object['entries'](_0x228205))_0x3edbf1['push'](Zt(_0x17af72,_0x284252,_0x1a0e37));return _0x3edbf1['length']?{'type':'format','content':At(_0x5c0cb8,'*Set\x20format\x20to:*\x20%0',_0x3edbf1['join'](',\x20'))}:{'type':'format','content':At(_0x5c0cb8,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x91020a,_0x24fb17,_0x379c47){const _0x11a338=_0x91020a['locale']['t'],_0x1fdf4a=_0x24fb17['split'](/(?=[A-Z])/)['join']('\x20'),_0xd1a693=_0x11a338(_0x1fdf4a['charAt'](0x0)['toUpperCase']()+_0x1fdf4a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x379c47)return _0xd1a693;if('fontColor'===_0x24fb17||'fontBackgroundColor'===_0x24fb17){const _0x35c8f8=_0x4b0c46(_0x91020a['config']['get']('fontColor.colors'))['find'](_0x49f742=>_0x49f742['model']==_0x379c47);return _0xd1a693+'\x20('+(_0x35c8f8?_0x11a338(_0x35c8f8['label'])['toLowerCase']():_0x379c47)+')';}if('fontSize'===_0x24fb17&&isNaN(parseFloat(_0x379c47))){const _0x58b238=_0x91020a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x91020a['config']['get']('fontSize.options'))['find'](_0x42b91e=>_0x42b91e['model']==_0x379c47);return _0xd1a693+'\x20('+(_0x58b238?_0x11a338(_0x58b238['title'])['toLowerCase']():_0x379c47)+')';}return _0xd1a693+'\x20('+_0x379c47+')';}class Jt extends _0x372529{['_headingOptions'];['afterInit'](){const _0xae40a2=this['editor'];if(!_0xae40a2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xae40a2['config']['get']('heading.options');const _0x5f1c4a=_0xae40a2['locale'],_0x38ae21=_0xae40a2['plugins']['get']('TrackChangesEditing');_0x38ae21['enableDefaultAttributesIntegration']('heading');for(const _0x4e5d7b of this['_headingOptions'])'paragraph'!=_0x4e5d7b['model']&&_0x38ae21['descriptionFactory']['registerElementLabel'](_0x4e5d7b['model'],_0x96ee06=>{const _0x3aaf54=this['_getHeadingLevel'](_0x4e5d7b['model']);return null!==_0x3aaf54?_0x1c3f6b(_0x96ee06,_0x3aaf54):_0x59c543(_0x96ee06,_0x4e5d7b['title']);});function _0x1c3f6b(_0x205154,_0x16ac74){return At(_0x5f1c4a,'ELEMENT_HEADING',[_0x205154,_0x16ac74]);}function _0x59c543(_0x4df094,_0x26c5d7){return At(_0x5f1c4a,'ELEMENT_HEADING_CUSTOM',[_0x4df094,_0x26c5d7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1df6e3=this['editor'],_0x209d7e=_0x1df6e3['locale'];function _0x5f04f7(_0x41c043,_0x1c9d1d){return At(_0x209d7e,'ELEMENT_HEADING_CUSTOM',[_0x41c043,_0x1c9d1d]);}_0x1df6e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d266b=>{if('formatBlock'!=_0x3d266b['type'])return;const {data:_0x9125de}=_0x3d266b;if(_0x9125de&&'heading'==_0x9125de['commandName']){const _0x290067=_0x9125de['commandParams'][0x0]['value'],_0x316a45=this['_getHeadingLevel'](_0x290067);if(null!==_0x316a45)return{'type':'format','content':At(_0x209d7e,'*Change\x20to:*\x20%0',(_0xc5cf4=0x1,_0x58304d=_0x316a45,At(_0x209d7e,'ELEMENT_HEADING',[_0xc5cf4,_0x58304d])))};const _0x4edaf7=this['_headingOptions']['find'](_0x6c36e7=>_0x6c36e7['model']===_0x290067)['title'];return{'type':'format','content':At(_0x209d7e,'*Change\x20to:*\x20%0',_0x5f04f7(0x1,_0x4edaf7))};}var _0xc5cf4,_0x58304d;});}['_getHeadingLevel'](_0x143696){const _0x4ab617=_0x143696['match'](/^heading(\d+)/);if(_0x4ab617)return _0x4ab617[0x1];const _0x4a06e6=this['_headingOptions']?.['find'](_0x54d1c8=>_0x54d1c8['model']==_0x143696);if(_0x4a06e6&&_0x4a06e6['view']){const _0xd3f879=_0x4a06e6['view'],_0x1dfc3c=(_0xd3f879['name']??_0xd3f879)['match'](/^h(\d+)/);if(_0x1dfc3c)return _0x1dfc3c[0x1];}return null;}}class te extends _0x372529{['afterInit'](){const _0x101d72=this['editor'];if(!_0x101d72['plugins']['has']('HighlightEditing'))return;const _0x1366fe=_0x101d72['plugins']['get']('TrackChangesEditing'),_0x547ce2=_0x101d72['locale'];_0x1366fe['enableDefaultAttributesIntegration']('highlight'),_0x1366fe['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x547ce2,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a9d8f=this['editor'],_0x4782a9=_0x2a9d8f['locale'];_0x2a9d8f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3337e0=>{if('formatInline'!=_0x3337e0['type'])return;const {data:_0x4657d9}=_0x3337e0;if(_0x4657d9&&'highlight'==_0x4657d9['commandName']){const _0x1dd10e=_0x4782a9['t'],_0x11d3ca=_0x4657d9['commandParams'][0x0]['value'];if(_0x11d3ca){const _0x4f60f8=_0x2a9d8f['config']['get']('highlight.options')['find'](_0x1150a1=>_0x1150a1['model']==_0x11d3ca),_0x40d363=_0x1dd10e(_0x4f60f8['title'])['toLowerCase']();return{'type':'format','content':At(_0x4782a9,'*Set\x20highlight:*\x20%0',_0x40d363),'color':{'value':_0x4f60f8['color'],'title':_0x4f60f8['title']}};}return{'type':'format','content':At(_0x4782a9,'*Remove\x20highlight*',At(_0x4782a9,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x372529{['afterInit'](){const _0x243b8e=this['editor'];if(!_0x243b8e['plugins']['has']('HorizontalLineEditing'))return;_0x243b8e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2a8baf=_0x243b8e['plugins']['get']('TrackChangesEditing'),_0x45e250=_0x243b8e['locale'];_0x2a8baf['descriptionFactory']['registerElementLabel']('horizontalLine',_0x7ea046=>At(_0x45e250,'ELEMENT_HORIZONTAL_LINE',_0x7ea046));}}class ne extends _0x372529{['afterInit'](){const _0x5d194b=this['editor'];if(!_0x5d194b['plugins']['has']('HtmlEmbed'))return;const _0x3dec0b=_0x5d194b['plugins']['get']('TrackChangesEditing'),_0xdf82cb=_0x5d194b['locale'];_0x3dec0b['descriptionFactory']['registerElementLabel']('rawHtml',_0x22bbc9=>At(_0xdf82cb,'ELEMENT_HTML_EMBED',_0x22bbc9)),_0x3dec0b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3dec0b['descriptionFactory']['registerDescriptionCallback'](_0x1559a4=>{if('attribute'!=_0x1559a4['type'])return;const {data:_0x1d12b6}=_0x1559a4;if(_0x1d12b6&&'value'==_0x1d12b6['key']&&_0x1559a4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x20057d=At(_0xdf82cb,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0xdf82cb,'*Change\x20%0\x20content*',_0x20057d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d37fd=this['editor'],_0x27ce55=_0x4d37fd['locale'];_0x4d37fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x358aa8=>{if('formatBlock'!=_0x358aa8['type'])return;const {data:_0x581d8e}=_0x358aa8;if(_0x581d8e&&'htmlEmbed'==_0x581d8e['commandName']){const _0x3256a7=At(_0x27ce55,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x27ce55,'*Change\x20%0\x20content*',_0x3256a7)};}});}}class ie extends _0x372529{['afterInit'](){const _0x2e53de=this['editor'];if(!_0x2e53de['plugins']['has']('ImageEditing'))return;const _0x3bac13=_0x2e53de['plugins']['get']('TrackChangesEditing'),_0x20b3d2=_0x2e53de['plugins']['get']('ImageUtils'),_0xc18524=_0x2e53de['locale'];_0x3bac13['enableCommand']('insertImage'),_0x3bac13['descriptionFactory']['registerElementLabel']('imageBlock',_0x35dbcb=>At(_0xc18524,'ELEMENT_IMAGE',_0x35dbcb)),_0x3bac13['descriptionFactory']['registerElementLabel']('imageInline',_0x31d5b2=>At(_0xc18524,'ELEMENT_INLINE_IMAGE',_0x31d5b2)),_0x3bac13['descriptionFactory']['registerElementLabel']('caption',()=>At(_0xc18524,'ELEMENT_CAPTION')),_0x2e53de['plugins']['has']('ImageUploadEditing')&&_0x3bac13['enableCommand']('uploadImage'),_0x2e53de['plugins']['has']('ImageBlockEditing')&&_0x2e53de['plugins']['has']('ImageInlineEditing')&&(_0x3bac13['enableCommand']('imageTypeInline',(_0x195720,_0xef6358)=>{const _0x52c273=_0x20b3d2['getClosestSelectedImageElement'](_0x2e53de['model']['document']['selection']);_0x2e53de['model']['change'](()=>{_0x3bac13['markBlockFormat'](_0x52c273,{'commandName':'imageTypeInline','commandParams':[_0xef6358]},[],'convertBlockImageToInline');});}),_0x3bac13['enableCommand']('imageTypeBlock',(_0x1c60a1,_0x47623b)=>{_0x2e53de['model']['change'](_0x33158c=>{let _0x4e6991=_0x20b3d2['getClosestSelectedImageElement'](_0x2e53de['model']['document']['selection']),_0x250185=_0x33158c['createRangeOn'](_0x4e6991);const _0x18a9ea=tt['fromPosition'](_0x250185['start'],'toPrevious'),_0x2b9374=tt['fromPosition'](_0x250185['end'],'toNext');_0x3bac13['forceDefaultExecution'](()=>_0x1c60a1(_0x47623b)),_0x4e6991=_0x20b3d2['getClosestSelectedImageElement'](_0x2e53de['model']['document']['selection']),_0x250185=_0x33158c['createRangeOn'](_0x4e6991);const _0x1ddb03=_0x33158c['createRange'](_0x18a9ea,_0x2b9374);_0x18a9ea['detach'](),_0x2b9374['detach'](),_0x3bac13['markBlockFormat'](_0x4e6991,{'commandName':'imageTypeInline','commandParams':[_0x47623b]},[],'convertInlineImageToBlock'),_0x1ddb03['start']['isBefore'](_0x250185['start'])&&_0x3bac13['markInsertion'](_0x33158c['createRange'](_0x1ddb03['start'],_0x250185['start']),'convertInlineImageToBlock'),_0x250185['end']['isBefore'](_0x1ddb03['end'])&&_0x3bac13['markInsertion'](_0x33158c['createRange'](_0x250185['end'],_0x1ddb03['end']),'convertInlineImageToBlock');});}),_0x3bac13['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3bac13['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3bac13['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3bac13['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3bac13['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3bac13['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3ce576])=>{const _0x33f5a8=_0x3bac13['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x17894e=_0x3ce576['start'],_0x2d80a9=_0x3ce576['end'];const _0x53fe19=_0x2e53de['model']['schema']['getNearestSelectionRange'](_0x17894e,'backward'),_0x1ecb11=_0x2e53de['model']['schema']['getNearestSelectionRange'](_0x2d80a9,'forward');_0x53fe19['isCollapsed']&&(_0x17894e=_0x53fe19['start']),_0x1ecb11['isCollapsed']&&(_0x2d80a9=_0x1ecb11['end']),_0x33f5a8([_0x2e53de['model']['createRange'](_0x17894e,_0x2d80a9)]);}),_0x3bac13['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2ad37f),_0x3bac13['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2ad37f)),_0x2e53de['plugins']['has']('ImageCaptionEditing')&&(_0x3bac13['enableCommand']('toggleImageCaption',(_0x2adb05,_0x2a261c)=>{const _0x32ec70=_0x2e53de['plugins']['get']('ImageCaptionUtils');let _0x5dcff5=_0x20b3d2['getClosestSelectedImageElement'](_0x2e53de['model']['document']['selection']),_0x1e0bb5=_0x32ec70['getCaptionFromImageModelElement'](_0x5dcff5);_0x2e53de['model']['change'](()=>{if(_0x1e0bb5)return void _0x3bac13['markDeletion'](_0x2e53de['model']['createRangeOn'](_0x1e0bb5));const _0xc7781b=_0x20b3d2['isBlockImage'](_0x5dcff5);_0x2adb05(_0x2a261c),_0x5dcff5=_0x20b3d2['getClosestSelectedImageElement'](_0x2e53de['model']['document']['selection']),_0x1e0bb5=_0x32ec70['getCaptionFromImageModelElement'](_0x5dcff5),_0x3bac13['markInsertion'](_0x2e53de['model']['createRangeOn'](_0x1e0bb5),_0xc7781b?null:'imageCaption');});}),_0x3bac13['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2ad37f));const _0x335798=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x20e594(_0x6f8748,_0x39a7a1){const _0x42f5fd=_0x335798['findIndex'](({type:_0x390932,subType:_0x38cf01})=>_0x6f8748['type']==_0x390932&&_0x6f8748['subType']==_0x38cf01),_0x44344e=_0x335798['findIndex'](({type:_0x5dca16,subType:_0xb8f10})=>_0x39a7a1['type']==_0x5dca16&&_0x39a7a1['subType']==_0xb8f10);if(_0x42f5fd<0x0||_0x44344e<0x0)return!0x1;const _0x4bdb5d=_0x6f8748['getFirstRange'](),_0x3cb49d=_0x39a7a1['getFirstRange']();if((0x0==_0x42f5fd||0x1==_0x42f5fd)&&0x2==_0x44344e&&_0x4bdb5d['isIntersecting'](_0x3cb49d))return!0x0;if(0x2==_0x42f5fd&&0x3==_0x44344e){const _0x2ce25f=_0x3bac13['_findSuggestions'](_0x4bdb5d,'insertion')['filter'](({suggestion:_0x21e379,meta:_0x5ca82e})=>_0x5ca82e['isOwn']&&'convertInlineImageToBlock'==_0x21e379['subType']);if(_0x2ce25f['length']>0x1&&_0x3cb49d['end']['isEqual'](_0x4bdb5d['start']))return!0x0;if(0x1==_0x2ce25f['length']&&(_0x4bdb5d['start']['isEqual'](_0x3cb49d['end'])||_0x4bdb5d['end']['isEqual'](_0x3cb49d['start'])))return!0x0;}if(0x3==_0x42f5fd&&0x3==_0x44344e&&_0x4bdb5d['start']['isBefore'](_0x3cb49d['start'])){const _0x5e05ea=_0x4bdb5d['end']['nodeAfter'],_0x72b59d=_0x3cb49d['start']['nodeBefore'];return _0x20b3d2['isBlockImage'](_0x5e05ea)&&_0x5e05ea===_0x72b59d;}return!0x1;}function _0x2ad37f(_0x5b38a0,_0x3981a5){return _0x20e594(_0x5b38a0,_0x3981a5)?[_0x5b38a0,_0x3981a5]:_0x20e594(_0x3981a5,_0x5b38a0)?[_0x3981a5,_0x5b38a0]:null;}_0x2e53de['plugins']['has']('ImageResize')&&(_0x3bac13['enableDefaultAttributesIntegration']('resizeImage'),_0x3bac13['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0xc18524,'FORMAT_IMAGE_SIZE'))),_0x2e53de['plugins']['has']('ImageTextAlternativeEditing')&&_0x3bac13['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2e53de['plugins']['has']('PictureEditing')&&_0x3bac13['descriptionFactory']['registerDescriptionCallback'](_0x49709e=>{if('attribute'!=_0x49709e['type'])return;const {data:_0x1e544f}=_0x49709e;return _0x1e544f&&'sources'==_0x1e544f['key']?{'type':'format','content':''}:void 0x0;}),_0x2e53de['plugins']['has']('ImageSizeAttributes')&&_0x3bac13['descriptionFactory']['registerDescriptionCallback'](_0x19008f=>{if('attribute'!=_0x19008f['type'])return;const {data:_0x173999}=_0x19008f;return!_0x173999||'width'!=_0x173999['key']&&'height'!=_0x173999['key']?void 0x0:{'type':'format','content':''};}),_0x3bac13['descriptionFactory']['registerDescriptionCallback'](_0x666a2f=>{if(!!_0x335798['find'](({type:_0x1d9ce7,subType:_0x84f5e4})=>_0x666a2f['type']==_0x1d9ce7&&_0x666a2f['subType']==_0x84f5e4))return _0x666a2f['previous']?{}:void 0x0;}),_0x3bac13['descriptionFactory']['registerDescriptionCallback'](_0x27c0d2=>{if('insertion'==_0x27c0d2['type']||'deletion'==_0x27c0d2['type']){const _0x390be7=_0x27c0d2['getContainedElement']();if(_0x390be7&&_0x390be7['is']('element','caption'))return{'type':'insertion'==_0x27c0d2['type']?'addObject':'removeObject','element':_0x390be7,'quantity':0x1};}}),_0x3bac13['descriptionFactory']['registerDescriptionCallback'](_0x5f54f8=>'formatBlock'==_0x5f54f8['type']&&'convertInlineImageToBlock'==_0x5f54f8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5f54f8['type']&&'convertBlockImageToInline'==_0x5f54f8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3bac13['descriptionFactory']['registerDescriptionCallback'](_0x3a25e2=>{if('attribute'!=_0x3a25e2['type'])return;const {data:_0x418438}=_0x3a25e2;if(!_0x418438||'alt'!=_0x418438['key'])return;const _0x5d4191=_0x418438['newValue'];return _0x5d4191?{'type':'format','content':At(_0xc18524,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5d4191+'\x22')}:{'type':'format','content':At(_0xc18524,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c265a=this['editor'],_0x4466ab=_0x3c265a['locale'];_0x3c265a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59f31c=>{if('formatBlock'!=_0x59f31c['type']&&'formatInline'!=_0x59f31c['type'])return;const {data:_0x2cb244}=_0x59f31c;if(_0x2cb244){if('imageTextAlternative'==_0x2cb244['commandName']){const _0x3fdc00=_0x2cb244['commandParams'][0x0]['newValue'];return _0x3fdc00?{'type':'format','content':At(_0x4466ab,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3fdc00+'\x22')}:{'type':'format','content':At(_0x4466ab,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2cb244['commandName']){const _0x1eed52=_0x2cb244['commandParams'][0x0]['width'];return _0x1eed52?{'type':'format','content':At(_0x4466ab,'*Set\x20image\x20width:*\x20%0',_0x1eed52)}:{'type':'format','content':At(_0x4466ab,'*Reset\x20image\x20width*')};}}});}}class se extends _0x372529{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x132159=this['editor']['locale'],_0x43885d=this['editor']['plugins']['get']('TrackChangesEditing');_0x43885d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x43885d['descriptionFactory']['registerDescriptionCallback'](_0x13863b=>{if('attribute'!=_0x13863b['type'])return;const {data:_0x30a1d0}=_0x13863b;return _0x30a1d0&&'src'==_0x30a1d0['key']?_0x30a1d0['newValue']&&_0x30a1d0['oldValue']?{'type':'format','content':At(_0x132159,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2151ed=this['editor']['plugins']['get']('TrackChangesEditing');_0x2151ed['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2151ed['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2151ed['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2151ed['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6e7158=this['editor'],_0x8db51e=_0x6e7158['locale'];_0x6e7158['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1973de=>{if('formatBlock'!=_0x1973de['type']&&'formatInline'!=_0x1973de['type'])return;const {data:_0x10cf05}=_0x1973de;if(!_0x10cf05||'replaceImageSource'!=_0x10cf05['commandName'])return;return{'type':'format','content':At(_0x8db51e,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x372529{['afterInit'](){const _0x268361=this['editor'];if(!_0x268361['plugins']['has']('ImageStyleEditing'))return;const _0x578beb=_0x268361['plugins']['get']('TrackChangesEditing'),_0x23b261=_0x268361['plugins']['get']('ImageUtils'),_0x98485a={};_0x578beb['enableCommand']('imageStyle',(_0x3df0c3,_0x6cf628)=>{const _0x20cf22=_0x268361['plugins']['get']('Users')['me'],_0x1cf80c=_0x268361['commands']['get']('imageStyle');let _0x1464af=_0x23b261['getClosestSelectedImageElement'](_0x268361['model']['document']['selection']),_0x375623=_0x268361['model']['createRangeOn'](_0x1464af),_0x41059a=_0x1cf80c['value'];if(_0x41059a==_0x6cf628['value'])return;const _0x36e078={'commandName':'imageStyle','commandParams':[_0x6cf628],'formatGroupId':_0x103bb9()};_0x268361['model']['change'](()=>{if(_0x578beb['getSuggestions']()['filter'](_0x3ed03b=>_0x3ed03b['isInContent']&&_0x20cf22==_0x3ed03b['author']&&('formatBlock'==_0x3ed03b['type']||'formatInline'==_0x3ed03b['type'])&&('imageStylePreApply'==_0x3ed03b['subType']||'imageStylePostApply'==_0x3ed03b['subType'])&&_0x3ed03b['getFirstRange']()['isEqual'](_0x375623))['forEach'](_0x5dcbe9=>_0x578beb['discardSuggestion'](_0x5dcbe9['head'])),_0x1464af=_0x23b261['getClosestSelectedImageElement'](_0x268361['model']['document']['selection']),_0x375623=_0x268361['model']['createRangeOn'](_0x1464af),_0x1cf80c['refresh'](),_0x268361['commands']['get']('imageTypeInline')['refresh'](),_0x268361['commands']['get']('imageTypeBlock')['refresh'](),_0x41059a=_0x1cf80c['value'],_0x41059a!=_0x6cf628['value'])return _0x23b261['isInlineImage'](_0x1464af)&&_0x1cf80c['shouldConvertImageType'](_0x6cf628['value'],_0x1464af)?(_0x3df0c3({..._0x6cf628,'setImageSizes':!0x1}),_0x1464af=_0x23b261['getClosestSelectedImageElement'](_0x268361['model']['document']['selection']),void _0x578beb['markBlockFormat'](_0x1464af,{..._0x36e078,'commandReversedParams':[{'value':_0x41059a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x23b261['isBlockImage'](_0x1464af)?_0x578beb['markBlockFormat'](_0x1464af,_0x36e078,[],'imageStylePostApply'):_0x578beb['markInlineFormat'](_0x375623,_0x36e078,'imageStylePostApply'));});});for(const _0x11898d of _0x268361['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x98485a[_0x11898d['name']]=_0x11898d['title']['toLowerCase']();_0x578beb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x578beb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x578beb['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x578beb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x48c90c])=>{_0x23b261['setImageNaturalSizeAttributes'](_0x48c90c['getContainedElement']());}),_0x578beb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2bca54,_0x36ef61)=>{_0x578beb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2bca54,{'commandName':_0x36ef61['commandName'],'commandParams':_0x36ef61['commandReversedParams']});}),_0x578beb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4da675,_0x128af6){if(_0x106c8f(_0x4da675,_0x128af6))return[_0x4da675,_0x128af6];if(_0x106c8f(_0x128af6,_0x4da675))return[_0x128af6,_0x4da675];return null;});const _0x4f8d2b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x106c8f(_0x160ed2,_0x1e7e11){const _0x25761b=_0x4f8d2b['findIndex'](({type:_0x4c019d,subType:_0x55aab0})=>_0x160ed2['type']==_0x4c019d&&_0x160ed2['subType']==_0x55aab0),_0x36fe34=_0x4f8d2b['findIndex'](({type:_0x463723,subType:_0x11727b})=>_0x1e7e11['type']==_0x463723&&_0x1e7e11['subType']==_0x11727b);if(_0x25761b<0x0||_0x36fe34<0x0)return!0x1;const _0x846bb6=_0x160ed2['getFirstRange'](),_0x56f7f3=_0x1e7e11['getFirstRange']();if((0x0==_0x25761b||0x1==_0x25761b)&&0x2==_0x36fe34&&_0x846bb6['isIntersecting'](_0x56f7f3))return!0x0;if(0x2==_0x25761b&&0x3==_0x36fe34){const _0x25c33f=_0x578beb['_findSuggestions'](_0x846bb6,'insertion')['filter'](({suggestion:_0x46a136,meta:_0x11511f})=>_0x11511f['isOwn']&&'convertInlineImageToBlock'==_0x46a136['subType']);if(_0x25c33f['length']>0x1&&_0x56f7f3['end']['isEqual'](_0x846bb6['start']))return!0x0;if(0x1==_0x25c33f['length']&&(_0x846bb6['start']['isEqual'](_0x56f7f3['end'])||_0x846bb6['end']['isEqual'](_0x56f7f3['start'])))return!0x0;}if(0x3==_0x25761b&&0x3==_0x36fe34&&_0x846bb6['start']['isBefore'](_0x56f7f3['start'])){const _0x4d7b0d=_0x846bb6['end']['nodeAfter'],_0x1715ae=_0x56f7f3['start']['nodeBefore'];return _0x23b261['isBlockImage'](_0x4d7b0d)&&_0x4d7b0d===_0x1715ae;}return!0x1;}_0x268361['model']['document']['registerPostFixer'](()=>{let _0x28c6e8=!0x1;const _0x5089db=Array['from'](_0x268361['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4dfd3e,data:_0x3d293e}of _0x5089db){const {group:_0x9efe6f,type:_0x50ad88,subType:_0x441336,id:_0x163d23}=_0x4a9b4b(_0x4dfd3e);if('suggestion'==_0x9efe6f&&_0x578beb['hasSuggestion'](_0x163d23)){if('formatBlock'==_0x50ad88&&('imageStylePreApply'==_0x441336||'imageStylePostApply'==_0x441336)){const _0x3e18b0=_0x578beb['getSuggestion'](_0x163d23);if(_0x3d293e['newRange']){const _0x3d6adc=_0x3e18b0['getFirstRange']()['getContainedElement']();if(_0x23b261['isBlockImage'](_0x3d6adc))continue;_0x578beb['discardSuggestion'](_0x3e18b0),_0x28c6e8=!0x0;}}if('insertion'==_0x50ad88&&'imageCaption'==_0x441336&&!_0x3d293e['newRange']){const _0x47379b=_0x578beb['getSuggestion'](_0x163d23);_0x47379b['next']&&_0x47379b['next']['isInContent']&&(_0x578beb['discardSuggestion'](_0x47379b['next']),_0x28c6e8=!0x0);}}}return _0x28c6e8;}),this['_registerLegacyDescription'](_0x98485a);}['_registerLegacyDescription'](_0x204f3c){const _0x5575ae=this['editor'],_0x148f30=_0x5575ae['locale'];_0x5575ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe47bd2=>{if('formatBlock'!=_0xe47bd2['type']&&'formatInline'!=_0xe47bd2['type'])return;const {data:_0x4fbc6a}=_0xe47bd2;if(!_0x4fbc6a||'imageStyle'!=_0x4fbc6a['commandName'])return;const _0x28ac6c=_0x4fbc6a['commandParams'][0x0]['value'];return _0x487bb3('side'===_0x28ac6c?At(_0x148f30,'FORMAT_SIDE_IMAGE'):_0x204f3c[_0x28ac6c]||_0x28ac6c);function _0x487bb3(_0x1e40b6){return{'type':'format','content':At(_0x148f30,'*Format:*\x20%0',_0x1e40b6)};}});}}class oe extends _0x372529{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5b2fcc){super(_0x5b2fcc),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x364b7e=this['editor'],_0x1cb0d4=_0x364b7e['commands']['get']('importWord'),_0x3b8865=_0x364b7e['commands']['get']('trackChanges');_0x1cb0d4&&(_0x1cb0d4['on']('execute',(_0x2347cf,[,_0x292a8b])=>{this['_trackChangesValueDuringImport']=_0x3b8865['value'],_0x292a8b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1cb0d4,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1cb0d4,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3b8865['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x364b7e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4d1391,_0x36b389){const {suggestions:_0x195242}=_0x36b389,_0x3681c2=this['editor']['commands']['get']('trackChanges'),_0x54d0c4=_0x3681c2['value'];this['_trackChangesValueDuringImport']!==_0x54d0c4&&(_0x3681c2['execute'](),this['_trackChangesExecuted']=!0x0),_0x195242&&_0x195242['forEach'](({id:_0x214353,type:_0x11a818,author:_0x543b02,created_at:_0x958e8})=>{const _0x3a8275={'id':_0x214353,'type':_0x11a818,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x543b02,'createdAt':_0x958e8?new Date(_0x958e8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3a8275);});}}class ae extends _0x372529{['afterInit'](){const _0x45e1ef=this['editor'],_0x1072f6=_0x45e1ef['plugins']['get']('TrackChangesEditing');if(_0x45e1ef['plugins']['has']('IndentEditing')&&(_0x1072f6['enableCommand']('indent'),_0x1072f6['enableCommand']('outdent')),_0x45e1ef['plugins']['has']('IndentBlock')){for(const _0x3765a9 of['indentBlock','outdentBlock'])_0x1072f6['enableDefaultAttributesIntegration'](_0x3765a9);if(_0x45e1ef['plugins']['has']('ListEditing')){for(const _0x3a03a0 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x1072f6['enableDefaultAttributesIntegration'](_0x3a03a0);}}const _0x14ebe9=_0x45e1ef['locale'];_0x1072f6['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x14ebe9,'FORMAT_INDENT')),_0x1072f6['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x14ebe9,'FORMAT_INDENT')),_0x1072f6['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x14ebe9,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cf95d=this['editor'],_0x3d1c63=_0x4cf95d['locale'],_0x2452eb=_0x4cf95d['plugins']['get']('TrackChangesEditing');_0x2452eb['descriptionFactory']['registerDescriptionCallback'](_0x928272=>{if('formatBlock'!=_0x928272['type'])return;const {data:_0x564d9a}=_0x928272;if(!_0x564d9a)return;if('indentBlock'!=_0x564d9a['commandName']&&'outdentBlock'!=_0x564d9a['commandName'])return;const _0x4fcbd0=_0x928272['getItems']()[0x0],_0x5dea9e=_0x2452eb['descriptionFactory']['getItemLabel'](_0x4fcbd0);return'indentBlock'==_0x564d9a['commandName']?{'type':'format','content':At(_0x3d1c63,'*Indent:*\x20%0',_0x5dea9e)}:'outdentBlock'==_0x564d9a['commandName']?{'type':'format','content':At(_0x3d1c63,'*Outdent:*\x20%0',_0x5dea9e)}:void 0x0;});}}class ce extends _0x372529{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x372529{['afterInit'](){const _0x621f=this['editor'];if(!_0x621f['plugins']['has']('LinkEditing'))return;const _0x39096e=_0x621f['plugins']['get']('TrackChangesEditing'),_0x20fc71=_0x621f['commands']['get']('link');_0x39096e['enableDefaultAttributesIntegration']('link'),_0x39096e['enableDefaultAttributesIntegration']('unlink');for(const _0xbf5abb of _0x20fc71['manualDecorators'])_0x39096e['descriptionFactory']['registerAttributeLabel'](_0xbf5abb['id'],'link\x20('+_0xbf5abb['label']['toLowerCase']()+')');_0x39096e['descriptionFactory']['registerDescriptionCallback'](_0x4c701d=>{if('attribute'!=_0x4c701d['type'])return;const {data:_0x14ce6b}=_0x4c701d;if(!_0x14ce6b||'linkHref'!=_0x14ce6b['key'])return;const _0x2565fa=_0x14ce6b['newValue'],_0x5e967d=_0x621f['locale'];return{'type':'format','content':null==_0x2565fa?At(_0x5e967d,'*Remove\x20link*'):At(_0x5e967d,'*Set\x20link:*\x20%0','\x22'+_0x2565fa+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x417dc0=this['editor'],_0x580255=_0x417dc0['locale'];_0x417dc0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2167af=>{if('formatInline'!=_0x2167af['type'])return;const {data:_0x4ecd65}=_0x2167af;if(_0x4ecd65){if('link'==_0x4ecd65['commandName']){const _0x5822e6=_0x4ecd65['commandParams'][0x0];return{'type':'format','content':At(_0x580255,'*Set\x20link:*\x20%0','\x22'+_0x5822e6+'\x22')};}return'unlink'==_0x4ecd65['commandName']?{'type':'format','content':At(_0x580255,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x372529{['afterInit'](){const _0x172292=this['editor'],_0x3ae2e7=_0x172292['locale'];if(!_0x172292['plugins']['has']('LegacyListEditing'))return;const _0x20300c=_0x172292['plugins']['get']('TrackChangesEditing'),_0x549921=_0x172292['plugins']['has']('LegacyTodoListEditing');function _0x25ffd5(_0x205607){return()=>{const _0x510e5a=_0x172292['model']['document']['selection'],_0x6756c8=_0x172292['commands']['get'](_0x205607);if(_0x6756c8['value'])return void _0x172292['execute']('paragraph',{});const _0x4d4559=_0x205607['slice'](0x0,-0x4),_0x265706=function(_0x2210fc,_0x2603b9,_0xe12536){let _0x398cb7=Array['from'](_0x2210fc)['filter'](_0x46f4d6=>function(_0x4b0512,_0x35586e){return _0x35586e['checkChild'](_0x4b0512['parent'],'listItem')&&!_0x35586e['isObject'](_0x4b0512);}(_0x46f4d6,_0xe12536));_0x398cb7=_0x398cb7['filter'](_0x27efa8=>!_0x27efa8['is']('element','listItem')||_0x27efa8['getAttribute']('listType')!=_0x2603b9);const _0x1072f5=new Set();for(const _0x4393c1 of _0x398cb7)_0x4393c1['is']('element','listItem')?_0x1072f5['add'](he(_0x4393c1)):_0x1072f5['add'](_0x4393c1);return Array['from'](_0x1072f5);}(_0x510e5a['getSelectedBlocks'](),_0x4d4559,_0x172292['model']['schema']);_0x172292['model']['change'](()=>{for(const _0x454b40 of _0x265706)_0x20300c['markBlockFormat'](_0x454b40,{'commandName':_0x205607,'commandParams':[{'forceValue':!_0x6756c8['value']}],'formatGroupId':'blockName'},de(_0x454b40));});};}function _0x2722d9(_0x31beaa){return()=>{const _0x5903c8=function(_0xe08d8a){let _0x442b89=Array['from'](_0xe08d8a);const _0xf6664f=_0x442b89['findIndex'](_0x44ad49=>'listItem'!=_0x44ad49['name']);return _0xf6664f>-0x1&&(_0x442b89=_0x442b89['slice'](0x0,_0xf6664f)),_0x442b89;}(_0x172292['model']['document']['selection']['getSelectedBlocks']()),_0x251477=_0x172292['model']['createRange'](_0x172292['model']['createPositionAt'](_0x5903c8[0x0],'before'),_0x172292['model']['createPositionAt'](_0x5903c8[_0x5903c8['length']-0x1],'end'));_0x172292['model']['change'](()=>{_0x20300c['markBlockFormat'](_0x251477,{'commandName':_0x31beaa,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2efed1){const _0x125782=new Set();for(const _0x284c34 of _0x2efed1){let _0x157657=_0x284c34['nextSibling'];for(;_0x157657&&_0x157657['getAttribute']('listIndent')>_0x284c34['getAttribute']('listIndent');)_0x125782['add'](_0x157657),_0x157657=_0x157657['nextSibling'];}return Array['from'](_0x125782);}(_0x5903c8));});};}_0x20300c['enableCommand']('numberedList',_0x25ffd5('numberedList')),_0x20300c['enableCommand']('bulletedList',_0x25ffd5('bulletedList')),_0x549921&&_0x20300c['enableCommand']('todoList',_0x25ffd5('todoList')),_0x20300c['enableCommand']('indentList',_0x2722d9('indentList')),_0x20300c['enableCommand']('outdentList',_0x2722d9('outdentList')),_0x549921&&_0x20300c['enableCommand']('checkTodoList',()=>{const _0x3f99ed=_0x172292['commands']['get']('checkTodoList'),_0x46d5cb=Array['from'](_0x3f99ed['_selectedElements']);_0x46d5cb['filter'](_0xe51dc7=>_0xe51dc7['getAttribute']('todoListChecked')!=_0x3f99ed['value']),_0x172292['model']['change'](()=>{for(const _0x55ced0 of _0x46d5cb)_0x20300c['markBlockFormat'](_0x55ced0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3f99ed['value']}]});});}),_0x20300c['descriptionFactory']['registerElementLabel']('listItem',_0x17c00b=>At(_0x3ae2e7,'ELEMENT_LIST_ITEM',_0x17c00b)),_0x20300c['descriptionFactory']['registerDescriptionCallback'](_0xcacf7b=>{if('formatBlock'!=_0xcacf7b['type']&&'formatInline'!=_0xcacf7b['type'])return;const {data:_0x409c80}=_0xcacf7b;if(_0x409c80){if('numberedList'==_0x409c80['commandName']||'bulletedList'==_0x409c80['commandName']||'todoList'==_0x409c80['commandName'])switch(_0x409c80['commandName']['replace']('List','')){case'bulleted':return _0x3f916b(At(_0x3ae2e7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3f916b(At(_0x3ae2e7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3f916b(At(_0x3ae2e7,'ELEMENT_TODO_LIST'));}if('indentList'==_0x409c80['commandName'])return{'type':'format','content':At(_0x3ae2e7,'*Indent:*\x20%0',At(_0x3ae2e7,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x409c80['commandName'])return{'type':'format','content':At(_0x3ae2e7,'*Outdent:*\x20%0',At(_0x3ae2e7,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x409c80['commandName'])return _0x409c80['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x3ae2e7,'*Check\x20item*')}:{'type':'format','content':At(_0x3ae2e7,'*Uncheck\x20item*')};}function _0x3f916b(_0xcf614a){return{'type':'format','content':At(_0x3ae2e7,'*Change\x20to:*\x20%0',_0xcf614a)};}});}}function he(_0x30921f){const _0xee2388=_0x30921f['getAttribute']('listIndent');if(0x0==_0xee2388)return _0x30921f;let _0x30e6ee=_0x30921f;for(;_0x30921f['previousSibling']&&_0x30921f['previousSibling']['is']('element','listItem');){const _0x1d7460=_0x30921f['previousSibling']['getAttribute']('listIndent');if(_0x1d7460==_0xee2388)_0x30e6ee=_0x30921f['previousSibling'];else{if(_0x1d7460<_0xee2388)break;}_0x30921f=_0x30921f['previousSibling'];}return _0x30e6ee;}function de(_0x4e7732){const _0x49ec43=[];if(_0x4e7732['is']('element','listItem')&&_0x4e7732['getAttribute']('listIndent')>0x0){let _0x386d16=_0x4e7732['nextSibling'];for(;_0x386d16&&'listItem'==_0x386d16['name']&&_0x386d16['getAttribute']('listIndent')==_0x4e7732['getAttribute']('listIndent');)_0x49ec43['push'](_0x386d16),_0x386d16=_0x386d16['nextSibling'];}return _0x49ec43;}class fe extends _0x372529{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x11af39=this['editor']['config']['get']('list.properties'),_0x48ba95=this['editor']['plugins']['get']('TrackChangesEditing');_0x11af39['styles']&&_0x48ba95['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x11af39['reversed']&&_0x48ba95['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x11af39['startIndex']&&_0x48ba95['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x48ba95['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1d08ca,_0x15d59f={}){const _0x3be7ef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4de2b3=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3be7ef['markMultiRangeBlockFormat'](_0x4de2b3,{'commandName':'listStyle','commandParams':[{'type':_0x15d59f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x127c33,_0x577265={}){const _0x217346=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44e9da=this['_getSuggestionBlocks'](_0x94f61d=>_0x94f61d['is']('element','listItem')&&'numbered'===_0x94f61d['getAttribute']('listType'));if(_0x44e9da['length']<0x1)return;const _0x3cf8c3=_0x44e9da['map'](_0x59a0f4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x59a0f4,'before'),this['editor']['model']['createPositionAt'](_0x59a0f4,0x0)));this['editor']['model']['change'](()=>{_0x217346['markMultiRangeBlockFormat'](_0x3cf8c3,{'commandName':'listReversed','commandParams':[{'reversed':_0x577265['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x46517b,_0x5a19da={}){const _0x5c9fd4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19abab=this['_getSuggestionBlocks'](_0x287314=>_0x287314['is']('element','listItem')&&'numbered'===_0x287314['getAttribute']('listType'));if(_0x19abab['length']<0x1)return;const _0x5538e1=_0x19abab['map'](_0x4a54fc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4a54fc,'before'),this['editor']['model']['createPositionAt'](_0x4a54fc,0x0)));this['editor']['model']['change'](()=>{_0x5c9fd4['markMultiRangeBlockFormat'](_0x5538e1,{'commandName':'listStart','commandParams':[{'startIndex':_0x5a19da['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x201044){if('formatBlock'!=_0x201044['type']&&'formatInline'!=_0x201044['type'])return;const _0x1e0f3b=this['editor']['locale'],{data:_0x38287e}=_0x201044;if(!_0x38287e)return;let _0x4b2d38,_0x4b5aec;switch(_0x38287e['commandName']){case'listStyle':_0x4b2d38='*Change\x20to:*\x20%0',_0x4b5aec={'type':'format','content':At(_0x1e0f3b,_0x4b2d38,At(_0x1e0f3b,this['_getTranslationKeyForListStyle'](_0x38287e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4b2d38=_0x38287e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4b5aec={'type':'format','content':At(_0x1e0f3b,_0x4b2d38)};break;case'listStart':_0x4b2d38='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4b5aec={'type':'format','content':At(_0x1e0f3b,_0x4b2d38,_0x38287e['commandParams'][0x0]['startIndex'])};}return _0x4b5aec;}['_getSuggestionBlocksForListStyle'](){const _0x432b51=this['editor']['plugins']['get']('LegacyListUtils');let _0x4944b7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4944b7[0x0]?.['is']('element','listItem')&&_0x4944b7['unshift'](..._0x432b51['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4944b7[_0x4944b7['length']-0x1]?.['is']('element','listItem')&&_0x4944b7['push'](..._0x432b51['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4944b7=[...new Set(_0x4944b7)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4944b7=_0x4944b7['filter'](_0x1a3fa0=>_0x1a3fa0['is']('element','listItem'))),_0x4944b7;}['_getSuggestionBlocks'](_0x201bbd){const _0x22aa18=this['editor']['plugins']['get']('LegacyListUtils');let _0xb283d9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x201bbd)['map'](_0x24d5b3=>{const _0xec0fe2=this['editor']['model']['createPositionAt'](_0x24d5b3,0x0);return[..._0x22aa18['getSiblingNodes'](_0xec0fe2,'backward'),..._0x22aa18['getSiblingNodes'](_0xec0fe2,'forward')];})['flat']();return _0xb283d9=[...new Set(_0xb283d9)],_0xb283d9;}['_getTranslationKeyForListStyle'](_0x4b4f46){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4b4f46)||'default')['toUpperCase']()+'_LIST_'+_0x4b4f46['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x372529{['afterInit'](){const _0xc49c32=this['editor'];if(!_0xc49c32['plugins']['has']('MediaEmbedEditing'))return;const _0x67ccb8=_0xc49c32['plugins']['get']('TrackChangesEditing'),_0x4ec275=_0xc49c32['locale'];_0x67ccb8['enableCommand']('mediaEmbed'),_0x67ccb8['descriptionFactory']['registerElementLabel']('media',_0x57867a=>At(_0x4ec275,'ELEMENT_MEDIA',_0x57867a));}}class me extends _0x372529{['afterInit'](){const _0x1704e2=this['editor'];_0x1704e2['plugins']['has']('MentionEditing')&&_0x1704e2['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x372529{['afterInit'](){const _0x332ca7=this['editor'];if(!_0x332ca7['plugins']['has']('MergeFieldsEditing'))return;const _0x4ee3ee=_0x332ca7['plugins']['get']('TrackChangesEditing'),_0x47d089=_0x332ca7['locale'];_0x4ee3ee['enableCommand']('insertMergeField'),_0x4ee3ee['enableCommand']('insertMergeFieldBlock'),_0x4ee3ee['enableCommand']('insertMergeFieldImage'),_0x4ee3ee['descriptionFactory']['registerElementLabel']('mergeField',_0x47ef58=>At(_0x47d089,'ELEMENT_MERGE_FIELD',_0x47ef58)),_0x4ee3ee['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x21c7d3=>At(_0x47d089,'ELEMENT_MERGE_FIELD',_0x21c7d3)),_0x4ee3ee['descriptionFactory']['registerDescriptionCallback'](_0x159931=>{if('insertion'!=_0x159931['type']&&'deletion'!=_0x159931['type'])return;const _0x5d0310=_0x159931['getContainedElement']();if(null==_0x5d0310)return;const _0x50cf3a=_0x332ca7['plugins']['get']('MergeFieldsEditing');let _0x25d7ae;switch(_0x50cf3a['getMergeFieldType'](_0x5d0310)){case null:return;case'image':{const _0xc85077=_0x50cf3a['unwrapAffixes'](_0x5d0310['getAttribute']('src'));_0x25d7ae=_0x50cf3a['getLabel'](_0xc85077)||_0xc85077;break;}default:{const _0x54dd72=_0x5d0310['getAttribute']('id');_0x25d7ae=_0x50cf3a['getLabel'](_0x54dd72)||_0x54dd72;break;}}return'insertion'==_0x159931['type']?{'type':'insertion','content':At(_0x47d089,'*Insert:*\x20%0','\x22'+_0x25d7ae+'\x22\x20'+At(_0x47d089,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x47d089,'*Remove:*\x20%0','\x22'+_0x25d7ae+'\x22\x20'+At(_0x47d089,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x372529{['afterInit'](){const _0x4f3bab=this['editor'],_0x4a06ad=_0x4f3bab['plugins']['get']('TrackChangesEditing');_0x4f3bab['plugins']['has']('MultiLevelList')&&(_0x4a06ad['enableDefaultAttributesIntegration']('multiLevelList'),_0x4a06ad['descriptionFactory']['registerDescriptionCallback'](_0x55cb65=>this['handleDescriptions'](_0x55cb65)));}['handleDescriptions'](_0xa0f979){const _0x596bbf=this['editor']['locale'],{data:_0x1eaf4e}=_0xa0f979,_0x549a3d={'type':'format','content':''};if(_0x1eaf4e&&'listMarkerStyle'==_0x1eaf4e['key']){if(!_0x1eaf4e['oldValue'])return{'type':'format','content':At(_0x596bbf,'*Set\x20format:*\x20%0',At(_0x596bbf,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1eaf4e['newValue']+')'};if(!_0x1eaf4e['newValue']){let _0x276289=_0xa0f979['head'];for(;_0x276289;){if(_0x276289['data']&&'listType'==_0x276289['data']['key']&&_0x276289['data']['newValue'])return _0x549a3d;_0x276289=_0x276289['next'];}return{'type':'format','content':At(_0x596bbf,'*Remove\x20format:*\x20%0',At(_0x596bbf,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1eaf4e['oldValue']+')'};}}}}class _e extends _0x372529{['afterInit'](){const _0x5128db=this['editor'];if(!_0x5128db['plugins']['has']('PageBreakEditing'))return;_0x5128db['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x359221=_0x5128db['plugins']['get']('TrackChangesEditing'),_0x202aff=_0x5128db['locale'];_0x359221['descriptionFactory']['registerElementLabel']('pageBreak',_0x505745=>At(_0x202aff,'ELEMENT_PAGE_BREAK',_0x505745));}}class pe extends _0x372529{['afterInit'](){const _0x1bcd5c=this['editor'];if(!_0x1bcd5c['plugins']['has']('Paragraph'))return;const _0x3de547=_0x1bcd5c['locale'],_0x138b44=_0x1bcd5c['plugins']['get']('TrackChangesEditing');_0x138b44['descriptionFactory']['registerElementLabel']('paragraph',_0x1ba490=>At(_0x3de547,'ELEMENT_PARAGRAPH',_0x1ba490)),_0x138b44['enableDefaultAttributesIntegration']('paragraph'),_0x138b44['enableCommand']('insertParagraph');const _0x2b1bb2=_0x138b44['descriptionFactory'];_0x2b1bb2['registerDescriptionCallback'](_0x17f2d5=>{if('insertion'!==_0x17f2d5['type'])return;const {start:_0x2023d1,end:_0x3264f4}=_0x17f2d5['getFirstRange']();if(!_0x2023d1['isTouching'](_0x3264f4)||!_0x2023d1['nodeAfter'])return;const _0x37ee2e=_0x1bcd5c['model']['schema'],_0x5d9a26=_0x2023d1['nodeAfter'];return _0x37ee2e['isBlock'](_0x5d9a26)&&!_0x37ee2e['isLimit'](_0x5d9a26)&&_0x37ee2e['checkChild'](_0x5d9a26,'$text')?{'type':'insertion','content':At(_0x3de547,'*Insert:*\x20%0',_0x2b1bb2['getItemLabel'](_0x5d9a26,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2861b0=this['editor'],_0x3563e9=_0x2861b0['locale'];_0x2861b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37f026=>{if('formatBlock'!=_0x37f026['type'])return;const {data:_0x48d975}=_0x37f026;return _0x48d975&&'paragraph'==_0x48d975['commandName']?{'type':'format','content':At(_0x3563e9,'*Change\x20to:*\x20%0',At(_0x3563e9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x372529{['afterInit'](){const _0x19a9d2=this['editor'];_0x19a9d2['commands']['get']('replaceSource')&&_0x19a9d2['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x372529{['afterInit'](){const _0x1dbfdc=this['editor'];if(!_0x1dbfdc['plugins']['has']('RemoveFormatEditing'))return;_0x1dbfdc['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d3d41=this['editor'];_0x3d3d41['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c7037=>{if('formatBlock'!=_0x2c7037['type']&&'formatInline'!=_0x2c7037['type'])return;const {data:_0x2ed611}=_0x2c7037;return _0x2ed611&&'removeFormat'==_0x2ed611['commandName']?{'type':'format','content':At(_0x3d3d41['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x372529{['afterInit'](){const _0x5a99ab=this['editor'];if(!_0x5a99ab['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x42d0f0=_0x5a99ab['plugins']['get']('TrackChangesEditing');_0x42d0f0['enableCommand']('goToPreviousRestrictedEditingException'),_0x42d0f0['enableCommand']('goToNextRestrictedEditingException');const _0x5f2777=_0x5a99ab['plugins']['get']('RestrictedEditingModeEditing');_0x5f2777['enableCommand']('trackChanges'),_0x5f2777['enableCommand']('acceptSuggestion'),_0x5f2777['enableCommand']('discardSuggestion'),_0x5f2777['enableCommand']('acceptAllSuggestions'),_0x5f2777['enableCommand']('discardAllSuggestions'),_0x5f2777['enableCommand']('acceptSelectedSuggestions'),_0x5f2777['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x372529{['afterInit'](){const _0x2c4ff8=this['editor'];if(!_0x2c4ff8['plugins']['has']('ShiftEnter'))return;const _0x1c8f4e=_0x2c4ff8['plugins']['get']('TrackChangesEditing');_0x1c8f4e['enableCommand']('shiftEnter'),_0x1c8f4e['descriptionFactory']['registerElementLabel']('softBreak',_0x3a74b0=>At(_0x2c4ff8['locale'],'ELEMENT_LINE_BREAK',_0x3a74b0));}}function ke(_0x4ebe10,_0x5492c0,_0x126da4){const _0x214a0c=[];for(const _0x51d594 of _0x5492c0['getItems']())_0x51d594['hasAttribute'](_0x4ebe10)&&_0x214a0c['push'](_0x126da4['createRangeOn'](_0x51d594));return _0x214a0c;}class Ce extends _0x372529{['afterInit'](){const _0x3f4a6=this['editor'],_0x5d5998=_0x3f4a6['plugins']['get']('TrackChangesEditing');_0x3f4a6['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x5d5998['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x17756d=this['editor'],_0x43e17c=_0x17756d['model'],_0xc7770b=_0x17756d['locale'],_0xa10f7a=_0x17756d['plugins']['get']('TrackChangesEditing'),_0x3358d0='restrictedEditingException',_0x12de16=_0x17756d['commands']['get'](_0x3358d0);_0xa10f7a['enableCommand'](_0x3358d0,(_0x3f66fe,_0x1006f1={})=>{const _0x4584d8=_0x43e17c['document']['selection'];if(_0x4584d8['isCollapsed'])return void _0x3f66fe(_0x1006f1);const _0x94d3e6=void 0x0!==_0x1006f1['forceValue']?_0x1006f1['forceValue']:!_0x12de16['value'];_0x43e17c['change'](()=>{const _0x4a935f=Array['from'](_0x4584d8['getRanges']());for(const _0x48d1e0 of _0x4a935f){const _0x32fa1f=_0x94d3e6?[_0x48d1e0]:ke(_0x3358d0,_0x48d1e0,_0x43e17c);for(const _0x4efe1c of _0x32fa1f)_0xa10f7a['markInlineFormat'](_0x4efe1c,{'commandName':_0x3358d0,'commandParams':[{'forceValue':_0x94d3e6}]});}});}),_0xa10f7a['descriptionFactory']['registerDescriptionCallback'](_0x41baca=>{if('formatBlock'!=_0x41baca['type']&&'formatInline'!=_0x41baca['type'])return;const {data:_0x58e9dd}=_0x41baca;return _0x58e9dd&&_0x58e9dd['commandName']==_0x3358d0?_0x58e9dd['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xc7770b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0xc7770b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x242aeb=this['editor'],_0x431934=_0x242aeb['locale'],_0x817a32=_0x242aeb['plugins']['get']('TrackChangesEditing'),_0x2f50cf='restrictedEditingExceptionBlock',_0x4cb0fe=this['editor']['commands']['get'](_0x2f50cf);_0x817a32['enableCommand'](_0x2f50cf,(_0x2e5784,_0x2ec533={})=>{const _0x1815ec=this['editor']['model']['document']['selection'],_0x1cfb95=_0x2ec533&&void 0x0!==_0x2ec533['forceValue']?_0x2ec533['forceValue']:!_0x4cb0fe['value'];let _0x1023fe=[];if(_0x1cfb95){const _0x1e0cbd=Array['from'](_0x1815ec['getSelectedBlocks']())['filter'](_0x46819c=>function(_0x2afc6a){return!!_0x2afc6a['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x46819c)||function(_0x462d59,_0x1e6d77){const _0x34e78b=_0x1e6d77['createContext'](_0x462d59['parent']);if(!_0x1e6d77['checkChild'](_0x34e78b,'restrictedEditingException'))return!0x1;if(!_0x1e6d77['checkChild'](_0x34e78b['push']('restrictedEditingException'),_0x462d59))return!0x1;return!0x0;}(_0x46819c,this['editor']['model']['schema']));_0x1023fe=Tt(_0x1e0cbd,_0x242aeb['model']);}else{const _0x4e842e=Array['from'](_0x1815ec['getSelectedBlocks']())['map'](_0x3d24c4=>function(_0x451d9c){let _0x27d599=_0x451d9c;for(;_0x27d599['parent'];){if('restrictedEditingException'==_0x27d599['parent']['name'])return _0x27d599;_0x27d599=_0x27d599['parent'];}return null;}(_0x3d24c4))['filter'](_0x48830a=>!!_0x48830a);_0x1023fe=Tt(_0x4e842e,_0x242aeb['model']);}_0x242aeb['model']['change'](()=>{for(const _0x4c6c12 of _0x1023fe)_0x817a32['markBlockFormat'](_0x4c6c12,{'commandName':_0x2f50cf,'commandParams':[{'forceValue':_0x1cfb95}]});});}),_0x817a32['descriptionFactory']['registerDescriptionCallback'](_0x42fa81=>{const {data:_0x1cf63b}=_0x42fa81;if(_0x1cf63b&&_0x1cf63b['commandName']==_0x2f50cf)return _0x1cf63b['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x431934,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x431934,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x372529{['afterInit'](){const _0x4509a3=this['editor'];if(!_0x4509a3['plugins']['has']('Style')||!_0x4509a3['plugins']['has']('DataSchema'))return;const _0xfd9fab=_0x4509a3['plugins']['get']('TrackChangesEditing'),_0x39b1cc=_0x4509a3['locale'],_0x39cb30=_0x4509a3['config']['get']('style')||{},_0x2dcd07=_0x4509a3['plugins']['get']('GeneralHtmlSupport'),_0x12caa2=_0x4509a3['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4509a3['plugins']['get']('DataSchema'),_0x39cb30['definitions']);_0xfd9fab['enableDefaultAttributesIntegration']('style');const _0x1cc46d=new Set();for(const _0x20c0ff of _0x12caa2['block']){const _0x2c0704=_0x2dcd07['getGhsAttributeNameForElement'](_0x20c0ff['element']);_0x1cc46d['add'](_0x2c0704);}const _0x2305e5=new Set();for(const _0xb06d7c of _0x12caa2['inline']){const _0x5cc1ec=_0x2dcd07['getGhsAttributeNameForElement'](_0xb06d7c['element']);_0x2305e5['add'](_0x5cc1ec);for(const _0x495f77 of _0xb06d7c['ghsAttributes'])_0x2305e5['add'](_0x495f77);}for(const _0x549418 of _0x1cc46d)_0xfd9fab['descriptionFactory']['registerAttributeLabel'](_0x549418,At(_0x39b1cc,'FORMAT_STYLE'));for(const _0x3622f6 of _0x2305e5)_0xfd9fab['descriptionFactory']['registerAttributeLabel'](_0x3622f6,At(_0x39b1cc,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26539c=this['editor'],_0x3f50a8=_0x26539c['locale'];_0x26539c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54f300=>{if('formatBlock'!=_0x54f300['type']&&'formatInline'!=_0x54f300['type'])return;const {data:_0x1b2bbb}=_0x54f300;return _0x1b2bbb&&'style'===_0x1b2bbb['commandName']?_0x1b2bbb['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x3f50a8,'*Set\x20format:*\x20%0',_0x1b2bbb['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x3f50a8,'*Remove\x20format:*\x20%0',_0x1b2bbb['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x372529{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4ed8b2){super(_0x4ed8b2),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x6ef0ea=this['editor'],_0x2141e7=_0x6ef0ea['model']['document']['selection'];if(!_0x6ef0ea['plugins']['has']('TableEditing'))return;const _0x29c021=_0x6ef0ea['locale'],_0x436c93=_0x6ef0ea['plugins']['get']('TrackChangesEditing'),_0x125409=_0x6ef0ea['plugins']['get']('TableUtils');_0x436c93['descriptionFactory']['registerElementLabel']('table',_0x28c484=>At(_0x29c021,'ELEMENT_TABLE',_0x28c484)),this['_setupColumnsRowsFixing'](),_0x436c93['enableCommand']('insertTable'),_0x436c93['enableCommand']('selectTableRow'),_0x436c93['enableCommand']('selectTableColumn');for(const _0x3dcf07 of['insertTableRowAbove','insertTableRowBelow']){const _0x439c16=_0x6ef0ea['commands']['get'](_0x3dcf07);_0x436c93['enableCommand'](_0x3dcf07,_0x13c230=>{_0x6ef0ea['model']['change'](_0xba56f9=>{_0x13c230();const _0x410f6d='above'===_0x439c16['order'],_0x4a1722=_0x125409['getSelectionAffectedTableCells'](_0x2141e7),_0x5480fe=_0x125409['getRowIndexes'](_0x4a1722),_0x53e73e=_0x410f6d?_0x5480fe['first']-0x1:_0x5480fe['last']+0x1,_0xd6a26f=_0x4a1722[0x0]['findAncestor']('table'),_0x5a618b=_0x125409['createTableWalker'](_0xd6a26f,{'startRow':_0x53e73e,'endRow':_0x53e73e}),_0xe44c9f=Array['from'](_0x5a618b)['map'](_0x42cfc6=>_0xba56f9['createRangeOn'](_0x42cfc6['cell']));_0x436c93['markMultiRangeInsertion'](_0xe44c9f,'tableRow');});});}for(const _0x112701 of['insertTableColumnLeft','insertTableColumnRight']){const _0x236109=_0x6ef0ea['commands']['get'](_0x112701);_0x436c93['enableCommand'](_0x112701,_0x4c8f18=>{_0x6ef0ea['model']['change'](_0x4c223d=>{_0x4c8f18();const _0x5dbc77='left'===_0x236109['order'],_0x2c4c0e=_0x125409['getSelectionAffectedTableCells'](_0x2141e7),_0x5d8c95=_0x125409['getColumnIndexes'](_0x2c4c0e),_0x4c9211=_0x5dbc77?_0x5d8c95['first']-0x1:_0x5d8c95['last']+0x1,_0x54f855=_0x2c4c0e[0x0]['findAncestor']('table'),_0x1f9a7b=_0x125409['createTableWalker'](_0x54f855,{'startRow':0x0,'column':_0x4c9211,'includeAllSlots':!0x1}),_0x20002b=Array['from'](_0x1f9a7b)['map'](_0x1036d0=>_0x4c223d['createRangeOn'](_0x1036d0['cell']));_0x436c93['markMultiRangeInsertion'](_0x20002b,'tableColumn');});});}for(const _0x1289e7 of['removeTableRow','removeTableColumn']){const _0x4a3dbd=_0x1289e7['substr'](0xb),_0x11936c=_0x4a3dbd['toLowerCase'](),_0x5ee7e0=_0x11936c['substr'](0x0,0x3)+'span',_0x25c55b='table'+_0x4a3dbd,_0x489766='min'+_0x4a3dbd,_0x5ca442='max'+_0x4a3dbd;_0x436c93['enableCommand'](_0x1289e7,()=>{_0x6ef0ea['model']['change'](_0x571bc0=>{const _0x349d04=_0x125409['getSelectionAffectedTableCells'](_0x2141e7),_0xd4cfd4=_0x349d04[0x0]['findAncestor']('table');let _0x30c738;if('removeTableRow'==_0x1289e7){const _0x4e3334=_0x125409['getRowIndexes'](_0x349d04);_0x30c738={'startRow':_0x4e3334['first'],'endRow':_0x4e3334['last'],'includeAllSlots':!0x0};}else{const _0x3077cd=_0x125409['getColumnIndexes'](_0x349d04);_0x30c738={'startColumn':_0x3077cd['first'],'endColumn':_0x3077cd['last'],'includeAllSlots':!0x0};}const _0x25d420=_0x125409['createTableWalker'](_0xd4cfd4,_0x30c738),_0x3d13f1=Array['from'](_0x25d420)['map'](({cell:_0x453522})=>_0x453522),_0x117407=Re(_0x3d13f1['filter'](_0x596fe3=>_0x596fe3['hasAttribute'](_0x5ee7e0))),_0x473fd6=Re(_0x3d13f1['filter'](_0x37e59e=>!_0x37e59e['hasAttribute'](_0x5ee7e0)))['map'](_0x4f8f50=>_0x571bc0['createRangeOn'](_0x4f8f50)),_0x3843a2=_0x436c93['markMultiRangeDeletion'](_0x473fd6,_0x25c55b);if(_0x3843a2&&('tableRow'==_0x3843a2['subType']||'tableColumn'==_0x3843a2['subType'])){const _0x30a66f=this['_getSuggestionCoords'](_0x3843a2);for(const _0xcf94d4 of _0x117407){const _0x59a47c=_0x571bc0['createRangeOn'](_0xcf94d4),_0x45542a=_0x125409['getCellLocation'](_0xcf94d4),_0x47354f=_0xcf94d4['getAttribute'](_0x5ee7e0)-0x1,_0x3f2458=_0x30a66f[_0x489766],_0x416f1e=_0x30a66f[_0x5ca442];_0x3f2458<=_0x45542a[_0x11936c]&&_0x45542a[_0x11936c]+_0x47354f<=_0x416f1e&&_0x3843a2['addRange'](_0x59a47c);}}});});}function _0x2e44f8(_0x14a6c){const _0x109598=Array['from'](_0x2141e7['getRanges']())['map'](_0x3e922d=>_0xb14de3['fromRange'](_0x3e922d));_0x6ef0ea['model']['change'](_0x24a19b=>{const _0x2cbd25=_0x24a19b['batch'];_0x14a6c=_0x14a6c['filter'](_0x3a4871=>'$graveyard'!=_0x3a4871['root']['rootName']),_0x24a19b['setSelection'](_0x14a6c),_0x6ef0ea['commands']['get']('removeTableRow')['refresh'](),_0x6ef0ea['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x6ef0ea['model']['enqueueChange'](()=>{_0x6ef0ea['model']['enqueueChange'](_0x2cbd25,_0x415432=>{const _0x7775=_0x109598['filter'](_0x1bd758=>'$graveyard'!=_0x1bd758['root']['rootName']);_0x7775['length']>0x0&&_0x415432['setSelection'](_0x7775);for(const _0x238a7a of _0x109598)_0x238a7a['detach']();});});});}function _0xc704f(_0x8b31e8){_0x6ef0ea['model']['change'](_0x1637d9=>{const _0x33bc02=Array['from'](_0x2141e7['getRanges']())['map'](_0x59deed=>_0xb14de3['fromRange'](_0x59deed)),_0x4eb500=[];for(const _0x4fa850 of _0x8b31e8)for(const _0x3905ce of _0x4fa850['getItems']({'shallow':!0x0}))_0x4eb500['push'](_0x3905ce);for(const _0x12dbe6 of _0x4eb500)'$graveyard'!=_0x12dbe6['root']['rootName']&&(_0x1637d9['setSelection'](_0x1637d9['createPositionAt'](_0x12dbe6,0x0)),_0x6ef0ea['commands']['get']('removeTableColumn')['refresh'](),_0x6ef0ea['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x350d29=_0x33bc02['filter'](_0x47b611=>'$graveyard'!=_0x47b611['root']['rootName']);_0x350d29['length']>0x0&&_0x1637d9['setSelection'](_0x350d29);for(const _0x12b64c of _0x33bc02)_0x12b64c['detach']();});}function _0x4433da(_0x5bdec1,_0x3430d8){return _0x3430d8['every'](_0x250565=>_0x5bdec1['some'](_0x4c1272=>_0x4c1272['end']['isEqual'](_0x250565['start'])||_0x250565['end']['isEqual'](_0x4c1272['start'])));}function _0x5b7b00(_0x4226d1,_0x282f4e){return!_0x4226d1['some'](_0x566a38=>_0x282f4e['some'](_0x13051e=>_0x566a38['isIntersecting'](_0x13051e)))&&_0x4226d1['some'](_0x252384=>_0x282f4e['some'](_0xd6f76a=>_0x252384['end']['isTouching'](_0xd6f76a['start'])));}_0x436c93['descriptionFactory']['registerDescriptionCallback'](_0x134d31=>{if('insertion'!=_0x134d31['type']&&'deletion'!=_0x134d31['type'])return;const _0x1b7cbd=_0x134d31['getContainedElement']();if(null!=_0x1b7cbd&&_0x1b7cbd['is']('element','table')){if('insertion'==_0x134d31['type']){const _0x3b9fc4=_0x134d31['getItems']()['filter'](_0x487e75=>_0x487e75['is']('$textProxy'))['map'](_0x279da3=>_0x279da3['data']);if(_0x3b9fc4['length'])return{'type':'insertion','content':At(_0x29c021,'*Insert:*\x20%0',At(_0x29c021,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3b9fc4['join']('\x20')+'\x22'))};}if('deletion'==_0x134d31['type']){const _0x40d33f=_0x134d31['getItems']()['filter'](_0x17e3b8=>_0x17e3b8['is']('$textProxy'))['map'](_0x5dba8b=>_0x5dba8b['data']);if(_0x40d33f['length'])return{'type':'deletion','content':At(_0x29c021,'*Remove:*\x20%0',At(_0x29c021,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x40d33f['join']('\x20')+'\x22'))};}}}),_0x436c93['descriptionFactory']['registerDescriptionCallback'](_0x8c8a84=>{if('tableRow'==_0x8c8a84['subType']){const _0x46ab93=_0x8c8a84['getItems']()['filter'](_0x534ab8=>_0x534ab8['is']('$textProxy'))['map'](_0x1cb41d=>_0x1cb41d['data']),_0x2ea75b=this['_getSuggestionCoords'](_0x8c8a84),_0x4aa4a4=_0x2ea75b['maxRow']-_0x2ea75b['minRow']+0x1;if('insertion'==_0x8c8a84['type'])return _0x46ab93['length']?{'type':'insertion','content':At(_0x29c021,'*Insert:*\x20%0',At(_0x29c021,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4aa4a4,'\x22'+_0x46ab93['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x29c021,'*Insert:*\x20%0',At(_0x29c021,'ELEMENT_TABLE_ROW',_0x4aa4a4))};if('deletion'==_0x8c8a84['type'])return _0x46ab93['length']?{'type':'deletion','content':At(_0x29c021,'*Remove:*\x20%0',At(_0x29c021,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4aa4a4,'\x22'+_0x46ab93['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x29c021,'*Remove:*\x20%0',At(_0x29c021,'ELEMENT_TABLE_ROW',_0x4aa4a4))};}if('tableColumn'==_0x8c8a84['subType']){const _0x3c6a16=_0x8c8a84['getItems']()['filter'](_0x3f85eb=>_0x3f85eb['is']('$textProxy'))['map'](_0x2c52ad=>_0x2c52ad['data']),_0x1848f7=this['_getSuggestionCoords'](_0x8c8a84),_0xb6f6a1=_0x1848f7['maxColumn']-_0x1848f7['minColumn']+0x1;if('insertion'==_0x8c8a84['type'])return _0x3c6a16['length']?{'type':'insertion','content':At(_0x29c021,'*Insert:*\x20%0',At(_0x29c021,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xb6f6a1,'\x22'+_0x3c6a16['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x29c021,'*Insert:*\x20%0',At(_0x29c021,'ELEMENT_TABLE_COLUMN',_0xb6f6a1))};if('deletion'==_0x8c8a84['type'])return _0x3c6a16['length']?{'type':'deletion','content':At(_0x29c021,'*Remove:*\x20%0',At(_0x29c021,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xb6f6a1,'\x22'+_0x3c6a16['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x29c021,'*Remove:*\x20%0',At(_0x29c021,'ELEMENT_TABLE_COLUMN',_0xb6f6a1))};}}),_0x436c93['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2e44f8),_0x436c93['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2e44f8),_0x436c93['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xc704f),_0x436c93['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xc704f),_0x436c93['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4433da),_0x436c93['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4433da),_0x436c93['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5b7b00),_0x436c93['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5b7b00);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4c1d69=this['editor'],_0x4d6700=_0x4c1d69['model']['document']['selection'];return(_0x111d42,_0x19ecce)=>{_0x4c1d69['model']['change'](_0x31a877=>{const {commandName:_0x4648fa,commandParams:_0x3d06fc}=_0x19ecce;let _0x289919=_0x111d42[0x0]['end']['nodeBefore'];_0x3d06fc&&_0x3d06fc[0x0]&&!0x1===_0x3d06fc[0x0]['forceValue']&&(_0x289919=_0x111d42[0x0]['start']['nodeAfter']);const _0x25a0c2=_0x31a877['createRangeIn'](_0x289919);if('$graveyard'==_0x25a0c2['root']['rootName'])return;const _0x47b776=Array['from'](_0x4d6700['getRanges']())['map'](_0xb6858f=>_0xb14de3['fromRange'](_0xb6858f));_0x31a877['setSelection'](_0x25a0c2),_0x4c1d69['commands']['get'](_0x4648fa)['refresh'](),_0x3d06fc['push']({'forceDefaultExecution':!0x0}),_0x4c1d69['execute'](_0x4648fa,..._0x3d06fc);const _0x177045=_0x47b776['filter'](_0x2b636a=>'$graveyard'!=_0x2b636a['root']['rootName']);_0x177045['length']>0x0&&_0x31a877['setSelection'](_0x177045);for(const _0x26bf7a of _0x47b776)_0x26bf7a['detach']();});};}['_getCoordsForCells'](_0x2d213b){const _0x1ea49a=this['editor']['plugins']['get']('TableUtils');let _0x2a9dc1=Number['MAX_SAFE_INTEGER'],_0x2736a5=Number['MIN_SAFE_INTEGER'],_0x140aa9=Number['MAX_SAFE_INTEGER'],_0xe42546=Number['MIN_SAFE_INTEGER'];for(const _0x357e0c of _0x2d213b){if('$graveyard'==_0x357e0c['root']['rootName'])continue;const {row:_0x551565,column:_0x1277d7}=_0x1ea49a['getCellLocation'](_0x357e0c),_0x572239=_0x357e0c['hasAttribute']('rowspan')?_0x357e0c['getAttribute']('rowspan')-0x1:0x0,_0x15d547=_0x357e0c['hasAttribute']('colspan')?_0x357e0c['getAttribute']('colspan')-0x1:0x0;_0x2a9dc1=_0x551565<_0x2a9dc1?_0x551565:_0x2a9dc1,_0x2736a5=_0x551565+_0x572239>_0x2736a5?_0x551565+_0x572239:_0x2736a5,_0x140aa9=_0x1277d7<_0x140aa9?_0x1277d7:_0x140aa9,_0xe42546=_0x1277d7+_0x15d547>_0xe42546?_0x1277d7+_0x15d547:_0xe42546;}return{'minRow':_0x2a9dc1,'maxRow':_0x2736a5,'minColumn':_0x140aa9,'maxColumn':_0xe42546};}['_setupColumnsRowsFixing'](){const _0x5b940d=this['editor'],_0x2490de=_0x5b940d['plugins']['get']('TrackChangesEditing'),_0x2f6322=_0x5b940d['plugins']['get']('TableUtils');_0x5b940d['model']['document']['on']('change:data',()=>{const _0x599694=Array['from'](_0x5b940d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e4d61,data:_0x518198}of _0x599694){const {group:_0x2b39f6,id:_0x4f11a2,subType:_0x521cf2}=_0x4a9b4b(_0x5e4d61);if('suggestion'!=_0x2b39f6)continue;if(null!=_0x518198['oldRange'])continue;const _0x582ad8=_0x2490de['getSuggestion'](_0x4f11a2);this['_tablePostFixingSubtypes']['includes'](_0x521cf2)&&this['_tableSuggestions']['add'](_0x582ad8);}},{'priority':'low'});const _0x2e2746=(_0x47ce63,_0x4add8f)=>{let _0x56ea3b=!0x1;const _0x2f2f41=_0x4add8f['createRangeOn'](_0x47ce63),_0x51b324=_0x47ce63['findAncestor']('table'),_0x359755=_0x2f6322['getCellLocation'](_0x47ce63);for(const _0x4015b1 of this['_tableSuggestions']){const _0x1fcd41=_0x4015b1['subType'],_0x46e204=_0x1fcd41['startsWith']('tablePaste'),_0x5d346a=_0x1fcd41['substr'](_0x46e204?0xa:0x5),_0xa4488f=_0x5d346a['toLowerCase'](),_0x164b2b=_0xa4488f['substr'](0x0,0x3)+'span',_0x3437d2='min'+_0x5d346a,_0x4cbd8f='max'+_0x5d346a;if(!_0x4015b1['isInContent'])continue;if(_0x51b324!=_0x4015b1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4015b1['isIntersectingWithRange'](_0x2f2f41))continue;const _0xcf8775=_0x47ce63['hasAttribute'](_0x164b2b)?_0x47ce63['getAttribute'](_0x164b2b)-0x1:0x0,_0x4563d0=this['_getSuggestionCoords'](_0x4015b1),_0x4cb497=_0x4563d0[_0x3437d2],_0x29615d=_0x4563d0[_0x4cbd8f];_0x4cb497<=_0x359755[_0xa4488f]&&_0x359755[_0xa4488f]+_0xcf8775<=_0x29615d&&(_0x4015b1['addRange'](_0x2f2f41),_0x56ea3b=!0x0);}return _0x56ea3b;};_0x5b940d['model']['document']['registerPostFixer'](_0x41e650=>{let _0x8692fb=!0x1;for(const _0x58123d of _0x5b940d['model']['document']['differ']['getChanges']())if('insert'==_0x58123d['type']){if('tableRow'==_0x58123d['name']){for(const _0x6f04c3 of _0x58123d['position']['nodeAfter']['getChildren']())_0x8692fb=_0x8692fb||_0x2e2746(_0x6f04c3,_0x41e650);}else'tableCell'==_0x58123d['name']&&(_0x8692fb=_0x8692fb||_0x2e2746(_0x58123d['position']['nodeAfter'],_0x41e650));}return _0x8692fb;});}['_getSuggestionCoords'](_0x90ff6){return this['_getCoordsForCells'](_0x90ff6['getRanges']()['map'](_0x3b7f47=>_0x3b7f47['start']['nodeAfter']));}}function Re(_0x2e3660){return Array['from'](new Set(_0x2e3660)['values']());}class Se extends _0x372529{static get['requires'](){return[Ne];}['afterInit'](){const _0x36c19a=this['editor'],_0x692aea=_0x36c19a['model']['document']['selection'],_0x47f290=_0x36c19a['locale'];if(!_0x36c19a['plugins']['has']('TableEditing'))return;const _0x5a5945=_0x36c19a['plugins']['get']('TrackChangesEditing'),_0x42d03c=_0x36c19a['plugins']['get']('TableUtils'),_0x4eb753=_0x36c19a['plugins']['get'](Ne);_0x4eb753['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5a5945['enableCommand']('mergeTableCells',()=>{const _0x5af28a=_0x42d03c['getSelectionAffectedTableCells'](_0x36c19a['model']['document']['selection']);_0x36c19a['model']['change'](()=>{_0x5a5945['markMultiRangeBlockFormat'](_0x5af28a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x36c19a['commands']['get']('mergeTableCells')['on']('execute',(_0x327805,_0x346f66)=>{_0x36c19a['commands']['get']('trackChanges')['value']&&(_0x346f66['length']>0x0&&_0x346f66[_0x346f66['length']-0x1]&&_0x346f66[_0x346f66['length']-0x1]['forceDefaultExecution']||_0x5a5945['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x327805['stop']());},{'priority':'highest'});for(const _0x28c8f9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x153a3b=_0x36c19a['commands']['get'](_0x28c8f9);_0x5a5945['enableCommand'](_0x28c8f9,()=>{const _0x42f034=_0x36c19a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x47dd08=>_0x47dd08['is']('element','tableCell')),_0x1766e9=_0x153a3b['value'];_0x36c19a['model']['change'](()=>{_0x5a5945['markMultiRangeBlockFormat']([_0x42f034,_0x1766e9],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x35b624 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4e0772=_0x36c19a['commands']['get'](_0x35b624);_0x5a5945['enableCommand'](_0x35b624,()=>{const _0x400258=_0x42d03c['getSelectionAffectedTableCells'](_0x36c19a['model']['document']['selection'])[0x0],_0x6395da=_0x400258['findAncestor']('table'),{column:_0x5a81bc,row:_0x419761}=_0x42d03c['getCellLocation'](_0x400258);let _0x4962b7=[];if('horizontally'==_0x4e0772['direction']){const _0x30151b=_0x42d03c['createTableWalker'](_0x6395da,{'startRow':_0x419761,'endRow':_0x419761,'includeAllSlots':!0x0});_0x4962b7=Array['from'](_0x30151b)['map'](_0x5003f5=>_0x5003f5['cell']);}else{const _0x22dc8a=_0x42d03c['createTableWalker'](_0x6395da,{'column':_0x5a81bc,'includeAllSlots':!0x0});_0x4962b7=Array['from'](_0x22dc8a)['map'](_0x133097=>_0x133097['cell']);}_0x36c19a['model']['change'](_0x50c7fc=>{_0x5a5945['markBlockFormat'](_0x50c7fc['createRangeOn'](_0x400258),{'commandName':_0x35b624,'commandParams':[]},_0x4962b7,_0x35b624);});});}_0x5a5945['descriptionFactory']['registerDescriptionCallback'](_0x46a3d5=>{if('formatBlock'!=_0x46a3d5['type']&&'formatInline'!=_0x46a3d5['type'])return;const {data:_0xf4ab39}=_0x46a3d5;return _0xf4ab39&&'mergeTableCells'==_0xf4ab39['commandName']?{'type':'format','content':At(_0x47f290,'*Merge\x20cells*')}:void 0x0;}),_0x5a5945['descriptionFactory']['registerDescriptionCallback'](_0x405f67=>{if('formatBlock'!=_0x405f67['type']&&'formatInline'!=_0x405f67['type'])return;const {data:_0x2c90f1}=_0x405f67;return _0x2c90f1?'splitTableCellVertically'==_0x2c90f1['commandName']?{'type':'format','content':At(_0x47f290,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2c90f1['commandName']?{'type':'format','content':At(_0x47f290,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x30910e=_0x4eb753['_acceptFormatSuggestionCallbackFactory']();for(const _0xcef66a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5a5945['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xcef66a,'accept',_0x30910e);for(const _0x4ebe16 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5a5945['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ebe16,'accept',_0x30910e);_0x5a5945['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3faf18=>{_0x36c19a['model']['change'](_0x416755=>{const _0x248c60=Array['from'](_0x692aea['getRanges']())['map'](_0x402ce8=>_0xb14de3['fromRange'](_0x402ce8));_0x416755['setSelection'](_0x3faf18),_0x36c19a['commands']['get']('mergeTableCells')['refresh'](),_0x36c19a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x55691e=_0x248c60['filter'](_0x920715=>'$graveyard'!=_0x920715['root']['rootName']);_0x55691e['length']>0x0&&_0x416755['setSelection'](_0x55691e);for(const _0x2bac4e of _0x248c60)_0x2bac4e['detach']();});});for(const _0x578e93 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5bd414=_0x36c19a['commands']['get'](_0x578e93);_0x5bd414['on']('set:isEnabled',(_0x3a0264,_0x3fb89a,_0x2bdf77)=>{if(_0x2bdf77){const _0x2cc885=_0x36c19a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x457133=>_0x457133['is']('element','tableCell'));this['_areMergableCells'](_0x5bd414['value'],_0x2cc885)||(_0x3a0264['return']=!0x1,_0x3a0264['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x31c70b=this['editor']['commands']['get']('mergeTableCells'),_0x4b6849=this['editor']['plugins']['get']('TableUtils');if(!_0x31c70b['isEnabled'])return!0x1;const _0x1ae565=_0x4b6849['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x252502 of _0x1ae565)for(const _0x349db9 of _0x1ae565)if(_0x252502!=_0x349db9&&!this['_areMergableCells'](_0x252502,_0x349db9))return!0x1;return!0x0;}['_areMergableCells'](_0x2935c2,_0x43ebf6){const _0x19fdcc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18dfb1=this['editor']['model']['createRangeOn'](_0x2935c2),_0x49bd42=this['editor']['model']['createRangeOn'](_0x43ebf6),_0x3ed460=new Set(),_0xdb312d=new Set();for(const _0x36b162 of _0x19fdcc['getSuggestions']())if(('insertion'==_0x36b162['type']||'deletion'==_0x36b162['type']||'mergeTableCells'==_0x36b162['subType'])&&_0x36b162['isInContent']){for(const _0x3a7e2c of _0x36b162['getRanges']())_0x3a7e2c['containsRange'](_0x18dfb1,!0x0)&&_0x3ed460['add'](_0x36b162['type']+':'+_0x36b162['author']['id']),_0x3a7e2c['containsRange'](_0x49bd42,!0x0)&&_0xdb312d['add'](_0x36b162['type']+':'+_0x36b162['author']['id']);}if(_0x3ed460['size']!=_0xdb312d['size'])return!0x1;for(const _0x32a90e of _0x3ed460)if(!_0xdb312d['has'](_0x32a90e))return!0x1;return!0x0;}}class Me extends _0x372529{static get['requires'](){return[Ne];}['afterInit'](){const _0x16ad90=this['editor'];if(!_0x16ad90['plugins']['has']('TableEditing'))return;const _0x8b8334=_0x16ad90['locale'],_0x10e6cd=_0x16ad90['plugins']['get']('TrackChangesEditing');_0x10e6cd['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x10e6cd['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x10e6cd['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x8b8334,'FORMAT_HEADER_ROW')),_0x10e6cd['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x8b8334,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3c2653=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15a9ae=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x3c2653['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x15a9ae),_0x3c2653['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x15a9ae),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x519e95=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aa875=this['editor']['plugins']['get']('TableUtils');function _0x50b0ad({showActiveMarker:_0x18a722=!0x0,setDataAttribute:_0x457b09=!0x0}={}){return(_0x4c01f7,_0x3198e3,_0x2d53f9)=>{const {type:_0x1feab2,id:_0x268fba}=_0x4a9b4b(_0x3198e3['markerName']);if(!_0x519e95['hasSuggestion'](_0x268fba))return;const _0xc4c88f=_0x519e95['getSuggestion'](_0x268fba),_0x2f4876=_0xc4c88f['data'];if('formatBlock'!=_0xc4c88f['type']||!_0x2f4876||'setTableColumnHeader'!=_0x2f4876['commandName'])return;if(_0x3198e3['item'])return void _0x4c01f7['stop']();if(!_0x2d53f9['consumable']['consume'](_0x3198e3['markerRange'],_0x4c01f7['name']))return;const _0x56809c=_0x3198e3['markerRange']['start']['nodeAfter'],_0x124778=_0x3198e3['markerRange']['end']['nodeBefore'],_0x20ab45=_0x56809c['parent']['parent'],{column:_0x2f407f}=_0x1aa875['getCellLocation'](_0x56809c),{column:_0x8f3e7a}=_0x1aa875['getCellLocation'](_0x124778);for(let _0x3d96fe=_0x2f407f;_0x3d96fe<=_0x8f3e7a;_0x3d96fe++){const _0x52f310=_0x1aa875['createTableWalker'](_0x20ab45,{'column':_0x3d96fe,'includeAllSlots':!0x1});for(const _0x321698 of _0x52f310){const _0x38fcf1=_0x321698['cell'],_0x4eade2=_0x2d53f9['mapper']['toViewElement'](_0x38fcf1);_0x2d53f9['writer']['addClass']('ck-suggestion-marker-'+_0x1feab2,_0x4eade2),_0x457b09&&_0x2d53f9['writer']['setAttribute']('data-suggestion',_0x268fba,_0x4eade2),_0x2d53f9['mapper']['bindElementToMarker'](_0x4eade2,_0x3198e3['markerName']),_0x18a722&&(_0x519e95['activeMarkers']['includes'](_0x3198e3['markerName'])?_0x2d53f9['writer']['addClass']('ck-suggestion-marker--active',_0x4eade2):_0x2d53f9['writer']['removeClass']('ck-suggestion-marker--active',_0x4eade2));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x50b0ad(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1db2e9,_0x4c1dec,_0x2bf79a)=>{_0x2bf79a['options']['showSuggestionHighlights']&&_0x50b0ad({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1db2e9,_0x4c1dec,_0x2bf79a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1749f9,_0x4114bb,_0x1c84ef)=>{const {type:_0x4d5547,id:_0x2d4f23}=_0x4a9b4b(_0x4114bb['markerName']);if(!_0x519e95['hasSuggestion'](_0x2d4f23))return;const _0x5ec02b=_0x519e95['getSuggestion'](_0x2d4f23),_0x38525f=_0x5ec02b['data'];if('formatBlock'!=_0x5ec02b['type']||!_0x38525f||'setTableColumnHeader'!=_0x38525f['commandName'])return;const _0x168e66=_0x1c84ef['mapper']['markerNameToElements'](_0x4114bb['markerName']);if(_0x168e66){for(const _0x16db97 of _0x168e66)_0x1c84ef['writer']['removeClass']('ck-suggestion-marker-'+_0x4d5547,_0x16db97),_0x1c84ef['writer']['removeClass']('ck-suggestion-marker--active',_0x16db97),_0x1c84ef['writer']['removeAttribute']('data-suggestion',_0x16db97),_0x1c84ef['mapper']['unbindElementFromMarkerName'](_0x16db97,_0x4114bb['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x1414db=this['editor'],_0x3ba4b9=_0x1414db['locale'];function _0x5e2894(_0x5cee6e){return{'type':'format','content':At(_0x3ba4b9,'*Format:*\x20%0',_0x5cee6e)};}_0x1414db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3202c2=>{if('formatBlock'!=_0x3202c2['type'])return;const {data:_0x5c6c83}=_0x3202c2;if(_0x5c6c83){if('setTableRowHeader'==_0x5c6c83['commandName']){const _0x3c58be=_0x5c6c83['commandParams'][0x0]['forceValue'];return _0x5e2894(At(_0x3ba4b9,_0x3c58be?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5c6c83['commandName']){const _0x4846ba=_0x5c6c83['commandParams'][0x0]['forceValue'];return _0x5e2894(At(_0x3ba4b9,_0x4846ba?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x372529{static get['requires'](){return[Ne];}['afterInit'](){const _0x4f513d=this['editor'];if(!_0x4f513d['plugins']['has']('TableEditing')||!_0x4f513d['config']['get']('table.enableFooters'))return;const _0x2ca81f=_0x4f513d['locale'],_0x5ecad3=_0x4f513d['plugins']['get']('TrackChangesEditing');_0x5ecad3['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x5ecad3['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x2ca81f,'FORMAT_FOOTER_ROW'));}}class we extends _0x372529{['afterInit'](){const _0x3939ba=this['editor'],_0x19ee2c=_0x3939ba['locale'],_0x465a31=_0x3939ba['plugins']['get']('TrackChangesEditing');function _0x4d486c(_0x49a5b1){return{'type':'format','content':''+At(_0x19ee2c,'*Set\x20table\x20type:*\x20%0',_0x49a5b1)};}_0x3939ba['plugins']['has']('TableLayout')&&(_0x465a31['enableCommand']('insertTableLayout'),_0x465a31['enableDefaultAttributesIntegration']('tableType'),_0x465a31['descriptionFactory']['registerElementLabel'](_0x1edc52=>_0x1edc52['is']('element','table')&&'layout'===_0x1edc52['getAttribute']('tableType'),_0x2e8275=>At(_0x19ee2c,'ELEMENT_LAYOUT_TABLE',_0x2e8275)),_0x465a31['descriptionFactory']['registerDescriptionCallback'](_0x355377=>{const {data:_0x1ce3ce}=_0x355377;if(_0x1ce3ce&&'tableType'==_0x1ce3ce['key'])switch(_0x1ce3ce['newValue']){case'layout':return _0x4d486c(At(_0x19ee2c,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4d486c(At(_0x19ee2c,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x12c978=>[_0x12c978,null]));class De extends _0x372529{static get['requires'](){return[Ne];}['afterInit'](){const _0x52e9b4=this['editor'];if(!_0x52e9b4['plugins']['has']('TableClipboard'))return;const _0x1cd3a4=_0x52e9b4['plugins']['get']('TrackChangesEditing'),_0x4df29c=_0x52e9b4['plugins']['get']('TableUtils'),_0x5ef10b=_0x52e9b4['plugins']['get'](Ne),_0x70c6d1=_0x52e9b4['plugins']['get']('TableClipboard'),_0x5b46ee=_0x52e9b4['plugins']['get']('TableSelection'),_0x41b97a=_0x52e9b4['plugins']['get'](ut);_0x5ef10b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x52e9b4['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x52e9b4['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x43de64=null,_0xe74cab=!0x1;_0x41b97a['on']('contentInsertion',(_0x396c47,_0x4633fa)=>{_0xe74cab='paste'===_0x4633fa['method'];}),_0x52e9b4['model']['on']('insertContent',(_0x40c24a,_0x1f0387)=>{if(!_0xe74cab&&null===_0x5b46ee['getSelectedTableCells']())return;const [_0x468c9b,_0x24172f]=_0x1f0387,_0x1d60c4=_0x1f0387[_0x1f0387['length']-0x1];_0x1d60c4&&_0x1d60c4['forceDefaultExecution']||_0x1cd3a4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x230fd6,_0x46fbce,_0x3730e3,_0x38f2ea,_0x3a247e){if(_0x46fbce&&!_0x46fbce['is']('documentSelection'))return!0x1;const _0x101564=_0x3a247e['getTableIfOnlyTableInContent'](_0x230fd6,_0x3730e3);if(!_0x101564||!xe(_0x101564,void 0x0,_0x38f2ea))return!0x1;const _0x25f156=_0x38f2ea['getSelectionAffectedTableCells'](_0x3730e3['document']['selection']);if(!_0x25f156['length'])return!0x1;const _0x260ee0=_0x25f156[0x0]['findAncestor']('table'),_0x9a713=_0x38f2ea['getRowIndexes'](_0x25f156),_0x5066ce=_0x38f2ea['getColumnIndexes'](_0x25f156),_0x39c5d3={'startRow':_0x9a713['first'],'endRow':_0x9a713['last'],'startColumn':_0x5066ce['first'],'endColumn':_0x5066ce['last']};return 0x1==_0x25f156['length']&&(_0x39c5d3['endRow']+=_0x38f2ea['getRows'](_0x101564)-0x1,_0x39c5d3['endColumn']+=_0x38f2ea['getColumns'](_0x101564)-0x1),xe(_0x260ee0,_0x39c5d3,_0x38f2ea);}(_0x468c9b,_0x24172f,_0x52e9b4['model'],_0x4df29c,_0x70c6d1)&&(_0x40c24a['stop'](),_0x43de64={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x52e9b4['model']['change'](()=>{_0x52e9b4['model']['insertContent'](_0x1f0387[0x0],_0x1f0387[0x1],_0x1f0387[0x2],{'forceDefaultExecution':!0x0});const _0x34790d=_0x103bb9(),{rowInsertionRanges:_0x3997b6,columnInsertionRanges:_0xee0d6,insertionRanges:_0x538bb4,deletionRanges:_0x34ce81,cells:_0x25ce7d}=_0x43de64;_0x3997b6['length']&&_0x1cd3a4['markMultiRangeInsertion'](_0x3997b6,'tablePasteRow',{'tablePasteChainId':_0x34790d}),_0xee0d6['length']&&_0x1cd3a4['markMultiRangeInsertion'](_0xee0d6,'tablePasteColumn',{'tablePasteChainId':_0x34790d}),_0x538bb4['length']&&(_0x1cd3a4['markMultiRangeInsertion'](_0x538bb4,'tablePaste',{'tablePasteChainId':_0x34790d,'skipNestingCheck':!0x0}),_0x538bb4['forEach'](_0x193f81=>_0x193f81['detach']?.())),_0x34ce81['length']&&(_0x1cd3a4['markMultiRangeDeletion'](_0x34ce81,'tablePaste',{'tablePasteChainId':_0x34790d,'skipNestingCheck':!0x0}),_0x34ce81['forEach'](_0x21ce21=>_0x21ce21['detach']?.()));const _0x36b1b4=_0x1cd3a4['markMultiRangeBlockFormat'](_0x25ce7d['map'](({element:_0x1bdcaf})=>_0x1bdcaf),{'formatGroupId':_0x103bb9()},[],'tablePasteCell',{'tablePasteChainId':_0x34790d});if(_0x36b1b4){const _0x87d9e5=_0x36b1b4['getMarkers'](),_0x1ff91f=[];for(const {element:_0x2bd547,attributes:_0x5d3ae8}of _0x25ce7d){if(!_0x5d3ae8)continue;const _0x5df2a6=_0x52e9b4['model']['createRangeOn'](_0x2bd547),_0x21dc6e=_0x87d9e5['find'](_0x135dcb=>_0x135dcb['getRange']()['isEqual'](_0x5df2a6));_0x21dc6e&&_0x1ff91f['push']([_0x21dc6e['name'],_0x5d3ae8]);}_0x1ff91f['length']&&_0x36b1b4['setAttribute']('markerAttributes',Object['fromEntries'](_0x1ff91f));}_0x43de64=null;}));},{'priority':_0x1074f0['high']+0xa}),_0x41b97a['on']('contentInsertion',()=>{_0xe74cab=!0x1;},{'priority':'lowest'}),_0x52e9b4['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4cda89,_0x413c1b)=>{const [_0xf72255,_0x34d519,,_0x23438c]=_0x413c1b;if(!_0x43de64)return;_0x4cda89['stop']();const _0x41d79a=_0xf72255['cell'],_0x3f018f=_0x34d519,_0x1786ef=ve(_0x41d79a),_0x559836=ve(_0x3f018f);_0x4cda89['return']=_0x41d79a;let _0x488a97=null,_0x178f54=null;if(_0x559836||_0x1786ef){if(_0x1786ef&&!_0x559836){_0x23438c['remove'](_0x41d79a['getChild'](0x0));for(const _0xd8edf2 of Array['from'](_0x3f018f['getChildren']()))_0x23438c['insert'](_0xd8edf2,_0x41d79a,'end');const _0x529ce5=_0x43de64['rowInsertionIndexes']['includes'](_0xf72255['row']),_0x10a61e=_0x43de64['columnInsertionIndexes']['includes'](_0xf72255['column']);_0x529ce5||_0x10a61e||(_0x488a97=_0xb14de3['fromRange'](_0x23438c['createRangeIn'](_0x41d79a)));}else _0x559836&&!_0x1786ef&&(_0x178f54=_0x23438c['createRangeIn'](_0x41d79a));}else{const _0x41aaca=_0x23438c['createElement']('tableCellSuggestion'),_0x1504fb=_0x23438c['createElement']('tableCellSuggestion');_0x23438c['wrap'](_0x23438c['createRangeIn'](_0x41d79a),_0x1504fb),_0x23438c['insert'](_0x41aaca,_0x41d79a,0x0);for(const _0x433f15 of Array['from'](_0x3f018f['getChildren']()))_0x23438c['insert'](_0x433f15,_0x41aaca,'end');_0x488a97=_0xb14de3['fromRange'](_0x23438c['createRangeOn'](_0x41aaca)),_0x178f54=_0xb14de3['fromRange'](_0x23438c['createRangeOn'](_0x1504fb));}const _0x4224db=Array['from'](_0x3f018f['getAttributes']())['filter'](([_0x39d103])=>Be['includes'](_0x39d103));_0x43de64['cells']['push']({'element':_0x41d79a,'attributes':_0x4224db['length']?Object['fromEntries'](_0x4224db):null}),_0x488a97&&_0x43de64['insertionRanges']['push'](_0x488a97),_0x178f54&&_0x43de64['deletionRanges']['push'](_0x178f54);},{'priority':'high'}),_0x4df29c['on']('insertColumns',(_0x835a43,_0x3c66c7)=>{const [_0x165980,_0x4a5d9b={}]=_0x3c66c7;if(!_0x43de64)return;const _0x2509b4=_0x4a5d9b['at']||0x0,_0x1de881=_0x4a5d9b['columns']||0x1;_0x43de64['columnInsertionIndexes']=new Array(_0x1de881)['fill'](_0x2509b4)['map']((_0x363d98,_0x99c2de)=>_0x363d98+_0x99c2de);for(const {cell:_0x5e6449}of _0x4df29c['createTableWalker'](_0x165980,{'startColumn':_0x2509b4,'endColumn':_0x2509b4+_0x1de881-0x1}))_0x43de64['columnInsertionRanges']['push'](_0x52e9b4['model']['createRangeOn'](_0x5e6449));},{'priority':'low'}),_0x4df29c['on']('insertRows',(_0x32825a,_0x53700c)=>{const [_0x2542f0,_0x4507e4={}]=_0x53700c;if(!_0x43de64)return;const _0x25b4bd=_0x4507e4['at']||0x0,_0x26510a=_0x4507e4['rows']||0x1;_0x43de64['rowInsertionIndexes']=new Array(_0x26510a)['fill'](_0x25b4bd)['map']((_0x4203aa,_0x3b9b98)=>_0x4203aa+_0x3b9b98);for(const {cell:_0x16d811}of _0x4df29c['createTableWalker'](_0x2542f0,{'startRow':_0x25b4bd,'endRow':_0x25b4bd+_0x26510a-0x1}))_0x43de64['rowInsertionRanges']['push'](_0x52e9b4['model']['createRangeOn'](_0x16d811));},{'priority':'low'}),_0x1cd3a4['descriptionFactory']['registerDescriptionCallback'](_0x156105=>{if(_0x156105['subType']&&_0x156105['subType']['startsWith']('tablePaste'))return _0x156105['previous']?{}:{'type':'insertion','content':At(_0x52e9b4['locale'],'*Replace\x20table\x20cells*')};});const _0x442755=()=>!0x1;for(const _0x5a727f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1cd3a4['_suggestionFactory']['registerCustomCallback']('insertion',_0x5a727f,'join',_0x442755),_0x1cd3a4['_suggestionFactory']['registerCustomCallback']('deletion',_0x5a727f,'join',_0x442755),_0x1cd3a4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5a727f,'join',_0x442755);_0x1cd3a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x442755),_0x1cd3a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x50d0a8,_0x4ab6be,_0x398e88)=>{const _0x3f1605=_0x50d0a8['map'](_0xa80eb1=>_0xa80eb1['getContainedElement']())['filter'](_0x15cf51=>_0x15cf51),_0x5f36bc=new Map(_0x3f1605['map'](_0xfdd640=>[_0xfdd640,null]));if(_0x43de64){for(const {element:_0x112c7c,attributes:_0x21bd9a}of _0x43de64['cells'])_0x21bd9a&&_0x5f36bc['set'](_0x112c7c,_0x21bd9a);}else{if(_0x398e88&&_0x398e88['markerAttributes'])for(const [_0x26fb74,_0x4a833c]of Object['entries'](_0x398e88['markerAttributes'])){const _0x53bd82=_0x52e9b4['model']['markers']['get'](_0x26fb74),_0x1f8ca1=_0x53bd82?_0x53bd82['getRange']()['getContainedElement']():null;_0x1f8ca1&&_0x5f36bc['set'](_0x1f8ca1,_0x4a833c);}}_0x52e9b4['model']['change'](_0x472cb0=>{for(const [_0x5ea95a,_0x5c7339]of _0x5f36bc)_0x472cb0['setAttributes']({...Fe,..._0x5c7339},_0x5ea95a);});});const _0x38233a=(_0x4af5af,_0x4dd938)=>{_0x1cd3a4['_suggestionFactory']['registerCustomCallback'](_0x4af5af,'tablePaste',_0x4dd938,(_0x5936bd,_0x3ebff1,_0x244d8d)=>{_0x52e9b4['model']['change'](_0x3ae6f2=>{const _0x1590c4=[];for(const _0x1e36d3 of _0x5936bd){const _0x27674d=_0x1e36d3['start']['nodeAfter'];_0x27674d['is']('element','tableCellSuggestion')&&_0x1590c4['push'](_0x27674d);}_0x1cd3a4['_suggestionFactory']['getSuggestionCallback'](_0x4af5af,null,_0x4dd938)(_0x5936bd,_0x3ebff1,_0x244d8d);for(const _0x286a68 of _0x1590c4)'$graveyard'!=_0x286a68['root']['rootName']&&_0x3ae6f2['unwrap'](_0x286a68);});});};_0x38233a('insertion','accept'),_0x38233a('insertion','discard'),_0x38233a('deletion','accept'),_0x38233a('deletion','discard'),_0x1cd3a4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x18c3de=>{const _0x1a07e8=_0x18c3de['map'](_0x3cb3ec=>_0x3cb3ec['getContainedElement']()),_0x45312f=_0x1a07e8[0x0]['findAncestor']('table'),{minRow:_0x4a1927,maxRow:_0x166f2a}=_0x5ef10b['_getCoordsForCells'](_0x1a07e8);_0x4df29c['removeRows'](_0x45312f,{'at':_0x4a1927,'rows':_0x166f2a-_0x4a1927+0x1});}),_0x1cd3a4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x216825=>{const _0x265ae0=_0x216825['map'](_0x28f167=>_0x28f167['getContainedElement']()),_0x258291=_0x265ae0[0x0]['findAncestor']('table'),{minColumn:_0x58d84e,maxColumn:_0x39dd60}=_0x5ef10b['_getCoordsForCells'](_0x265ae0);_0x4df29c['removeColumns'](_0x258291,{'at':_0x58d84e,'columns':_0x39dd60-_0x58d84e+0x1});});const _0xee0da3=(_0x437bd5,_0x3e5a21)=>{if(!_0x3e5a21['subType']||!_0x3e5a21['subType']['startsWith']('tablePaste'))return;const _0x4e6887=_0x3e5a21['attributes']['tablePasteChainId'],_0x4dcd05=_0x1cd3a4['getSuggestions']()['filter'](_0xbb2bba=>_0xbb2bba['isInContent']&&_0xbb2bba['attributes']&&_0xbb2bba['attributes']['tablePasteChainId']==_0x4e6887);_0x4dcd05['length']&&_0x3e5a21['getAllAdjacentSuggestions']()['length']!=_0x4dcd05['length']&&_0x4dcd05['reduce']((_0x17ad2f,_0x40b2a)=>(_0x17ad2f['next']=_0x40b2a,_0x40b2a['previous']=_0x17ad2f,_0x40b2a));};function _0x5b346f(_0x407772,_0x57f6bb=!0x0){const {id:_0x130d70,authorId:_0x3fc312}=_0x4a9b4b(_0x407772['markerName']),_0x20d7d7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2c87b1=_0x1cd3a4['activeMarkers']['includes'](_0x407772['markerName']);return _0x2c87b1&&_0x20d7d7['push']('ck-suggestion-marker--active'),{'classes':_0x20d7d7,'attributes':{'data-suggestion':_0x130d70,'data-author-id':_0x3fc312},'priority':_0x2c87b1&&_0x57f6bb?0xbc2:0xbb8};}_0x1cd3a4['on']('suggestionLoaded',_0xee0da3,{'priority':'high'}),_0x1cd3a4['on']('suggestionUnloaded',_0xee0da3,{'priority':'high'}),_0x52e9b4['model']['document']['registerPostFixer'](()=>{let _0x4e0cc1=!0x1;const _0x139d4b=Array['from'](_0x52e9b4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x334f61,data:_0x4a82db}of _0x139d4b){const {group:_0x32cbda,type:_0x3ef489,id:_0x693e72}=_0x4a9b4b(_0x334f61);if('suggestion'!=_0x32cbda||'deletion'!=_0x3ef489||_0x4a82db['oldRange'])continue;if(!_0x1cd3a4['hasSuggestion'](_0x693e72))continue;const _0x24a4ae=_0x1cd3a4['getSuggestion'](_0x693e72)['getRanges'](),_0x6978c=_0x52e9b4['plugins']['get']('Users')['me'];for(const _0x1fab04 of _0x1cd3a4['getSuggestions']()){if(!_0x1fab04['isInContent']||_0x1fab04['author']!=_0x6978c)continue;if('formatBlock'!=_0x1fab04['type']||'tablePasteCell'!=_0x1fab04['subType'])continue;if(_0x1fab04['getRanges']()['every'](_0x30038d=>_0x24a4ae['some'](_0x21e05a=>_0x21e05a['containsRange'](_0x30038d,!0x0)))){for(const _0x175cc6 of _0x1fab04['getAllAdjacentSuggestions']())_0x175cc6['isInContent']&&(_0x175cc6['discard'](),_0x4e0cc1=!0x0);}}}return _0x4e0cc1;}),_0x52e9b4['model']['document']['registerPostFixer'](_0x565cc3=>{const _0x2ac794=_0x52e9b4['commands']['get']('redo');if(!_0x2ac794||!_0x2ac794['_createdBatches']['has'](_0x565cc3['batch']))return!0x1;let _0x4198f4=!0x1;const _0x2b5631=_0x52e9b4['plugins']['get']('Users')['me'],_0x56ca35=_0x52e9b4['model']['document']['differ']['getChanges'](),_0x3bb1f8=Array['from'](_0x52e9b4['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x327c04,data:_0x3d4418})=>{const {group:_0x1cb7cb,subType:_0x4b2bda,authorId:_0x596c1c}=_0x4a9b4b(_0x327c04);return'suggestion'==_0x1cb7cb&&'tablePaste'==_0x4b2bda&&_0x596c1c==_0x2b5631['id']&&!_0x3d4418['oldRange'];});for(const _0x5eb169 of _0x56ca35){if('insert'!=_0x5eb169['type']||'tableCellSuggestion'!=_0x5eb169['name']||0x1!=_0x5eb169['length'])continue;const _0x163a9a=_0x565cc3['createRange'](_0x5eb169['position'],_0x5eb169['position']['getShiftedBy'](0x1));if(!_0x3bb1f8['find'](({data:_0x25022c})=>_0x25022c['newRange']['isEqual'](_0x163a9a))){for(const {name:_0x57ea98,data:_0x3f19}of _0x3bb1f8)if(_0x163a9a['containsRange'](_0x3f19['newRange'])){_0x565cc3['updateMarker'](_0x57ea98,{'range':_0x163a9a}),_0x4198f4=!0x0;break;}}}return _0x4198f4;}),_0x52e9b4['model']['document']['registerPostFixer'](_0x51e8f6=>{let _0x92d6f3=!0x1;const _0x299eda=_0x52e9b4['plugins']['get']('Users')['me'],_0x517773=_0x1cd3a4['getSuggestions']()['filter'](_0x498100=>_0x498100['isInContent']&&_0x498100['author']==_0x299eda),_0xbff57e=new Set(),_0x3b08a0=new Set();for(const _0x5d8c8a of _0x517773)if('tablePaste'==_0x5d8c8a['subType'])for(const _0x330bd2 of _0x5d8c8a['getMarkers']()){const _0x55cbbc=_0x330bd2['getRange']()['getContainedElement']();if(_0x55cbbc){if(_0x55cbbc['is']('element','tableCellSuggestion')&&ve(_0x55cbbc)){_0x5d8c8a['removeMarker'](_0x330bd2['name']),_0xbff57e['add'](_0x55cbbc),_0x92d6f3=!0x0;const _0x316bc3=_0x55cbbc['nextSibling'],_0x18804e=_0x55cbbc['previousSibling'],_0x229879=_0x316bc3&&_0x316bc3['is']('element','tableCellSuggestion'),_0x363b82=_0x18804e&&_0x18804e['is']('element','tableCellSuggestion');_0x229879&&!_0xbff57e['has'](_0x316bc3)&&_0x3b08a0['add'](_0x316bc3),_0x363b82&&!_0xbff57e['has'](_0x18804e)&&_0x3b08a0['add'](_0x18804e);}else _0x55cbbc['is']('element','paragraph')&&_0x55cbbc['isEmpty']&&(_0x5d8c8a['removeMarker'](_0x330bd2['name']),_0x92d6f3=!0x0);}}else{if('tablePasteCell'==_0x5d8c8a['subType']){if(!_0x5d8c8a['attributes']||!_0x5d8c8a['attributes']['tablePasteChainId'])continue;const _0x57392b=_0x5d8c8a['attributes']['markerAttributes'];if(_0x57392b&&Object['keys'](_0x57392b)['length'])continue;const _0x3c0168=_0x5d8c8a['attributes']['tablePasteChainId'];let _0x49279a=!0x0,_0x2c1186=!0x0;for(const _0x194968 of _0x517773)if(_0x194968['subType']&&_0x194968['subType']['startsWith']('tablePaste')){if(!_0x194968['attributes']['tablePasteChainId']){_0x2c1186=!0x1;break;}if(_0x194968['id']!=_0x5d8c8a['id']&&_0x194968['attributes']['tablePasteChainId']==_0x3c0168){_0x49279a=!0x1;break;}}_0x2c1186&&_0x49279a&&(_0x5d8c8a['removeMarkers'](),_0x92d6f3=!0x0);}}for(const _0x40e148 of _0xbff57e)_0x51e8f6['remove'](_0x40e148);for(const _0x252ddd of _0x3b08a0)_0x51e8f6['unwrap'](_0x252ddd);return _0x92d6f3;}),_0x52e9b4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x41c028=>_0x5b346f(_0x41c028),'converterPriority':'high'}),_0x52e9b4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4afada,_0x36a14f)=>_0x36a14f['options']['showSuggestionHighlights']?_0x5b346f(_0x4afada,!0x1):null,'converterPriority':'high'});const _0x7a7ebf=_0x52e9b4['editing']['view'];this['listenTo'](_0x7a7ebf['document'],'clipboardOutput',(_0x3adfbf,_0x4501ed)=>{const _0x7a9072=[];for(const _0x27bfab of _0x7a7ebf['createRangeIn'](_0x4501ed['content'])['getItems']())_0x27bfab['is']('element','suggestion-td')&&_0x7a9072['push'](_0x27bfab);_0x7a7ebf['change'](_0x189ba5=>{for(const _0x9d8066 of _0x7a9072)_0x189ba5['move'](_0x189ba5['createRangeIn'](_0x9d8066),_0x189ba5['createPositionBefore'](_0x9d8066)),_0x189ba5['remove'](_0x9d8066);});});}}function ve(_0x486ef4){if(_0x486ef4['isEmpty'])return!0x0;const _0x56b927=_0x486ef4['getChild'](0x0);return _0x56b927['is']('element','paragraph')&&_0x56b927['isEmpty'];}function xe(_0x3b1c46,_0x3487ed={},_0x31adf9){for(const {isAnchor:_0xea1b1e,cellHeight:_0x424f36,cellWidth:_0x24b9cc}of _0x31adf9['createTableWalker'](_0x3b1c46,{'includeAllSlots':!0x0,..._0x3487ed}))if(!_0xea1b1e||0x1!=_0x424f36||0x1!=_0x24b9cc)return!0x1;return!0x0;}class Pe extends _0x372529{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x53deee=this['editor']['plugins']['get']('TrackChangesEditing');_0x53deee['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x53deee['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x53deee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x53deee['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x53deee['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x53deee['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x780290,_0x59ede3){const _0x5a3f74=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14ed30=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4cc61d=_0x59ede3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x58a46a=_0x14ed30['getColumnGroupElement'](_0x4cc61d);let _0x17422=_0x58a46a?_0x14ed30['getTableColumnsWidths'](_0x58a46a):null,_0x3bc599=_0x4cc61d['getAttribute']('tableWidth')||null;const _0x2f6fde=_0x59ede3['tableWidth']||_0x3bc599,_0x55e878=_0x59ede3['columnWidths']||_0x17422,_0x51eeee=this['editor']['plugins']['get']('Users')['me'];for(const _0x5ce600 of _0x5a3f74['getSuggestions']()){const _0x12fadb=_0x5ce600['getContainedElement']();if('resizeTable'===_0x5ce600['subType']&&_0x12fadb===_0x4cc61d){_0x5ce600['author']!==_0x51eeee&&_0x5ce600['discard']();const _0x24f886=_0x5ce600['data']['commandParams'];_0x3bc599=_0x24f886[0x0]['tableWidth'],_0x17422=_0x24f886[0x0]['columnWidths'];break;}}_0x780290({'table':_0x4cc61d,'tableWidth':_0x2f6fde,'columnWidths':_0x55e878}),_0x5a3f74['markBlockFormat'](_0x4cc61d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3bc599,'columnWidths':_0x17422}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3b5c0b){if('formatBlock'!=_0x3b5c0b['type']&&'formatInline'!=_0x3b5c0b['type'])return;const {data:_0x86aa43}=_0x3b5c0b;if(_0x86aa43&&'resizeTable'===_0x86aa43['formatGroupId']){const _0x4aaf9f='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x4aaf9f)};}}}class Ue extends _0x372529{['afterInit'](){const _0x3370d8=this['editor'];_0x3370d8['plugins']['has']('Template')&&_0x3370d8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x372529{['afterInit'](){const _0x4aae00=this['editor'];if(!_0x4aae00['commands']['get']('insertTableOfContents'))return;_0x4aae00['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x36c32f=_0x4aae00['plugins']['get']('TrackChangesEditing'),_0x13abcd=_0x4aae00['locale'];_0x36c32f['descriptionFactory']['registerElementLabel']('tableOfContents',_0xe3fc33=>At(_0x13abcd,'ELEMENT_TABLE_OF_CONTENTS',_0xe3fc33));}}class He extends _0x372529{['afterInit'](){const _0xcbb09c=this['editor'];if(!_0xcbb09c['plugins']['has']('Title'))return;_0xcbb09c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0xcbb09c['locale'],'ELEMENT_TITLE')),_0xcbb09c['model']['document']['registerPostFixer'](_0x4a226e=>{let _0x440228=!0x1;const _0x4f999a=Array['from'](_0xcbb09c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4aaa3c,data:_0x3d8be1}of _0x4f999a){const {group:_0x2e571f}=_0x4a9b4b(_0x4aaa3c);if('suggestion'!==_0x2e571f||!_0x3d8be1['newRange'])continue;const _0x34b7bc=_0x3d8be1['newRange'],_0x1b4c81=_0x34b7bc['end']['nodeBefore'];if(!_0x1b4c81||!_0x1b4c81['is']('element','title-content'))continue;if(!_0x34b7bc['start']['isTouching'](_0x34b7bc['end']))continue;const _0x52fcec=_0xcbb09c['model']['schema']['getNearestSelectionRange'](_0x34b7bc['end'],'forward');if(_0x52fcec&&_0x52fcec['isCollapsed']){const _0x196d6c=_0x4a226e['createRange'](_0x34b7bc['start'],_0x52fcec['start']);_0x196d6c['isEqual'](_0x34b7bc)||(_0x4a226e['updateMarker'](_0x4aaa3c,{'range':_0x196d6c}),_0x440228=!0x0);}_0x440228||(_0x4a226e['removeMarker'](_0x4aaa3c),_0x440228=!0x0);}return _0x440228;});}}class $e extends _0x372529{['afterInit'](){const _0x4ff3ee=this['editor'],_0x4b0a4a=_0x4ff3ee['plugins']['get']('TrackChangesEditing');_0x4ff3ee['plugins']['has']('Uploadcare')&&(_0x4b0a4a['enableCommand']('uploadcare'),_0x4ff3ee['plugins']['has']('UploadcareImageEdit')&&(_0x4b0a4a['enableCommand']('uploadcareImageEdit'),_0x4b0a4a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4b0a4a['descriptionFactory']['registerDescriptionCallback'](_0xfc515e=>{if('attribute'!=_0xfc515e['type'])return;const {data:_0x1ab1df}=_0xfc515e;return _0x1ab1df&&'uploadcareImageId'==_0x1ab1df['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x372529{['afterInit'](){const _0x4b9219=this['editor'],_0x59fd1b=_0x4b9219['plugins']['get']('TrackChangesEditing');_0x4b9219['plugins']['has']('UndoEditing')&&(_0x59fd1b['enableCommand']('undo'),_0x59fd1b['enableCommand']('redo'));}}class Ve extends _0x372529{static get['requires'](){return[Ne];}['afterInit'](){const _0x429b26=this['editor'];if(!_0x429b26['plugins']['has']('TableCaptionEditing'))return;_0x429b26['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x372529{['tableProperties'];['tableCellProperties'];constructor(_0x2f67c7){super(_0x2f67c7),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 _0x5ba5f1=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x19baeb of this['tableProperties'])_0x5ba5f1['enableCommand'](_0x19baeb,(_0x581dad,_0x3d0924)=>{const _0xd14e63=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x19baeb,[_0xd14e63],this['tableProperties'],'tableProperties',_0x581dad,_0x3d0924);});_0x5ba5f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5ba5f1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ba5f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3559c2,_0x153ab6)=>this['handleDiscardAction'](this['tableProperties'],_0x3559c2,_0x153ab6)),_0x5ba5f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x32e9d4 of this['tableCellProperties'])this['editor']['commands']['get'](_0x32e9d4)&&_0x5ba5f1['enableCommand'](_0x32e9d4,(_0x4a5fb8,_0xc2385f)=>{const _0x5d1547=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x32e9d4,_0x5d1547,this['tableCellProperties'],'tableCellProperties',_0x4a5fb8,_0xc2385f);});_0x5ba5f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5ba5f1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ba5f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x35712c,_0x44047c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x35712c,_0x44047c)),_0x5ba5f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x5ba5f1['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x5ba5f1['descriptionFactory']['registerDescriptionCallback'](_0x2a22e3=>this['handleSuggestionDescription'](_0x2a22e3)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1f1366,_0x20b951,_0x57947e,_0xcffb8d,_0x445adc,_0x3164b7){const _0xa8c340=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3164b7['batch'],()=>{for(const _0xaa5d1f of _0x20b951){if(this['_getSuggestion'](_0xaa5d1f,_0xcffb8d))_0x445adc(_0x3164b7);else{const _0x4e5ff2={};for(const _0x42ca01 of _0x57947e){const _0x17030a=_0xaa5d1f['getAttribute'](_0x42ca01);void 0x0!==_0x17030a&&(_0x4e5ff2[_0x42ca01]=_0x17030a);}_0x445adc(_0x3164b7),_0xa8c340['markBlockFormat'](_0xaa5d1f,{'commandParams':[_0x4e5ff2]},[],_0xcffb8d);}}});}['handleDiscardAction'](_0x1fe26a,_0x5c3eca,_0x53d09f){const _0x24fe97=_0x5c3eca[0x0]['start']['nodeAfter'],_0x337eb7=_0x53d09f['commandParams'][0x0];this['editor']['model']['change'](_0x4ccf1e=>{for(const _0x4140fc of _0x1fe26a)void 0x0!==_0x337eb7[_0x4140fc]?_0x4ccf1e['setAttribute'](_0x4140fc,_0x337eb7[_0x4140fc],_0x24fe97):_0x4ccf1e['removeAttribute'](_0x4140fc,_0x24fe97);});}['handleSuggestionDescription'](_0x533c0b){if(_0x533c0b['data'])switch(_0x533c0b['subType']){case'tableProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4cc899,_0x3ac194){const _0x4aaafa=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x17dbb9 of _0x4aaafa['getSuggestions']({'skipNotAttached':!0x0})){const _0x4a67cd=_0x17dbb9['getContainedElement']();if(_0x17dbb9['subType']===_0x3ac194&&_0x4a67cd===_0x4cc899)return _0x17dbb9;}return null;}['_registerTablePropertiesAttributes'](){const _0x363c19=this['editor']['plugins']['get']('TrackChangesEditing'),_0x101c1f=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x199b7d of _0x101c1f){const _0x58494c=_0x199b7d['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x363c19['descriptionFactory']['registerAttributeLabel'](_0x199b7d,At(this['editor']['locale'],'FORMAT_'+_0x58494c));}}}class ze extends _0x372529{['afterInit'](){const _0x2c869d=this['editor'];if(!_0x2c869d['plugins']['has']('LineHeight'))return;const _0xa1e8f1=_0x2c869d['plugins']['get']('TrackChangesEditing'),_0x30cfe4=_0x2c869d['locale'];_0xa1e8f1['enableDefaultAttributesIntegration']('lineHeight'),_0xa1e8f1['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x30cfe4,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x372529{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x1b50ae,_0x54fb01,_0x574963,_0x457507,_0xea4cf3,Ct,yt,Nt,Rt,Mt,Ot,Bt,Dt,Ft,vt,Pt,Ut,jt,zt,Kt,Yt,qt,Qt,Jt,te,ee,ne,ie,re,se,oe,ae,ce,ue,fe,Te,le,Gt,ze,$t,ge,me,Ee,_e,pe,Le,Ie,be,Ae,Ce,ye,Ne,Se,Me,Oe,we,Ve,De,Pe,Ge,je,Ue,He,$e,We];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f87d3){super(_0x4f87d3),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x530e06,_0x26b8e0,_0x387c32,_0x197dd2)=>{this['_model']['change'](()=>{for(const _0x2145b5 of[..._0x197dd2,..._0x387c32])this['_model']['markers']['has'](_0x2145b5)&&_0x4f87d3['editing']['reconvertMarker'](_0x2145b5);});}),this['descriptionFactory']=new kt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ye(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4f87d3['plugins']['get'](_0x1b50ae),this['_suggestionsConversion']=_0x4f87d3['plugins']['get'](_0x54fb01),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4f87d3['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4f87d3['config']['get']('trackChanges.trackFormatChanges'),_0x4f87d3['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4f87d3['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x4f87d3,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x332c5=this['editor'];_0x332c5['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x33d314,{writer:_0x2f8bea})=>{let _0x310e00='suggestion:'+_0x33d314['getAttribute']('suggestion-type')+':'+_0x33d314['getAttribute']('id');return _0x33d314['getAttribute']('marker-count')&&(_0x310e00+=':'+_0x33d314['getAttribute']('marker-count')),_0x2f8bea['createElement']('$marker',{'data-name':_0x310e00});}}),_0x332c5['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x332c5['model']['document']['registerPostFixer'](_0x243d98=>{let _0x5e66c3=!0x1;const _0x50da55=Array['from'](_0x332c5['model']['document']['differ']['getChangedMarkers']()),_0x40dd7b=new Set();for(const {name:_0x273d2f,data:_0x2e429d}of _0x50da55){const {group:_0x2b6372,type:_0x251414,subType:_0x39cee0,id:_0x2e9d89}=_0x4a9b4b(_0x273d2f);if('suggestion'!==_0x2b6372)continue;const _0x274a21=_0x39cee0?'suggestion:'+_0x251414+':'+_0x39cee0+':'+_0x2e9d89:'suggestion:'+_0x251414+':'+_0x2e9d89,_0x595400=_0x332c5['model']['markers']['getMarkersGroup'](_0x274a21),_0x3b5d58=_0x332c5['model']['markers']['get'](_0x273d2f),_0x582836=this['_suggestions']['get'](_0x2e9d89);if(null!=_0x2e429d['newRange']){'formatInline'==_0x251414&&(_0x5e66c3=_0x5e66c3||Ze(_0x2e429d['newRange'],_0x273d2f,_0x243d98,_0x332c5['model']['schema']));const _0x2f5615='attribute'==_0x251414&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x39cee0)),_0x2741db='attribute'==_0x251414&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x39cee0));if(_0x2e429d['newRange']['isCollapsed']||'$graveyard'==_0x2e429d['newRange']['root']['rootName']||'formatBlock'==_0x251414&&!tn(_0x2e429d['newRange'])||_0x2f5615&&!tn(_0x2e429d['newRange'])||_0x2741db&&en(_0x2e429d['newRange'])||'deletion'==_0x251414&&en(_0x2e429d['newRange'])||_0x3b5d58&&nn(_0x3b5d58,_0x595400))_0x243d98['removeMarker'](_0x273d2f),_0x5e66c3=!0x0;else{if(!_0x582836||!_0x582836['isInContent'])continue;if(_0x2e429d['newRange']&&_0x2e429d['oldRange']&&_0x2e429d['newRange']['isEqual'](_0x2e429d['oldRange']))continue;_0x40dd7b['add'](_0x582836);}}}return _0x40dd7b['size']>0x0&&(_0x5e66c3=!!this['_joinWithAdjacentSuggestions'](_0x40dd7b)||_0x5e66c3),_0x5e66c3;}),_0x332c5['model']['document']['registerPostFixer'](_0x4773d2=>{let _0x642af9=!0x1;for(const _0x41af79 of _0x332c5['model']['document']['differ']['getChanges']())if('insert'==_0x41af79['type'])for(const _0x175ae5 of this['_suggestions']['values']()){if(_0x175ae5['isMultiRange']||!_0x175ae5['isInContent'])continue;const _0x2f6ae2='formatBlock'==_0x175ae5['type'],_0x4ea1f7=this['_getAttributeKey'](_0x175ae5),_0x38a55f=_0x4ea1f7&&this['_suggestionsConversion']['isBlockAttribute'](_0x4ea1f7);if(!_0x2f6ae2&&!_0x38a55f)continue;const _0x5672ed=_0x175ae5['getFirstRange']();if(_0x5672ed['start']['parent']!=_0x5672ed['end']['parent']&&!_0x5672ed['end']['isAtEnd']){const _0x183df8=_0x332c5['model']['createPositionAt'](_0x5672ed['start']['nodeAfter'],'end'),_0x320e08=_0x332c5['model']['createRange'](_0x5672ed['start'],_0x183df8);_0x4773d2['updateMarker'](_0x175ae5['getFirstMarker'](),{'range':_0x320e08}),_0x642af9=!0x0;}}return _0x642af9;}),_0x332c5['model']['document']['registerPostFixer'](_0x1eedf1=>this['_processAttributeChanges'](_0x1eedf1)),_0x332c5['model']['document']['registerPostFixer'](_0x5500b1=>!_0x5500b1['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5500b1)),_0x332c5['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x332c5['model']['document']['on']('change:data',(_0x32a6d1,_0x5c9f33)=>{if(!_0x5c9f33['isLocal']||_0x5c9f33['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x29b549=_0x332c5['model']['document']['differ']['getChanges']();if(0x0==_0x29b549['length'])return;const _0x121fa1=[],_0x4af12c=_0x29b549['filter'](_0x5a2f62=>'attribute'==_0x5a2f62['type']),_0x2fc699=_0x29b549['filter'](_0x420ae9=>'insert'==_0x420ae9['type']&&'$text'!=_0x420ae9['name']);for(const _0x474dc2 of _0x4af12c)this['_suggestionsConversion']['isRegisteredAttribute'](_0x474dc2['attributeKey'])&&_0x121fa1['push']({'key':_0x474dc2['attributeKey'],'newValue':_0x474dc2['attributeNewValue'],'oldValue':_0x474dc2['attributeOldValue'],'range':sn(_0x474dc2['range'],_0x332c5['model'])});for(const _0x1734d1 of _0x2fc699){if('rename'!=_0x1734d1['action']&&'refresh'!=_0x1734d1['action'])continue;const _0x3112b2=rn(_0x1734d1['position']['nodeAfter'],_0x332c5['model']),_0x384775=_0x1734d1['before'];'rename'==_0x1734d1['action']&&_0x121fa1['push']({'key':Ke,'newValue':_0x1734d1['name'],'oldValue':_0x384775['name'],'range':_0x3112b2});for(const [_0x363490,_0x426d9f]of _0x384775['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x363490))continue;const _0x58e8d3=_0x1734d1['attributes']['get'](_0x363490);_0x426d9f!==_0x58e8d3&&_0x121fa1['push']({'key':_0x363490,'newValue':_0x58e8d3,'oldValue':_0x426d9f,'range':_0x3112b2});}for(const [_0x312aed,_0x366ed6]of _0x1734d1['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x312aed)&&(_0x384775['attributes']['has'](_0x312aed)||_0x121fa1['push']({'key':_0x312aed,'newValue':_0x366ed6,'oldValue':null,'range':_0x3112b2}));}0x0!=_0x121fa1['length']&&_0x332c5['model']['enqueueChange'](_0x5c9f33,_0x144dc0=>{const _0x5e73df=_0x103bb9();for(const {range:_0x18a819,key:_0x58e9d7,oldValue:_0x17648a,newValue:_0x2ddead}of _0x121fa1)this['markAttributeChange'](_0x18a819,_0x58e9d7,_0x17648a,_0x2ddead,{'groupId':_0x5e73df});this['_reduceExistingSuggestions'](_0x144dc0,_0x121fa1);});},{'priority':'lowest'}),_0x332c5['model']['markers']['on']('update:suggestion',(_0xb2fe86,_0x411b78,_0x558de2)=>{if(null==_0x558de2){const {id:_0x2b84cb}=_0x4a9b4b(_0x411b78['name']),_0x902643=this['_suggestions']['get'](_0x2b84cb);_0x902643&&_0x902643['addMarkerName'](_0x411b78['name']);}}),_0x332c5['model']['document']['on']('change:data',()=>{const _0xcee822=Array['from'](_0x332c5['model']['document']['differ']['getChangedMarkers']())['filter'](_0x315829=>'suggestion'===_0x4a9b4b(_0x315829['name'])['group']);if(0x0===_0xcee822['length'])return;_0xcee822['sort']((_0x1079aa,_0x1dc1a4)=>{const _0x1bfc38=_0x1079aa['data']['oldRange'],_0xe86507=_0x1dc1a4['data']['oldRange'];return null===_0x1bfc38&&null===_0xe86507?0x0:null===_0x1bfc38&&null!==_0xe86507?-0x1:null!==_0x1bfc38&&null===_0xe86507?0x1:_0x1bfc38['start']['isBefore'](_0xe86507['start'])?-0x1:0x1;});const _0x4741f4=new Set(),_0x51c19d=new Set();for(const {name:_0x3f611e,data:_0x15d3ee}of _0xcee822){const {id:_0x726d7d}=_0x4a9b4b(_0x3f611e);if(null===_0x15d3ee['oldRange']){const _0x213c6a=this['_handleNewSuggestionMarker'](_0x3f611e);_0x51c19d['add'](_0x213c6a);}else{const _0x57bd46=this['_suggestions']['get'](_0x726d7d);null!==_0x15d3ee['newRange']||_0x57bd46['isInContent']?(_0x4741f4['add'](_0x57bd46['head']),_0x51c19d['add'](_0x57bd46)):this['_removeSuggestion'](_0x57bd46);}}_0x51c19d['size']>0x0&&this['_refreshSuggestionsChain'](_0x51c19d);for(const _0x2d44b0 of _0x4741f4)this['fire']('suggestionChanged',_0x2d44b0);}),_0x332c5['model']['on']('applyOperation',(_0x82d384,_0xaf18d5)=>{const _0x3d5df0=_0xaf18d5[0x0];if(!this['_suggestions']['size'])return;if(!_0x3d5df0['isDocumentOperation'])return;if(_0x3d5df0['batch']['isUndo']||!_0x3d5df0['batch']['isLocal'])return;let _0x25dc90,_0x563f38;switch(_0x3d5df0['type']){case'insert':_0x25dc90=_0x332c5['model']['createPositionAt'](_0x3d5df0['position']),_0x563f38=_0x25dc90['getShiftedBy'](_0x3d5df0['howMany']);break;case'split':_0x25dc90=_0x332c5['model']['createPositionAt'](_0x3d5df0['splitPosition']),_0x563f38=_0x332c5['model']['createPositionAt'](_0x3d5df0['moveTargetPosition']);break;case'move':_0x25dc90=_0x332c5['model']['createPositionAt'](_0x3d5df0['targetPosition']),_0x563f38=_0x25dc90['getShiftedBy'](_0x3d5df0['howMany']);break;default:return;}const _0x2e688f=_0x332c5['model']['createRange'](_0x25dc90,_0x563f38);_0x332c5['model']['change'](()=>{for(const {suggestion:_0xf71fca,meta:_0x7b2dc3}of this['_findSuggestions'](_0x2e688f)){if(_0xf71fca['isMultiRange'])continue;if('formatInline'==_0xf71fca['type'])continue;const _0x5aec86=this['_getAttributeKey'](_0xf71fca);if(_0x5aec86&&this['_suggestionsConversion']['isBlockAttribute'](_0x5aec86)&&'split'!=_0x3d5df0['type'])continue;const _0xfd1a63=_0xf71fca['data']&&_0xf71fca['data']['multipleBlocks'];('formatBlock'!=_0xf71fca['type']||'split'==_0x3d5df0['type']&&!_0xfd1a63)&&(_0x7b2dc3['containsRangeInObject']||'insertion'==_0xf71fca['type']&&_0x7b2dc3['isOwn']||_0xf71fca['getFirstRange']()['containsRange'](_0x2e688f)&&this['_breakSuggestionMarker'](_0xf71fca,_0x25dc90,_0x563f38));}});},{'priority':'lowest'}),_0x332c5['model']['on']('deleteContent',(_0x4a60e2,_0x103cdb)=>{const _0x461fa0=_0x103cdb[0x0],_0x12f7f3=_0x103cdb[0x1];if(_0x12f7f3&&_0x12f7f3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x461fa0['isCollapsed'])return;const _0x18e5aa=_0x332c5['model']['schema'],{start:_0x5a108b,end:_0x193beb}=_0x461fa0['getFirstRange'](),_0x3a9d36=_0x5a108b['nodeAfter']&&_0x18e5aa['isLimit'](_0x5a108b['nodeAfter'])?null:_0x18e5aa['getNearestSelectionRange'](_0x5a108b,'forward'),_0x3125f0=_0x193beb['nodeBefore']&&_0x18e5aa['isLimit'](_0x193beb['nodeBefore'])?null:_0x18e5aa['getNearestSelectionRange'](_0x193beb,'backward'),_0x3408cd=_0x332c5['model']['createRange'](_0x3a9d36?_0x3a9d36['start']:_0x5a108b,_0x3125f0?_0x3125f0['end']:_0x193beb);_0x332c5['model']['change'](_0x3861d3=>{this['markDeletion'](_0x3408cd);const _0x398600=_0x332c5['model']['schema']['getNearestSelectionRange'](_0x3408cd['start']);_0x461fa0['is']('documentSelection')?_0x3861d3['setSelection'](_0x398600):_0x461fa0['setTo'](_0x398600);}),_0x4a60e2['stop']();},{'priority':_0x1074f0['normal']+0xa}),_0x332c5['model']['on']('insertContent',(_0x3b42c4,_0x312048)=>{const _0x1bdcbc=_0x312048[_0x312048['length']-0x1];_0x1bdcbc&&_0x1bdcbc['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x332c5['model']['change'](()=>{let _0x156eeb=_0x332c5['model']['insertContent'](_0x312048[0x0],_0x312048[0x1],_0x312048[0x2],{'forceDefaultExecution':!0x0});if(!_0x156eeb)return;_0x3b42c4['return']=_0x156eeb['clone']();const _0x4c5ce9=_0x156eeb['end']['nodeBefore'],_0xaf623c=_0x332c5['model']['schema'];_0x4c5ce9&&_0xaf623c['isBlock'](_0x4c5ce9)&&!_0xaf623c['isObject'](_0x4c5ce9)&&(_0x156eeb=_0x332c5['model']['createRange'](_0x156eeb['start'],_0x332c5['model']['createPositionAt'](_0x4c5ce9,'end'))),this['markInsertion'](_0x156eeb);}),_0x3b42c4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4c924a=new dt(_0x332c5,this['_suggestions']);_0x332c5['commands']['add']('acceptSuggestion',_0x4c924a),this['enableCommand']('acceptSuggestion');const _0x1e843f=new ft(_0x332c5,this['_suggestions']);_0x332c5['commands']['add']('discardSuggestion',_0x1e843f),this['enableCommand']('discardSuggestion'),_0x332c5['commands']['add']('acceptAllSuggestions',new Lt(_0x332c5,_0x4c924a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x332c5['commands']['add']('discardAllSuggestions',new Lt(_0x332c5,_0x1e843f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x332c5['commands']['add']('acceptSelectedSuggestions',new It(_0x332c5,_0x4c924a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x332c5['commands']['add']('discardSelectedSuggestions',new It(_0x332c5,_0x1e843f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3ed4bd=_0x332c5['plugins']['get'](_0x1b50ae);this['listenTo'](_0x3ed4bd,'addComment',(_0x293acc,{threadId:_0x247a6b})=>{const _0x4b6abd=this['_suggestions']['get'](_0x247a6b);_0x4b6abd&&_0x4b6abd['commentThread']&&0x1===_0x4b6abd['commentThread']['length']&&this['_updateSuggestionData'](_0x247a6b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3ed4bd,'removeComment',(_0x197344,{threadId:_0x1a5d5e})=>{const _0x580c2c=this['_suggestions']['get'](_0x1a5d5e);_0x580c2c&&_0x580c2c['commentThread']&&!_0x580c2c['commentThread']['length']&&this['_updateSuggestionData'](_0x1a5d5e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x341d10){const _0x2f8754=_0x4504ea([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x7e4fb4=0x3d8d0df,_0x5e6281=0x3df591f^_0x7e4fb4,_0x6dd1ee=window[_0x4504ea([0x44,0x61,0x74,0x65])][_0x4504ea([0x6e,0x6f,0x77])](),_0x3aaaff=_0x341d10[_0x4504ea([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a160e=new window[(_0x4504ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26733e=>{_0x3aaaff[_0x4504ea([0x6f,0x6e,0x63,0x65])](_0x4504ea([0x72,0x65,0x61,0x64,0x79]),_0x26733e);}),_0x943c7e={[_0x4504ea([0x6b,0x74,0x79])]:_0x4504ea([0x45,0x43]),[_0x4504ea([0x75,0x73,0x65])]:_0x4504ea([0x73,0x69,0x67]),[_0x4504ea([0x63,0x72,0x76])]:_0x4504ea([0x50,0x2d,0x32,0x35,0x36]),[_0x4504ea([0x78])]:_0x4504ea([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4504ea([0x79])]:_0x4504ea([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4504ea([0x61,0x6c,0x67])]:_0x4504ea([0x45,0x53,0x32,0x35,0x36])},_0x2509ac=_0x3aaaff[_0x4504ea([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4504ea([0x67,0x65,0x74])](_0x4504ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x12c8e9(){let _0x33b692,_0x218df9=null,_0x4732ac=null;try{if(_0x2509ac==_0x4504ea([0x47,0x50,0x4c]))return _0x4504ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x33b692=_0xbc5dba(),!_0x33b692)return _0x4504ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x33b692[_0x4504ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4732ac=_0x5a1862(_0x33b692[_0x4504ea([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x33b692[_0x4504ea([0x6a,0x74,0x69])])),await _0x3dcbff()?_0x5c082b()?_0x3df19d()?_0x4504ea([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4fd9da()?(_0x33b692[_0x4504ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4504ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x218df9=_0xa87ae(_0x4504ea([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1c15fe()):_0x4504ea([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4504ea([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4504ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4504ea([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3df19d(){const _0x457ad2=[_0x4504ea([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4504ea([0x74,0x72,0x69,0x61,0x6c])][_0x4504ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33b692[_0x4504ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6dd1ee/0x3e8:0xe10*_0x5e6281;return _0x33b692[_0x4504ea([0x65,0x78,0x70])]<_0x457ad2;}function _0x5c082b(){const _0xeade12=_0x33b692[_0x4504ea([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xeade12)return!0x1;if(_0xeade12[_0x4504ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4504ea([0x2a])))return!0x0;if(_0xeade12[_0x4504ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4504ea([0x54,0x43])))return!0x0;if(_0xeade12[_0x4504ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4504ea([0x52,0x54,0x43]))){if(_0x58a183())return!0x0;if(_0x3b30da()||_0x142be0())return!0x0;}return!0x1;}function _0x4fd9da(){const _0x261f4f=_0x33b692[_0x4504ea([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x261f4f||0x0==_0x261f4f[_0x4504ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ddff1}=new URL(window[_0x4504ea([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x261f4f[_0x4504ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ddff1))return!0x0;const _0x2dafd2=_0x3ddff1[_0x4504ea([0x73,0x70,0x6c,0x69,0x74])](_0x4504ea([0x2e]));return _0x261f4f[_0x4504ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44ba36=>_0x44ba36[_0x4504ea([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4504ea([0x2a])))[_0x4504ea([0x6d,0x61,0x70])](_0x2e6408=>_0x2e6408[_0x4504ea([0x73,0x70,0x6c,0x69,0x74])](_0x4504ea([0x2e])))[_0x4504ea([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a1f52=>_0x3a1f52[_0x4504ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2dafd2[_0x4504ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4504ea([0x6d,0x61,0x70])](_0x446c90=>Array(_0x2dafd2[_0x4504ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x446c90[_0x4504ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4504ea([0x66,0x69,0x6c,0x6c])](_0x446c90[0x0]===_0x4504ea([0x2a])?_0x4504ea([0x2a]):'')[_0x4504ea([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x446c90))[_0x4504ea([0x73,0x6f,0x6d,0x65])](_0x54713e=>_0x2dafd2[_0x4504ea([0x65,0x76,0x65,0x72,0x79])]((_0x30423a,_0x342cfb)=>_0x54713e[_0x342cfb]===_0x30423a||_0x54713e[_0x342cfb]===_0x4504ea([0x2a])));}function _0x1c15fe(){return _0x218df9&&_0x4732ac?new window[(_0x4504ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ee21f,_0x55e2e1)=>{_0x218df9[_0x4504ea([0x74,0x68,0x65,0x6e])](_0x4ee21f,_0x55e2e1),_0x4732ac[_0x4504ea([0x74,0x68,0x65,0x6e])](_0x1f4dc6=>{_0x1f4dc6!=_0x4504ea([0x56,0x61,0x6c,0x69,0x64])&&_0x4ee21f(_0x1f4dc6);},_0x55e2e1);}):_0x218df9||_0x4732ac||_0x4504ea([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a1862(_0x3008ba,_0x4aad5f){return new window[(_0x4504ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3753ee=>{if(_0x7e58af())return _0x3753ee(_0x4504ea([0x56,0x61,0x6c,0x69,0x64]));_0x383f28(),_0x3aaaff[_0x4504ea([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4504ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x41170c=!0x1;const _0x2f130d=_0x103bb9();function _0x3c4fc5(_0x1a7907){return!!_0x1a7907&&(typeof _0x1a7907===_0x4504ea([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1a7907===_0x4504ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1a7907[_0x4504ea([0x74,0x68,0x65,0x6e])]===_0x4504ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1a7907[_0x4504ea([0x63,0x61,0x74,0x63,0x68])]===_0x4504ea([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x41edcc(_0x46e6bc){_0x4053d3(_0x46e6bc)[_0x4504ea([0x74,0x68,0x65,0x6e])](_0x3e7070=>{if(!_0x3e7070||_0x3e7070[_0x4504ea([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4504ea([0x6f,0x6b]))return _0x4504ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x12aa62(_0x1193ed(_0x2f130d+_0x4aad5f))!=_0x3e7070[_0x4504ea([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4504ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4504ea([0x56,0x61,0x6c,0x69,0x64]);})[_0x4504ea([0x74,0x68,0x65,0x6e])](_0x2980b7=>(_0x514615(),_0x2980b7),()=>{const _0x89aa76=_0x20de32();return null==_0x89aa76?(_0x514615(),_0x4504ea([0x56,0x61,0x6c,0x69,0x64])):_0x4504ea(_0x6dd1ee-_0x89aa76>(0x27d454df^_0x7e4fb4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4504ea([0x74,0x68,0x65,0x6e])](_0x3753ee)[_0x4504ea([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3753ee(_0x4504ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x31c16a=0x3ee3e5f^_0x7e4fb4;function _0x514615(){const _0x281966=_0x4504ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x12aa62(_0x1193ed(_0x3008ba)),_0x3ab59d=_0x98f72e(_0x12aa62(window[_0x4504ea([0x4d,0x61,0x74,0x68])][_0x4504ea([0x63,0x65,0x69,0x6c])](_0x6dd1ee/_0x31c16a)));window[_0x4504ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4504ea([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x281966,_0x3ab59d);}function _0x20de32(){const _0x5b4939=_0x4504ea([0x6c,0x6c,0x63,0x74,0x2d])+_0x12aa62(_0x1193ed(_0x3008ba)),_0x1d48a9=window[_0x4504ea([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4504ea([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b4939);return _0x1d48a9?window[_0x4504ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x98f72e(_0x1d48a9),0x10)*_0x31c16a:null;}function _0x4053d3(_0x9c450d){return new window[(_0x4504ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xaf78a4,_0xc2c03a)=>{_0x9c450d[_0x4504ea([0x74,0x68,0x65,0x6e])](_0xaf78a4,_0xc2c03a),window[_0x4504ea([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc2c03a,0x3d9041f^_0x7e4fb4);});}}_0x3aaaff[_0x4504ea([0x6f,0x6e])](_0x4504ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x10d6d5,_0x4e5665)=>{if(_0x4e5665[0x0]!=_0x3008ba)return _0x3753ee(_0x4504ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e5665[0x1]={..._0x4e5665[0x1],[_0x4504ea([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f130d};},{[_0x4504ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4504ea([0x68,0x69,0x67,0x68])}),_0x3aaaff[_0x4504ea([0x6f,0x6e])](_0x4504ea([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2aaeec=>{_0x3c4fc5(_0x2aaeec[_0x4504ea([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x41170c=!0x0,_0x41edcc(_0x2aaeec[_0x4504ea([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4504ea([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4504ea([0x6c,0x6f,0x77])}),_0x2a160e[_0x4504ea([0x74,0x68,0x65,0x6e])](()=>{_0x41170c||_0x3753ee(_0x4504ea([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x7e58af(){return _0x3aaaff[_0x4504ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4504ea([0x76,0x69,0x65,0x77])][_0x4504ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4504ea([0x61,0x75,0x74,0x6f]);}function _0x383f28(){_0x3aaaff[_0x4504ea([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4504ea([0x76,0x69,0x65,0x77])][_0x4504ea([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4504ea([0x61,0x75,0x74,0x6f]);}}function _0xa87ae(_0x418398){const _0x1631b9=[new window[(_0x4504ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a808e=>setTimeout(_0x1a808e,0x3d1ee13^_0x7e4fb4)),_0x2a160e[_0x4504ea([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4504ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bc54f=>{let _0x339cfd=0x0;_0x3aaaff[_0x4504ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x4504ea([0x6f,0x6e])](_0x4504ea([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x417e68,_0x42b37a)=>{_0x42b37a[0x0][_0x4504ea([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x339cfd++,_0x339cfd==(0x3d8d537^_0x7e4fb4)&&(_0x4bc54f(),_0x417e68[_0x4504ea([0x6f,0x66,0x66])]());});}))];return window[_0x4504ea([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4504ea([0x72,0x61,0x63,0x65])](_0x1631b9)[_0x4504ea([0x74,0x68,0x65,0x6e])](()=>_0x418398);}async function _0x29d4f4(){await _0x2a160e,_0x3aaaff[_0x4504ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x4504ea([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa5bdcd,_0x3aaaff[_0x4504ea([0x6d,0x6f,0x64,0x65,0x6c])][_0x4504ea([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa5bdcd,_0x3aaaff[_0x4504ea([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4504ea([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58a183(){return _0x349dd8(_0x4504ea([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x535553(_0x4504ea([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4504ea([0x73,0x74,0x61,0x74,0x65])]==_0x4504ea([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3b30da(){return _0x349dd8(_0x4504ea([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x142be0(){return _0x349dd8(_0x4504ea([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x94b4a1(_0x54b2ea){const _0x5782fe=_0x41bbb1();_0x3aaaff[_0x5782fe]=_0x4504ea([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x54b2ea,_0x54b2ea!=_0x4504ea([0x56,0x61,0x6c,0x69,0x64])&&_0x29d4f4();}function _0x41bbb1(){const _0x3c6d14=window[_0x4504ea([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4504ea([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4504ea([0x6e,0x6f,0x77])]())[_0x4504ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4504ea([0x2e]),'');let _0x24c223=_0x4504ea([0x52]);for(let _0x3c5fb7=0x0;_0x3c5fb7<_0x3c6d14[_0x4504ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c5fb7+=0x2){let _0x11f44e=window[_0x4504ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c6d14[_0x4504ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c5fb7,_0x3c5fb7+0x2));_0x11f44e>=_0x2f8754[_0x4504ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x11f44e-=_0x2f8754[_0x4504ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x24c223+=_0x2f8754[_0x11f44e];}return _0x24c223;}function _0xbc5dba(){const _0x330c4a=_0x2509ac[_0x4504ea([0x73,0x70,0x6c,0x69,0x74])](_0x4504ea([0x2e]));if(0x3!=_0x330c4a[_0x4504ea([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x283f5a(_0x330c4a[0x1]);function _0x283f5a(_0x3684c5){const _0x2ef2be=_0x793acc(_0x3684c5);return _0x2ef2be&&_0x3924d5()?_0x2ef2be:null;function _0x3924d5(){const _0x1cf22a=_0x2ef2be[_0x4504ea([0x6a,0x74,0x69])],_0x32d975=window[_0x4504ea([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cf22a[_0x4504ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1cf22a[_0x4504ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1cf3fd={..._0x2ef2be,[_0x4504ea([0x6a,0x74,0x69])]:_0x1cf22a[_0x4504ea([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1cf22a[_0x4504ea([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1cf3fd[_0x4504ea([0x76,0x63])],_0x1193ed(_0x1cf3fd)==_0x32d975;}}}async function _0x3dcbff(){let _0x323cca=!0x0;try{const _0x4dabc9=_0x2509ac[_0x4504ea([0x73,0x70,0x6c,0x69,0x74])](_0x4504ea([0x2e])),[_0x26bf41,_0xe18caa,_0x23a1ab]=_0x4dabc9;return _0x4726af(_0x26bf41),await _0x5a6426(_0x26bf41,_0xe18caa,_0x23a1ab),_0x323cca;}catch{return!0x1;}function _0x4726af(_0x1445ca){const _0x2f4cdd=_0x793acc(_0x1445ca);_0x2f4cdd&&_0x2f4cdd[_0x4504ea([0x61,0x6c,0x67])]==_0x4504ea([0x45,0x53,0x32,0x35,0x36])||(_0x323cca=!0x1);}async function _0x5a6426(_0x3b503e,_0x1dfdbd,_0x2c8624){const _0x561d20=window[_0x4504ea([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4504ea([0x66,0x72,0x6f,0x6d])](_0x320bfd(_0x2c8624),_0x376940=>_0x376940[_0x4504ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x52fb4e=new window[(_0x4504ea([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4504ea([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b503e+_0x4504ea([0x2e])+_0x1dfdbd),_0x107dd2=window[_0x4504ea([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4504ea([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x107dd2)return;const _0x5974e4=await _0x107dd2[_0x4504ea([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4504ea([0x6a,0x77,0x6b]),_0x943c7e,{[_0x4504ea([0x6e,0x61,0x6d,0x65])]:_0x4504ea([0x45,0x43,0x44,0x53,0x41]),[_0x4504ea([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4504ea([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4504ea([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x107dd2[_0x4504ea([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4504ea([0x6e,0x61,0x6d,0x65])]:_0x4504ea([0x45,0x43,0x44,0x53,0x41]),[_0x4504ea([0x68,0x61,0x73,0x68])]:{[_0x4504ea([0x6e,0x61,0x6d,0x65])]:_0x4504ea([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5974e4,_0x561d20,_0x52fb4e)||(_0x323cca=!0x1);}}function _0x793acc(_0x35c401){return _0x35c401[_0x4504ea([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4504ea([0x65,0x79]))?JSON[_0x4504ea([0x70,0x61,0x72,0x73,0x65])](_0x320bfd(_0x35c401)):null;}function _0x320bfd(_0x595a3d){return window[_0x4504ea([0x61,0x74,0x6f,0x62])](_0x595a3d[_0x4504ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4504ea([0x2b]))[_0x4504ea([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4504ea([0x2f])));}function _0x1193ed(_0x333889){let _0x55c6d0=0x1505;function _0x501bed(_0x245db0){for(let _0xbcfb16=0x0;_0xbcfb16<_0x245db0[_0x4504ea([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbcfb16++){const _0xb7d5d0=_0x245db0[_0x4504ea([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xbcfb16);_0x55c6d0=(_0x55c6d0<<0x5)+_0x55c6d0+_0xb7d5d0,_0x55c6d0&=_0x55c6d0;}}function _0x5e6e5b(_0x31efbb){Array[_0x4504ea([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31efbb)?_0x31efbb[_0x4504ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e6e5b):_0x31efbb&&typeof _0x31efbb==_0x4504ea([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4504ea([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31efbb)[_0x4504ea([0x73,0x6f,0x72,0x74])]()[_0x4504ea([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4b339a,_0x39a4c6])=>{_0x501bed(_0x4b339a),_0x5e6e5b(_0x39a4c6);}):_0x501bed(window[_0x4504ea([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31efbb));}return _0x5e6e5b(_0x333889),_0x55c6d0>>>0x0;}function _0x12aa62(_0x249b9b){return _0x249b9b[_0x4504ea([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4504ea([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4504ea([0x30]));}function _0x98f72e(_0x291ba4){return _0x291ba4[_0x4504ea([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4504ea([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4504ea([0x6a,0x6f,0x69,0x6e])]('');}function _0x349dd8(_0x192ae4){return _0x3aaaff[_0x4504ea([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4504ea([0x68,0x61,0x73])](_0x192ae4);}function _0x535553(_0x209ab0){return _0x3aaaff[_0x4504ea([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4504ea([0x67,0x65,0x74])](_0x209ab0);}function _0xa5bdcd(){}function _0x4504ea(_0x693e3){return _0x693e3['map'](_0x1777de=>String['fromCharCode'](_0x1777de))['join']('');}_0x94b4a1(await _0x12c8e9());}(this);}set['adapter'](_0x318d86){if(this['_adapter'])throw new _0xa37ad8('track-changes-adapter-already-set',this);this['_adapter']=_0x318d86;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x284b72=!0x1,toJSON:_0x8fcca5=!0x1}={}){const _0x4495f6=[];for(const _0x14edb4 of this['_suggestions']['values']())_0x284b72&&!_0x14edb4['isInContent']||_0x4495f6['push'](_0x14edb4);return _0x8fcca5?_0x4495f6['map'](_0x547ec3=>_0x547ec3['toJSON']()):_0x4495f6;}['getSuggestion'](_0x4ccdfd){const _0x3499dd=this['_suggestions']['get'](_0x4ccdfd);if(!_0x3499dd)throw new _0xa37ad8('track-changes-suggestion-not-found',this);return _0x3499dd;}['hasSuggestion'](_0x56ee66){return this['_suggestions']['has'](_0x56ee66);}['addSuggestionData'](_0x2621c4){const {authorId:_0x1086c,id:_0xf41091,originalSuggestionId:_0x4ccdb9,attributes:_0x5a45d8}=_0x2621c4,[_0x595c14,_0x4c703e]=_0x2621c4['type']['split'](':'),_0x2c4240=this['_suggestions']['get'](_0xf41091)||this['_createSuggestion'](_0x595c14,_0x4c703e,_0xf41091,_0x1086c,_0x5a45d8,_0x4ccdb9);if(this['_addThreadToSuggestion'](_0x2c4240),this['_checkSuggestionCorrectness'](_0x2c4240,_0x595c14,_0x4c703e||null,_0x1086c),_0x2c4240['createdAt']=_0x2621c4['createdAt'],_0x2c4240['_isDataLoaded']=!0x0,_0x5a45d8&&_0x5a45d8['@external']){const _0xccb1b=_0x5a45d8['@external'],_0x3767b8=this['_getExternalAuthor'](_0xccb1b['authorName']);_0x2c4240['authoredAt']=_0xccb1b['createdAt'],_0x2c4240['author']=_0x3767b8,_0x2c4240['isExternal']=!0x0;}else _0x2c4240['authoredAt']=_0x2621c4['createdAt'];switch(_0x2621c4['data']&&(_0x2c4240['data']=_0x2621c4['data']),_0x2621c4['attributes']&&(_0x2c4240['attributes']=_0x2621c4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2c4240['_saved']=!0x0),this['_suggestionState']['get'](_0x2c4240)){case'notReady':this['_suggestionState']['set'](_0x2c4240,'dataReady');break;case'markerReady':_0x2c4240['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2c4240])),this['_refreshSuggestionsChain'](new Set([_0x2c4240])),this['_suggestionState']['set'](_0x2c4240,'ready'),this['fire']('suggestionLoaded',_0x2c4240)):this['_suggestionState']['set'](_0x2c4240,'removed');}return _0x2c4240;}['acceptSuggestion'](_0x133f3e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x23b358 of _0x133f3e['getAllAdjacentSuggestions']())_0x23b358['accept']();});});}['discardSuggestion'](_0xb42b96){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x326e96 of _0xb42b96['getAllAdjacentSuggestions']())_0x326e96['discard']();});});}['enableCommand'](_0x2d9baa,_0x48da78){const _0x3303d6=this['editor']['commands']['get'](_0x2d9baa);if(!_0x3303d6)throw new _0xa37ad8('track-changes-command-not-found',this,{'commandName':_0x2d9baa});if(this['_enabledCommands']['has'](_0x3303d6))throw new _0xa37ad8('track-changes-enable-command-twice',this,{'commandName':_0x2d9baa});this['_enabledCommands']['add'](_0x3303d6),_0x48da78&&_0x3303d6['on']('execute',(_0x3f500c,_0x16321b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x16321b['length']>0x0&&_0x16321b[_0x16321b['length']-0x1]&&_0x16321b[_0x16321b['length']-0x1]['forceDefaultExecution']?_0x16321b['pop']():(_0x3f500c['return']=_0x48da78((..._0x269eec)=>_0x3303d6['execute'](..._0x269eec,{'forceDefaultExecution':!0x0}),..._0x16321b),_0x3f500c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3efeb2){let _0x479524,_0x20f042;const _0x56dcba=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x479524=_0x3efeb2();}catch(_0x249565){_0x20f042=_0x249565;}return _0x56dcba||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x20f042&&_0xa37ad8['rethrowUnexpectedError'](_0x20f042,this),_0x479524;}['markInsertion'](_0x566fa6,_0x1ed84f=null,_0x2ad786={}){if(_0x566fa6['isCollapsed'])return null;const _0x30f840=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2ad786['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x54156c,meta:_0x4b0bc0}of this['_findSuggestions'](_0x566fa6,'insertion'))if(_0x4b0bc0['isOwn']){if(!_0x4b0bc0['isNextTo']){if(_0x4b0bc0['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x54156c,_0x2ad786))continue;return _0x54156c;}if(cn(_0x54156c,_0x2ad786))return _0x54156c;this['_breakSuggestionMarker'](_0x54156c,_0x566fa6['start'],_0x566fa6['end']);break;}if(_0x1ed84f==_0x54156c['subType']&&cn(_0x54156c,_0x2ad786)){const _0x292c10=_0x54156c['getFirstRange']();return _0x292c10['start']['isEqual'](_0x566fa6['end'])?this['_setSuggestionRange'](_0x54156c,this['_model']['createRange'](_0x566fa6['start'],_0x292c10['end'])):this['_setSuggestionRange'](_0x54156c,this['_model']['createRange'](_0x292c10['start'],_0x566fa6['end'])),_0x54156c;}}const _0x586b36=_0x103bb9(),_0x3d8864=_0x30f840['id'],_0x374edf=_0x1ed84f?'insertion:'+_0x1ed84f:'insertion',_0x3fab3e=this['_setSuggestionData']({'id':_0x586b36,'type':_0x374edf,'createdAt':new Date(),'authorId':_0x3d8864,'attributes':_0x2ad786});return this['_addSuggestionMarker'](_0x374edf,_0x586b36,_0x3d8864,_0x566fa6),_0x3fab3e;}['markMultiRangeInsertion'](_0x3bd4b1,_0x11f4b2='multi',_0x5ac025={}){const _0x5c8a99=this['editor']['plugins']['get']('Users')['me'],_0x5947aa=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x11f4b2,'join');this['_trackingSessionId']&&(_0x5ac025['trackingSessionId']=this['_trackingSessionId']);for(const _0x4091ca of this['getSuggestions']())if(_0x4091ca['author']['id']==_0x5c8a99['id']&&'insertion'==_0x4091ca['type']&&_0x4091ca['subType']==_0x11f4b2&&cn(_0x4091ca,_0x5ac025)&&(_0x5947aa(_0x4091ca['getRanges'](),_0x3bd4b1)||_0x5947aa(_0x3bd4b1,_0x4091ca['getRanges']()))){for(const _0x3902f4 of _0x3bd4b1)_0x4091ca['addRange'](_0x3902f4);return _0x4091ca;}for(const {suggestion:_0x464287,meta:_0x4ce5d6}of this['_findSuggestions'](_0x3bd4b1,'insertion')){if(!_0x4ce5d6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4ce5d6['containsRangeInObject'])continue;if(!cn(_0x464287,_0x5ac025))continue;let _0xb7d4f3=!0x0;for(const _0x5bf3c1 of _0x464287['getRanges']())for(const _0x513e69 of _0x3bd4b1)if(!_0x5bf3c1['containsRange'](_0x513e69)){_0xb7d4f3=!0x1;break;}if(_0xb7d4f3)return _0x464287;}const _0x5adcda=_0x103bb9(),_0x15d8cc=_0x5c8a99['id'],_0x448c83='insertion:'+_0x11f4b2,_0x1c3d58=this['_setSuggestionData']({'id':_0x5adcda,'type':_0x448c83,'createdAt':new Date(),'authorId':_0x15d8cc,'attributes':_0x5ac025});for(const _0x4e0a3b of _0x3bd4b1)this['_addSuggestionMarker'](_0x448c83,_0x5adcda,_0x15d8cc,_0x4e0a3b,bt['getMultiRangeId']());return _0x1c3d58;}['markInlineFormat'](_0x51bd3f,_0x5100df,_0x560039=null,_0xe918dc={}){if(_0x560039=_0x560039||Je(_0x5100df),_0x51bd3f['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xe918dc['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3e33b2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x560039,'accept');return this['forceDefaultExecution'](()=>_0x3e33b2([_0x51bd3f],_0x5100df,_0xe918dc)),null;}const _0x1fef06=this['editor']['plugins']['get']('Users')['me'],_0x3dbadc=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5173ad,meta:_0x67f250}of this['_findSuggestions'](_0x51bd3f,'insertion'))_0x67f250['isOwn']&&!_0x67f250['isInsideObject']&&_0x3dbadc['push'](..._0x5173ad['getRanges']());}const _0x59213b=function(_0x327229,_0x438aae){const _0x4c8a68=[];for(const _0x4eaa54 of _0x438aae){const _0x24d486=_0x327229['getIntersection'](_0x4eaa54);_0x24d486&&_0x4c8a68['push'](_0x24d486);}return _0x4c8a68;}(_0x51bd3f,_0x3dbadc),_0x13478b=function(_0xc9afe3,_0x56af1d){const _0x4ff533=[_0xc9afe3];for(const _0x553563 of _0x56af1d){let _0x1a6133=0x0;for(;_0x1a6133<_0x4ff533['length'];){const _0x24e7d7=_0x4ff533[_0x1a6133]['getDifference'](_0x553563);_0x4ff533['splice'](_0x1a6133,0x1,..._0x24e7d7),_0x1a6133+=_0x24e7d7['length'];}}return _0x4ff533;}(_0x51bd3f,_0x3dbadc);_0x59213b['length']&&this['_model']['change'](()=>{for(const _0x84e499 of _0x59213b){const _0x466ecc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x560039,'accept');this['forceDefaultExecution'](()=>_0x466ecc([_0x84e499],_0x5100df,_0xe918dc));}});for(const _0x54db7f of _0x13478b){let _0x18eace=null,_0x5ae482=_0x54db7f['start'],_0x203922=_0x54db7f['end'];for(const {suggestion:_0x167e92,meta:_0x37efa}of this['_findSuggestions'](_0x54db7f,'formatInline')){if(!_0x37efa['isOwn'])continue;if(_0x167e92['subType']!=_0x560039)continue;if(!cn(_0x167e92,_0xe918dc))continue;const _0x3cb035=_0x167e92['getFirstRange']();if(_0x3cb035['containsRange'](_0x54db7f,!0x0))return null;_0x5ae482=_0x5ae482['isBefore'](_0x3cb035['start'])?_0x5ae482:_0x3cb035['start'],_0x203922=_0x203922['isAfter'](_0x3cb035['end'])?_0x203922:_0x3cb035['end'],_0x18eace?_0x3cb035['start']['isBefore'](_0x18eace['getFirstRange']()['start'])?(_0x18eace['removeMarkers'](),_0x18eace=_0x167e92):_0x167e92['removeMarkers']():_0x18eace=_0x167e92;}const _0xa2a25=this['_model']['createRange'](_0x5ae482,_0x203922);if(_0x18eace)this['_setSuggestionRange'](_0x18eace,_0xa2a25);else{const _0x168be5=_0x103bb9(),_0x4b128c=_0x1fef06['id'];this['_setSuggestionData']({'id':_0x168be5,'type':'formatInline:'+_0x560039,'data':_0x5100df,'createdAt':new Date(),'authorId':_0x4b128c,'attributes':_0xe918dc}),this['_addSuggestionMarker']('formatInline:'+_0x560039,_0x168be5,_0x4b128c,_0xa2a25);}}return null;}['markBlockFormat'](_0x17702e,_0x43fc80,_0x225a17=[],_0x2da3fc=null,_0x505757={}){_0x43fc80['formatGroupId']||(_0x43fc80['formatGroupId']=_0x43fc80['commandName']),_0x43fc80['multipleBlocks']=_0x17702e['is']('range'),_0x2da3fc=_0x2da3fc||Je(_0x43fc80);const _0x2f4a0a=_0x225a17['map'](_0x11e861=>rn(_0x11e861,this['_model'])),_0x361eba=_0x17702e['is']('range')?_0x17702e:rn(_0x17702e,this['_model']);if(this['_trackingSessionId']&&(_0x505757['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x485c24=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2da3fc,'accept');return this['forceDefaultExecution'](()=>_0x485c24([_0x361eba],_0x43fc80,_0x505757)),null;}_0x2f4a0a['push'](_0x361eba);let _0x123eb7=!0x0;for(const _0x4d31c7 of _0x2f4a0a)if(!this['_rangeIsInLocalUserInsertion'](_0x4d31c7)){_0x123eb7=!0x1;break;}if(_0x123eb7&&'always'!==this['_trackFormatChanges']){const _0x669d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2da3fc,'accept');return this['forceDefaultExecution'](()=>_0x669d([_0x361eba],_0x43fc80,_0x505757)),null;}let _0x33b1a6=null,_0x26e05b=_0x361eba['start'],_0x490f93=_0x361eba['end'];for(const {suggestion:_0x47d047,meta:_0x3f84cd}of this['_findSuggestions'](_0x361eba,'formatBlock')){if(!_0x3f84cd['isOwn'])continue;if(_0x3f84cd['isNextTo']||_0x3f84cd['containsRangeInObject']||_0x3f84cd['isInsideObject'])continue;if(_0x47d047['data']['formatGroupId']!=_0x43fc80['formatGroupId'])continue;if(!cn(_0x47d047,_0x505757))continue;const _0x54960b=_0x47d047['getFirstRange']();if(_0x47d047['subType']==_0x2da3fc){if(_0x54960b['containsRange'](_0x361eba,!0x0))return null;_0x26e05b=_0x26e05b['isBefore'](_0x54960b['start'])?_0x26e05b:_0x54960b['start'],_0x490f93=_0x490f93['isAfter'](_0x54960b['end'])?_0x490f93:_0x54960b['end'],_0x33b1a6?_0x54960b['start']['isBefore'](_0x33b1a6['getFirstRange']()['start'])?(_0x33b1a6['removeMarkers'](),_0x33b1a6=_0x47d047):_0x47d047['removeMarkers']():_0x33b1a6=_0x47d047;}else{const _0x2d0a7b=_0x361eba['getIntersection'](_0x54960b);this['_cutOutSuggestionMarker'](_0x47d047,_0x2d0a7b);}}const _0x3cdf17=this['editor']['plugins']['get']('Users')['me'],_0x1e8f98=_0x103bb9(),_0x16fd6b=_0x3cdf17['id'];if(_0x33b1a6)return this['_setSuggestionRange'](_0x33b1a6,this['_model']['createRange'](_0x26e05b,_0x490f93)),_0x33b1a6;{const _0x3e0289=this['_setSuggestionData']({'id':_0x1e8f98,'type':'formatBlock:'+_0x2da3fc,'data':_0x43fc80,'createdAt':new Date(),'authorId':_0x16fd6b,'attributes':_0x505757});return this['_addSuggestionMarker']('formatBlock:'+_0x2da3fc,_0x1e8f98,_0x16fd6b,this['_model']['createRange'](_0x26e05b,_0x490f93)),_0x3e0289;}}['markMultiRangeBlockFormat'](_0x5b251b,_0x6712d1,_0x16b4fa=[],_0xc395a9=null,_0x5131cc={}){_0x6712d1['formatGroupId']||(_0x6712d1['formatGroupId']=_0x6712d1['commandName']);const _0x53c7b7=_0x5b251b[0x0];_0x6712d1['multipleBlocks']=_0x53c7b7['is']('range'),_0xc395a9=_0xc395a9||Je(_0x6712d1);const _0x4d4367=_0x16b4fa['map'](_0x4ba166=>rn(_0x4ba166,this['_model'])),_0x437937=_0x53c7b7['is']('range')?_0x5b251b:_0x5b251b['map'](_0xdce37d=>rn(_0xdce37d,this['_model']));if(this['_trackingSessionId']&&(_0x5131cc['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3f6f0f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xc395a9,'accept');return this['forceDefaultExecution'](()=>_0x3f6f0f(_0x437937,_0x6712d1,_0x5131cc)),null;}_0x4d4367['push'](..._0x437937);let _0x29b54c=!0x0;for(const _0x519643 of _0x4d4367)if(!this['_rangeIsInLocalUserInsertion'](_0x519643)){_0x29b54c=!0x1;break;}if(_0x29b54c&&'always'!==this['_trackFormatChanges']){const _0x56c357=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xc395a9,'accept');return this['forceDefaultExecution'](()=>_0x56c357(_0x437937,_0x6712d1,_0x5131cc)),null;}const _0x591c76=this['editor']['plugins']['get']('Users')['me'];for(const _0x583033 of this['getSuggestions']()){const _0x4cbfdb=_0x583033['data'];if(_0x583033['author']['id']!=_0x591c76['id'])continue;if('formatBlock'!=_0x583033['type']||_0x4cbfdb['formatGroupId']!=_0x6712d1['formatGroupId'])continue;if(!cn(_0x583033,_0x5131cc))continue;const _0x5e1d96=_0x583033['subType']==_0xc395a9;for(let _0xbd26ba=0x0;_0xbd26ba<_0x437937['length'];_0xbd26ba++){const _0x2aca4f=_0x437937[_0xbd26ba];for(const _0x1646c3 of _0x583033['getMarkers']()){const _0x3a7891=_0x1646c3['getRange']();if(_0x2aca4f['isEqual'](_0x3a7891)){_0x5e1d96?(_0x437937['splice'](_0xbd26ba,0x1),_0xbd26ba--):_0x583033['removeMarker'](_0x1646c3['name']);break;}}}}if(0x0==_0x437937['length'])return null;const _0x1fa3d9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xc395a9,'join');for(const _0x488e0a of this['getSuggestions']()){const _0x5b0bec=_0x488e0a['data'];if(_0x488e0a['author']['id']==_0x591c76['id']&&('formatBlock'==_0x488e0a['type']&&_0x5b0bec['formatGroupId']==_0x6712d1['formatGroupId']&&_0x488e0a['subType']==_0xc395a9&&cn(_0x488e0a,_0x5131cc)&&(_0x1fa3d9(_0x488e0a['getRanges'](),_0x437937)||_0x1fa3d9(_0x437937,_0x488e0a['getRanges']())))){for(const _0x220b62 of _0x437937)_0x488e0a['addRange'](_0x220b62);return _0x488e0a;}}const _0x583a76=_0x103bb9(),_0x471c62=_0x591c76['id'],_0x4d65c6='formatBlock:'+_0xc395a9,_0x43afad=this['_setSuggestionData']({'id':_0x583a76,'type':_0x4d65c6,'data':_0x6712d1,'createdAt':new Date(),'authorId':_0x471c62,'attributes':_0x5131cc});for(const _0x14c044 of _0x437937)this['_addSuggestionMarker'](_0x4d65c6,_0x583a76,_0x471c62,_0x14c044,bt['getMultiRangeId']());return _0x43afad;}['markDeletion'](_0x1728c2,_0x6cdc1b=null,_0x3b3129={}){if(_0x1728c2['isCollapsed'])return null;const _0x3c9e19=this['editor']['plugins']['get']('Users')['me'],_0x4a63de=new _0xb14de3(_0x1728c2['start'],_0x1728c2['end']);this['_trackingSessionId']&&(_0x3b3129['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2cc57a,meta:_0xf46cd9}of this['_findSuggestions'](_0x4a63de,'insertion'))if(_0xf46cd9['isOwn']&&!_0xf46cd9['isNextTo']){if(_0x2cc57a['isMultiRange']){const _0x4b2498=_0x2cc57a['getRanges']()['filter'](_0x101506=>'$graveyard'!=_0x101506['root']['rootName']);_0x4b2498['every'](_0x3ee122=>_0x4a63de['containsRange'](_0x3ee122,!0x0))&&_0x2cc57a['discard']();if(_0x4b2498['some'](_0x3d1db6=>_0x3d1db6['containsRange'](_0x4a63de,!0x0))){const _0xe3b435=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x6cdc1b,'accept');return this['forceDefaultExecution'](()=>_0xe3b435([_0x4a63de],null,_0x3b3129)),null;}}else{const _0x4d0e47=_0x4a63de['getIntersection'](_0x2cc57a['getFirstRange']());null!==_0x4d0e47&&_0x2cc57a['_onDiscard']([_0x4d0e47],null,_0x3b3129);}}if(_0x4a63de['detach'](),_0x4a63de['isCollapsed']||'$graveyard'==_0x4a63de['root']['rootName'])return null;let _0x5aa515=null,_0x113902=_0x4a63de['start'],_0x4cc28e=_0x4a63de['end'];const _0x269044=this['_findSuggestions'](_0x4a63de,'deletion');for(const {suggestion:_0x4f27eb,meta:_0x4565a3}of _0x269044){const _0x4a1879=this['_model']['createRange'](_0x113902,_0x4cc28e);if(_0x4565a3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4565a3['containsRangeInObject']&&!_0x4565a3['isInsideObject'])){if(_0x4f27eb['isMultiRange']){if(!cn(_0x4f27eb,_0x3b3129))continue;let _0x1d536d=!0x0;for(const _0x2e36b4 of _0x4f27eb['getRanges']()){if(_0x2e36b4['containsRange'](_0x4a1879,!0x0))return _0x4f27eb;_0x4a1879['containsRange'](_0x2e36b4)||(_0x1d536d=!0x1);}_0x1d536d&&_0x4f27eb['discard']();}else{const _0x1158c8=_0x4f27eb['getFirstRange']();if(_0x1158c8['containsRange'](_0x4a1879,!0x0))return _0x4f27eb;if(!cn(_0x4f27eb,_0x3b3129)){_0x4a1879['containsRange'](_0x1158c8)?_0x4f27eb['removeMarkers']():_0x1158c8['containsPosition'](_0x113902)?_0x113902=_0x1158c8['end']:_0x1158c8['containsPosition'](_0x4cc28e)&&(_0x4cc28e=_0x1158c8['start']);continue;}_0x113902=_0x113902['isBefore'](_0x1158c8['start'])?_0x113902:_0x1158c8['start'],_0x4cc28e=_0x4cc28e['isAfter'](_0x1158c8['end'])?_0x4cc28e:_0x1158c8['end'],_0x3b3129=Object['assign']({},_0x4f27eb['attributes']),_0x5aa515?_0x1158c8['start']['isBefore'](_0x5aa515['getFirstRange']()['start'])?(_0x5aa515['removeMarkers'](),_0x5aa515=_0x4f27eb):_0x4f27eb['removeMarkers']():_0x5aa515=_0x4f27eb;}}}if(_0x5aa515)return this['_setSuggestionRange'](_0x5aa515,this['_model']['createRange'](_0x113902,_0x4cc28e)),_0x5aa515;{const _0x24a2ce=_0x103bb9(),_0x971e64=this['_model']['createRange'](_0x113902,_0x4cc28e),_0xbfb5d2=_0x3c9e19['id'],_0x237067=_0x6cdc1b?'deletion:'+_0x6cdc1b:'deletion',_0x3c2fa9=this['_setSuggestionData']({'id':_0x24a2ce,'type':_0x237067,'createdAt':new Date(),'authorId':_0xbfb5d2,'attributes':_0x3b3129});return this['_addSuggestionMarker'](_0x237067,_0x24a2ce,_0xbfb5d2,_0x971e64),_0x3c2fa9;}}['markMultiRangeDeletion'](_0x2fcb22,_0x4f2e15='multi',_0x4dc9f6={}){const _0x20d56c=this['editor']['plugins']['get']('Users')['me'],_0x200713=_0x2fcb22['map'](_0x56c211=>new _0xb14de3(_0x56c211['start'],_0x56c211['end'])),_0x92c0f1=new Set();this['_trackingSessionId']&&(_0x4dc9f6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x34ac5f,meta:_0x25679b}of this['_findSuggestions'](_0x200713,'insertion'))_0x25679b['isOwn']&&!_0x25679b['isNextTo']&&_0x92c0f1['add'](_0x34ac5f);for(const _0xb2c144 of _0x92c0f1)if(_0xb2c144['isMultiRange']){const _0x1b31b6=_0xb2c144['getRanges']();(!_0xb2c144['attributes']||!_0xb2c144['attributes']['skipNestingCheck'])&&(_0x1b31b6['every'](_0x344238=>_0x200713['some'](_0x574d4f=>_0x574d4f['containsRange'](_0x344238,!0x0)))&&_0xb2c144['discard']());if(_0x200713['every'](_0x12821c=>_0x1b31b6['some'](_0x44abb9=>_0x44abb9['containsRange'](_0x12821c,!0x0)))){const _0x1dfec2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4f2e15,'accept');return this['forceDefaultExecution'](()=>_0x1dfec2(_0x2fcb22,null,_0x4dc9f6)),null;}}else{const _0x368eb5=_0xb2c144['getFirstRange']();_0x200713['some'](_0x2dc6b2=>_0x2dc6b2['containsRange'](_0x368eb5,!0x0))&&_0xb2c144['discard']();if(_0x200713['every'](_0x331819=>_0x368eb5['containsRange'](_0x331819,!0x0))){const _0x3a3d0e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4f2e15,'accept');return this['forceDefaultExecution'](()=>_0x3a3d0e(_0x200713,null,_0x4dc9f6)),null;}}const _0x11bfd0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4f2e15,'join');let _0x33d088=null;for(const _0x3600d3 of this['getSuggestions']())if(_0x3600d3['author']['id']==_0x20d56c['id']&&_0x3600d3['isInContent']&&'deletion'==_0x3600d3['type']&&_0x3600d3['subType']==_0x4f2e15&&cn(_0x3600d3,_0x4dc9f6)&&(_0x11bfd0(_0x3600d3['getRanges'](),_0x200713)||_0x11bfd0(_0x200713,_0x3600d3['getRanges']()))){if(_0x33d088){if(_0x3600d3['commentThread']&&_0x3600d3['commentThread']['length'])continue;for(const _0x450fd2 of _0x3600d3['getRanges']())_0x33d088['isIntersectingWithRange'](_0x450fd2)||_0x33d088['addRange'](_0x450fd2);_0x3600d3['removeMarkers']();}else{_0x33d088=_0x3600d3;for(const _0xd2925a of _0x200713)_0x3600d3['isIntersectingWithRange'](_0xd2925a)||_0x3600d3['addRange'](_0xd2925a);}}if(_0x33d088)return _0x33d088;_0x92c0f1['clear']();for(const {suggestion:_0xcc3862,meta:_0x1cb588}of this['_findSuggestions'](_0x200713,'deletion'))_0x1cb588['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1cb588['containsRangeInObject']&&!_0x1cb588['isInsideObject'])&&cn(_0xcc3862,_0x4dc9f6)&&_0x92c0f1['add'](_0xcc3862);for(const _0x2e3f56 of _0x92c0f1){const _0x9381cb=_0x2e3f56['getRanges']();if(!_0x4dc9f6||!_0x4dc9f6['skipNestingCheck']){if(_0x200713['every'](_0x540a6f=>_0x9381cb['some'](_0x15587f=>_0x15587f['containsRange'](_0x540a6f,!0x0))))return _0x2e3f56;}(!_0x2e3f56['attributes']||!_0x2e3f56['attributes']['skipNestingCheck'])&&(_0x9381cb['every'](_0x25bd2f=>_0x200713['some'](_0x3a34c1=>_0x3a34c1['containsRange'](_0x25bd2f,!0x0)))&&_0x2e3f56['discard']());}const _0x2744a8=_0x103bb9(),_0x13f648=_0x20d56c['id'],_0x2d2008='deletion:'+_0x4f2e15,_0x435ddc=this['_setSuggestionData']({'id':_0x2744a8,'type':_0x2d2008,'createdAt':new Date(),'authorId':_0x13f648,'attributes':_0x4dc9f6});for(const _0x246eaa of _0x200713)_0x246eaa['detach'](),_0x246eaa['isCollapsed']||'$graveyard'==_0x246eaa['root']['rootName']||this['_addSuggestionMarker'](_0x2d2008,_0x2744a8,_0x13f648,_0x246eaa,bt['getMultiRangeId']());return _0x435ddc;}['markAttributeChange'](_0x3de77d,_0xc8188f,_0x1b0f53,_0x26de3e,_0x1a0d4){if(_0x3de77d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1e883a=this['editor']['plugins']['get']('Users')['me']['id'],_0x2165d0=Array['from'](this['_suggestions']['values']())['filter'](_0x3eaf70=>'attribute'==_0x3eaf70['type']&&_0x3eaf70['data']['key']==_0xc8188f&&_0x3eaf70['isIntersectingWithRange'](_0x3de77d));if(this['_trackingSessionId']&&(_0x1a0d4['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1e6ea6=this['_findSuggestions'](_0x3de77d,'insertion')['filter'](({meta:_0x2c0698})=>_0x2c0698['isOwn']&&!_0x2c0698['isInsideObject']&&!_0x2c0698['isNextTo'])['map'](({suggestion:_0x4c3ddd})=>_0x4c3ddd);_0x2165d0['unshift'](..._0x1e6ea6);}const _0x4f3c88=new Map([[_0x3de77d,_0x1b0f53]]);for(const _0x2e6e20 of _0x2165d0){const _0x558ede='attribute'==_0x2e6e20['type']?_0x2e6e20['data']['oldValue']:void 0x0,_0x4a96ff=_0x2e6e20['getFirstRange'](),_0x2aff10=Array['from'](_0x4f3c88['keys']())['find'](_0x40c2f8=>_0x40c2f8['isIntersecting'](_0x4a96ff));if(!_0x2aff10)continue;const _0x3e9863=_0x2aff10['getDifference'](_0x4a96ff);this['_suggestionsConversion']['isBlockAttribute'](_0xc8188f)&&'insertion'==_0x2e6e20['type']&&0x0!=_0x3e9863['length']||(_0x4f3c88['delete'](_0x2aff10),_0x3e9863['forEach'](_0x34175d=>{_0x4f3c88['set'](_0x34175d,_0x1b0f53);}),'insertion'!=_0x2e6e20['type']&&_0x558ede!=_0x26de3e&&_0x4f3c88['set'](_0x2aff10['getIntersection'](_0x4a96ff),_0x558ede));}const _0x4b1a93=[];for(const [_0x41c943,_0x5859fc]of _0x4f3c88){const _0xaa81a8=_0x103bb9(),_0x459ed2={'key':_0xc8188f,'oldValue':_0x5859fc,'newValue':_0x26de3e};_0xc8188f['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':_0xc8188f});const _0x498e91=('attribute:'+(_0xc8188f+'|'+Je({'newValue':_0x26de3e})))['substring'](0x0,0x3c),_0x214605=this['_setSuggestionData']({'id':_0xaa81a8,'type':_0x498e91,'data':_0x459ed2,'createdAt':new Date(),'authorId':_0x1e883a,'attributes':_0x1a0d4});_0x4b1a93['push'](_0x214605),this['_addSuggestionMarker'](_0x498e91,_0xaa81a8,_0x1e883a,_0x41c943);}return _0x4b1a93;}['enableDefaultAttributesIntegration'](_0x134ec5){this['enableCommand'](_0x134ec5,(_0xa83e6d,..._0x55a5c4)=>{this['recordAttributeChanges'](()=>{_0xa83e6d(..._0x55a5c4);});});}['startTrackingSession'](_0xc037c7){return this['_trackingSessionId']=void 0x0!==_0xc037c7?_0xc037c7:_0x103bb9(),this['_trackingSessionId'];}['_getAttributeKey'](_0x502ce8){return'attribute'==_0x502ce8['type']?un(_0x502ce8['subType']):null;}['_applyOperationsAsSuggestions'](_0x396b94){if(0x0==_0x396b94['length'])return;const _0x4f9200=this['editor'],_0x37ad51=_0x4f9200['plugins']['get'](_0xea4cf3),_0x3e656d=[];_0x4f9200['model']['change'](_0x54fd96=>{for(let _0x387422=0x0;_0x387422<_0x396b94['length'];_0x387422++){const _0x71f6e1=_0x396b94[_0x387422];if(_0x71f6e1['baseVersion']=_0x4f9200['model']['document']['version'],_0x71f6e1['isDocumentOperation']=!0x0,_0x37ad51['isMarkedRemoveOperation'](_0x71f6e1)){const _0x35d109=_0x34d52d(_0x71f6e1['newRange'],_0x4f9200['model']);_0x3e656d['unshift'](_0xb14de3['fromRange'](_0x35d109));}else switch(_0x71f6e1['type']){case'rename':{const _0x5e09b5=_0x71f6e1['oldName'],_0x181009=_0x71f6e1['newName'];if(_0x5e09b5==_0x181009)break;_0x54fd96['batch']['addOperation'](_0x71f6e1),_0x4f9200['model']['applyOperation'](_0x71f6e1);const _0x402af6='$elementName',_0x7fab8f=_0x71f6e1['position'],_0x1ce1e5=_0x4f9200['model']['createRange'](_0x7fab8f,_0x4f9200['model']['createPositionAt'](_0x7fab8f['nodeAfter'],'end'));this['markAttributeChange'](_0x1ce1e5,_0x402af6,_0x5e09b5,_0x181009,{'groupId':_0x103bb9()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1f2377=_0x71f6e1['oldValue'],_0x2fd985=_0x71f6e1['newValue'];if(_0x1f2377==_0x2fd985)break;_0x54fd96['batch']['addOperation'](_0x71f6e1),_0x4f9200['model']['applyOperation'](_0x71f6e1);const _0x262819=_0x71f6e1['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x262819))break;const _0x463de8=_0x34d52d(_0x71f6e1['range'],_0x4f9200['model']);this['markAttributeChange'](_0x463de8,_0x262819,_0x1f2377,_0x2fd985,{'groupId':_0x103bb9()});break;}case'insert':{_0x54fd96['batch']['addOperation'](_0x71f6e1),_0x4f9200['model']['applyOperation'](_0x71f6e1);if(_0x396b94[_0x387422+0x1]&&'move'==_0x396b94[_0x387422+0x1]['type'])break;const _0x1cf1eb=_0x71f6e1['position'],_0x39ae39=_0x71f6e1['howMany'],_0xf6e469=_0x34d52d(_0x4f9200['model']['createRange'](_0x1cf1eb,_0x1cf1eb['getShiftedBy'](_0x39ae39)),_0x4f9200['model']);this['markInsertion'](_0xf6e469);break;}case'split':{_0x54fd96['batch']['addOperation'](_0x71f6e1),_0x4f9200['model']['applyOperation'](_0x71f6e1);const _0x52e23f=_0x71f6e1['splitPosition'],_0x132e7e=_0x71f6e1['moveTargetPosition'];this['markInsertion'](_0x4f9200['model']['createRange'](_0x52e23f,_0x132e7e));break;}case'move':case'remove':_0x54fd96['batch']['addOperation'](_0x71f6e1),_0x4f9200['model']['applyOperation'](_0x71f6e1);}}for(const _0x5a4a8d of _0x3e656d)_0x5a4a8d['detach'](),this['markDeletion'](_0x5a4a8d);});}['_setSuggestionRange'](_0x31d064,_0x56ef42){const _0x596044=_0x31d064['getFirstMarker']();this['_model']['change'](_0x23296f=>{_0x23296f['updateMarker'](_0x596044,{'range':_0x56ef42});});}['_addThreadToSuggestion'](_0xaab328){const _0x3a938e=_0xaab328['id'],_0x31d34a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3a938e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x31d34a,'threadId':_0x3a938e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4e6274=this['_commentsRepository']['getCommentThread'](_0x3a938e);_0x4e6274['unbind']('isRemovable'),_0x4e6274['isRemovable']=!0x1,_0xaab328['commentThread']=_0x4e6274;}['_checkSuggestionCorrectness'](_0x13f2da,_0x47f9d1,_0x137727,_0x4902a8){if(_0x13f2da['type']!=_0x47f9d1||_0x13f2da['subType']!=_0x137727||_0x13f2da['creator']['id']!=_0x4902a8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xa37ad8('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x564e6b,_0x5d4422){const _0xcd0af1=_0x564e6b['getFirstRange']();if(_0x5d4422['isEqual'](_0xcd0af1))_0x564e6b['removeMarkers']();else{if(_0xcd0af1['containsRange'](_0x5d4422)){const _0x372909=this['_model']['createPositionAt'](_0x5d4422['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x564e6b,this['_model']['createRange'](_0xcd0af1['start'],_0x372909));const _0x513293=_0x103bb9(),_0x14cbac=_0x564e6b['creator']['id'],_0x3a4032=_0x564e6b['type']+':'+_0x564e6b['subType'];this['_setSuggestionData']({'id':_0x513293,'type':_0x3a4032,'createdAt':new Date(),'authorId':_0x14cbac,'data':_0x564e6b['data'],'attributes':_0x564e6b['attributes']});const _0x3eb2f1=this['_model']['createPositionAt'](_0x5d4422['end']['parent'],'after'),_0x34e66b=this['_model']['createRange'](_0x3eb2f1,_0xcd0af1['end']);this['_addSuggestionMarker'](_0x3a4032,_0x513293,_0x14cbac,_0x34e66b);}else{if(_0xcd0af1['containsPosition'](_0x5d4422['start'])){const _0x2c22f4=this['_model']['createPositionAt'](_0x5d4422['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x564e6b,this['_model']['createRange'](_0xcd0af1['start'],_0x2c22f4));}else{const _0x5a7a6e=this['_model']['createPositionAt'](_0x5d4422['end']['parent'],'after');this['_setSuggestionRange'](_0x564e6b,this['_model']['createRange'](_0x5a7a6e,_0xcd0af1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x396232){for(const {suggestion:_0x228828,meta:_0x12d13b}of this['_findSuggestions'](_0x396232,'insertion')){if(!_0x12d13b['isOwn'])continue;const _0x3d2071=_0x228828['getRanges']();for(const _0x5891a4 of _0x3d2071)if(!_0x396232['getDifference'](_0x5891a4)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3be5c2){return this['editor']['plugins']['get']('Users')['getUser'](_0x3be5c2);}['_getExternalAuthor'](_0x1dabc1){const _0x253d09=this['editor']['plugins']['get']('Users'),_0x59fc9f=_0x4b85e2('external:'+_0x1dabc1),_0x2bbbb1=_0x253d09['getUser'](_0x59fc9f);return _0x2bbbb1||_0x253d09['addUser']({'id':_0x59fc9f,'name':_0x1dabc1});}['_createSuggestion'](_0x2b03f1,_0x4fdf6d,_0x1e7773,_0x1f7135,_0x50fff5,_0x3f1d12){const _0x4f26dd=this['_getAuthorFromId'](_0x1f7135);if(!_0x4f26dd)throw new _0xa37ad8('track-changes-user-not-found',this,{'authorId':_0x1f7135,'suggestionId':_0x1e7773});const _0x463424=this['_suggestionFactory']['buildSuggestion'](_0x2b03f1,_0x4fdf6d,_0x1e7773,_0x4f26dd,_0x50fff5,_0x313bfd=>{this['_updateSuggestionData'](_0x1e7773,{'attributes':_0x313bfd});const _0x4e3ff5=this['getSuggestion'](_0x1e7773);this['_joinWithAdjacentSuggestions'](new Set([_0x4e3ff5])),this['_refreshSuggestionsChain'](new Set([_0x4e3ff5]));},_0x3f1d12);return this['listenTo'](_0x463424,'accept',()=>{this['_updateSuggestionData'](_0x1e7773,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x463424,'discard',()=>{this['_updateSuggestionData'](_0x1e7773,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1e7773,_0x463424),this['_suggestionState']['set'](_0x463424,'notReady'),_0x463424;}['_breakSuggestionMarker'](_0xad56f6,_0x3ecff7,_0x3c671c){const _0x2c05ff=_0xad56f6['getFirstRange'](),_0x52ba1a=_0x2c05ff['start'],_0x1a13ee=_0x2c05ff['end'];this['_setSuggestionRange'](_0xad56f6,this['_model']['createRange'](_0x52ba1a,_0x3ecff7));const _0x2cb3d1=_0x103bb9(),_0x13ea87=_0xad56f6['creator']['id'],_0x1a78e9=_0xad56f6['type']+(_0xad56f6['subType']?':'+_0xad56f6['subType']:'');this['_setSuggestionData']({'id':_0x2cb3d1,'type':_0x1a78e9,'createdAt':new Date(),'authorId':_0x13ea87,'originalSuggestionId':_0xad56f6['_originalSuggestionId']||_0xad56f6['id'],'attributes':_0xad56f6['attributes'],'data':_0xad56f6['data']});const _0x539bbd=this['_getAttributeKey'](_0xad56f6);('formatBlock'==_0xad56f6['type']||_0x539bbd&&this['_suggestionsConversion']['isBlockAttribute'](_0x539bbd))&&(_0x3c671c=this['_model']['createPositionBefore'](_0x3c671c['parent'])),this['_addSuggestionMarker'](_0x1a78e9,_0x2cb3d1,_0x13ea87,this['_model']['createRange'](_0x3c671c,_0x1a13ee));}['_findSuggestions'](_0x27e8ae,_0x5ec60a=null){const _0x3d89e0=[],_0x48c558=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x27e8ae)||(_0x27e8ae=[_0x27e8ae]);for(const _0x5ef52f of this['getSuggestions']()){if(!_0x5ef52f['isInContent'])continue;if(_0x5ec60a&&_0x5ef52f['type']!=_0x5ec60a)continue;let _0x2408bd=!0x1;for(const _0x254591 of _0x5ef52f['getRanges']()){for(const _0xecea2d of _0x27e8ae){const _0x5d9398=_0xecea2d['start']['isEqual'](_0x254591['end'])||_0xecea2d['end']['isEqual'](_0x254591['start']);if(_0x5d9398||_0xecea2d['getIntersection'](_0x254591)){const _0x1f369e=_0xecea2d['containsRange'](_0x254591)&&qe(this['_model']['schema'],_0x254591['start'],_0xecea2d),_0x3d5a9b=_0x254591['containsRange'](_0xecea2d)&&qe(this['_model']['schema'],_0xecea2d['start'],_0x254591);_0x3d89e0['push']({'suggestion':_0x5ef52f,'meta':{'isOwn':_0x48c558==_0x5ef52f['author'],'isNextTo':_0x5d9398,'isInsideObject':_0x1f369e,'containsRangeInObject':_0x3d5a9b}}),_0x2408bd=!0x0;break;}}if(_0x2408bd)break;}}return _0x3d89e0;}['_addSuggestionMarker'](_0x568758,_0x419d38,_0x275e94,_0x22db1d,_0xdf40d){this['_model']['change'](_0x4f19f1=>{let _0x139b5c='suggestion:'+_0x568758+':'+_0x419d38+':'+_0x275e94;_0xdf40d&&(_0x139b5c=_0x139b5c+':'+_0xdf40d),_0x4f19f1['addMarker'](_0x139b5c,{'range':_0x22db1d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x245497){const _0x5c68d0=_0x245497['previous'],_0x48c44f=_0x245497['next'];_0x245497['previous']=null,_0x245497['next']=null,null!=_0x5c68d0&&_0x5c68d0['next']==_0x245497&&(_0x5c68d0['next']=_0x48c44f),null!=_0x48c44f&&_0x48c44f['previous']==_0x245497&&(_0x48c44f['previous']=_0x5c68d0),'ready'==this['_suggestionState']['get'](_0x245497)&&(this['_suggestionState']['set'](_0x245497,'removed'),this['fire']('suggestionUnloaded',_0x245497,_0x5c68d0,_0x48c44f));}['_setSuggestionData'](_0x2b5b78){const _0x523f14=_0x2b5b78['id'],_0x32c7ed=this['addSuggestionData'](_0x2b5b78);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2542a4=this['editor']['plugins']['get']('PendingActions'),_0x1a1435=_0x32c7ed['hasComments'],_0x10847e=_0x32c7ed['subType']?_0x32c7ed['type']+':'+_0x32c7ed['subType']:_0x32c7ed['type'],_0x259210=this['editor']['locale'],_0x3d33d4=_0x2542a4['add'](At(_0x259210,'PENDING_ACTION_SUGGESTION')),_0x3a343b={'id':_0x523f14,'type':_0x10847e,'hasComments':_0x1a1435,'data':_0x2b5b78['data']||null,'originalSuggestionId':_0x2b5b78['originalSuggestionId']||null,'attributes':_0x32c7ed['attributes']};this['_adapter']['addSuggestion'](_0x3a343b)['then'](_0x3a5dc4=>{_0x32c7ed['_saved']=!0x0,_0x2542a4['remove'](_0x3d33d4),_0x3a5dc4&&_0x3a5dc4['createdAt']&&(this['_suggestions']['get'](_0x523f14)['createdAt']=_0x3a5dc4['createdAt']);})['catch'](_0x268918=>{throw _0x329fd4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x32c7ed['discard']();}),_0x32c7ed['stopListening'](),this['_suggestions']['delete'](_0x32c7ed['id']),this['_suggestionState']['delete'](_0x32c7ed),_0x268918;});}return _0x32c7ed;}['_updateSuggestionData'](_0x1c24ff,_0x4acdc2){const _0x1ae681=this['editor']['plugins']['get']('PendingActions'),_0x3f14d1=this['getSuggestion'](_0x1c24ff);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3f14d1['_saved']){const _0x57a0a1=_0x1ae681['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1c24ff,_0x4acdc2)['then'](()=>{_0x1ae681['remove'](_0x57a0a1);});}else _0x3f14d1['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1c24ff,_0x4acdc2);});}}['_getSuggestionData'](_0x4a95fa){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xa37ad8('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4a95fa);}['_handleNewSuggestionMarker'](_0xf628c9){const {id:_0x27d2a9,type:_0x18f6a0,subType:_0x233a24,authorId:_0x39f494}=_0x4a9b4b(_0xf628c9),_0x55a063=this['_suggestions']['get'](_0x27d2a9)||this['_createSuggestion'](_0x18f6a0,_0x233a24,_0x27d2a9,_0x39f494,{});switch(this['_checkSuggestionCorrectness'](_0x55a063,_0x18f6a0,_0x233a24,_0x39f494),this['_suggestionState']['get'](_0x55a063)){case'notReady':this['_getSuggestionData'](_0x27d2a9)['then'](_0x2bfc08=>{let _0x308790=Promise['resolve']();_0x2bfc08['hasComments']&&(_0x308790=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x27d2a9})),_0x308790['then'](()=>{this['addSuggestionData'](_0x2bfc08)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x55a063,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x27d2a9,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x55a063,'ready'),this['fire']('suggestionLoaded',_0x55a063);break;case'ready':this['fire']('suggestionChanged',_0x55a063);}return _0x55a063['addMarkerName'](_0xf628c9),_0x55a063;}['_refreshSuggestionsChain'](_0x408444){const _0x490dd7=Array['from'](_0x408444),_0xd2b823=_0x490dd7['filter'](_0x16ce7b=>'attribute'==_0x16ce7b['type']);this['_refreshAttributeSuggestionsChain'](_0xd2b823);const _0x50465f=_0x490dd7['filter'](_0x28af25=>!_0x28af25['isMultiRange']&&'attribute'!=_0x28af25['type']),_0x1fa79b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc49012=>!_0xc49012['isMultiRange']&&'attribute'!=_0xc49012['type']),_0x1beeba=_0x1fa79b['filter'](_0x5dc011=>!_0x408444['has'](_0x5dc011)),_0x2e05ae=new Map(_0x1fa79b['map'](_0x808e96=>[_0x808e96,this['_suggestionFactory']['getSuggestionCallback'](_0x808e96['type'],_0x808e96['subType'],'chain')])),_0x536c31=new Map(_0x1fa79b['map'](_0x2c7326=>[_0x2c7326,_0x2c7326['getFirstRange']()])),_0x24812f=new Set(),_0xa81d24=new Set();for(let _0x5bf738=0x0;_0x5bf738<_0x50465f['length'];_0x5bf738++)_0x2b6710(_0x50465f[_0x5bf738],_0x50465f,_0x5bf738+0x1);for(let _0x1fa1d8=0x0;_0x1fa1d8<_0x50465f['length'];_0x1fa1d8++)_0x2b6710(_0x50465f[_0x1fa1d8],_0x1beeba,0x0);const _0x10871b=new Set();for(let _0x46e803=0x0;_0x46e803<_0x50465f['length'];_0x46e803++){const _0x5995d8=_0x50465f[_0x46e803];!_0xa81d24['has'](_0x5995d8)&&_0x5995d8['previous']&&(_0x10871b['add'](_0x5995d8['previous']),_0x5995d8['previous']['next']===_0x5995d8&&(_0x5995d8['previous']['next']=null),_0x5995d8['previous']=null),!_0x24812f['has'](_0x5995d8)&&_0x5995d8['next']&&(_0x10871b['add'](_0x5995d8['next']),_0x5995d8['next']['previous']===_0x5995d8&&(_0x5995d8['next']['previous']=null),_0x5995d8['next']=null);}function _0x2b6710(_0x546281,_0xa25eee,_0x4945cf){for(let _0x793132=_0x4945cf;_0x793132<_0xa25eee['length'];_0x793132++){const _0x45d556=_0x2fe5ae(_0x546281,_0xa25eee[_0x793132]);_0x45d556&&(_0x45d556[0x0]['next']=_0x45d556[0x1],_0x45d556[0x1]['previous']=_0x45d556[0x0],_0x24812f['add'](_0x45d556[0x0]),_0xa81d24['add'](_0x45d556[0x1]));}}function _0x2fe5ae(_0x47850f,_0x304a2a){if(_0x47850f['author']['id']!==_0x304a2a['author']['id'])return null;const _0x3040d6=_0x2e05ae['get'](_0x47850f)(_0x47850f,_0x304a2a,_0x536c31['get'](_0x47850f),_0x536c31['get'](_0x304a2a));if(!_0x3040d6)return null;return _0x2e05ae['get'](_0x304a2a)(_0x47850f,_0x304a2a,_0x536c31['get'](_0x47850f),_0x536c31['get'](_0x304a2a))?_0x3040d6[0x1]['commentThread']&&_0x3040d6[0x1]['commentThread']['length']?null:_0x3040d6:null;}_0x10871b['size']&&this['_refreshSuggestionsChain'](_0x10871b);}['_refreshAttributeSuggestionsChain'](_0x313949){if(0x0==_0x313949['length'])return;const _0xa084f5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b9314=>'attribute'==_0x4b9314['type']&&_0x4b9314['_isDataLoaded']),_0x495560=[],_0xfb542c=new Map();for(const _0x4e648b of _0xa084f5){const _0x5a1657=_0x4b85e2(_0x4e648b['attributes']);_0xfb542c['has'](_0x5a1657)||(_0xfb542c['set'](_0x5a1657,_0x495560['length']),_0x495560['push']([]));const _0x347670=_0xfb542c['get'](_0x5a1657);_0x495560[_0x347670]['push'](_0x4e648b);}!(function(){_0x495560['sort']((_0x61b5b5,_0x56190e)=>{const _0x3f7883=_0x61b5b5[0x0]['createdAt'],_0x6e8cef=_0x56190e[0x0]['createdAt'];return _0x3f7883==_0x6e8cef?_0x61b5b5[0x0]['attributes']['groupId']<_0x56190e[0x0]['attributes']['groupId']?-0x1:0x1:_0x3f7883<_0x6e8cef?-0x1:0x1;});for(const _0x47a26b of _0x495560)_0x47a26b['sort']((_0x2a92b1,_0x2df866)=>_0x2a92b1['id']<_0x2df866['id']?-0x1:0x1);}());for(let _0x1497ce=0x0;_0x1497ce<_0x495560['length'];_0x1497ce++){if(0x0==_0x495560[_0x1497ce]['length'])continue;const _0x301ed8=[];for(let _0x55c155=_0x1497ce+0x1;_0x55c155<_0x495560['length'];_0x55c155++)0x0!=_0x495560[_0x55c155]['length']&&_0x256ec6(_0x495560[_0x1497ce],_0x495560[_0x55c155])&&_0x301ed8['push'](_0x55c155);for(const _0x54f053 of _0x301ed8)_0x495560[_0x1497ce]=_0x495560[_0x1497ce]['concat'](_0x495560[_0x54f053]),_0x495560[_0x54f053]=[];}for(const _0x766727 of _0x495560)for(let _0x102e19=0x0;_0x102e19<_0x766727['length'];_0x102e19++){const _0x4da5b4=_0x766727[_0x102e19+0x1]||null;_0x766727[_0x102e19]['next']!==_0x4da5b4&&(_0x766727[_0x102e19]['next']=_0x4da5b4);}for(const _0x1530e9 of _0x495560)for(let _0x2c4e23=0x0;_0x2c4e23<_0x1530e9['length'];_0x2c4e23++){const _0x5316ed=_0x1530e9[_0x2c4e23-0x1]||null;_0x1530e9[_0x2c4e23]['previous']!==_0x5316ed&&(_0x1530e9[_0x2c4e23]['previous']=_0x5316ed);}function _0x256ec6(_0x4b550c,_0x31a58e){if(_0x4b550c[0x0]['attributes']['groupId']!==_0x31a58e[0x0]['attributes']['groupId']&&_0x4b550c[0x0]['author']!==_0x31a58e[0x0]['author'])return!0x1;if(!function(_0x250d40,_0x13b6d8){if(!_0x250d40['hasComments']&&!_0x13b6d8['hasComments'])return!0x0;if(_0x250d40['hasComments']&&_0x13b6d8['hasComments'])return!0x1;if(_0x250d40['hasComments']&&_0x13b6d8['createdAt']<_0x250d40['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x13b6d8['hasComments']&&_0x250d40['createdAt']<_0x13b6d8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4b550c[0x0],_0x31a58e[0x0]))return!0x1;const _0x4b438b=ot(_0x4b550c[0x0]['attributes'],['groupId','trackingSessionId']),_0x55eb2f=ot(_0x31a58e[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x4b438b,_0x55eb2f))return!0x1;if(_0x4b550c[0x0]['attributes']['groupId']==_0x31a58e[0x0]['attributes']['groupId'])return!0x0;if(_0x4b550c[0x0]['attributes']['trackingSessionId']!==_0x31a58e[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4b550c['every'](_0x536a51=>_0x31a58e['some'](_0x28a83d=>_0x536a51['getFirstRange']()['isEqual'](_0x28a83d['getFirstRange']())))&&_0x31a58e['every'](_0x48a8f3=>_0x4b550c['some'](_0x1b30fa=>_0x48a8f3['getFirstRange']()['isEqual'](_0x1b30fa['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x52f726){const _0x4550f9=Array['from'](_0x52f726),_0x12cf8f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x214e1d=_0x12cf8f['filter'](_0x4df71c=>!_0x52f726['has'](_0x4df71c)),_0x58ff21=new Map(_0x4550f9['map'](_0x5732e2=>[_0x5732e2,this['_suggestionFactory']['getSuggestionCallback'](_0x5732e2['type'],_0x5732e2['subType'],'join')])),_0x54a156=new Map(_0x12cf8f['map'](_0x1d1147=>[_0x1d1147,_0x1d1147['getRanges']()]));for(let _0x279f52=0x0;_0x279f52<_0x4550f9['length'];_0x279f52++){if(_0x6f86b(this,_0x4550f9[_0x279f52],_0x4550f9,_0x279f52+0x1))return!0x0;}for(let _0x270b07=0x0;_0x270b07<_0x4550f9['length'];_0x270b07++){if(_0x6f86b(this,_0x4550f9[_0x270b07],_0x214e1d,0x0))return!0x0;}return!0x1;function _0x6f86b(_0x28dda2,_0x3561d7,_0x52c474,_0x2a0695){for(let _0x2c39fd=_0x2a0695;_0x2c39fd<_0x52c474['length'];_0x2c39fd++){const _0x5bd6e3=_0x52c474[_0x2c39fd];if(_0x5bd6e3['type']!==_0x3561d7['type']||_0x5bd6e3['author']['id']!==_0x3561d7['author']['id']||_0x5bd6e3['subType']!==_0x3561d7['subType'])continue;if(!an(_0x3561d7,_0x5bd6e3))continue;if('attribute'==_0x3561d7['type']&&_0x3561d7['data']['oldValue']!=_0x5bd6e3['data']['oldValue'])continue;if('attribute'==_0x3561d7['type']&&_0x28dda2['_suggestionsConversion']['isBlockAttribute'](_0x3561d7['data']['key']))continue;if('formatBlock'==_0x3561d7['type']){const _0x3247cf=_0x28dda2['editor']['model'],_0x258a27=_0x3561d7['getContainedElement']();if(_0x258a27&&(_0x3247cf['schema']['isObject'](_0x258a27)||_0x3247cf['schema']['isLimit'](_0x258a27)))continue;}const _0x211e60=_0x58ff21['get'](_0x3561d7),_0x3e5098=_0x54a156['get'](_0x3561d7),_0x5e3eb8=_0x54a156['get'](_0x5bd6e3),_0x4f44fb=_0x3561d7['commentThread']&&_0x3561d7['commentThread']['length'],_0x5d6c73=_0x5bd6e3['commentThread']&&_0x5bd6e3['commentThread']['length'];if(!_0x4f44fb&&_0x211e60(_0x5e3eb8,_0x3e5098))return _0x28dda2['_joinSuggestions'](_0x5bd6e3,_0x3561d7),_0x54a156['delete'](_0x3561d7),!0x0;if(!_0x5d6c73&&_0x211e60(_0x3e5098,_0x5e3eb8))return _0x28dda2['_joinSuggestions'](_0x3561d7,_0x5bd6e3),_0x54a156['delete'](_0x5bd6e3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x13989e,_0x3580ba){if(_0x13989e['isMultiRange']){for(const _0xd607b6 of _0x3580ba['getRanges']())_0x13989e['addRange'](_0xd607b6);}else{const _0x4b7428=_0x3580ba['getFirstRange']()['end'];this['_setSuggestionRange'](_0x13989e,this['_model']['createRange'](_0x13989e['getFirstRange']()['start'],_0x4b7428));}_0x3580ba['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2bddaa,_0x2580f7,_0x5ec239){const _0x1840b8=_0x2bddaa['startsWith']('format')||_0x2bddaa['startsWith']('attribute')?'FORMATTING':_0x2bddaa['toUpperCase']();return At(this['editor']['locale'],_0x2580f7+'_'+_0x1840b8+'_SUGGESTION_ANNOUNCEMENT',_0x5ec239);}['_initAriaMarkerChangeAnnouncements'](){const _0x5936b1=this['editor'];if(!_0x5936b1['ui'])return;const {ariaLiveAnnouncer:_0x1d5734}=_0x5936b1['ui'];_0x2c8291(this['_model'],({left:_0x19f445,entered:_0x97e97})=>{for(const _0x2e4b23 of _0x19f445){const {group:_0x2a9426,type:_0x5fd489}=_0x4a9b4b(_0x2e4b23['name']);if('suggestion'===_0x2a9426){_0x1d5734['announce'](this['_getMarkerAnnouncementText'](_0x5fd489,'LEAVE'));break;}}for(const _0x3ca211 of _0x97e97){const {group:_0x3aae1f,type:_0x180fc7}=_0x4a9b4b(_0x3ca211['name']);if('suggestion'===_0x3aae1f){_0x1d5734['announce'](this['_getMarkerAnnouncementText'](_0x180fc7,'ENTER',_0x106db3(_0xbe4ea3)));break;}}});}['_processAttributeChanges'](_0x295d47){if(this['_recordAttributeSuggestions'])return!0x1;const _0x47b313=this['editor'],_0x17b7a4=_0x47b313['model']['document']['differ']['getChanges']();if(0x0==_0x17b7a4['length'])return!0x1;const _0x289994=[],_0x5e386b=_0x17b7a4['filter'](_0x28b10b=>'attribute'==_0x28b10b['type']),_0x316d76=_0x17b7a4['filter'](_0x2a1194=>'insert'==_0x2a1194['type']&&'$text'!=_0x2a1194['name']),_0x56062d=_0x17b7a4['filter'](_0x2f7cc8=>'remove'==_0x2f7cc8['type']&&'$text'!=_0x2f7cc8['name']);for(const _0x228a37 of _0x5e386b)_0x289994['push']({'key':_0x228a37['attributeKey'],'newValue':_0x228a37['attributeNewValue'],'oldValue':_0x228a37['attributeOldValue'],'range':sn(_0x228a37['range'],_0x47b313['model'])});for(const _0x2cbf1a of _0x316d76){const _0x364f5d=_0x56062d['find'](_0x3286c7=>_0x3286c7['position']['isEqual'](_0x2cbf1a['position']));_0x364f5d&&_0x289994['push']({'key':Ke,'newValue':_0x2cbf1a['name'],'oldValue':_0x364f5d['name'],'range':_0x47b313['model']['createRangeOn'](_0x2cbf1a['position']['nodeAfter'])});}return 0x0!=_0x289994['length']&&this['_reduceExistingSuggestions'](_0x295d47,_0x289994);}['_processAttributeSuggestions'](_0x43cf70){let _0x976f92=!0x1;const _0x57ce9c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x51e819=>_0x51e819['data']['newRange']&&_0x51e819['name']['startsWith']('suggestion:attribute:'));for(const _0x17ff4f of _0x57ce9c){const {subType:_0x2f954d,id:_0x4e2bce}=_0x4a9b4b(_0x17ff4f['name']),_0x2a527e=_0x2f954d['split']('|')[0x0];for(const _0x2a6a75 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2a6a75['id']!=_0x4e2bce&&'attribute'==_0x2a6a75['type']&&_0x2a6a75['data']&&_0x2a6a75['data']['key']==_0x2a527e&&_0x2a6a75['getFirstRange']()['isIntersecting'](_0x17ff4f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2a6a75,_0x17ff4f['data']['newRange'],_0x43cf70),_0x976f92=!0x0);}return _0x976f92;}['recordAttributeChanges'](_0x420483){this['_recordAttributeSuggestions']=!0x0,_0x420483();}['_reduceExistingSuggestions'](_0x234eb1,_0xca2a40){if(0x0==_0xca2a40['length'])return!0x1;let _0xffd595=!0x1;for(const _0x234a8b of _0xca2a40){const _0x499f1e=this['_findSuggestions'](_0x234a8b['range'],'attribute')['filter'](_0x2bf2c4=>!_0x2bf2c4['meta']['isNextTo'])['map'](_0x141f38=>_0x141f38['suggestion']),_0x57e894=_0x4b85e2({'newValue':_0x234a8b['newValue']});_0x499f1e['filter'](_0x5bc676=>{const [_0x5357c7,_0x47478c]=_0x5bc676['subType']['split']('|');return _0x5357c7==_0x234a8b['key']&&_0x47478c!=_0x57e894;})['forEach'](_0x2b0308=>{this['_reduceSuggestionAttributeRange'](_0x2b0308,_0x234a8b['range'],_0x234eb1),_0xffd595=!0x0;});}return _0xffd595;}['_reduceSuggestionAttributeRange'](_0x32ae6c,_0x18799a,_0x339b71){const _0x29a920=_0x32ae6c['getFirstRange']()['getDifference'](_0x18799a);0x0!==_0x29a920['length']?0x1!==_0x29a920['length']?this['_breakSuggestionMarker'](_0x32ae6c,_0x18799a['start'],_0x18799a['end']):this['_setSuggestionRange'](_0x32ae6c,_0x29a920[0x0]):_0x339b71['removeMarker'](_0x32ae6c['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x219558){this['_editor']=_0x219558,this['_model']=_0x219558['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5f39a9,_0x30f78d,_0x413dd1,_0x296d8b,_0x4d2bda,_0x4bd78e,_0x48a6c4){return new bt(this['_model'],{'type':_0x5f39a9,'subType':_0x30f78d,'id':_0x413dd1,'originalSuggestionId':_0x48a6c4,'author':_0x296d8b,'creator':_0x296d8b,'attributes':_0x4d2bda,'onAttributesChange':_0x4bd78e,'onAccept':(..._0x19fb3e)=>this['getSuggestionCallback'](_0x5f39a9,_0x30f78d,'accept')(..._0x19fb3e),'onDiscard':(..._0x38194c)=>this['getSuggestionCallback'](_0x5f39a9,_0x30f78d,'discard')(..._0x38194c)});}['registerCustomCallback'](_0x1155bc,_0x15d334,_0x38beef,_0x213117){const _0x3bee94=_0x1155bc+':'+_0x15d334+':'+_0x38beef;this['_customCallbacks']['set'](_0x3bee94,_0x213117);}['getSuggestionCallback'](_0x13d493,_0x3b8830,_0x3d743d){const _0x1d70b3=_0x13d493+':'+_0x3b8830+':'+_0x3d743d;return this['_customCallbacks']['get'](_0x1d70b3)||this['_defaultCallbacks']['get'](_0x13d493+':'+_0x3d743d);}['_registerDefaultCallbacks'](){const _0x52b984=()=>!0x1,_0x3183b0=_0x2b721b=>{_0x2b721b['sort']((_0x576aeb,_0x419a93)=>_0x576aeb['start']['isBefore'](_0x419a93['start'])?0x1:-0x1),this['_model']['change'](_0x6151ca=>{for(const _0x4a86dd of _0x2b721b){let _0x4ae581;_0x4ae581=_0x4a86dd['end']['isAtEnd']&&_0x4a86dd['end']['parent']==_0x4a86dd['start']['nodeAfter']?_0x6151ca['createSelection'](_0x4a86dd['start']['nodeAfter'],'on'):_0x6151ca['createSelection'](_0x4a86dd),this['_model']['deleteContent'](_0x4ae581,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x502a70=(_0x1f3277,_0x258139)=>{_0x258139&&this['_model']['change'](_0x111946=>{const {commandName:_0x509694,commandParams:_0x2f93e8=[]}=_0x258139,_0x1fe3d7=_0x1f3277['map'](_0x58a9e6=>(Qe(_0x58a9e6)&&(_0x58a9e6=this['_model']['createRange'](_0x58a9e6['end'])),_0x58a9e6))['filter'](_0x130c7f=>'$graveyard'!==_0x130c7f['root']['rootName']);if(_0x1fe3d7['length']<0x1)return;const _0x37906b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x544690=>_0xb14de3['fromRange'](_0x544690));_0x111946['setSelection'](_0x1fe3d7);for(const _0xb72f65 of this['_editor']['commands']['commands']())_0xb72f65['refresh']();_0x2f93e8['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x509694,..._0x2f93e8);const _0xbe9f0f=_0x37906b['filter'](_0x528135=>'$graveyard'!=_0x528135['root']['rootName']);_0xbe9f0f['length']>0x0&&_0x111946['setSelection'](_0xbe9f0f);for(const _0x5b365f of _0x37906b)_0x5b365f['detach']();});},_0xdb446c=(_0x12ba23,_0x3cf854)=>0x1==_0x12ba23['length']&&0x1==_0x3cf854['length']&&_0x12ba23[0x0]['end']['isEqual'](_0x3cf854[0x0]['start']),_0x5e6052=(_0xbebc64,_0x23e5e5,_0x5ce2b0,_0xbe4fd6)=>on(_0xbebc64,_0x23e5e5,_0x5ce2b0,_0xbe4fd6)?[_0xbebc64,_0x23e5e5]:on(_0x23e5e5,_0xbebc64,_0xbe4fd6,_0x5ce2b0)?[_0x23e5e5,_0xbebc64]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x52b984),this['_defaultCallbacks']['set']('insertion:discard',_0x3183b0),this['_defaultCallbacks']['set']('insertion:join',_0xdb446c),this['_defaultCallbacks']['set']('insertion:chain',_0x5e6052),this['_defaultCallbacks']['set']('deletion:accept',_0x3183b0),this['_defaultCallbacks']['set']('deletion:discard',_0x52b984),this['_defaultCallbacks']['set']('deletion:join',_0xdb446c),this['_defaultCallbacks']['set']('deletion:chain',_0x5e6052),this['_defaultCallbacks']['set']('formatInline:accept',_0x502a70),this['_defaultCallbacks']['set']('formatInline:discard',_0x52b984),this['_defaultCallbacks']['set']('formatInline:join',_0xdb446c),this['_defaultCallbacks']['set']('formatInline:chain',_0x52b984),this['_defaultCallbacks']['set']('formatBlock:accept',_0x502a70),this['_defaultCallbacks']['set']('formatBlock:discard',_0x52b984),this['_defaultCallbacks']['set']('formatBlock:join',_0xdb446c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x52b984),this['_defaultCallbacks']['set']('attribute:accept',_0x52b984),this['_defaultCallbacks']['set']('attribute:discard',(_0x3aca0a,_0x56d47f)=>{if(!_0x56d47f)return;const _0x5d35fc=this['_editor']['plugins']['get'](_0x54fb01);this['_model']['change'](_0x594896=>{if(_0x56d47f['key']==Ke)for(const _0x504c6a of _0x3aca0a){const _0x16c713=_0x504c6a['start']['nodeAfter'],_0x16a0e3=_0x56d47f['oldValue'];_0x594896['rename'](_0x16c713,_0x16a0e3);}else{if(_0x5d35fc['isBlockAttribute'](_0x56d47f['key'])){for(const _0x17a5e3 of _0x3aca0a)void 0x0!==_0x56d47f['oldValue']?_0x594896['setAttribute'](_0x56d47f['key'],_0x56d47f['oldValue'],_0x17a5e3['start']['nodeAfter']):_0x594896['removeAttribute'](_0x56d47f['key'],_0x17a5e3['start']['nodeAfter']);}else{for(const _0x49691c of _0x3aca0a)_0x56d47f['oldValue']?_0x594896['setAttribute'](_0x56d47f['key'],_0x56d47f['oldValue'],_0x49691c):_0x594896['removeAttribute'](_0x56d47f['key'],_0x49691c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xdb446c);}}function qe(_0x12d70b,_0x141b0e,_0x1d6b12){for(const _0x831f98 of _0x141b0e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x831f98['root']==_0x831f98)return!0x1;if(!_0x1d6b12['containsItem'](_0x831f98))return!0x1;if(_0x12d70b['isObject'](_0x831f98)||_0x12d70b['isLimit'](_0x831f98))return!0x0;}return!0x1;}function Qe(_0x54d058){return _0x54d058['end']['parent']==_0x54d058['start']['nodeAfter']&&_0x54d058['end']['isAtStart'];}function Ze(_0x29257d,_0x46fed3,_0x17fabe,_0x2dc2c9){const _0x134216=_0x269944=>!_0x269944['item']['is']('$textProxy')&&!_0x2dc2c9['isObject'](_0x269944['item']),_0x5c2127=_0x29257d['start']['getLastMatchingPosition'](_0x134216),_0xc2615b=_0x29257d['end']['getLastMatchingPosition'](_0x134216,{'direction':'backward'});return(!_0x29257d['start']['isEqual'](_0x5c2127)||!_0x29257d['end']['isEqual'](_0xc2615b))&&(_0x5c2127['isBefore'](_0xc2615b)?_0x17fabe['updateMarker'](_0x46fed3,{'range':_0x17fabe['createRange'](_0x5c2127,_0xc2615b)}):_0x17fabe['removeMarker'](_0x46fed3),!0x0);}function Je(_0x3b654b){return _0x4b85e2(_0x3b654b);}function tn(_0x147c9d){const _0x516327=_0x147c9d['start']['nodeAfter'];return _0x516327&&_0x516327['is']('element');}function en(_0x30008b){return Qe(_0x30008b)||function(_0x291ec1){return _0x291ec1['start']['parent']==_0x291ec1['end']['nodeBefore']&&_0x291ec1['start']['isAtEnd'];}(_0x30008b);}function nn(_0x41cb86,_0x273835){try{const _0x2498d8=_0x41cb86['getRange']();for(const _0x23039c of _0x273835)if(_0x41cb86!==_0x23039c&&_0x2498d8&&_0x2498d8['isIntersecting'](_0x23039c['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x51e055,_0x4bb838){return null==_0x51e055['end']['nodeBefore']&&_0x51e055['end']['parent']==_0x51e055['start']['nodeAfter']?rn(_0x51e055['start']['nodeAfter'],_0x4bb838):_0x51e055;}function rn(_0x56a843,_0x2810cb){const _0x4d8958=_0x2810cb['schema']['isObject'](_0x56a843)||_0x2810cb['schema']['isSelectable'](_0x56a843);return _0x2810cb['createRange'](_0x2810cb['createPositionAt'](_0x56a843,'before'),_0x4d8958?_0x2810cb['createPositionAfter'](_0x56a843):_0x2810cb['createPositionAt'](_0x56a843,'end'));}function on(_0x4f967c,_0x1b0f5e,_0xe1470d,_0x30f7fc){return!!an(_0x4f967c,_0x1b0f5e)&&_0xe1470d['end']['isEqual'](_0x30f7fc['start']);}function an(_0x17301a,_0x399c27){if(!_0x17301a['_isDataLoaded']||!_0x399c27['_isDataLoaded'])return!0x1;const _0x34149b=new Set(Object['keys'](_0x17301a['attributes'])),_0x36cc4e=new Set(Object['keys'](_0x399c27['attributes']));if(_0x34149b['delete']('groupId'),_0x36cc4e['delete']('groupId'),0x0==_0x34149b['size']&&0x0==_0x36cc4e['size'])return!0x0;if(_0x34149b['size']!=_0x36cc4e['size'])return!0x1;const _0x3d90de={..._0x17301a['attributes']},_0x3f2088={..._0x399c27['attributes']};return delete _0x3d90de['groupId'],delete _0x3f2088['groupId'],JSON['stringify'](_0x3d90de)==JSON['stringify'](_0x3f2088);}function cn(_0xbe775,_0x350ee6){const _0x20644f=ln(_0xbe775['attributes']),_0x3d1eaa=ln(_0x350ee6);if(!_0xbe775['_isDataLoaded'])return!0x1;for(const _0x1aaba0 of Object['keys'](_0x3d1eaa))if(!st(_0x20644f[_0x1aaba0],_0x3d1eaa[_0x1aaba0]))return!0x1;return!0x0;}function ln(_0x3fe8f7){const _0x6c81d2=Object['assign']({},_0x3fe8f7);return delete _0x6c81d2['skipNestingCheck'],delete _0x6c81d2['tablePasteChainId'],_0x6c81d2;}function un(_0x30e89e){return _0x30e89e['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
26
- _0x3d4f99(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1576d5,_0x6a3560,_0x3759ff,_0xc1b60){super(),this['model']=_0x6a3560,this['view']=_0x3759ff,this['commentThreadController']=_0xc1b60,this['_editor']=_0x1576d5,this['_acceptCommand']=_0x1576d5['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1576d5['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5bae2e,_0x26fa99)=>_0x5bae2e||_0x26fa99),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x114e2a=>_0x114e2a&&this['_editor']['model']['canEditAt'](_0x6a3560['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x403792=>_0x403792&&this['_editor']['model']['canEditAt'](_0x6a3560['getRanges']())),this['_pendingAction']=null,_0x3759ff['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3759ff,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3759ff,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3759ff,'change:isDirty',()=>{_0x3759ff['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 _0x552dab=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x552dab);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x4e3494{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5a952b,_0x4a2843,_0x20e79f,_0x50f5a7){super(_0x5a952b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5d9930(_0x5a952b,At(_0x5a952b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4a2843['authoredAt']),this['bind']('authoredAt')['to'](_0x4a2843),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',_0x4a2843,'authoredAt',this,'descriptionParts',(_0x578c1b,_0x43d309,_0x38c902)=>{const _0x38dbef=_0x38c902['map'](_0x94e7b0=>gt(_0x94e7b0['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x578c1b-0x1,_0x4a2843['author']['name'],_0x43d309?_0x50f5a7['formatDateTime'](_0x43d309):'',new DOMParser()['parseFromString'](_0x38dbef,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1b8b44(),this['focusTracker']=new _0x5e3e85(),this['keystrokes']=new _0x57f125(),this['focusCycler']=new _0x4ad6de({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x379af=>_0x379af['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4a2843,this['_localUser']=_0x20e79f,this['_config']=_0x50f5a7,_0x50f5a7['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5e5a7e(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x350b53}=this['_config'];this['commentsListView']=new _0x350b53(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',_0x566b71=>_0x566b71+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x484f23,_0xa8a86d)=>_0x484f23||!!_0xa8a86d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x56902d}=this['_config'],_0x4ed17f=new _0x56902d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xc09717=_0x4ed17f['commentInputView'];return _0x4ed17f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xc09717,'value',(_0x10df22,_0x1f9d7e,_0x27323e)=>!!_0x27323e||_0x10df22&&!_0x1f9d7e),_0xc09717['on']('submit',(_0x477d11,_0x43e0b8)=>{this['fire']('addComment',_0x43e0b8),_0xc09717['editor']['setData']('');}),_0xc09717['on']('cancel',()=>this['focus']()),_0xc09717['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4ed17f;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x52511f,_0x478e16,_0xde3226,_0x1a6ac3){super(_0x52511f,_0x478e16,_0xde3226,_0x1a6ac3),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3345d5=>_0x3345d5&&_0x3345d5[0x0]?_0x3345d5[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x28dc36,_0x4ad8a2)=>{let _0x24d6ef='';for(const _0x238d46 of _0x28dc36)_0x24d6ef+='<p>'+gt(_0x238d46['content'],_0x238d46['color'])+'</p>';return _0x4ad8a2?_0x24d6ef:_0x48d7d1(_0x24d6ef,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1a6ac3['SuggestionView'](_0x52511f,_0x478e16,{'formatDateTime':_0x1a6ac3['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x58aa70=this['bindTemplate'],_0x46aacc=[this['suggestionView']];return this['commentsListView']&&_0x46aacc['push'](this['commentsListView']),this['commentThreadInputView']&&_0x46aacc['push'](this['commentThreadInputView']),_0x46aacc['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x58aa70['if']('isActive','ck-suggestion-wrapper--active'),_0x58aa70['to']('type',_0x184112=>'ck-suggestion-'+_0x184112),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':_0x58aa70['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x46aacc};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class gn extends _0x4e3494{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x26756b,_0x439161,_0x201edd){super(_0x26756b),this['_model']=_0x439161,this['_config']=_0x201edd,this['set']('description',''),this['bind']('authoredAt')['to'](_0x439161),this['acceptButton']=this['_createButton'](At(_0x26756b,'Accept\x20suggestion'),_0x4cf0c3,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x26756b,'Discard\x20suggestion'),_0x57c5e5,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2809de(_0x26756b,_0x439161['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1b8b44([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5e3e85(),this['keystrokes']=new _0x57f125(),this['focusCycler']=new _0x4ad6de({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x260708=>_0x260708['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x90ade6=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x90ade6['innerHTML']=this['description'],this['on']('change:description',(_0x1725f8,_0x4aee99,_0x526423)=>{_0x90ade6['innerHTML']=_0x526423;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x7e0174=this['bindTemplate'],_0x1db18f=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x7e0174['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x7e0174['to']('authoredAt',_0x29587b=>this['_config']['formatDateTime'](_0x29587b))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x1db18f['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x1db18f}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):At(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):At(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2865e0,_0x14d441,_0x137caf,_0x50fd2a,_0x1ee6e2){const _0x4e5afd=new _0x4bcfd6(this['locale']);return _0x4e5afd['set']({'label':_0x2865e0,'icon':_0x14d441,'tooltip':!0x0,'tooltipPosition':_0x1ee6e2}),_0x4e5afd['extendTemplate']({'attributes':{'class':_0x137caf}}),_0x4e5afd['on']('execute',()=>{this['fire'](_0x50fd2a,this['_model']['id']);}),_0x4e5afd;}['_setupKeyboardNavigation'](){const _0x20c481=this['element'];this['keystrokes']['listenTo'](_0x20c481);for(const _0x4a4b52 of this['focusables'])this['focusTracker']['add'](_0x4a4b52['element']),this['keystrokes']['listenTo'](_0x4a4b52['element']);this['keystrokes']['set']('enter',(_0x3a48d6,_0x3467a4)=>{_0x20c481===_0x3a48d6['target']&&(this['focusCycler']['focusFirst'](),_0x3467a4());}),this['keystrokes']['set']('esc',(_0x414c3b,_0x4a8b25)=>{_0x20c481!==_0x414c3b['target']&&(this['focus'](),_0x4a8b25());});}}class mn extends _0x372529{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x574963,_0x1b50ae,_0x4c07fe,_0x510385];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ca46a){super(_0x3ca46a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5ddc15=this['editor']['config'];_0x5ddc15['define']('trackChanges.SuggestionThreadView',fn),_0x5ddc15['define']('trackChanges.SuggestionView',gn),_0x5ddc15['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5ddc15['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3140a6,_0x30f774){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x48f3c8,_0x2ea883]of this['_handleControllerBuffer']){const _0x559d0a=this['_suggestionToController']['has'](_0x48f3c8);_0x559d0a||_0x2ea883?_0x559d0a&&_0x2ea883&&this['_destroyController'](_0x48f3c8):this['_initializeController'](_0x48f3c8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x510385)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3140a6,_0x30f774);}['init'](){const _0x16cdb8=this['editor'],_0x24adc9=_0x16cdb8['plugins']['get'](Xe),_0x164174=_0x16cdb8['plugins']['get'](_0x4c07fe),_0xc853f8=_0x16cdb8['plugins']['get'](_0x510385),_0x41032a=_0x16cdb8['plugins']['get'](_0x1b50ae);this['_addUIComponentsToFactory'](),_0xc853f8['addSourceCollector'](()=>{const _0x439b26=[];for(const [_0x9a49b9,_0x2e014d]of Array['from'](this['_suggestionToController'])){const _0x1697aa=_0x9a49b9['getAllAdjacentSuggestions'](),_0x399b31=[];for(const _0x921439 of _0x1697aa){if(!_0x921439['isInContent'])continue;if(_0x921439['isMultiRange']){_0x399b31['push'](..._0x921439['getRanges']());continue;}const _0x4d682e=_0x921439['getFirstRange']();if(_0x399b31['length']>0x0){const _0x57a97d=_0x399b31[0x0]['getJoined'](_0x4d682e);if(_0x57a97d){_0x399b31[0x0]=_0x57a97d;continue;}}_0x399b31['push'](_0x4d682e);}_0x439b26['push']([_0x2e014d['view'],_0x399b31]);}return _0x439b26;}),this['listenTo'](_0x24adc9,'suggestionLoaded',(_0x3ed96c,_0x5f0a64)=>{this['listenTo'](_0x5f0a64,'change:previous',(_0x17447a,_0x4cacea,_0x47550e,_0x3cb140)=>{_0x5f0a64['isInContent']&&(null==_0x47550e?(this['_updateController'](_0x3cb140['head']),this['_handleSuggestionControllerDelayed'](_0x5f0a64,!0x1)):(this['_updateController'](_0x47550e['head']),null==_0x3cb140&&this['_handleSuggestionControllerDelayed'](_0x5f0a64,!0x0)));}),null!==_0x5f0a64['previous']?this['_updateController'](_0x5f0a64['head']):this['_handleSuggestionControllerDelayed'](_0x5f0a64,!0x1);}),this['listenTo'](_0x24adc9,'suggestionUnloaded',(_0x7ff89d,_0xf2d469,_0x404471)=>{this['stopListening'](_0xf2d469,'change:previous'),this['_handleControllerBuffer']['delete'](_0xf2d469),this['_suggestionToController']['has'](_0xf2d469)&&this['_destroyController'](_0xf2d469),_0x404471&&this['_updateController'](_0x404471['head']);}),this['listenTo'](_0x24adc9,'suggestionChanged',(_0x408804,_0x5daec9)=>{this['_updateController'](_0x5daec9);}),this['listenTo'](_0x164174,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x41032a,'addComment',(_0x32a4f7,{threadId:_0x232a5,isFromAdapter:_0x3e1aa4})=>{if(_0x3e1aa4||!_0x24adc9['hasSuggestion'](_0x232a5))return;const _0x2cf19a=_0x24adc9['getSuggestion'](_0x232a5);this['_suggestionToController']['get'](_0x2cf19a)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xe1f638=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x35f3a4;for(const _0xb5c097 in _0xe1f638){const _0x2da45b=_0xb5c097,_0x3181ed=_0xe1f638[_0x2da45b];if('trackChangesLicenseKeyValid'==_0x3181ed||'trackChangesLicenseKeyInvalid'==_0x3181ed||'trackChangesLicenseKeyExpired'==_0x3181ed||'trackChangesLicenseKeyDomainLimit'==_0x3181ed||'trackChangesLicenseKeyNotAllowed'==_0x3181ed||'trackChangesLicenseKeyEvaluationLimit'==_0x3181ed||'trackChangesLicenseKeyUsageLimit'==_0x3181ed){delete _0xe1f638[_0x2da45b],_0x35f3a4=_0x3181ed,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x35f3a4&&_0xe1f638['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x35f3a4&&_0xe1f638['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x35f3a4&&_0xe1f638['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x35f3a4&&_0xe1f638['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x35f3a4&&_0xe1f638['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x35f3a4&&_0xe1f638['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4c98dd){const _0x5948ad=this['_suggestionToController']['get'](_0x4c98dd);if(!_0x5948ad)return null;return this['editor']['plugins']['get'](_0x4c07fe)['getByInnerView'](_0x5948ad['view'])||null;}['getSuggestionForAnnotation'](_0x502567){const _0x430f99=this['_viewToController']['get'](_0x502567['innerView']);return _0x430f99?_0x430f99['model']:null;}['_refreshActiveMarkers'](){const _0x15b116=this['editor']['plugins']['get'](_0x4c07fe),_0x46d4c2=this['editor']['plugins']['get'](Xe),_0x5a8c13=Array['from'](_0x15b116['activeAnnotations'],_0x49db39=>_0x49db39['innerView'])['filter'](_0x23e1a8=>this['_viewToController']['has'](_0x23e1a8)),_0xce772=[];for(const _0x41476a of _0x5a8c13){const _0x476eeb=this['_viewToController']['get'](_0x41476a)['model']['getAllAdjacentSuggestions']();_0xce772['push'](..._0x476eeb['reduce']((_0x4de0dd,_0x191a84)=>[..._0x4de0dd,..._0x191a84['getMarkerNames']()],[]));}_0x46d4c2['activeMarkers']=_0xce772;}['_addUIComponentsToFactory'](){const _0x36e326=this['editor'],_0x151f08=_0x36e326['locale'],_0xd5f220=At(_0x151f08,'Track\x20changes'),_0xc5cc38=new _0x7d90ad([{'type':'switchbutton','model':new _0x11033b({'withText':!0x0,'isToggleable':!0x0,'label':_0xd5f220,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x11033b({'withText':!0x0,'label':At(_0x151f08,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x11033b({'withText':!0x0,'label':At(_0x151f08,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x11033b({'withText':!0x0,'label':At(_0x151f08,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x11033b({'withText':!0x0,'label':At(_0x151f08,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x36e326['plugins']['has']('TrackChangesPreview')&&_0xc5cc38['addMany']([{'type':'separator'},{'type':'button','model':new _0x11033b({'withText':!0x0,'label':At(_0x151f08,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xb5757d of _0xc5cc38)if(En(_0xb5757d)){const _0x5e93f4=_0x36e326['commands']['get'](_0xb5757d['model']['commandName']);_0xb5757d['model']['bind']('isOn','isEnabled')['to'](_0x5e93f4,'value','isEnabled');}_0x36e326['ui']['componentFactory']['add']('trackChanges',_0x3e82fc=>this['_createToolbarButton'](_0x3e82fc,_0xc5cc38,_0xd5f220)),_0x36e326['ui']['componentFactory']['add']('menuBar:trackChanges',_0x42048c=>this['_createMenuBarMenu'](_0x42048c,_0xc5cc38,_0xd5f220));}['_createToolbarButton'](_0x4fc76f,_0x1d5f5e,_0x20b464){const _0x502725=_0x3ada1f(_0x4fc76f,_0x55e7e9),_0x1f5311=this['editor']['commands']['get']('trackChanges');_0x502725['buttonView']['set']({'tooltip':_0x20b464,'label':_0x20b464,'icon':_0x29a29a}),_0x502725['buttonView']['bind']('isOn')['to'](_0x1f5311,'value'),_0x502725['buttonView']['on']('execute',()=>{_0x1f5311['execute'](),this['editor']['editing']['view']['focus']();}),_0x2fe2f3(_0x502725,_0x1d5f5e,{'role':'menu'});const _0x33384d=[];for(const _0x5120a9 of _0x1d5f5e)En(_0x5120a9)&&_0x33384d['push'](this['editor']['commands']['get'](_0x5120a9['model']['commandName']));const _0x2df2ad=_0x502725['buttonView'];return _0x2df2ad['actionView']['unbind']('isEnabled'),_0x2df2ad['arrowView']['unbind']('isEnabled'),_0x2df2ad['actionView']['bind']('isEnabled')['to'](_0x1f5311,'isEnabled'),_0x2df2ad['arrowView']['bind']('isEnabled')['toMany'](_0x33384d,'isEnabled',(..._0x45fa5a)=>_0x45fa5a['some'](_0x40eb27=>_0x40eb27)),_0x502725['on']('execute',_0x47f746=>{this['editor']['execute'](_0x47f746['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x502725;}['_createMenuBarMenu'](_0xfd369b,_0x200d9d,_0x29c168){const _0x4f9876=new _0x4b4306(_0xfd369b),_0x2606c4=this['editor']['commands']['get']('trackChanges');_0x4f9876['buttonView']['set']({'label':_0x29c168,'icon':_0x29a29a});const _0x155ecf=new _0x53deca(_0xfd369b);for(const _0x1b1f78 of _0x200d9d){if('separator'==_0x1b1f78['type']){_0x155ecf['items']['add'](new _0x27407b(_0xfd369b));continue;}const _0x91d370=new _0x48e305(_0xfd369b,_0x4f9876),_0x545ca4=new _0x4b4270(_0xfd369b),_0x1c7244=_0x1b1f78['model'];_0x545ca4['bind'](...Object['keys'](_0x1c7244))['to'](_0x1c7244),_0x545ca4['delegate']('execute')['to'](_0x4f9876),_0x545ca4['on']('execute',()=>{this['editor']['execute'](_0x1c7244['commandName']),this['editor']['editing']['view']['focus']();}),_0x91d370['children']['add'](_0x545ca4),_0x155ecf['items']['add'](_0x91d370);}return _0x4f9876['bind']('isEnabled')['to'](_0x2606c4,'isEnabled'),_0x4f9876['panelView']['children']['add'](_0x155ecf),_0x4f9876;}['_initializeController'](_0x27d48b){const _0x1b93c9=this['editor'],_0x419288=_0x1b93c9['config'],_0x4da5d8=_0x1b93c9['plugins']['get'](_0x4c07fe),_0x95bd3c=_0x1b93c9['plugins']['get'](_0x1b50ae),_0x568aad=_0x1b93c9['plugins']['get'](_0x510385),_0x7fb198=_0x1b93c9['plugins']['get'](_0x574963)['me'],_0x256026=_0x419288['get']('trackChanges')['SuggestionThreadView'],_0x17f254=_0x419288['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x330889,CommentThreadInputView:_0x34c797}=_0x1b93c9['plugins']['get']('CommentsUI');let _0x34d4be,_0x480166,_0x463b7d;this['_annotationViews']['has'](_0x27d48b['id'])?(_0x480166=this['_annotationViews']['get'](_0x27d48b['id']),_0x34d4be=_0x480166['mainView']):(_0x34d4be=new _0x256026(_0x1b93c9['locale'],_0x27d48b,_0x7fb198,{'disableComments':this['_disableComments'],'editorConfig':{..._0x419288['get']('comments.editorConfig'),'licenseKey':_0x419288['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x419288['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x419288['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x419288['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x365fcd(_0x419288['get']('locale'),_0x1b93c9['locale']),'CommentView':_0x419288['get']('comments')['CommentView'],'CommentsListView':_0x330889,'CommentThreadInputView':_0x34c797,'SuggestionView':_0x17f254}),_0x34d4be['suggestionView']['acceptButton']['on']('execute',()=>{_0x1b93c9['editing']['view']['focus']();}),_0x34d4be['suggestionView']['discardButton']['on']('execute',()=>{_0x1b93c9['editing']['view']['focus']();}),_0x480166=_0x4da5d8['createAnnotationView'](this['editor']['locale'],_0x34d4be),_0x480166['bind']('isDirty')['to'](_0x34d4be,'isDirty'),_0x480166['bind']('length')['to'](_0x34d4be),_0x480166['bind']('type')['to'](_0x34d4be,'type',_0x297ba9=>'suggestion-'+_0x297ba9),_0x34d4be['on']('escape',()=>{_0x463b7d['fire']('escape');}),this['_annotationViews']['set'](_0x27d48b['id'],_0x480166));const _0xaaadf0=_0x95bd3c['createCommentThreadController'](_0x27d48b['commentThread'],_0x34d4be),_0x1419a1=new hn(_0x1b93c9,_0x27d48b,_0x34d4be,_0xaaadf0),_0x1c8de8=_0x27d48b['getAllAdjacentSuggestions']()['filter'](_0x40c061=>_0x40c061['isInContent']);_0x34d4be['descriptionParts']=_0x1b93c9['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x1c8de8),this['_suggestionToController']['set'](_0x27d48b,_0x1419a1),this['_viewToController']['set'](_0x34d4be,_0x1419a1);const _0x31bd41=()=>{const _0x582cdc=[],_0x4b0152=_0x27d48b['getAllAdjacentSuggestions']()['filter'](_0x5abb5b=>_0x5abb5b['isInContent']);for(const _0x562a6b of _0x4b0152)_0x582cdc['push'](..._0x562a6b['getMarkers']());return _0x2e829b(_0x1b93c9['editing'],_0x582cdc);};_0x463b7d=_0x4da5d8['createAnnotation']({'view':_0x480166,'target':_0x31bd41,'type':()=>'suggestion-'+_0x1419a1['view']['type'],'isVisible':!!_0x31bd41()}),_0x95bd3c['_bindAnnotationToEditors'](_0x34d4be,_0x463b7d),_0x4da5d8['add'](_0x463b7d),_0x568aad['registerAnnotation'](_0x463b7d);}['_destroyController'](_0x123a70){const _0x484d09=this['editor']['plugins']['get'](_0x1b50ae),_0x1d1eb7=this['editor']['plugins']['get'](_0x4c07fe),_0x4054b2=this['_suggestionToController']['get'](_0x123a70),_0x215434=_0x4054b2['view'],_0x432cde=_0x1d1eb7['getByInnerView'](_0x215434);_0x484d09['_unbindEditors'](_0x215434),_0x432cde&&_0x1d1eb7['remove'](_0x432cde),this['_suggestionToController']['delete'](_0x123a70),this['_viewToController']['delete'](_0x215434),_0x4054b2['destroy']();}['_updateController'](_0x401ec6){if(!_0x401ec6['isInContent']||!this['_suggestionToController']['has'](_0x401ec6))return;const _0x1aa99c=this['editor']['plugins']['get'](Xe),_0x8b1a63=this['_suggestionToController']['get'](_0x401ec6),_0x49fde3=_0x401ec6['getAllAdjacentSuggestions']();_0x8b1a63['view']['descriptionParts']=_0x1aa99c['descriptionFactory']['getDescriptions'](_0x49fde3);}['destroy'](){for(const _0x114c83 of this['_suggestionToController']['keys']())this['_destroyController'](_0x114c83);for(const _0x11baaf of this['_annotationViews']['values']())_0x11baaf['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x52eb24){return'model'in _0x52eb24;}class Tn extends _0x372529{static get['requires'](){return[Xe,mn,_0x10d661];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5a581a){this['editor']['plugins']['get'](Xe)['adapter']=_0x5a581a;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x3e34de){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x3e34de);}['getSuggestions']({skipNotAttached:_0x414ece=!0x1,toJSON:_0x20e0a1=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x414ece,'toJSON':_0x20e0a1});}['getSuggestion'](_0x1d30fd){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x1d30fd);}}const _n=['Pagination'];class pn extends _0x372529{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1af57f=this['editor'];if(_0x1af57f['config']['define']('trackChangesData.editorCreator',_0x3be3c1=>{const _0x3b86a3=_0x1af57f['model']['document']['getRootNames']()['reduce']((_0xf2ea5b,_0x4c5e27)=>(_0xf2ea5b[_0x4c5e27]='',_0xf2ea5b),{});return _0x1af57f['constructor']['create'](_0x3b86a3,_0x3be3c1);}),'function'!=typeof _0x1af57f['config']['get']('trackChangesData')['editorCreator'])throw new _0xa37ad8('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x39529a){return bn(this['editor'],!0x0,_0x39529a);}['getDataWithDiscardedSuggestions'](_0x403e5b){return bn(this['editor'],!0x1,_0x403e5b);}}class Ln extends _0x372529{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a1358){function _0x54ec58(_0x360dd5){return _0x360dd5['map'](_0x3ba4a8=>String['fromCharCode'](_0x3ba4a8))['join']('');}super(_0x3a1358),this['result']='end',_0x3a1358[_0x54ec58([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54ec58([0x76,0x69,0x65,0x77])][_0x54ec58([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54ec58([0x61,0x75,0x74,0x6f]),_0x3a1358[_0x54ec58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x54ec58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54ec58([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x54ec58([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x54ec58([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function In(_0xe73d64){return void 0x0!==_0xe73d64['getRootsAttributes'];}async function bn(_0x102f9d,_0x28ab9a,_0x132677){const _0x2344e4=_0x416994(_0x102f9d,_n);if(_0x2344e4['plugins']['push'](Xe,Ln),In(_0x102f9d)){_0x2344e4['roots']=Object['create'](null);for(const _0x4db935 of _0x102f9d['model']['document']['getRootNames']())_0x2344e4['roots'][_0x4db935]={'modelAttributes':_0x102f9d['getRootAttributes'](_0x4db935)};}const _0x109b0b=document['createDocumentFragment'](),_0x485922=_0x102f9d['config']['get']('trackChangesData')['editorCreator'],_0x337685=await _0x485922(_0x2344e4,()=>function(_0x88cca0){const _0x57de0a=document['createElement']('div');return _0x88cca0['appendChild'](_0x57de0a),_0x57de0a;}(_0x109b0b));!function(_0x1a7cc3,_0x373723){const _0x323177=_0x1a7cc3['model']['document']['getRootNames']()['reduce']((_0x15a81f,_0x452888)=>(_0x15a81f[_0x452888]=_0x1a7cc3['data']['get']({'rootName':_0x452888}),_0x15a81f),{}),_0x95beba=_0x1a7cc3['plugins']['get']('Users')['users']['map'](_0x11a7f7=>({'id':_0x11a7f7['id'],'name':_0x11a7f7['name']})),_0x1d3b75=_0x1a7cc3['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5f4bf7=_0x1a7cc3['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c8054=_0x373723['plugins']['get']('Users'),_0xbef762=_0x373723['plugins']['get']('TrackChangesEditing'),_0x287675=_0x373723['plugins']['get']('CommentsRepository');for(const _0x465b88 of _0x287675['getCommentThreads']())_0x465b88['remove']();for(const _0x22788f of _0x95beba)_0x5c8054['getUser'](_0x22788f['id'])||_0x5c8054['addUser'](_0x22788f);_0x5c8054['me']||_0x5c8054['useAnonymousUser']();for(const _0x3988f1 of _0x5f4bf7)_0x287675['addCommentThread'](_0x3988f1);for(const _0x2b5cda of _0x1d3b75)_0xbef762['addSuggestionData'](_0x2b5cda);_0x373723['data']['set'](_0x323177);}(_0x102f9d,_0x337685),_0x337685['execute'](_0x28ab9a?'acceptAllSuggestions':'discardAllSuggestions');const _0x5794c5=In(_0x337685)?_0x337685['getFullData'](_0x132677):_0x337685['data']['get'](_0x132677);return await _0x337685['destroy'](),_0x5794c5;}class An extends _0x4e3494{['options'];constructor(_0x20b83f,_0x5545c4){super(_0x20b83f),this['options']=_0x5545c4,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'](_0x52af4e,_0x5cf19f){if(!this['element'])return;const _0x9b5b48=[];for(const [_0x555e93,_0x477ab7]of _0x52af4e){const _0x2cadcd=document['createElement']('div');_0x2cadcd['setAttribute']('data-ck-root-name',_0x555e93),_0x2cadcd['className']=_0x477ab7['classes']+'\x20ck-track-changes-preview__root-container',_0x2cadcd['innerHTML']=_0x477ab7['content'],_0x9b5b48['push'](_0x2cadcd);}_0x5cf19f(this['element'],_0x9b5b48),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x43109b{constructor(_0x57342b){super(_0x57342b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x217376=this['editor'],_0x1d4372=_0x217376['locale'],_0x1a8d4e=_0x217376['plugins']['get']('Dialog');let _0x45ac28;const _0x2f6639=function(_0x15ef96){const _0x4b9057={};if('editables'in _0x15ef96['ui']['view']){for(const [_0x109cca,_0x32477b]of Object['entries'](_0x15ef96['ui']['view']['editables']))_0x4b9057[_0x109cca]=_0x32477b['element'];}else _0x4b9057[_0x15ef96['model']['document']['getRootNames']()[0x0]]=_0x15ef96['ui']['view']['editable']['element'];return _0x4b9057;}(_0x217376),_0x427616=function(_0x5b095b){let _0x370d92=0x0;for(const _0x1c37fd of Object['values'](_0x5b095b))_0x370d92=Math['max'](_0x370d92,_0x1c37fd['getBoundingClientRect']()['width']);let _0x3ea275=0x0;for(const _0x524694 of Object['values'](_0x5b095b))_0x3ea275+=_0x524694['getBoundingClientRect']()['height'];const _0x46c988=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x86aecb=Math['min'](_0x3ea275,_0x46c988);return{'width':_0x370d92,'height':_0x86aecb};}(_0x2f6639);_0x1a8d4e['show']({'id':'finalContentPreview','title':At(_0x1d4372,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x1d4372,{'dialogRects':_0x427616}),'onHide':()=>{_0x45ac28['detachFromDom']();},'onShow':()=>{_0x217376['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x22984e=>{const _0x3abf2f=this['_standarizeRootsData'](_0x22984e,_0x217376,_0x2f6639);_0x1a8d4e['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3abf2f,_0x217376['config']['get']('trackChanges.preview.renderFunction'));}),_0x45ac28=new _0x4f68d1(_0x1d4372,[_0x1a8d4e['view']]),_0x45ac28['attachToDom'](),_0x45ac28['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x217376['once']('destroy',()=>{_0x45ac28['detachFromDom']();});const _0x1edc67=_0x1a8d4e['view']['headerView']['class'];_0x1a8d4e['view']['headerView']['class']=_0x1edc67?_0x1edc67+'\x20ck-reset_all':'ck-reset_all',_0x1a8d4e['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1a8d4e['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x27311d=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x216b5a=_0x27311d['previewMode'],_0x5a7bb7={};if('$labels'===_0x216b5a){for(const _0x5f4f1d of _0x27311d['getMergeFieldsIds']())_0x5a7bb7[_0x5f4f1d]=_0x27311d['getLabel'](_0x5f4f1d)||_0x5f4f1d;}else{const _0x3e12c7='$defaultValues'===_0x216b5a?_0x27311d['getDefaultValues']():_0x27311d['getDataSetValues'](_0x216b5a,!0x0);for(const _0x5ba1b7 of Object['entries'](_0x3e12c7)){const [_0x1080be,_0x47e7fc]=_0x5ba1b7;_0x5a7bb7[_0x1080be]=null!==_0x47e7fc?_0x47e7fc:_0x27311d['getLabel'](_0x1080be)||_0x1080be;}}return{'mergeFieldsData':_0x5a7bb7};}['_standarizeRootsData'](_0x20d1c4,_0x20e119,_0x1603bd){let _0x381c22;if('string'==typeof _0x20d1c4){const _0xe8e1b9=_0x20e119['model']['document']['getRootNames']()[0x0];_0x381c22={[_0xe8e1b9]:_0x20d1c4};}else _0x381c22=_0x20d1c4;const _0x431491=this['_fixMediaEmbeds'](_0x381c22,_0x20e119),_0x346f13=function(_0x2bb1df,_0x3414c6){for(const [_0x5d22a4,_0x529a38]of _0x2bb1df)_0x529a38['classes']=_0x3414c6[_0x5d22a4]['classList']['value']['replace']('ck-focused','');return _0x2bb1df;}(this['_sortRoots'](_0x20e119)['reduce']((_0x5d2736,_0x582e56)=>(_0x5d2736['push']([_0x582e56,{'content':_0x431491[_0x582e56],'classes':''}]),_0x5d2736),[]),_0x1603bd);return _0x346f13;}['_fixMediaEmbeds'](_0x36a558,_0x4ceb44){if(!_0x4ceb44['plugins']['has']('MediaEmbedEditing'))return _0x36a558;const _0x47eef1=_0x4ceb44['plugins']['get']('MediaEmbedEditing');for(const [_0x45a3e0,_0x36853f]of Object['entries'](_0x36a558)){const _0x19beff=document['createElement']('div');_0x19beff['innerHTML']=_0x36853f,(_0x19beff['querySelectorAll']('figure.media')['forEach'](_0x25dca8=>{const _0x4992f8=_0x25dca8['querySelector']('oembed');if(_0x4992f8){const _0x242b5b=_0x4992f8['getAttribute']('url');if(_0x242b5b){const _0x39e2ed=_0x47eef1['registry']['getMediaViewElement'](new et(_0x4ceb44['editing']['view']['document']),_0x242b5b,{'elementName':'','renderForEditingView':!0x0}),_0x51cd48=document['createElement']('div');_0x51cd48['classList']['add']('ck-media__wrapper'),_0x39e2ed['render'](_0x51cd48,_0x4ceb44['editing']['view']['domConverter']),_0x4992f8['replaceWith'](_0x51cd48);}}}),_0x36a558[_0x45a3e0]=_0x19beff['innerHTML']);}return _0x36a558;}['_sortRoots'](_0x58ae5b){if(!function(_0x2ae28b){return void 0x0!==_0x2ae28b['getRootsAttributes'];}(_0x58ae5b))return _0x58ae5b['model']['document']['getRootNames']();const _0x3431bb=[],_0x53af83=new Map();for(const _0x464191 of _0x58ae5b['model']['document']['getRootNames']()){const _0x25375d=_0x58ae5b['editing']['view']['getDomRoot'](_0x464191)['getClientRects']()['item'](0x0);_0x3431bb['push'](_0x464191),_0x53af83['set'](_0x464191,_0x25375d);}return _0x3431bb['sort']((_0x408941,_0x533d54)=>{const _0x2f19f7=_0x53af83['get'](_0x408941),_0x3c5ea4=_0x53af83['get'](_0x533d54);return _0x2f19f7['y']-_0x3c5ea4['y']||_0x2f19f7['x']-_0x3c5ea4['x'];}),_0x3431bb;}}class Cn extends _0x372529{static get['requires'](){return[pn,_0xd987bd];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b9b4d){super(_0x1b9b4d),_0x1b9b4d['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x1b9b4d['config']['define']('trackChanges.preview.renderFunction',(_0x222202,_0x1e198f)=>{for(const _0x4219c0 of _0x1e198f)_0x222202['appendChild'](_0x4219c0);});}}export{dt as AcceptSuggestionCommand,dn as BaseSuggestionThreadView,ft as DiscardSuggestionCommand,Lt as ExecuteOnAllSuggestionsCommand,It as ExecuteOnSelectedSuggestionsCommand,kn as PreviewFinalContentCommand,bt as Suggestion,kt as SuggestionDescriptionFactory,fn as SuggestionThreadView,gn as SuggestionView,Tn as TrackChanges,ht as TrackChangesCommand,pn as TrackChangesData,Ln as TrackChangesDataGetter,Xe as TrackChangesEditing,Cn as TrackChangesPreview,mn as TrackChangesUI};
23
+ import{Command as _0x3e2612,Plugin as _0x2e7e21,PendingActions as _0x54c50a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x2a50ee,Annotations as _0xc5c7a9,EditorAnnotations as _0x1ab3e0,Comments as _0x554048}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0xc19cc6,ObservableMixin as _0x1acdef,uid as _0x55a5f1,priorities as _0x5a22f3,insertToPriorityArray as _0x57afca,logWarning as _0xbd21c6,getEnvKeystrokeText as _0x700482,FocusTracker as _0x1e241c,KeystrokeHandler as _0x271c4c,Collection as _0x3ea138}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4bf23d,IconCancel as _0x3dc122,IconTrackChanges as _0x34772c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x12b804,View as _0x119bc4,ViewCollection as _0x11c164,FocusCycler as _0x196cf9,UIModel as _0x3b6033,createDropdown as _0x555d50,SplitButtonView as _0x269dc5,addListToDropdown as _0x10ec2d,MenuBarMenuView as _0x23938e,MenuBarMenuListView as _0x193d37,ListSeparatorView as _0x5d9ed0,MenuBarMenuListItemView as _0x1bed7a,MenuBarMenuListItemButtonView as _0x4d065c,BodyCollection as _0x56e31d,Dialog as _0x225f39}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x2695eb,SuggestionsConversion as _0x5ee798,Users as _0x2e50e2,DocumentCompare as _0x224979,fixElementSuggestionRange as _0x4bbfac,hashObject as _0x146957,surroundingMarkersDetector as _0xfd6d7,FOCUS_ANNOTATION_KEYSTROKE as _0x7e357d,AriaDescriptionView as _0x5ad65a,setupThreadKeyboardNavigation as _0xdde236,trimHtml as _0x3a0043,UserView as _0x192e7c,LateFocusButtonView as _0x47c13f,getDateTimeFormatter as _0x80f0ba,getAllMarkersDomElementsSorted as _0x480318,sanitizeEditorConfig as _0x2c5cf9}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x53a921,ModelLiveRange as _0x5924fb,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class ht extends _0x3e2612{['_enabledCommands'];constructor(_0x1bcb8c,_0x3f7bc9){super(_0x1bcb8c),this['_enabledCommands']=_0x3f7bc9,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 _0x1c05ef of this['editor']['commands']['commands']())_0x1c05ef['affectsData']&&!this['_enabledCommands']['has'](_0x1c05ef)&&_0x1c05ef['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1b6d76 of this['editor']['commands']['commands']())_0x1b6d76['affectsData']&&!this['_enabledCommands']['has'](_0x1b6d76)&&_0x1b6d76['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x3e2612{['_suggestions'];constructor(_0x3c8db0,_0x206177){super(_0x3c8db0),this['_suggestions']=_0x206177,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x160a2a){const _0x6f0eb4=this['_suggestions']['get'](_0x160a2a);if(!_0x6f0eb4)throw new _0xc19cc6('track-changes-accept-suggestion-not-found',this);const _0x100200=_0x6f0eb4['getRanges']();this['editor']['model']['canEditAt'](_0x100200)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x6f0eb4);}}class ft extends _0x3e2612{['_suggestions'];constructor(_0x3fbf55,_0x436bb5){super(_0x3fbf55),this['_suggestions']=_0x436bb5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x52e1d8){const _0x3afa9f=this['_suggestions']['get'](_0x52e1d8);if(!_0x3afa9f)throw new _0xc19cc6('track-changes-discard-suggestion-not-found',this);const _0xa0cb2c=_0x3afa9f['getRanges']();this['editor']['model']['canEditAt'](_0xa0cb2c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3afa9f);}}function gt(_0x250343,_0x173b39){let _0x4224d7='';return _0x4224d7+=_0x250343['split']('*')['map']((_0x2a0f47,_0x4706c0)=>_0x4706c0%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x2a0f47)+'</span>':mt(_0x2a0f47))['join'](''),_0x173b39&&(_0x4224d7+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x173b39['value']+'\x22\x20title=\x22'+_0x173b39['title']+'\x22></span>'),_0x4224d7;}function mt(_0x1b4fd8){const _0x165551=document['createElement']('span');return _0x165551['innerText']=_0x1b4fd8,_0x165551['innerHTML'];}function Et(_0x499ce4){return _0x499ce4['sort']((_0x2731a7,_0x2a86f2)=>'attribute'===_0x2731a7['type']&&'attribute'!==_0x2a86f2['type']?-0x1:'attribute'!==_0x2731a7['type']&&'attribute'===_0x2a86f2['type']?0x1:'deletion'==_0x2731a7['type']&&'deletion'!=_0x2a86f2['type']?-0x1:'deletion'!=_0x2731a7['type']&&'deletion'==_0x2a86f2['type']?0x1:0x0);}function Tt(_0x4bf60f,_0x5d8f2f){let _0x1f08de,_0x4f0583=0x0;const _0x598877=[],_0x576e4e=_0x5d8f2f['schema'];for(;_0x4f0583<_0x4bf60f['length'];){const _0x1b3b7a=_0x4bf60f[_0x4f0583],_0x2643c8=_0x4bf60f[_0x4f0583+0x1];_0x1f08de||(_0x1f08de=_0x5d8f2f['createPositionBefore'](_0x1b3b7a)),_t(_0x5d8f2f,_0x1b3b7a,_0x2643c8)||(_0x598877['push'](_0x5d8f2f['createRange'](_0x1f08de,_0x576e4e['isObject'](_0x1b3b7a)?_0x5d8f2f['createPositionAfter'](_0x1b3b7a):_0x5d8f2f['createPositionAt'](_0x1b3b7a,'end'))),_0x1f08de=null),_0x4f0583++;}return _0x598877;}function _t(_0x2a9b66,_0x177ec0,_0x50f189){if(!_0x50f189)return!0x1;const _0x49803b=_0x2a9b66['createPositionAfter'](_0x177ec0),_0x15dbc0=_0x2a9b66['createPositionBefore'](_0x50f189);return _0x49803b['isTouching'](_0x15dbc0);}function pt(_0x4dcc33,_0x200a3a,_0x231fe9){for(;_0x231fe9['length'];){const _0x548765=_0x231fe9['splice'](0x0,0x64);_0x4dcc33['change'](()=>{for(const _0x337b80 of _0x548765)_0x337b80['isInContent']&&_0x200a3a['execute'](_0x337b80['id']);});}}class Lt extends _0x3e2612{['_command'];['_suggestions'];constructor(_0xc05dc0,_0x44081b,_0x391d61){super(_0xc05dc0),this['_command']=_0x44081b,this['_suggestions']=_0x391d61,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x40e71e=Array['from'](this['_suggestions']['values']())['some'](_0x8e3a6f=>_0x8e3a6f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x40e71e;}['execute'](){const _0x28e35d=Et(Array['from'](this['_suggestions']['values']()));for(const _0x5397b4 of _0x28e35d){const _0x4f1429=_0x5397b4['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4f1429))return;}pt(this['editor']['model'],this['_command'],_0x28e35d);}}class It extends _0x3e2612{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x42971b,_0x19c3e6,_0x26039d){super(_0x42971b),this['_command']=_0x19c3e6,this['_suggestions']=_0x26039d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x47bb0e=this['editor']['model']['document']['selection'],_0x55592e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3b4b99,_0x399cb2){const _0x270daa=Array['from'](_0x3b4b99['getRanges']()),_0x5dec37=new Set();for(const _0xbd4887 of _0x399cb2)if(_0xbd4887['isInContent']){for(const _0x5e27da of _0x270daa)for(const _0x495cab of _0xbd4887['getRanges']())(_0x5e27da['isIntersecting'](_0x495cab)||_0x3b4b99['isCollapsed']&&!_0xbd4887['isMultiRange']&&_0xbd4887['next']&&_0x495cab['end']['isTouching'](_0x5e27da['start']))&&_0x5dec37['add'](_0xbd4887);}return _0x5dec37;}(_0x47bb0e,_0x55592e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5914c8=Et(Array['from'](this['_selectedSuggestions']));for(const _0x1d4852 of _0x5914c8){const _0x19c0ef=_0x1d4852['getRanges']();if(!this['editor']['model']['canEditAt'](_0x19c0ef))return;}pt(this['editor']['model'],this['_command'],_0x5914c8);}}class bt extends/* #__PURE__ -- @preserve */
24
+ _0x1acdef(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x482e84,_0x2484ac){super(),this['id']=_0x2484ac['id'],this['type']=_0x2484ac['type'],this['subType']=_0x2484ac['subType']||null,this['author']=_0x2484ac['author'],this['creator']=_0x2484ac['creator']||_0x2484ac['author'],this['isExternal']=Boolean(_0x2484ac['attributes']&&_0x2484ac['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2484ac['originalSuggestionId']||null,this['_model']=_0x482e84,this['_onAccept']=_0x2484ac['onAccept'],this['_onDiscard']=_0x2484ac['onDiscard'],this['_onAttributesChange']=_0x2484ac['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2484ac['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x4a60dc=this;for(;_0x4a60dc['previous'];)_0x4a60dc=_0x4a60dc['previous'];return _0x4a60dc;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x13cee4){this['_markerNames']['add'](_0x13cee4);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x152bdf=>this['_model']['markers']['get'](_0x152bdf))['filter'](_0x1a6f19=>_0x1a6f19);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x80695d=>{for(const _0x5cc086 of this['getMarkers']())_0x80695d['removeMarker'](_0x5cc086);}),this['_markerNames']['clear']();}['removeMarker'](_0x3d6a5c){this['_model']['change'](_0x24b47c=>{_0x24b47c['removeMarker'](_0x3d6a5c);}),this['_markerNames']['delete'](_0x3d6a5c);}['addRange'](_0x3cf0fd){const _0x124daf='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x124daf),this['_model']['change'](_0x22a92e=>{_0x22a92e['addMarker'](_0x124daf,{'range':_0x3cf0fd,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x24f4fa){for(const _0x32f3b6 of this['getRanges']())if(_0x32f3b6['isIntersecting'](_0x24f4fa))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x555d0c=>_0x555d0c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x578be0,_0x5b0d11)=>[..._0x578be0,..._0x5b0d11['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2ad916=this['getRanges']();if(0x1!=_0x2ad916['length'])return null;const _0x555ee7=_0x2ad916[0x0],_0x42c1d6=_0x555ee7['start']['nodeAfter'],_0x367159=_0x555ee7['end']['nodeBefore'];return _0x42c1d6 instanceof _0x53a921?_0x42c1d6!=_0x367159?null:_0x42c1d6: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 _0x2def4f=[];let _0x300773=this['head'];for(;_0x300773;)_0x2def4f['push'](_0x300773),_0x300773=_0x300773['next'];return _0x2def4f;}['setAttribute'](_0x1e3140,_0x9b37da){const _0x486474=nt(this['attributes']);it(_0x486474,_0x1e3140,_0x9b37da),st(_0x486474,this['attributes'])||(this['attributes']=_0x486474,this['_onAttributesChange'](_0x486474));}['removeAttribute'](_0x3b304e){const _0x3b65fe=nt(this['attributes']);rt(_0x3b65fe,_0x3b304e),st(_0x3b65fe,this['attributes'])||(this['attributes']=_0x3b65fe,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 _0x55a5f1()['substr'](0x1,0x5);}}function At(_0x4c8300,_0x59ea26,_0x7048e3){const _0x2305e4=_0x4c8300['t'],t=_0x4c8300['t'];switch(_0x59ea26){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',_0x7048e3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x7048e3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x7048e3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x7048e3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x7048e3);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',_0x7048e3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x7048e3);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',_0x7048e3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x7048e3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x7048e3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x7048e3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x7048e3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x7048e3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x7048e3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x7048e3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x7048e3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x7048e3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x7048e3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x7048e3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x7048e3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x7048e3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x7048e3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x7048e3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x7048e3);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x7048e3);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'},_0x7048e3);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x7048e3);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x7048e3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x7048e3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x7048e3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x7048e3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x7048e3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x7048e3);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x7048e3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x7048e3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x7048e3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x7048e3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x7048e3);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'},_0x7048e3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x7048e3);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'},_0x7048e3);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_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'},_0x7048e3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x7048e3);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'},_0x7048e3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x7048e3);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'},_0x7048e3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x7048e3);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x7048e3);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x7048e3);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x7048e3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x7048e3);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'},_0x7048e3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x7048e3);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return _0x2305e4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x7048e3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2305e4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x7048e3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x7048e3);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'},_0x7048e3);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'},_0x7048e3);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'},_0x7048e3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x59ea26;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x591bf6,_0x263568){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x591bf6,this['_locale']=_0x263568;}['getDescriptions'](_0x24eeb3){const _0x3bd63a=[],_0x21752b=new Set(),_0x2840ab=new Set();for(let _0x11566c=0x0;_0x11566c<_0x24eeb3['length'];_0x11566c++){const _0x63beac=_0x24eeb3[_0x11566c];if(!_0x63beac['isInContent'])continue;const _0x3e4e45=this['_handleCustomCallbackDescription'](_0x63beac);if(_0x3e4e45){if(null!=_0x63beac['subType']){if(_0x21752b['has'](_0x63beac['subType']))continue;_0x21752b['add'](_0x63beac['subType']);}_0x3bd63a['push'](_0x3e4e45);}else{if('attribute'==_0x63beac['type']){const _0xd29834=_0x63beac['data']['key'];if(_0x2840ab['has'](_0xd29834))continue;_0x2840ab['add'](_0x63beac['data']['key']),_0xd29834==Ke?this['_handleRenameSuggestionDescription'](_0x3bd63a,_0x63beac):this['_handleAttributeSuggestionDescription'](_0x3bd63a,_0x63beac);continue;}'insertion'!=_0x63beac['type']&&'deletion'!=_0x63beac['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3bd63a,_0x63beac,_0x24eeb3[_0x11566c+0x1]);}}return this['_resolveDescriptionItems'](_0x3bd63a);}['registerDescriptionCallback'](_0x31f5dd){this['_customCallbacks']['push'](_0x31f5dd);}['registerElementLabel'](_0x49f115,_0x4c688f,_0x4ae18c=_0x5a22f3['normal']){'function'==typeof _0x49f115?_0x57afca(this['_itemLabelsCallbacks'],{'matchingCallback':_0x49f115,'label':_0x4c688f,'priority':_0x4ae18c}):this['_itemLabels']['set'](_0x49f115,_0x4c688f);}['registerAttributeLabel'](_0x4e111c,_0x5113a4){this['_attributeLabels']['set'](_0x4e111c,_0x5113a4);}['getItemLabel'](_0x32e299,_0x572795=0x1){let _0x100209;for(const _0x5bd3f0 of this['_itemLabelsCallbacks'])if(_0x5bd3f0['matchingCallback'](_0x32e299)){_0x100209=_0x5bd3f0['label'];break;}return _0x100209||(_0x100209=this['_itemLabels']['get'](_0x32e299['name'])),_0x100209?_0x100209(_0x572795):0x1!==_0x572795?_0x572795+'\x20'+_0x32e299['name']+'s':''+_0x32e299['name'];}['_addDescriptionItems'](_0x615366,_0xc00c2e){const _0x1368e3=_0xc00c2e['getFirstRange']()['getWalker'](),_0x2c8282='insertion'==_0xc00c2e['type']?'add':'remove';for(const _0x268ffb of _0x1368e3){const _0x1952ad=_0x268ffb['item'],_0xdce592=_0x615366[_0x615366['length']-0x1];if(_0x1952ad['is']('$textProxy'))_0xdce592&&_0xdce592['type']['indexOf']('Container')>-0x1&&_0x615366['pop'](),_0xdce592&&'text'==_0xdce592['type']?_0xdce592[_0x2c8282]+=_0x1952ad['data']:_0x615366['push']({'type':'text','add':'add'==_0x2c8282?_0x1952ad['data']:'','remove':'remove'==_0x2c8282?_0x1952ad['data']:''});else{if(this['_schema']['isObject'](_0x1952ad)){const _0x355485=_0x1952ad;if(_0xdce592&&_0xdce592['type']['indexOf']('Container')>-0x1&&_0x615366['pop'](),'elementEnd'==_0x268ffb['type'])continue;_0xdce592&&_0xdce592['type']==_0x2c8282+'Object'&&_0xdce592['element']['name']==_0x355485['name']?_0xdce592['quantity']++:_0x615366['push']({'type':_0x2c8282+'Object','element':_0x355485,'quantity':0x1}),_0x1368e3['skip'](_0x25d677=>!('elementEnd'==_0x25d677['type']&&_0x25d677['item']==_0x1952ad));}else{if(this['_schema']['checkChild'](_0x1952ad,'$text')||_0x1952ad['is']('element','softBreak')){const _0xcd798f=_0x1952ad;if('add'==_0x2c8282&&'elementStart'==_0x268ffb['type']||'remove'==_0x2c8282&&'elementEnd'==_0x268ffb['type'])continue;if(_0xdce592&&-0x1==_0xdce592['type']['indexOf']('Container')){'text'==_0xdce592['type']&&(_0xdce592[_0x2c8282]+='\x0a');continue;}let _0xb5dfa5;if(_0xb5dfa5='add'==_0x2c8282?_0xcd798f['nextSibling']&&!this['_schema']['isObject'](_0xcd798f['nextSibling'])?_0xcd798f['nextSibling']:null:_0xcd798f['previousSibling']&&!this['_schema']['isObject'](_0xcd798f['previousSibling'])?_0xcd798f['previousSibling']:null,_0xcd798f['isEmpty']||_0xb5dfa5&&_0xb5dfa5['isEmpty']){const _0x4c99d7=_0xb5dfa5&&_0xb5dfa5['isEmpty']?_0xb5dfa5:_0xcd798f;_0xdce592&&_0xdce592['type']==_0x2c8282+'EmptyContainer'&&_0xdce592['element']['name']==_0x4c99d7['name']?_0xdce592['quantity']++:_0x615366['push']({'type':_0x2c8282+'EmptyContainer','element':_0x4c99d7,'quantity':0x1});}else _0x615366['push']({'type':_0x2c8282+'Container','element':_0xcd798f});}}}}}['_resolveDescriptionItems'](_0x2a52a5){const _0x272bb1=this['_locale'],_0x41be58=[],_0x3ac1d3=[],_0x946426=[];for(const _0x3a01ac of _0x2a52a5)switch(_0x3a01ac['type']){case'text':if(_0x3a01ac['add']=_0x3a01ac['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3a01ac['remove']=_0x3a01ac['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3a01ac['add']&&''!=_0x3a01ac['remove']){_0x41be58['push']({'type':'replace','content':At(_0x272bb1,'REPLACE_TEXT',['\x22'+_0x3a01ac['remove']+'\x22','\x22'+_0x3a01ac['add']+'\x22'])});continue;}if(null!=_0x3a01ac['add']['match'](/^ +$/)){_0x41be58['push']({'type':'insertion','content':At(_0x272bb1,'*Insert:*\x20%0',At(_0x272bb1,'ELEMENT_SPACE',_0x3a01ac['add']['length']))});continue;}if(null!=_0x3a01ac['remove']['match'](/^ +$/)){_0x41be58['push']({'type':'deletion','content':At(_0x272bb1,'*Remove:*\x20%0',At(_0x272bb1,'ELEMENT_SPACE',_0x3a01ac['remove']['length']))});continue;}if(''!=_0x3a01ac['add']){_0x41be58['push']({'type':'insertion','content':At(_0x272bb1,'*Insert:*\x20%0','\x22'+_0x3a01ac['add']+'\x22')});continue;}_0x41be58['push']({'type':'deletion','content':At(_0x272bb1,'*Remove:*\x20%0','\x22'+_0x3a01ac['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x41be58['push']({'type':'insertion','content':At(_0x272bb1,'*Insert:*\x20%0',this['getItemLabel'](_0x3a01ac['element'],_0x3a01ac['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x41be58['push']({'type':'deletion','content':At(_0x272bb1,'*Remove:*\x20%0',this['getItemLabel'](_0x3a01ac['element'],_0x3a01ac['quantity']))});continue;case'addContainer':_0x41be58['push']({'type':'insertion','content':At(_0x272bb1,'*Split:*\x20%0',this['getItemLabel'](_0x3a01ac['element'],_0x3a01ac['quantity']))});continue;case'removeContainer':_0x41be58['push']({'type':'deletion','content':At(_0x272bb1,'*Merge:*\x20%0',this['getItemLabel'](_0x3a01ac['element'],_0x3a01ac['quantity']))});continue;case'addFormat':_0x3ac1d3['push'](_0x3a01ac['key']);continue;case'removeFormat':_0x946426['push'](_0x3a01ac['key']);continue;default:_0x41be58['push'](_0x3a01ac);}if(_0x3ac1d3['length']){const _0x172622=_0x3ac1d3['map'](_0x222039=>this['_attributeLabels']['has'](_0x222039)?this['_attributeLabels']['get'](_0x222039):_0x222039)['join'](',\x20');_0x41be58['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x172622)});}if(_0x946426['length']){const _0x509b22=_0x946426['map'](_0x23f3d4=>this['_attributeLabels']['has'](_0x23f3d4)?this['_attributeLabels']['get'](_0x23f3d4):_0x23f3d4)['join'](',\x20');_0x41be58['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x509b22)});}return _0x41be58;}['_handleCustomCallbackDescription'](_0x10a530){for(const _0x17d38a of this['_customCallbacks']){const _0x2cf470=_0x17d38a(_0x10a530);if(_0x2cf470&&'type'in _0x2cf470)return _0x2cf470;}}['_handleAttributeSuggestionDescription'](_0x5a178b,_0x384e35){const _0x4f0ad3=_0x384e35['data'],_0x4db157=void 0x0===_0x4f0ad3['newValue']?'removeFormat':'addFormat';_0x5a178b['push']({'type':_0x4db157,'key':_0x4f0ad3['key']});}['_handleRenameSuggestionDescription'](_0x13e5a8,_0x5abc18){_0x13e5a8['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5abc18['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x26982a,_0x3d6495,_0x32785a){if(this['_addDescriptionItems'](_0x26982a,_0x3d6495),_0x32785a&&_0x32785a['getFirstRange']()&&!_0x3d6495['getFirstRange']()['end']['isEqual'](_0x32785a['getFirstRange']()['start'])){const _0x514e2=_0x26982a[_0x26982a['length']-0x1],_0x529708='insertion'==_0x3d6495['type']?'add':'remove';_0x514e2&&'text'==_0x514e2['type']&&(_0x514e2[_0x529708]+='\x0a');}}}class Ct extends _0x2e7e21{['afterInit'](){const _0x1016dc=this['editor'],_0x3621d4=_0x1016dc['plugins']['get']('TrackChangesEditing');_0x1016dc['commands']['get']('showAIAssistant')&&_0x3621d4['enableCommand']('showAIAssistant');}}class yt extends _0x2e7e21{['afterInit'](){const _0xcc3129=this['editor'],_0x190b79=_0xcc3129['plugins']['get']('TrackChangesEditing');_0xcc3129['commands']['get']('toggleAi')&&_0x190b79['enableCommand']('toggleAi');}}class Nt extends _0x2e7e21{['afterInit'](){const _0x4ab232=this['editor'],_0x41a163=_0x4ab232['plugins']['get']('TrackChangesEditing');_0x4ab232['commands']['get']('aiQuickAction')&&_0x41a163['enableCommand']('aiQuickAction');}}class Rt extends _0x2e7e21{['afterInit'](){const _0x370ed8=this['editor'],_0x1e17e2=_0x370ed8['locale'];if(!_0x370ed8['plugins']['has']('AlignmentEditing'))return;const _0x400a31=_0x370ed8['plugins']['get']('TrackChangesEditing');_0x400a31['enableDefaultAttributesIntegration']('alignment'),_0x400a31['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x1e17e2,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cef44=this['editor'],_0x2bb0fb=_0x4cef44['locale'];_0x4cef44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30ba9b=>{if('formatBlock'!=_0x30ba9b['type'])return;const {data:_0x32d51b}=_0x30ba9b;if(_0x32d51b&&'alignment'==_0x32d51b['commandName']){const _0x57bcf4=_0x32d51b['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x2bb0fb,'*Format:*\x20%0',function(_0x2105f2){switch(_0x2105f2){case'left':return At(_0x2bb0fb,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x2bb0fb,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x2bb0fb,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x2bb0fb,'FORMAT_JUSTIFY_TEXT');}}(_0x57bcf4))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x2e7e21{['afterInit'](){const _0x5719a2=this['editor'],_0x3e2d68=_0x5719a2['plugins']['get']('TrackChangesEditing'),_0x4be32f=_0x5719a2['locale'];for(const _0x16f981 of St){if(!_0x5719a2['plugins']['has'](_0x16f981))continue;const _0x91b20c=_0x16f981['slice'](0x0,-0x7)['toLowerCase'](),_0x21aa81='FORMAT_'+_0x91b20c['toUpperCase']();_0x3e2d68['enableDefaultAttributesIntegration'](_0x91b20c),_0x3e2d68['descriptionFactory']['registerAttributeLabel'](_0x91b20c,At(_0x4be32f,_0x21aa81));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5adcc0=this['editor'],_0x3f741a=_0x5adcc0['locale'],_0xf087c9=_0x5adcc0['plugins']['get']('TrackChangesEditing');function _0x4dd26b(_0x526cdb,_0x47b296){_0xf087c9['descriptionFactory']['registerDescriptionCallback'](_0x27a6a2=>{if('formatInline'!=_0x27a6a2['type'])return;const {data:_0x5938ef}=_0x27a6a2;return _0x5938ef&&_0x5938ef['commandName']===_0x526cdb?_0x5938ef['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x3f741a,'*Format:*\x20%0',_0x47b296)}:{'type':'format','content':At(_0x3f741a,'*Remove\x20format:*\x20%0',_0x47b296)}:void 0x0;});}_0x4dd26b('bold',At(_0x3f741a,'FORMAT_BOLD')),_0x4dd26b('italic',At(_0x3f741a,'FORMAT_ITALIC')),_0x4dd26b('underline',At(_0x3f741a,'FORMAT_UNDERLINE')),_0x4dd26b('code',At(_0x3f741a,'FORMAT_CODE')),_0x4dd26b('strikethrough',At(_0x3f741a,'FORMAT_STRIKETHROUGH')),_0x4dd26b('subscript',At(_0x3f741a,'FORMAT_SUBSCRIPT')),_0x4dd26b('superscript',At(_0x3f741a,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x2e7e21{['afterInit'](){const _0x329ef0=this['editor'],_0x1ed519=_0x329ef0['locale'];if(!_0x329ef0['plugins']['has']('BlockQuoteEditing'))return;const _0x51ced5=_0x329ef0['plugins']['get']('TrackChangesEditing'),_0x1f26e3=this['editor']['commands']['get']('blockQuote');_0x51ced5['enableCommand']('blockQuote',(_0x42012d,_0xcb96c3={})=>{const _0x409d4e=this['editor']['model']['document']['selection'],_0x38460c=_0xcb96c3&&void 0x0!==_0xcb96c3['forceValue']?_0xcb96c3['forceValue']:!_0x1f26e3['value'];let _0x3fc567=[];if(_0x38460c){const _0x314601=Array['from'](_0x409d4e['getSelectedBlocks']())['filter'](_0x2ee4ef=>wt(_0x2ee4ef)||function(_0x199772,_0x580288){const _0x372895=_0x580288['checkChild'](_0x199772['parent'],'blockQuote'),_0x2c3f19=_0x580288['checkChild'](['$root','blockQuote'],_0x199772);return _0x372895&&_0x2c3f19;}(_0x2ee4ef,this['editor']['model']['schema']));_0x3fc567=Tt(_0x314601,_0x329ef0['model']);}else{const _0x510866=Array['from'](_0x409d4e['getSelectedBlocks']())['filter'](_0x447872=>wt(_0x447872));_0x3fc567=Tt(_0x510866,_0x329ef0['model']);}_0x329ef0['model']['change'](()=>{for(const _0x185279 of _0x3fc567)_0x51ced5['markBlockFormat'](_0x185279,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x38460c}]});});}),_0x51ced5['descriptionFactory']['registerDescriptionCallback'](_0x1d5562=>{const {data:_0x15602d}=_0x1d5562;if(_0x15602d&&'blockQuote'==_0x15602d['commandName']){const _0x3cdb8e=At(_0x1ed519,'ELEMENT_BLOCK_QUOTE');return _0x15602d['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1ed519,'*Set\x20format:*\x20%0',_0x3cdb8e)}:{'type':'format','content':At(_0x1ed519,'*Remove\x20format:*\x20%0',_0x3cdb8e)};}});}}function wt(_0x17f853){return'blockQuote'==_0x17f853['parent']['name'];}class Bt extends _0x2e7e21{['afterInit'](){const _0x2343f5=this['editor'],_0x168bb5=_0x2343f5['locale'],_0xce48d9=_0x2343f5['plugins']['get']('TrackChangesEditing');_0x2343f5['plugins']['has']('BookmarkEditing')&&(_0xce48d9['enableCommand']('insertBookmark'),_0xce48d9['enableDefaultAttributesIntegration']('updateBookmark'),_0xce48d9['descriptionFactory']['registerDescriptionCallback'](_0x5f0efc=>{if('insertion'!=_0x5f0efc['type']&&'deletion'!=_0x5f0efc['type']&&'attribute'!=_0x5f0efc['type'])return;const _0x127d71=_0x5f0efc['getContainedElement']();if(null==_0x127d71)return;if(!_0x127d71['is']('element','bookmark'))return;const _0x5f438d=_0x127d71['getAttribute']('bookmarkId');if('insertion'==_0x5f0efc['type'])return{'type':'insertion','content':At(_0x168bb5,'*Insert:*\x20%0','\x22'+_0x5f438d+'\x22\x20'+At(_0x168bb5,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5f0efc['type'])return{'type':'deletion','content':At(_0x168bb5,'*Remove:*\x20%0','\x22'+_0x5f438d+'\x22\x20'+At(_0x168bb5,'ELEMENT_BOOKMARK'))};const {data:_0x2509d1}=_0x5f0efc;if(!_0x2509d1||'bookmarkId'!=_0x2509d1['key'])return;return{'type':'format','content':At(_0x168bb5,'*Set\x20bookmark:*\x20%0','\x22'+_0x2509d1['newValue']+'\x22')};}));}}class Ft extends _0x2e7e21{['afterInit'](){const _0x4e7010=this['editor'];_0x4e7010['plugins']['has']('CaseChange')&&(_0x4e7010['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4e7010['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4e7010['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x2e7e21{['afterInit'](){const _0x59fae0=this['editor'];_0x59fae0['commands']['get']('ckbox')&&_0x59fae0['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x2e7e21{['afterInit'](){const _0x489ae2=this['editor'];if(!_0x489ae2['plugins']['has']('CodeBlock'))return;const _0x24cc0a=_0x489ae2['plugins']['get']('TrackChangesEditing'),_0x212a49=_0x489ae2['locale'],_0x293944=_0x489ae2['config']['get']('codeBlock')['languages'],_0x57002d=_0x489ae2['commands']['get']('codeBlock');_0x24cc0a['enableCommand']('indentCodeBlock'),_0x24cc0a['enableCommand']('outdentCodeBlock'),_0x24cc0a['enableCommand']('codeBlock',(_0x2a8888,_0xe622e0={})=>{const _0x55a100=_0x489ae2['model'],_0x47a827=_0x489ae2['model']['document']['selection'],_0x1ba43f=_0xe622e0&&void 0x0!==_0xe622e0['forceValue']?_0xe622e0['forceValue']:!_0x57002d['value'];let _0x54f3ed;_0xe622e0['language']||(_0xe622e0['language']=_0x293944[0x0]['language']),_0x54f3ed=_0x1ba43f?Array['from'](_0x47a827['getSelectedBlocks']())['filter'](_0x2b6ba7=>xt(_0x2b6ba7)||function(_0x376846,_0x5b185f){if(_0x376846['is']('rootElement')||_0x5b185f['isLimit'](_0x376846))return!0x1;return _0x5b185f['checkChild'](_0x376846['parent'],'codeBlock');}(_0x2b6ba7,_0x55a100['schema'])):Array['from'](_0x47a827['getSelectedBlocks']())['filter'](_0xdf4a2f=>xt(_0xdf4a2f));const _0x353172=Tt(_0x54f3ed,_0x55a100);_0x55a100['change'](()=>{for(const _0x594df3 of _0x353172)_0x24cc0a['markBlockFormat'](_0x594df3,{'commandName':'codeBlock','commandParams':[{..._0xe622e0,'forceValue':_0x1ba43f}],'formatGroupId':'blockName'});});}),(_0x24cc0a['descriptionFactory']['registerElementLabel']('codeBlock',_0x1e3c85=>At(_0x212a49,'ELEMENT_CODE_BLOCK',_0x1e3c85)),_0x24cc0a['descriptionFactory']['registerDescriptionCallback'](_0x74e8f3=>{if('formatBlock'!=_0x74e8f3['type'])return;const _0x11c5f8=_0x212a49['t'],{data:_0x5a7c99}=_0x74e8f3;if(!_0x5a7c99||'codeBlock'!=_0x5a7c99['commandName'])return;const _0x20bc51=_0x5a7c99['commandParams'][0x0]['language'],_0x169020=_0x11c5f8(_0x293944['find'](_0x11feb7=>_0x11feb7['language']===_0x20bc51)['label'])['toLowerCase']();return _0x5a7c99['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x212a49,'*Set\x20format:*\x20%0',At(_0x212a49,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x169020+')')}:{'type':'format','content':At(_0x212a49,'*Remove\x20format:*\x20%0',At(_0x212a49,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x2559e1){return'codeBlock'==_0x2559e1['name'];}class Pt extends _0x2e7e21{['afterInit'](){const _0x5e1c31=this['editor'];if(!_0x5e1c31['plugins']['has']('CommentsEditing'))return;_0x5e1c31['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x2e7e21{static get['requires'](){return[at];}['init'](){const _0x10475e=this['editor'],_0x1577a6=_0x10475e['plugins']['get']('TrackChangesEditing');_0x1577a6['enableCommand']('delete');const _0x24cc8d=_0x10475e['commands']['get']('deleteForward');_0x1577a6['enableCommand']('deleteForward',(_0x222c0b,_0x510fc5={})=>{const _0x1ad48a=_0x10475e['model']['createSelection'](_0x10475e['model']['document']['selection']);_0x1ad48a['isCollapsed']&&_0x10475e['model']['modifySelection'](_0x1ad48a,{'direction':'forward','unit':_0x510fc5['unit']});const _0x42318d=_0x1ad48a['getFirstRange'](),_0x4e8c08=_0x5924fb['fromRange'](_0x42318d);let _0xe4219c;_0x222c0b(_0x510fc5),_0xe4219c='$graveyard'==_0x4e8c08['root']['rootName']?_0x10475e['model']['createRange'](_0x42318d['start']):_0x10475e['model']['createRange'](_0x4e8c08['start'],_0x4e8c08['end']),_0x4e8c08['detach'](),_0x10475e['model']['enqueueChange'](_0x24cc8d['buffer']['batch'],_0x44b0a9=>{_0x24cc8d['buffer']['lock'](),_0x44b0a9['setSelection'](_0x44b0a9['createRange'](_0xe4219c['end'])),_0x24cc8d['buffer']['unlock']();});});}}class Gt extends _0x2e7e21{['afterInit'](){const _0x26f602=this['editor'];if(!_0x26f602['plugins']['has']('ListEditing'))return;const _0x2d289d=_0x26f602['locale'],_0x4a8f62=_0x26f602['plugins']['get']('TrackChangesEditing'),_0x57c9c3=_0x26f602['plugins']['has']('TodoListEditing'),_0x52fb66=!!_0x26f602['config']['get']('list.multiBlock');function _0x191249(_0x113e7f){return{'type':'format','content':''+At(_0x2d289d,'*Set\x20format:*\x20%0',_0x113e7f)};}function _0x3c17d7(_0x5c3574){return{'type':'format','content':''+At(_0x2d289d,'*Remove\x20format:*\x20%0',_0x5c3574)};}_0x4a8f62['enableDefaultAttributesIntegration']('numberedList'),_0x4a8f62['enableDefaultAttributesIntegration']('bulletedList'),_0x4a8f62['enableDefaultAttributesIntegration']('customNumberedList'),_0x4a8f62['enableDefaultAttributesIntegration']('customBulletedList'),_0x4a8f62['enableDefaultAttributesIntegration']('indentList'),_0x4a8f62['enableDefaultAttributesIntegration']('outdentList'),_0x4a8f62['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4a8f62['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x52fb66&&(_0x4a8f62['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4a8f62['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x57c9c3&&(_0x4a8f62['enableDefaultAttributesIntegration']('todoList'),_0x4a8f62['enableDefaultAttributesIntegration']('checkTodoList'),_0x4a8f62['descriptionFactory']['registerDescriptionCallback'](_0x423939=>{const {data:_0x2c89a2}=_0x423939;if(_0x2c89a2&&'todoListChecked'==_0x2c89a2['key'])return{'type':'format','content':_0x2c89a2['newValue']?At(_0x2d289d,'*Check\x20item*'):At(_0x2d289d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x28ee4d=>{if(_0x28ee4d['batch']['isUndo'])return!0x1;let _0x283a43=!0x1;const _0x373264=_0x4a8f62['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x37819a=>'todoListChecked'===_0x4a8f62['_getAttributeKey'](_0x37819a));for(const _0x1b7947 of _0x373264){'todo'!=_0x1b7947['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4a8f62['_findSuggestions'](_0x1b7947['getFirstRange'](),'attribute')['find'](_0x99b654=>'listType'===_0x4a8f62['_getAttributeKey'](_0x99b654['suggestion']))||(_0x28ee4d['removeMarker'](_0x1b7947['getFirstMarker']()),_0x283a43=!0x0));}return _0x283a43;})),_0x4a8f62['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x2d289d,'FORMAT_INDENT'));const _0x262895={'type':'format','content':''};_0x4a8f62['descriptionFactory']['registerDescriptionCallback'](_0x2ad450=>{const {data:_0x433ef5}=_0x2ad450;if(!_0x433ef5||'listType'!=_0x433ef5['key'])return;let _0x80ce65=_0x2ad450['head'];for(;_0x80ce65;){if(_0x80ce65['data']&&(('listStyle'==_0x80ce65['data']['key']||'listMarkerStyle'==_0x80ce65['data']['key'])&&(_0x80ce65['data']['newValue']&&'default'!=_0x80ce65['data']['newValue']||'default'!=_0x80ce65['data']['oldValue']&&!_0x433ef5['newValue'])||!_0x52fb66&&_0x80ce65['data']['key']==Ke))return _0x262895;_0x80ce65=_0x80ce65['next'];}if(null==_0x433ef5['newValue'])switch(_0x433ef5['oldValue']){case'bulleted':return _0x3c17d7(At(_0x2d289d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c17d7(At(_0x2d289d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c17d7(At(_0x2d289d,'ELEMENT_TODO_LIST'));}switch(_0x433ef5['newValue']){case'bulleted':return _0x191249(At(_0x2d289d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x191249(At(_0x2d289d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x191249(At(_0x2d289d,'ELEMENT_TODO_LIST'));}}),_0x4a8f62['descriptionFactory']['registerDescriptionCallback'](_0x1a1baf=>{const {data:_0x4bbf76}=_0x1a1baf;if(_0x4bbf76&&'listIndent'==_0x4bbf76['key'])return null==_0x4bbf76['newValue']||null==_0x4bbf76['oldValue']&&0x0==_0x4bbf76['newValue']?_0x262895:void 0x0;}),_0x4a8f62['descriptionFactory']['registerDescriptionCallback'](_0x24110b=>{if('attribute'!=_0x24110b['type'])return;const {data:_0x449f85}=_0x24110b;if(!_0x449f85||'listItemId'!=_0x449f85['key'])return;const _0x3446e4=Ht(_0x24110b);return'newValue'==_0x3446e4?{'type':'format','content':At(_0x2d289d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3446e4?{'type':'format','content':At(_0x2d289d,'*Split:*\x20list\x20item')}:_0x262895;}),_0x26f602['model']['document']['registerPostFixer'](_0x45c710=>this['listItemIdFixer'](_0x45c710)),_0x26f602['model']['document']['registerPostFixer'](_0x2e692e=>this['noTrackChangesFixer'](_0x2e692e)),_0x26f602['model']['document']['on']('change:data',(_0x5e5f5c,_0x47f505)=>{if(_0x47f505['isUndo']||!_0x47f505['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2d973c){if(_0x2d973c['batch']['isUndo']||!_0x2d973c['batch']['isLocal'])return!0x1;let _0x38c322=!0x1;const _0x5f1906=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11f02a=>_0x11f02a['data']&&'listItemId'==_0x11f02a['data']['key'])['filter'](_0x1d4f20=>_0x1d4f20['data']['newValue']&&_0x1d4f20['data']['oldValue']);for(const _0xd382c1 of _0x5f1906)Ht(_0xd382c1)||(_0x2d973c['removeMarker'](_0xd382c1['getFirstMarker']()),_0x38c322=!0x0);return _0x38c322;}['noTrackChangesFixer'](_0x2c00e8){if(_0x2c00e8['batch']['isUndo']||!_0x2c00e8['batch']['isLocal'])return!0x1;const _0x57413f=this['editor']['model']['document']['differ'],_0xb40040=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xb40040['trackChangesCommand']['value'])return!0x1;let _0x5657eb=!0x1;const _0x5e06a4=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x17ba21=_0x57413f['getChanges']()['filter'](_0x24effe=>'attribute'==_0x24effe['type'])['filter'](_0x23fbce=>_0x5e06a4['has'](_0x23fbce['attributeKey']));if(0x0==_0x17ba21['length'])return _0x5657eb;const _0xa1d0c5=new Set(_0x57413f['getMarkersToAdd']()['filter'](_0x1637ec=>{if(!_0x1637ec['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x4916bf=_0x2695eb(_0x1637ec['name'])['subType']['split']('|')[0x0];return _0x5e06a4['has'](_0x4916bf);})['map'](_0x2243d1=>_0x2695eb(_0x2243d1['name'])['id']));for(const _0x1c81a8 of _0x17ba21){const _0x31df5e=_0xb40040['_findSuggestions'](_0x1c81a8['range'],'attribute')['filter'](_0x52ae6d=>{if(_0x52ae6d['meta']['isNextTo'])return!0x1;if(_0xa1d0c5['has'](_0x52ae6d['suggestion']['id']))return!0x1;const _0x8f6f9f=_0xb40040['_getAttributeKey'](_0x52ae6d['suggestion']);return _0x5e06a4['has'](_0x8f6f9f);})['map'](_0x381bef=>_0x381bef['suggestion']);if(_0x31df5e['length']){for(const _0x37f35b of _0x31df5e)_0x2c00e8['removeMarker'](_0x37f35b['getFirstMarker']());_0x5657eb=!0x0;}}return _0x5657eb;}['assureChains'](){const _0x334eec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4079e1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x262c3c;const _0x34cc80=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5ef7db=>{if(_0x5ef7db['data']['oldRange']||!_0x5ef7db['data']['newRange'])return null;if(!_0x5ef7db['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1b44e3}=_0x2695eb(_0x5ef7db['name']);if(!_0x334eec['hasSuggestion'](_0x1b44e3))return null;const _0x3e60ab=_0x334eec['getSuggestion'](_0x1b44e3);return _0x4079e1['includes'](_0x3e60ab['data']['key']);})['map'](_0x1664cb=>{const {id:_0x263699}=_0x2695eb(_0x1664cb['name']),_0x30ba4e=_0x334eec['getSuggestion'](_0x263699);return _0x262c3c=_0x30ba4e['attributes']['groupId'],_0x30ba4e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x34cc80['size'])return;const _0x595c1d=_0x334eec['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9dbc91=>'attribute'==_0x9dbc91['type']&&_0x9dbc91['data']&&_0x4079e1['includes'](_0x9dbc91['data']['key'])&&_0x9dbc91['attributes']['groupId']!=_0x262c3c)['map'](_0x5956e9=>({'listItem':_0x5956e9['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5956e9['attributes']['groupId']})),_0x406209=new Set();for(const {groupId:_0xb890a4,listItem:_0x3e9b84}of _0x595c1d)_0x34cc80['has'](_0x3e9b84)&&_0x406209['add'](_0xb890a4);for(const _0x4b0abd of _0x334eec['getSuggestions']())_0x406209['has'](_0x4b0abd['attributes']['groupId'])&&_0x4b0abd['setAttribute']('groupId',_0x262c3c);}['_supportLegacySuggestions'](){const _0x3c1bf2=this['editor'],_0x1cdcae=_0x3c1bf2['locale'],_0xf3a2ea=_0x3c1bf2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xf3a2ea['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x28f80a,_0x4ed60e){const _0x21d260=[];for(let _0x3367f2 of _0x28f80a)_0x3367f2['start']['nodeAfter']===_0x3367f2['end']['parent']&&(_0x3367f2=_0x3c1bf2['model']['createRange'](_0x3c1bf2['model']['createPositionAt'](_0x3367f2['start']['nodeAfter'],0x0))),_0x21d260['push'](_0x3367f2);_0x3c1bf2['model']['change'](_0x384f2b=>{const _0x2add1c=_0x3c1bf2['model']['document']['selection'],_0x1210f3=Array['from'](_0x2add1c['getRanges']())['map'](_0x4aa27d=>_0x5924fb['fromRange'](_0x4aa27d));_0x384f2b['setSelection'](_0x21d260),_0x3c1bf2['commands']['get'](_0x4ed60e['commandName'])['refresh'](),_0x4ed60e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3c1bf2['execute'](_0x4ed60e['commandName'],..._0x4ed60e['commandParams']),_0x384f2b['setSelection'](_0x1210f3);for(const _0x481fc6 of _0x1210f3)_0x481fc6['detach']();});}),_0xf3a2ea['descriptionFactory']['registerElementLabel'](function(_0x42c6a6){const _0x16b7e0=!_0x3c1bf2['model']['schema']['isObject'](_0x42c6a6),_0x2f5f23=_0x42c6a6['previousSibling'],_0x156240=_0x42c6a6['nextSibling'],_0x2406ea=_0x42c6a6['getAttribute']('listItemId'),_0x4041e7=!_0x2f5f23||_0x2f5f23['getAttribute']('listItemId')!==_0x2406ea,_0x3276c4=!_0x156240||_0x156240['getAttribute']('listItemId')!==_0x2406ea;return _0x16b7e0&&Boolean(_0x2406ea)&&_0x4041e7&&_0x3276c4;},_0x3b9020=>At(_0x1cdcae,'ELEMENT_LIST_ITEM',_0x3b9020));}['_registerLegacyDescription'](){const _0x29df9f=this['editor'],_0x4c487f=_0x29df9f['locale'];function _0x69b124(_0x2504d6){const _0x2d9d81=_0x29df9f['commands']['get']('bulletedList')['value'],_0x49a52a=_0x29df9f['commands']['get']('numberedList')['value'];return'numberedList'===_0x2504d6?_0x2d9d81:_0x49a52a;}_0x29df9f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x27a60e){if('formatBlock'!=_0x27a60e['type'])return;const {data:_0x1fdeeb}=_0x27a60e;if(!_0x1fdeeb)return;let _0x1d9ffc,_0x16722e,_0x594e12,_0x3dfa95;switch(_0x1fdeeb['commandName']){case'bulletedList':_0x594e12=_0x1fdeeb['commandParams'][0x0]['forceValue'],_0x3dfa95=_0x69b124(_0x1fdeeb['commandName']),_0x1d9ffc=_0x594e12?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3dfa95&&_0x29df9f['config']['get']('list.multiBlock')||(_0x1d9ffc='*Change\x20to:*\x20%0'),_0x16722e={'type':'format','content':At(_0x4c487f,_0x1d9ffc,At(_0x4c487f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x594e12=_0x1fdeeb['commandParams'][0x0]['forceValue'],_0x3dfa95=_0x69b124(_0x1fdeeb['commandName']),_0x1d9ffc=_0x594e12?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3dfa95&&_0x29df9f['config']['get']('list.multiBlock')||(_0x1d9ffc='*Change\x20to:*\x20%0'),_0x16722e={'type':'format','content':At(_0x4c487f,_0x1d9ffc,At(_0x4c487f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1d9ffc='*Indent:*\x20%0',_0x16722e={'type':'format','content':At(_0x4c487f,_0x1d9ffc,At(_0x4c487f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1d9ffc=function(_0x295a64){const _0x1aeee1=_0x295a64['getFirstRange']();let _0x2987ce=_0x1aeee1['start']['nodeAfter'];for(;_0x2987ce&&_0x1aeee1['containsItem'](_0x2987ce);){if(_0x2987ce['getAttribute']('listIndent')>0x0)return!0x1;_0x2987ce=_0x2987ce['nextSibling'];}return!0x0;}(_0x27a60e)?At(_0x4c487f,'*Format:*\x20remove\x20from\x20%0',At(_0x4c487f,function(_0x5bed5a){return'ELEMENT_'+_0x5bed5a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x27a60e))):At(_0x4c487f,'*Outdent:*\x20%0',At(_0x4c487f,'ELEMENT_LIST_ITEM')),_0x16722e={'type':'format','content':_0x1d9ffc};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1fdeeb['multipleBlocks']&&(_0x1d9ffc='*Merge:*\x20%0',_0x16722e={'type':'deletion','content':At(_0x4c487f,_0x1d9ffc,At(_0x4c487f,'ELEMENT_LIST_ITEM'))});}return _0x16722e;});}}function Ht(_0x5087ec){let _0x3d4258=_0x5087ec['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3d4258;){const _0x465300=_0x3d4258['getAttribute']('listItemId');if(!_0x465300)return!0x1;if(_0x465300==_0x5087ec['data']['newValue'])return'newValue';if(_0x465300==_0x5087ec['data']['oldValue'])return'oldValue';_0x3d4258=_0x3d4258['previousSibling'];}return!0x1;}class $t extends _0x2e7e21{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x27c955=this['editor']['config']['get']('list.properties'),_0x2e45ab=this['editor']['plugins']['get']('TrackChangesEditing');_0x27c955['styles']&&_0x2e45ab['enableDefaultAttributesIntegration']('listStyle'),_0x27c955['reversed']&&_0x2e45ab['enableDefaultAttributesIntegration']('listReversed'),_0x27c955['startIndex']&&_0x2e45ab['enableDefaultAttributesIntegration']('listStart');const _0x304b6b={'type':'format','content':''};_0x2e45ab['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1beb6a=this['editor']['locale'];_0x2e45ab['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x1beb6a,'FORMAT_LIST_REVERSED')),_0x2e45ab['descriptionFactory']['registerDescriptionCallback'](_0x53d8e2=>{const {data:_0x30804c}=_0x53d8e2;if(_0x30804c&&'listReversed'==_0x30804c['key'])return null==_0x30804c['newValue']||0x0==_0x30804c['newValue']&&null==_0x30804c['oldValue']?_0x304b6b:void 0x0;}),_0x2e45ab['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x1beb6a,'FORMAT_LIST_START')),_0x2e45ab['descriptionFactory']['registerDescriptionCallback'](_0x31df3a=>{const {data:_0x323f7e}=_0x31df3a;if(_0x323f7e&&'listStart'==_0x323f7e['key'])return null==_0x323f7e['newValue']||0x1==_0x323f7e['newValue']&&null==_0x323f7e['oldValue']?_0x304b6b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x54fb2=>{if(_0x54fb2['batch']['isUndo'])return!0x1;let _0x5ac587=!0x1;const _0x265738=_0x2e45ab['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d5f9b=>{const _0x17efa5=_0x2e45ab['_getAttributeKey'](_0x1d5f9b);return'listStart'==_0x17efa5||'listReversed'==_0x17efa5;});for(const _0x524d38 of _0x265738){const _0x3b4a9b=_0x524d38['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3b4a9b||'customNumbered'==_0x3b4a9b)continue;_0x2e45ab['_findSuggestions'](_0x524d38['getFirstRange'](),'attribute')['find'](_0x5e4f74=>'listType'==_0x2e45ab['_getAttributeKey'](_0x5e4f74['suggestion']))||(_0x54fb2['removeMarker'](_0x524d38['getFirstMarker']()),_0x5ac587=!0x0);}return _0x5ac587;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x23e2c0){const _0x3afc32=this['editor']['locale'],{data:_0x2dec37}=_0x23e2c0,_0x107635={'type':'format','content':''};if(!_0x2dec37||'listStyle'!=_0x2dec37['key'])return;if(!_0x2dec37['oldValue'])return'default'==_0x2dec37['newValue']?_0x107635:{'type':'format','content':''+At(_0x3afc32,'*Set\x20format:*\x20%0',At(_0x3afc32,this['_getTranslationKeyForListStyle'](_0x2dec37['newValue'])))};if(!_0x2dec37['newValue']){if('default'==_0x2dec37['oldValue'])return _0x107635;let _0x17982f=_0x23e2c0['head'];for(;_0x17982f;){if(_0x17982f['data']&&'listType'==_0x17982f['data']['key']&&_0x17982f['data']['newValue'])return _0x107635;_0x17982f=_0x17982f['next'];}return{'type':'format','content':''+At(_0x3afc32,'*Remove\x20format:*\x20%0',At(_0x3afc32,this['_getTranslationKeyForListStyle'](_0x2dec37['oldValue'])))};}if('default'!=_0x2dec37['newValue'])return{'type':'format','content':''+At(_0x3afc32,'*Set\x20format:*\x20%0',At(_0x3afc32,this['_getTranslationKeyForListStyle'](_0x2dec37['newValue'])))};let _0x56a58f=_0x23e2c0['head'];for(;_0x56a58f;){if(_0x56a58f['data']&&'listType'==_0x56a58f['data']['key']&&_0x56a58f['data']['newValue']&&_0x56a58f['data']['oldValue'])return _0x107635;_0x56a58f=_0x56a58f['next'];}return{'type':'format','content':At(_0x3afc32,'*Set\x20format:*\x20%0',At(_0x3afc32,'ELEMENT_'+_0x23e2c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x36282a=this['editor'],_0x329f43=_0x36282a['locale'];_0x36282a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e847c=>{if('formatBlock'!=_0x3e847c['type'])return;const {data:_0x499457}=_0x3e847c;if(!_0x499457)return;let _0x277e87,_0x4ff460;switch(_0x499457['commandName']){case'listStyle':_0x277e87='*Change\x20to:*\x20%0',_0x4ff460={'type':'format','content':At(_0x329f43,_0x277e87,At(_0x329f43,this['_getTranslationKeyForListStyle'](_0x499457['commandParams'][0x0]['type'])))};break;case'listReversed':_0x277e87=_0x499457['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4ff460={'type':'format','content':At(_0x329f43,_0x277e87)};break;case'listStart':_0x277e87='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4ff460={'type':'format','content':At(_0x329f43,_0x277e87,_0x499457['commandParams'][0x0]['startIndex'])};}return _0x4ff460;});}['_getTranslationKeyForListStyle'](_0x1f0a32){return'ELEMENT_'+function(_0x528494){if(Wt['includes'](_0x528494))return'bulleted';if(Vt['includes'](_0x528494))return'numbered';return null;}(_0x1f0a32)['toUpperCase']()+'_LIST_'+_0x1f0a32['toUpperCase']()['replace'](/-/g,'_');}}const Wt=['disc','circle','square'],Vt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class jt extends _0x2e7e21{['afterInit'](){const _0x1e778a=this['editor'];_0x1e778a['commands']['get']('emoji')&&_0x1e778a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x2e7e21{static get['requires'](){return[lt];}['init'](){const _0x104635=this['editor'],_0x3470c9=_0x104635['plugins']['get']('TrackChangesEditing'),_0x5c6dbe=_0x104635['commands']['get']('enter');_0x3470c9['enableCommand']('enter',()=>{_0x104635['model']['change'](_0x19c872=>{const _0x558dec=_0x104635['model']['document']['selection'],_0x1461d2=_0x558dec['getFirstPosition'](),_0x53c7cb=_0x5924fb['fromRange'](_0x558dec['getFirstRange']());if(_0x5c6dbe['enterBlock'](_0x19c872)){const _0x251171=_0x104635['model']['createPositionAt'](_0x1461d2['parent']['nextSibling'],0x0),_0x2b5130=_0x19c872['createRange'](_0x1461d2,_0x251171);_0x3470c9['markInsertion'](_0x2b5130);}else _0x19c872['setSelection'](_0x19c872['createRange'](_0x53c7cb['end']));_0x53c7cb['detach'](),_0x5c6dbe['fire']('afterExecute',{'writer':_0x19c872});});});}}class Kt extends _0x2e7e21{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x42f449=this['editor']['plugins']['get']('TrackChangesEditing');_0x42f449['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x42f449['enableCommand']('findNext'),_0x42f449['enableCommand']('findPrevious'),_0x42f449['enableCommand']('replace'),_0x42f449['enableCommand']('replaceAll');}['handleFindCommand'](_0x301353,_0x3bc51f,_0x11dd7b={}){const _0x2fab89=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x301353(_0x381418=>{let _0xb1678b=('string'==typeof _0x3bc51f?_0x2fab89['findByTextCallback'](_0x3bc51f,_0x11dd7b):_0x3bc51f)(_0x381418);Array['isArray'](_0xb1678b)&&(_0xb1678b={'results':_0xb1678b,'searchText':'string'==typeof _0x3bc51f?_0x3bc51f:''});const _0x2307a6=_0xb1678b['results']['filter'](_0x3ba37d=>!0x1===this['_isInDeletionRange'](_0x3ba37d,_0x381418['item']));return{..._0xb1678b,'results':_0x2307a6};},_0x11dd7b);}['_isInDeletionRange'](_0xc230e5,_0x25fa09){const _0x1c96bd=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x25fa09,_0xc230e5['start']),this['editor']['model']['createPositionAt'](_0x25fa09,_0xc230e5['end']));for(const _0x190367 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1c96bd['getIntersection'](_0x190367['getRange']()))return!0x0;return!0x1;}}const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Yt extends _0x2e7e21{['afterInit'](){const _0x3f6413=this['editor']['locale'],_0x193ddf=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x277ccf,commandName:_0x5ddd1d}of Xt)this['editor']['plugins']['has'](_0x277ccf)&&_0x193ddf['enableDefaultAttributesIntegration'](_0x5ddd1d);_0x193ddf['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x3f6413,'FORMAT_FONT_SIZE')),_0x193ddf['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x3f6413,'FORMAT_FONT_FAMILY')),_0x193ddf['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x3f6413,'FORMAT_FONT_COLOR')),_0x193ddf['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x3f6413,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27c4fa=this['editor'],_0x3f7c7b=_0x27c4fa['locale'];_0x27c4fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e9884=>{const _0x14ac17=_0x3f7c7b['t'];if('formatInline'!=_0x3e9884['type'])return;const {data:_0x56e713}=_0x3e9884;if(null!=_0x56e713){if('fontSize'==_0x56e713['commandName']){const _0x248189=_0x56e713['commandParams'][0x0]['value'];if(_0x248189){const _0x40fde2=_0x14ac17(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x523bd8=>_0x523bd8['model']==_0x248189)['title'])['toLowerCase']();return{'type':'format','content':At(_0x3f7c7b,'*Set\x20font\x20size:*\x20%0',_0x40fde2)};}return{'type':'format','content':At(_0x3f7c7b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x56e713['commandName']){const _0x3a538b=_0x56e713['commandParams'][0x0]['value'];return _0x3a538b?{'type':'format','content':At(_0x3f7c7b,'*Set\x20font\x20family:*\x20%0',_0x3a538b)}:{'type':'format','content':At(_0x3f7c7b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x56e713['commandName']){const _0x3290d9=_0x56e713['commandParams'][0x0]['value'];if(_0x3290d9){const _0x2618df=_0x12b804(this['editor']['config']['get']('fontColor.colors'))['find'](_0x530d16=>_0x530d16['model']==_0x3290d9);let _0x259644=_0x3290d9,_0x1e425f='';return _0x2618df&&(_0x259644=_0x2618df['label'],_0x1e425f=_0x14ac17(_0x259644)['toLowerCase']()),{'type':'format','content':At(_0x3f7c7b,'*Set\x20font\x20color:*\x20%0',_0x1e425f)['trim'](),'color':{'value':_0x3290d9,'title':_0x1e425f||_0x259644}};}return{'type':'format','content':At(_0x3f7c7b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x56e713['commandName']){const _0x56e876=_0x56e713['commandParams'][0x0]['value'];if(_0x56e876){const _0x4f5bb7=_0x12b804(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xb64778=>_0xb64778['model']==_0x56e876);let _0x5c3fb5=_0x56e876,_0x4218ee='';return _0x4f5bb7&&(_0x5c3fb5=_0x4f5bb7['label'],_0x4218ee=_0x14ac17(_0x5c3fb5)['toLowerCase']()),{'type':'format','content':At(_0x3f7c7b,'*Set\x20font\x20background\x20color:*\x20%0',_0x4218ee)['trim'](),'color':{'value':_0x56e876,'title':_0x4218ee||_0x5c3fb5}};}return{'type':'format','content':At(_0x3f7c7b,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x2e7e21{['afterInit'](){const {plugins:_0x553380}=this['editor'];_0x553380['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x553380['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x4fbbad,plugins:_0x303a1c,commands:_0x3aba15}=this['editor'],_0x492117=_0x303a1c['get']('TrackChangesEditing');_0x3aba15['get']('footnotesStyle')&&_0x492117['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3aba15['get']('footnotesStart')&&_0x492117['enableDefaultAttributesIntegration']('footnotesStart'),_0x492117['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x4fbbad,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x492117['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x4fbbad,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x1ba7c8=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x44ff73,commands:_0x2f8f84}=this['editor'];_0x2f8f84['get']('insertFootnote')&&_0x1ba7c8['enableCommand']('insertFootnote'),_0x1ba7c8['descriptionFactory']['registerElementLabel']('footnoteRef',_0x570293=>At(_0x44ff73,'ELEMENT_FOOTNOTE_REF',_0x570293)),_0x1ba7c8['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x23f3cc=>At(_0x44ff73,'ELEMENT_FOOTNOTE_DEFINITION',_0x23f3cc)),_0x1ba7c8['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x4e2626=>At(_0x44ff73,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x4e2626));}}class Qt extends _0x2e7e21{['afterInit'](){const _0x14d9d6=this['editor'],_0x49c766=_0x14d9d6['plugins']['get']('TrackChangesEditing'),_0x321a8c=_0x14d9d6['commands']['get']('copyFormat'),_0x313bbc=_0x14d9d6['commands']['get']('pasteFormat');_0x321a8c&&_0x313bbc&&(_0x49c766['enableDefaultAttributesIntegration']('pasteFormat'),_0x49c766['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x10cdc2=this['editor'],_0x56ac13=_0x10cdc2['locale'];_0x10cdc2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7900bc=>{if('formatBlock'!=_0x7900bc['type']&&'formatInline'!=_0x7900bc['type'])return;const {data:_0x148d39}=_0x7900bc;if(_0x148d39&&'pasteFormat'===_0x148d39['commandName']){const _0x2839cd=[],_0x5befb8=_0x148d39['commandParams'][0x0];for(const [_0x2389d1,_0x387abe]of Object['entries'](_0x5befb8))_0x2839cd['push'](Zt(_0x10cdc2,_0x2389d1,_0x387abe));return _0x2839cd['length']?{'type':'format','content':At(_0x56ac13,'*Set\x20format\x20to:*\x20%0',_0x2839cd['join'](',\x20'))}:{'type':'format','content':At(_0x56ac13,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0xbdc37a,_0x562d06,_0x38df46){const _0x486c5e=_0xbdc37a['locale']['t'],_0x42710a=_0x562d06['split'](/(?=[A-Z])/)['join']('\x20'),_0x437aed=_0x486c5e(_0x42710a['charAt'](0x0)['toUpperCase']()+_0x42710a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x38df46)return _0x437aed;if('fontColor'===_0x562d06||'fontBackgroundColor'===_0x562d06){const _0x1bf8d5=_0x12b804(_0xbdc37a['config']['get']('fontColor.colors'))['find'](_0x3b95d9=>_0x3b95d9['model']==_0x38df46);return _0x437aed+'\x20('+(_0x1bf8d5?_0x486c5e(_0x1bf8d5['label'])['toLowerCase']():_0x38df46)+')';}if('fontSize'===_0x562d06&&isNaN(parseFloat(_0x38df46))){const _0x2db709=_0xbdc37a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xbdc37a['config']['get']('fontSize.options'))['find'](_0x56a1d2=>_0x56a1d2['model']==_0x38df46);return _0x437aed+'\x20('+(_0x2db709?_0x486c5e(_0x2db709['title'])['toLowerCase']():_0x38df46)+')';}return _0x437aed+'\x20('+_0x38df46+')';}class Jt extends _0x2e7e21{['_headingOptions'];['afterInit'](){const _0xe9079=this['editor'];if(!_0xe9079['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xe9079['config']['get']('heading.options');const _0x459ff5=_0xe9079['locale'],_0x3bf572=_0xe9079['plugins']['get']('TrackChangesEditing');_0x3bf572['enableDefaultAttributesIntegration']('heading');for(const _0x485724 of this['_headingOptions'])'paragraph'!=_0x485724['model']&&_0x3bf572['descriptionFactory']['registerElementLabel'](_0x485724['model'],_0x3265f2=>{const _0x38e26a=this['_getHeadingLevel'](_0x485724['model']);return null!==_0x38e26a?_0x309ecb(_0x3265f2,_0x38e26a):_0x4fc9a1(_0x3265f2,_0x485724['title']);});function _0x309ecb(_0x529b94,_0x4152c3){return At(_0x459ff5,'ELEMENT_HEADING',[_0x529b94,_0x4152c3]);}function _0x4fc9a1(_0x4df3ca,_0x451979){return At(_0x459ff5,'ELEMENT_HEADING_CUSTOM',[_0x4df3ca,_0x451979]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x472232=this['editor'],_0x4af7ef=_0x472232['locale'];function _0x1b81ba(_0x4483bf,_0x103539){return At(_0x4af7ef,'ELEMENT_HEADING_CUSTOM',[_0x4483bf,_0x103539]);}_0x472232['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bb8a6=>{if('formatBlock'!=_0x5bb8a6['type'])return;const {data:_0x21db10}=_0x5bb8a6;if(_0x21db10&&'heading'==_0x21db10['commandName']){const _0x365ec9=_0x21db10['commandParams'][0x0]['value'],_0x4adc39=this['_getHeadingLevel'](_0x365ec9);if(null!==_0x4adc39)return{'type':'format','content':At(_0x4af7ef,'*Change\x20to:*\x20%0',(_0x1f9f6b=0x1,_0x59ff83=_0x4adc39,At(_0x4af7ef,'ELEMENT_HEADING',[_0x1f9f6b,_0x59ff83])))};const _0x134b8c=this['_headingOptions']['find'](_0x45a7ea=>_0x45a7ea['model']===_0x365ec9)['title'];return{'type':'format','content':At(_0x4af7ef,'*Change\x20to:*\x20%0',_0x1b81ba(0x1,_0x134b8c))};}var _0x1f9f6b,_0x59ff83;});}['_getHeadingLevel'](_0xb17453){const _0x1f845f=_0xb17453['match'](/^heading(\d+)/);if(_0x1f845f)return _0x1f845f[0x1];const _0x53665b=this['_headingOptions']?.['find'](_0x103160=>_0x103160['model']==_0xb17453);if(_0x53665b&&_0x53665b['view']){const _0x57dd59=_0x53665b['view'],_0x14d6f5=(_0x57dd59['name']??_0x57dd59)['match'](/^h(\d+)/);if(_0x14d6f5)return _0x14d6f5[0x1];}return null;}}class te extends _0x2e7e21{['afterInit'](){const _0x22f586=this['editor'];if(!_0x22f586['plugins']['has']('HighlightEditing'))return;const _0x172fa1=_0x22f586['plugins']['get']('TrackChangesEditing'),_0x4fb5d7=_0x22f586['locale'];_0x172fa1['enableDefaultAttributesIntegration']('highlight'),_0x172fa1['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x4fb5d7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x339bf1=this['editor'],_0x20227c=_0x339bf1['locale'];_0x339bf1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50c5ff=>{if('formatInline'!=_0x50c5ff['type'])return;const {data:_0x464448}=_0x50c5ff;if(_0x464448&&'highlight'==_0x464448['commandName']){const _0x1f83d2=_0x20227c['t'],_0x3c64ef=_0x464448['commandParams'][0x0]['value'];if(_0x3c64ef){const _0x85ac01=_0x339bf1['config']['get']('highlight.options')['find'](_0x2a0fff=>_0x2a0fff['model']==_0x3c64ef),_0x33a432=_0x1f83d2(_0x85ac01['title'])['toLowerCase']();return{'type':'format','content':At(_0x20227c,'*Set\x20highlight:*\x20%0',_0x33a432),'color':{'value':_0x85ac01['color'],'title':_0x85ac01['title']}};}return{'type':'format','content':At(_0x20227c,'*Remove\x20highlight*',At(_0x20227c,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x2e7e21{['afterInit'](){const _0x42da4a=this['editor'];if(!_0x42da4a['plugins']['has']('HorizontalLineEditing'))return;_0x42da4a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x45f86b=_0x42da4a['plugins']['get']('TrackChangesEditing'),_0x322af9=_0x42da4a['locale'];_0x45f86b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5bfff0=>At(_0x322af9,'ELEMENT_HORIZONTAL_LINE',_0x5bfff0));}}class ne extends _0x2e7e21{['afterInit'](){const _0x3d8cae=this['editor'];if(!_0x3d8cae['plugins']['has']('HtmlEmbed'))return;const _0x4af561=_0x3d8cae['plugins']['get']('TrackChangesEditing'),_0x1f84cc=_0x3d8cae['locale'];_0x4af561['descriptionFactory']['registerElementLabel']('rawHtml',_0x1fb0d8=>At(_0x1f84cc,'ELEMENT_HTML_EMBED',_0x1fb0d8)),_0x4af561['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4af561['descriptionFactory']['registerDescriptionCallback'](_0x303844=>{if('attribute'!=_0x303844['type'])return;const {data:_0x205e9e}=_0x303844;if(_0x205e9e&&'value'==_0x205e9e['key']&&_0x303844['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xdc1f7f=At(_0x1f84cc,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x1f84cc,'*Change\x20%0\x20content*',_0xdc1f7f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x264488=this['editor'],_0x454fb8=_0x264488['locale'];_0x264488['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29553d=>{if('formatBlock'!=_0x29553d['type'])return;const {data:_0x1f9f02}=_0x29553d;if(_0x1f9f02&&'htmlEmbed'==_0x1f9f02['commandName']){const _0x377731=At(_0x454fb8,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x454fb8,'*Change\x20%0\x20content*',_0x377731)};}});}}class ie extends _0x2e7e21{['afterInit'](){const _0x159a90=this['editor'];if(!_0x159a90['plugins']['has']('ImageEditing'))return;const _0x3e53e2=_0x159a90['plugins']['get']('TrackChangesEditing'),_0x3cb55f=_0x159a90['plugins']['get']('ImageUtils'),_0x151400=_0x159a90['locale'];_0x3e53e2['enableCommand']('insertImage'),_0x3e53e2['descriptionFactory']['registerElementLabel']('imageBlock',_0x1f8358=>At(_0x151400,'ELEMENT_IMAGE',_0x1f8358)),_0x3e53e2['descriptionFactory']['registerElementLabel']('imageInline',_0x142fd9=>At(_0x151400,'ELEMENT_INLINE_IMAGE',_0x142fd9)),_0x3e53e2['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x151400,'ELEMENT_CAPTION')),_0x159a90['plugins']['has']('ImageUploadEditing')&&_0x3e53e2['enableCommand']('uploadImage'),_0x159a90['plugins']['has']('ImageBlockEditing')&&_0x159a90['plugins']['has']('ImageInlineEditing')&&(_0x3e53e2['enableCommand']('imageTypeInline',(_0x2c4a16,_0x169da1)=>{const _0x5074ce=_0x3cb55f['getClosestSelectedImageElement'](_0x159a90['model']['document']['selection']);_0x159a90['model']['change'](()=>{_0x3e53e2['markBlockFormat'](_0x5074ce,{'commandName':'imageTypeInline','commandParams':[_0x169da1]},[],'convertBlockImageToInline');});}),_0x3e53e2['enableCommand']('imageTypeBlock',(_0x99063b,_0x38c912)=>{_0x159a90['model']['change'](_0x402b6f=>{let _0x412559=_0x3cb55f['getClosestSelectedImageElement'](_0x159a90['model']['document']['selection']),_0x7b43c6=_0x402b6f['createRangeOn'](_0x412559);const _0xd83018=tt['fromPosition'](_0x7b43c6['start'],'toPrevious'),_0x50cb63=tt['fromPosition'](_0x7b43c6['end'],'toNext');_0x3e53e2['forceDefaultExecution'](()=>_0x99063b(_0x38c912)),_0x412559=_0x3cb55f['getClosestSelectedImageElement'](_0x159a90['model']['document']['selection']),_0x7b43c6=_0x402b6f['createRangeOn'](_0x412559);const _0x2362ee=_0x402b6f['createRange'](_0xd83018,_0x50cb63);_0xd83018['detach'](),_0x50cb63['detach'](),_0x3e53e2['markBlockFormat'](_0x412559,{'commandName':'imageTypeInline','commandParams':[_0x38c912]},[],'convertInlineImageToBlock'),_0x2362ee['start']['isBefore'](_0x7b43c6['start'])&&_0x3e53e2['markInsertion'](_0x402b6f['createRange'](_0x2362ee['start'],_0x7b43c6['start']),'convertInlineImageToBlock'),_0x7b43c6['end']['isBefore'](_0x2362ee['end'])&&_0x3e53e2['markInsertion'](_0x402b6f['createRange'](_0x7b43c6['end'],_0x2362ee['end']),'convertInlineImageToBlock');});}),_0x3e53e2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3e53e2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3e53e2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3e53e2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3e53e2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3e53e2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3fa5a7])=>{const _0xc98486=_0x3e53e2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1c953b=_0x3fa5a7['start'],_0x32776b=_0x3fa5a7['end'];const _0x2ee3af=_0x159a90['model']['schema']['getNearestSelectionRange'](_0x1c953b,'backward'),_0x345ff7=_0x159a90['model']['schema']['getNearestSelectionRange'](_0x32776b,'forward');_0x2ee3af['isCollapsed']&&(_0x1c953b=_0x2ee3af['start']),_0x345ff7['isCollapsed']&&(_0x32776b=_0x345ff7['end']),_0xc98486([_0x159a90['model']['createRange'](_0x1c953b,_0x32776b)]);}),_0x3e53e2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x12cb61),_0x3e53e2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x12cb61)),_0x159a90['plugins']['has']('ImageCaptionEditing')&&(_0x3e53e2['enableCommand']('toggleImageCaption',(_0x2c89c1,_0x494b55)=>{const _0x2fa353=_0x159a90['plugins']['get']('ImageCaptionUtils');let _0x4dcaf9=_0x3cb55f['getClosestSelectedImageElement'](_0x159a90['model']['document']['selection']),_0x106e87=_0x2fa353['getCaptionFromImageModelElement'](_0x4dcaf9);_0x159a90['model']['change'](()=>{if(_0x106e87)return void _0x3e53e2['markDeletion'](_0x159a90['model']['createRangeOn'](_0x106e87));const _0xae1de9=_0x3cb55f['isBlockImage'](_0x4dcaf9);_0x2c89c1(_0x494b55),_0x4dcaf9=_0x3cb55f['getClosestSelectedImageElement'](_0x159a90['model']['document']['selection']),_0x106e87=_0x2fa353['getCaptionFromImageModelElement'](_0x4dcaf9),_0x3e53e2['markInsertion'](_0x159a90['model']['createRangeOn'](_0x106e87),_0xae1de9?null:'imageCaption');});}),_0x3e53e2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x12cb61));const _0x2bbb71=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x48bc79(_0x5ebb50,_0x38b66a){const _0x12f490=_0x2bbb71['findIndex'](({type:_0x5628bc,subType:_0x1a269b})=>_0x5ebb50['type']==_0x5628bc&&_0x5ebb50['subType']==_0x1a269b),_0x36bc0c=_0x2bbb71['findIndex'](({type:_0x49245f,subType:_0x2c40db})=>_0x38b66a['type']==_0x49245f&&_0x38b66a['subType']==_0x2c40db);if(_0x12f490<0x0||_0x36bc0c<0x0)return!0x1;const _0x2c013c=_0x5ebb50['getFirstRange'](),_0x14054a=_0x38b66a['getFirstRange']();if((0x0==_0x12f490||0x1==_0x12f490)&&0x2==_0x36bc0c&&_0x2c013c['isIntersecting'](_0x14054a))return!0x0;if(0x2==_0x12f490&&0x3==_0x36bc0c){const _0x123640=_0x3e53e2['_findSuggestions'](_0x2c013c,'insertion')['filter'](({suggestion:_0x47e9b5,meta:_0x13c69b})=>_0x13c69b['isOwn']&&'convertInlineImageToBlock'==_0x47e9b5['subType']);if(_0x123640['length']>0x1&&_0x14054a['end']['isEqual'](_0x2c013c['start']))return!0x0;if(0x1==_0x123640['length']&&(_0x2c013c['start']['isEqual'](_0x14054a['end'])||_0x2c013c['end']['isEqual'](_0x14054a['start'])))return!0x0;}if(0x3==_0x12f490&&0x3==_0x36bc0c&&_0x2c013c['start']['isBefore'](_0x14054a['start'])){const _0x26ee68=_0x2c013c['end']['nodeAfter'],_0x1d9eb3=_0x14054a['start']['nodeBefore'];return _0x3cb55f['isBlockImage'](_0x26ee68)&&_0x26ee68===_0x1d9eb3;}return!0x1;}function _0x12cb61(_0x4e2087,_0x5661bf){return _0x48bc79(_0x4e2087,_0x5661bf)?[_0x4e2087,_0x5661bf]:_0x48bc79(_0x5661bf,_0x4e2087)?[_0x5661bf,_0x4e2087]:null;}_0x159a90['plugins']['has']('ImageResize')&&(_0x3e53e2['enableDefaultAttributesIntegration']('resizeImage'),_0x3e53e2['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x151400,'FORMAT_IMAGE_SIZE'))),_0x159a90['plugins']['has']('ImageTextAlternativeEditing')&&_0x3e53e2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x159a90['plugins']['has']('PictureEditing')&&_0x3e53e2['descriptionFactory']['registerDescriptionCallback'](_0x384207=>{if('attribute'!=_0x384207['type'])return;const {data:_0x57e0bf}=_0x384207;return _0x57e0bf&&'sources'==_0x57e0bf['key']?{'type':'format','content':''}:void 0x0;}),_0x159a90['plugins']['has']('ImageSizeAttributes')&&_0x3e53e2['descriptionFactory']['registerDescriptionCallback'](_0x419ab9=>{if('attribute'!=_0x419ab9['type'])return;const {data:_0x4c7c17}=_0x419ab9;return!_0x4c7c17||'width'!=_0x4c7c17['key']&&'height'!=_0x4c7c17['key']?void 0x0:{'type':'format','content':''};}),_0x3e53e2['descriptionFactory']['registerDescriptionCallback'](_0x3a40d7=>{if(!!_0x2bbb71['find'](({type:_0x3e3691,subType:_0x4801ae})=>_0x3a40d7['type']==_0x3e3691&&_0x3a40d7['subType']==_0x4801ae))return _0x3a40d7['previous']?{}:void 0x0;}),_0x3e53e2['descriptionFactory']['registerDescriptionCallback'](_0x5d07c5=>{if('insertion'==_0x5d07c5['type']||'deletion'==_0x5d07c5['type']){const _0x5880aa=_0x5d07c5['getContainedElement']();if(_0x5880aa&&_0x5880aa['is']('element','caption'))return{'type':'insertion'==_0x5d07c5['type']?'addObject':'removeObject','element':_0x5880aa,'quantity':0x1};}}),_0x3e53e2['descriptionFactory']['registerDescriptionCallback'](_0x6655e5=>'formatBlock'==_0x6655e5['type']&&'convertInlineImageToBlock'==_0x6655e5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x6655e5['type']&&'convertBlockImageToInline'==_0x6655e5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3e53e2['descriptionFactory']['registerDescriptionCallback'](_0x4ffc61=>{if('attribute'!=_0x4ffc61['type'])return;const {data:_0x47da82}=_0x4ffc61;if(!_0x47da82||'alt'!=_0x47da82['key'])return;const _0x4e59d4=_0x47da82['newValue'];return _0x4e59d4?{'type':'format','content':At(_0x151400,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4e59d4+'\x22')}:{'type':'format','content':At(_0x151400,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x413f3e=this['editor'],_0x58f57a=_0x413f3e['locale'];_0x413f3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x529b3a=>{if('formatBlock'!=_0x529b3a['type']&&'formatInline'!=_0x529b3a['type'])return;const {data:_0x5f5806}=_0x529b3a;if(_0x5f5806){if('imageTextAlternative'==_0x5f5806['commandName']){const _0x2c4ee3=_0x5f5806['commandParams'][0x0]['newValue'];return _0x2c4ee3?{'type':'format','content':At(_0x58f57a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c4ee3+'\x22')}:{'type':'format','content':At(_0x58f57a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5f5806['commandName']){const _0x1db371=_0x5f5806['commandParams'][0x0]['width'];return _0x1db371?{'type':'format','content':At(_0x58f57a,'*Set\x20image\x20width:*\x20%0',_0x1db371)}:{'type':'format','content':At(_0x58f57a,'*Reset\x20image\x20width*')};}}});}}class se extends _0x2e7e21{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x44842a=this['editor']['locale'],_0x415090=this['editor']['plugins']['get']('TrackChangesEditing');_0x415090['enableDefaultAttributesIntegration']('replaceImageSource'),_0x415090['descriptionFactory']['registerDescriptionCallback'](_0x34dab2=>{if('attribute'!=_0x34dab2['type'])return;const {data:_0x4be243}=_0x34dab2;return _0x4be243&&'src'==_0x4be243['key']?_0x4be243['newValue']&&_0x4be243['oldValue']?{'type':'format','content':At(_0x44842a,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2a5d9d=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a5d9d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2a5d9d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a5d9d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2a5d9d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f0eb0=this['editor'],_0x5b5b2f=_0x1f0eb0['locale'];_0x1f0eb0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d60aa=>{if('formatBlock'!=_0x5d60aa['type']&&'formatInline'!=_0x5d60aa['type'])return;const {data:_0x28cb5c}=_0x5d60aa;if(!_0x28cb5c||'replaceImageSource'!=_0x28cb5c['commandName'])return;return{'type':'format','content':At(_0x5b5b2f,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x2e7e21{['afterInit'](){const _0x2ca763=this['editor'];if(!_0x2ca763['plugins']['has']('ImageStyleEditing'))return;const _0x164acd=_0x2ca763['plugins']['get']('TrackChangesEditing'),_0x2b9feb=_0x2ca763['plugins']['get']('ImageUtils'),_0x251f3b={};_0x164acd['enableCommand']('imageStyle',(_0x3fcc1c,_0x2f83e1)=>{const _0x4cffef=_0x2ca763['plugins']['get']('Users')['me'],_0x6173ef=_0x2ca763['commands']['get']('imageStyle');let _0x369bcd=_0x2b9feb['getClosestSelectedImageElement'](_0x2ca763['model']['document']['selection']),_0x1a7f32=_0x2ca763['model']['createRangeOn'](_0x369bcd),_0xb4d503=_0x6173ef['value'];if(_0xb4d503==_0x2f83e1['value'])return;const _0x38946c={'commandName':'imageStyle','commandParams':[_0x2f83e1],'formatGroupId':_0x55a5f1()};_0x2ca763['model']['change'](()=>{if(_0x164acd['getSuggestions']()['filter'](_0x4df646=>_0x4df646['isInContent']&&_0x4cffef==_0x4df646['author']&&('formatBlock'==_0x4df646['type']||'formatInline'==_0x4df646['type'])&&('imageStylePreApply'==_0x4df646['subType']||'imageStylePostApply'==_0x4df646['subType'])&&_0x4df646['getFirstRange']()['isEqual'](_0x1a7f32))['forEach'](_0x28e4b5=>_0x164acd['discardSuggestion'](_0x28e4b5['head'])),_0x369bcd=_0x2b9feb['getClosestSelectedImageElement'](_0x2ca763['model']['document']['selection']),_0x1a7f32=_0x2ca763['model']['createRangeOn'](_0x369bcd),_0x6173ef['refresh'](),_0x2ca763['commands']['get']('imageTypeInline')['refresh'](),_0x2ca763['commands']['get']('imageTypeBlock')['refresh'](),_0xb4d503=_0x6173ef['value'],_0xb4d503!=_0x2f83e1['value'])return _0x2b9feb['isInlineImage'](_0x369bcd)&&_0x6173ef['shouldConvertImageType'](_0x2f83e1['value'],_0x369bcd)?(_0x3fcc1c({..._0x2f83e1,'setImageSizes':!0x1}),_0x369bcd=_0x2b9feb['getClosestSelectedImageElement'](_0x2ca763['model']['document']['selection']),void _0x164acd['markBlockFormat'](_0x369bcd,{..._0x38946c,'commandReversedParams':[{'value':_0xb4d503||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2b9feb['isBlockImage'](_0x369bcd)?_0x164acd['markBlockFormat'](_0x369bcd,_0x38946c,[],'imageStylePostApply'):_0x164acd['markInlineFormat'](_0x1a7f32,_0x38946c,'imageStylePostApply'));});});for(const _0x5bd613 of _0x2ca763['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x251f3b[_0x5bd613['name']]=_0x5bd613['title']['toLowerCase']();_0x164acd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x164acd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x164acd['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x164acd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x347bcb])=>{_0x2b9feb['setImageNaturalSizeAttributes'](_0x347bcb['getContainedElement']());}),_0x164acd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3083c1,_0x48db26)=>{_0x164acd['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3083c1,{'commandName':_0x48db26['commandName'],'commandParams':_0x48db26['commandReversedParams']});}),_0x164acd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x346ccf,_0x41c292){if(_0x41dc91(_0x346ccf,_0x41c292))return[_0x346ccf,_0x41c292];if(_0x41dc91(_0x41c292,_0x346ccf))return[_0x41c292,_0x346ccf];return null;});const _0x121a57=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x41dc91(_0x17d331,_0x585304){const _0x92aa3b=_0x121a57['findIndex'](({type:_0x171884,subType:_0x1f467d})=>_0x17d331['type']==_0x171884&&_0x17d331['subType']==_0x1f467d),_0x2cd5e7=_0x121a57['findIndex'](({type:_0x39ee83,subType:_0x9980a0})=>_0x585304['type']==_0x39ee83&&_0x585304['subType']==_0x9980a0);if(_0x92aa3b<0x0||_0x2cd5e7<0x0)return!0x1;const _0x2245e7=_0x17d331['getFirstRange'](),_0x3141e7=_0x585304['getFirstRange']();if((0x0==_0x92aa3b||0x1==_0x92aa3b)&&0x2==_0x2cd5e7&&_0x2245e7['isIntersecting'](_0x3141e7))return!0x0;if(0x2==_0x92aa3b&&0x3==_0x2cd5e7){const _0x2c51b1=_0x164acd['_findSuggestions'](_0x2245e7,'insertion')['filter'](({suggestion:_0x5a833e,meta:_0x1476ef})=>_0x1476ef['isOwn']&&'convertInlineImageToBlock'==_0x5a833e['subType']);if(_0x2c51b1['length']>0x1&&_0x3141e7['end']['isEqual'](_0x2245e7['start']))return!0x0;if(0x1==_0x2c51b1['length']&&(_0x2245e7['start']['isEqual'](_0x3141e7['end'])||_0x2245e7['end']['isEqual'](_0x3141e7['start'])))return!0x0;}if(0x3==_0x92aa3b&&0x3==_0x2cd5e7&&_0x2245e7['start']['isBefore'](_0x3141e7['start'])){const _0x2ecc54=_0x2245e7['end']['nodeAfter'],_0x1cbea6=_0x3141e7['start']['nodeBefore'];return _0x2b9feb['isBlockImage'](_0x2ecc54)&&_0x2ecc54===_0x1cbea6;}return!0x1;}_0x2ca763['model']['document']['registerPostFixer'](()=>{let _0x5d0a30=!0x1;const _0x573a6e=Array['from'](_0x2ca763['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c9aa7,data:_0x567c87}of _0x573a6e){const {group:_0x351058,type:_0x17cb9c,subType:_0x581273,id:_0x3addbe}=_0x2695eb(_0x2c9aa7);if('suggestion'==_0x351058&&_0x164acd['hasSuggestion'](_0x3addbe)){if('formatBlock'==_0x17cb9c&&('imageStylePreApply'==_0x581273||'imageStylePostApply'==_0x581273)){const _0xd6a66f=_0x164acd['getSuggestion'](_0x3addbe);if(_0x567c87['newRange']){const _0x5c3756=_0xd6a66f['getFirstRange']()['getContainedElement']();if(_0x2b9feb['isBlockImage'](_0x5c3756))continue;_0x164acd['discardSuggestion'](_0xd6a66f),_0x5d0a30=!0x0;}}if('insertion'==_0x17cb9c&&'imageCaption'==_0x581273&&!_0x567c87['newRange']){const _0x5c27fe=_0x164acd['getSuggestion'](_0x3addbe);_0x5c27fe['next']&&_0x5c27fe['next']['isInContent']&&(_0x164acd['discardSuggestion'](_0x5c27fe['next']),_0x5d0a30=!0x0);}}}return _0x5d0a30;}),this['_registerLegacyDescription'](_0x251f3b);}['_registerLegacyDescription'](_0xe960c8){const _0x15da9b=this['editor'],_0x4cee8b=_0x15da9b['locale'];_0x15da9b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5900fe=>{if('formatBlock'!=_0x5900fe['type']&&'formatInline'!=_0x5900fe['type'])return;const {data:_0x151d1b}=_0x5900fe;if(!_0x151d1b||'imageStyle'!=_0x151d1b['commandName'])return;const _0x310a04=_0x151d1b['commandParams'][0x0]['value'];return _0xcf894c('side'===_0x310a04?At(_0x4cee8b,'FORMAT_SIDE_IMAGE'):_0xe960c8[_0x310a04]||_0x310a04);function _0xcf894c(_0x2e7683){return{'type':'format','content':At(_0x4cee8b,'*Format:*\x20%0',_0x2e7683)};}});}}class oe extends _0x2e7e21{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x381b3f){super(_0x381b3f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x159e04=this['editor'],_0x100dbe=_0x159e04['commands']['get']('importWord'),_0x48f17d=_0x159e04['commands']['get']('trackChanges');_0x100dbe&&(_0x100dbe['on']('execute',(_0x30f289,[,_0x156c79])=>{this['_trackChangesValueDuringImport']=_0x48f17d['value'],_0x156c79['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x100dbe,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x100dbe,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x48f17d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x159e04['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3f96dc,_0x3ca5fa){const {suggestions:_0x5bf435}=_0x3ca5fa,_0xa18109=this['editor']['commands']['get']('trackChanges'),_0x4a84d4=_0xa18109['value'];this['_trackChangesValueDuringImport']!==_0x4a84d4&&(_0xa18109['execute'](),this['_trackChangesExecuted']=!0x0),_0x5bf435&&_0x5bf435['forEach'](({id:_0xc58038,type:_0x5d273d,author:_0x2a2c06,created_at:_0x5d4715})=>{const _0x1382c3={'id':_0xc58038,'type':_0x5d273d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2a2c06,'createdAt':_0x5d4715?new Date(_0x5d4715):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1382c3);});}}class ae extends _0x2e7e21{['afterInit'](){const _0x546c78=this['editor'],_0x4d90f5=_0x546c78['plugins']['get']('TrackChangesEditing');if(_0x546c78['plugins']['has']('IndentEditing')&&(_0x4d90f5['enableCommand']('indent'),_0x4d90f5['enableCommand']('outdent')),_0x546c78['plugins']['has']('IndentBlock')){for(const _0x5ce01b of['indentBlock','outdentBlock'])_0x4d90f5['enableDefaultAttributesIntegration'](_0x5ce01b);if(_0x546c78['plugins']['has']('ListEditing')){for(const _0x37cb8e of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x4d90f5['enableDefaultAttributesIntegration'](_0x37cb8e);}}const _0x5ef418=_0x546c78['locale'];_0x4d90f5['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x5ef418,'FORMAT_INDENT')),_0x4d90f5['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x5ef418,'FORMAT_INDENT')),_0x4d90f5['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x5ef418,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x433804=this['editor'],_0x598f7b=_0x433804['locale'],_0x11148f=_0x433804['plugins']['get']('TrackChangesEditing');_0x11148f['descriptionFactory']['registerDescriptionCallback'](_0x5180fc=>{if('formatBlock'!=_0x5180fc['type'])return;const {data:_0x23d571}=_0x5180fc;if(!_0x23d571)return;if('indentBlock'!=_0x23d571['commandName']&&'outdentBlock'!=_0x23d571['commandName'])return;const _0x397f40=_0x5180fc['getItems']()[0x0],_0x4d9dd5=_0x11148f['descriptionFactory']['getItemLabel'](_0x397f40);return'indentBlock'==_0x23d571['commandName']?{'type':'format','content':At(_0x598f7b,'*Indent:*\x20%0',_0x4d9dd5)}:'outdentBlock'==_0x23d571['commandName']?{'type':'format','content':At(_0x598f7b,'*Outdent:*\x20%0',_0x4d9dd5)}:void 0x0;});}}class ce extends _0x2e7e21{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x2e7e21{['afterInit'](){const _0x1050ef=this['editor'];if(!_0x1050ef['plugins']['has']('LinkEditing'))return;const _0x4b7341=_0x1050ef['plugins']['get']('TrackChangesEditing'),_0x38409d=_0x1050ef['commands']['get']('link');_0x4b7341['enableDefaultAttributesIntegration']('link'),_0x4b7341['enableDefaultAttributesIntegration']('unlink');for(const _0x277283 of _0x38409d['manualDecorators'])_0x4b7341['descriptionFactory']['registerAttributeLabel'](_0x277283['id'],'link\x20('+_0x277283['label']['toLowerCase']()+')');_0x4b7341['descriptionFactory']['registerDescriptionCallback'](_0x39e481=>{if('attribute'!=_0x39e481['type'])return;const {data:_0x22ee97}=_0x39e481;if(!_0x22ee97||'linkHref'!=_0x22ee97['key'])return;const _0x43f1fc=_0x22ee97['newValue'],_0x2086c7=_0x1050ef['locale'];return{'type':'format','content':null==_0x43f1fc?At(_0x2086c7,'*Remove\x20link*'):At(_0x2086c7,'*Set\x20link:*\x20%0','\x22'+_0x43f1fc+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3465b3=this['editor'],_0x6ec954=_0x3465b3['locale'];_0x3465b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12549d=>{if('formatInline'!=_0x12549d['type'])return;const {data:_0x594157}=_0x12549d;if(_0x594157){if('link'==_0x594157['commandName']){const _0x3c6c64=_0x594157['commandParams'][0x0];return{'type':'format','content':At(_0x6ec954,'*Set\x20link:*\x20%0','\x22'+_0x3c6c64+'\x22')};}return'unlink'==_0x594157['commandName']?{'type':'format','content':At(_0x6ec954,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x2e7e21{['afterInit'](){const _0x1a5dd4=this['editor'],_0x5e6b5d=_0x1a5dd4['locale'];if(!_0x1a5dd4['plugins']['has']('LegacyListEditing'))return;const _0x115068=_0x1a5dd4['plugins']['get']('TrackChangesEditing'),_0xb7b03f=_0x1a5dd4['plugins']['has']('LegacyTodoListEditing');function _0x147961(_0x539d8f){return()=>{const _0x4f5f00=_0x1a5dd4['model']['document']['selection'],_0x423db7=_0x1a5dd4['commands']['get'](_0x539d8f);if(_0x423db7['value'])return void _0x1a5dd4['execute']('paragraph',{});const _0x559aaf=_0x539d8f['slice'](0x0,-0x4),_0x2bc230=function(_0x4cee75,_0x46c1ed,_0x1ee072){let _0x5d1020=Array['from'](_0x4cee75)['filter'](_0x54a84c=>function(_0x3d4618,_0x3fb241){return _0x3fb241['checkChild'](_0x3d4618['parent'],'listItem')&&!_0x3fb241['isObject'](_0x3d4618);}(_0x54a84c,_0x1ee072));_0x5d1020=_0x5d1020['filter'](_0x4e0c45=>!_0x4e0c45['is']('element','listItem')||_0x4e0c45['getAttribute']('listType')!=_0x46c1ed);const _0x20f097=new Set();for(const _0x936ceb of _0x5d1020)_0x936ceb['is']('element','listItem')?_0x20f097['add'](he(_0x936ceb)):_0x20f097['add'](_0x936ceb);return Array['from'](_0x20f097);}(_0x4f5f00['getSelectedBlocks'](),_0x559aaf,_0x1a5dd4['model']['schema']);_0x1a5dd4['model']['change'](()=>{for(const _0x89d044 of _0x2bc230)_0x115068['markBlockFormat'](_0x89d044,{'commandName':_0x539d8f,'commandParams':[{'forceValue':!_0x423db7['value']}],'formatGroupId':'blockName'},de(_0x89d044));});};}function _0x4aacf9(_0x20e0fe){return()=>{const _0x241ddc=function(_0x103221){let _0x39d65e=Array['from'](_0x103221);const _0x3fefac=_0x39d65e['findIndex'](_0x2070ca=>'listItem'!=_0x2070ca['name']);return _0x3fefac>-0x1&&(_0x39d65e=_0x39d65e['slice'](0x0,_0x3fefac)),_0x39d65e;}(_0x1a5dd4['model']['document']['selection']['getSelectedBlocks']()),_0x28d1d1=_0x1a5dd4['model']['createRange'](_0x1a5dd4['model']['createPositionAt'](_0x241ddc[0x0],'before'),_0x1a5dd4['model']['createPositionAt'](_0x241ddc[_0x241ddc['length']-0x1],'end'));_0x1a5dd4['model']['change'](()=>{_0x115068['markBlockFormat'](_0x28d1d1,{'commandName':_0x20e0fe,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4fc3c8){const _0x50ca37=new Set();for(const _0x1d2d3d of _0x4fc3c8){let _0x21d2e8=_0x1d2d3d['nextSibling'];for(;_0x21d2e8&&_0x21d2e8['getAttribute']('listIndent')>_0x1d2d3d['getAttribute']('listIndent');)_0x50ca37['add'](_0x21d2e8),_0x21d2e8=_0x21d2e8['nextSibling'];}return Array['from'](_0x50ca37);}(_0x241ddc));});};}_0x115068['enableCommand']('numberedList',_0x147961('numberedList')),_0x115068['enableCommand']('bulletedList',_0x147961('bulletedList')),_0xb7b03f&&_0x115068['enableCommand']('todoList',_0x147961('todoList')),_0x115068['enableCommand']('indentList',_0x4aacf9('indentList')),_0x115068['enableCommand']('outdentList',_0x4aacf9('outdentList')),_0xb7b03f&&_0x115068['enableCommand']('checkTodoList',()=>{const _0x4fdaaf=_0x1a5dd4['commands']['get']('checkTodoList'),_0x4471d6=Array['from'](_0x4fdaaf['_selectedElements']);_0x4471d6['filter'](_0x1c8561=>_0x1c8561['getAttribute']('todoListChecked')!=_0x4fdaaf['value']),_0x1a5dd4['model']['change'](()=>{for(const _0x4125bb of _0x4471d6)_0x115068['markBlockFormat'](_0x4125bb,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4fdaaf['value']}]});});}),_0x115068['descriptionFactory']['registerElementLabel']('listItem',_0x168530=>At(_0x5e6b5d,'ELEMENT_LIST_ITEM',_0x168530)),_0x115068['descriptionFactory']['registerDescriptionCallback'](_0x3f07fd=>{if('formatBlock'!=_0x3f07fd['type']&&'formatInline'!=_0x3f07fd['type'])return;const {data:_0x282090}=_0x3f07fd;if(_0x282090){if('numberedList'==_0x282090['commandName']||'bulletedList'==_0x282090['commandName']||'todoList'==_0x282090['commandName'])switch(_0x282090['commandName']['replace']('List','')){case'bulleted':return _0x475597(At(_0x5e6b5d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x475597(At(_0x5e6b5d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x475597(At(_0x5e6b5d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x282090['commandName'])return{'type':'format','content':At(_0x5e6b5d,'*Indent:*\x20%0',At(_0x5e6b5d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x282090['commandName'])return{'type':'format','content':At(_0x5e6b5d,'*Outdent:*\x20%0',At(_0x5e6b5d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x282090['commandName'])return _0x282090['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5e6b5d,'*Check\x20item*')}:{'type':'format','content':At(_0x5e6b5d,'*Uncheck\x20item*')};}function _0x475597(_0x145931){return{'type':'format','content':At(_0x5e6b5d,'*Change\x20to:*\x20%0',_0x145931)};}});}}function he(_0x167ea2){const _0x36227b=_0x167ea2['getAttribute']('listIndent');if(0x0==_0x36227b)return _0x167ea2;let _0x4f2e97=_0x167ea2;for(;_0x167ea2['previousSibling']&&_0x167ea2['previousSibling']['is']('element','listItem');){const _0x3092d4=_0x167ea2['previousSibling']['getAttribute']('listIndent');if(_0x3092d4==_0x36227b)_0x4f2e97=_0x167ea2['previousSibling'];else{if(_0x3092d4<_0x36227b)break;}_0x167ea2=_0x167ea2['previousSibling'];}return _0x4f2e97;}function de(_0x5a52af){const _0x26b816=[];if(_0x5a52af['is']('element','listItem')&&_0x5a52af['getAttribute']('listIndent')>0x0){let _0x660482=_0x5a52af['nextSibling'];for(;_0x660482&&'listItem'==_0x660482['name']&&_0x660482['getAttribute']('listIndent')==_0x5a52af['getAttribute']('listIndent');)_0x26b816['push'](_0x660482),_0x660482=_0x660482['nextSibling'];}return _0x26b816;}class fe extends _0x2e7e21{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x59232a=this['editor']['config']['get']('list.properties'),_0x51b675=this['editor']['plugins']['get']('TrackChangesEditing');_0x59232a['styles']&&_0x51b675['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x59232a['reversed']&&_0x51b675['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x59232a['startIndex']&&_0x51b675['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x51b675['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1775d2,_0x783c4e={}){const _0x452b75=this['editor']['plugins']['get']('TrackChangesEditing'),_0x591b55=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x452b75['markMultiRangeBlockFormat'](_0x591b55,{'commandName':'listStyle','commandParams':[{'type':_0x783c4e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3b0286,_0x5452c0={}){const _0x283172=this['editor']['plugins']['get']('TrackChangesEditing'),_0x579e3a=this['_getSuggestionBlocks'](_0x192261=>_0x192261['is']('element','listItem')&&'numbered'===_0x192261['getAttribute']('listType'));if(_0x579e3a['length']<0x1)return;const _0x54e3d3=_0x579e3a['map'](_0x4aaca4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4aaca4,'before'),this['editor']['model']['createPositionAt'](_0x4aaca4,0x0)));this['editor']['model']['change'](()=>{_0x283172['markMultiRangeBlockFormat'](_0x54e3d3,{'commandName':'listReversed','commandParams':[{'reversed':_0x5452c0['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x286d3f,_0x4edc73={}){const _0x8f1595=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36201b=this['_getSuggestionBlocks'](_0x12df2a=>_0x12df2a['is']('element','listItem')&&'numbered'===_0x12df2a['getAttribute']('listType'));if(_0x36201b['length']<0x1)return;const _0x6f2d32=_0x36201b['map'](_0x214e1c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x214e1c,'before'),this['editor']['model']['createPositionAt'](_0x214e1c,0x0)));this['editor']['model']['change'](()=>{_0x8f1595['markMultiRangeBlockFormat'](_0x6f2d32,{'commandName':'listStart','commandParams':[{'startIndex':_0x4edc73['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x21f1d3){if('formatBlock'!=_0x21f1d3['type']&&'formatInline'!=_0x21f1d3['type'])return;const _0x3d8a95=this['editor']['locale'],{data:_0x5cb46a}=_0x21f1d3;if(!_0x5cb46a)return;let _0x5602ea,_0x468741;switch(_0x5cb46a['commandName']){case'listStyle':_0x5602ea='*Change\x20to:*\x20%0',_0x468741={'type':'format','content':At(_0x3d8a95,_0x5602ea,At(_0x3d8a95,this['_getTranslationKeyForListStyle'](_0x5cb46a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5602ea=_0x5cb46a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x468741={'type':'format','content':At(_0x3d8a95,_0x5602ea)};break;case'listStart':_0x5602ea='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x468741={'type':'format','content':At(_0x3d8a95,_0x5602ea,_0x5cb46a['commandParams'][0x0]['startIndex'])};}return _0x468741;}['_getSuggestionBlocksForListStyle'](){const _0x1db633=this['editor']['plugins']['get']('LegacyListUtils');let _0x19ea9d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x19ea9d[0x0]?.['is']('element','listItem')&&_0x19ea9d['unshift'](..._0x1db633['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x19ea9d[_0x19ea9d['length']-0x1]?.['is']('element','listItem')&&_0x19ea9d['push'](..._0x1db633['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x19ea9d=[...new Set(_0x19ea9d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x19ea9d=_0x19ea9d['filter'](_0x498d8d=>_0x498d8d['is']('element','listItem'))),_0x19ea9d;}['_getSuggestionBlocks'](_0x7c7cde){const _0xed0114=this['editor']['plugins']['get']('LegacyListUtils');let _0x5a9616=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x7c7cde)['map'](_0x2c7dd3=>{const _0x1f2c05=this['editor']['model']['createPositionAt'](_0x2c7dd3,0x0);return[..._0xed0114['getSiblingNodes'](_0x1f2c05,'backward'),..._0xed0114['getSiblingNodes'](_0x1f2c05,'forward')];})['flat']();return _0x5a9616=[...new Set(_0x5a9616)],_0x5a9616;}['_getTranslationKeyForListStyle'](_0x506045){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x506045)||'default')['toUpperCase']()+'_LIST_'+_0x506045['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x2e7e21{['afterInit'](){const _0x27785e=this['editor'];if(!_0x27785e['plugins']['has']('MediaEmbedEditing'))return;const _0x432bee=_0x27785e['plugins']['get']('TrackChangesEditing'),_0x15fde7=_0x27785e['locale'];_0x432bee['enableCommand']('mediaEmbed'),_0x432bee['descriptionFactory']['registerElementLabel']('media',_0x33dbba=>At(_0x15fde7,'ELEMENT_MEDIA',_0x33dbba));}}class me extends _0x2e7e21{['afterInit'](){const _0x3472e0=this['editor'];_0x3472e0['plugins']['has']('MentionEditing')&&_0x3472e0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x2e7e21{['afterInit'](){const _0x594da0=this['editor'];if(!_0x594da0['plugins']['has']('MergeFieldsEditing'))return;const _0x136cdc=_0x594da0['plugins']['get']('TrackChangesEditing'),_0xf8b6c3=_0x594da0['locale'];_0x136cdc['enableCommand']('insertMergeField'),_0x136cdc['enableCommand']('insertMergeFieldBlock'),_0x136cdc['enableCommand']('insertMergeFieldImage'),_0x136cdc['descriptionFactory']['registerElementLabel']('mergeField',_0x15106c=>At(_0xf8b6c3,'ELEMENT_MERGE_FIELD',_0x15106c)),_0x136cdc['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x18fb9a=>At(_0xf8b6c3,'ELEMENT_MERGE_FIELD',_0x18fb9a)),_0x136cdc['descriptionFactory']['registerDescriptionCallback'](_0x52d38a=>{if('insertion'!=_0x52d38a['type']&&'deletion'!=_0x52d38a['type'])return;const _0x146c49=_0x52d38a['getContainedElement']();if(null==_0x146c49)return;const _0x3f8bc9=_0x594da0['plugins']['get']('MergeFieldsEditing');let _0xeb702b;switch(_0x3f8bc9['getMergeFieldType'](_0x146c49)){case null:return;case'image':{const _0x223139=_0x3f8bc9['unwrapAffixes'](_0x146c49['getAttribute']('src'));_0xeb702b=_0x3f8bc9['getLabel'](_0x223139)||_0x223139;break;}default:{const _0x4f8cba=_0x146c49['getAttribute']('id');_0xeb702b=_0x3f8bc9['getLabel'](_0x4f8cba)||_0x4f8cba;break;}}return'insertion'==_0x52d38a['type']?{'type':'insertion','content':At(_0xf8b6c3,'*Insert:*\x20%0','\x22'+_0xeb702b+'\x22\x20'+At(_0xf8b6c3,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0xf8b6c3,'*Remove:*\x20%0','\x22'+_0xeb702b+'\x22\x20'+At(_0xf8b6c3,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x2e7e21{['afterInit'](){const _0x16d248=this['editor'],_0xe4ffa8=_0x16d248['plugins']['get']('TrackChangesEditing');_0x16d248['plugins']['has']('MultiLevelList')&&(_0xe4ffa8['enableDefaultAttributesIntegration']('multiLevelList'),_0xe4ffa8['descriptionFactory']['registerDescriptionCallback'](_0x2fe167=>this['handleDescriptions'](_0x2fe167)));}['handleDescriptions'](_0x2f1ebe){const _0x35e56f=this['editor']['locale'],{data:_0x20411a}=_0x2f1ebe,_0x174db1={'type':'format','content':''};if(_0x20411a&&'listMarkerStyle'==_0x20411a['key']){if(!_0x20411a['oldValue'])return{'type':'format','content':At(_0x35e56f,'*Set\x20format:*\x20%0',At(_0x35e56f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x20411a['newValue']+')'};if(!_0x20411a['newValue']){let _0x47dfaa=_0x2f1ebe['head'];for(;_0x47dfaa;){if(_0x47dfaa['data']&&'listType'==_0x47dfaa['data']['key']&&_0x47dfaa['data']['newValue'])return _0x174db1;_0x47dfaa=_0x47dfaa['next'];}return{'type':'format','content':At(_0x35e56f,'*Remove\x20format:*\x20%0',At(_0x35e56f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x20411a['oldValue']+')'};}}}}class _e extends _0x2e7e21{['afterInit'](){const _0x3cef51=this['editor'];if(!_0x3cef51['plugins']['has']('PageBreakEditing'))return;_0x3cef51['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xaa37c3=_0x3cef51['plugins']['get']('TrackChangesEditing'),_0x10c9bb=_0x3cef51['locale'];_0xaa37c3['descriptionFactory']['registerElementLabel']('pageBreak',_0x102f45=>At(_0x10c9bb,'ELEMENT_PAGE_BREAK',_0x102f45));}}class pe extends _0x2e7e21{['afterInit'](){const _0x4ec7d8=this['editor'];if(!_0x4ec7d8['plugins']['has']('Paragraph'))return;const _0x7df839=_0x4ec7d8['locale'],_0x2d24aa=_0x4ec7d8['plugins']['get']('TrackChangesEditing');_0x2d24aa['descriptionFactory']['registerElementLabel']('paragraph',_0x4e4665=>At(_0x7df839,'ELEMENT_PARAGRAPH',_0x4e4665)),_0x2d24aa['enableDefaultAttributesIntegration']('paragraph'),_0x2d24aa['enableCommand']('insertParagraph');const _0x2a649b=_0x2d24aa['descriptionFactory'];_0x2a649b['registerDescriptionCallback'](_0xaa65f7=>{if('insertion'!==_0xaa65f7['type'])return;const {start:_0x30b7c9,end:_0x48a07d}=_0xaa65f7['getFirstRange']();if(!_0x30b7c9['isTouching'](_0x48a07d)||!_0x30b7c9['nodeAfter'])return;const _0x5c5b04=_0x4ec7d8['model']['schema'],_0x5b1a3c=_0x30b7c9['nodeAfter'];return _0x5c5b04['isBlock'](_0x5b1a3c)&&!_0x5c5b04['isLimit'](_0x5b1a3c)&&_0x5c5b04['checkChild'](_0x5b1a3c,'$text')?{'type':'insertion','content':At(_0x7df839,'*Insert:*\x20%0',_0x2a649b['getItemLabel'](_0x5b1a3c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e62a8=this['editor'],_0x11b5a8=_0x1e62a8['locale'];_0x1e62a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13a27b=>{if('formatBlock'!=_0x13a27b['type'])return;const {data:_0x17dd35}=_0x13a27b;return _0x17dd35&&'paragraph'==_0x17dd35['commandName']?{'type':'format','content':At(_0x11b5a8,'*Change\x20to:*\x20%0',At(_0x11b5a8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x2e7e21{['afterInit'](){const _0x5bb72f=this['editor'];_0x5bb72f['commands']['get']('replaceSource')&&_0x5bb72f['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x2e7e21{['afterInit'](){const _0x11c707=this['editor'];if(!_0x11c707['plugins']['has']('RemoveFormatEditing'))return;_0x11c707['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c62c1=this['editor'];_0x2c62c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ca8e7=>{if('formatBlock'!=_0x3ca8e7['type']&&'formatInline'!=_0x3ca8e7['type'])return;const {data:_0x4ddb52}=_0x3ca8e7;return _0x4ddb52&&'removeFormat'==_0x4ddb52['commandName']?{'type':'format','content':At(_0x2c62c1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x2e7e21{['afterInit'](){const _0x557153=this['editor'];if(!_0x557153['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2b0c9f=_0x557153['plugins']['get']('TrackChangesEditing');_0x2b0c9f['enableCommand']('goToPreviousRestrictedEditingException'),_0x2b0c9f['enableCommand']('goToNextRestrictedEditingException');const _0x574d38=_0x557153['plugins']['get']('RestrictedEditingModeEditing');_0x574d38['enableCommand']('trackChanges'),_0x574d38['enableCommand']('acceptSuggestion'),_0x574d38['enableCommand']('discardSuggestion'),_0x574d38['enableCommand']('acceptAllSuggestions'),_0x574d38['enableCommand']('discardAllSuggestions'),_0x574d38['enableCommand']('acceptSelectedSuggestions'),_0x574d38['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x2e7e21{['afterInit'](){const _0x41fec5=this['editor'];if(!_0x41fec5['plugins']['has']('ShiftEnter'))return;const _0x5d60b8=_0x41fec5['plugins']['get']('TrackChangesEditing');_0x5d60b8['enableCommand']('shiftEnter'),_0x5d60b8['descriptionFactory']['registerElementLabel']('softBreak',_0x5d37a6=>At(_0x41fec5['locale'],'ELEMENT_LINE_BREAK',_0x5d37a6));}}function ke(_0x244465,_0x3a28b7,_0x5e478f){const _0x154613=[];for(const _0x1712ef of _0x3a28b7['getItems']())_0x1712ef['hasAttribute'](_0x244465)&&_0x154613['push'](_0x5e478f['createRangeOn'](_0x1712ef));return _0x154613;}class Ce extends _0x2e7e21{['afterInit'](){const _0x3ea71b=this['editor'],_0x213d7e=_0x3ea71b['plugins']['get']('TrackChangesEditing');_0x3ea71b['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x213d7e['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x46c0eb=this['editor'],_0x4a1460=_0x46c0eb['model'],_0x1693da=_0x46c0eb['locale'],_0x33ed4b=_0x46c0eb['plugins']['get']('TrackChangesEditing'),_0x3ebc93='restrictedEditingException',_0x1771ed=_0x46c0eb['commands']['get'](_0x3ebc93);_0x33ed4b['enableCommand'](_0x3ebc93,(_0x301f65,_0x426cf7={})=>{const _0x7a3868=_0x4a1460['document']['selection'];if(_0x7a3868['isCollapsed'])return void _0x301f65(_0x426cf7);const _0x199cd5=void 0x0!==_0x426cf7['forceValue']?_0x426cf7['forceValue']:!_0x1771ed['value'];_0x4a1460['change'](()=>{const _0x55ad25=Array['from'](_0x7a3868['getRanges']());for(const _0x5153b3 of _0x55ad25){const _0xe547e9=_0x199cd5?[_0x5153b3]:ke(_0x3ebc93,_0x5153b3,_0x4a1460);for(const _0x3c5513 of _0xe547e9)_0x33ed4b['markInlineFormat'](_0x3c5513,{'commandName':_0x3ebc93,'commandParams':[{'forceValue':_0x199cd5}]});}});}),_0x33ed4b['descriptionFactory']['registerDescriptionCallback'](_0x203695=>{if('formatBlock'!=_0x203695['type']&&'formatInline'!=_0x203695['type'])return;const {data:_0x527192}=_0x203695;return _0x527192&&_0x527192['commandName']==_0x3ebc93?_0x527192['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1693da,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x1693da,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x174e56=this['editor'],_0x68f8e6=_0x174e56['locale'],_0x4f8e2c=_0x174e56['plugins']['get']('TrackChangesEditing'),_0x3b4855='restrictedEditingExceptionBlock',_0x3d5f1b=this['editor']['commands']['get'](_0x3b4855);_0x4f8e2c['enableCommand'](_0x3b4855,(_0x1ae01e,_0x201195={})=>{const _0x23d9f7=this['editor']['model']['document']['selection'],_0x29395b=_0x201195&&void 0x0!==_0x201195['forceValue']?_0x201195['forceValue']:!_0x3d5f1b['value'];let _0x2fa3d7=[];if(_0x29395b){const _0x3ca91d=Array['from'](_0x23d9f7['getSelectedBlocks']())['filter'](_0x564844=>function(_0x20ee0f){return!!_0x20ee0f['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x564844)||function(_0x3d2618,_0x294209){const _0x33699b=_0x294209['createContext'](_0x3d2618['parent']);if(!_0x294209['checkChild'](_0x33699b,'restrictedEditingException'))return!0x1;if(!_0x294209['checkChild'](_0x33699b['push']('restrictedEditingException'),_0x3d2618))return!0x1;return!0x0;}(_0x564844,this['editor']['model']['schema']));_0x2fa3d7=Tt(_0x3ca91d,_0x174e56['model']);}else{const _0x1c7f41=Array['from'](_0x23d9f7['getSelectedBlocks']())['map'](_0x3d9bef=>function(_0x212520){let _0x29d1a1=_0x212520;for(;_0x29d1a1['parent'];){if('restrictedEditingException'==_0x29d1a1['parent']['name'])return _0x29d1a1;_0x29d1a1=_0x29d1a1['parent'];}return null;}(_0x3d9bef))['filter'](_0x46c021=>!!_0x46c021);_0x2fa3d7=Tt(_0x1c7f41,_0x174e56['model']);}_0x174e56['model']['change'](()=>{for(const _0x3ae4e4 of _0x2fa3d7)_0x4f8e2c['markBlockFormat'](_0x3ae4e4,{'commandName':_0x3b4855,'commandParams':[{'forceValue':_0x29395b}]});});}),_0x4f8e2c['descriptionFactory']['registerDescriptionCallback'](_0x4dcab4=>{const {data:_0x8f41d4}=_0x4dcab4;if(_0x8f41d4&&_0x8f41d4['commandName']==_0x3b4855)return _0x8f41d4['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x68f8e6,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x68f8e6,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x2e7e21{['afterInit'](){const _0x3cdbaf=this['editor'];if(!_0x3cdbaf['plugins']['has']('Style')||!_0x3cdbaf['plugins']['has']('DataSchema'))return;const _0x33be20=_0x3cdbaf['plugins']['get']('TrackChangesEditing'),_0x720d10=_0x3cdbaf['locale'],_0x51e3b8=_0x3cdbaf['config']['get']('style')||{},_0x2a244f=_0x3cdbaf['plugins']['get']('GeneralHtmlSupport'),_0x377134=_0x3cdbaf['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3cdbaf['plugins']['get']('DataSchema'),_0x51e3b8['definitions']);_0x33be20['enableDefaultAttributesIntegration']('style');const _0x44715e=new Set();for(const _0x4510f8 of _0x377134['block']){const _0x26929b=_0x2a244f['getGhsAttributeNameForElement'](_0x4510f8['element']);_0x44715e['add'](_0x26929b);}const _0x406d24=new Set();for(const _0xc53d05 of _0x377134['inline']){const _0x32b7d3=_0x2a244f['getGhsAttributeNameForElement'](_0xc53d05['element']);_0x406d24['add'](_0x32b7d3);for(const _0x4e49bb of _0xc53d05['ghsAttributes'])_0x406d24['add'](_0x4e49bb);}for(const _0x25aecc of _0x44715e)_0x33be20['descriptionFactory']['registerAttributeLabel'](_0x25aecc,At(_0x720d10,'FORMAT_STYLE'));for(const _0x38aed3 of _0x406d24)_0x33be20['descriptionFactory']['registerAttributeLabel'](_0x38aed3,At(_0x720d10,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57cb6c=this['editor'],_0x259b8b=_0x57cb6c['locale'];_0x57cb6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d8c6d=>{if('formatBlock'!=_0x4d8c6d['type']&&'formatInline'!=_0x4d8c6d['type'])return;const {data:_0x1c3062}=_0x4d8c6d;return _0x1c3062&&'style'===_0x1c3062['commandName']?_0x1c3062['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x259b8b,'*Set\x20format:*\x20%0',_0x1c3062['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x259b8b,'*Remove\x20format:*\x20%0',_0x1c3062['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x2e7e21{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1b5d9f){super(_0x1b5d9f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xd6f4e3=this['editor'],_0x3e298c=_0xd6f4e3['model']['document']['selection'];if(!_0xd6f4e3['plugins']['has']('TableEditing'))return;const _0x428923=_0xd6f4e3['locale'],_0x2d3e04=_0xd6f4e3['plugins']['get']('TrackChangesEditing'),_0x1a88b8=_0xd6f4e3['plugins']['get']('TableUtils');_0x2d3e04['descriptionFactory']['registerElementLabel']('table',_0x45401a=>At(_0x428923,'ELEMENT_TABLE',_0x45401a)),this['_setupColumnsRowsFixing'](),_0x2d3e04['enableCommand']('insertTable'),_0x2d3e04['enableCommand']('selectTableRow'),_0x2d3e04['enableCommand']('selectTableColumn');for(const _0x4b37f5 of['insertTableRowAbove','insertTableRowBelow']){const _0x425007=_0xd6f4e3['commands']['get'](_0x4b37f5);_0x2d3e04['enableCommand'](_0x4b37f5,_0x5caf7a=>{_0xd6f4e3['model']['change'](_0x98f44=>{_0x5caf7a();const _0x53c682='above'===_0x425007['order'],_0xad4ed0=_0x1a88b8['getSelectionAffectedTableCells'](_0x3e298c),_0xf45b42=_0x1a88b8['getRowIndexes'](_0xad4ed0),_0x22c82e=_0x53c682?_0xf45b42['first']-0x1:_0xf45b42['last']+0x1,_0x3bebd2=_0xad4ed0[0x0]['findAncestor']('table'),_0x2c6259=_0x1a88b8['createTableWalker'](_0x3bebd2,{'startRow':_0x22c82e,'endRow':_0x22c82e}),_0x19a504=Array['from'](_0x2c6259)['map'](_0x295f8d=>_0x98f44['createRangeOn'](_0x295f8d['cell']));_0x2d3e04['markMultiRangeInsertion'](_0x19a504,'tableRow');});});}for(const _0x36e733 of['insertTableColumnLeft','insertTableColumnRight']){const _0x37e2be=_0xd6f4e3['commands']['get'](_0x36e733);_0x2d3e04['enableCommand'](_0x36e733,_0x520943=>{_0xd6f4e3['model']['change'](_0x52b539=>{_0x520943();const _0x98c77b='left'===_0x37e2be['order'],_0x4944d4=_0x1a88b8['getSelectionAffectedTableCells'](_0x3e298c),_0x43eba2=_0x1a88b8['getColumnIndexes'](_0x4944d4),_0x2f3b3c=_0x98c77b?_0x43eba2['first']-0x1:_0x43eba2['last']+0x1,_0x5a4f7a=_0x4944d4[0x0]['findAncestor']('table'),_0x46e076=_0x1a88b8['createTableWalker'](_0x5a4f7a,{'startRow':0x0,'column':_0x2f3b3c,'includeAllSlots':!0x1}),_0x5d0110=Array['from'](_0x46e076)['map'](_0x18af56=>_0x52b539['createRangeOn'](_0x18af56['cell']));_0x2d3e04['markMultiRangeInsertion'](_0x5d0110,'tableColumn');});});}for(const _0x24caf5 of['removeTableRow','removeTableColumn']){const _0x3ac1cb=_0x24caf5['substr'](0xb),_0x59a63f=_0x3ac1cb['toLowerCase'](),_0x2596cb=_0x59a63f['substr'](0x0,0x3)+'span',_0x474c68='table'+_0x3ac1cb,_0x42b0fe='min'+_0x3ac1cb,_0x5bc18d='max'+_0x3ac1cb;_0x2d3e04['enableCommand'](_0x24caf5,()=>{_0xd6f4e3['model']['change'](_0x299a7c=>{const _0xa01d39=_0x1a88b8['getSelectionAffectedTableCells'](_0x3e298c),_0x46914a=_0xa01d39[0x0]['findAncestor']('table');let _0x2981cd;if('removeTableRow'==_0x24caf5){const _0xc69652=_0x1a88b8['getRowIndexes'](_0xa01d39);_0x2981cd={'startRow':_0xc69652['first'],'endRow':_0xc69652['last'],'includeAllSlots':!0x0};}else{const _0x542284=_0x1a88b8['getColumnIndexes'](_0xa01d39);_0x2981cd={'startColumn':_0x542284['first'],'endColumn':_0x542284['last'],'includeAllSlots':!0x0};}const _0x3785ec=_0x1a88b8['createTableWalker'](_0x46914a,_0x2981cd),_0x3129d9=Array['from'](_0x3785ec)['map'](({cell:_0x1782a2})=>_0x1782a2),_0x3eee62=Re(_0x3129d9['filter'](_0x92733b=>_0x92733b['hasAttribute'](_0x2596cb))),_0x59e81c=Re(_0x3129d9['filter'](_0x172828=>!_0x172828['hasAttribute'](_0x2596cb)))['map'](_0x5cced9=>_0x299a7c['createRangeOn'](_0x5cced9)),_0x57ac1c=_0x2d3e04['markMultiRangeDeletion'](_0x59e81c,_0x474c68);if(_0x57ac1c&&('tableRow'==_0x57ac1c['subType']||'tableColumn'==_0x57ac1c['subType'])){const _0x209bd9=this['_getSuggestionCoords'](_0x57ac1c);for(const _0x23caf8 of _0x3eee62){const _0x3e7d4d=_0x299a7c['createRangeOn'](_0x23caf8),_0x54351b=_0x1a88b8['getCellLocation'](_0x23caf8),_0x1a4e1a=_0x23caf8['getAttribute'](_0x2596cb)-0x1,_0x3a6634=_0x209bd9[_0x42b0fe],_0x7e60fc=_0x209bd9[_0x5bc18d];_0x3a6634<=_0x54351b[_0x59a63f]&&_0x54351b[_0x59a63f]+_0x1a4e1a<=_0x7e60fc&&_0x57ac1c['addRange'](_0x3e7d4d);}}});});}function _0x5243c2(_0x1ff7f2){const _0x31e367=Array['from'](_0x3e298c['getRanges']())['map'](_0x5f57f9=>_0x5924fb['fromRange'](_0x5f57f9));_0xd6f4e3['model']['change'](_0x21d960=>{const _0x5bf901=_0x21d960['batch'];_0x1ff7f2=_0x1ff7f2['filter'](_0x3e93c3=>'$graveyard'!=_0x3e93c3['root']['rootName']),_0x21d960['setSelection'](_0x1ff7f2),_0xd6f4e3['commands']['get']('removeTableRow')['refresh'](),_0xd6f4e3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xd6f4e3['model']['enqueueChange'](()=>{_0xd6f4e3['model']['enqueueChange'](_0x5bf901,_0x4f8b1b=>{const _0x22a7d3=_0x31e367['filter'](_0x40aadd=>'$graveyard'!=_0x40aadd['root']['rootName']);_0x22a7d3['length']>0x0&&_0x4f8b1b['setSelection'](_0x22a7d3);for(const _0x49eebc of _0x31e367)_0x49eebc['detach']();});});});}function _0xa75172(_0x3ce992){_0xd6f4e3['model']['change'](_0x1450a8=>{const _0x4084f0=Array['from'](_0x3e298c['getRanges']())['map'](_0x3673f0=>_0x5924fb['fromRange'](_0x3673f0)),_0x10fbf4=[];for(const _0x1f6b2d of _0x3ce992)for(const _0x3eef36 of _0x1f6b2d['getItems']({'shallow':!0x0}))_0x10fbf4['push'](_0x3eef36);for(const _0x2f0b81 of _0x10fbf4)'$graveyard'!=_0x2f0b81['root']['rootName']&&(_0x1450a8['setSelection'](_0x1450a8['createPositionAt'](_0x2f0b81,0x0)),_0xd6f4e3['commands']['get']('removeTableColumn')['refresh'](),_0xd6f4e3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x16faaa=_0x4084f0['filter'](_0x175791=>'$graveyard'!=_0x175791['root']['rootName']);_0x16faaa['length']>0x0&&_0x1450a8['setSelection'](_0x16faaa);for(const _0x2c5aa0 of _0x4084f0)_0x2c5aa0['detach']();});}function _0x1d9ff2(_0x10d92b,_0x14a6fd){return _0x14a6fd['every'](_0x4cdc7a=>_0x10d92b['some'](_0x381d9c=>_0x381d9c['end']['isEqual'](_0x4cdc7a['start'])||_0x4cdc7a['end']['isEqual'](_0x381d9c['start'])));}function _0x58d075(_0x1c941f,_0x59a937){return!_0x1c941f['some'](_0x4d4d17=>_0x59a937['some'](_0x414ba8=>_0x4d4d17['isIntersecting'](_0x414ba8)))&&_0x1c941f['some'](_0x1773af=>_0x59a937['some'](_0x5f290e=>_0x1773af['end']['isTouching'](_0x5f290e['start'])));}_0x2d3e04['descriptionFactory']['registerDescriptionCallback'](_0x4257e6=>{if('insertion'!=_0x4257e6['type']&&'deletion'!=_0x4257e6['type'])return;const _0x90e6e7=_0x4257e6['getContainedElement']();if(null!=_0x90e6e7&&_0x90e6e7['is']('element','table')){if('insertion'==_0x4257e6['type']){const _0x49bfdf=_0x4257e6['getItems']()['filter'](_0x147ba2=>_0x147ba2['is']('$textProxy'))['map'](_0x4037e6=>_0x4037e6['data']);if(_0x49bfdf['length'])return{'type':'insertion','content':At(_0x428923,'*Insert:*\x20%0',At(_0x428923,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x49bfdf['join']('\x20')+'\x22'))};}if('deletion'==_0x4257e6['type']){const _0x49f82e=_0x4257e6['getItems']()['filter'](_0x2a76b0=>_0x2a76b0['is']('$textProxy'))['map'](_0x930236=>_0x930236['data']);if(_0x49f82e['length'])return{'type':'deletion','content':At(_0x428923,'*Remove:*\x20%0',At(_0x428923,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x49f82e['join']('\x20')+'\x22'))};}}}),_0x2d3e04['descriptionFactory']['registerDescriptionCallback'](_0x541216=>{if('tableRow'==_0x541216['subType']){const _0x2f0d7c=_0x541216['getItems']()['filter'](_0x81a8c0=>_0x81a8c0['is']('$textProxy'))['map'](_0x4b47c6=>_0x4b47c6['data']),_0x514c5d=this['_getSuggestionCoords'](_0x541216),_0x30fc5c=_0x514c5d['maxRow']-_0x514c5d['minRow']+0x1;if('insertion'==_0x541216['type'])return _0x2f0d7c['length']?{'type':'insertion','content':At(_0x428923,'*Insert:*\x20%0',At(_0x428923,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x30fc5c,'\x22'+_0x2f0d7c['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x428923,'*Insert:*\x20%0',At(_0x428923,'ELEMENT_TABLE_ROW',_0x30fc5c))};if('deletion'==_0x541216['type'])return _0x2f0d7c['length']?{'type':'deletion','content':At(_0x428923,'*Remove:*\x20%0',At(_0x428923,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x30fc5c,'\x22'+_0x2f0d7c['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x428923,'*Remove:*\x20%0',At(_0x428923,'ELEMENT_TABLE_ROW',_0x30fc5c))};}if('tableColumn'==_0x541216['subType']){const _0x169b03=_0x541216['getItems']()['filter'](_0x4f9eef=>_0x4f9eef['is']('$textProxy'))['map'](_0x362732=>_0x362732['data']),_0x1dc45d=this['_getSuggestionCoords'](_0x541216),_0x436f25=_0x1dc45d['maxColumn']-_0x1dc45d['minColumn']+0x1;if('insertion'==_0x541216['type'])return _0x169b03['length']?{'type':'insertion','content':At(_0x428923,'*Insert:*\x20%0',At(_0x428923,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x436f25,'\x22'+_0x169b03['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x428923,'*Insert:*\x20%0',At(_0x428923,'ELEMENT_TABLE_COLUMN',_0x436f25))};if('deletion'==_0x541216['type'])return _0x169b03['length']?{'type':'deletion','content':At(_0x428923,'*Remove:*\x20%0',At(_0x428923,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x436f25,'\x22'+_0x169b03['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x428923,'*Remove:*\x20%0',At(_0x428923,'ELEMENT_TABLE_COLUMN',_0x436f25))};}}),_0x2d3e04['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5243c2),_0x2d3e04['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5243c2),_0x2d3e04['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xa75172),_0x2d3e04['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xa75172),_0x2d3e04['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1d9ff2),_0x2d3e04['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1d9ff2),_0x2d3e04['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x58d075),_0x2d3e04['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x58d075);}['_acceptFormatSuggestionCallbackFactory'](){const _0x447b63=this['editor'],_0xf4a2e9=_0x447b63['model']['document']['selection'];return(_0x362bac,_0xcb76e7)=>{_0x447b63['model']['change'](_0x249e2d=>{const {commandName:_0x92ef61,commandParams:_0x101067}=_0xcb76e7;let _0x57bfa0=_0x362bac[0x0]['end']['nodeBefore'];_0x101067&&_0x101067[0x0]&&!0x1===_0x101067[0x0]['forceValue']&&(_0x57bfa0=_0x362bac[0x0]['start']['nodeAfter']);const _0x259f31=_0x249e2d['createRangeIn'](_0x57bfa0);if('$graveyard'==_0x259f31['root']['rootName'])return;const _0x26653b=Array['from'](_0xf4a2e9['getRanges']())['map'](_0x12a522=>_0x5924fb['fromRange'](_0x12a522));_0x249e2d['setSelection'](_0x259f31),_0x447b63['commands']['get'](_0x92ef61)['refresh'](),_0x101067['push']({'forceDefaultExecution':!0x0}),_0x447b63['execute'](_0x92ef61,..._0x101067);const _0x47be30=_0x26653b['filter'](_0x4df53d=>'$graveyard'!=_0x4df53d['root']['rootName']);_0x47be30['length']>0x0&&_0x249e2d['setSelection'](_0x47be30);for(const _0x315aef of _0x26653b)_0x315aef['detach']();});};}['_getCoordsForCells'](_0x33e107){const _0x4e20b1=this['editor']['plugins']['get']('TableUtils');let _0x94ee0c=Number['MAX_SAFE_INTEGER'],_0x27424e=Number['MIN_SAFE_INTEGER'],_0x14a6c7=Number['MAX_SAFE_INTEGER'],_0x187367=Number['MIN_SAFE_INTEGER'];for(const _0xaf3921 of _0x33e107){if('$graveyard'==_0xaf3921['root']['rootName'])continue;const {row:_0x1f604d,column:_0xcad88c}=_0x4e20b1['getCellLocation'](_0xaf3921),_0x1635f1=_0xaf3921['hasAttribute']('rowspan')?_0xaf3921['getAttribute']('rowspan')-0x1:0x0,_0x1ecc48=_0xaf3921['hasAttribute']('colspan')?_0xaf3921['getAttribute']('colspan')-0x1:0x0;_0x94ee0c=_0x1f604d<_0x94ee0c?_0x1f604d:_0x94ee0c,_0x27424e=_0x1f604d+_0x1635f1>_0x27424e?_0x1f604d+_0x1635f1:_0x27424e,_0x14a6c7=_0xcad88c<_0x14a6c7?_0xcad88c:_0x14a6c7,_0x187367=_0xcad88c+_0x1ecc48>_0x187367?_0xcad88c+_0x1ecc48:_0x187367;}return{'minRow':_0x94ee0c,'maxRow':_0x27424e,'minColumn':_0x14a6c7,'maxColumn':_0x187367};}['_setupColumnsRowsFixing'](){const _0x4199ff=this['editor'],_0x25087a=_0x4199ff['plugins']['get']('TrackChangesEditing'),_0x4275ea=_0x4199ff['plugins']['get']('TableUtils');_0x4199ff['model']['document']['on']('change:data',()=>{const _0x2494b1=Array['from'](_0x4199ff['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5dc9f6,data:_0xd2c275}of _0x2494b1){const {group:_0x4820cc,id:_0x115981,subType:_0x416254}=_0x2695eb(_0x5dc9f6);if('suggestion'!=_0x4820cc)continue;if(null!=_0xd2c275['oldRange'])continue;const _0x2ebe4c=_0x25087a['getSuggestion'](_0x115981);this['_tablePostFixingSubtypes']['includes'](_0x416254)&&this['_tableSuggestions']['add'](_0x2ebe4c);}},{'priority':'low'});const _0x577501=(_0x5b3e68,_0xe6c171)=>{let _0x167cea=!0x1;const _0x5b3119=_0xe6c171['createRangeOn'](_0x5b3e68),_0x47e699=_0x5b3e68['findAncestor']('table'),_0x29442d=_0x4275ea['getCellLocation'](_0x5b3e68);for(const _0xfe2530 of this['_tableSuggestions']){const _0x439f67=_0xfe2530['subType'],_0x48d359=_0x439f67['startsWith']('tablePaste'),_0xecee54=_0x439f67['substr'](_0x48d359?0xa:0x5),_0x151e83=_0xecee54['toLowerCase'](),_0x4f0e69=_0x151e83['substr'](0x0,0x3)+'span',_0x15b77e='min'+_0xecee54,_0x5c4fe3='max'+_0xecee54;if(!_0xfe2530['isInContent'])continue;if(_0x47e699!=_0xfe2530['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xfe2530['isIntersectingWithRange'](_0x5b3119))continue;const _0x5192d7=_0x5b3e68['hasAttribute'](_0x4f0e69)?_0x5b3e68['getAttribute'](_0x4f0e69)-0x1:0x0,_0xc929da=this['_getSuggestionCoords'](_0xfe2530),_0x23f3f5=_0xc929da[_0x15b77e],_0x371f59=_0xc929da[_0x5c4fe3];_0x23f3f5<=_0x29442d[_0x151e83]&&_0x29442d[_0x151e83]+_0x5192d7<=_0x371f59&&(_0xfe2530['addRange'](_0x5b3119),_0x167cea=!0x0);}return _0x167cea;};_0x4199ff['model']['document']['registerPostFixer'](_0x31890c=>{let _0x3e7aad=!0x1;for(const _0x5a22f7 of _0x4199ff['model']['document']['differ']['getChanges']())if('insert'==_0x5a22f7['type']){if('tableRow'==_0x5a22f7['name']){for(const _0x33ea96 of _0x5a22f7['position']['nodeAfter']['getChildren']())_0x3e7aad=_0x3e7aad||_0x577501(_0x33ea96,_0x31890c);}else'tableCell'==_0x5a22f7['name']&&(_0x3e7aad=_0x3e7aad||_0x577501(_0x5a22f7['position']['nodeAfter'],_0x31890c));}return _0x3e7aad;});}['_getSuggestionCoords'](_0x139ae7){return this['_getCoordsForCells'](_0x139ae7['getRanges']()['map'](_0x184675=>_0x184675['start']['nodeAfter']));}}function Re(_0x1ebfba){return Array['from'](new Set(_0x1ebfba)['values']());}class Se extends _0x2e7e21{static get['requires'](){return[Ne];}['afterInit'](){const _0x4478b6=this['editor'],_0x445473=_0x4478b6['model']['document']['selection'],_0x49c99e=_0x4478b6['locale'];if(!_0x4478b6['plugins']['has']('TableEditing'))return;const _0x336506=_0x4478b6['plugins']['get']('TrackChangesEditing'),_0x3ed6d3=_0x4478b6['plugins']['get']('TableUtils'),_0x1d3b87=_0x4478b6['plugins']['get'](Ne);_0x1d3b87['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x336506['enableCommand']('mergeTableCells',()=>{const _0x2b128f=_0x3ed6d3['getSelectionAffectedTableCells'](_0x4478b6['model']['document']['selection']);_0x4478b6['model']['change'](()=>{_0x336506['markMultiRangeBlockFormat'](_0x2b128f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4478b6['commands']['get']('mergeTableCells')['on']('execute',(_0x2baae5,_0x24a0b2)=>{_0x4478b6['commands']['get']('trackChanges')['value']&&(_0x24a0b2['length']>0x0&&_0x24a0b2[_0x24a0b2['length']-0x1]&&_0x24a0b2[_0x24a0b2['length']-0x1]['forceDefaultExecution']||_0x336506['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2baae5['stop']());},{'priority':'highest'});for(const _0x2500b0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x171726=_0x4478b6['commands']['get'](_0x2500b0);_0x336506['enableCommand'](_0x2500b0,()=>{const _0x9d6a3a=_0x4478b6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x539cfa=>_0x539cfa['is']('element','tableCell')),_0x494d1a=_0x171726['value'];_0x4478b6['model']['change'](()=>{_0x336506['markMultiRangeBlockFormat']([_0x9d6a3a,_0x494d1a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4b5917 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x607519=_0x4478b6['commands']['get'](_0x4b5917);_0x336506['enableCommand'](_0x4b5917,()=>{const _0x3f45ae=_0x3ed6d3['getSelectionAffectedTableCells'](_0x4478b6['model']['document']['selection'])[0x0],_0x57a4ca=_0x3f45ae['findAncestor']('table'),{column:_0x322aaa,row:_0x47b603}=_0x3ed6d3['getCellLocation'](_0x3f45ae);let _0x1869ac=[];if('horizontally'==_0x607519['direction']){const _0x2da30b=_0x3ed6d3['createTableWalker'](_0x57a4ca,{'startRow':_0x47b603,'endRow':_0x47b603,'includeAllSlots':!0x0});_0x1869ac=Array['from'](_0x2da30b)['map'](_0x369268=>_0x369268['cell']);}else{const _0x5b9dac=_0x3ed6d3['createTableWalker'](_0x57a4ca,{'column':_0x322aaa,'includeAllSlots':!0x0});_0x1869ac=Array['from'](_0x5b9dac)['map'](_0x312d24=>_0x312d24['cell']);}_0x4478b6['model']['change'](_0x1a71ab=>{_0x336506['markBlockFormat'](_0x1a71ab['createRangeOn'](_0x3f45ae),{'commandName':_0x4b5917,'commandParams':[]},_0x1869ac,_0x4b5917);});});}_0x336506['descriptionFactory']['registerDescriptionCallback'](_0x2b7073=>{if('formatBlock'!=_0x2b7073['type']&&'formatInline'!=_0x2b7073['type'])return;const {data:_0x217838}=_0x2b7073;return _0x217838&&'mergeTableCells'==_0x217838['commandName']?{'type':'format','content':At(_0x49c99e,'*Merge\x20cells*')}:void 0x0;}),_0x336506['descriptionFactory']['registerDescriptionCallback'](_0x4da612=>{if('formatBlock'!=_0x4da612['type']&&'formatInline'!=_0x4da612['type'])return;const {data:_0x2d3c49}=_0x4da612;return _0x2d3c49?'splitTableCellVertically'==_0x2d3c49['commandName']?{'type':'format','content':At(_0x49c99e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2d3c49['commandName']?{'type':'format','content':At(_0x49c99e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x646f8c=_0x1d3b87['_acceptFormatSuggestionCallbackFactory']();for(const _0x201007 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x336506['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x201007,'accept',_0x646f8c);for(const _0x32f82a of['splitTableCellVertically','splitTableCellHorizontally'])_0x336506['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x32f82a,'accept',_0x646f8c);_0x336506['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5cf6f9=>{_0x4478b6['model']['change'](_0x557f4f=>{const _0x518098=Array['from'](_0x445473['getRanges']())['map'](_0x153297=>_0x5924fb['fromRange'](_0x153297));_0x557f4f['setSelection'](_0x5cf6f9),_0x4478b6['commands']['get']('mergeTableCells')['refresh'](),_0x4478b6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xce8c1c=_0x518098['filter'](_0x283e29=>'$graveyard'!=_0x283e29['root']['rootName']);_0xce8c1c['length']>0x0&&_0x557f4f['setSelection'](_0xce8c1c);for(const _0x3c49b8 of _0x518098)_0x3c49b8['detach']();});});for(const _0x353f16 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x49705a=_0x4478b6['commands']['get'](_0x353f16);_0x49705a['on']('set:isEnabled',(_0x583b34,_0x5c58b8,_0x31313f)=>{if(_0x31313f){const _0x3b0828=_0x4478b6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5afcae=>_0x5afcae['is']('element','tableCell'));this['_areMergableCells'](_0x49705a['value'],_0x3b0828)||(_0x583b34['return']=!0x1,_0x583b34['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x33cb32=this['editor']['commands']['get']('mergeTableCells'),_0x2ff169=this['editor']['plugins']['get']('TableUtils');if(!_0x33cb32['isEnabled'])return!0x1;const _0x10c719=_0x2ff169['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3201ac of _0x10c719)for(const _0x24492a of _0x10c719)if(_0x3201ac!=_0x24492a&&!this['_areMergableCells'](_0x3201ac,_0x24492a))return!0x1;return!0x0;}['_areMergableCells'](_0x59f25f,_0x52d38b){const _0x484003=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5395e5=this['editor']['model']['createRangeOn'](_0x59f25f),_0x4b7007=this['editor']['model']['createRangeOn'](_0x52d38b),_0x2a8661=new Set(),_0x24548b=new Set();for(const _0x109e7a of _0x484003['getSuggestions']())if(('insertion'==_0x109e7a['type']||'deletion'==_0x109e7a['type']||'mergeTableCells'==_0x109e7a['subType'])&&_0x109e7a['isInContent']){for(const _0x2a437b of _0x109e7a['getRanges']())_0x2a437b['containsRange'](_0x5395e5,!0x0)&&_0x2a8661['add'](_0x109e7a['type']+':'+_0x109e7a['author']['id']),_0x2a437b['containsRange'](_0x4b7007,!0x0)&&_0x24548b['add'](_0x109e7a['type']+':'+_0x109e7a['author']['id']);}if(_0x2a8661['size']!=_0x24548b['size'])return!0x1;for(const _0x15bc9e of _0x2a8661)if(!_0x24548b['has'](_0x15bc9e))return!0x1;return!0x0;}}class Me extends _0x2e7e21{static get['requires'](){return[Ne];}['afterInit'](){const _0x3137b4=this['editor'];if(!_0x3137b4['plugins']['has']('TableEditing'))return;const _0x26197a=_0x3137b4['locale'],_0x409db5=_0x3137b4['plugins']['get']('TrackChangesEditing');_0x409db5['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x409db5['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x409db5['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x26197a,'FORMAT_HEADER_ROW')),_0x409db5['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x26197a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1c7936=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4effa8=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x1c7936['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4effa8),_0x1c7936['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4effa8),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x3f52a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x341c5c=this['editor']['plugins']['get']('TableUtils');function _0x26adb6({showActiveMarker:_0x5dccdb=!0x0,setDataAttribute:_0x2c170f=!0x0}={}){return(_0x33a864,_0x212c05,_0x2aa1ed)=>{const {type:_0x574dde,id:_0x46a8c8}=_0x2695eb(_0x212c05['markerName']);if(!_0x3f52a8['hasSuggestion'](_0x46a8c8))return;const _0x5b27e1=_0x3f52a8['getSuggestion'](_0x46a8c8),_0x511e72=_0x5b27e1['data'];if('formatBlock'!=_0x5b27e1['type']||!_0x511e72||'setTableColumnHeader'!=_0x511e72['commandName'])return;if(_0x212c05['item'])return void _0x33a864['stop']();if(!_0x2aa1ed['consumable']['consume'](_0x212c05['markerRange'],_0x33a864['name']))return;const _0x28ab75=_0x212c05['markerRange']['start']['nodeAfter'],_0x56cc7b=_0x212c05['markerRange']['end']['nodeBefore'],_0x544840=_0x28ab75['parent']['parent'],{column:_0x4f4210}=_0x341c5c['getCellLocation'](_0x28ab75),{column:_0x33666e}=_0x341c5c['getCellLocation'](_0x56cc7b);for(let _0x194e06=_0x4f4210;_0x194e06<=_0x33666e;_0x194e06++){const _0x3b3d19=_0x341c5c['createTableWalker'](_0x544840,{'column':_0x194e06,'includeAllSlots':!0x1});for(const _0x10711d of _0x3b3d19){const _0x46a6ee=_0x10711d['cell'],_0x1869cb=_0x2aa1ed['mapper']['toViewElement'](_0x46a6ee);_0x2aa1ed['writer']['addClass']('ck-suggestion-marker-'+_0x574dde,_0x1869cb),_0x2c170f&&_0x2aa1ed['writer']['setAttribute']('data-suggestion',_0x46a8c8,_0x1869cb),_0x2aa1ed['mapper']['bindElementToMarker'](_0x1869cb,_0x212c05['markerName']),_0x5dccdb&&(_0x3f52a8['activeMarkers']['includes'](_0x212c05['markerName'])?_0x2aa1ed['writer']['addClass']('ck-suggestion-marker--active',_0x1869cb):_0x2aa1ed['writer']['removeClass']('ck-suggestion-marker--active',_0x1869cb));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x26adb6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x79c34c,_0x3887a9,_0xaf0955)=>{_0xaf0955['options']['showSuggestionHighlights']&&_0x26adb6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x79c34c,_0x3887a9,_0xaf0955);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2b579b,_0x55a89c,_0x5e2aa3)=>{const {type:_0x3681d9,id:_0x2d3643}=_0x2695eb(_0x55a89c['markerName']);if(!_0x3f52a8['hasSuggestion'](_0x2d3643))return;const _0x1affa6=_0x3f52a8['getSuggestion'](_0x2d3643),_0x21d668=_0x1affa6['data'];if('formatBlock'!=_0x1affa6['type']||!_0x21d668||'setTableColumnHeader'!=_0x21d668['commandName'])return;const _0x2ec6d4=_0x5e2aa3['mapper']['markerNameToElements'](_0x55a89c['markerName']);if(_0x2ec6d4){for(const _0x2fe57c of _0x2ec6d4)_0x5e2aa3['writer']['removeClass']('ck-suggestion-marker-'+_0x3681d9,_0x2fe57c),_0x5e2aa3['writer']['removeClass']('ck-suggestion-marker--active',_0x2fe57c),_0x5e2aa3['writer']['removeAttribute']('data-suggestion',_0x2fe57c),_0x5e2aa3['mapper']['unbindElementFromMarkerName'](_0x2fe57c,_0x55a89c['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x6e833b=this['editor'],_0x912f34=_0x6e833b['locale'];function _0x37b4fd(_0x23ef8d){return{'type':'format','content':At(_0x912f34,'*Format:*\x20%0',_0x23ef8d)};}_0x6e833b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53a807=>{if('formatBlock'!=_0x53a807['type'])return;const {data:_0x5729f8}=_0x53a807;if(_0x5729f8){if('setTableRowHeader'==_0x5729f8['commandName']){const _0x8a3ff2=_0x5729f8['commandParams'][0x0]['forceValue'];return _0x37b4fd(At(_0x912f34,_0x8a3ff2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5729f8['commandName']){const _0x1f27dd=_0x5729f8['commandParams'][0x0]['forceValue'];return _0x37b4fd(At(_0x912f34,_0x1f27dd?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x2e7e21{static get['requires'](){return[Ne];}['afterInit'](){const _0x3d9369=this['editor'];if(!_0x3d9369['plugins']['has']('TableEditing')||!_0x3d9369['config']['get']('table.enableFooters'))return;const _0x6dab4d=_0x3d9369['locale'],_0x43e2de=_0x3d9369['plugins']['get']('TrackChangesEditing');_0x43e2de['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x43e2de['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x6dab4d,'FORMAT_FOOTER_ROW'));}}class we extends _0x2e7e21{['afterInit'](){const _0x5a2c3a=this['editor'],_0x4bad92=_0x5a2c3a['locale'],_0x468983=_0x5a2c3a['plugins']['get']('TrackChangesEditing');function _0x34a0a9(_0x5accce){return{'type':'format','content':''+At(_0x4bad92,'*Set\x20table\x20type:*\x20%0',_0x5accce)};}_0x5a2c3a['plugins']['has']('TableLayout')&&(_0x468983['enableCommand']('insertTableLayout'),_0x468983['enableDefaultAttributesIntegration']('tableType'),_0x468983['descriptionFactory']['registerElementLabel'](_0xd4e104=>_0xd4e104['is']('element','table')&&'layout'===_0xd4e104['getAttribute']('tableType'),_0x55d7e9=>At(_0x4bad92,'ELEMENT_LAYOUT_TABLE',_0x55d7e9)),_0x468983['descriptionFactory']['registerDescriptionCallback'](_0x3fcb34=>{const {data:_0xe32303}=_0x3fcb34;if(_0xe32303&&'tableType'==_0xe32303['key'])switch(_0xe32303['newValue']){case'layout':return _0x34a0a9(At(_0x4bad92,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x34a0a9(At(_0x4bad92,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x39936c=>[_0x39936c,null]));class De extends _0x2e7e21{static get['requires'](){return[Ne];}['afterInit'](){const _0x503489=this['editor'];if(!_0x503489['plugins']['has']('TableClipboard'))return;const _0x542b2a=_0x503489['plugins']['get']('TrackChangesEditing'),_0x3cdbf3=_0x503489['plugins']['get']('TableUtils'),_0x41f409=_0x503489['plugins']['get'](Ne),_0x49a80b=_0x503489['plugins']['get']('TableClipboard'),_0x27f43d=_0x503489['plugins']['get']('TableSelection'),_0x4f14e7=_0x503489['plugins']['get'](ut);_0x41f409['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x503489['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x503489['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2020ba=null,_0x1d327=!0x1;_0x4f14e7['on']('contentInsertion',(_0x3396b7,_0x363eed)=>{_0x1d327='paste'===_0x363eed['method'];}),_0x503489['model']['on']('insertContent',(_0x56575d,_0x4688d1)=>{if(!_0x1d327&&null===_0x27f43d['getSelectedTableCells']())return;const [_0x2fe9d2,_0x2eccc7]=_0x4688d1,_0x445cb1=_0x4688d1[_0x4688d1['length']-0x1];_0x445cb1&&_0x445cb1['forceDefaultExecution']||_0x542b2a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x43bb84,_0x5abf19,_0x3533b1,_0x634386,_0x206342){if(_0x5abf19&&!_0x5abf19['is']('documentSelection'))return!0x1;const _0x2e50fb=_0x206342['getTableIfOnlyTableInContent'](_0x43bb84,_0x3533b1);if(!_0x2e50fb||!xe(_0x2e50fb,void 0x0,_0x634386))return!0x1;const _0x2ab1d7=_0x634386['getSelectionAffectedTableCells'](_0x3533b1['document']['selection']);if(!_0x2ab1d7['length'])return!0x1;const _0xe7046b=_0x2ab1d7[0x0]['findAncestor']('table'),_0x4b5a08=_0x634386['getRowIndexes'](_0x2ab1d7),_0x3a6c04=_0x634386['getColumnIndexes'](_0x2ab1d7),_0x286814={'startRow':_0x4b5a08['first'],'endRow':_0x4b5a08['last'],'startColumn':_0x3a6c04['first'],'endColumn':_0x3a6c04['last']};return 0x1==_0x2ab1d7['length']&&(_0x286814['endRow']+=_0x634386['getRows'](_0x2e50fb)-0x1,_0x286814['endColumn']+=_0x634386['getColumns'](_0x2e50fb)-0x1),xe(_0xe7046b,_0x286814,_0x634386);}(_0x2fe9d2,_0x2eccc7,_0x503489['model'],_0x3cdbf3,_0x49a80b)&&(_0x56575d['stop'](),_0x2020ba={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x503489['model']['change'](()=>{_0x503489['model']['insertContent'](_0x4688d1[0x0],_0x4688d1[0x1],_0x4688d1[0x2],{'forceDefaultExecution':!0x0});const _0x388301=_0x55a5f1(),{rowInsertionRanges:_0x1b405a,columnInsertionRanges:_0xd9fdf6,insertionRanges:_0x22aacc,deletionRanges:_0x530c3b,cells:_0x37b30d}=_0x2020ba;_0x1b405a['length']&&_0x542b2a['markMultiRangeInsertion'](_0x1b405a,'tablePasteRow',{'tablePasteChainId':_0x388301}),_0xd9fdf6['length']&&_0x542b2a['markMultiRangeInsertion'](_0xd9fdf6,'tablePasteColumn',{'tablePasteChainId':_0x388301}),_0x22aacc['length']&&(_0x542b2a['markMultiRangeInsertion'](_0x22aacc,'tablePaste',{'tablePasteChainId':_0x388301,'skipNestingCheck':!0x0}),_0x22aacc['forEach'](_0xd9007e=>_0xd9007e['detach']?.())),_0x530c3b['length']&&(_0x542b2a['markMultiRangeDeletion'](_0x530c3b,'tablePaste',{'tablePasteChainId':_0x388301,'skipNestingCheck':!0x0}),_0x530c3b['forEach'](_0xf0eb6b=>_0xf0eb6b['detach']?.()));const _0x38ada2=_0x542b2a['markMultiRangeBlockFormat'](_0x37b30d['map'](({element:_0x370d4b})=>_0x370d4b),{'formatGroupId':_0x55a5f1()},[],'tablePasteCell',{'tablePasteChainId':_0x388301});if(_0x38ada2){const _0x292705=_0x38ada2['getMarkers'](),_0x106774=[];for(const {element:_0x3e2eda,attributes:_0x563f04}of _0x37b30d){if(!_0x563f04)continue;const _0x519c4f=_0x503489['model']['createRangeOn'](_0x3e2eda),_0x4154ca=_0x292705['find'](_0x21fa79=>_0x21fa79['getRange']()['isEqual'](_0x519c4f));_0x4154ca&&_0x106774['push']([_0x4154ca['name'],_0x563f04]);}_0x106774['length']&&_0x38ada2['setAttribute']('markerAttributes',Object['fromEntries'](_0x106774));}_0x2020ba=null;}));},{'priority':_0x5a22f3['high']+0xa}),_0x4f14e7['on']('contentInsertion',()=>{_0x1d327=!0x1;},{'priority':'lowest'}),_0x503489['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x6bd21b,_0x3ddae6)=>{const [_0x1d5197,_0x1f3072,,_0x108aa9]=_0x3ddae6;if(!_0x2020ba)return;_0x6bd21b['stop']();const _0x471c60=_0x1d5197['cell'],_0x4c9440=_0x1f3072,_0x85198b=ve(_0x471c60),_0x107ce6=ve(_0x4c9440);_0x6bd21b['return']=_0x471c60;let _0x526bb9=null,_0xbfaac9=null;if(_0x107ce6||_0x85198b){if(_0x85198b&&!_0x107ce6){_0x108aa9['remove'](_0x471c60['getChild'](0x0));for(const _0x4a6c14 of Array['from'](_0x4c9440['getChildren']()))_0x108aa9['insert'](_0x4a6c14,_0x471c60,'end');const _0x333783=_0x2020ba['rowInsertionIndexes']['includes'](_0x1d5197['row']),_0x105d54=_0x2020ba['columnInsertionIndexes']['includes'](_0x1d5197['column']);_0x333783||_0x105d54||(_0x526bb9=_0x5924fb['fromRange'](_0x108aa9['createRangeIn'](_0x471c60)));}else _0x107ce6&&!_0x85198b&&(_0xbfaac9=_0x108aa9['createRangeIn'](_0x471c60));}else{const _0x313834=_0x108aa9['createElement']('tableCellSuggestion'),_0x5ad327=_0x108aa9['createElement']('tableCellSuggestion');_0x108aa9['wrap'](_0x108aa9['createRangeIn'](_0x471c60),_0x5ad327),_0x108aa9['insert'](_0x313834,_0x471c60,0x0);for(const _0x43f969 of Array['from'](_0x4c9440['getChildren']()))_0x108aa9['insert'](_0x43f969,_0x313834,'end');_0x526bb9=_0x5924fb['fromRange'](_0x108aa9['createRangeOn'](_0x313834)),_0xbfaac9=_0x5924fb['fromRange'](_0x108aa9['createRangeOn'](_0x5ad327));}const _0x16837e=Array['from'](_0x4c9440['getAttributes']())['filter'](([_0x4900e0])=>Be['includes'](_0x4900e0));_0x2020ba['cells']['push']({'element':_0x471c60,'attributes':_0x16837e['length']?Object['fromEntries'](_0x16837e):null}),_0x526bb9&&_0x2020ba['insertionRanges']['push'](_0x526bb9),_0xbfaac9&&_0x2020ba['deletionRanges']['push'](_0xbfaac9);},{'priority':'high'}),_0x3cdbf3['on']('insertColumns',(_0x82a617,_0x217820)=>{const [_0x31d9be,_0x1e4c1b={}]=_0x217820;if(!_0x2020ba)return;const _0x39ed10=_0x1e4c1b['at']||0x0,_0x9f854=_0x1e4c1b['columns']||0x1;_0x2020ba['columnInsertionIndexes']=new Array(_0x9f854)['fill'](_0x39ed10)['map']((_0x5e086c,_0xdbf008)=>_0x5e086c+_0xdbf008);for(const {cell:_0x26a321}of _0x3cdbf3['createTableWalker'](_0x31d9be,{'startColumn':_0x39ed10,'endColumn':_0x39ed10+_0x9f854-0x1}))_0x2020ba['columnInsertionRanges']['push'](_0x503489['model']['createRangeOn'](_0x26a321));},{'priority':'low'}),_0x3cdbf3['on']('insertRows',(_0x376009,_0x1b33df)=>{const [_0x4de1de,_0x38b8e4={}]=_0x1b33df;if(!_0x2020ba)return;const _0x20fb9b=_0x38b8e4['at']||0x0,_0x49e7f4=_0x38b8e4['rows']||0x1;_0x2020ba['rowInsertionIndexes']=new Array(_0x49e7f4)['fill'](_0x20fb9b)['map']((_0x2dcb1f,_0x1459af)=>_0x2dcb1f+_0x1459af);for(const {cell:_0x16ae67}of _0x3cdbf3['createTableWalker'](_0x4de1de,{'startRow':_0x20fb9b,'endRow':_0x20fb9b+_0x49e7f4-0x1}))_0x2020ba['rowInsertionRanges']['push'](_0x503489['model']['createRangeOn'](_0x16ae67));},{'priority':'low'}),_0x542b2a['descriptionFactory']['registerDescriptionCallback'](_0xfd6086=>{if(_0xfd6086['subType']&&_0xfd6086['subType']['startsWith']('tablePaste'))return _0xfd6086['previous']?{}:{'type':'insertion','content':At(_0x503489['locale'],'*Replace\x20table\x20cells*')};});const _0x4d28b1=()=>!0x1;for(const _0x224c7e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x542b2a['_suggestionFactory']['registerCustomCallback']('insertion',_0x224c7e,'join',_0x4d28b1),_0x542b2a['_suggestionFactory']['registerCustomCallback']('deletion',_0x224c7e,'join',_0x4d28b1),_0x542b2a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x224c7e,'join',_0x4d28b1);_0x542b2a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4d28b1),_0x542b2a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1d5927,_0x3a74a8,_0x1eb0b9)=>{const _0x2da524=_0x1d5927['map'](_0x3cb622=>_0x3cb622['getContainedElement']())['filter'](_0x27b4f8=>_0x27b4f8),_0x4fe470=new Map(_0x2da524['map'](_0x2a108f=>[_0x2a108f,null]));if(_0x2020ba){for(const {element:_0x2bceb0,attributes:_0x16741d}of _0x2020ba['cells'])_0x16741d&&_0x4fe470['set'](_0x2bceb0,_0x16741d);}else{if(_0x1eb0b9&&_0x1eb0b9['markerAttributes'])for(const [_0x3d2d60,_0x4085f0]of Object['entries'](_0x1eb0b9['markerAttributes'])){const _0x3a870f=_0x503489['model']['markers']['get'](_0x3d2d60),_0x5243fb=_0x3a870f?_0x3a870f['getRange']()['getContainedElement']():null;_0x5243fb&&_0x4fe470['set'](_0x5243fb,_0x4085f0);}}_0x503489['model']['change'](_0x43ff6=>{for(const [_0x41552b,_0x5d070c]of _0x4fe470)_0x43ff6['setAttributes']({...Fe,..._0x5d070c},_0x41552b);});});const _0x1146e2=(_0x15d275,_0x36fa3c)=>{_0x542b2a['_suggestionFactory']['registerCustomCallback'](_0x15d275,'tablePaste',_0x36fa3c,(_0x58c63c,_0x273b3f,_0xded30f)=>{_0x503489['model']['change'](_0x48083c=>{const _0x4ddccb=[];for(const _0x539556 of _0x58c63c){const _0x44846b=_0x539556['start']['nodeAfter'];_0x44846b['is']('element','tableCellSuggestion')&&_0x4ddccb['push'](_0x44846b);}_0x542b2a['_suggestionFactory']['getSuggestionCallback'](_0x15d275,null,_0x36fa3c)(_0x58c63c,_0x273b3f,_0xded30f);for(const _0x2dfe8a of _0x4ddccb)'$graveyard'!=_0x2dfe8a['root']['rootName']&&_0x48083c['unwrap'](_0x2dfe8a);});});};_0x1146e2('insertion','accept'),_0x1146e2('insertion','discard'),_0x1146e2('deletion','accept'),_0x1146e2('deletion','discard'),_0x542b2a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4f657b=>{const _0x4ac3b8=_0x4f657b['map'](_0x23585a=>_0x23585a['getContainedElement']()),_0x132671=_0x4ac3b8[0x0]['findAncestor']('table'),{minRow:_0x228247,maxRow:_0x5fed82}=_0x41f409['_getCoordsForCells'](_0x4ac3b8);_0x3cdbf3['removeRows'](_0x132671,{'at':_0x228247,'rows':_0x5fed82-_0x228247+0x1});}),_0x542b2a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x35d75d=>{const _0x26724f=_0x35d75d['map'](_0x2d8881=>_0x2d8881['getContainedElement']()),_0x4d5ca3=_0x26724f[0x0]['findAncestor']('table'),{minColumn:_0x773491,maxColumn:_0x394f6d}=_0x41f409['_getCoordsForCells'](_0x26724f);_0x3cdbf3['removeColumns'](_0x4d5ca3,{'at':_0x773491,'columns':_0x394f6d-_0x773491+0x1});});const _0x1e6a17=(_0x80dc9b,_0x35ed57)=>{if(!_0x35ed57['subType']||!_0x35ed57['subType']['startsWith']('tablePaste'))return;const _0x1aad00=_0x35ed57['attributes']['tablePasteChainId'],_0x9103fe=_0x542b2a['getSuggestions']()['filter'](_0x365f85=>_0x365f85['isInContent']&&_0x365f85['attributes']&&_0x365f85['attributes']['tablePasteChainId']==_0x1aad00);_0x9103fe['length']&&_0x35ed57['getAllAdjacentSuggestions']()['length']!=_0x9103fe['length']&&_0x9103fe['reduce']((_0x47e301,_0x168102)=>(_0x47e301['next']=_0x168102,_0x168102['previous']=_0x47e301,_0x168102));};function _0x638667(_0x17714a,_0x58a440=!0x0){const {id:_0x190e45,authorId:_0x3bed00}=_0x2695eb(_0x17714a['markerName']),_0x18f712=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x43fb0c=_0x542b2a['activeMarkers']['includes'](_0x17714a['markerName']);return _0x43fb0c&&_0x18f712['push']('ck-suggestion-marker--active'),{'classes':_0x18f712,'attributes':{'data-suggestion':_0x190e45,'data-author-id':_0x3bed00},'priority':_0x43fb0c&&_0x58a440?0xbc2:0xbb8};}_0x542b2a['on']('suggestionLoaded',_0x1e6a17,{'priority':'high'}),_0x542b2a['on']('suggestionUnloaded',_0x1e6a17,{'priority':'high'}),_0x503489['model']['document']['registerPostFixer'](()=>{let _0x5a1e38=!0x1;const _0x1cad74=Array['from'](_0x503489['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xdf9813,data:_0x36bb64}of _0x1cad74){const {group:_0x17bbe1,type:_0x59a730,id:_0x42b553}=_0x2695eb(_0xdf9813);if('suggestion'!=_0x17bbe1||'deletion'!=_0x59a730||_0x36bb64['oldRange'])continue;if(!_0x542b2a['hasSuggestion'](_0x42b553))continue;const _0x46052b=_0x542b2a['getSuggestion'](_0x42b553)['getRanges'](),_0x19875d=_0x503489['plugins']['get']('Users')['me'];for(const _0x265569 of _0x542b2a['getSuggestions']()){if(!_0x265569['isInContent']||_0x265569['author']!=_0x19875d)continue;if('formatBlock'!=_0x265569['type']||'tablePasteCell'!=_0x265569['subType'])continue;if(_0x265569['getRanges']()['every'](_0x348e17=>_0x46052b['some'](_0x178bb3=>_0x178bb3['containsRange'](_0x348e17,!0x0)))){for(const _0x15eedd of _0x265569['getAllAdjacentSuggestions']())_0x15eedd['isInContent']&&(_0x15eedd['discard'](),_0x5a1e38=!0x0);}}}return _0x5a1e38;}),_0x503489['model']['document']['registerPostFixer'](_0x51c6f9=>{const _0x4d7fb3=_0x503489['commands']['get']('redo');if(!_0x4d7fb3||!_0x4d7fb3['_createdBatches']['has'](_0x51c6f9['batch']))return!0x1;let _0x27d907=!0x1;const _0x3cf4dd=_0x503489['plugins']['get']('Users')['me'],_0xa0f76=_0x503489['model']['document']['differ']['getChanges'](),_0x33e05b=Array['from'](_0x503489['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x57b13f,data:_0x514a94})=>{const {group:_0x2b8c17,subType:_0x25c5a4,authorId:_0x5afee9}=_0x2695eb(_0x57b13f);return'suggestion'==_0x2b8c17&&'tablePaste'==_0x25c5a4&&_0x5afee9==_0x3cf4dd['id']&&!_0x514a94['oldRange'];});for(const _0x1408cd of _0xa0f76){if('insert'!=_0x1408cd['type']||'tableCellSuggestion'!=_0x1408cd['name']||0x1!=_0x1408cd['length'])continue;const _0x3e7540=_0x51c6f9['createRange'](_0x1408cd['position'],_0x1408cd['position']['getShiftedBy'](0x1));if(!_0x33e05b['find'](({data:_0x98d4a0})=>_0x98d4a0['newRange']['isEqual'](_0x3e7540))){for(const {name:_0x36fb4e,data:_0x3ad6c4}of _0x33e05b)if(_0x3e7540['containsRange'](_0x3ad6c4['newRange'])){_0x51c6f9['updateMarker'](_0x36fb4e,{'range':_0x3e7540}),_0x27d907=!0x0;break;}}}return _0x27d907;}),_0x503489['model']['document']['registerPostFixer'](_0x4324a7=>{let _0xd16471=!0x1;const _0x1019e4=_0x503489['plugins']['get']('Users')['me'],_0x36c0e1=_0x542b2a['getSuggestions']()['filter'](_0x4368e7=>_0x4368e7['isInContent']&&_0x4368e7['author']==_0x1019e4),_0x3d8d54=new Set(),_0x5a137d=new Set();for(const _0x8e6f41 of _0x36c0e1)if('tablePaste'==_0x8e6f41['subType'])for(const _0x522914 of _0x8e6f41['getMarkers']()){const _0x1dcd6b=_0x522914['getRange']()['getContainedElement']();if(_0x1dcd6b){if(_0x1dcd6b['is']('element','tableCellSuggestion')&&ve(_0x1dcd6b)){_0x8e6f41['removeMarker'](_0x522914['name']),_0x3d8d54['add'](_0x1dcd6b),_0xd16471=!0x0;const _0x41d78c=_0x1dcd6b['nextSibling'],_0x26c29b=_0x1dcd6b['previousSibling'],_0x543a90=_0x41d78c&&_0x41d78c['is']('element','tableCellSuggestion'),_0x3a0f20=_0x26c29b&&_0x26c29b['is']('element','tableCellSuggestion');_0x543a90&&!_0x3d8d54['has'](_0x41d78c)&&_0x5a137d['add'](_0x41d78c),_0x3a0f20&&!_0x3d8d54['has'](_0x26c29b)&&_0x5a137d['add'](_0x26c29b);}else _0x1dcd6b['is']('element','paragraph')&&_0x1dcd6b['isEmpty']&&(_0x8e6f41['removeMarker'](_0x522914['name']),_0xd16471=!0x0);}}else{if('tablePasteCell'==_0x8e6f41['subType']){if(!_0x8e6f41['attributes']||!_0x8e6f41['attributes']['tablePasteChainId'])continue;const _0x4f859d=_0x8e6f41['attributes']['markerAttributes'];if(_0x4f859d&&Object['keys'](_0x4f859d)['length'])continue;const _0x55343c=_0x8e6f41['attributes']['tablePasteChainId'];let _0x5ecc38=!0x0,_0x470d54=!0x0;for(const _0x4f2c49 of _0x36c0e1)if(_0x4f2c49['subType']&&_0x4f2c49['subType']['startsWith']('tablePaste')){if(!_0x4f2c49['attributes']['tablePasteChainId']){_0x470d54=!0x1;break;}if(_0x4f2c49['id']!=_0x8e6f41['id']&&_0x4f2c49['attributes']['tablePasteChainId']==_0x55343c){_0x5ecc38=!0x1;break;}}_0x470d54&&_0x5ecc38&&(_0x8e6f41['removeMarkers'](),_0xd16471=!0x0);}}for(const _0x33ddf9 of _0x3d8d54)_0x4324a7['remove'](_0x33ddf9);for(const _0x191abf of _0x5a137d)_0x4324a7['unwrap'](_0x191abf);return _0xd16471;}),_0x503489['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2a7fa8=>_0x638667(_0x2a7fa8),'converterPriority':'high'}),_0x503489['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4a12d7,_0x2f3742)=>_0x2f3742['options']['showSuggestionHighlights']?_0x638667(_0x4a12d7,!0x1):null,'converterPriority':'high'});const _0x330c21=_0x503489['editing']['view'];this['listenTo'](_0x330c21['document'],'clipboardOutput',(_0x596138,_0x507a17)=>{const _0x108d13=[];for(const _0x4d90ce of _0x330c21['createRangeIn'](_0x507a17['content'])['getItems']())_0x4d90ce['is']('element','suggestion-td')&&_0x108d13['push'](_0x4d90ce);_0x330c21['change'](_0x3a2568=>{for(const _0x49d185 of _0x108d13)_0x3a2568['move'](_0x3a2568['createRangeIn'](_0x49d185),_0x3a2568['createPositionBefore'](_0x49d185)),_0x3a2568['remove'](_0x49d185);});});}}function ve(_0x343076){if(_0x343076['isEmpty'])return!0x0;const _0x4e0e45=_0x343076['getChild'](0x0);return _0x4e0e45['is']('element','paragraph')&&_0x4e0e45['isEmpty'];}function xe(_0x48c307,_0x54b2d3={},_0x393b9a){for(const {isAnchor:_0x251671,cellHeight:_0x43fa88,cellWidth:_0x5b8a3a}of _0x393b9a['createTableWalker'](_0x48c307,{'includeAllSlots':!0x0,..._0x54b2d3}))if(!_0x251671||0x1!=_0x43fa88||0x1!=_0x5b8a3a)return!0x1;return!0x0;}class Pe extends _0x2e7e21{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x54460b=this['editor']['plugins']['get']('TrackChangesEditing');_0x54460b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x54460b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x54460b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54460b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x54460b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x54460b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5128c7,_0x2db648){const _0x2fb4ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x138ed3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x488fd2=_0x2db648['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x57d5de=_0x138ed3['getColumnGroupElement'](_0x488fd2);let _0x4ca7f5=_0x57d5de?_0x138ed3['getTableColumnsWidths'](_0x57d5de):null,_0x592c51=_0x488fd2['getAttribute']('tableWidth')||null;const _0x2952b7=_0x2db648['tableWidth']||_0x592c51,_0x5cc81b=_0x2db648['columnWidths']||_0x4ca7f5,_0x28ac60=this['editor']['plugins']['get']('Users')['me'];for(const _0x60e775 of _0x2fb4ac['getSuggestions']()){const _0x1b8c80=_0x60e775['getContainedElement']();if('resizeTable'===_0x60e775['subType']&&_0x1b8c80===_0x488fd2){_0x60e775['author']!==_0x28ac60&&_0x60e775['discard']();const _0x5b4360=_0x60e775['data']['commandParams'];_0x592c51=_0x5b4360[0x0]['tableWidth'],_0x4ca7f5=_0x5b4360[0x0]['columnWidths'];break;}}_0x5128c7({'table':_0x488fd2,'tableWidth':_0x2952b7,'columnWidths':_0x5cc81b}),_0x2fb4ac['markBlockFormat'](_0x488fd2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x592c51,'columnWidths':_0x4ca7f5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5ef447){if('formatBlock'!=_0x5ef447['type']&&'formatInline'!=_0x5ef447['type'])return;const {data:_0x1a8bbb}=_0x5ef447;if(_0x1a8bbb&&'resizeTable'===_0x1a8bbb['formatGroupId']){const _0x8a3632='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x8a3632)};}}}class Ue extends _0x2e7e21{['afterInit'](){const _0x35e68c=this['editor'];_0x35e68c['plugins']['has']('Template')&&_0x35e68c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x2e7e21{['afterInit'](){const _0x27d920=this['editor'];if(!_0x27d920['commands']['get']('insertTableOfContents'))return;_0x27d920['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2cb19f=_0x27d920['plugins']['get']('TrackChangesEditing'),_0x5a260c=_0x27d920['locale'];_0x2cb19f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5b5d00=>At(_0x5a260c,'ELEMENT_TABLE_OF_CONTENTS',_0x5b5d00));}}class He extends _0x2e7e21{['afterInit'](){const _0x44bd30=this['editor'];if(!_0x44bd30['plugins']['has']('Title'))return;_0x44bd30['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x44bd30['locale'],'ELEMENT_TITLE')),_0x44bd30['model']['document']['registerPostFixer'](_0x217a30=>{let _0xe1a3f6=!0x1;const _0x290495=Array['from'](_0x44bd30['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d37ce,data:_0x3ed320}of _0x290495){const {group:_0x414ed8}=_0x2695eb(_0x1d37ce);if('suggestion'!==_0x414ed8||!_0x3ed320['newRange'])continue;const _0x923016=_0x3ed320['newRange'],_0x373d41=_0x923016['end']['nodeBefore'];if(!_0x373d41||!_0x373d41['is']('element','title-content'))continue;if(!_0x923016['start']['isTouching'](_0x923016['end']))continue;const _0x3b59c4=_0x44bd30['model']['schema']['getNearestSelectionRange'](_0x923016['end'],'forward');if(_0x3b59c4&&_0x3b59c4['isCollapsed']){const _0x4c4d91=_0x217a30['createRange'](_0x923016['start'],_0x3b59c4['start']);_0x4c4d91['isEqual'](_0x923016)||(_0x217a30['updateMarker'](_0x1d37ce,{'range':_0x4c4d91}),_0xe1a3f6=!0x0);}_0xe1a3f6||(_0x217a30['removeMarker'](_0x1d37ce),_0xe1a3f6=!0x0);}return _0xe1a3f6;});}}class $e extends _0x2e7e21{['afterInit'](){const _0x59a662=this['editor'],_0x457282=_0x59a662['plugins']['get']('TrackChangesEditing');_0x59a662['plugins']['has']('Uploadcare')&&(_0x457282['enableCommand']('uploadcare'),_0x59a662['plugins']['has']('UploadcareImageEdit')&&(_0x457282['enableCommand']('uploadcareImageEdit'),_0x457282['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x457282['descriptionFactory']['registerDescriptionCallback'](_0x1ddda4=>{if('attribute'!=_0x1ddda4['type'])return;const {data:_0xf05dff}=_0x1ddda4;return _0xf05dff&&'uploadcareImageId'==_0xf05dff['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x2e7e21{['afterInit'](){const _0x260097=this['editor'],_0x571c07=_0x260097['plugins']['get']('TrackChangesEditing');_0x260097['plugins']['has']('UndoEditing')&&(_0x571c07['enableCommand']('undo'),_0x571c07['enableCommand']('redo'));}}class Ve extends _0x2e7e21{static get['requires'](){return[Ne];}['afterInit'](){const _0x1fb446=this['editor'];if(!_0x1fb446['plugins']['has']('TableCaptionEditing'))return;_0x1fb446['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x2e7e21{['tableProperties'];['tableCellProperties'];constructor(_0x22cf93){super(_0x22cf93),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 _0x2ab3a1=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2a514b of this['tableProperties'])_0x2ab3a1['enableCommand'](_0x2a514b,(_0x599f80,_0x5e8f57)=>{const _0x1ddb6f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2a514b,[_0x1ddb6f],this['tableProperties'],'tableProperties',_0x599f80,_0x5e8f57);});_0x2ab3a1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2ab3a1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ab3a1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3a4087,_0x44ba4f)=>this['handleDiscardAction'](this['tableProperties'],_0x3a4087,_0x44ba4f)),_0x2ab3a1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3eb5b6 of this['tableCellProperties'])this['editor']['commands']['get'](_0x3eb5b6)&&_0x2ab3a1['enableCommand'](_0x3eb5b6,(_0xdb31e1,_0x35a83d)=>{const _0x4b961d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3eb5b6,_0x4b961d,this['tableCellProperties'],'tableCellProperties',_0xdb31e1,_0x35a83d);});_0x2ab3a1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2ab3a1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ab3a1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xeb390d,_0x304735)=>this['handleDiscardAction'](this['tableCellProperties'],_0xeb390d,_0x304735)),_0x2ab3a1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x2ab3a1['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x2ab3a1['descriptionFactory']['registerDescriptionCallback'](_0x4cc13c=>this['handleSuggestionDescription'](_0x4cc13c)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xca36eb,_0x2546fe,_0x3d3811,_0x125c4c,_0x3f321b,_0x28b2b7){const _0x347bc3=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x28b2b7['batch'],()=>{for(const _0x3b7817 of _0x2546fe){if(this['_getSuggestion'](_0x3b7817,_0x125c4c))_0x3f321b(_0x28b2b7);else{const _0x379029={};for(const _0x24a6b4 of _0x3d3811){const _0x3c7d14=_0x3b7817['getAttribute'](_0x24a6b4);void 0x0!==_0x3c7d14&&(_0x379029[_0x24a6b4]=_0x3c7d14);}_0x3f321b(_0x28b2b7),_0x347bc3['markBlockFormat'](_0x3b7817,{'commandParams':[_0x379029]},[],_0x125c4c);}}});}['handleDiscardAction'](_0x111f5f,_0x248cc3,_0x5453c5){const _0x2fcd3b=_0x248cc3[0x0]['start']['nodeAfter'],_0x346dbf=_0x5453c5['commandParams'][0x0];this['editor']['model']['change'](_0x14c718=>{for(const _0x5d5bad of _0x111f5f)void 0x0!==_0x346dbf[_0x5d5bad]?_0x14c718['setAttribute'](_0x5d5bad,_0x346dbf[_0x5d5bad],_0x2fcd3b):_0x14c718['removeAttribute'](_0x5d5bad,_0x2fcd3b);});}['handleSuggestionDescription'](_0x1bd144){if(_0x1bd144['data'])switch(_0x1bd144['subType']){case'tableProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4b9685,_0x48910e){const _0x481513=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x501cc7 of _0x481513['getSuggestions']({'skipNotAttached':!0x0})){const _0x5ad106=_0x501cc7['getContainedElement']();if(_0x501cc7['subType']===_0x48910e&&_0x5ad106===_0x4b9685)return _0x501cc7;}return null;}['_registerTablePropertiesAttributes'](){const _0x25fe8b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44fff7=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x14c760 of _0x44fff7){const _0x41ccc1=_0x14c760['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x25fe8b['descriptionFactory']['registerAttributeLabel'](_0x14c760,At(this['editor']['locale'],'FORMAT_'+_0x41ccc1));}}}class ze extends _0x2e7e21{['afterInit'](){const _0xa2b78f=this['editor'];if(!_0xa2b78f['plugins']['has']('LineHeight'))return;const _0x381cc0=_0xa2b78f['plugins']['get']('TrackChangesEditing'),_0x51af7b=_0xa2b78f['locale'];_0x381cc0['enableDefaultAttributesIntegration']('lineHeight'),_0x381cc0['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x51af7b,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x2e7e21{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x2a50ee,_0x5ee798,_0x2e50e2,_0x54c50a,_0x224979,Ct,yt,Nt,Rt,Mt,Ot,Bt,Dt,Ft,vt,Pt,Ut,jt,zt,Kt,Yt,qt,Qt,Jt,te,ee,ne,ie,re,se,oe,ae,ce,ue,fe,Te,le,Gt,ze,$t,ge,me,Ee,_e,pe,Le,Ie,be,Ae,Ce,ye,Ne,Se,Me,Oe,we,Ve,De,Pe,Ge,je,Ue,He,$e,We];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17a5a1){super(_0x17a5a1),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1ce48e,_0x3f5f3f,_0x52541e,_0x1ffec2)=>{this['_model']['change'](()=>{for(const _0x407378 of[..._0x1ffec2,..._0x52541e])this['_model']['markers']['has'](_0x407378)&&_0x17a5a1['editing']['reconvertMarker'](_0x407378);});}),this['descriptionFactory']=new kt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ye(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x17a5a1['plugins']['get'](_0x2a50ee),this['_suggestionsConversion']=_0x17a5a1['plugins']['get'](_0x5ee798),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x17a5a1['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x17a5a1['config']['get']('trackChanges.trackFormatChanges'),_0x17a5a1['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x17a5a1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x17a5a1,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x146b82=this['editor'];_0x146b82['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1c7f13,{writer:_0x3fd546})=>{let _0x118713='suggestion:'+_0x1c7f13['getAttribute']('suggestion-type')+':'+_0x1c7f13['getAttribute']('id');return _0x1c7f13['getAttribute']('marker-count')&&(_0x118713+=':'+_0x1c7f13['getAttribute']('marker-count')),_0x3fd546['createElement']('$marker',{'data-name':_0x118713});}}),_0x146b82['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x146b82['model']['document']['registerPostFixer'](_0x521b31=>{let _0x14af63=!0x1;const _0x1baab0=Array['from'](_0x146b82['model']['document']['differ']['getChangedMarkers']()),_0x15cbed=new Set();for(const {name:_0x13a288,data:_0x107fc3}of _0x1baab0){const {group:_0x147c09,type:_0x34c39f,subType:_0x33b3de,id:_0x3fd25a}=_0x2695eb(_0x13a288);if('suggestion'!==_0x147c09)continue;const _0x24a09c=_0x33b3de?'suggestion:'+_0x34c39f+':'+_0x33b3de+':'+_0x3fd25a:'suggestion:'+_0x34c39f+':'+_0x3fd25a,_0x123959=_0x146b82['model']['markers']['getMarkersGroup'](_0x24a09c),_0x51f460=_0x146b82['model']['markers']['get'](_0x13a288),_0x1ff50f=this['_suggestions']['get'](_0x3fd25a);if(null!=_0x107fc3['newRange']){'formatInline'==_0x34c39f&&(_0x14af63=_0x14af63||Ze(_0x107fc3['newRange'],_0x13a288,_0x521b31,_0x146b82['model']['schema']));const _0x26bd94='attribute'==_0x34c39f&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x33b3de)),_0x48ef89='attribute'==_0x34c39f&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x33b3de));if(_0x107fc3['newRange']['isCollapsed']||'$graveyard'==_0x107fc3['newRange']['root']['rootName']||'formatBlock'==_0x34c39f&&!tn(_0x107fc3['newRange'])||_0x26bd94&&!tn(_0x107fc3['newRange'])||_0x48ef89&&en(_0x107fc3['newRange'])||'deletion'==_0x34c39f&&en(_0x107fc3['newRange'])||_0x51f460&&nn(_0x51f460,_0x123959))_0x521b31['removeMarker'](_0x13a288),_0x14af63=!0x0;else{if(!_0x1ff50f||!_0x1ff50f['isInContent'])continue;if(_0x107fc3['newRange']&&_0x107fc3['oldRange']&&_0x107fc3['newRange']['isEqual'](_0x107fc3['oldRange']))continue;_0x15cbed['add'](_0x1ff50f);}}}return _0x15cbed['size']>0x0&&(_0x14af63=!!this['_joinWithAdjacentSuggestions'](_0x15cbed)||_0x14af63),_0x14af63;}),_0x146b82['model']['document']['registerPostFixer'](_0x26ddde=>{let _0xa22a03=!0x1;for(const _0x1d6b81 of _0x146b82['model']['document']['differ']['getChanges']())if('insert'==_0x1d6b81['type'])for(const _0x1a715f of this['_suggestions']['values']()){if(_0x1a715f['isMultiRange']||!_0x1a715f['isInContent'])continue;const _0x47541b='formatBlock'==_0x1a715f['type'],_0x36efd3=this['_getAttributeKey'](_0x1a715f),_0x362505=_0x36efd3&&this['_suggestionsConversion']['isBlockAttribute'](_0x36efd3);if(!_0x47541b&&!_0x362505)continue;const _0x5d237c=_0x1a715f['getFirstRange']();if(_0x5d237c['start']['parent']!=_0x5d237c['end']['parent']&&!_0x5d237c['end']['isAtEnd']){const _0xcdad6b=_0x146b82['model']['createPositionAt'](_0x5d237c['start']['nodeAfter'],'end'),_0x3ec034=_0x146b82['model']['createRange'](_0x5d237c['start'],_0xcdad6b);_0x26ddde['updateMarker'](_0x1a715f['getFirstMarker'](),{'range':_0x3ec034}),_0xa22a03=!0x0;}}return _0xa22a03;}),_0x146b82['model']['document']['registerPostFixer'](_0x5c69d9=>this['_processAttributeChanges'](_0x5c69d9)),_0x146b82['model']['document']['registerPostFixer'](_0x3d7c1d=>!_0x3d7c1d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3d7c1d)),_0x146b82['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x146b82['model']['document']['on']('change:data',(_0x4c7bc9,_0x570606)=>{if(!_0x570606['isLocal']||_0x570606['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x24063b=_0x146b82['model']['document']['differ']['getChanges']();if(0x0==_0x24063b['length'])return;const _0x52826c=[],_0x2a3348=_0x24063b['filter'](_0x3ac146=>'attribute'==_0x3ac146['type']),_0x47c805=_0x24063b['filter'](_0x25f38a=>'insert'==_0x25f38a['type']&&'$text'!=_0x25f38a['name']);for(const _0x7a7b75 of _0x2a3348)this['_suggestionsConversion']['isRegisteredAttribute'](_0x7a7b75['attributeKey'])&&_0x52826c['push']({'key':_0x7a7b75['attributeKey'],'newValue':_0x7a7b75['attributeNewValue'],'oldValue':_0x7a7b75['attributeOldValue'],'range':sn(_0x7a7b75['range'],_0x146b82['model'])});for(const _0x5136d4 of _0x47c805){if('rename'!=_0x5136d4['action']&&'refresh'!=_0x5136d4['action'])continue;const _0x52eb14=rn(_0x5136d4['position']['nodeAfter'],_0x146b82['model']),_0x29c132=_0x5136d4['before'];'rename'==_0x5136d4['action']&&_0x52826c['push']({'key':Ke,'newValue':_0x5136d4['name'],'oldValue':_0x29c132['name'],'range':_0x52eb14});for(const [_0x6d5a86,_0x75604e]of _0x29c132['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x6d5a86))continue;const _0xca2217=_0x5136d4['attributes']['get'](_0x6d5a86);_0x75604e!==_0xca2217&&_0x52826c['push']({'key':_0x6d5a86,'newValue':_0xca2217,'oldValue':_0x75604e,'range':_0x52eb14});}for(const [_0x1c2084,_0x577547]of _0x5136d4['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x1c2084)&&(_0x29c132['attributes']['has'](_0x1c2084)||_0x52826c['push']({'key':_0x1c2084,'newValue':_0x577547,'oldValue':null,'range':_0x52eb14}));}0x0!=_0x52826c['length']&&_0x146b82['model']['enqueueChange'](_0x570606,_0x312d28=>{const _0x5b1f51=_0x55a5f1();for(const {range:_0x4e7e31,key:_0x31cd86,oldValue:_0xba5d18,newValue:_0x3a1d8d}of _0x52826c)this['markAttributeChange'](_0x4e7e31,_0x31cd86,_0xba5d18,_0x3a1d8d,{'groupId':_0x5b1f51});this['_reduceExistingSuggestions'](_0x312d28,_0x52826c);});},{'priority':'lowest'}),_0x146b82['model']['markers']['on']('update:suggestion',(_0x4a62c4,_0xaf371c,_0xa82c8e)=>{if(null==_0xa82c8e){const {id:_0x2687cc}=_0x2695eb(_0xaf371c['name']),_0x3cfa84=this['_suggestions']['get'](_0x2687cc);_0x3cfa84&&_0x3cfa84['addMarkerName'](_0xaf371c['name']);}}),_0x146b82['model']['document']['on']('change:data',()=>{const _0x8f0803=Array['from'](_0x146b82['model']['document']['differ']['getChangedMarkers']())['filter'](_0x902a93=>'suggestion'===_0x2695eb(_0x902a93['name'])['group']);if(0x0===_0x8f0803['length'])return;_0x8f0803['sort']((_0x158640,_0x3e5902)=>{const _0x5b0d63=_0x158640['data']['oldRange'],_0x28dd55=_0x3e5902['data']['oldRange'];return null===_0x5b0d63&&null===_0x28dd55?0x0:null===_0x5b0d63&&null!==_0x28dd55?-0x1:null!==_0x5b0d63&&null===_0x28dd55?0x1:_0x5b0d63['start']['isBefore'](_0x28dd55['start'])?-0x1:0x1;});const _0x47d445=new Set(),_0x55cf7f=new Set();for(const {name:_0x1dba4b,data:_0x2eaf74}of _0x8f0803){const {id:_0x267c50}=_0x2695eb(_0x1dba4b);if(null===_0x2eaf74['oldRange']){const _0x4dbfd8=this['_handleNewSuggestionMarker'](_0x1dba4b);_0x55cf7f['add'](_0x4dbfd8);}else{const _0x58c380=this['_suggestions']['get'](_0x267c50);null!==_0x2eaf74['newRange']||_0x58c380['isInContent']?(_0x47d445['add'](_0x58c380['head']),_0x55cf7f['add'](_0x58c380)):this['_removeSuggestion'](_0x58c380);}}_0x55cf7f['size']>0x0&&this['_refreshSuggestionsChain'](_0x55cf7f);for(const _0x1a2eca of _0x47d445)this['fire']('suggestionChanged',_0x1a2eca);}),_0x146b82['model']['on']('applyOperation',(_0x4a1ca6,_0x17fba1)=>{const _0x4df48c=_0x17fba1[0x0];if(!this['_suggestions']['size'])return;if(!_0x4df48c['isDocumentOperation'])return;if(_0x4df48c['batch']['isUndo']||!_0x4df48c['batch']['isLocal'])return;let _0x3030eb,_0x4e820e;switch(_0x4df48c['type']){case'insert':_0x3030eb=_0x146b82['model']['createPositionAt'](_0x4df48c['position']),_0x4e820e=_0x3030eb['getShiftedBy'](_0x4df48c['howMany']);break;case'split':_0x3030eb=_0x146b82['model']['createPositionAt'](_0x4df48c['splitPosition']),_0x4e820e=_0x146b82['model']['createPositionAt'](_0x4df48c['moveTargetPosition']);break;case'move':_0x3030eb=_0x146b82['model']['createPositionAt'](_0x4df48c['targetPosition']),_0x4e820e=_0x3030eb['getShiftedBy'](_0x4df48c['howMany']);break;default:return;}const _0x39d475=_0x146b82['model']['createRange'](_0x3030eb,_0x4e820e);_0x146b82['model']['change'](()=>{for(const {suggestion:_0x3903d3,meta:_0x28188d}of this['_findSuggestions'](_0x39d475)){if(_0x3903d3['isMultiRange'])continue;if('formatInline'==_0x3903d3['type'])continue;const _0x479883=this['_getAttributeKey'](_0x3903d3);if(_0x479883&&this['_suggestionsConversion']['isBlockAttribute'](_0x479883)&&'split'!=_0x4df48c['type'])continue;const _0x5331b0=_0x3903d3['data']&&_0x3903d3['data']['multipleBlocks'];('formatBlock'!=_0x3903d3['type']||'split'==_0x4df48c['type']&&!_0x5331b0)&&(_0x28188d['containsRangeInObject']||'insertion'==_0x3903d3['type']&&_0x28188d['isOwn']||_0x3903d3['getFirstRange']()['containsRange'](_0x39d475)&&this['_breakSuggestionMarker'](_0x3903d3,_0x3030eb,_0x4e820e));}});},{'priority':'lowest'}),_0x146b82['model']['on']('deleteContent',(_0x2b44ee,_0xe1311e)=>{const _0x2aaf4b=_0xe1311e[0x0],_0x5e982d=_0xe1311e[0x1];if(_0x5e982d&&_0x5e982d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2aaf4b['isCollapsed'])return;const _0x54911e=_0x146b82['model']['schema'],{start:_0x3c04a2,end:_0x25eed3}=_0x2aaf4b['getFirstRange'](),_0x26dc68=_0x3c04a2['nodeAfter']&&_0x54911e['isLimit'](_0x3c04a2['nodeAfter'])?null:_0x54911e['getNearestSelectionRange'](_0x3c04a2,'forward'),_0x31aeb3=_0x25eed3['nodeBefore']&&_0x54911e['isLimit'](_0x25eed3['nodeBefore'])?null:_0x54911e['getNearestSelectionRange'](_0x25eed3,'backward'),_0x3ddea2=_0x146b82['model']['createRange'](_0x26dc68?_0x26dc68['start']:_0x3c04a2,_0x31aeb3?_0x31aeb3['end']:_0x25eed3);_0x146b82['model']['change'](_0x2464a5=>{this['markDeletion'](_0x3ddea2);const _0x52b407=_0x146b82['model']['schema']['getNearestSelectionRange'](_0x3ddea2['start']);_0x2aaf4b['is']('documentSelection')?_0x2464a5['setSelection'](_0x52b407):_0x2aaf4b['setTo'](_0x52b407);}),_0x2b44ee['stop']();},{'priority':_0x5a22f3['normal']+0xa}),_0x146b82['model']['on']('insertContent',(_0x13cff3,_0x590dff)=>{const _0x28e4e1=_0x590dff[_0x590dff['length']-0x1];_0x28e4e1&&_0x28e4e1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x146b82['model']['change'](()=>{let _0x248a6d=_0x146b82['model']['insertContent'](_0x590dff[0x0],_0x590dff[0x1],_0x590dff[0x2],{'forceDefaultExecution':!0x0});if(!_0x248a6d)return;_0x13cff3['return']=_0x248a6d['clone']();const _0x30372f=_0x248a6d['end']['nodeBefore'],_0x36dced=_0x146b82['model']['schema'];_0x30372f&&_0x36dced['isBlock'](_0x30372f)&&!_0x36dced['isObject'](_0x30372f)&&(_0x248a6d=_0x146b82['model']['createRange'](_0x248a6d['start'],_0x146b82['model']['createPositionAt'](_0x30372f,'end'))),this['markInsertion'](_0x248a6d);}),_0x13cff3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5d12cc=new dt(_0x146b82,this['_suggestions']);_0x146b82['commands']['add']('acceptSuggestion',_0x5d12cc),this['enableCommand']('acceptSuggestion');const _0x231c52=new ft(_0x146b82,this['_suggestions']);_0x146b82['commands']['add']('discardSuggestion',_0x231c52),this['enableCommand']('discardSuggestion'),_0x146b82['commands']['add']('acceptAllSuggestions',new Lt(_0x146b82,_0x5d12cc,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x146b82['commands']['add']('discardAllSuggestions',new Lt(_0x146b82,_0x231c52,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x146b82['commands']['add']('acceptSelectedSuggestions',new It(_0x146b82,_0x5d12cc,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x146b82['commands']['add']('discardSelectedSuggestions',new It(_0x146b82,_0x231c52,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1f0556=_0x146b82['plugins']['get'](_0x2a50ee);this['listenTo'](_0x1f0556,'addComment',(_0x382b19,{threadId:_0x33fdf9})=>{const _0x33dfac=this['_suggestions']['get'](_0x33fdf9);_0x33dfac&&_0x33dfac['commentThread']&&0x1===_0x33dfac['commentThread']['length']&&this['_updateSuggestionData'](_0x33fdf9,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1f0556,'removeComment',(_0x50ec58,{threadId:_0x3ed188})=>{const _0xb8c208=this['_suggestions']['get'](_0x3ed188);_0xb8c208&&_0xb8c208['commentThread']&&!_0xb8c208['commentThread']['length']&&this['_updateSuggestionData'](_0x3ed188,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x58c70f){const _0x53a5c2=_0x4fd10b([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x5abc79=0x3d8d0df,_0x57c966=0x3df5907^_0x5abc79,_0x3a1f70=window[_0x4fd10b([0x44,0x61,0x74,0x65])][_0x4fd10b([0x6e,0x6f,0x77])](),_0x49c5ee=_0x58c70f[_0x4fd10b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x29442c=new window[(_0x4fd10b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5119ad=>{_0x49c5ee[_0x4fd10b([0x6f,0x6e,0x63,0x65])](_0x4fd10b([0x72,0x65,0x61,0x64,0x79]),_0x5119ad);}),_0x3cd778={[_0x4fd10b([0x6b,0x74,0x79])]:_0x4fd10b([0x45,0x43]),[_0x4fd10b([0x75,0x73,0x65])]:_0x4fd10b([0x73,0x69,0x67]),[_0x4fd10b([0x63,0x72,0x76])]:_0x4fd10b([0x50,0x2d,0x32,0x35,0x36]),[_0x4fd10b([0x78])]:_0x4fd10b([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4fd10b([0x79])]:_0x4fd10b([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4fd10b([0x61,0x6c,0x67])]:_0x4fd10b([0x45,0x53,0x32,0x35,0x36])},_0xa140b0=_0x49c5ee[_0x4fd10b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4fd10b([0x67,0x65,0x74])](_0x4fd10b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x54203a(){let _0x5c97d5,_0x2fcf81=null,_0x28be76=null;try{if(_0xa140b0==_0x4fd10b([0x47,0x50,0x4c]))return _0x4fd10b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5c97d5=_0x2b6521(),!_0x5c97d5)return _0x4fd10b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5c97d5[_0x4fd10b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x28be76=_0x28b710(_0x5c97d5[_0x4fd10b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5c97d5[_0x4fd10b([0x6a,0x74,0x69])])),await _0x2beceb()?_0x47f378()?_0x39260c()?_0x4fd10b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2ba22()?(_0x5c97d5[_0x4fd10b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4fd10b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fcf81=_0x52dc08(_0x4fd10b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x12e14d()):_0x4fd10b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4fd10b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4fd10b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4fd10b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x39260c(){const _0x536748=[_0x4fd10b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4fd10b([0x74,0x72,0x69,0x61,0x6c])][_0x4fd10b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c97d5[_0x4fd10b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a1f70/0x3e8:0xe10*_0x57c966;return _0x5c97d5[_0x4fd10b([0x65,0x78,0x70])]<_0x536748;}function _0x47f378(){const _0x244c02=_0x5c97d5[_0x4fd10b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x244c02)return!0x1;if(_0x244c02[_0x4fd10b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fd10b([0x2a])))return!0x0;if(_0x244c02[_0x4fd10b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fd10b([0x54,0x43])))return!0x0;if(_0x244c02[_0x4fd10b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fd10b([0x52,0x54,0x43]))){if(_0xa01442())return!0x0;if(_0x293166()||_0x4e60d1())return!0x0;}return!0x1;}function _0x2ba22(){const _0x59bea2=_0x5c97d5[_0x4fd10b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59bea2||0x0==_0x59bea2[_0x4fd10b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa6be94}=new URL(window[_0x4fd10b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59bea2[_0x4fd10b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa6be94))return!0x0;const _0x119527=_0xa6be94[_0x4fd10b([0x73,0x70,0x6c,0x69,0x74])](_0x4fd10b([0x2e]));return _0x59bea2[_0x4fd10b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5238bb=>_0x5238bb[_0x4fd10b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4fd10b([0x2a])))[_0x4fd10b([0x6d,0x61,0x70])](_0x2d9ca5=>_0x2d9ca5[_0x4fd10b([0x73,0x70,0x6c,0x69,0x74])](_0x4fd10b([0x2e])))[_0x4fd10b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d6811=>_0x3d6811[_0x4fd10b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x119527[_0x4fd10b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4fd10b([0x6d,0x61,0x70])](_0x339dac=>Array(_0x119527[_0x4fd10b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x339dac[_0x4fd10b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4fd10b([0x66,0x69,0x6c,0x6c])](_0x339dac[0x0]===_0x4fd10b([0x2a])?_0x4fd10b([0x2a]):'')[_0x4fd10b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x339dac))[_0x4fd10b([0x73,0x6f,0x6d,0x65])](_0x3ce338=>_0x119527[_0x4fd10b([0x65,0x76,0x65,0x72,0x79])]((_0xb823f8,_0x34bfb1)=>_0x3ce338[_0x34bfb1]===_0xb823f8||_0x3ce338[_0x34bfb1]===_0x4fd10b([0x2a])));}function _0x12e14d(){return _0x2fcf81&&_0x28be76?new window[(_0x4fd10b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d3de5,_0x5118f0)=>{_0x2fcf81[_0x4fd10b([0x74,0x68,0x65,0x6e])](_0x2d3de5,_0x5118f0),_0x28be76[_0x4fd10b([0x74,0x68,0x65,0x6e])](_0xd59837=>{_0xd59837!=_0x4fd10b([0x56,0x61,0x6c,0x69,0x64])&&_0x2d3de5(_0xd59837);},_0x5118f0);}):_0x2fcf81||_0x28be76||_0x4fd10b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28b710(_0x39c08e,_0x53159a){return new window[(_0x4fd10b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x453053=>{if(_0x10b60f())return _0x453053(_0x4fd10b([0x56,0x61,0x6c,0x69,0x64]));_0x5e397d(),_0x49c5ee[_0x4fd10b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4fd10b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f7a05=!0x1;const _0x49e510=_0x55a5f1();function _0x896f9c(_0x110c4b){return!!_0x110c4b&&(typeof _0x110c4b===_0x4fd10b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x110c4b===_0x4fd10b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x110c4b[_0x4fd10b([0x74,0x68,0x65,0x6e])]===_0x4fd10b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x110c4b[_0x4fd10b([0x63,0x61,0x74,0x63,0x68])]===_0x4fd10b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x37b38e(_0x3a448f){_0x239642(_0x3a448f)[_0x4fd10b([0x74,0x68,0x65,0x6e])](_0x277410=>{if(!_0x277410||_0x277410[_0x4fd10b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4fd10b([0x6f,0x6b]))return _0x4fd10b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5abbf2(_0x3adb59(_0x49e510+_0x53159a))!=_0x277410[_0x4fd10b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4fd10b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4fd10b([0x56,0x61,0x6c,0x69,0x64]);})[_0x4fd10b([0x74,0x68,0x65,0x6e])](_0x578408=>(_0x41de92(),_0x578408),()=>{const _0x95c0fa=_0x585d9a();return null==_0x95c0fa?(_0x41de92(),_0x4fd10b([0x56,0x61,0x6c,0x69,0x64])):_0x4fd10b(_0x3a1f70-_0x95c0fa>(0x27d454df^_0x5abc79)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4fd10b([0x74,0x68,0x65,0x6e])](_0x453053)[_0x4fd10b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x453053(_0x4fd10b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x58cc76=0x3ee3e5f^_0x5abc79;function _0x41de92(){const _0x194f99=_0x4fd10b([0x6c,0x6c,0x63,0x74,0x2d])+_0x5abbf2(_0x3adb59(_0x39c08e)),_0x107237=_0x38127d(_0x5abbf2(window[_0x4fd10b([0x4d,0x61,0x74,0x68])][_0x4fd10b([0x63,0x65,0x69,0x6c])](_0x3a1f70/_0x58cc76)));window[_0x4fd10b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4fd10b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x194f99,_0x107237);}function _0x585d9a(){const _0x56165b=_0x4fd10b([0x6c,0x6c,0x63,0x74,0x2d])+_0x5abbf2(_0x3adb59(_0x39c08e)),_0x316026=window[_0x4fd10b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4fd10b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56165b);return _0x316026?window[_0x4fd10b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38127d(_0x316026),0x10)*_0x58cc76:null;}function _0x239642(_0x29d262){return new window[(_0x4fd10b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28372f,_0x408937)=>{_0x29d262[_0x4fd10b([0x74,0x68,0x65,0x6e])](_0x28372f,_0x408937),window[_0x4fd10b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x408937,0x3d9041f^_0x5abc79);});}}_0x49c5ee[_0x4fd10b([0x6f,0x6e])](_0x4fd10b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x300f21,_0x2236c1)=>{if(_0x2236c1[0x0]!=_0x39c08e)return _0x453053(_0x4fd10b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2236c1[0x1]={..._0x2236c1[0x1],[_0x4fd10b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x49e510};},{[_0x4fd10b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4fd10b([0x68,0x69,0x67,0x68])}),_0x49c5ee[_0x4fd10b([0x6f,0x6e])](_0x4fd10b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x144419=>{_0x896f9c(_0x144419[_0x4fd10b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f7a05=!0x0,_0x37b38e(_0x144419[_0x4fd10b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4fd10b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4fd10b([0x6c,0x6f,0x77])}),_0x29442c[_0x4fd10b([0x74,0x68,0x65,0x6e])](()=>{_0x2f7a05||_0x453053(_0x4fd10b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10b60f(){return _0x49c5ee[_0x4fd10b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4fd10b([0x76,0x69,0x65,0x77])][_0x4fd10b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4fd10b([0x61,0x75,0x74,0x6f]);}function _0x5e397d(){_0x49c5ee[_0x4fd10b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4fd10b([0x76,0x69,0x65,0x77])][_0x4fd10b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4fd10b([0x61,0x75,0x74,0x6f]);}}function _0x52dc08(_0x2455ce){const _0x478620=[new window[(_0x4fd10b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e69bc=>setTimeout(_0x2e69bc,0x3d1ee13^_0x5abc79)),_0x29442c[_0x4fd10b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4fd10b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30fb5c=>{let _0x733e89=0x0;_0x49c5ee[_0x4fd10b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4fd10b([0x6f,0x6e])](_0x4fd10b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x356bc4,_0xe16daf)=>{_0xe16daf[0x0][_0x4fd10b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x733e89++,_0x733e89==(0x3d8d537^_0x5abc79)&&(_0x30fb5c(),_0x356bc4[_0x4fd10b([0x6f,0x66,0x66])]());});}))];return window[_0x4fd10b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4fd10b([0x72,0x61,0x63,0x65])](_0x478620)[_0x4fd10b([0x74,0x68,0x65,0x6e])](()=>_0x2455ce);}async function _0x55ce72(){await _0x29442c,_0x49c5ee[_0x4fd10b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4fd10b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x38627d,_0x49c5ee[_0x4fd10b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4fd10b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x38627d,_0x49c5ee[_0x4fd10b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4fd10b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa01442(){return _0x207a72(_0x4fd10b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xfa19a5(_0x4fd10b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4fd10b([0x73,0x74,0x61,0x74,0x65])]==_0x4fd10b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x293166(){return _0x207a72(_0x4fd10b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x4e60d1(){return _0x207a72(_0x4fd10b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x522ba7(_0xeff54d){const _0xaeadc0=_0x4d8a37();_0x49c5ee[_0xaeadc0]=_0x4fd10b([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xeff54d,_0xeff54d!=_0x4fd10b([0x56,0x61,0x6c,0x69,0x64])&&_0x55ce72();}function _0x4d8a37(){const _0x2fdf14=window[_0x4fd10b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4fd10b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4fd10b([0x6e,0x6f,0x77])]())[_0x4fd10b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4fd10b([0x2e]),'');let _0x3bf5ad=_0x4fd10b([0x52]);for(let _0x4935c2=0x0;_0x4935c2<_0x2fdf14[_0x4fd10b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4935c2+=0x2){let _0xf4b450=window[_0x4fd10b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fdf14[_0x4fd10b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4935c2,_0x4935c2+0x2));_0xf4b450>=_0x53a5c2[_0x4fd10b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xf4b450-=_0x53a5c2[_0x4fd10b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3bf5ad+=_0x53a5c2[_0xf4b450];}return _0x3bf5ad;}function _0x2b6521(){const _0x1d8e6a=_0xa140b0[_0x4fd10b([0x73,0x70,0x6c,0x69,0x74])](_0x4fd10b([0x2e]));if(0x3!=_0x1d8e6a[_0x4fd10b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x29b4e1(_0x1d8e6a[0x1]);function _0x29b4e1(_0x48dd43){const _0x1974d6=_0x5cfac8(_0x48dd43);return _0x1974d6&&_0x49c908()?_0x1974d6:null;function _0x49c908(){const _0x24fd82=_0x1974d6[_0x4fd10b([0x6a,0x74,0x69])],_0x59fbf6=window[_0x4fd10b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24fd82[_0x4fd10b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24fd82[_0x4fd10b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e61b3={..._0x1974d6,[_0x4fd10b([0x6a,0x74,0x69])]:_0x24fd82[_0x4fd10b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24fd82[_0x4fd10b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e61b3[_0x4fd10b([0x76,0x63])],_0x3adb59(_0x4e61b3)==_0x59fbf6;}}}async function _0x2beceb(){let _0x101371=!0x0;try{const _0x627393=_0xa140b0[_0x4fd10b([0x73,0x70,0x6c,0x69,0x74])](_0x4fd10b([0x2e])),[_0x50332a,_0x391f67,_0x4f25cd]=_0x627393;return _0xd3b9a2(_0x50332a),await _0x2baba1(_0x50332a,_0x391f67,_0x4f25cd),_0x101371;}catch{return!0x1;}function _0xd3b9a2(_0x446b58){const _0xfa9ebd=_0x5cfac8(_0x446b58);_0xfa9ebd&&_0xfa9ebd[_0x4fd10b([0x61,0x6c,0x67])]==_0x4fd10b([0x45,0x53,0x32,0x35,0x36])||(_0x101371=!0x1);}async function _0x2baba1(_0x19fd70,_0x5dac94,_0x39c31f){const _0x30da81=window[_0x4fd10b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4fd10b([0x66,0x72,0x6f,0x6d])](_0x1c061a(_0x39c31f),_0x48744e=>_0x48744e[_0x4fd10b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e4490=new window[(_0x4fd10b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4fd10b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19fd70+_0x4fd10b([0x2e])+_0x5dac94),_0x2a399a=window[_0x4fd10b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4fd10b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a399a)return;const _0x3b3868=await _0x2a399a[_0x4fd10b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4fd10b([0x6a,0x77,0x6b]),_0x3cd778,{[_0x4fd10b([0x6e,0x61,0x6d,0x65])]:_0x4fd10b([0x45,0x43,0x44,0x53,0x41]),[_0x4fd10b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4fd10b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4fd10b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a399a[_0x4fd10b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4fd10b([0x6e,0x61,0x6d,0x65])]:_0x4fd10b([0x45,0x43,0x44,0x53,0x41]),[_0x4fd10b([0x68,0x61,0x73,0x68])]:{[_0x4fd10b([0x6e,0x61,0x6d,0x65])]:_0x4fd10b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3b3868,_0x30da81,_0x4e4490)||(_0x101371=!0x1);}}function _0x5cfac8(_0xc6d70c){return _0xc6d70c[_0x4fd10b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4fd10b([0x65,0x79]))?JSON[_0x4fd10b([0x70,0x61,0x72,0x73,0x65])](_0x1c061a(_0xc6d70c)):null;}function _0x1c061a(_0xebee2e){return window[_0x4fd10b([0x61,0x74,0x6f,0x62])](_0xebee2e[_0x4fd10b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4fd10b([0x2b]))[_0x4fd10b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4fd10b([0x2f])));}function _0x3adb59(_0x1d1cec){let _0x8769e6=0x1505;function _0x15a3a1(_0x90fa03){for(let _0x4e48e0=0x0;_0x4e48e0<_0x90fa03[_0x4fd10b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e48e0++){const _0x5eb4ec=_0x90fa03[_0x4fd10b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e48e0);_0x8769e6=(_0x8769e6<<0x5)+_0x8769e6+_0x5eb4ec,_0x8769e6&=_0x8769e6;}}function _0x51f00c(_0x5850cf){Array[_0x4fd10b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5850cf)?_0x5850cf[_0x4fd10b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x51f00c):_0x5850cf&&typeof _0x5850cf==_0x4fd10b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4fd10b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5850cf)[_0x4fd10b([0x73,0x6f,0x72,0x74])]()[_0x4fd10b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30a2be,_0x205870])=>{_0x15a3a1(_0x30a2be),_0x51f00c(_0x205870);}):_0x15a3a1(window[_0x4fd10b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5850cf));}return _0x51f00c(_0x1d1cec),_0x8769e6>>>0x0;}function _0x5abbf2(_0x173988){return _0x173988[_0x4fd10b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4fd10b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4fd10b([0x30]));}function _0x38127d(_0x5878f5){return _0x5878f5[_0x4fd10b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4fd10b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4fd10b([0x6a,0x6f,0x69,0x6e])]('');}function _0x207a72(_0x1aa6d1){return _0x49c5ee[_0x4fd10b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4fd10b([0x68,0x61,0x73])](_0x1aa6d1);}function _0xfa19a5(_0x419249){return _0x49c5ee[_0x4fd10b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4fd10b([0x67,0x65,0x74])](_0x419249);}function _0x38627d(){}function _0x4fd10b(_0x5d922c){return _0x5d922c['map'](_0xc7413a=>String['fromCharCode'](_0xc7413a))['join']('');}_0x522ba7(await _0x54203a());}(this);}set['adapter'](_0x2783e3){if(this['_adapter'])throw new _0xc19cc6('track-changes-adapter-already-set',this);this['_adapter']=_0x2783e3;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3c96e4=!0x1,toJSON:_0x3f394a=!0x1}={}){const _0x55f41a=[];for(const _0x550ca2 of this['_suggestions']['values']())_0x3c96e4&&!_0x550ca2['isInContent']||_0x55f41a['push'](_0x550ca2);return _0x3f394a?_0x55f41a['map'](_0x1badad=>_0x1badad['toJSON']()):_0x55f41a;}['getSuggestion'](_0x47edf0){const _0x48a7a8=this['_suggestions']['get'](_0x47edf0);if(!_0x48a7a8)throw new _0xc19cc6('track-changes-suggestion-not-found',this);return _0x48a7a8;}['hasSuggestion'](_0x1511c8){return this['_suggestions']['has'](_0x1511c8);}['addSuggestionData'](_0xf49f61){const {authorId:_0x1b73cd,id:_0x5cabce,originalSuggestionId:_0x4b0922,attributes:_0x5779af}=_0xf49f61,[_0x2c07e5,_0x106a2a]=_0xf49f61['type']['split'](':'),_0x4069cd=this['_suggestions']['get'](_0x5cabce)||this['_createSuggestion'](_0x2c07e5,_0x106a2a,_0x5cabce,_0x1b73cd,_0x5779af,_0x4b0922);if(this['_addThreadToSuggestion'](_0x4069cd),this['_checkSuggestionCorrectness'](_0x4069cd,_0x2c07e5,_0x106a2a||null,_0x1b73cd),_0x4069cd['createdAt']=_0xf49f61['createdAt'],_0x4069cd['_isDataLoaded']=!0x0,_0x5779af&&_0x5779af['@external']){const _0x3ad6c5=_0x5779af['@external'],_0x323916=this['_getExternalAuthor'](_0x3ad6c5['authorName']);_0x4069cd['authoredAt']=_0x3ad6c5['createdAt'],_0x4069cd['author']=_0x323916,_0x4069cd['isExternal']=!0x0;}else _0x4069cd['authoredAt']=_0xf49f61['createdAt'];switch(_0xf49f61['data']&&(_0x4069cd['data']=_0xf49f61['data']),_0xf49f61['attributes']&&(_0x4069cd['attributes']=_0xf49f61['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4069cd['_saved']=!0x0),this['_suggestionState']['get'](_0x4069cd)){case'notReady':this['_suggestionState']['set'](_0x4069cd,'dataReady');break;case'markerReady':_0x4069cd['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4069cd])),this['_refreshSuggestionsChain'](new Set([_0x4069cd])),this['_suggestionState']['set'](_0x4069cd,'ready'),this['fire']('suggestionLoaded',_0x4069cd)):this['_suggestionState']['set'](_0x4069cd,'removed');}return _0x4069cd;}['acceptSuggestion'](_0x8e1fb9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x551f6e of _0x8e1fb9['getAllAdjacentSuggestions']())_0x551f6e['accept']();});});}['discardSuggestion'](_0x47bd49){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2aac82 of _0x47bd49['getAllAdjacentSuggestions']())_0x2aac82['discard']();});});}['enableCommand'](_0x169924,_0x2460f6){const _0x55a8c5=this['editor']['commands']['get'](_0x169924);if(!_0x55a8c5)throw new _0xc19cc6('track-changes-command-not-found',this,{'commandName':_0x169924});if(this['_enabledCommands']['has'](_0x55a8c5))throw new _0xc19cc6('track-changes-enable-command-twice',this,{'commandName':_0x169924});this['_enabledCommands']['add'](_0x55a8c5),_0x2460f6&&_0x55a8c5['on']('execute',(_0x5a55d2,_0x2fb058)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2fb058['length']>0x0&&_0x2fb058[_0x2fb058['length']-0x1]&&_0x2fb058[_0x2fb058['length']-0x1]['forceDefaultExecution']?_0x2fb058['pop']():(_0x5a55d2['return']=_0x2460f6((..._0x347591)=>_0x55a8c5['execute'](..._0x347591,{'forceDefaultExecution':!0x0}),..._0x2fb058),_0x5a55d2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x25d2d0){let _0x519fcf,_0x59174b;const _0x5e5a65=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x519fcf=_0x25d2d0();}catch(_0x2987d1){_0x59174b=_0x2987d1;}return _0x5e5a65||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x59174b&&_0xc19cc6['rethrowUnexpectedError'](_0x59174b,this),_0x519fcf;}['markInsertion'](_0xd542d4,_0x85dbe2=null,_0x1c408f={}){if(_0xd542d4['isCollapsed'])return null;const _0x2b9f07=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1c408f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x375730,meta:_0x5f581d}of this['_findSuggestions'](_0xd542d4,'insertion'))if(_0x5f581d['isOwn']){if(!_0x5f581d['isNextTo']){if(_0x5f581d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x375730,_0x1c408f))continue;return _0x375730;}if(cn(_0x375730,_0x1c408f))return _0x375730;this['_breakSuggestionMarker'](_0x375730,_0xd542d4['start'],_0xd542d4['end']);break;}if(_0x85dbe2==_0x375730['subType']&&cn(_0x375730,_0x1c408f)){const _0xddef2c=_0x375730['getFirstRange']();return _0xddef2c['start']['isEqual'](_0xd542d4['end'])?this['_setSuggestionRange'](_0x375730,this['_model']['createRange'](_0xd542d4['start'],_0xddef2c['end'])):this['_setSuggestionRange'](_0x375730,this['_model']['createRange'](_0xddef2c['start'],_0xd542d4['end'])),_0x375730;}}const _0x2bde13=_0x55a5f1(),_0x11eaab=_0x2b9f07['id'],_0x1af3bc=_0x85dbe2?'insertion:'+_0x85dbe2:'insertion',_0x46da67=this['_setSuggestionData']({'id':_0x2bde13,'type':_0x1af3bc,'createdAt':new Date(),'authorId':_0x11eaab,'attributes':_0x1c408f});return this['_addSuggestionMarker'](_0x1af3bc,_0x2bde13,_0x11eaab,_0xd542d4),_0x46da67;}['markMultiRangeInsertion'](_0x4deea9,_0x3d1c89='multi',_0x23cade={}){const _0x234d67=this['editor']['plugins']['get']('Users')['me'],_0x50a955=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3d1c89,'join');this['_trackingSessionId']&&(_0x23cade['trackingSessionId']=this['_trackingSessionId']);for(const _0x622e56 of this['getSuggestions']())if(_0x622e56['author']['id']==_0x234d67['id']&&'insertion'==_0x622e56['type']&&_0x622e56['subType']==_0x3d1c89&&cn(_0x622e56,_0x23cade)&&(_0x50a955(_0x622e56['getRanges'](),_0x4deea9)||_0x50a955(_0x4deea9,_0x622e56['getRanges']()))){for(const _0x4d0ee1 of _0x4deea9)_0x622e56['addRange'](_0x4d0ee1);return _0x622e56;}for(const {suggestion:_0x59ea81,meta:_0x96511f}of this['_findSuggestions'](_0x4deea9,'insertion')){if(!_0x96511f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x96511f['containsRangeInObject'])continue;if(!cn(_0x59ea81,_0x23cade))continue;let _0x16d247=!0x0;for(const _0x277af7 of _0x59ea81['getRanges']())for(const _0x2dde0a of _0x4deea9)if(!_0x277af7['containsRange'](_0x2dde0a)){_0x16d247=!0x1;break;}if(_0x16d247)return _0x59ea81;}const _0x46d9c4=_0x55a5f1(),_0x463604=_0x234d67['id'],_0x31e157='insertion:'+_0x3d1c89,_0x45e2fd=this['_setSuggestionData']({'id':_0x46d9c4,'type':_0x31e157,'createdAt':new Date(),'authorId':_0x463604,'attributes':_0x23cade});for(const _0x9162ab of _0x4deea9)this['_addSuggestionMarker'](_0x31e157,_0x46d9c4,_0x463604,_0x9162ab,bt['getMultiRangeId']());return _0x45e2fd;}['markInlineFormat'](_0x209911,_0x338b11,_0x1d2dc8=null,_0x38cb4f={}){if(_0x1d2dc8=_0x1d2dc8||Je(_0x338b11),_0x209911['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x38cb4f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x42b3a7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1d2dc8,'accept');return this['forceDefaultExecution'](()=>_0x42b3a7([_0x209911],_0x338b11,_0x38cb4f)),null;}const _0x4441f4=this['editor']['plugins']['get']('Users')['me'],_0x33e2d6=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x772922,meta:_0x5a8b5d}of this['_findSuggestions'](_0x209911,'insertion'))_0x5a8b5d['isOwn']&&!_0x5a8b5d['isInsideObject']&&_0x33e2d6['push'](..._0x772922['getRanges']());}const _0x4e89ac=function(_0x55ca5d,_0x1603f0){const _0x40fa9d=[];for(const _0x756caf of _0x1603f0){const _0x3d10ed=_0x55ca5d['getIntersection'](_0x756caf);_0x3d10ed&&_0x40fa9d['push'](_0x3d10ed);}return _0x40fa9d;}(_0x209911,_0x33e2d6),_0xa34784=function(_0x173d93,_0x3f411d){const _0x5e51a1=[_0x173d93];for(const _0x306891 of _0x3f411d){let _0x483541=0x0;for(;_0x483541<_0x5e51a1['length'];){const _0x32427f=_0x5e51a1[_0x483541]['getDifference'](_0x306891);_0x5e51a1['splice'](_0x483541,0x1,..._0x32427f),_0x483541+=_0x32427f['length'];}}return _0x5e51a1;}(_0x209911,_0x33e2d6);_0x4e89ac['length']&&this['_model']['change'](()=>{for(const _0x3b70e8 of _0x4e89ac){const _0x38dcc2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1d2dc8,'accept');this['forceDefaultExecution'](()=>_0x38dcc2([_0x3b70e8],_0x338b11,_0x38cb4f));}});for(const _0x3c295b of _0xa34784){let _0x1365f6=null,_0xd5d283=_0x3c295b['start'],_0x2d7738=_0x3c295b['end'];for(const {suggestion:_0x3a83a4,meta:_0x5e4c63}of this['_findSuggestions'](_0x3c295b,'formatInline')){if(!_0x5e4c63['isOwn'])continue;if(_0x3a83a4['subType']!=_0x1d2dc8)continue;if(!cn(_0x3a83a4,_0x38cb4f))continue;const _0x3485cd=_0x3a83a4['getFirstRange']();if(_0x3485cd['containsRange'](_0x3c295b,!0x0))return null;_0xd5d283=_0xd5d283['isBefore'](_0x3485cd['start'])?_0xd5d283:_0x3485cd['start'],_0x2d7738=_0x2d7738['isAfter'](_0x3485cd['end'])?_0x2d7738:_0x3485cd['end'],_0x1365f6?_0x3485cd['start']['isBefore'](_0x1365f6['getFirstRange']()['start'])?(_0x1365f6['removeMarkers'](),_0x1365f6=_0x3a83a4):_0x3a83a4['removeMarkers']():_0x1365f6=_0x3a83a4;}const _0x2a50fa=this['_model']['createRange'](_0xd5d283,_0x2d7738);if(_0x1365f6)this['_setSuggestionRange'](_0x1365f6,_0x2a50fa);else{const _0x7299d4=_0x55a5f1(),_0x399b37=_0x4441f4['id'];this['_setSuggestionData']({'id':_0x7299d4,'type':'formatInline:'+_0x1d2dc8,'data':_0x338b11,'createdAt':new Date(),'authorId':_0x399b37,'attributes':_0x38cb4f}),this['_addSuggestionMarker']('formatInline:'+_0x1d2dc8,_0x7299d4,_0x399b37,_0x2a50fa);}}return null;}['markBlockFormat'](_0x5531c7,_0x34d3dd,_0x21faa4=[],_0x480f97=null,_0xc72e82={}){_0x34d3dd['formatGroupId']||(_0x34d3dd['formatGroupId']=_0x34d3dd['commandName']),_0x34d3dd['multipleBlocks']=_0x5531c7['is']('range'),_0x480f97=_0x480f97||Je(_0x34d3dd);const _0x1283ab=_0x21faa4['map'](_0x12361d=>rn(_0x12361d,this['_model'])),_0x489087=_0x5531c7['is']('range')?_0x5531c7:rn(_0x5531c7,this['_model']);if(this['_trackingSessionId']&&(_0xc72e82['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x15164d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x480f97,'accept');return this['forceDefaultExecution'](()=>_0x15164d([_0x489087],_0x34d3dd,_0xc72e82)),null;}_0x1283ab['push'](_0x489087);let _0xef3f44=!0x0;for(const _0x57d6da of _0x1283ab)if(!this['_rangeIsInLocalUserInsertion'](_0x57d6da)){_0xef3f44=!0x1;break;}if(_0xef3f44&&'always'!==this['_trackFormatChanges']){const _0x3ce6ef=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x480f97,'accept');return this['forceDefaultExecution'](()=>_0x3ce6ef([_0x489087],_0x34d3dd,_0xc72e82)),null;}let _0x2f1774=null,_0x127b29=_0x489087['start'],_0x2ba2da=_0x489087['end'];for(const {suggestion:_0x57848f,meta:_0x419527}of this['_findSuggestions'](_0x489087,'formatBlock')){if(!_0x419527['isOwn'])continue;if(_0x419527['isNextTo']||_0x419527['containsRangeInObject']||_0x419527['isInsideObject'])continue;if(_0x57848f['data']['formatGroupId']!=_0x34d3dd['formatGroupId'])continue;if(!cn(_0x57848f,_0xc72e82))continue;const _0x4248ee=_0x57848f['getFirstRange']();if(_0x57848f['subType']==_0x480f97){if(_0x4248ee['containsRange'](_0x489087,!0x0))return null;_0x127b29=_0x127b29['isBefore'](_0x4248ee['start'])?_0x127b29:_0x4248ee['start'],_0x2ba2da=_0x2ba2da['isAfter'](_0x4248ee['end'])?_0x2ba2da:_0x4248ee['end'],_0x2f1774?_0x4248ee['start']['isBefore'](_0x2f1774['getFirstRange']()['start'])?(_0x2f1774['removeMarkers'](),_0x2f1774=_0x57848f):_0x57848f['removeMarkers']():_0x2f1774=_0x57848f;}else{const _0x14a3bf=_0x489087['getIntersection'](_0x4248ee);this['_cutOutSuggestionMarker'](_0x57848f,_0x14a3bf);}}const _0x4eddc9=this['editor']['plugins']['get']('Users')['me'],_0x2ceafb=_0x55a5f1(),_0x299225=_0x4eddc9['id'];if(_0x2f1774)return this['_setSuggestionRange'](_0x2f1774,this['_model']['createRange'](_0x127b29,_0x2ba2da)),_0x2f1774;{const _0x489d8e=this['_setSuggestionData']({'id':_0x2ceafb,'type':'formatBlock:'+_0x480f97,'data':_0x34d3dd,'createdAt':new Date(),'authorId':_0x299225,'attributes':_0xc72e82});return this['_addSuggestionMarker']('formatBlock:'+_0x480f97,_0x2ceafb,_0x299225,this['_model']['createRange'](_0x127b29,_0x2ba2da)),_0x489d8e;}}['markMultiRangeBlockFormat'](_0x598f9a,_0x22a950,_0x85f4e1=[],_0x44dce9=null,_0x11adbe={}){_0x22a950['formatGroupId']||(_0x22a950['formatGroupId']=_0x22a950['commandName']);const _0x4d019e=_0x598f9a[0x0];_0x22a950['multipleBlocks']=_0x4d019e['is']('range'),_0x44dce9=_0x44dce9||Je(_0x22a950);const _0x44a8b6=_0x85f4e1['map'](_0x3f28aa=>rn(_0x3f28aa,this['_model'])),_0xc89093=_0x4d019e['is']('range')?_0x598f9a:_0x598f9a['map'](_0x354f09=>rn(_0x354f09,this['_model']));if(this['_trackingSessionId']&&(_0x11adbe['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5e2939=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44dce9,'accept');return this['forceDefaultExecution'](()=>_0x5e2939(_0xc89093,_0x22a950,_0x11adbe)),null;}_0x44a8b6['push'](..._0xc89093);let _0x55124d=!0x0;for(const _0x4cbe05 of _0x44a8b6)if(!this['_rangeIsInLocalUserInsertion'](_0x4cbe05)){_0x55124d=!0x1;break;}if(_0x55124d&&'always'!==this['_trackFormatChanges']){const _0x496f81=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44dce9,'accept');return this['forceDefaultExecution'](()=>_0x496f81(_0xc89093,_0x22a950,_0x11adbe)),null;}const _0x26955d=this['editor']['plugins']['get']('Users')['me'];for(const _0x3fc54f of this['getSuggestions']()){const _0x17e367=_0x3fc54f['data'];if(_0x3fc54f['author']['id']!=_0x26955d['id'])continue;if('formatBlock'!=_0x3fc54f['type']||_0x17e367['formatGroupId']!=_0x22a950['formatGroupId'])continue;if(!cn(_0x3fc54f,_0x11adbe))continue;const _0x5c792e=_0x3fc54f['subType']==_0x44dce9;for(let _0x4bb4fe=0x0;_0x4bb4fe<_0xc89093['length'];_0x4bb4fe++){const _0x5ce3e4=_0xc89093[_0x4bb4fe];for(const _0x4d8837 of _0x3fc54f['getMarkers']()){const _0x336364=_0x4d8837['getRange']();if(_0x5ce3e4['isEqual'](_0x336364)){_0x5c792e?(_0xc89093['splice'](_0x4bb4fe,0x1),_0x4bb4fe--):_0x3fc54f['removeMarker'](_0x4d8837['name']);break;}}}}if(0x0==_0xc89093['length'])return null;const _0x37f537=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x44dce9,'join');for(const _0x3f0143 of this['getSuggestions']()){const _0x1568ca=_0x3f0143['data'];if(_0x3f0143['author']['id']==_0x26955d['id']&&('formatBlock'==_0x3f0143['type']&&_0x1568ca['formatGroupId']==_0x22a950['formatGroupId']&&_0x3f0143['subType']==_0x44dce9&&cn(_0x3f0143,_0x11adbe)&&(_0x37f537(_0x3f0143['getRanges'](),_0xc89093)||_0x37f537(_0xc89093,_0x3f0143['getRanges']())))){for(const _0x2a693c of _0xc89093)_0x3f0143['addRange'](_0x2a693c);return _0x3f0143;}}const _0x345cd5=_0x55a5f1(),_0x1271e9=_0x26955d['id'],_0x1a49c0='formatBlock:'+_0x44dce9,_0x5e0e03=this['_setSuggestionData']({'id':_0x345cd5,'type':_0x1a49c0,'data':_0x22a950,'createdAt':new Date(),'authorId':_0x1271e9,'attributes':_0x11adbe});for(const _0x261e9d of _0xc89093)this['_addSuggestionMarker'](_0x1a49c0,_0x345cd5,_0x1271e9,_0x261e9d,bt['getMultiRangeId']());return _0x5e0e03;}['markDeletion'](_0x1012c9,_0x1bd514=null,_0x257f03={}){if(_0x1012c9['isCollapsed'])return null;const _0x2454e3=this['editor']['plugins']['get']('Users')['me'],_0x3ce1a4=new _0x5924fb(_0x1012c9['start'],_0x1012c9['end']);this['_trackingSessionId']&&(_0x257f03['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x324bf5,meta:_0xfc227a}of this['_findSuggestions'](_0x3ce1a4,'insertion'))if(_0xfc227a['isOwn']&&!_0xfc227a['isNextTo']){if(_0x324bf5['isMultiRange']){const _0x227eea=_0x324bf5['getRanges']()['filter'](_0x16e5c0=>'$graveyard'!=_0x16e5c0['root']['rootName']);_0x227eea['every'](_0xe469ac=>_0x3ce1a4['containsRange'](_0xe469ac,!0x0))&&_0x324bf5['discard']();if(_0x227eea['some'](_0x3d8e0a=>_0x3d8e0a['containsRange'](_0x3ce1a4,!0x0))){const _0x529f3c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1bd514,'accept');return this['forceDefaultExecution'](()=>_0x529f3c([_0x3ce1a4],null,_0x257f03)),null;}}else{const _0x2c1b3b=_0x3ce1a4['getIntersection'](_0x324bf5['getFirstRange']());null!==_0x2c1b3b&&_0x324bf5['_onDiscard']([_0x2c1b3b],null,_0x257f03);}}if(_0x3ce1a4['detach'](),_0x3ce1a4['isCollapsed']||'$graveyard'==_0x3ce1a4['root']['rootName'])return null;let _0x455edf=null,_0x17ab8a=_0x3ce1a4['start'],_0x30dc38=_0x3ce1a4['end'];const _0x4e02b0=this['_findSuggestions'](_0x3ce1a4,'deletion');for(const {suggestion:_0x334989,meta:_0x165466}of _0x4e02b0){const _0x4408fd=this['_model']['createRange'](_0x17ab8a,_0x30dc38);if(_0x165466['isOwn']&&(this['_mergeNestedSuggestions']||!_0x165466['containsRangeInObject']&&!_0x165466['isInsideObject'])){if(_0x334989['isMultiRange']){if(!cn(_0x334989,_0x257f03))continue;let _0x5d25a8=!0x0;for(const _0x196aea of _0x334989['getRanges']()){if(_0x196aea['containsRange'](_0x4408fd,!0x0))return _0x334989;_0x4408fd['containsRange'](_0x196aea)||(_0x5d25a8=!0x1);}_0x5d25a8&&_0x334989['discard']();}else{const _0x5d361b=_0x334989['getFirstRange']();if(_0x5d361b['containsRange'](_0x4408fd,!0x0))return _0x334989;if(!cn(_0x334989,_0x257f03)){_0x4408fd['containsRange'](_0x5d361b)?_0x334989['removeMarkers']():_0x5d361b['containsPosition'](_0x17ab8a)?_0x17ab8a=_0x5d361b['end']:_0x5d361b['containsPosition'](_0x30dc38)&&(_0x30dc38=_0x5d361b['start']);continue;}_0x17ab8a=_0x17ab8a['isBefore'](_0x5d361b['start'])?_0x17ab8a:_0x5d361b['start'],_0x30dc38=_0x30dc38['isAfter'](_0x5d361b['end'])?_0x30dc38:_0x5d361b['end'],_0x257f03=Object['assign']({},_0x334989['attributes']),_0x455edf?_0x5d361b['start']['isBefore'](_0x455edf['getFirstRange']()['start'])?(_0x455edf['removeMarkers'](),_0x455edf=_0x334989):_0x334989['removeMarkers']():_0x455edf=_0x334989;}}}if(_0x455edf)return this['_setSuggestionRange'](_0x455edf,this['_model']['createRange'](_0x17ab8a,_0x30dc38)),_0x455edf;{const _0x21c93a=_0x55a5f1(),_0x69f573=this['_model']['createRange'](_0x17ab8a,_0x30dc38),_0xf7e33a=_0x2454e3['id'],_0x46049e=_0x1bd514?'deletion:'+_0x1bd514:'deletion',_0x50def6=this['_setSuggestionData']({'id':_0x21c93a,'type':_0x46049e,'createdAt':new Date(),'authorId':_0xf7e33a,'attributes':_0x257f03});return this['_addSuggestionMarker'](_0x46049e,_0x21c93a,_0xf7e33a,_0x69f573),_0x50def6;}}['markMultiRangeDeletion'](_0x5d0a37,_0x299aa4='multi',_0x9073c9={}){const _0x18910c=this['editor']['plugins']['get']('Users')['me'],_0x44f256=_0x5d0a37['map'](_0x11c6e6=>new _0x5924fb(_0x11c6e6['start'],_0x11c6e6['end'])),_0x1807f1=new Set();this['_trackingSessionId']&&(_0x9073c9['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x446b35,meta:_0x5663dc}of this['_findSuggestions'](_0x44f256,'insertion'))_0x5663dc['isOwn']&&!_0x5663dc['isNextTo']&&_0x1807f1['add'](_0x446b35);for(const _0x4e459d of _0x1807f1)if(_0x4e459d['isMultiRange']){const _0x5e21ba=_0x4e459d['getRanges']();(!_0x4e459d['attributes']||!_0x4e459d['attributes']['skipNestingCheck'])&&(_0x5e21ba['every'](_0x583228=>_0x44f256['some'](_0x3f699d=>_0x3f699d['containsRange'](_0x583228,!0x0)))&&_0x4e459d['discard']());if(_0x44f256['every'](_0x46f751=>_0x5e21ba['some'](_0x1f007e=>_0x1f007e['containsRange'](_0x46f751,!0x0)))){const _0x48b902=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x299aa4,'accept');return this['forceDefaultExecution'](()=>_0x48b902(_0x5d0a37,null,_0x9073c9)),null;}}else{const _0x45c6a4=_0x4e459d['getFirstRange']();_0x44f256['some'](_0x1764be=>_0x1764be['containsRange'](_0x45c6a4,!0x0))&&_0x4e459d['discard']();if(_0x44f256['every'](_0x4394f4=>_0x45c6a4['containsRange'](_0x4394f4,!0x0))){const _0xec6ee1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x299aa4,'accept');return this['forceDefaultExecution'](()=>_0xec6ee1(_0x44f256,null,_0x9073c9)),null;}}const _0x3a9754=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x299aa4,'join');let _0x351e1f=null;for(const _0x6ed70a of this['getSuggestions']())if(_0x6ed70a['author']['id']==_0x18910c['id']&&_0x6ed70a['isInContent']&&'deletion'==_0x6ed70a['type']&&_0x6ed70a['subType']==_0x299aa4&&cn(_0x6ed70a,_0x9073c9)&&(_0x3a9754(_0x6ed70a['getRanges'](),_0x44f256)||_0x3a9754(_0x44f256,_0x6ed70a['getRanges']()))){if(_0x351e1f){if(_0x6ed70a['commentThread']&&_0x6ed70a['commentThread']['length'])continue;for(const _0x154bbd of _0x6ed70a['getRanges']())_0x351e1f['isIntersectingWithRange'](_0x154bbd)||_0x351e1f['addRange'](_0x154bbd);_0x6ed70a['removeMarkers']();}else{_0x351e1f=_0x6ed70a;for(const _0x593fbd of _0x44f256)_0x6ed70a['isIntersectingWithRange'](_0x593fbd)||_0x6ed70a['addRange'](_0x593fbd);}}if(_0x351e1f)return _0x351e1f;_0x1807f1['clear']();for(const {suggestion:_0x48902f,meta:_0x3bec19}of this['_findSuggestions'](_0x44f256,'deletion'))_0x3bec19['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3bec19['containsRangeInObject']&&!_0x3bec19['isInsideObject'])&&cn(_0x48902f,_0x9073c9)&&_0x1807f1['add'](_0x48902f);for(const _0x54c3e7 of _0x1807f1){const _0x1362eb=_0x54c3e7['getRanges']();if(!_0x9073c9||!_0x9073c9['skipNestingCheck']){if(_0x44f256['every'](_0x31ca1e=>_0x1362eb['some'](_0x31b1e3=>_0x31b1e3['containsRange'](_0x31ca1e,!0x0))))return _0x54c3e7;}(!_0x54c3e7['attributes']||!_0x54c3e7['attributes']['skipNestingCheck'])&&(_0x1362eb['every'](_0x3579ac=>_0x44f256['some'](_0xf06cdf=>_0xf06cdf['containsRange'](_0x3579ac,!0x0)))&&_0x54c3e7['discard']());}const _0x3a342d=_0x55a5f1(),_0x12cf9e=_0x18910c['id'],_0x1c2bb3='deletion:'+_0x299aa4,_0x5b743c=this['_setSuggestionData']({'id':_0x3a342d,'type':_0x1c2bb3,'createdAt':new Date(),'authorId':_0x12cf9e,'attributes':_0x9073c9});for(const _0x39c561 of _0x44f256)_0x39c561['detach'](),_0x39c561['isCollapsed']||'$graveyard'==_0x39c561['root']['rootName']||this['_addSuggestionMarker'](_0x1c2bb3,_0x3a342d,_0x12cf9e,_0x39c561,bt['getMultiRangeId']());return _0x5b743c;}['markAttributeChange'](_0x4cfbe5,_0x48af19,_0x52f161,_0x5b209b,_0x42640a){if(_0x4cfbe5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4badbb=this['editor']['plugins']['get']('Users')['me']['id'],_0x292141=Array['from'](this['_suggestions']['values']())['filter'](_0x39ac51=>'attribute'==_0x39ac51['type']&&_0x39ac51['data']['key']==_0x48af19&&_0x39ac51['isIntersectingWithRange'](_0x4cfbe5));if(this['_trackingSessionId']&&(_0x42640a['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x210ca6=this['_findSuggestions'](_0x4cfbe5,'insertion')['filter'](({meta:_0x42627b})=>_0x42627b['isOwn']&&!_0x42627b['isInsideObject']&&!_0x42627b['isNextTo'])['map'](({suggestion:_0x36dbc5})=>_0x36dbc5);_0x292141['unshift'](..._0x210ca6);}const _0x5b69ac=new Map([[_0x4cfbe5,_0x52f161]]);for(const _0x35b4b9 of _0x292141){const _0x10cd3a='attribute'==_0x35b4b9['type']?_0x35b4b9['data']['oldValue']:void 0x0,_0xc86541=_0x35b4b9['getFirstRange'](),_0x1fdfb1=Array['from'](_0x5b69ac['keys']())['find'](_0x3c04b1=>_0x3c04b1['isIntersecting'](_0xc86541));if(!_0x1fdfb1)continue;const _0x43229f=_0x1fdfb1['getDifference'](_0xc86541);this['_suggestionsConversion']['isBlockAttribute'](_0x48af19)&&'insertion'==_0x35b4b9['type']&&0x0!=_0x43229f['length']||(_0x5b69ac['delete'](_0x1fdfb1),_0x43229f['forEach'](_0x5bde34=>{_0x5b69ac['set'](_0x5bde34,_0x52f161);}),'insertion'!=_0x35b4b9['type']&&_0x10cd3a!=_0x5b209b&&_0x5b69ac['set'](_0x1fdfb1['getIntersection'](_0xc86541),_0x10cd3a));}const _0x5ea6fc=[];for(const [_0x4688cc,_0x2d6fe0]of _0x5b69ac){const _0x5162a9=_0x55a5f1(),_0x23c8e5={'key':_0x48af19,'oldValue':_0x2d6fe0,'newValue':_0x5b209b};_0x48af19['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':_0x48af19});const _0x53a228=('attribute:'+(_0x48af19+'|'+Je({'newValue':_0x5b209b})))['substring'](0x0,0x3c),_0x306d5b=this['_setSuggestionData']({'id':_0x5162a9,'type':_0x53a228,'data':_0x23c8e5,'createdAt':new Date(),'authorId':_0x4badbb,'attributes':_0x42640a});_0x5ea6fc['push'](_0x306d5b),this['_addSuggestionMarker'](_0x53a228,_0x5162a9,_0x4badbb,_0x4688cc);}return _0x5ea6fc;}['enableDefaultAttributesIntegration'](_0x25be88){this['enableCommand'](_0x25be88,(_0x453a87,..._0x5490ba)=>{this['recordAttributeChanges'](()=>{_0x453a87(..._0x5490ba);});});}['startTrackingSession'](_0x310cfb){return this['_trackingSessionId']=void 0x0!==_0x310cfb?_0x310cfb:_0x55a5f1(),this['_trackingSessionId'];}['_getAttributeKey'](_0xed0725){return'attribute'==_0xed0725['type']?un(_0xed0725['subType']):null;}['_applyOperationsAsSuggestions'](_0x7ba229){if(0x0==_0x7ba229['length'])return;const _0x4027f9=this['editor'],_0x166642=_0x4027f9['plugins']['get'](_0x224979),_0x385d2c=[];_0x4027f9['model']['change'](_0x8bbfe1=>{for(let _0x33f8d8=0x0;_0x33f8d8<_0x7ba229['length'];_0x33f8d8++){const _0x486387=_0x7ba229[_0x33f8d8];if(_0x486387['baseVersion']=_0x4027f9['model']['document']['version'],_0x486387['isDocumentOperation']=!0x0,_0x166642['isMarkedRemoveOperation'](_0x486387)){const _0x14230b=_0x4bbfac(_0x486387['newRange'],_0x4027f9['model']);_0x385d2c['unshift'](_0x5924fb['fromRange'](_0x14230b));}else switch(_0x486387['type']){case'rename':{const _0x3efcb5=_0x486387['oldName'],_0x8d9deb=_0x486387['newName'];if(_0x3efcb5==_0x8d9deb)break;_0x8bbfe1['batch']['addOperation'](_0x486387),_0x4027f9['model']['applyOperation'](_0x486387);const _0x5e11d5='$elementName',_0x319228=_0x486387['position'],_0x3ea089=_0x4027f9['model']['createRange'](_0x319228,_0x4027f9['model']['createPositionAt'](_0x319228['nodeAfter'],'end'));this['markAttributeChange'](_0x3ea089,_0x5e11d5,_0x3efcb5,_0x8d9deb,{'groupId':_0x55a5f1()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x54ca70=_0x486387['oldValue'],_0x335369=_0x486387['newValue'];if(_0x54ca70==_0x335369)break;_0x8bbfe1['batch']['addOperation'](_0x486387),_0x4027f9['model']['applyOperation'](_0x486387);const _0x169945=_0x486387['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x169945))break;const _0x10e7dd=_0x4bbfac(_0x486387['range'],_0x4027f9['model']);this['markAttributeChange'](_0x10e7dd,_0x169945,_0x54ca70,_0x335369,{'groupId':_0x55a5f1()});break;}case'insert':{_0x8bbfe1['batch']['addOperation'](_0x486387),_0x4027f9['model']['applyOperation'](_0x486387);if(_0x7ba229[_0x33f8d8+0x1]&&'move'==_0x7ba229[_0x33f8d8+0x1]['type'])break;const _0x3e5cf2=_0x486387['position'],_0x1482fe=_0x486387['howMany'],_0x239e61=_0x4bbfac(_0x4027f9['model']['createRange'](_0x3e5cf2,_0x3e5cf2['getShiftedBy'](_0x1482fe)),_0x4027f9['model']);this['markInsertion'](_0x239e61);break;}case'split':{_0x8bbfe1['batch']['addOperation'](_0x486387),_0x4027f9['model']['applyOperation'](_0x486387);const _0x58de6f=_0x486387['splitPosition'],_0x2619ab=_0x486387['moveTargetPosition'];this['markInsertion'](_0x4027f9['model']['createRange'](_0x58de6f,_0x2619ab));break;}case'move':case'remove':_0x8bbfe1['batch']['addOperation'](_0x486387),_0x4027f9['model']['applyOperation'](_0x486387);}}for(const _0x30503d of _0x385d2c)_0x30503d['detach'](),this['markDeletion'](_0x30503d);});}['_setSuggestionRange'](_0x21244a,_0x2ad598){const _0x424991=_0x21244a['getFirstMarker']();this['_model']['change'](_0x20286a=>{_0x20286a['updateMarker'](_0x424991,{'range':_0x2ad598});});}['_addThreadToSuggestion'](_0x1ac2da){const _0x27fb3d=_0x1ac2da['id'],_0x5e247a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x27fb3d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5e247a,'threadId':_0x27fb3d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x426456=this['_commentsRepository']['getCommentThread'](_0x27fb3d);_0x426456['unbind']('isRemovable'),_0x426456['isRemovable']=!0x1,_0x1ac2da['commentThread']=_0x426456;}['_checkSuggestionCorrectness'](_0x3005d0,_0x598a92,_0x4ee991,_0x39ab57){if(_0x3005d0['type']!=_0x598a92||_0x3005d0['subType']!=_0x4ee991||_0x3005d0['creator']['id']!=_0x39ab57)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xc19cc6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2b62ef,_0x1230a2){const _0x53e9a5=_0x2b62ef['getFirstRange']();if(_0x1230a2['isEqual'](_0x53e9a5))_0x2b62ef['removeMarkers']();else{if(_0x53e9a5['containsRange'](_0x1230a2)){const _0x489bc4=this['_model']['createPositionAt'](_0x1230a2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2b62ef,this['_model']['createRange'](_0x53e9a5['start'],_0x489bc4));const _0x38a871=_0x55a5f1(),_0x1df08d=_0x2b62ef['creator']['id'],_0x3e45fa=_0x2b62ef['type']+':'+_0x2b62ef['subType'];this['_setSuggestionData']({'id':_0x38a871,'type':_0x3e45fa,'createdAt':new Date(),'authorId':_0x1df08d,'data':_0x2b62ef['data'],'attributes':_0x2b62ef['attributes']});const _0x5c1923=this['_model']['createPositionAt'](_0x1230a2['end']['parent'],'after'),_0x4aa4f2=this['_model']['createRange'](_0x5c1923,_0x53e9a5['end']);this['_addSuggestionMarker'](_0x3e45fa,_0x38a871,_0x1df08d,_0x4aa4f2);}else{if(_0x53e9a5['containsPosition'](_0x1230a2['start'])){const _0x695f70=this['_model']['createPositionAt'](_0x1230a2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2b62ef,this['_model']['createRange'](_0x53e9a5['start'],_0x695f70));}else{const _0x421702=this['_model']['createPositionAt'](_0x1230a2['end']['parent'],'after');this['_setSuggestionRange'](_0x2b62ef,this['_model']['createRange'](_0x421702,_0x53e9a5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x44d35c){for(const {suggestion:_0x5740d8,meta:_0x29438c}of this['_findSuggestions'](_0x44d35c,'insertion')){if(!_0x29438c['isOwn'])continue;const _0x305864=_0x5740d8['getRanges']();for(const _0x4a1dfc of _0x305864)if(!_0x44d35c['getDifference'](_0x4a1dfc)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1a56e5){return this['editor']['plugins']['get']('Users')['getUser'](_0x1a56e5);}['_getExternalAuthor'](_0x1da8b1){const _0x5360ab=this['editor']['plugins']['get']('Users'),_0x509fad=_0x146957('external:'+_0x1da8b1),_0x362993=_0x5360ab['getUser'](_0x509fad);return _0x362993||_0x5360ab['addUser']({'id':_0x509fad,'name':_0x1da8b1});}['_createSuggestion'](_0x1159cf,_0x27957d,_0x3be3ca,_0x235dda,_0x2512d4,_0x47f9f1){const _0x5442e9=this['_getAuthorFromId'](_0x235dda);if(!_0x5442e9)throw new _0xc19cc6('track-changes-user-not-found',this,{'authorId':_0x235dda,'suggestionId':_0x3be3ca});const _0x5a1106=this['_suggestionFactory']['buildSuggestion'](_0x1159cf,_0x27957d,_0x3be3ca,_0x5442e9,_0x2512d4,_0x1e4a7f=>{this['_updateSuggestionData'](_0x3be3ca,{'attributes':_0x1e4a7f});const _0x291050=this['getSuggestion'](_0x3be3ca);this['_joinWithAdjacentSuggestions'](new Set([_0x291050])),this['_refreshSuggestionsChain'](new Set([_0x291050]));},_0x47f9f1);return this['listenTo'](_0x5a1106,'accept',()=>{this['_updateSuggestionData'](_0x3be3ca,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5a1106,'discard',()=>{this['_updateSuggestionData'](_0x3be3ca,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3be3ca,_0x5a1106),this['_suggestionState']['set'](_0x5a1106,'notReady'),_0x5a1106;}['_breakSuggestionMarker'](_0xa7bc6f,_0x23b72e,_0x25727f){const _0x1beef6=_0xa7bc6f['getFirstRange'](),_0x2df24b=_0x1beef6['start'],_0x241450=_0x1beef6['end'];this['_setSuggestionRange'](_0xa7bc6f,this['_model']['createRange'](_0x2df24b,_0x23b72e));const _0x4ccb55=_0x55a5f1(),_0x5063f2=_0xa7bc6f['creator']['id'],_0x42b668=_0xa7bc6f['type']+(_0xa7bc6f['subType']?':'+_0xa7bc6f['subType']:'');this['_setSuggestionData']({'id':_0x4ccb55,'type':_0x42b668,'createdAt':new Date(),'authorId':_0x5063f2,'originalSuggestionId':_0xa7bc6f['_originalSuggestionId']||_0xa7bc6f['id'],'attributes':_0xa7bc6f['attributes'],'data':_0xa7bc6f['data']});const _0x33e03a=this['_getAttributeKey'](_0xa7bc6f);('formatBlock'==_0xa7bc6f['type']||_0x33e03a&&this['_suggestionsConversion']['isBlockAttribute'](_0x33e03a))&&(_0x25727f=this['_model']['createPositionBefore'](_0x25727f['parent'])),this['_addSuggestionMarker'](_0x42b668,_0x4ccb55,_0x5063f2,this['_model']['createRange'](_0x25727f,_0x241450));}['_findSuggestions'](_0x758f15,_0x208941=null){const _0x54bbac=[],_0x428e5b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x758f15)||(_0x758f15=[_0x758f15]);for(const _0x3651e5 of this['getSuggestions']()){if(!_0x3651e5['isInContent'])continue;if(_0x208941&&_0x3651e5['type']!=_0x208941)continue;let _0xec3df9=!0x1;for(const _0x8d86a1 of _0x3651e5['getRanges']()){for(const _0x273288 of _0x758f15){const _0x40facf=_0x273288['start']['isEqual'](_0x8d86a1['end'])||_0x273288['end']['isEqual'](_0x8d86a1['start']);if(_0x40facf||_0x273288['getIntersection'](_0x8d86a1)){const _0x1fad1f=_0x273288['containsRange'](_0x8d86a1)&&qe(this['_model']['schema'],_0x8d86a1['start'],_0x273288),_0x3a5ed8=_0x8d86a1['containsRange'](_0x273288)&&qe(this['_model']['schema'],_0x273288['start'],_0x8d86a1);_0x54bbac['push']({'suggestion':_0x3651e5,'meta':{'isOwn':_0x428e5b==_0x3651e5['author'],'isNextTo':_0x40facf,'isInsideObject':_0x1fad1f,'containsRangeInObject':_0x3a5ed8}}),_0xec3df9=!0x0;break;}}if(_0xec3df9)break;}}return _0x54bbac;}['_addSuggestionMarker'](_0x18f46b,_0x56d23e,_0x4e9073,_0x5569ce,_0xb5372e){this['_model']['change'](_0x737ea7=>{let _0x35288c='suggestion:'+_0x18f46b+':'+_0x56d23e+':'+_0x4e9073;_0xb5372e&&(_0x35288c=_0x35288c+':'+_0xb5372e),_0x737ea7['addMarker'](_0x35288c,{'range':_0x5569ce,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4963b8){const _0xc2f51d=_0x4963b8['previous'],_0x15c23d=_0x4963b8['next'];_0x4963b8['previous']=null,_0x4963b8['next']=null,null!=_0xc2f51d&&_0xc2f51d['next']==_0x4963b8&&(_0xc2f51d['next']=_0x15c23d),null!=_0x15c23d&&_0x15c23d['previous']==_0x4963b8&&(_0x15c23d['previous']=_0xc2f51d),'ready'==this['_suggestionState']['get'](_0x4963b8)&&(this['_suggestionState']['set'](_0x4963b8,'removed'),this['fire']('suggestionUnloaded',_0x4963b8,_0xc2f51d,_0x15c23d));}['_setSuggestionData'](_0x34fddb){const _0x57f236=_0x34fddb['id'],_0x374cb3=this['addSuggestionData'](_0x34fddb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x15432d=this['editor']['plugins']['get']('PendingActions'),_0x2182bf=_0x374cb3['hasComments'],_0x58ba8e=_0x374cb3['subType']?_0x374cb3['type']+':'+_0x374cb3['subType']:_0x374cb3['type'],_0x442c27=this['editor']['locale'],_0x42f3cc=_0x15432d['add'](At(_0x442c27,'PENDING_ACTION_SUGGESTION')),_0x40887b={'id':_0x57f236,'type':_0x58ba8e,'hasComments':_0x2182bf,'data':_0x34fddb['data']||null,'originalSuggestionId':_0x34fddb['originalSuggestionId']||null,'attributes':_0x374cb3['attributes']};this['_adapter']['addSuggestion'](_0x40887b)['then'](_0x4ec702=>{_0x374cb3['_saved']=!0x0,_0x15432d['remove'](_0x42f3cc),_0x4ec702&&_0x4ec702['createdAt']&&(this['_suggestions']['get'](_0x57f236)['createdAt']=_0x4ec702['createdAt']);})['catch'](_0x5170eb=>{throw _0xbd21c6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x374cb3['discard']();}),_0x374cb3['stopListening'](),this['_suggestions']['delete'](_0x374cb3['id']),this['_suggestionState']['delete'](_0x374cb3),_0x5170eb;});}return _0x374cb3;}['_updateSuggestionData'](_0x4f9791,_0x2819a7){const _0x3c9b4a=this['editor']['plugins']['get']('PendingActions'),_0x2ebe96=this['getSuggestion'](_0x4f9791);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2ebe96['_saved']){const _0x4521a1=_0x3c9b4a['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4f9791,_0x2819a7)['then'](()=>{_0x3c9b4a['remove'](_0x4521a1);});}else _0x2ebe96['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4f9791,_0x2819a7);});}}['_getSuggestionData'](_0x5ac70e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xc19cc6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5ac70e);}['_handleNewSuggestionMarker'](_0x11ab6f){const {id:_0x1248f8,type:_0x426ab4,subType:_0x864b50,authorId:_0x37b443}=_0x2695eb(_0x11ab6f),_0x351c6b=this['_suggestions']['get'](_0x1248f8)||this['_createSuggestion'](_0x426ab4,_0x864b50,_0x1248f8,_0x37b443,{});switch(this['_checkSuggestionCorrectness'](_0x351c6b,_0x426ab4,_0x864b50,_0x37b443),this['_suggestionState']['get'](_0x351c6b)){case'notReady':this['_getSuggestionData'](_0x1248f8)['then'](_0x55c75f=>{let _0x38d3c5=Promise['resolve']();_0x55c75f['hasComments']&&(_0x38d3c5=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1248f8})),_0x38d3c5['then'](()=>{this['addSuggestionData'](_0x55c75f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x351c6b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1248f8,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x351c6b,'ready'),this['fire']('suggestionLoaded',_0x351c6b);break;case'ready':this['fire']('suggestionChanged',_0x351c6b);}return _0x351c6b['addMarkerName'](_0x11ab6f),_0x351c6b;}['_refreshSuggestionsChain'](_0x340d02){const _0x29719d=Array['from'](_0x340d02),_0x2aa66b=_0x29719d['filter'](_0x41a02c=>'attribute'==_0x41a02c['type']);this['_refreshAttributeSuggestionsChain'](_0x2aa66b);const _0x272f3b=_0x29719d['filter'](_0x2a3b27=>!_0x2a3b27['isMultiRange']&&'attribute'!=_0x2a3b27['type']),_0x7b2b6b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x381d9e=>!_0x381d9e['isMultiRange']&&'attribute'!=_0x381d9e['type']),_0x5ca56a=_0x7b2b6b['filter'](_0x2fa904=>!_0x340d02['has'](_0x2fa904)),_0x36d321=new Map(_0x7b2b6b['map'](_0x39ef8c=>[_0x39ef8c,this['_suggestionFactory']['getSuggestionCallback'](_0x39ef8c['type'],_0x39ef8c['subType'],'chain')])),_0xe4f9a2=new Map(_0x7b2b6b['map'](_0x2ede43=>[_0x2ede43,_0x2ede43['getFirstRange']()])),_0x3236ec=new Set(),_0x40ec35=new Set();for(let _0x55b376=0x0;_0x55b376<_0x272f3b['length'];_0x55b376++)_0x274eda(_0x272f3b[_0x55b376],_0x272f3b,_0x55b376+0x1);for(let _0x24309d=0x0;_0x24309d<_0x272f3b['length'];_0x24309d++)_0x274eda(_0x272f3b[_0x24309d],_0x5ca56a,0x0);const _0x34b7f1=new Set();for(let _0x5b2f6b=0x0;_0x5b2f6b<_0x272f3b['length'];_0x5b2f6b++){const _0xdd5865=_0x272f3b[_0x5b2f6b];!_0x40ec35['has'](_0xdd5865)&&_0xdd5865['previous']&&(_0x34b7f1['add'](_0xdd5865['previous']),_0xdd5865['previous']['next']===_0xdd5865&&(_0xdd5865['previous']['next']=null),_0xdd5865['previous']=null),!_0x3236ec['has'](_0xdd5865)&&_0xdd5865['next']&&(_0x34b7f1['add'](_0xdd5865['next']),_0xdd5865['next']['previous']===_0xdd5865&&(_0xdd5865['next']['previous']=null),_0xdd5865['next']=null);}function _0x274eda(_0x218555,_0x767794,_0x271cf8){for(let _0x36c1e7=_0x271cf8;_0x36c1e7<_0x767794['length'];_0x36c1e7++){const _0x3f91a0=_0x33dcd0(_0x218555,_0x767794[_0x36c1e7]);_0x3f91a0&&(_0x3f91a0[0x0]['next']=_0x3f91a0[0x1],_0x3f91a0[0x1]['previous']=_0x3f91a0[0x0],_0x3236ec['add'](_0x3f91a0[0x0]),_0x40ec35['add'](_0x3f91a0[0x1]));}}function _0x33dcd0(_0x5d43ea,_0x5e14d7){if(_0x5d43ea['author']['id']!==_0x5e14d7['author']['id'])return null;const _0x52b4da=_0x36d321['get'](_0x5d43ea)(_0x5d43ea,_0x5e14d7,_0xe4f9a2['get'](_0x5d43ea),_0xe4f9a2['get'](_0x5e14d7));if(!_0x52b4da)return null;return _0x36d321['get'](_0x5e14d7)(_0x5d43ea,_0x5e14d7,_0xe4f9a2['get'](_0x5d43ea),_0xe4f9a2['get'](_0x5e14d7))?_0x52b4da[0x1]['commentThread']&&_0x52b4da[0x1]['commentThread']['length']?null:_0x52b4da:null;}_0x34b7f1['size']&&this['_refreshSuggestionsChain'](_0x34b7f1);}['_refreshAttributeSuggestionsChain'](_0x1a3d79){if(0x0==_0x1a3d79['length'])return;const _0x40a57b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57005a=>'attribute'==_0x57005a['type']&&_0x57005a['_isDataLoaded']),_0x49520e=[],_0x482ed5=new Map();for(const _0x291151 of _0x40a57b){const _0x250d14=_0x146957(_0x291151['attributes']);_0x482ed5['has'](_0x250d14)||(_0x482ed5['set'](_0x250d14,_0x49520e['length']),_0x49520e['push']([]));const _0x19f82a=_0x482ed5['get'](_0x250d14);_0x49520e[_0x19f82a]['push'](_0x291151);}!(function(){_0x49520e['sort']((_0xb4ff17,_0x4f6c6e)=>{const _0x7c5162=_0xb4ff17[0x0]['createdAt'],_0x477731=_0x4f6c6e[0x0]['createdAt'];return _0x7c5162==_0x477731?_0xb4ff17[0x0]['attributes']['groupId']<_0x4f6c6e[0x0]['attributes']['groupId']?-0x1:0x1:_0x7c5162<_0x477731?-0x1:0x1;});for(const _0x36cfb6 of _0x49520e)_0x36cfb6['sort']((_0xa1facf,_0x3b54b3)=>_0xa1facf['id']<_0x3b54b3['id']?-0x1:0x1);}());for(let _0x82b7b7=0x0;_0x82b7b7<_0x49520e['length'];_0x82b7b7++){if(0x0==_0x49520e[_0x82b7b7]['length'])continue;const _0x5a5fe5=[];for(let _0x3c826f=_0x82b7b7+0x1;_0x3c826f<_0x49520e['length'];_0x3c826f++)0x0!=_0x49520e[_0x3c826f]['length']&&_0x2c7448(_0x49520e[_0x82b7b7],_0x49520e[_0x3c826f])&&_0x5a5fe5['push'](_0x3c826f);for(const _0x2ea7f7 of _0x5a5fe5)_0x49520e[_0x82b7b7]=_0x49520e[_0x82b7b7]['concat'](_0x49520e[_0x2ea7f7]),_0x49520e[_0x2ea7f7]=[];}for(const _0x443680 of _0x49520e)for(let _0x24354f=0x0;_0x24354f<_0x443680['length'];_0x24354f++){const _0x2d36f6=_0x443680[_0x24354f+0x1]||null;_0x443680[_0x24354f]['next']!==_0x2d36f6&&(_0x443680[_0x24354f]['next']=_0x2d36f6);}for(const _0x2386fd of _0x49520e)for(let _0x5451e4=0x0;_0x5451e4<_0x2386fd['length'];_0x5451e4++){const _0xee51dc=_0x2386fd[_0x5451e4-0x1]||null;_0x2386fd[_0x5451e4]['previous']!==_0xee51dc&&(_0x2386fd[_0x5451e4]['previous']=_0xee51dc);}function _0x2c7448(_0x243ff0,_0x33bf3f){if(_0x243ff0[0x0]['attributes']['groupId']!==_0x33bf3f[0x0]['attributes']['groupId']&&_0x243ff0[0x0]['author']!==_0x33bf3f[0x0]['author'])return!0x1;if(!function(_0x1015bb,_0x4f55f4){if(!_0x1015bb['hasComments']&&!_0x4f55f4['hasComments'])return!0x0;if(_0x1015bb['hasComments']&&_0x4f55f4['hasComments'])return!0x1;if(_0x1015bb['hasComments']&&_0x4f55f4['createdAt']<_0x1015bb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4f55f4['hasComments']&&_0x1015bb['createdAt']<_0x4f55f4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x243ff0[0x0],_0x33bf3f[0x0]))return!0x1;const _0x151ec5=ot(_0x243ff0[0x0]['attributes'],['groupId','trackingSessionId']),_0x5aed44=ot(_0x33bf3f[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x151ec5,_0x5aed44))return!0x1;if(_0x243ff0[0x0]['attributes']['groupId']==_0x33bf3f[0x0]['attributes']['groupId'])return!0x0;if(_0x243ff0[0x0]['attributes']['trackingSessionId']!==_0x33bf3f[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x243ff0['every'](_0x585ff2=>_0x33bf3f['some'](_0x3c9201=>_0x585ff2['getFirstRange']()['isEqual'](_0x3c9201['getFirstRange']())))&&_0x33bf3f['every'](_0x3bf601=>_0x243ff0['some'](_0xdd6e1=>_0x3bf601['getFirstRange']()['isEqual'](_0xdd6e1['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x126690){const _0x219637=Array['from'](_0x126690),_0x3ed51d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5b54a6=_0x3ed51d['filter'](_0x597f3a=>!_0x126690['has'](_0x597f3a)),_0x486939=new Map(_0x219637['map'](_0x474dea=>[_0x474dea,this['_suggestionFactory']['getSuggestionCallback'](_0x474dea['type'],_0x474dea['subType'],'join')])),_0x168b98=new Map(_0x3ed51d['map'](_0x57886e=>[_0x57886e,_0x57886e['getRanges']()]));for(let _0x3b58c9=0x0;_0x3b58c9<_0x219637['length'];_0x3b58c9++){if(_0x4b6c95(this,_0x219637[_0x3b58c9],_0x219637,_0x3b58c9+0x1))return!0x0;}for(let _0x216687=0x0;_0x216687<_0x219637['length'];_0x216687++){if(_0x4b6c95(this,_0x219637[_0x216687],_0x5b54a6,0x0))return!0x0;}return!0x1;function _0x4b6c95(_0x59743d,_0x5e6831,_0x21c729,_0x2439f0){for(let _0x5f0561=_0x2439f0;_0x5f0561<_0x21c729['length'];_0x5f0561++){const _0x2b268c=_0x21c729[_0x5f0561];if(_0x2b268c['type']!==_0x5e6831['type']||_0x2b268c['author']['id']!==_0x5e6831['author']['id']||_0x2b268c['subType']!==_0x5e6831['subType'])continue;if(!an(_0x5e6831,_0x2b268c))continue;if('attribute'==_0x5e6831['type']&&_0x5e6831['data']['oldValue']!=_0x2b268c['data']['oldValue'])continue;if('attribute'==_0x5e6831['type']&&_0x59743d['_suggestionsConversion']['isBlockAttribute'](_0x5e6831['data']['key']))continue;if('formatBlock'==_0x5e6831['type']){const _0x1df979=_0x59743d['editor']['model'],_0x3af1e4=_0x5e6831['getContainedElement']();if(_0x3af1e4&&(_0x1df979['schema']['isObject'](_0x3af1e4)||_0x1df979['schema']['isLimit'](_0x3af1e4)))continue;}const _0x22b8a5=_0x486939['get'](_0x5e6831),_0x421f35=_0x168b98['get'](_0x5e6831),_0x4b4c82=_0x168b98['get'](_0x2b268c),_0x37927e=_0x5e6831['commentThread']&&_0x5e6831['commentThread']['length'],_0x199c24=_0x2b268c['commentThread']&&_0x2b268c['commentThread']['length'];if(!_0x37927e&&_0x22b8a5(_0x4b4c82,_0x421f35))return _0x59743d['_joinSuggestions'](_0x2b268c,_0x5e6831),_0x168b98['delete'](_0x5e6831),!0x0;if(!_0x199c24&&_0x22b8a5(_0x421f35,_0x4b4c82))return _0x59743d['_joinSuggestions'](_0x5e6831,_0x2b268c),_0x168b98['delete'](_0x2b268c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x277866,_0xc37b5){if(_0x277866['isMultiRange']){for(const _0x2a90e5 of _0xc37b5['getRanges']())_0x277866['addRange'](_0x2a90e5);}else{const _0x3eba59=_0xc37b5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x277866,this['_model']['createRange'](_0x277866['getFirstRange']()['start'],_0x3eba59));}_0xc37b5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x20696d,_0x578531,_0x4b32a6){const _0x28d00c=_0x20696d['startsWith']('format')||_0x20696d['startsWith']('attribute')?'FORMATTING':_0x20696d['toUpperCase']();return At(this['editor']['locale'],_0x578531+'_'+_0x28d00c+'_SUGGESTION_ANNOUNCEMENT',_0x4b32a6);}['_initAriaMarkerChangeAnnouncements'](){const _0x4d72b3=this['editor'];if(!_0x4d72b3['ui'])return;const {ariaLiveAnnouncer:_0x3e6a53}=_0x4d72b3['ui'];_0xfd6d7(this['_model'],({left:_0x294988,entered:_0x1cbca3})=>{for(const _0x59df4d of _0x294988){const {group:_0x3b6bbc,type:_0x398f51}=_0x2695eb(_0x59df4d['name']);if('suggestion'===_0x3b6bbc){_0x3e6a53['announce'](this['_getMarkerAnnouncementText'](_0x398f51,'LEAVE'));break;}}for(const _0x1ca6be of _0x1cbca3){const {group:_0x1c1f65,type:_0x3f2614}=_0x2695eb(_0x1ca6be['name']);if('suggestion'===_0x1c1f65){_0x3e6a53['announce'](this['_getMarkerAnnouncementText'](_0x3f2614,'ENTER',_0x700482(_0x7e357d)));break;}}});}['_processAttributeChanges'](_0x17926a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x308ad6=this['editor'],_0x118beb=_0x308ad6['model']['document']['differ']['getChanges']();if(0x0==_0x118beb['length'])return!0x1;const _0x48b072=[],_0x5d76bc=_0x118beb['filter'](_0x434fea=>'attribute'==_0x434fea['type']),_0x41eeb2=_0x118beb['filter'](_0x24a96f=>'insert'==_0x24a96f['type']&&'$text'!=_0x24a96f['name']),_0xf3c265=_0x118beb['filter'](_0x1cd732=>'remove'==_0x1cd732['type']&&'$text'!=_0x1cd732['name']);for(const _0x163ed3 of _0x5d76bc)_0x48b072['push']({'key':_0x163ed3['attributeKey'],'newValue':_0x163ed3['attributeNewValue'],'oldValue':_0x163ed3['attributeOldValue'],'range':sn(_0x163ed3['range'],_0x308ad6['model'])});for(const _0x769e72 of _0x41eeb2){const _0x3aad84=_0xf3c265['find'](_0x5223d6=>_0x5223d6['position']['isEqual'](_0x769e72['position']));_0x3aad84&&_0x48b072['push']({'key':Ke,'newValue':_0x769e72['name'],'oldValue':_0x3aad84['name'],'range':_0x308ad6['model']['createRangeOn'](_0x769e72['position']['nodeAfter'])});}return 0x0!=_0x48b072['length']&&this['_reduceExistingSuggestions'](_0x17926a,_0x48b072);}['_processAttributeSuggestions'](_0x34cfdd){let _0x11959f=!0x1;const _0x4a2dd2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2f4b22=>_0x2f4b22['data']['newRange']&&_0x2f4b22['name']['startsWith']('suggestion:attribute:'));for(const _0x212e11 of _0x4a2dd2){const {subType:_0x577ffb,id:_0x93e9e2}=_0x2695eb(_0x212e11['name']),_0xcee398=_0x577ffb['split']('|')[0x0];for(const _0xd3408a of this['getSuggestions']({'skipNotAttached':!0x0}))_0xd3408a['id']!=_0x93e9e2&&'attribute'==_0xd3408a['type']&&_0xd3408a['data']&&_0xd3408a['data']['key']==_0xcee398&&_0xd3408a['getFirstRange']()['isIntersecting'](_0x212e11['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xd3408a,_0x212e11['data']['newRange'],_0x34cfdd),_0x11959f=!0x0);}return _0x11959f;}['recordAttributeChanges'](_0x4995d8){this['_recordAttributeSuggestions']=!0x0,_0x4995d8();}['_reduceExistingSuggestions'](_0x2aa1fc,_0x1601d8){if(0x0==_0x1601d8['length'])return!0x1;let _0x16cbe0=!0x1;for(const _0x93ee1d of _0x1601d8){const _0xf5f25c=this['_findSuggestions'](_0x93ee1d['range'],'attribute')['filter'](_0x31ee66=>!_0x31ee66['meta']['isNextTo'])['map'](_0xbb6442=>_0xbb6442['suggestion']),_0x551a7b=_0x146957({'newValue':_0x93ee1d['newValue']});_0xf5f25c['filter'](_0x5e7ee0=>{const [_0x122165,_0x3805dc]=_0x5e7ee0['subType']['split']('|');return _0x122165==_0x93ee1d['key']&&_0x3805dc!=_0x551a7b;})['forEach'](_0x974b11=>{this['_reduceSuggestionAttributeRange'](_0x974b11,_0x93ee1d['range'],_0x2aa1fc),_0x16cbe0=!0x0;});}return _0x16cbe0;}['_reduceSuggestionAttributeRange'](_0x106df8,_0x8e8308,_0x50c452){const _0x451508=_0x106df8['getFirstRange']()['getDifference'](_0x8e8308);0x0!==_0x451508['length']?0x1!==_0x451508['length']?this['_breakSuggestionMarker'](_0x106df8,_0x8e8308['start'],_0x8e8308['end']):this['_setSuggestionRange'](_0x106df8,_0x451508[0x0]):_0x50c452['removeMarker'](_0x106df8['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xffdadd){this['_editor']=_0xffdadd,this['_model']=_0xffdadd['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x362161,_0x105100,_0x1473b4,_0x5c52ad,_0x967374,_0x470cf9,_0x272a35){return new bt(this['_model'],{'type':_0x362161,'subType':_0x105100,'id':_0x1473b4,'originalSuggestionId':_0x272a35,'author':_0x5c52ad,'creator':_0x5c52ad,'attributes':_0x967374,'onAttributesChange':_0x470cf9,'onAccept':(..._0x1c9038)=>this['getSuggestionCallback'](_0x362161,_0x105100,'accept')(..._0x1c9038),'onDiscard':(..._0x498882)=>this['getSuggestionCallback'](_0x362161,_0x105100,'discard')(..._0x498882)});}['registerCustomCallback'](_0x2cc674,_0x1fbb71,_0x3bcd2a,_0x464175){const _0x3e7ea2=_0x2cc674+':'+_0x1fbb71+':'+_0x3bcd2a;this['_customCallbacks']['set'](_0x3e7ea2,_0x464175);}['getSuggestionCallback'](_0x10011b,_0x2b46dc,_0x473bde){const _0x2ba91e=_0x10011b+':'+_0x2b46dc+':'+_0x473bde;return this['_customCallbacks']['get'](_0x2ba91e)||this['_defaultCallbacks']['get'](_0x10011b+':'+_0x473bde);}['_registerDefaultCallbacks'](){const _0x4d5582=()=>!0x1,_0x3645e9=_0x41220c=>{_0x41220c['sort']((_0x13fe55,_0x165f03)=>_0x13fe55['start']['isBefore'](_0x165f03['start'])?0x1:-0x1),this['_model']['change'](_0x35da21=>{for(const _0x22db26 of _0x41220c){let _0x5b442d;_0x5b442d=_0x22db26['end']['isAtEnd']&&_0x22db26['end']['parent']==_0x22db26['start']['nodeAfter']?_0x35da21['createSelection'](_0x22db26['start']['nodeAfter'],'on'):_0x35da21['createSelection'](_0x22db26),this['_model']['deleteContent'](_0x5b442d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2ac8e8=(_0x5dba3f,_0x5642ef)=>{_0x5642ef&&this['_model']['change'](_0x43d161=>{const {commandName:_0x18b6da,commandParams:_0x593e8f=[]}=_0x5642ef,_0xb25adc=_0x5dba3f['map'](_0x3af754=>(Qe(_0x3af754)&&(_0x3af754=this['_model']['createRange'](_0x3af754['end'])),_0x3af754))['filter'](_0x555ca0=>'$graveyard'!==_0x555ca0['root']['rootName']);if(_0xb25adc['length']<0x1)return;const _0x376a0a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x213bf6=>_0x5924fb['fromRange'](_0x213bf6));_0x43d161['setSelection'](_0xb25adc);for(const _0x23a6bd of this['_editor']['commands']['commands']())_0x23a6bd['refresh']();_0x593e8f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x18b6da,..._0x593e8f);const _0x47c434=_0x376a0a['filter'](_0x539aee=>'$graveyard'!=_0x539aee['root']['rootName']);_0x47c434['length']>0x0&&_0x43d161['setSelection'](_0x47c434);for(const _0x457603 of _0x376a0a)_0x457603['detach']();});},_0x39e050=(_0x4f14c5,_0x2fb483)=>0x1==_0x4f14c5['length']&&0x1==_0x2fb483['length']&&_0x4f14c5[0x0]['end']['isEqual'](_0x2fb483[0x0]['start']),_0x4e0c10=(_0x2ef653,_0x13df46,_0x32fc2f,_0x27a145)=>on(_0x2ef653,_0x13df46,_0x32fc2f,_0x27a145)?[_0x2ef653,_0x13df46]:on(_0x13df46,_0x2ef653,_0x27a145,_0x32fc2f)?[_0x13df46,_0x2ef653]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4d5582),this['_defaultCallbacks']['set']('insertion:discard',_0x3645e9),this['_defaultCallbacks']['set']('insertion:join',_0x39e050),this['_defaultCallbacks']['set']('insertion:chain',_0x4e0c10),this['_defaultCallbacks']['set']('deletion:accept',_0x3645e9),this['_defaultCallbacks']['set']('deletion:discard',_0x4d5582),this['_defaultCallbacks']['set']('deletion:join',_0x39e050),this['_defaultCallbacks']['set']('deletion:chain',_0x4e0c10),this['_defaultCallbacks']['set']('formatInline:accept',_0x2ac8e8),this['_defaultCallbacks']['set']('formatInline:discard',_0x4d5582),this['_defaultCallbacks']['set']('formatInline:join',_0x39e050),this['_defaultCallbacks']['set']('formatInline:chain',_0x4d5582),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2ac8e8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4d5582),this['_defaultCallbacks']['set']('formatBlock:join',_0x39e050),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4d5582),this['_defaultCallbacks']['set']('attribute:accept',_0x4d5582),this['_defaultCallbacks']['set']('attribute:discard',(_0x5213d0,_0x55dee2)=>{if(!_0x55dee2)return;const _0x39f0d1=this['_editor']['plugins']['get'](_0x5ee798);this['_model']['change'](_0x1c27c8=>{if(_0x55dee2['key']==Ke)for(const _0xba8b9e of _0x5213d0){const _0x390026=_0xba8b9e['start']['nodeAfter'],_0x4d2b7c=_0x55dee2['oldValue'];_0x1c27c8['rename'](_0x390026,_0x4d2b7c);}else{if(_0x39f0d1['isBlockAttribute'](_0x55dee2['key'])){for(const _0x46f2c4 of _0x5213d0)void 0x0!==_0x55dee2['oldValue']?_0x1c27c8['setAttribute'](_0x55dee2['key'],_0x55dee2['oldValue'],_0x46f2c4['start']['nodeAfter']):_0x1c27c8['removeAttribute'](_0x55dee2['key'],_0x46f2c4['start']['nodeAfter']);}else{for(const _0xf5c73b of _0x5213d0)_0x55dee2['oldValue']?_0x1c27c8['setAttribute'](_0x55dee2['key'],_0x55dee2['oldValue'],_0xf5c73b):_0x1c27c8['removeAttribute'](_0x55dee2['key'],_0xf5c73b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x39e050);}}function qe(_0x565ef5,_0x3fd453,_0x2b77fd){for(const _0x28a542 of _0x3fd453['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x28a542['root']==_0x28a542)return!0x1;if(!_0x2b77fd['containsItem'](_0x28a542))return!0x1;if(_0x565ef5['isObject'](_0x28a542)||_0x565ef5['isLimit'](_0x28a542))return!0x0;}return!0x1;}function Qe(_0x25f7a2){return _0x25f7a2['end']['parent']==_0x25f7a2['start']['nodeAfter']&&_0x25f7a2['end']['isAtStart'];}function Ze(_0x1eb0d0,_0x4eac59,_0x16948c,_0x505118){const _0x417f51=_0x372969=>!_0x372969['item']['is']('$textProxy')&&!_0x505118['isObject'](_0x372969['item']),_0x4f15e6=_0x1eb0d0['start']['getLastMatchingPosition'](_0x417f51),_0x3b0b60=_0x1eb0d0['end']['getLastMatchingPosition'](_0x417f51,{'direction':'backward'});return(!_0x1eb0d0['start']['isEqual'](_0x4f15e6)||!_0x1eb0d0['end']['isEqual'](_0x3b0b60))&&(_0x4f15e6['isBefore'](_0x3b0b60)?_0x16948c['updateMarker'](_0x4eac59,{'range':_0x16948c['createRange'](_0x4f15e6,_0x3b0b60)}):_0x16948c['removeMarker'](_0x4eac59),!0x0);}function Je(_0x3654da){return _0x146957(_0x3654da);}function tn(_0x38b007){const _0xf1c8c3=_0x38b007['start']['nodeAfter'];return _0xf1c8c3&&_0xf1c8c3['is']('element');}function en(_0x4d1a89){return Qe(_0x4d1a89)||function(_0x202d24){return _0x202d24['start']['parent']==_0x202d24['end']['nodeBefore']&&_0x202d24['start']['isAtEnd'];}(_0x4d1a89);}function nn(_0xd9b401,_0x3cb317){try{const _0x5c2422=_0xd9b401['getRange']();for(const _0x3e2f8c of _0x3cb317)if(_0xd9b401!==_0x3e2f8c&&_0x5c2422&&_0x5c2422['isIntersecting'](_0x3e2f8c['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x1b6ab0,_0x487f26){return null==_0x1b6ab0['end']['nodeBefore']&&_0x1b6ab0['end']['parent']==_0x1b6ab0['start']['nodeAfter']?rn(_0x1b6ab0['start']['nodeAfter'],_0x487f26):_0x1b6ab0;}function rn(_0xbe5381,_0x663de8){const _0x29defc=_0x663de8['schema']['isObject'](_0xbe5381)||_0x663de8['schema']['isSelectable'](_0xbe5381);return _0x663de8['createRange'](_0x663de8['createPositionAt'](_0xbe5381,'before'),_0x29defc?_0x663de8['createPositionAfter'](_0xbe5381):_0x663de8['createPositionAt'](_0xbe5381,'end'));}function on(_0x19f3db,_0x109450,_0x3bf170,_0x2b831b){return!!an(_0x19f3db,_0x109450)&&_0x3bf170['end']['isEqual'](_0x2b831b['start']);}function an(_0x470209,_0x16bbca){if(!_0x470209['_isDataLoaded']||!_0x16bbca['_isDataLoaded'])return!0x1;const _0x20a203=new Set(Object['keys'](_0x470209['attributes'])),_0x34face=new Set(Object['keys'](_0x16bbca['attributes']));if(_0x20a203['delete']('groupId'),_0x34face['delete']('groupId'),0x0==_0x20a203['size']&&0x0==_0x34face['size'])return!0x0;if(_0x20a203['size']!=_0x34face['size'])return!0x1;const _0x5ea004={..._0x470209['attributes']},_0x282e4f={..._0x16bbca['attributes']};return delete _0x5ea004['groupId'],delete _0x282e4f['groupId'],JSON['stringify'](_0x5ea004)==JSON['stringify'](_0x282e4f);}function cn(_0x19e723,_0x54083a){const _0x59f8f2=ln(_0x19e723['attributes']),_0x165f0e=ln(_0x54083a);if(!_0x19e723['_isDataLoaded'])return!0x1;for(const _0xf22423 of Object['keys'](_0x165f0e))if(!st(_0x59f8f2[_0xf22423],_0x165f0e[_0xf22423]))return!0x1;return!0x0;}function ln(_0x151edf){const _0xa2e2cc=Object['assign']({},_0x151edf);return delete _0xa2e2cc['skipNestingCheck'],delete _0xa2e2cc['tablePasteChainId'],_0xa2e2cc;}function un(_0x284d59){return _0x284d59['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
26
+ _0x1acdef(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x514885,_0x5a5114,_0x3e4e05,_0x3d7329){super(),this['model']=_0x5a5114,this['view']=_0x3e4e05,this['commentThreadController']=_0x3d7329,this['_editor']=_0x514885,this['_acceptCommand']=_0x514885['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x514885['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x17c6f3,_0xe6e058)=>_0x17c6f3||_0xe6e058),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5d8037=>_0x5d8037&&this['_editor']['model']['canEditAt'](_0x5a5114['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x32d862=>_0x32d862&&this['_editor']['model']['canEditAt'](_0x5a5114['getRanges']())),this['_pendingAction']=null,_0x3e4e05['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3e4e05,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3e4e05,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3e4e05,'change:isDirty',()=>{_0x3e4e05['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 _0x2b3a42=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2b3a42);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x119bc4{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1f93d7,_0x54a691,_0x5d7927,_0x2258b5){super(_0x1f93d7),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5ad65a(_0x1f93d7,At(_0x1f93d7,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x54a691['authoredAt']),this['bind']('authoredAt')['to'](_0x54a691),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',_0x54a691,'authoredAt',this,'descriptionParts',(_0x4a189b,_0x3b1ff0,_0x131a4f)=>{const _0x51089f=_0x131a4f['map'](_0x5b1814=>gt(_0x5b1814['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4a189b-0x1,_0x54a691['author']['name'],_0x3b1ff0?_0x2258b5['formatDateTime'](_0x3b1ff0):'',new DOMParser()['parseFromString'](_0x51089f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x11c164(),this['focusTracker']=new _0x1e241c(),this['keystrokes']=new _0x271c4c(),this['focusCycler']=new _0x196cf9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3c8aa8=>_0x3c8aa8['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x54a691,this['_localUser']=_0x5d7927,this['_config']=_0x2258b5,_0x2258b5['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xdde236(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x436b26}=this['_config'];this['commentsListView']=new _0x436b26(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',_0x110f10=>_0x110f10+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2d5a25,_0xa4597)=>_0x2d5a25||!!_0xa4597);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x48e645}=this['_config'],_0x3aa92e=new _0x48e645(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x25b189=_0x3aa92e['commentInputView'];return _0x3aa92e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x25b189,'value',(_0x380b84,_0x5d7b65,_0x4d362e)=>!!_0x4d362e||_0x380b84&&!_0x5d7b65),_0x25b189['on']('submit',(_0x383320,_0x295ca5)=>{this['fire']('addComment',_0x295ca5),_0x25b189['editor']['setData']('');}),_0x25b189['on']('cancel',()=>this['focus']()),_0x25b189['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3aa92e;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x1e78c8,_0x1c6b88,_0x345008,_0x332a69){super(_0x1e78c8,_0x1c6b88,_0x345008,_0x332a69),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x331728=>_0x331728&&_0x331728[0x0]?_0x331728[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4e253f,_0x3c4e9f)=>{let _0x1eb7ee='';for(const _0x5e0790 of _0x4e253f)_0x1eb7ee+='<p>'+gt(_0x5e0790['content'],_0x5e0790['color'])+'</p>';return _0x3c4e9f?_0x1eb7ee:_0x3a0043(_0x1eb7ee,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x332a69['SuggestionView'](_0x1e78c8,_0x1c6b88,{'formatDateTime':_0x332a69['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x44aa7b=this['bindTemplate'],_0x377889=[this['suggestionView']];return this['commentsListView']&&_0x377889['push'](this['commentsListView']),this['commentThreadInputView']&&_0x377889['push'](this['commentThreadInputView']),_0x377889['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x44aa7b['if']('isActive','ck-suggestion-wrapper--active'),_0x44aa7b['to']('type',_0x2e4832=>'ck-suggestion-'+_0x2e4832),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':_0x44aa7b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x377889};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class gn extends _0x119bc4{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2e07b1,_0x203d2d,_0x1fc5d1){super(_0x2e07b1),this['_model']=_0x203d2d,this['_config']=_0x1fc5d1,this['set']('description',''),this['bind']('authoredAt')['to'](_0x203d2d),this['acceptButton']=this['_createButton'](At(_0x2e07b1,'Accept\x20suggestion'),_0x4bf23d,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x2e07b1,'Discard\x20suggestion'),_0x3dc122,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x192e7c(_0x2e07b1,_0x203d2d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x11c164([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1e241c(),this['keystrokes']=new _0x271c4c(),this['focusCycler']=new _0x196cf9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xd8635e=>_0xd8635e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5284f1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5284f1['innerHTML']=this['description'],this['on']('change:description',(_0x465571,_0x19d1ef,_0xd221d3)=>{_0x5284f1['innerHTML']=_0xd221d3;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1e08da=this['bindTemplate'],_0x2b1747=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x1e08da['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1e08da['to']('authoredAt',_0x18c9a2=>this['_config']['formatDateTime'](_0x18c9a2))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x2b1747['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x2b1747}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):At(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):At(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x11a3b8,_0x332365,_0xbf0d4b,_0x4e603c,_0x2748f4){const _0x30aa1d=new _0x47c13f(this['locale']);return _0x30aa1d['set']({'label':_0x11a3b8,'icon':_0x332365,'tooltip':!0x0,'tooltipPosition':_0x2748f4}),_0x30aa1d['extendTemplate']({'attributes':{'class':_0xbf0d4b}}),_0x30aa1d['on']('execute',()=>{this['fire'](_0x4e603c,this['_model']['id']);}),_0x30aa1d;}['_setupKeyboardNavigation'](){const _0x385331=this['element'];this['keystrokes']['listenTo'](_0x385331);for(const _0x53e63c of this['focusables'])this['focusTracker']['add'](_0x53e63c['element']),this['keystrokes']['listenTo'](_0x53e63c['element']);this['keystrokes']['set']('enter',(_0x1f3c77,_0x56daa1)=>{_0x385331===_0x1f3c77['target']&&(this['focusCycler']['focusFirst'](),_0x56daa1());}),this['keystrokes']['set']('esc',(_0x434dec,_0x498c66)=>{_0x385331!==_0x434dec['target']&&(this['focus'](),_0x498c66());});}}class mn extends _0x2e7e21{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x2e50e2,_0x2a50ee,_0xc5c7a9,_0x1ab3e0];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x325b1b){super(_0x325b1b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4572b2=this['editor']['config'];_0x4572b2['define']('trackChanges.SuggestionThreadView',fn),_0x4572b2['define']('trackChanges.SuggestionView',gn),_0x4572b2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4572b2['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x9125a8,_0x5813f6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x44f211,_0x9434e4]of this['_handleControllerBuffer']){const _0x2be8ef=this['_suggestionToController']['has'](_0x44f211);_0x2be8ef||_0x9434e4?_0x2be8ef&&_0x9434e4&&this['_destroyController'](_0x44f211):this['_initializeController'](_0x44f211);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x1ab3e0)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x9125a8,_0x5813f6);}['init'](){const _0x400b0a=this['editor'],_0x466475=_0x400b0a['plugins']['get'](Xe),_0x145265=_0x400b0a['plugins']['get'](_0xc5c7a9),_0x223a4e=_0x400b0a['plugins']['get'](_0x1ab3e0),_0x311567=_0x400b0a['plugins']['get'](_0x2a50ee);this['_addUIComponentsToFactory'](),_0x223a4e['addSourceCollector'](()=>{const _0x25bb1a=[];for(const [_0x28ccc5,_0x134c76]of Array['from'](this['_suggestionToController'])){const _0xdac32b=_0x28ccc5['getAllAdjacentSuggestions'](),_0x23a83b=[];for(const _0x4febba of _0xdac32b){if(!_0x4febba['isInContent'])continue;if(_0x4febba['isMultiRange']){_0x23a83b['push'](..._0x4febba['getRanges']());continue;}const _0x97008c=_0x4febba['getFirstRange']();if(_0x23a83b['length']>0x0){const _0x10e137=_0x23a83b[0x0]['getJoined'](_0x97008c);if(_0x10e137){_0x23a83b[0x0]=_0x10e137;continue;}}_0x23a83b['push'](_0x97008c);}_0x25bb1a['push']([_0x134c76['view'],_0x23a83b]);}return _0x25bb1a;}),this['listenTo'](_0x466475,'suggestionLoaded',(_0x45ad92,_0x488edf)=>{this['listenTo'](_0x488edf,'change:previous',(_0x594baf,_0x1570d0,_0xbeffc5,_0x2d57f8)=>{_0x488edf['isInContent']&&(null==_0xbeffc5?(this['_updateController'](_0x2d57f8['head']),this['_handleSuggestionControllerDelayed'](_0x488edf,!0x1)):(this['_updateController'](_0xbeffc5['head']),null==_0x2d57f8&&this['_handleSuggestionControllerDelayed'](_0x488edf,!0x0)));}),null!==_0x488edf['previous']?this['_updateController'](_0x488edf['head']):this['_handleSuggestionControllerDelayed'](_0x488edf,!0x1);}),this['listenTo'](_0x466475,'suggestionUnloaded',(_0x32ca4b,_0x13382a,_0x2b12b1)=>{this['stopListening'](_0x13382a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x13382a),this['_suggestionToController']['has'](_0x13382a)&&this['_destroyController'](_0x13382a),_0x2b12b1&&this['_updateController'](_0x2b12b1['head']);}),this['listenTo'](_0x466475,'suggestionChanged',(_0x4e21cf,_0x152508)=>{this['_updateController'](_0x152508);}),this['listenTo'](_0x145265,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x311567,'addComment',(_0x321f13,{threadId:_0x88934b,isFromAdapter:_0x4d1a3b})=>{if(_0x4d1a3b||!_0x466475['hasSuggestion'](_0x88934b))return;const _0x5f07b7=_0x466475['getSuggestion'](_0x88934b);this['_suggestionToController']['get'](_0x5f07b7)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4d734e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x215a38;for(const _0x44a729 in _0x4d734e){const _0x56d260=_0x44a729,_0xdd2884=_0x4d734e[_0x56d260];if('trackChangesLicenseKeyValid'==_0xdd2884||'trackChangesLicenseKeyInvalid'==_0xdd2884||'trackChangesLicenseKeyExpired'==_0xdd2884||'trackChangesLicenseKeyDomainLimit'==_0xdd2884||'trackChangesLicenseKeyNotAllowed'==_0xdd2884||'trackChangesLicenseKeyEvaluationLimit'==_0xdd2884||'trackChangesLicenseKeyUsageLimit'==_0xdd2884){delete _0x4d734e[_0x56d260],_0x215a38=_0xdd2884,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x215a38&&_0x4d734e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x215a38&&_0x4d734e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x215a38&&_0x4d734e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x215a38&&_0x4d734e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x215a38&&_0x4d734e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x215a38&&_0x4d734e['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2cb44d){const _0x5248e8=this['_suggestionToController']['get'](_0x2cb44d);if(!_0x5248e8)return null;return this['editor']['plugins']['get'](_0xc5c7a9)['getByInnerView'](_0x5248e8['view'])||null;}['getSuggestionForAnnotation'](_0x2fb069){const _0x1dbe52=this['_viewToController']['get'](_0x2fb069['innerView']);return _0x1dbe52?_0x1dbe52['model']:null;}['_refreshActiveMarkers'](){const _0xf9bc1b=this['editor']['plugins']['get'](_0xc5c7a9),_0x45dc5c=this['editor']['plugins']['get'](Xe),_0x221c7b=Array['from'](_0xf9bc1b['activeAnnotations'],_0x5170ba=>_0x5170ba['innerView'])['filter'](_0x5b73f5=>this['_viewToController']['has'](_0x5b73f5)),_0x5aff84=[];for(const _0x115359 of _0x221c7b){const _0xc59f7b=this['_viewToController']['get'](_0x115359)['model']['getAllAdjacentSuggestions']();_0x5aff84['push'](..._0xc59f7b['reduce']((_0x2e6628,_0x113c6f)=>[..._0x2e6628,..._0x113c6f['getMarkerNames']()],[]));}_0x45dc5c['activeMarkers']=_0x5aff84;}['_addUIComponentsToFactory'](){const _0x44bcab=this['editor'],_0x672e6=_0x44bcab['locale'],_0x3052df=At(_0x672e6,'Track\x20changes'),_0x519285=new _0x3ea138([{'type':'switchbutton','model':new _0x3b6033({'withText':!0x0,'isToggleable':!0x0,'label':_0x3052df,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3b6033({'withText':!0x0,'label':At(_0x672e6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3b6033({'withText':!0x0,'label':At(_0x672e6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3b6033({'withText':!0x0,'label':At(_0x672e6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3b6033({'withText':!0x0,'label':At(_0x672e6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x44bcab['plugins']['has']('TrackChangesPreview')&&_0x519285['addMany']([{'type':'separator'},{'type':'button','model':new _0x3b6033({'withText':!0x0,'label':At(_0x672e6,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x296650 of _0x519285)if(En(_0x296650)){const _0x566481=_0x44bcab['commands']['get'](_0x296650['model']['commandName']);_0x296650['model']['bind']('isOn','isEnabled')['to'](_0x566481,'value','isEnabled');}_0x44bcab['ui']['componentFactory']['add']('trackChanges',_0x22141a=>this['_createToolbarButton'](_0x22141a,_0x519285,_0x3052df)),_0x44bcab['ui']['componentFactory']['add']('menuBar:trackChanges',_0x31b0a5=>this['_createMenuBarMenu'](_0x31b0a5,_0x519285,_0x3052df));}['_createToolbarButton'](_0x19e3a5,_0x4e9550,_0x42892a){const _0x5c937b=_0x555d50(_0x19e3a5,_0x269dc5),_0xd8cf23=this['editor']['commands']['get']('trackChanges');_0x5c937b['buttonView']['set']({'tooltip':_0x42892a,'label':_0x42892a,'icon':_0x34772c}),_0x5c937b['buttonView']['bind']('isOn')['to'](_0xd8cf23,'value'),_0x5c937b['buttonView']['on']('execute',()=>{_0xd8cf23['execute'](),this['editor']['editing']['view']['focus']();}),_0x10ec2d(_0x5c937b,_0x4e9550,{'role':'menu'});const _0x111c8f=[];for(const _0x58e9bb of _0x4e9550)En(_0x58e9bb)&&_0x111c8f['push'](this['editor']['commands']['get'](_0x58e9bb['model']['commandName']));const _0x506b0f=_0x5c937b['buttonView'];return _0x506b0f['actionView']['unbind']('isEnabled'),_0x506b0f['arrowView']['unbind']('isEnabled'),_0x506b0f['actionView']['bind']('isEnabled')['to'](_0xd8cf23,'isEnabled'),_0x506b0f['arrowView']['bind']('isEnabled')['toMany'](_0x111c8f,'isEnabled',(..._0x26874a)=>_0x26874a['some'](_0x2e5aa9=>_0x2e5aa9)),_0x5c937b['on']('execute',_0x2a8188=>{this['editor']['execute'](_0x2a8188['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5c937b;}['_createMenuBarMenu'](_0x6ac326,_0x352c64,_0x4f4d3a){const _0x36f4e9=new _0x23938e(_0x6ac326),_0x395006=this['editor']['commands']['get']('trackChanges');_0x36f4e9['buttonView']['set']({'label':_0x4f4d3a,'icon':_0x34772c});const _0x59defa=new _0x193d37(_0x6ac326);for(const _0x550a4f of _0x352c64){if('separator'==_0x550a4f['type']){_0x59defa['items']['add'](new _0x5d9ed0(_0x6ac326));continue;}const _0x30f488=new _0x1bed7a(_0x6ac326,_0x36f4e9),_0x3d3fcd=new _0x4d065c(_0x6ac326),_0x27743b=_0x550a4f['model'];_0x3d3fcd['bind'](...Object['keys'](_0x27743b))['to'](_0x27743b),_0x3d3fcd['delegate']('execute')['to'](_0x36f4e9),_0x3d3fcd['on']('execute',()=>{this['editor']['execute'](_0x27743b['commandName']),this['editor']['editing']['view']['focus']();}),_0x30f488['children']['add'](_0x3d3fcd),_0x59defa['items']['add'](_0x30f488);}return _0x36f4e9['bind']('isEnabled')['to'](_0x395006,'isEnabled'),_0x36f4e9['panelView']['children']['add'](_0x59defa),_0x36f4e9;}['_initializeController'](_0x58ee1e){const _0x2f315b=this['editor'],_0x2b31b1=_0x2f315b['config'],_0x45ee81=_0x2f315b['plugins']['get'](_0xc5c7a9),_0x41e1a2=_0x2f315b['plugins']['get'](_0x2a50ee),_0x4f05dc=_0x2f315b['plugins']['get'](_0x1ab3e0),_0xdc95b0=_0x2f315b['plugins']['get'](_0x2e50e2)['me'],_0x2d1e9e=_0x2b31b1['get']('trackChanges')['SuggestionThreadView'],_0x131e6d=_0x2b31b1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x43e7e8,CommentThreadInputView:_0x43ce7d}=_0x2f315b['plugins']['get']('CommentsUI');let _0x3ce742,_0x49b781,_0x37b3ea;this['_annotationViews']['has'](_0x58ee1e['id'])?(_0x49b781=this['_annotationViews']['get'](_0x58ee1e['id']),_0x3ce742=_0x49b781['mainView']):(_0x3ce742=new _0x2d1e9e(_0x2f315b['locale'],_0x58ee1e,_0xdc95b0,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2b31b1['get']('comments.editorConfig'),'licenseKey':_0x2b31b1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2b31b1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2b31b1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2b31b1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x80f0ba(_0x2b31b1['get']('locale'),_0x2f315b['locale']),'CommentView':_0x2b31b1['get']('comments')['CommentView'],'CommentsListView':_0x43e7e8,'CommentThreadInputView':_0x43ce7d,'SuggestionView':_0x131e6d}),_0x3ce742['suggestionView']['acceptButton']['on']('execute',()=>{_0x2f315b['editing']['view']['focus']();}),_0x3ce742['suggestionView']['discardButton']['on']('execute',()=>{_0x2f315b['editing']['view']['focus']();}),_0x49b781=_0x45ee81['createAnnotationView'](this['editor']['locale'],_0x3ce742),_0x49b781['bind']('isDirty')['to'](_0x3ce742,'isDirty'),_0x49b781['bind']('length')['to'](_0x3ce742),_0x49b781['bind']('type')['to'](_0x3ce742,'type',_0x59cb5e=>'suggestion-'+_0x59cb5e),_0x3ce742['on']('escape',()=>{_0x37b3ea['fire']('escape');}),this['_annotationViews']['set'](_0x58ee1e['id'],_0x49b781));const _0x429767=_0x41e1a2['createCommentThreadController'](_0x58ee1e['commentThread'],_0x3ce742),_0x2eaec8=new hn(_0x2f315b,_0x58ee1e,_0x3ce742,_0x429767),_0x44c081=_0x58ee1e['getAllAdjacentSuggestions']()['filter'](_0x5daf57=>_0x5daf57['isInContent']);_0x3ce742['descriptionParts']=_0x2f315b['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x44c081),this['_suggestionToController']['set'](_0x58ee1e,_0x2eaec8),this['_viewToController']['set'](_0x3ce742,_0x2eaec8);const _0x491bbb=()=>{const _0x11badc=[],_0x375511=_0x58ee1e['getAllAdjacentSuggestions']()['filter'](_0x5cf1fb=>_0x5cf1fb['isInContent']);for(const _0x3f59a7 of _0x375511)_0x11badc['push'](..._0x3f59a7['getMarkers']());return _0x480318(_0x2f315b['editing'],_0x11badc);};_0x37b3ea=_0x45ee81['createAnnotation']({'view':_0x49b781,'target':_0x491bbb,'type':()=>'suggestion-'+_0x2eaec8['view']['type'],'isVisible':!!_0x491bbb()}),_0x41e1a2['_bindAnnotationToEditors'](_0x3ce742,_0x37b3ea),_0x45ee81['add'](_0x37b3ea),_0x4f05dc['registerAnnotation'](_0x37b3ea);}['_destroyController'](_0xafdb0c){const _0x599333=this['editor']['plugins']['get'](_0x2a50ee),_0x16626b=this['editor']['plugins']['get'](_0xc5c7a9),_0x39531a=this['_suggestionToController']['get'](_0xafdb0c),_0x215d25=_0x39531a['view'],_0x50d8a2=_0x16626b['getByInnerView'](_0x215d25);_0x599333['_unbindEditors'](_0x215d25),_0x50d8a2&&_0x16626b['remove'](_0x50d8a2),this['_suggestionToController']['delete'](_0xafdb0c),this['_viewToController']['delete'](_0x215d25),_0x39531a['destroy']();}['_updateController'](_0x57655e){if(!_0x57655e['isInContent']||!this['_suggestionToController']['has'](_0x57655e))return;const _0x79c960=this['editor']['plugins']['get'](Xe),_0x603f4f=this['_suggestionToController']['get'](_0x57655e),_0x3a4717=_0x57655e['getAllAdjacentSuggestions']();_0x603f4f['view']['descriptionParts']=_0x79c960['descriptionFactory']['getDescriptions'](_0x3a4717);}['destroy'](){for(const _0x178eb4 of this['_suggestionToController']['keys']())this['_destroyController'](_0x178eb4);for(const _0x2199c1 of this['_annotationViews']['values']())_0x2199c1['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x2770ee){return'model'in _0x2770ee;}class Tn extends _0x2e7e21{static get['requires'](){return[Xe,mn,_0x554048];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x16bff6){this['editor']['plugins']['get'](Xe)['adapter']=_0x16bff6;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x462e7f){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x462e7f);}['getSuggestions']({skipNotAttached:_0xf84f30=!0x1,toJSON:_0x4c4c53=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0xf84f30,'toJSON':_0x4c4c53});}['getSuggestion'](_0x10cfb3){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x10cfb3);}}const _n=['Pagination'];class pn extends _0x2e7e21{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4f11e5=this['editor'];if(_0x4f11e5['config']['define']('trackChangesData.editorCreator',_0x2490bb=>{const _0xcf445e=_0x4f11e5['model']['document']['getRootNames']()['reduce']((_0x1c9f2a,_0x3da01d)=>(_0x1c9f2a[_0x3da01d]='',_0x1c9f2a),{});return _0x4f11e5['constructor']['create'](_0xcf445e,_0x2490bb);}),'function'!=typeof _0x4f11e5['config']['get']('trackChangesData')['editorCreator'])throw new _0xc19cc6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x47f03e){return bn(this['editor'],!0x0,_0x47f03e);}['getDataWithDiscardedSuggestions'](_0x2511dd){return bn(this['editor'],!0x1,_0x2511dd);}}class Ln extends _0x2e7e21{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1292ef){function _0x5b56f8(_0x665620){return _0x665620['map'](_0x2aad5a=>String['fromCharCode'](_0x2aad5a))['join']('');}super(_0x1292ef),this['result']='end',_0x1292ef[_0x5b56f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b56f8([0x76,0x69,0x65,0x77])][_0x5b56f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b56f8([0x61,0x75,0x74,0x6f]),_0x1292ef[_0x5b56f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5b56f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b56f8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5b56f8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5b56f8([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function In(_0x18dbed){return void 0x0!==_0x18dbed['getRootsAttributes'];}async function bn(_0x547c3b,_0x599a85,_0x2bae4c){const _0x3a5740=_0x2c5cf9(_0x547c3b,_n);if(_0x3a5740['plugins']['push'](Xe,Ln),In(_0x547c3b)){_0x3a5740['roots']=Object['create'](null);for(const _0x4275da of _0x547c3b['model']['document']['getRootNames']())_0x3a5740['roots'][_0x4275da]={'modelAttributes':_0x547c3b['getRootAttributes'](_0x4275da)};}const _0x352ad7=document['createDocumentFragment'](),_0x2cfa41=_0x547c3b['config']['get']('trackChangesData')['editorCreator'],_0x38c3b2=await _0x2cfa41(_0x3a5740,()=>function(_0x5f5623){const _0x317b6e=document['createElement']('div');return _0x5f5623['appendChild'](_0x317b6e),_0x317b6e;}(_0x352ad7));!function(_0x28bb0a,_0x15aa73){const _0x38c903=_0x28bb0a['model']['document']['getRootNames']()['reduce']((_0x4ebb6b,_0x4f9253)=>(_0x4ebb6b[_0x4f9253]=_0x28bb0a['data']['get']({'rootName':_0x4f9253}),_0x4ebb6b),{}),_0x37e717=_0x28bb0a['plugins']['get']('Users')['users']['map'](_0x3992a2=>({'id':_0x3992a2['id'],'name':_0x3992a2['name']})),_0x5509ad=_0x28bb0a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x321b4a=_0x28bb0a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3ef8f0=_0x15aa73['plugins']['get']('Users'),_0x1ba4e2=_0x15aa73['plugins']['get']('TrackChangesEditing'),_0x406e86=_0x15aa73['plugins']['get']('CommentsRepository');for(const _0x1fb107 of _0x406e86['getCommentThreads']())_0x1fb107['remove']();for(const _0x429784 of _0x37e717)_0x3ef8f0['getUser'](_0x429784['id'])||_0x3ef8f0['addUser'](_0x429784);_0x3ef8f0['me']||_0x3ef8f0['useAnonymousUser']();for(const _0x6f1ba0 of _0x321b4a)_0x406e86['addCommentThread'](_0x6f1ba0);for(const _0x5b7ea3 of _0x5509ad)_0x1ba4e2['addSuggestionData'](_0x5b7ea3);_0x15aa73['data']['set'](_0x38c903);}(_0x547c3b,_0x38c3b2),_0x38c3b2['execute'](_0x599a85?'acceptAllSuggestions':'discardAllSuggestions');const _0x29575e=In(_0x38c3b2)?_0x38c3b2['getFullData'](_0x2bae4c):_0x38c3b2['data']['get'](_0x2bae4c);return await _0x38c3b2['destroy'](),_0x29575e;}class An extends _0x119bc4{['options'];constructor(_0x242a27,_0x1a0a56){super(_0x242a27),this['options']=_0x1a0a56,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'](_0x12719,_0x49cfd3){if(!this['element'])return;const _0x1118fa=[];for(const [_0x5e98d4,_0xb9ec3f]of _0x12719){const _0x43af52=document['createElement']('div');_0x43af52['setAttribute']('data-ck-root-name',_0x5e98d4),_0x43af52['className']=_0xb9ec3f['classes']+'\x20ck-track-changes-preview__root-container',_0x43af52['innerHTML']=_0xb9ec3f['content'],_0x1118fa['push'](_0x43af52);}_0x49cfd3(this['element'],_0x1118fa),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x3e2612{constructor(_0x5de7bf){super(_0x5de7bf),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x18082e=this['editor'],_0x3fc693=_0x18082e['locale'],_0x300cd3=_0x18082e['plugins']['get']('Dialog');let _0x41693f;const _0x1ad940=function(_0x3404a3){const _0x5ed126={};if('editables'in _0x3404a3['ui']['view']){for(const [_0x991b14,_0xc852d0]of Object['entries'](_0x3404a3['ui']['view']['editables']))_0x5ed126[_0x991b14]=_0xc852d0['element'];}else _0x5ed126[_0x3404a3['model']['document']['getRootNames']()[0x0]]=_0x3404a3['ui']['view']['editable']['element'];return _0x5ed126;}(_0x18082e),_0x27a8e5=function(_0x1f47e8){let _0x57b9ab=0x0;for(const _0xcc9229 of Object['values'](_0x1f47e8))_0x57b9ab=Math['max'](_0x57b9ab,_0xcc9229['getBoundingClientRect']()['width']);let _0x5b8eca=0x0;for(const _0x3cd72b of Object['values'](_0x1f47e8))_0x5b8eca+=_0x3cd72b['getBoundingClientRect']()['height'];const _0x327e1c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5f5d25=Math['min'](_0x5b8eca,_0x327e1c);return{'width':_0x57b9ab,'height':_0x5f5d25};}(_0x1ad940);_0x300cd3['show']({'id':'finalContentPreview','title':At(_0x3fc693,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x3fc693,{'dialogRects':_0x27a8e5}),'onHide':()=>{_0x41693f['detachFromDom']();},'onShow':()=>{_0x18082e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x320e3a=>{const _0x43f85d=this['_standarizeRootsData'](_0x320e3a,_0x18082e,_0x1ad940);_0x300cd3['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x43f85d,_0x18082e['config']['get']('trackChanges.preview.renderFunction'));}),_0x41693f=new _0x56e31d(_0x3fc693,[_0x300cd3['view']]),_0x41693f['attachToDom'](),_0x41693f['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x18082e['once']('destroy',()=>{_0x41693f['detachFromDom']();});const _0x132032=_0x300cd3['view']['headerView']['class'];_0x300cd3['view']['headerView']['class']=_0x132032?_0x132032+'\x20ck-reset_all':'ck-reset_all',_0x300cd3['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x300cd3['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2e9708=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x14bb21=_0x2e9708['previewMode'],_0x41a157={};if('$labels'===_0x14bb21){for(const _0x2ad941 of _0x2e9708['getMergeFieldsIds']())_0x41a157[_0x2ad941]=_0x2e9708['getLabel'](_0x2ad941)||_0x2ad941;}else{const _0x2050de='$defaultValues'===_0x14bb21?_0x2e9708['getDefaultValues']():_0x2e9708['getDataSetValues'](_0x14bb21,!0x0);for(const _0x16a635 of Object['entries'](_0x2050de)){const [_0x36c0b5,_0x198cc6]=_0x16a635;_0x41a157[_0x36c0b5]=null!==_0x198cc6?_0x198cc6:_0x2e9708['getLabel'](_0x36c0b5)||_0x36c0b5;}}return{'mergeFieldsData':_0x41a157};}['_standarizeRootsData'](_0x17d9f9,_0x3892b3,_0x28dfa0){let _0x31f014;if('string'==typeof _0x17d9f9){const _0xa3a1f3=_0x3892b3['model']['document']['getRootNames']()[0x0];_0x31f014={[_0xa3a1f3]:_0x17d9f9};}else _0x31f014=_0x17d9f9;const _0x3b60b6=this['_fixMediaEmbeds'](_0x31f014,_0x3892b3),_0x373543=function(_0x2863d0,_0x55cc44){for(const [_0x5c986d,_0x337023]of _0x2863d0)_0x337023['classes']=_0x55cc44[_0x5c986d]['classList']['value']['replace']('ck-focused','');return _0x2863d0;}(this['_sortRoots'](_0x3892b3)['reduce']((_0x2ec365,_0x16b052)=>(_0x2ec365['push']([_0x16b052,{'content':_0x3b60b6[_0x16b052],'classes':''}]),_0x2ec365),[]),_0x28dfa0);return _0x373543;}['_fixMediaEmbeds'](_0x436804,_0x5358e6){if(!_0x5358e6['plugins']['has']('MediaEmbedEditing'))return _0x436804;const _0x20bd8a=_0x5358e6['plugins']['get']('MediaEmbedEditing');for(const [_0x4c7773,_0x16e4e2]of Object['entries'](_0x436804)){const _0x1df97b=document['createElement']('div');_0x1df97b['innerHTML']=_0x16e4e2,(_0x1df97b['querySelectorAll']('figure.media')['forEach'](_0x1aa05c=>{const _0x37cc72=_0x1aa05c['querySelector']('oembed');if(_0x37cc72){const _0x505579=_0x37cc72['getAttribute']('url');if(_0x505579){const _0x4e4dd8=_0x20bd8a['registry']['getMediaViewElement'](new et(_0x5358e6['editing']['view']['document']),_0x505579,{'elementName':'','renderForEditingView':!0x0}),_0x205a95=document['createElement']('div');_0x205a95['classList']['add']('ck-media__wrapper'),_0x4e4dd8['render'](_0x205a95,_0x5358e6['editing']['view']['domConverter']),_0x37cc72['replaceWith'](_0x205a95);}}}),_0x436804[_0x4c7773]=_0x1df97b['innerHTML']);}return _0x436804;}['_sortRoots'](_0xe516aa){if(!function(_0x4c9b51){return void 0x0!==_0x4c9b51['getRootsAttributes'];}(_0xe516aa))return _0xe516aa['model']['document']['getRootNames']();const _0x518cdb=[],_0x3f60c2=new Map();for(const _0x380f0f of _0xe516aa['model']['document']['getRootNames']()){const _0xfe29e3=_0xe516aa['editing']['view']['getDomRoot'](_0x380f0f)['getClientRects']()['item'](0x0);_0x518cdb['push'](_0x380f0f),_0x3f60c2['set'](_0x380f0f,_0xfe29e3);}return _0x518cdb['sort']((_0x34718c,_0x9ef379)=>{const _0x1e1fd3=_0x3f60c2['get'](_0x34718c),_0x13a038=_0x3f60c2['get'](_0x9ef379);return _0x1e1fd3['y']-_0x13a038['y']||_0x1e1fd3['x']-_0x13a038['x'];}),_0x518cdb;}}class Cn extends _0x2e7e21{static get['requires'](){return[pn,_0x225f39];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41b3c9){super(_0x41b3c9),_0x41b3c9['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x41b3c9['config']['define']('trackChanges.preview.renderFunction',(_0x3a5221,_0x363870)=>{for(const _0x384d19 of _0x363870)_0x3a5221['appendChild'](_0x384d19);});}}export{dt as AcceptSuggestionCommand,dn as BaseSuggestionThreadView,ft as DiscardSuggestionCommand,Lt as ExecuteOnAllSuggestionsCommand,It as ExecuteOnSelectedSuggestionsCommand,kn as PreviewFinalContentCommand,bt as Suggestion,kt as SuggestionDescriptionFactory,fn as SuggestionThreadView,gn as SuggestionView,Tn as TrackChanges,ht as TrackChangesCommand,pn as TrackChangesData,Ln as TrackChangesDataGetter,Xe as TrackChangesEditing,Cn as TrackChangesPreview,mn as TrackChangesUI};