@ckeditor/ckeditor5-track-changes 0.0.0-nightly-next-20250305.0 → 0.0.0-nightly-20250307.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +26 -26
  148. package/src/commands/acceptsuggestioncommand.js +1 -1
  149. package/src/commands/discardsuggestioncommand.js +1 -1
  150. package/src/commands/executeonallsuggestionscommand.js +1 -1
  151. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  152. package/src/commands/previewfinalcontentcommand.js +1 -1
  153. package/src/commands/trackchangescommand.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/integrations/aiassistant.js +1 -1
  156. package/src/integrations/alignment.js +1 -1
  157. package/src/integrations/basicstyles.js +1 -1
  158. package/src/integrations/blockquote.js +1 -1
  159. package/src/integrations/bookmark.js +1 -1
  160. package/src/integrations/casechange.js +1 -1
  161. package/src/integrations/ckbox.js +1 -1
  162. package/src/integrations/codeblock.js +1 -1
  163. package/src/integrations/comments.js +1 -1
  164. package/src/integrations/deletecommand.js +1 -1
  165. package/src/integrations/emoji.js +1 -1
  166. package/src/integrations/entercommand.js +1 -1
  167. package/src/integrations/findandreplace.js +1 -1
  168. package/src/integrations/font.js +1 -1
  169. package/src/integrations/formatpainter.js +1 -1
  170. package/src/integrations/heading.js +1 -1
  171. package/src/integrations/highlight.js +1 -1
  172. package/src/integrations/horizontalline.js +1 -1
  173. package/src/integrations/htmlembed.js +1 -1
  174. package/src/integrations/image.js +1 -1
  175. package/src/integrations/imagereplace.js +1 -1
  176. package/src/integrations/imagestyle.js +1 -1
  177. package/src/integrations/importword.js +1 -1
  178. package/src/integrations/indent.js +1 -1
  179. package/src/integrations/inputcommand.js +1 -1
  180. package/src/integrations/legacylist.js +1 -1
  181. package/src/integrations/legacylistproperties.js +1 -1
  182. package/src/integrations/link.js +1 -1
  183. package/src/integrations/list.js +1 -1
  184. package/src/integrations/listproperties.js +1 -1
  185. package/src/integrations/mediaembed.js +1 -1
  186. package/src/integrations/mention.js +1 -1
  187. package/src/integrations/mergefields.js +1 -1
  188. package/src/integrations/multilevellist.js +1 -1
  189. package/src/integrations/pagebreak.js +1 -1
  190. package/src/integrations/paragraph.js +1 -1
  191. package/src/integrations/removeformat.js +1 -1
  192. package/src/integrations/replacesourcecommand.js +1 -1
  193. package/src/integrations/restrictededitingmode.js +1 -1
  194. package/src/integrations/shiftentercommand.js +1 -1
  195. package/src/integrations/standardeditingmode.js +1 -1
  196. package/src/integrations/style.js +1 -1
  197. package/src/integrations/table.js +1 -1
  198. package/src/integrations/tablecaption.js +1 -1
  199. package/src/integrations/tableclipboard.js +1 -1
  200. package/src/integrations/tablecolumnresize.js +1 -1
  201. package/src/integrations/tableheadings.js +1 -1
  202. package/src/integrations/tablemergesplit.js +1 -1
  203. package/src/integrations/tableofcontents.js +1 -1
  204. package/src/integrations/tableproperties.js +1 -1
  205. package/src/integrations/template.js +1 -1
  206. package/src/integrations/title.js +1 -1
  207. package/src/integrations/undo.js +1 -1
  208. package/src/integrations/uploadcare.js +1 -1
  209. package/src/integrations/utils.js +1 -1
  210. package/src/suggestion.js +2 -2
  211. package/src/suggestiondescriptionfactory.js +1 -1
  212. package/src/trackchanges.js +1 -1
  213. package/src/trackchangesdata.js +1 -1
  214. package/src/trackchangesediting.js +1 -1
  215. package/src/trackchangespreview.js +1 -1
  216. package/src/trackchangesui.js +1 -1
  217. package/src/ui/suggestioncontroller.js +2 -2
  218. package/src/ui/view/basesuggestionthreadview.js +1 -1
  219. package/src/ui/view/suggestionthreadview.js +1 -1
  220. package/src/ui/view/suggestionview.js +1 -1
  221. package/src/ui/view/trackchangespreviewview.js +1 -1
  222. package/src/utils/common-translations.js +1 -1
  223. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x280e5a,Plugin as _0x2a35ef,PendingActions as _0x7ccbb7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x415647,ObservableMixin as _0x5c89eb,uid as _0x50c0f0,priorities as _0x5bb9b8,insertToPriorityArray as _0x11e5b3,logWarning as _0x49d6d0,getEnvKeystrokeText as _0x193c4c,FocusTracker as _0x35b955,KeystrokeHandler as _0x443ddb,Collection as _0x4c1118}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x361a3c,IconCancel as _0x410bd1,IconTrackChanges as _0x369f3f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3683e6,View as _0x927a89,ViewCollection as _0x1e95a8,FocusCycler as _0x2dc12a,ViewModel as _0x28756e,createDropdown as _0xdbe06b,SplitButtonView as _0x5986be,addListToDropdown as _0x28c7ed,MenuBarMenuView as _0x5cbf0a,MenuBarMenuListView as _0x19ac3c,ListSeparatorView as _0x5ec8b8,MenuBarMenuListItemView as _0x595c66,MenuBarMenuListItemButtonView as _0xf352ab,BodyCollection as _0x5baf75,Dialog as _0xb527ad}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x27766d,hashObject as _0x540567,surroundingMarkersDetector as _0x2130f1,FOCUS_ANNOTATION_KEYSTROKE as _0x2c8a38,AriaDescriptionView as _0x2abf29,setupThreadKeyboardNavigation as _0x465b52,trimHtml as ti,UserView as _0x2c61ff,LateFocusButtonView as _0x57f5b6,getDateTimeFormatter as _0x26a2e7,getAllMarkersDomElementsSorted as _0x514647,sanitizeEditorConfig as _0x1fa962}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1a1c00,LiveRange as _0x11ce9b,LivePosition as _0x121926,DowncastWriter as _0x301443}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1b7d9f,toWidget as _0x40f76d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x164ae5,set as _0x4fd9b6,isEqual as _0x4f107,unset as _0x280508,omit as Vt}from'es-toolkit/compat';import{Delete as _0x1cd8cf,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1ebfe7,ShiftEnter as _0x52ecc3}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x280e5a{['_enabledCommands'];constructor(_0x26a472,_0x2dcf92){super(_0x26a472),this['_enabledCommands']=_0x2dcf92,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 _0x5db7eb of this['editor']['commands']['commands']())_0x5db7eb['affectsData']&&!this['_enabledCommands']['has'](_0x5db7eb)&&_0x5db7eb['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x176b28 of this['editor']['commands']['commands']())_0x176b28['affectsData']&&!this['_enabledCommands']['has'](_0x176b28)&&_0x176b28['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x280e5a{['_suggestions'];constructor(_0x1fd3bb,_0x35bc68){super(_0x1fd3bb),this['_suggestions']=_0x35bc68,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1c57d4){const _0x4b85a6=this['_suggestions']['get'](_0x1c57d4);if(!_0x4b85a6)throw new _0x415647('track-changes-accept-suggestion-not-found',this);const _0x1eb04b=_0x4b85a6['getRanges']();this['editor']['model']['canEditAt'](_0x1eb04b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4b85a6);}}class R extends _0x280e5a{['_suggestions'];constructor(_0x4bf405,_0x2062ea){super(_0x4bf405),this['_suggestions']=_0x2062ea,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x21049d){const _0x3e7291=this['_suggestions']['get'](_0x21049d);if(!_0x3e7291)throw new _0x415647('track-changes-discard-suggestion-not-found',this);const _0x15010e=_0x3e7291['getRanges']();this['editor']['model']['canEditAt'](_0x15010e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3e7291);}}function ls(_0x2f4e23,_0x4eb4a2){let _0x29f70d='';return _0x29f70d+=_0x2f4e23['split']('*')['map']((_0xebe21d,_0x34a185)=>_0x34a185%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xebe21d)+'</span>':nn(_0xebe21d))['join'](''),_0x4eb4a2&&(_0x29f70d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4eb4a2['value']+'\x22\x20title=\x22'+_0x4eb4a2['title']+'\x22></span>'),_0x29f70d;}function nn(_0x3367bf){const _0x20e666=document['createElement']('span');return _0x20e666['innerText']=_0x3367bf,_0x20e666['innerHTML'];}function ts(_0x2a7f88){return _0x2a7f88['sort']((_0x446f98,_0x206e06)=>'deletion'==_0x446f98['type']&&'deletion'!=_0x206e06['type']?-0x1:'deletion'!=_0x446f98['type']&&'deletion'==_0x206e06['type']?0x1:0x0);}function Zt(_0x567cd4,_0x955bb3){let _0x12c5ea,_0x2205ea=0x0;const _0x315dd7=[],_0x237bba=_0x955bb3['schema'];for(;_0x2205ea<_0x567cd4['length'];){const _0x2234c4=_0x567cd4[_0x2205ea],_0x1d39bd=_0x567cd4[_0x2205ea+0x1];_0x12c5ea||(_0x12c5ea=_0x955bb3['createPositionBefore'](_0x2234c4)),on(_0x955bb3,_0x2234c4,_0x1d39bd)||(_0x315dd7['push'](_0x955bb3['createRange'](_0x12c5ea,_0x237bba['isObject'](_0x2234c4)?_0x955bb3['createPositionAfter'](_0x2234c4):_0x955bb3['createPositionAt'](_0x2234c4,'end'))),_0x12c5ea=null),_0x2205ea++;}return _0x315dd7;}function on(_0x4eb00e,_0x49791a,_0x2277ef){if(!_0x2277ef)return!0x1;const _0x854d27=_0x4eb00e['createPositionAfter'](_0x49791a),_0x2c4329=_0x4eb00e['createPositionBefore'](_0x2277ef);return _0x854d27['isTouching'](_0x2c4329);}function rs(_0xdaf6bf,_0x3c82b6,_0x2120ba){for(;_0x2120ba['length'];){const _0x100ee8=_0x2120ba['splice'](0x0,0x64);_0xdaf6bf['change'](()=>{for(const _0x4862db of _0x100ee8)_0x4862db['isInContent']&&_0x3c82b6['execute'](_0x4862db['id']);});}}class x extends _0x280e5a{['_command'];['_suggestions'];constructor(_0xe7219f,_0x38f7af,_0x42bbcc){super(_0xe7219f),this['_command']=_0x38f7af,this['_suggestions']=_0x42bbcc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x393824=Array['from'](this['_suggestions']['values']())['some'](_0x2752eb=>_0x2752eb['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x393824;}['execute'](){const _0x4ccb6c=ts(Array['from'](this['_suggestions']['values']()));for(const _0x370d8a of _0x4ccb6c){const _0x45c713=_0x370d8a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x45c713))return;}rs(this['editor']['model'],this['_command'],_0x4ccb6c);}}class E extends _0x280e5a{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xf8940a,_0x4d5386,_0x54ff1b){super(_0xf8940a),this['_command']=_0x4d5386,this['_suggestions']=_0x54ff1b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x236e54=this['editor']['model']['document']['selection'],_0x1f116c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1a15d2,_0x13239e){const _0x250ba6=Array['from'](_0x1a15d2['getRanges']()),_0xae8138=new Set();for(const _0x564a5b of _0x13239e)if(_0x564a5b['isInContent']){for(const _0x535909 of _0x250ba6)for(const _0x14739e of _0x564a5b['getRanges']())(_0x535909['isIntersecting'](_0x14739e)||_0x1a15d2['isCollapsed']&&!_0x564a5b['isMultiRange']&&_0x564a5b['next']&&_0x14739e['end']['isTouching'](_0x535909['start']))&&_0xae8138['add'](_0x564a5b);}return _0xae8138;}(_0x236e54,_0x1f116c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1c543e=ts(Array['from'](this['_selectedSuggestions']));for(const _0x33d99b of _0x1c543e){const _0x535759=_0x33d99b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x535759))return;}rs(this['editor']['model'],this['_command'],_0x1c543e);}}class o extends/* #__PURE__ -- @preserve */
24
- _0x5c89eb(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x23dc12,_0x493be7){super(),this['id']=_0x493be7['id'],this['type']=_0x493be7['type'],this['subType']=_0x493be7['subType']||null,this['author']=_0x493be7['author'],this['creator']=_0x493be7['creator']||_0x493be7['author'],this['isExternal']=Boolean(_0x493be7['attributes']&&_0x493be7['attributes']['@external']),this['data']=null,this['_model']=_0x23dc12,this['_onAccept']=_0x493be7['onAccept'],this['_onDiscard']=_0x493be7['onDiscard'],this['_onAttributesChange']=_0x493be7['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x493be7['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 _0x535af5=this;for(;_0x535af5['previous'];)_0x535af5=_0x535af5['previous'];return _0x535af5;}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'](_0x5d9fcc){this['_markerNames']['add'](_0x5d9fcc);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1b4087=>this['_model']['markers']['get'](_0x1b4087))['filter'](_0x50749f=>_0x50749f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x256f77=>{for(const _0x562ec3 of this['getMarkers']())_0x256f77['removeMarker'](_0x562ec3);}),this['_markerNames']['clear']();}['removeMarker'](_0x566bb1){this['_model']['change'](_0x255aee=>{_0x255aee['removeMarker'](_0x566bb1);}),this['_markerNames']['delete'](_0x566bb1);}['addRange'](_0x255816){const _0x2b6faf='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x2b6faf),this['_model']['change'](_0x3f6fad=>{_0x3f6fad['addMarker'](_0x2b6faf,{'range':_0x255816,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x37450c){for(const _0x247504 of this['getRanges']())if(_0x247504['isIntersecting'](_0x37450c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4e0dad=>_0x4e0dad['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x413e96,_0x5371b0)=>[..._0x413e96,..._0x5371b0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2f2f1a=this['getRanges']();if(0x1!=_0x2f2f1a['length'])return null;const _0x2103c5=_0x2f2f1a[0x0],_0x33b813=_0x2103c5['start']['nodeAfter'],_0x56137a=_0x2103c5['end']['nodeBefore'];return _0x33b813 instanceof _0x1a1c00?_0x33b813!=_0x56137a?null:_0x33b813: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 _0x156478=[];let _0x4e8f01=this['head'];for(;_0x4e8f01;)_0x156478['push'](_0x4e8f01),_0x4e8f01=_0x4e8f01['next'];return _0x156478;}['setAttribute'](_0x20e16a,_0x558dfc){const _0x2522f9=_0x164ae5(this['attributes']);_0x4fd9b6(_0x2522f9,_0x20e16a,_0x558dfc),_0x4f107(_0x2522f9,this['attributes'])||(this['attributes']=_0x2522f9,this['_onAttributesChange'](_0x2522f9));}['removeAttribute'](_0x4ff85b){const _0x3d7719=_0x164ae5(this['attributes']);_0x280508(_0x3d7719,_0x4ff85b),_0x4f107(_0x3d7719,this['attributes'])||(this['attributes']=_0x3d7719,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 _0x50c0f0()['substr'](0x1,0x5);}}function c(_0x39ffea,_0x15d40a,_0xe0d37c){const _0x3ff86c=_0x39ffea['t'],t=_0x39ffea['t'];switch(_0x15d40a){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',_0xe0d37c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xe0d37c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xe0d37c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xe0d37c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xe0d37c);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',_0xe0d37c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xe0d37c);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',_0xe0d37c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xe0d37c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xe0d37c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xe0d37c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xe0d37c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xe0d37c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xe0d37c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xe0d37c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xe0d37c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xe0d37c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xe0d37c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xe0d37c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xe0d37c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xe0d37c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xe0d37c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xe0d37c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xe0d37c);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'},_0xe0d37c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xe0d37c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xe0d37c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xe0d37c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xe0d37c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xe0d37c);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'},_0xe0d37c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xe0d37c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xe0d37c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xe0d37c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xe0d37c);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0xe0d37c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xe0d37c);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'},_0xe0d37c);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0xe0d37c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xe0d37c);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'},_0xe0d37c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xe0d37c);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'},_0xe0d37c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xe0d37c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xe0d37c);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'},_0xe0d37c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xe0d37c);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 _0x3ff86c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xe0d37c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3ff86c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xe0d37c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xe0d37c);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'},_0xe0d37c);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'},_0xe0d37c);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'},_0xe0d37c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x15d40a;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3c4d8f,_0x22d394){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3c4d8f,this['_locale']=_0x22d394;}['getDescriptions'](_0x26844e){const _0x33ac78=[],_0x504faf=new Set(),_0x3c86a5=new Set();for(let _0x2fd0d3=0x0;_0x2fd0d3<_0x26844e['length'];_0x2fd0d3++){const _0x14d3db=_0x26844e[_0x2fd0d3];if(!_0x14d3db['isInContent'])continue;const _0x43962e=this['_handleCustomCallbackDescription'](_0x14d3db);if(_0x43962e){if(null!=_0x14d3db['subType']){if(_0x504faf['has'](_0x14d3db['subType']))continue;_0x504faf['add'](_0x14d3db['subType']);}_0x33ac78['push'](_0x43962e);}else{if('attribute'!=_0x14d3db['type'])'insertion'!=_0x14d3db['type']&&'deletion'!=_0x14d3db['type']||this['_handleInsertRemoveSuggestionDescription'](_0x33ac78,_0x14d3db,_0x26844e[_0x2fd0d3+0x1]);else{const _0x4235b3=_0x14d3db['data']['key'];if(_0x3c86a5['has'](_0x4235b3))continue;_0x3c86a5['add'](_0x14d3db['data']['key']),_0x4235b3==u?this['_handleRenameSuggestionDescription'](_0x33ac78,_0x14d3db):this['_handleAttributeSuggestionDescription'](_0x33ac78,_0x14d3db);}}}return this['_resolveDescriptionItems'](_0x33ac78);}['registerDescriptionCallback'](_0x17171e){this['_customCallbacks']['push'](_0x17171e);}['registerElementLabel'](_0x406af7,_0x5b54b2,_0x1cdd06=_0x5bb9b8['normal']){'function'==typeof _0x406af7?_0x11e5b3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x406af7,'label':_0x5b54b2,'priority':_0x1cdd06}):this['_itemLabels']['set'](_0x406af7,_0x5b54b2);}['registerAttributeLabel'](_0x148479,_0x4ec5f1){this['_attributeLabels']['set'](_0x148479,_0x4ec5f1);}['getItemLabel'](_0xd2cfc8,_0x83dedd=0x1){let _0x30124a;for(const _0x1e6d6e of this['_itemLabelsCallbacks'])if(_0x1e6d6e['matchingCallback'](_0xd2cfc8)){_0x30124a=_0x1e6d6e['label'];break;}return _0x30124a||(_0x30124a=this['_itemLabels']['get'](_0xd2cfc8['name'])),_0x30124a?_0x30124a(_0x83dedd):0x1!==_0x83dedd?_0x83dedd+'\x20'+_0xd2cfc8['name']+'s':''+_0xd2cfc8['name'];}['_addDescriptionItems'](_0x465c27,_0x5e1df5){const _0x2bff7a=_0x5e1df5['getFirstRange']()['getWalker'](),_0x5b5e1c='insertion'==_0x5e1df5['type']?'add':'remove';for(const _0x31df88 of _0x2bff7a){const _0x53f90e=_0x31df88['item'],_0x246ba2=_0x465c27[_0x465c27['length']-0x1];if(_0x53f90e['is']('$textProxy'))_0x246ba2&&_0x246ba2['type']['indexOf']('Container')>-0x1&&_0x465c27['pop'](),_0x246ba2&&'text'==_0x246ba2['type']?_0x246ba2[_0x5b5e1c]+=_0x53f90e['data']:_0x465c27['push']({'type':'text','add':'add'==_0x5b5e1c?_0x53f90e['data']:'','remove':'remove'==_0x5b5e1c?_0x53f90e['data']:''});else{if(this['_schema']['isObject'](_0x53f90e)){const _0x3ce8e3=_0x53f90e;if(_0x246ba2&&_0x246ba2['type']['indexOf']('Container')>-0x1&&_0x465c27['pop'](),'elementEnd'==_0x31df88['type'])continue;_0x246ba2&&_0x246ba2['type']==_0x5b5e1c+'Object'&&_0x246ba2['element']['name']==_0x3ce8e3['name']?_0x246ba2['quantity']++:_0x465c27['push']({'type':_0x5b5e1c+'Object','element':_0x3ce8e3,'quantity':0x1}),_0x2bff7a['skip'](_0x1afc6d=>!('elementEnd'==_0x1afc6d['type']&&_0x1afc6d['item']==_0x53f90e));}else{if(this['_schema']['checkChild'](_0x53f90e,'$text')||_0x53f90e['is']('element','softBreak')){const _0x3cd639=_0x53f90e;if('add'==_0x5b5e1c&&'elementStart'==_0x31df88['type']||'remove'==_0x5b5e1c&&'elementEnd'==_0x31df88['type'])continue;if(_0x246ba2&&-0x1==_0x246ba2['type']['indexOf']('Container')){'text'==_0x246ba2['type']&&(_0x246ba2[_0x5b5e1c]+='\x0a');continue;}let _0x2ea709;if(_0x2ea709='add'==_0x5b5e1c?_0x3cd639['nextSibling']&&!this['_schema']['isObject'](_0x3cd639['nextSibling'])?_0x3cd639['nextSibling']:null:_0x3cd639['previousSibling']&&!this['_schema']['isObject'](_0x3cd639['previousSibling'])?_0x3cd639['previousSibling']:null,_0x3cd639['isEmpty']||_0x2ea709&&_0x2ea709['isEmpty']){const _0x231bd3=_0x2ea709&&_0x2ea709['isEmpty']?_0x2ea709:_0x3cd639;_0x246ba2&&_0x246ba2['type']==_0x5b5e1c+'EmptyContainer'&&_0x246ba2['element']['name']==_0x231bd3['name']?_0x246ba2['quantity']++:_0x465c27['push']({'type':_0x5b5e1c+'EmptyContainer','element':_0x231bd3,'quantity':0x1});}else _0x465c27['push']({'type':_0x5b5e1c+'Container','element':_0x3cd639});}}}}}['_resolveDescriptionItems'](_0x24fe85){const _0x332d68=this['_locale'],_0x135ce9=[],_0x41ca76=[],_0x313ed5=[];for(const _0x29ed9b of _0x24fe85)switch(_0x29ed9b['type']){case'text':if(_0x29ed9b['add']=_0x29ed9b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x29ed9b['remove']=_0x29ed9b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x29ed9b['add']&&''!=_0x29ed9b['remove']){_0x135ce9['push']({'type':'replace','content':c(_0x332d68,'REPLACE_TEXT',['\x22'+_0x29ed9b['remove']+'\x22','\x22'+_0x29ed9b['add']+'\x22'])});continue;}if(null!=_0x29ed9b['add']['match'](/^ +$/)){_0x135ce9['push']({'type':'insertion','content':c(_0x332d68,'*Insert:*\x20%0',c(_0x332d68,'ELEMENT_SPACE',_0x29ed9b['add']['length']))});continue;}if(null!=_0x29ed9b['remove']['match'](/^ +$/)){_0x135ce9['push']({'type':'deletion','content':c(_0x332d68,'*Remove:*\x20%0',c(_0x332d68,'ELEMENT_SPACE',_0x29ed9b['remove']['length']))});continue;}if(''!=_0x29ed9b['add']){_0x135ce9['push']({'type':'insertion','content':c(_0x332d68,'*Insert:*\x20%0','\x22'+_0x29ed9b['add']+'\x22')});continue;}_0x135ce9['push']({'type':'deletion','content':c(_0x332d68,'*Remove:*\x20%0','\x22'+_0x29ed9b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x135ce9['push']({'type':'insertion','content':c(_0x332d68,'*Insert:*\x20%0',this['getItemLabel'](_0x29ed9b['element'],_0x29ed9b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x135ce9['push']({'type':'deletion','content':c(_0x332d68,'*Remove:*\x20%0',this['getItemLabel'](_0x29ed9b['element'],_0x29ed9b['quantity']))});continue;case'addContainer':_0x135ce9['push']({'type':'insertion','content':c(_0x332d68,'*Split:*\x20%0',this['getItemLabel'](_0x29ed9b['element'],_0x29ed9b['quantity']))});continue;case'removeContainer':_0x135ce9['push']({'type':'deletion','content':c(_0x332d68,'*Merge:*\x20%0',this['getItemLabel'](_0x29ed9b['element'],_0x29ed9b['quantity']))});continue;case'addFormat':_0x41ca76['push'](_0x29ed9b['key']);continue;case'removeFormat':_0x313ed5['push'](_0x29ed9b['key']);continue;default:_0x135ce9['push'](_0x29ed9b);}if(_0x41ca76['length']){const _0x10b47c=_0x41ca76['map'](_0x5ba89a=>this['_attributeLabels']['has'](_0x5ba89a)?this['_attributeLabels']['get'](_0x5ba89a):_0x5ba89a)['join'](',\x20');_0x135ce9['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x10b47c)});}if(_0x313ed5['length']){const _0x2c5fa0=_0x313ed5['map'](_0x64c0dd=>this['_attributeLabels']['has'](_0x64c0dd)?this['_attributeLabels']['get'](_0x64c0dd):_0x64c0dd)['join'](',\x20');_0x135ce9['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x2c5fa0)});}return _0x135ce9;}['_handleCustomCallbackDescription'](_0x4f2271){for(const _0x2aec60 of this['_customCallbacks']){const _0x3e11e4=_0x2aec60(_0x4f2271);if(_0x3e11e4&&'type'in _0x3e11e4)return _0x3e11e4;}}['_handleAttributeSuggestionDescription'](_0x2fff1f,_0x288ec3){const _0x486ca5=_0x288ec3['data'],_0x282bcd=void 0x0===_0x486ca5['newValue']?'removeFormat':'addFormat';_0x2fff1f['push']({'type':_0x282bcd,'key':_0x486ca5['key']});}['_handleRenameSuggestionDescription'](_0x1f6a70,_0x3c30d8){_0x1f6a70['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3c30d8['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3a04e2,_0x47fa2c,_0xa68952){if(this['_addDescriptionItems'](_0x3a04e2,_0x47fa2c),_0xa68952&&_0xa68952['getFirstRange']()&&!_0x47fa2c['getFirstRange']()['end']['isEqual'](_0xa68952['getFirstRange']()['start'])){const _0xade502=_0x3a04e2[_0x3a04e2['length']-0x1],_0x1c632f='insertion'==_0x47fa2c['type']?'add':'remove';_0xade502&&'text'==_0xade502['type']&&(_0xade502[_0x1c632f]+='\x0a');}}}class U extends _0x2a35ef{['afterInit'](){const _0x28f47a=this['editor'],_0x2cdd7c=_0x28f47a['plugins']['get']('TrackChangesEditing');_0x28f47a['commands']['get']('showAIAssistant')&&_0x2cdd7c['enableCommand']('showAIAssistant');}}class V extends _0x2a35ef{['afterInit'](){const _0x46bf89=this['editor'],_0x2f5db5=_0x46bf89['locale'];if(!_0x46bf89['plugins']['has']('AlignmentEditing'))return;const _0x10658a=_0x46bf89['plugins']['get']('TrackChangesEditing');_0x10658a['enableDefaultAttributesIntegration']('alignment'),_0x10658a['registerBlockAttribute']('alignment'),_0x10658a['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x2f5db5,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52f095=this['editor'],_0x70c07f=_0x52f095['locale'];_0x52f095['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1772c5=>{if('formatBlock'!=_0x1772c5['type'])return;const {data:_0xad0a0}=_0x1772c5;if(_0xad0a0&&'alignment'==_0xad0a0['commandName']){const _0x4a3c84=_0xad0a0['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x70c07f,'*Format:*\x20%0',function(_0x553212){switch(_0x553212){case'left':return c(_0x70c07f,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x70c07f,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x70c07f,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x70c07f,'FORMAT_JUSTIFY_TEXT');}}(_0x4a3c84))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x2a35ef{['afterInit'](){const _0x57f1ea=this['editor'],_0xfa9e17=_0x57f1ea['plugins']['get']('TrackChangesEditing'),_0x476e72=_0x57f1ea['locale'];for(const _0x34d9d2 of Yt){if(!_0x57f1ea['plugins']['has'](_0x34d9d2))continue;const _0x49a67a=_0x34d9d2['slice'](0x0,-0x7)['toLowerCase'](),_0xdb8c7f='FORMAT_'+_0x49a67a['toUpperCase']();_0xfa9e17['enableDefaultAttributesIntegration'](_0x49a67a),_0xfa9e17['registerInlineAttribute'](_0x49a67a),_0xfa9e17['descriptionFactory']['registerAttributeLabel'](_0x49a67a,c(_0x476e72,_0xdb8c7f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x129aea=this['editor'],_0xc391c5=_0x129aea['locale'],_0x28f27f=_0x129aea['plugins']['get']('TrackChangesEditing');function _0x403dba(_0x1474f5,_0x256de6){_0x28f27f['descriptionFactory']['registerDescriptionCallback'](_0x22630e=>{if('formatInline'!=_0x22630e['type'])return;const {data:_0x1d4954}=_0x22630e;return _0x1d4954&&_0x1d4954['commandName']===_0x1474f5?_0x1d4954['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xc391c5,'*Format:*\x20%0',_0x256de6)}:{'type':'format','content':c(_0xc391c5,'*Remove\x20format:*\x20%0',_0x256de6)}:void 0x0;});}_0x403dba('bold',c(_0xc391c5,'FORMAT_BOLD')),_0x403dba('italic',c(_0xc391c5,'FORMAT_ITALIC')),_0x403dba('underline',c(_0xc391c5,'FORMAT_UNDERLINE')),_0x403dba('code',c(_0xc391c5,'FORMAT_CODE')),_0x403dba('strikethrough',c(_0xc391c5,'FORMAT_STRIKETHROUGH')),_0x403dba('subscript',c(_0xc391c5,'FORMAT_SUBSCRIPT')),_0x403dba('superscript',c(_0xc391c5,'FORMAT_SUPERSCRIPT'));}}class G extends _0x2a35ef{['afterInit'](){const _0x9a069c=this['editor'],_0x25b0eb=_0x9a069c['locale'];if(!_0x9a069c['plugins']['has']('BlockQuoteEditing'))return;const _0x1ac637=_0x9a069c['plugins']['get']('TrackChangesEditing'),_0xb9bad4=this['editor']['commands']['get']('blockQuote');_0x1ac637['enableCommand']('blockQuote',(_0x22c445,_0x4d00be={})=>{const _0x5a1485=this['editor']['model']['document']['selection'],_0x2d4013=_0x4d00be&&void 0x0!==_0x4d00be['forceValue']?_0x4d00be['forceValue']:!_0xb9bad4['value'];let _0x21069e=[];if(_0x2d4013){const _0x420f47=Array['from'](_0x5a1485['getSelectedBlocks']())['filter'](_0x2bb5f7=>to(_0x2bb5f7)||function(_0x47dc3e,_0x418cd1){const _0x251a63=_0x418cd1['checkChild'](_0x47dc3e['parent'],'blockQuote'),_0x4efbfc=_0x418cd1['checkChild'](['$root','blockQuote'],_0x47dc3e);return _0x251a63&&_0x4efbfc;}(_0x2bb5f7,this['editor']['model']['schema']));_0x21069e=Zt(_0x420f47,_0x9a069c['model']);}else{const _0x2b1b1d=Array['from'](_0x5a1485['getSelectedBlocks']())['filter'](_0x4987c6=>to(_0x4987c6));_0x21069e=Zt(_0x2b1b1d,_0x9a069c['model']);}_0x9a069c['model']['change'](()=>{for(const _0x488105 of _0x21069e)_0x1ac637['markBlockFormat'](_0x488105,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2d4013}]});});}),_0x1ac637['descriptionFactory']['registerDescriptionCallback'](_0x3b7116=>{const {data:_0x583edd}=_0x3b7116;if(_0x583edd&&'blockQuote'==_0x583edd['commandName']){const _0x1b3d42=c(_0x25b0eb,'ELEMENT_BLOCK_QUOTE');return _0x583edd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x25b0eb,'*Set\x20format:*\x20%0',_0x1b3d42)}:{'type':'format','content':c(_0x25b0eb,'*Remove\x20format:*\x20%0',_0x1b3d42)};}});}}function to(_0x3ebe23){return'blockQuote'==_0x3ebe23['parent']['name'];}class L extends _0x2a35ef{['afterInit'](){const _0x15093a=this['editor'],_0x4b45a1=_0x15093a['locale'],_0x4ddf7e=_0x15093a['plugins']['get']('TrackChangesEditing');_0x15093a['plugins']['has']('BookmarkEditing')&&(_0x4ddf7e['enableCommand']('insertBookmark'),_0x4ddf7e['enableDefaultAttributesIntegration']('updateBookmark'),_0x4ddf7e['registerBlockAttribute']('bookmarkId'),_0x4ddf7e['descriptionFactory']['registerDescriptionCallback'](_0x517dad=>{if('insertion'!=_0x517dad['type']&&'deletion'!=_0x517dad['type']&&'attribute'!=_0x517dad['type'])return;const _0x338bea=_0x517dad['getContainedElement']();if(null==_0x338bea)return;if(!_0x338bea['is']('element','bookmark'))return;const _0x14bfb5=_0x338bea['getAttribute']('bookmarkId');if('insertion'==_0x517dad['type'])return{'type':'insertion','content':c(_0x4b45a1,'*Insert:*\x20%0','\x22'+_0x14bfb5+'\x22\x20'+c(_0x4b45a1,'ELEMENT_BOOKMARK'))};if('deletion'==_0x517dad['type'])return{'type':'deletion','content':c(_0x4b45a1,'*Remove:*\x20%0','\x22'+_0x14bfb5+'\x22\x20'+c(_0x4b45a1,'ELEMENT_BOOKMARK'))};const {data:_0x20bd53}=_0x517dad;if(!_0x20bd53||'bookmarkId'!=_0x20bd53['key'])return;return{'type':'format','content':c(_0x4b45a1,'*Set\x20bookmark:*\x20%0','\x22'+_0x20bd53['newValue']+'\x22')};}));}}class J extends _0x2a35ef{['afterInit'](){const _0x36abca=this['editor'];_0x36abca['plugins']['has']('CaseChange')&&(_0x36abca['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x36abca['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x36abca['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x2a35ef{['afterInit'](){const _0x2b5aa7=this['editor'];_0x2b5aa7['commands']['get']('ckbox')&&_0x2b5aa7['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x2a35ef{['afterInit'](){const _0x4ffc61=this['editor'];if(!_0x4ffc61['plugins']['has']('CodeBlock'))return;const _0x4977e1=_0x4ffc61['plugins']['get']('TrackChangesEditing'),_0x1ef2d6=_0x4ffc61['locale'],_0x129365=_0x4ffc61['config']['get']('codeBlock')['languages'],_0x51ae53=_0x4ffc61['commands']['get']('codeBlock');_0x4977e1['enableCommand']('indentCodeBlock'),_0x4977e1['enableCommand']('outdentCodeBlock'),_0x4977e1['enableCommand']('codeBlock',(_0x41b33d,_0xf7fd7d={})=>{const _0x248988=_0x4ffc61['model'],_0x4a9a5f=_0x4ffc61['model']['document']['selection'],_0x476b60=_0xf7fd7d&&void 0x0!==_0xf7fd7d['forceValue']?_0xf7fd7d['forceValue']:!_0x51ae53['value'];let _0x386b28;_0xf7fd7d['language']||(_0xf7fd7d['language']=_0x129365[0x0]['language']),_0x386b28=_0x476b60?Array['from'](_0x4a9a5f['getSelectedBlocks']())['filter'](_0x3169cd=>oo(_0x3169cd)||function(_0x205d45,_0x5a3d1b){if(_0x205d45['is']('rootElement')||_0x5a3d1b['isLimit'](_0x205d45))return!0x1;return _0x5a3d1b['checkChild'](_0x205d45['parent'],'codeBlock');}(_0x3169cd,_0x248988['schema'])):Array['from'](_0x4a9a5f['getSelectedBlocks']())['filter'](_0x28225c=>oo(_0x28225c));const _0x1dc072=Zt(_0x386b28,_0x248988);_0x248988['change'](()=>{for(const _0x27965d of _0x1dc072)_0x4977e1['markBlockFormat'](_0x27965d,{'commandName':'codeBlock','commandParams':[{..._0xf7fd7d,'forceValue':_0x476b60}],'formatGroupId':'blockName'});});}),(_0x4977e1['descriptionFactory']['registerElementLabel']('codeBlock',_0xce4393=>c(_0x1ef2d6,'ELEMENT_CODE_BLOCK',_0xce4393)),_0x4977e1['descriptionFactory']['registerDescriptionCallback'](_0x10afe5=>{if('formatBlock'!=_0x10afe5['type'])return;const _0x2cefcc=_0x1ef2d6['t'],{data:_0x115112}=_0x10afe5;if(!_0x115112||'codeBlock'!=_0x115112['commandName'])return;const _0x5ee91e=_0x115112['commandParams'][0x0]['language'],_0x536818=_0x2cefcc(_0x129365['find'](_0x419d91=>_0x419d91['language']===_0x5ee91e)['label'])['toLowerCase']();return _0x115112['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1ef2d6,'*Set\x20format:*\x20%0',c(_0x1ef2d6,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x536818+')')}:{'type':'format','content':c(_0x1ef2d6,'*Remove\x20format:*\x20%0',c(_0x1ef2d6,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x3d4754){return'codeBlock'==_0x3d4754['name'];}class q extends _0x2a35ef{['afterInit'](){const _0x2e8d48=this['editor'];if(!_0x2e8d48['plugins']['has']('CommentsEditing'))return;_0x2e8d48['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x8a8243,_0x1fa738,_0x5aff44){const _0x2191f7=[];for(const _0x265e97 of _0x1fa738['getItems']())_0x265e97['hasAttribute'](_0x8a8243)&&_0x2191f7['push'](_0x5aff44['createRangeOn'](_0x265e97));return _0x2191f7;}function De(_0x43e03c,_0x1ab58f,{showActiveMarker:_0x151a9d=!0x0}={}){const _0x5b9027=_0x43e03c['plugins']['get']('TrackChangesEditing');return(_0x2aa22b,_0x51f118,_0x343d7c)=>{if(!_0x343d7c['consumable']['test'](_0x51f118['markerRange'],_0x2aa22b['name']))return;const _0x1e5219=_0x51f118['markerRange']['getWalker'](),_0xc2f413=_0x51f118['markerRange']['start'],_0x5805bc=_0x43e03c['model']['schema'];let _0x415c05=null,_0x2ce78b=null,_0x58bd47=!0x1,_0x12c423=!0x1;for(const _0x22feb1 of _0x1e5219){const _0x7781dd=_0x22feb1['item'];_0x58bd47=_0x58bd47||_0x5805bc['isContent'](_0x7781dd);const _0x5c70da=_0x343d7c['mapper']['toViewElement'](_0x7781dd);if(_0x5c70da&&_0x5c70da['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x22feb1['type']&&(_0x5805bc['isBlock'](_0x7781dd)&&!_0x5805bc['isLimit'](_0x7781dd)&&(_0x7781dd['nextSibling']||_0xc2f413['isAtEnd']?_0x415c05&&_0x415c05['parent']==_0x7781dd||(_0x415c05=_0x7781dd,_0x228754(_0x22feb1['previousPosition']),_0x12c423=!0x0):_0x2ce78b=_0x2ce78b||_0x22feb1['previousPosition']));}function _0x228754(_0x5312f4){const {authorId:_0x4b41fc}=_0x5b9027['_splitMarkerName'](_0x51f118['markerName']),_0x5ecec3=_0x343d7c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1ab58f,'data-author-id':_0x4b41fc}),_0x10593d=_0x343d7c['mapper']['toViewPosition'](_0x5312f4);_0x151a9d&&_0x5b9027['activeMarkers']['includes'](_0x51f118['markerName'])&&_0x343d7c['writer']['addClass']('ck-suggestion-marker--active',_0x5ecec3),_0x343d7c['writer']['insert'](_0x10593d,_0x5ecec3),_0x343d7c['mapper']['bindElementToMarker'](_0x5ecec3,_0x51f118['markerName']);}_0x58bd47||_0x12c423||!_0x2ce78b||_0x228754(_0x2ce78b);};}class z extends _0x2a35ef{static get['requires'](){return[_0x1cd8cf];}['init'](){const _0xba857d=this['editor'],_0x1271b5=_0xba857d['plugins']['get']('TrackChangesEditing');_0x1271b5['enableCommand']('delete');const _0x1a3a25=_0xba857d['commands']['get']('deleteForward');_0x1271b5['enableCommand']('deleteForward',(_0xe73206,_0x46ec6={})=>{const _0x18b76f=_0xba857d['model']['createSelection'](_0xba857d['model']['document']['selection']);_0x18b76f['isCollapsed']&&_0xba857d['model']['modifySelection'](_0x18b76f,{'direction':'forward','unit':_0x46ec6['unit']});const _0x208d43=_0x18b76f['getFirstRange'](),_0xc5e0ef=_0x11ce9b['fromRange'](_0x208d43);let _0x668d9d;_0xe73206(_0x46ec6),_0x668d9d='$graveyard'==_0xc5e0ef['root']['rootName']?_0xba857d['model']['createRange'](_0x208d43['start']):_0xba857d['model']['createRange'](_0xc5e0ef['start'],_0xc5e0ef['end']),_0xc5e0ef['detach'](),_0xba857d['model']['enqueueChange'](_0x1a3a25['buffer']['batch'],_0x1222b0=>{_0x1a3a25['buffer']['lock'](),_0x1222b0['setSelection'](_0x1222b0['createRange'](_0x668d9d['end'])),_0x1a3a25['buffer']['unlock']();});}),_0xba857d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0xba857d,'merge'),{'priority':'high'}),_0xba857d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x197be8,_0x11e189,_0x505733)=>{_0x505733['options']['showSuggestionHighlights']&&De(_0xba857d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x197be8,_0x11e189,_0x505733);},{'priority':'high'}),_0xba857d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x16d47f,_0x208654,_0x7cfdf0)=>{const _0x5ad93e=_0x7cfdf0['mapper']['markerNameToElements'](_0x208654['markerName']);if(_0x5ad93e){for(const _0x1715ec of _0x5ad93e)_0x1715ec['is']('uiElement')&&(_0x7cfdf0['mapper']['unbindElementFromMarkerName'](_0x1715ec,_0x208654['markerName']),_0x7cfdf0['writer']['remove'](_0x1715ec));}},{'priority':'high'});}}class W extends _0x2a35ef{['afterInit'](){const _0xc37d=this['editor'];if(!_0xc37d['plugins']['has']('ListEditing'))return;const _0x4f69fa=_0xc37d['locale'],_0x50894e=_0xc37d['plugins']['get']('TrackChangesEditing'),_0x325b13=_0xc37d['plugins']['has']('TodoListEditing'),_0x5c7597=!!_0xc37d['config']['get']('list.multiBlock');function _0x1258ce(_0x26cfe8){return{'type':'format','content':''+c(_0x4f69fa,'*Set\x20format:*\x20%0',_0x26cfe8)};}function _0x1f43ec(_0x3a721e){return{'type':'format','content':''+c(_0x4f69fa,'*Remove\x20format:*\x20%0',_0x3a721e)};}_0x50894e['enableDefaultAttributesIntegration']('numberedList'),_0x50894e['enableDefaultAttributesIntegration']('bulletedList'),_0x50894e['enableDefaultAttributesIntegration']('customNumberedList'),_0x50894e['enableDefaultAttributesIntegration']('customBulletedList'),_0x50894e['enableDefaultAttributesIntegration']('indentList'),_0x50894e['enableDefaultAttributesIntegration']('outdentList'),_0x50894e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x50894e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x50894e['registerBlockAttribute']('listItemId'),_0x50894e['registerBlockAttribute']('listType'),_0x50894e['registerBlockAttribute']('listIndent'),_0x5c7597&&(_0x50894e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x50894e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x325b13&&(_0x50894e['enableDefaultAttributesIntegration']('todoList'),_0x50894e['enableDefaultAttributesIntegration']('checkTodoList'),_0x50894e['registerBlockAttribute']('todoListChecked'),_0x50894e['descriptionFactory']['registerDescriptionCallback'](_0x3dd6ce=>{const {data:_0x599953}=_0x3dd6ce;if(_0x599953&&'todoListChecked'==_0x599953['key'])return{'type':'format','content':_0x599953['newValue']?c(_0x4f69fa,'*Check\x20item*'):c(_0x4f69fa,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5543fb=>{if(_0x5543fb['batch']['isUndo'])return!0x1;let _0x460397=!0x1;const _0x456172=_0x50894e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e1bee=>'todoListChecked'===_0x50894e['_getAttributeKey'](_0x3e1bee));for(const _0x3a21f8 of _0x456172){'todo'!=_0x3a21f8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x50894e['_findSuggestions'](_0x3a21f8['getFirstRange'](),'attribute')['find'](_0x146afd=>'listType'===_0x50894e['_getAttributeKey'](_0x146afd['suggestion']))||(_0x5543fb['removeMarker'](_0x3a21f8['getFirstMarker']()),_0x460397=!0x0));}return _0x460397;})),_0x50894e['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x4f69fa,'FORMAT_INDENT'));const _0x272842={'type':'format','content':''};_0x50894e['descriptionFactory']['registerDescriptionCallback'](_0x277634=>{const {data:_0x3971aa}=_0x277634;if(!_0x3971aa||'listType'!=_0x3971aa['key'])return;let _0x2ca37d=_0x277634['head'];for(;_0x2ca37d;){if(_0x2ca37d['data']&&(('listStyle'==_0x2ca37d['data']['key']||'listMarkerStyle'==_0x2ca37d['data']['key'])&&(_0x2ca37d['data']['newValue']&&'default'!=_0x2ca37d['data']['newValue']||'default'!=_0x2ca37d['data']['oldValue']&&!_0x3971aa['newValue'])||!_0x5c7597&&_0x2ca37d['data']['key']==u))return _0x272842;_0x2ca37d=_0x2ca37d['next'];}if(null==_0x3971aa['newValue'])switch(_0x3971aa['oldValue']){case'bulleted':return _0x1f43ec(c(_0x4f69fa,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1f43ec(c(_0x4f69fa,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1f43ec(c(_0x4f69fa,'ELEMENT_TODO_LIST'));}switch(_0x3971aa['newValue']){case'bulleted':return _0x1258ce(c(_0x4f69fa,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1258ce(c(_0x4f69fa,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1258ce(c(_0x4f69fa,'ELEMENT_TODO_LIST'));}}),_0x50894e['descriptionFactory']['registerDescriptionCallback'](_0x4a99e9=>{const {data:_0x45c05}=_0x4a99e9;if(_0x45c05&&'listIndent'==_0x45c05['key'])return null==_0x45c05['newValue']||null==_0x45c05['oldValue']&&0x0==_0x45c05['newValue']?_0x272842:void 0x0;}),_0x50894e['descriptionFactory']['registerDescriptionCallback'](_0xc81359=>{if('attribute'!=_0xc81359['type'])return;const {data:_0x34239c}=_0xc81359;if(!_0x34239c||'listItemId'!=_0x34239c['key'])return;const _0x316d20=Te(_0xc81359);return'newValue'==_0x316d20?{'type':'format','content':c(_0x4f69fa,'*Merge:*\x20list\x20item')}:'oldValue'==_0x316d20?{'type':'format','content':c(_0x4f69fa,'*Split:*\x20list\x20item')}:_0x272842;}),_0xc37d['model']['document']['registerPostFixer'](_0x3ffcee=>this['listItemIdFixer'](_0x3ffcee)),_0xc37d['model']['document']['registerPostFixer'](_0x256b01=>this['noTrackChangesFixer'](_0x256b01)),_0xc37d['model']['document']['on']('change:data',(_0xf85c3,_0x21b757)=>{if(_0x21b757['isUndo']||!_0x21b757['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x231244){if(_0x231244['batch']['isUndo']||!_0x231244['batch']['isLocal'])return!0x1;let _0x4830e5=!0x1;const _0x1a1d99=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xcec277=>_0xcec277['data']&&'listItemId'==_0xcec277['data']['key'])['filter'](_0x455302=>_0x455302['data']['newValue']&&_0x455302['data']['oldValue']);for(const _0x471d3e of _0x1a1d99)Te(_0x471d3e)||(_0x231244['removeMarker'](_0x471d3e['getFirstMarker']()),_0x4830e5=!0x0);return _0x4830e5;}['noTrackChangesFixer'](_0x4f2421){if(_0x4f2421['batch']['isUndo']||!_0x4f2421['batch']['isLocal'])return!0x1;const _0x13389d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x13389d['trackChangesCommand']['value'])return!0x1;let _0x5a48b1=!0x1;const _0x110eb6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5b8256=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x47c4a7=>'attribute'==_0x47c4a7['type'])['filter'](_0x459969=>_0x110eb6['includes'](_0x459969['attributeKey']));if(0x0==_0x5b8256['length'])return _0x5a48b1;for(const _0x43d7a7 of _0x5b8256){const _0x31a23d=_0x13389d['_findSuggestions'](_0x43d7a7['range'],'attribute')['filter'](_0x1d0c00=>!_0x1d0c00['meta']['isNextTo'])['map'](_0x4e881a=>_0x4e881a['suggestion'])['filter'](_0x2f8edf=>{const _0x2dee89=_0x13389d['_getAttributeKey'](_0x2f8edf);return _0x110eb6['includes'](_0x2dee89);});if(_0x31a23d['length']){for(const _0x137779 of _0x31a23d)_0x4f2421['removeMarker'](_0x137779['getFirstMarker']());_0x5a48b1=!0x0;}}return _0x5a48b1;}['assureChains'](){const _0x1944fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e5646=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x76c163;const _0x113add=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x32a009=>{if(_0x32a009['data']['oldRange']||!_0x32a009['data']['newRange'])return null;if(!_0x32a009['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1c9540}=_0x1944fa['_splitMarkerName'](_0x32a009['name']);if(!_0x1944fa['hasSuggestion'](_0x1c9540))return null;const _0x42349a=_0x1944fa['getSuggestion'](_0x1c9540);return _0x5e5646['includes'](_0x42349a['data']['key']);})['map'](_0x3b1abd=>{const {id:_0x5895b4}=_0x1944fa['_splitMarkerName'](_0x3b1abd['name']),_0x5379ba=_0x1944fa['getSuggestion'](_0x5895b4);return _0x76c163=_0x5379ba['attributes']['groupId'],_0x5379ba['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x113add['size'])return;const _0x106595=_0x1944fa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2cc1a6=>'attribute'==_0x2cc1a6['type']&&_0x2cc1a6['data']&&_0x5e5646['includes'](_0x2cc1a6['data']['key'])&&_0x2cc1a6['attributes']['groupId']!=_0x76c163)['map'](_0xd8c0f=>({'listItem':_0xd8c0f['getFirstRange']()['start']['nodeAfter'],'groupId':_0xd8c0f['attributes']['groupId']})),_0x580152=new Set();for(const {groupId:_0x2909a2,listItem:_0x5b42d3}of _0x106595)_0x113add['has'](_0x5b42d3)&&_0x580152['add'](_0x2909a2);for(const _0x39d64e of _0x1944fa['getSuggestions']())_0x580152['has'](_0x39d64e['attributes']['groupId'])&&_0x39d64e['setAttribute']('groupId',_0x76c163);}['_supportLegacySuggestions'](){const _0x5a0d27=this['editor'],_0x1d78b8=_0x5a0d27['locale'],_0x45f390=_0x5a0d27['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x45f390['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x16b594,_0x168108){const _0x24360d=[];for(let _0x49588f of _0x16b594)_0x49588f['start']['nodeAfter']===_0x49588f['end']['parent']&&(_0x49588f=_0x5a0d27['model']['createRange'](_0x5a0d27['model']['createPositionAt'](_0x49588f['start']['nodeAfter'],0x0))),_0x24360d['push'](_0x49588f);_0x5a0d27['model']['change'](_0x35ed87=>{const _0x133b4c=_0x5a0d27['model']['document']['selection'],_0x3666e2=Array['from'](_0x133b4c['getRanges']())['map'](_0x4f7a39=>_0x11ce9b['fromRange'](_0x4f7a39));_0x35ed87['setSelection'](_0x24360d),_0x5a0d27['commands']['get'](_0x168108['commandName'])['refresh'](),_0x168108['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5a0d27['execute'](_0x168108['commandName'],..._0x168108['commandParams']),_0x35ed87['setSelection'](_0x3666e2);for(const _0x3d9633 of _0x3666e2)_0x3d9633['detach']();});}),_0x45f390['descriptionFactory']['registerElementLabel'](function(_0x193f09){const _0x540800=!_0x5a0d27['model']['schema']['isObject'](_0x193f09),_0x234169=_0x193f09['previousSibling'],_0x6790ed=_0x193f09['nextSibling'],_0x58311e=_0x193f09['getAttribute']('listItemId'),_0xc6fd3e=!_0x234169||_0x234169['getAttribute']('listItemId')!==_0x58311e,_0x31c600=!_0x6790ed||_0x6790ed['getAttribute']('listItemId')!==_0x58311e;return _0x540800&&Boolean(_0x58311e)&&_0xc6fd3e&&_0x31c600;},_0x288b46=>c(_0x1d78b8,'ELEMENT_LIST_ITEM',_0x288b46));}['_registerLegacyDescription'](){const _0x3994ed=this['editor'],_0x12073b=_0x3994ed['locale'];function _0x35d19d(_0x3fd2f9){const _0x29864=_0x3994ed['commands']['get']('bulletedList')['value'],_0x4da203=_0x3994ed['commands']['get']('numberedList')['value'];return'numberedList'===_0x3fd2f9?_0x29864:_0x4da203;}_0x3994ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x40dd6a){if('formatBlock'!=_0x40dd6a['type'])return;const {data:_0x22d261}=_0x40dd6a;if(!_0x22d261)return;let _0x472e0c,_0x27b316,_0x4c3c2b,_0x56850d;switch(_0x22d261['commandName']){case'bulletedList':_0x4c3c2b=_0x22d261['commandParams'][0x0]['forceValue'],_0x56850d=_0x35d19d(_0x22d261['commandName']),_0x472e0c=_0x4c3c2b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x56850d&&_0x3994ed['config']['get']('list.multiBlock')||(_0x472e0c='*Change\x20to:*\x20%0'),_0x27b316={'type':'format','content':c(_0x12073b,_0x472e0c,c(_0x12073b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4c3c2b=_0x22d261['commandParams'][0x0]['forceValue'],_0x56850d=_0x35d19d(_0x22d261['commandName']),_0x472e0c=_0x4c3c2b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x56850d&&_0x3994ed['config']['get']('list.multiBlock')||(_0x472e0c='*Change\x20to:*\x20%0'),_0x27b316={'type':'format','content':c(_0x12073b,_0x472e0c,c(_0x12073b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x472e0c='*Indent:*\x20%0',_0x27b316={'type':'format','content':c(_0x12073b,_0x472e0c,c(_0x12073b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x472e0c=function(_0x29bf8d){const _0x16501a=_0x29bf8d['getFirstRange']();let _0x3eaa33=_0x16501a['start']['nodeAfter'];for(;_0x3eaa33&&_0x16501a['containsItem'](_0x3eaa33);){if(_0x3eaa33['getAttribute']('listIndent')>0x0)return!0x1;_0x3eaa33=_0x3eaa33['nextSibling'];}return!0x0;}(_0x40dd6a)?c(_0x12073b,'*Format:*\x20remove\x20from\x20%0',c(_0x12073b,function(_0x822057){return'ELEMENT_'+_0x822057['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x40dd6a))):c(_0x12073b,'*Outdent:*\x20%0',c(_0x12073b,'ELEMENT_LIST_ITEM')),_0x27b316={'type':'format','content':_0x472e0c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x22d261['multipleBlocks']&&(_0x472e0c='*Merge:*\x20%0',_0x27b316={'type':'deletion','content':c(_0x12073b,_0x472e0c,c(_0x12073b,'ELEMENT_LIST_ITEM'))});}return _0x27b316;});}}function Te(_0x42234){let _0x434b3b=_0x42234['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x434b3b;){const _0x3060d8=_0x434b3b['getAttribute']('listItemId');if(!_0x3060d8)return!0x1;if(_0x3060d8==_0x42234['data']['newValue'])return'newValue';if(_0x3060d8==_0x42234['data']['oldValue'])return'oldValue';_0x434b3b=_0x434b3b['previousSibling'];}return!0x1;}class Se extends _0x2a35ef{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x49a012=this['editor']['config']['get']('list.properties'),_0x1efb69=this['editor']['plugins']['get']('TrackChangesEditing');_0x49a012['styles']&&(_0x1efb69['enableDefaultAttributesIntegration']('listStyle'),_0x1efb69['registerBlockAttribute']('listStyle')),_0x49a012['reversed']&&(_0x1efb69['enableDefaultAttributesIntegration']('listReversed'),_0x1efb69['registerBlockAttribute']('listReversed')),_0x49a012['startIndex']&&(_0x1efb69['enableDefaultAttributesIntegration']('listStart'),_0x1efb69['registerBlockAttribute']('listStart'));const _0x27aee7={'type':'format','content':''};_0x1efb69['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x31e7b1=this['editor']['locale'];_0x1efb69['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x31e7b1,'FORMAT_LIST_REVERSED')),_0x1efb69['descriptionFactory']['registerDescriptionCallback'](_0x320ed3=>{const {data:_0x5c941a}=_0x320ed3;if(_0x5c941a&&'listReversed'==_0x5c941a['key'])return null==_0x5c941a['newValue']||0x0==_0x5c941a['newValue']&&null==_0x5c941a['oldValue']?_0x27aee7:void 0x0;}),_0x1efb69['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x31e7b1,'FORMAT_LIST_START')),_0x1efb69['descriptionFactory']['registerDescriptionCallback'](_0x236e9e=>{const {data:_0x5a9055}=_0x236e9e;if(_0x5a9055&&'listStart'==_0x5a9055['key'])return null==_0x5a9055['newValue']||0x1==_0x5a9055['newValue']&&null==_0x5a9055['oldValue']?_0x27aee7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x27d7f7=>{if(_0x27d7f7['batch']['isUndo'])return!0x1;let _0x4e8de4=!0x1;const _0x395548=_0x1efb69['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2858ab=>{const _0xc94b88=_0x1efb69['_getAttributeKey'](_0x2858ab);return'listStart'==_0xc94b88||'listReversed'==_0xc94b88;});for(const _0x4d7e07 of _0x395548){const _0x5807a4=_0x4d7e07['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5807a4||'customNumbered'==_0x5807a4)continue;_0x1efb69['_findSuggestions'](_0x4d7e07['getFirstRange'](),'attribute')['find'](_0x26f17d=>'listType'==_0x1efb69['_getAttributeKey'](_0x26f17d['suggestion']))||(_0x27d7f7['removeMarker'](_0x4d7e07['getFirstMarker']()),_0x4e8de4=!0x0);}return _0x4e8de4;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x40fcc6){const _0x421f7a=this['editor']['locale'],{data:_0x1f5bb4}=_0x40fcc6,_0x5740df={'type':'format','content':''};if(!_0x1f5bb4||'listStyle'!=_0x1f5bb4['key'])return;if(!_0x1f5bb4['oldValue'])return'default'==_0x1f5bb4['newValue']?_0x5740df:{'type':'format','content':''+c(_0x421f7a,'*Set\x20format:*\x20%0',c(_0x421f7a,this['_getTranslationKeyForListStyle'](_0x1f5bb4['newValue'])))};if(!_0x1f5bb4['newValue']){if('default'==_0x1f5bb4['oldValue'])return _0x5740df;let _0x7553c=_0x40fcc6['head'];for(;_0x7553c;){if(_0x7553c['data']&&'listType'==_0x7553c['data']['key']&&_0x7553c['data']['newValue'])return _0x5740df;_0x7553c=_0x7553c['next'];}return{'type':'format','content':''+c(_0x421f7a,'*Remove\x20format:*\x20%0',c(_0x421f7a,this['_getTranslationKeyForListStyle'](_0x1f5bb4['oldValue'])))};}if('default'!=_0x1f5bb4['newValue'])return{'type':'format','content':''+c(_0x421f7a,'*Set\x20format:*\x20%0',c(_0x421f7a,this['_getTranslationKeyForListStyle'](_0x1f5bb4['newValue'])))};let _0x4bd9ea=_0x40fcc6['head'];for(;_0x4bd9ea;){if(_0x4bd9ea['data']&&'listType'==_0x4bd9ea['data']['key']&&_0x4bd9ea['data']['newValue']&&_0x4bd9ea['data']['oldValue'])return _0x5740df;_0x4bd9ea=_0x4bd9ea['next'];}return{'type':'format','content':c(_0x421f7a,'*Set\x20format:*\x20%0',c(_0x421f7a,'ELEMENT_'+_0x40fcc6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2122b5=this['editor'],_0x4c43aa=_0x2122b5['locale'];_0x2122b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38c868=>{if('formatBlock'!=_0x38c868['type'])return;const {data:_0x2742b6}=_0x38c868;if(!_0x2742b6)return;let _0x189133,_0x4b5e56;switch(_0x2742b6['commandName']){case'listStyle':_0x189133='*Change\x20to:*\x20%0',_0x4b5e56={'type':'format','content':c(_0x4c43aa,_0x189133,c(_0x4c43aa,this['_getTranslationKeyForListStyle'](_0x2742b6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x189133=_0x2742b6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4b5e56={'type':'format','content':c(_0x4c43aa,_0x189133)};break;case'listStart':_0x189133='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4b5e56={'type':'format','content':c(_0x4c43aa,_0x189133,_0x2742b6['commandParams'][0x0]['startIndex'])};}return _0x4b5e56;});}['_getTranslationKeyForListStyle'](_0x2e9e2e){return'ELEMENT_'+function(_0x40d5c3){if(_e['includes'](_0x40d5c3))return'bulleted';if(Re['includes'](_0x40d5c3))return'numbered';return null;}(_0x2e9e2e)['toUpperCase']()+'_LIST_'+_0x2e9e2e['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2a35ef{['afterInit'](){const _0x28bf2d=this['editor'];_0x28bf2d['commands']['get']('emoji')&&_0x28bf2d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x2a35ef{static get['requires'](){return[_0x1ebfe7];}['init'](){const _0x59fb1e=this['editor'],_0x5a380c=_0x59fb1e['plugins']['get']('TrackChangesEditing'),_0x355984=_0x59fb1e['commands']['get']('enter');_0x5a380c['enableCommand']('enter',()=>{_0x59fb1e['model']['change'](_0x1d7870=>{const _0x5c4b09=_0x59fb1e['model']['document']['selection'],_0x4fe84a=_0x5c4b09['getFirstPosition'](),_0x46cfe1=_0x11ce9b['fromRange'](_0x5c4b09['getFirstRange']());if(_0x355984['enterBlock'](_0x1d7870)){const _0x25d175=_0x59fb1e['model']['createPositionAt'](_0x4fe84a['parent']['nextSibling'],0x0),_0x142e23=_0x1d7870['createRange'](_0x4fe84a,_0x25d175);_0x5a380c['markInsertion'](_0x142e23);}else _0x1d7870['setSelection'](_0x1d7870['createRange'](_0x46cfe1['end']));_0x46cfe1['detach'](),_0x355984['fire']('afterExecute',{'writer':_0x1d7870});});}),_0x59fb1e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x59fb1e,'split'),{'priority':'high'}),_0x59fb1e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x23b966,_0x33b2b2,_0x143573)=>{const _0x4039ae=_0x143573['mapper']['markerNameToElements'](_0x33b2b2['markerName']);if(_0x4039ae){for(const _0x4e8af3 of _0x4039ae)_0x4e8af3['hasClass']('ck-suggestion-marker-split')&&(_0x143573['mapper']['unbindElementFromMarkerName'](_0x4e8af3,_0x33b2b2['markerName']),_0x143573['writer']['remove'](_0x4e8af3));}},{'priority':'high'}),_0x59fb1e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3f74f6,_0x19cb9d,_0x30d158)=>{_0x30d158['options']['showSuggestionHighlights']&&De(_0x59fb1e,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3f74f6,_0x19cb9d,_0x30d158);},{'priority':'high'});}}class Z extends _0x2a35ef{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2c91f8=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c91f8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2c91f8['enableCommand']('findNext'),_0x2c91f8['enableCommand']('findPrevious'),_0x2c91f8['enableCommand']('replace'),_0x2c91f8['enableCommand']('replaceAll');}['handleFindCommand'](_0x401c9d,_0x4128bf,_0x5b47dc={}){const _0x5e4b24=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x401c9d(_0x40a33c=>{let _0x56262b=('string'==typeof _0x4128bf?_0x5e4b24['findByTextCallback'](_0x4128bf,_0x5b47dc):_0x4128bf)(_0x40a33c);Array['isArray'](_0x56262b)&&(_0x56262b={'results':_0x56262b,'searchText':'string'==typeof _0x4128bf?_0x4128bf:''});const _0x517a42=_0x56262b['results']['filter'](_0x430f48=>!0x1===this['_isInDeletionRange'](_0x430f48,_0x40a33c['item']));return{..._0x56262b,'results':_0x517a42};},_0x5b47dc);}['_isInDeletionRange'](_0x4d0e4f,_0x216438){const _0x39fccd=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x216438,_0x4d0e4f['start']),this['editor']['model']['createPositionAt'](_0x216438,_0x4d0e4f['end']));for(const _0x44f08e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x39fccd['getIntersection'](_0x44f08e['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x2a35ef{['afterInit'](){const _0x5727a0=this['editor']['locale'],_0x3d5d3d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2fde3d,commandName:_0x2521ee}of eo)this['editor']['plugins']['has'](_0x2fde3d)&&(_0x3d5d3d['enableDefaultAttributesIntegration'](_0x2521ee),_0x3d5d3d['registerInlineAttribute'](_0x2521ee));_0x3d5d3d['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x5727a0,'FORMAT_FONT_SIZE')),_0x3d5d3d['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x5727a0,'FORMAT_FONT_FAMILY')),_0x3d5d3d['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x5727a0,'FORMAT_FONT_COLOR')),_0x3d5d3d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x5727a0,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4708c5=this['editor'],_0x332dc9=_0x4708c5['locale'];_0x4708c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x886231=>{const _0x429b60=_0x332dc9['t'];if('formatInline'!=_0x886231['type'])return;const {data:_0x5bb9e7}=_0x886231;if(null!=_0x5bb9e7){if('fontSize'==_0x5bb9e7['commandName']){const _0x4ee499=_0x5bb9e7['commandParams'][0x0]['value'];if(_0x4ee499){const _0x3097a2=_0x429b60(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x37119e=>_0x37119e['model']==_0x4ee499)['title'])['toLowerCase']();return{'type':'format','content':c(_0x332dc9,'*Set\x20font\x20size:*\x20%0',_0x3097a2)};}return{'type':'format','content':c(_0x332dc9,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5bb9e7['commandName']){const _0x4d7672=_0x5bb9e7['commandParams'][0x0]['value'];return _0x4d7672?{'type':'format','content':c(_0x332dc9,'*Set\x20font\x20family:*\x20%0',_0x4d7672)}:{'type':'format','content':c(_0x332dc9,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5bb9e7['commandName']){const _0x1f547d=_0x5bb9e7['commandParams'][0x0]['value'];if(_0x1f547d){const _0x452732=_0x3683e6(this['editor']['config']['get']('fontColor.colors'))['find'](_0x437be2=>_0x437be2['model']==_0x1f547d);let _0x23686b=_0x1f547d,_0xca2260='';return _0x452732&&(_0x23686b=_0x452732['label'],_0xca2260=_0x429b60(_0x23686b)['toLowerCase']()),{'type':'format','content':c(_0x332dc9,'*Set\x20font\x20color:*\x20%0',_0xca2260)['trim'](),'color':{'value':_0x1f547d,'title':_0xca2260||_0x23686b}};}return{'type':'format','content':c(_0x332dc9,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5bb9e7['commandName']){const _0x328eed=_0x5bb9e7['commandParams'][0x0]['value'];if(_0x328eed){const _0xa27088=_0x3683e6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xaef2c4=>_0xaef2c4['model']==_0x328eed);let _0x145862=_0x328eed,_0x431a96='';return _0xa27088&&(_0x145862=_0xa27088['label'],_0x431a96=_0x429b60(_0x145862)['toLowerCase']()),{'type':'format','content':c(_0x332dc9,'*Set\x20font\x20background\x20color:*\x20%0',_0x431a96)['trim'](),'color':{'value':_0x328eed,'title':_0x431a96||_0x145862}};}return{'type':'format','content':c(_0x332dc9,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x2a35ef{['afterInit'](){const _0x213457=this['editor'],_0x4c37e5=_0x213457['plugins']['get']('TrackChangesEditing'),_0x7b17bc=_0x213457['commands']['get']('copyFormat'),_0x585666=_0x213457['commands']['get']('pasteFormat');_0x7b17bc&&_0x585666&&(_0x4c37e5['enableDefaultAttributesIntegration']('pasteFormat'),_0x4c37e5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x8b9353=this['editor'],_0x46e208=_0x8b9353['locale'];_0x8b9353['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e0976=>{if('formatBlock'!=_0x5e0976['type']&&'formatInline'!=_0x5e0976['type'])return;const {data:_0x224b63}=_0x5e0976;if(_0x224b63&&'pasteFormat'===_0x224b63['commandName']){const _0x554785=[],_0x76d2ac=_0x224b63['commandParams'][0x0];for(const [_0x3129df,_0x3f1f28]of Object['entries'](_0x76d2ac))_0x554785['push'](ro(_0x8b9353,_0x3129df,_0x3f1f28));return _0x554785['length']?{'type':'format','content':c(_0x46e208,'*Set\x20format\x20to:*\x20%0',_0x554785['join'](',\x20'))}:{'type':'format','content':c(_0x46e208,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3ec566,_0x41612b,_0xa2367){const _0x5bac7a=_0x3ec566['locale']['t'],_0x4c5c60=_0x41612b['split'](/(?=[A-Z])/)['join']('\x20'),_0x24adf8=_0x5bac7a(_0x4c5c60['charAt'](0x0)['toUpperCase']()+_0x4c5c60['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xa2367)return _0x24adf8;if('fontColor'===_0x41612b||'fontBackgroundColor'===_0x41612b){const _0x351db1=_0x3683e6(_0x3ec566['config']['get']('fontColor.colors'))['find'](_0x1385d0=>_0x1385d0['model']==_0xa2367);return _0x24adf8+'\x20('+(_0x351db1?_0x5bac7a(_0x351db1['label'])['toLowerCase']():_0xa2367)+')';}if('fontSize'===_0x41612b&&isNaN(parseFloat(_0xa2367))){const _0x4109b5=_0x3ec566['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3ec566['config']['get']('fontSize.options'))['find'](_0x3cc51c=>_0x3cc51c['model']==_0xa2367);return _0x24adf8+'\x20('+(_0x4109b5?_0x5bac7a(_0x4109b5['title'])['toLowerCase']():_0xa2367)+')';}return _0x24adf8+'\x20('+_0xa2367+')';}class nt extends _0x2a35ef{['_headingOptions'];['afterInit'](){const _0x202689=this['editor'];if(!_0x202689['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x202689['config']['get']('heading.options');const _0x2ded50=_0x202689['locale'],_0x4b4982=_0x202689['plugins']['get']('TrackChangesEditing');_0x4b4982['enableDefaultAttributesIntegration']('heading');for(const _0x427492 of this['_headingOptions'])'paragraph'!=_0x427492['model']&&_0x4b4982['descriptionFactory']['registerElementLabel'](_0x427492['model'],_0x493804=>{const _0x1efb9d=this['_getHeadingLevel'](_0x427492['model']);return null!==_0x1efb9d?_0x25148f(_0x493804,_0x1efb9d):_0x5e5449(_0x493804,_0x427492['title']);});function _0x25148f(_0x5deb22,_0x10852a){return c(_0x2ded50,'ELEMENT_HEADING',[_0x5deb22,_0x10852a]);}function _0x5e5449(_0x45989d,_0x757480){return c(_0x2ded50,'ELEMENT_HEADING_CUSTOM',[_0x45989d,_0x757480]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbd24e8=this['editor'],_0x57172b=_0xbd24e8['locale'];function _0x401d6e(_0x45f231,_0x1d39b9){return c(_0x57172b,'ELEMENT_HEADING_CUSTOM',[_0x45f231,_0x1d39b9]);}_0xbd24e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24b0a8=>{if('formatBlock'!=_0x24b0a8['type'])return;const {data:_0x6ec8}=_0x24b0a8;if(_0x6ec8&&'heading'==_0x6ec8['commandName']){const _0x45ae09=_0x6ec8['commandParams'][0x0]['value'],_0x2d6e92=this['_getHeadingLevel'](_0x45ae09);if(null!==_0x2d6e92)return{'type':'format','content':c(_0x57172b,'*Change\x20to:*\x20%0',(_0x10e6bc=0x1,_0x2e1d63=_0x2d6e92,c(_0x57172b,'ELEMENT_HEADING',[_0x10e6bc,_0x2e1d63])))};const _0x1bdf01=this['_headingOptions']['find'](_0x502e35=>_0x502e35['model']===_0x45ae09)['title'];return{'type':'format','content':c(_0x57172b,'*Change\x20to:*\x20%0',_0x401d6e(0x1,_0x1bdf01))};}var _0x10e6bc,_0x2e1d63;});}['_getHeadingLevel'](_0x2a9738){const _0x2753f2=_0x2a9738['match'](/^heading(\d+)/);if(_0x2753f2)return _0x2753f2[0x1];const _0x53129b=this['_headingOptions']?.['find'](_0x368204=>_0x368204['model']==_0x2a9738);if(_0x53129b&&_0x53129b['view']){const _0x414a91=_0x53129b['view'],_0x624f01=(_0x414a91['name']??_0x414a91)['match'](/^h(\d+)/);if(_0x624f01)return _0x624f01[0x1];}return null;}}class it extends _0x2a35ef{['afterInit'](){const _0x46a08f=this['editor'];if(!_0x46a08f['plugins']['has']('HighlightEditing'))return;const _0x385ee8=_0x46a08f['plugins']['get']('TrackChangesEditing'),_0x4e8aaa=_0x46a08f['locale'];_0x385ee8['enableDefaultAttributesIntegration']('highlight'),_0x385ee8['registerInlineAttribute']('highlight'),_0x385ee8['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x4e8aaa,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fb3f5=this['editor'],_0x41503c=_0x4fb3f5['locale'];_0x4fb3f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12baec=>{if('formatInline'!=_0x12baec['type'])return;const {data:_0x2037df}=_0x12baec;if(_0x2037df&&'highlight'==_0x2037df['commandName']){const _0x2558f1=_0x41503c['t'],_0x4584f1=_0x2037df['commandParams'][0x0]['value'];if(_0x4584f1){const _0x5833d7=_0x4fb3f5['config']['get']('highlight.options')['find'](_0xf02229=>_0xf02229['model']==_0x4584f1),_0x2adad1=_0x2558f1(_0x5833d7['title'])['toLowerCase']();return{'type':'format','content':c(_0x41503c,'*Set\x20highlight:*\x20%0',_0x2adad1),'color':{'value':_0x5833d7['color'],'title':_0x5833d7['title']}};}return{'type':'format','content':c(_0x41503c,'*Remove\x20highlight*',c(_0x41503c,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2a35ef{['afterInit'](){const _0x563d14=this['editor'];if(!_0x563d14['plugins']['has']('HorizontalLineEditing'))return;_0x563d14['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4e739a=_0x563d14['plugins']['get']('TrackChangesEditing'),_0x109a4a=_0x563d14['locale'];_0x4e739a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3675b0=>c(_0x109a4a,'ELEMENT_HORIZONTAL_LINE',_0x3675b0)),_0x563d14['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x8dbc37,{writer:_0x7b26cf,options:_0x447a6b})=>{if(!_0x447a6b['showSuggestionHighlights'])return null;const _0x28165e=_0x7b26cf['createContainerElement']('div'),_0x2bb1ed=_0x7b26cf['createEmptyElement']('hr');return _0x7b26cf['addClass']('ck-horizontal-line',_0x28165e),_0x7b26cf['insert'](_0x7b26cf['createPositionAt'](_0x28165e,0x0),_0x2bb1ed),_0x28165e;},'converterPriority':'high'});}}class ot extends _0x2a35ef{['afterInit'](){const _0x125b70=this['editor'];if(!_0x125b70['plugins']['has']('HtmlEmbed'))return;const _0x1fd25c=_0x125b70['plugins']['get']('TrackChangesEditing'),_0x3b9fad=_0x125b70['locale'];_0x1fd25c['descriptionFactory']['registerElementLabel']('rawHtml',_0x2773f3=>c(_0x3b9fad,'ELEMENT_HTML_EMBED',_0x2773f3)),_0x1fd25c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1fd25c['registerBlockAttribute']('value'),_0x1fd25c['descriptionFactory']['registerDescriptionCallback'](_0x273808=>{if('attribute'!=_0x273808['type'])return;const {data:_0x17d5fe}=_0x273808;if(_0x17d5fe&&'value'==_0x17d5fe['key']&&_0x273808['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x29f788=c(_0x3b9fad,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x3b9fad,'*Change\x20%0\x20content*',_0x29f788)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc54b85=this['editor'],_0x32588a=_0xc54b85['locale'];_0xc54b85['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4249c3=>{if('formatBlock'!=_0x4249c3['type'])return;const {data:_0x5637df}=_0x4249c3;if(_0x5637df&&'htmlEmbed'==_0x5637df['commandName']){const _0x28dc20=c(_0x32588a,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x32588a,'*Change\x20%0\x20content*',_0x28dc20)};}});}}class rt extends _0x2a35ef{['afterInit'](){const _0x5ee8a8=this['editor'];if(!_0x5ee8a8['plugins']['has']('ImageEditing'))return;const _0x5a941e=_0x5ee8a8['plugins']['get']('TrackChangesEditing'),_0x28fc0b=_0x5ee8a8['plugins']['get']('ImageUtils'),_0x686f06=_0x5ee8a8['locale'];_0x5a941e['enableCommand']('insertImage'),_0x5a941e['descriptionFactory']['registerElementLabel']('imageBlock',_0x1a71b8=>c(_0x686f06,'ELEMENT_IMAGE',_0x1a71b8)),_0x5a941e['descriptionFactory']['registerElementLabel']('imageInline',_0x4ec750=>c(_0x686f06,'ELEMENT_INLINE_IMAGE',_0x4ec750)),_0x5a941e['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x686f06,'ELEMENT_CAPTION')),_0x5ee8a8['plugins']['has']('ImageUploadEditing')&&_0x5a941e['enableCommand']('uploadImage'),_0x5ee8a8['plugins']['has']('ImageBlockEditing')&&_0x5ee8a8['plugins']['has']('ImageInlineEditing')&&(_0x5a941e['enableCommand']('imageTypeInline',(_0x1d9dbf,_0x30efd5)=>{const _0x304a0f=_0x28fc0b['getClosestSelectedImageElement'](_0x5ee8a8['model']['document']['selection']);_0x5ee8a8['model']['change'](()=>{_0x5a941e['markBlockFormat'](_0x304a0f,{'commandName':'imageTypeInline','commandParams':[_0x30efd5]},[],'convertBlockImageToInline');});}),_0x5a941e['enableCommand']('imageTypeBlock',(_0x502d12,_0x34098c)=>{_0x5ee8a8['model']['change'](_0x5f0159=>{let _0x24eff1=_0x28fc0b['getClosestSelectedImageElement'](_0x5ee8a8['model']['document']['selection']),_0x3be6a0=_0x5f0159['createRangeOn'](_0x24eff1);const _0x427293=_0x121926['fromPosition'](_0x3be6a0['start'],'toPrevious'),_0x11938a=_0x121926['fromPosition'](_0x3be6a0['end'],'toNext');_0x5a941e['forceDefaultExecution'](()=>_0x502d12(_0x34098c)),_0x24eff1=_0x28fc0b['getClosestSelectedImageElement'](_0x5ee8a8['model']['document']['selection']),_0x3be6a0=_0x5f0159['createRangeOn'](_0x24eff1);const _0x1fecfb=_0x5f0159['createRange'](_0x427293,_0x11938a);_0x427293['detach'](),_0x11938a['detach'](),_0x5a941e['markBlockFormat'](_0x24eff1,{'commandName':'imageTypeInline','commandParams':[_0x34098c]},[],'convertInlineImageToBlock'),_0x1fecfb['start']['isBefore'](_0x3be6a0['start'])&&_0x5a941e['markInsertion'](_0x5f0159['createRange'](_0x1fecfb['start'],_0x3be6a0['start']),'convertInlineImageToBlock'),_0x3be6a0['end']['isBefore'](_0x1fecfb['end'])&&_0x5a941e['markInsertion'](_0x5f0159['createRange'](_0x3be6a0['end'],_0x1fecfb['end']),'convertInlineImageToBlock');});}),_0x5a941e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5a941e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5a941e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5a941e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5a941e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5a941e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x54c02f])=>{const _0x56ee26=_0x5a941e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2db69f=_0x54c02f['start'],_0x27a4ea=_0x54c02f['end'];const _0x23bc83=_0x5ee8a8['model']['schema']['getNearestSelectionRange'](_0x2db69f,'backward'),_0x2b02c5=_0x5ee8a8['model']['schema']['getNearestSelectionRange'](_0x27a4ea,'forward');_0x23bc83['isCollapsed']&&(_0x2db69f=_0x23bc83['start']),_0x2b02c5['isCollapsed']&&(_0x27a4ea=_0x2b02c5['end']),_0x56ee26([_0x5ee8a8['model']['createRange'](_0x2db69f,_0x27a4ea)]);}),_0x5a941e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4291ac),_0x5a941e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4291ac)),_0x5ee8a8['plugins']['has']('ImageCaptionEditing')&&(_0x5a941e['enableCommand']('toggleImageCaption',(_0x475461,_0x1a1351)=>{const _0x6ee8bd=_0x5ee8a8['plugins']['get']('ImageCaptionUtils');let _0x5b0cf2=_0x28fc0b['getClosestSelectedImageElement'](_0x5ee8a8['model']['document']['selection']),_0x15e42f=_0x6ee8bd['getCaptionFromImageModelElement'](_0x5b0cf2);_0x5ee8a8['model']['change'](()=>{if(_0x15e42f)return void _0x5a941e['markDeletion'](_0x5ee8a8['model']['createRangeOn'](_0x15e42f));const _0x594f20=_0x28fc0b['isBlockImage'](_0x5b0cf2);_0x475461(_0x1a1351),_0x5b0cf2=_0x28fc0b['getClosestSelectedImageElement'](_0x5ee8a8['model']['document']['selection']),_0x15e42f=_0x6ee8bd['getCaptionFromImageModelElement'](_0x5b0cf2),_0x5a941e['markInsertion'](_0x5ee8a8['model']['createRangeOn'](_0x15e42f),_0x594f20?null:'imageCaption');});}),_0x5a941e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4291ac));const _0x2ef6b9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2d73ab(_0x24e1a4,_0x7d32ae){const _0x556dda=_0x2ef6b9['findIndex'](({type:_0x1f32b6,subType:_0x5ac0b6})=>_0x24e1a4['type']==_0x1f32b6&&_0x24e1a4['subType']==_0x5ac0b6),_0x5efa24=_0x2ef6b9['findIndex'](({type:_0x5e018a,subType:_0x531afc})=>_0x7d32ae['type']==_0x5e018a&&_0x7d32ae['subType']==_0x531afc);if(_0x556dda<0x0||_0x5efa24<0x0)return!0x1;const _0x54ea93=_0x24e1a4['getFirstRange'](),_0x4d09c7=_0x7d32ae['getFirstRange']();if((0x0==_0x556dda||0x1==_0x556dda)&&0x2==_0x5efa24&&_0x54ea93['isIntersecting'](_0x4d09c7))return!0x0;if(0x2==_0x556dda&&0x3==_0x5efa24){const _0xe79634=_0x5a941e['_findSuggestions'](_0x54ea93,'insertion')['filter'](({suggestion:_0x1f4942,meta:_0x5991bb})=>_0x5991bb['isOwn']&&'convertInlineImageToBlock'==_0x1f4942['subType']);if(_0xe79634['length']>0x1&&_0x4d09c7['end']['isEqual'](_0x54ea93['start']))return!0x0;if(0x1==_0xe79634['length']&&(_0x54ea93['start']['isEqual'](_0x4d09c7['end'])||_0x54ea93['end']['isEqual'](_0x4d09c7['start'])))return!0x0;}if(0x3==_0x556dda&&0x3==_0x5efa24&&_0x54ea93['start']['isBefore'](_0x4d09c7['start'])){const _0x2f039a=_0x54ea93['end']['nodeAfter'],_0x3ca03c=_0x4d09c7['start']['nodeBefore'];return _0x28fc0b['isBlockImage'](_0x2f039a)&&_0x2f039a===_0x3ca03c;}return!0x1;}function _0x4291ac(_0x4f3fef,_0xe1f212){return _0x2d73ab(_0x4f3fef,_0xe1f212)?[_0x4f3fef,_0xe1f212]:_0x2d73ab(_0xe1f212,_0x4f3fef)?[_0xe1f212,_0x4f3fef]:null;}_0x5ee8a8['plugins']['has']('ImageResize')&&(_0x5a941e['enableDefaultAttributesIntegration']('resizeImage'),_0x5a941e['registerBlockAttribute']('resizedWidth'),_0x5a941e['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x686f06,'FORMAT_IMAGE_SIZE'))),_0x5ee8a8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5a941e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5a941e['registerBlockAttribute']('alt')),_0x5ee8a8['plugins']['has']('PictureEditing')&&(_0x5a941e['registerBlockAttribute']('sources'),_0x5a941e['descriptionFactory']['registerDescriptionCallback'](_0x555069=>{if('attribute'!=_0x555069['type'])return;const {data:_0x2427a5}=_0x555069;return _0x2427a5&&'sources'==_0x2427a5['key']?{'type':'format','content':''}:void 0x0;})),_0x5ee8a8['plugins']['has']('ImageSizeAttributes')&&(_0x5a941e['registerBlockAttribute']('width'),_0x5a941e['registerBlockAttribute']('height'),_0x5a941e['descriptionFactory']['registerDescriptionCallback'](_0x5cce46=>{if('attribute'!=_0x5cce46['type'])return;const {data:_0x58b3cf}=_0x5cce46;return!_0x58b3cf||'width'!=_0x58b3cf['key']&&'height'!=_0x58b3cf['key']?void 0x0:{'type':'format','content':''};})),_0x5a941e['descriptionFactory']['registerDescriptionCallback'](_0x49fd42=>{if(!!_0x2ef6b9['find'](({type:_0x370e27,subType:_0x3c9f13})=>_0x49fd42['type']==_0x370e27&&_0x49fd42['subType']==_0x3c9f13))return _0x49fd42['previous']?{}:void 0x0;}),_0x5a941e['descriptionFactory']['registerDescriptionCallback'](_0x1665c1=>{if('insertion'==_0x1665c1['type']||'deletion'==_0x1665c1['type']){const _0x2aabf8=_0x1665c1['getContainedElement']();if(_0x2aabf8&&_0x2aabf8['is']('element','caption'))return{'type':'insertion'==_0x1665c1['type']?'addObject':'removeObject','element':_0x2aabf8,'quantity':0x1};}}),_0x5a941e['descriptionFactory']['registerDescriptionCallback'](_0x5a4294=>'formatBlock'==_0x5a4294['type']&&'convertInlineImageToBlock'==_0x5a4294['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5a4294['type']&&'convertBlockImageToInline'==_0x5a4294['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5a941e['descriptionFactory']['registerDescriptionCallback'](_0x4d3246=>{if('attribute'!=_0x4d3246['type'])return;const {data:_0x447ef2}=_0x4d3246;if(!_0x447ef2||'alt'!=_0x447ef2['key'])return;const _0xd3bc2f=_0x447ef2['newValue'];return _0xd3bc2f?{'type':'format','content':c(_0x686f06,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xd3bc2f+'\x22')}:{'type':'format','content':c(_0x686f06,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b841f=this['editor'],_0x579c9c=_0x1b841f['locale'];_0x1b841f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x129ac3=>{if('formatBlock'!=_0x129ac3['type']&&'formatInline'!=_0x129ac3['type'])return;const {data:_0x1c0034}=_0x129ac3;if(_0x1c0034){if('imageTextAlternative'==_0x1c0034['commandName']){const _0x2f4dd1=_0x1c0034['commandParams'][0x0]['newValue'];return _0x2f4dd1?{'type':'format','content':c(_0x579c9c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2f4dd1+'\x22')}:{'type':'format','content':c(_0x579c9c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1c0034['commandName']){const _0xa07c6f=_0x1c0034['commandParams'][0x0]['width'];return _0xa07c6f?{'type':'format','content':c(_0x579c9c,'*Set\x20image\x20width:*\x20%0',_0xa07c6f)}:{'type':'format','content':c(_0x579c9c,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2a35ef{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5ab37b=this['editor']['locale'],_0x252e78=this['editor']['plugins']['get']('TrackChangesEditing');_0x252e78['enableDefaultAttributesIntegration']('replaceImageSource'),_0x252e78['registerBlockAttribute']('src'),_0x252e78['descriptionFactory']['registerDescriptionCallback'](_0x54bc14=>{if('attribute'!=_0x54bc14['type'])return;const {data:_0x27db04}=_0x54bc14;return _0x27db04&&'src'==_0x27db04['key']?_0x27db04['newValue']&&_0x27db04['oldValue']?{'type':'format','content':c(_0x5ab37b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2be8de=this['editor']['plugins']['get']('TrackChangesEditing');_0x2be8de['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2be8de['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2be8de['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2be8de['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b5776=this['editor'],_0xe39cd3=_0x1b5776['locale'];_0x1b5776['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1063b0=>{if('formatBlock'!=_0x1063b0['type']&&'formatInline'!=_0x1063b0['type'])return;const {data:_0x32d5c4}=_0x1063b0;if(!_0x32d5c4||'replaceImageSource'!=_0x32d5c4['commandName'])return;return{'type':'format','content':c(_0xe39cd3,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2a35ef{['afterInit'](){const _0x4a3a96=this['editor'];if(!_0x4a3a96['plugins']['has']('ImageStyleEditing'))return;const _0x23d508=_0x4a3a96['plugins']['get']('TrackChangesEditing'),_0x34e215=_0x4a3a96['plugins']['get']('ImageUtils'),_0x23cb0d={};_0x23d508['enableCommand']('imageStyle',(_0x169e72,_0x5ef770)=>{const _0x172c28=_0x4a3a96['plugins']['get']('Users')['me'],_0x540a94=_0x4a3a96['commands']['get']('imageStyle');let _0x3a1179=_0x34e215['getClosestSelectedImageElement'](_0x4a3a96['model']['document']['selection']),_0x5af01d=_0x4a3a96['model']['createRangeOn'](_0x3a1179),_0x21daa7=_0x540a94['value'];if(_0x21daa7==_0x5ef770['value'])return;const _0x5a4896={'commandName':'imageStyle','commandParams':[_0x5ef770],'formatGroupId':_0x50c0f0()};_0x4a3a96['model']['change'](()=>{if(_0x23d508['getSuggestions']()['filter'](_0x42ab86=>_0x42ab86['isInContent']&&_0x172c28==_0x42ab86['author']&&('formatBlock'==_0x42ab86['type']||'formatInline'==_0x42ab86['type'])&&('imageStylePreApply'==_0x42ab86['subType']||'imageStylePostApply'==_0x42ab86['subType'])&&_0x42ab86['getFirstRange']()['isEqual'](_0x5af01d))['forEach'](_0x3a94f0=>_0x23d508['discardSuggestion'](_0x3a94f0['head'])),_0x3a1179=_0x34e215['getClosestSelectedImageElement'](_0x4a3a96['model']['document']['selection']),_0x5af01d=_0x4a3a96['model']['createRangeOn'](_0x3a1179),_0x540a94['refresh'](),_0x4a3a96['commands']['get']('imageTypeInline')['refresh'](),_0x4a3a96['commands']['get']('imageTypeBlock')['refresh'](),_0x21daa7=_0x540a94['value'],_0x21daa7!=_0x5ef770['value'])return _0x34e215['isInlineImage'](_0x3a1179)&&_0x540a94['shouldConvertImageType'](_0x5ef770['value'],_0x3a1179)?(_0x169e72({..._0x5ef770,'setImageSizes':!0x1}),_0x3a1179=_0x34e215['getClosestSelectedImageElement'](_0x4a3a96['model']['document']['selection']),void _0x23d508['markBlockFormat'](_0x3a1179,{..._0x5a4896,'commandReversedParams':[{'value':_0x21daa7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x34e215['isBlockImage'](_0x3a1179)?_0x23d508['markBlockFormat'](_0x3a1179,_0x5a4896,[],'imageStylePostApply'):_0x23d508['markInlineFormat'](_0x5af01d,_0x5a4896,'imageStylePostApply'));});});for(const _0x8a0c9e of _0x4a3a96['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x23cb0d[_0x8a0c9e['name']]=_0x8a0c9e['title']['toLowerCase']();_0x23d508['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x23d508['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x23d508['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x23d508['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1ea12f])=>{_0x34e215['setImageNaturalSizeAttributes'](_0x1ea12f['getContainedElement']());}),_0x23d508['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4c3235,_0x428b84)=>{_0x23d508['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4c3235,{'commandName':_0x428b84['commandName'],'commandParams':_0x428b84['commandReversedParams']});}),_0x23d508['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x38cfa0,_0x1bbda8){if(_0x275902(_0x38cfa0,_0x1bbda8))return[_0x38cfa0,_0x1bbda8];if(_0x275902(_0x1bbda8,_0x38cfa0))return[_0x1bbda8,_0x38cfa0];return null;});const _0x3c2de4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x275902(_0x99827c,_0x15bc6c){const _0x4d7878=_0x3c2de4['findIndex'](({type:_0x2beca6,subType:_0x5e7f7b})=>_0x99827c['type']==_0x2beca6&&_0x99827c['subType']==_0x5e7f7b),_0x58a187=_0x3c2de4['findIndex'](({type:_0x3b88c7,subType:_0x52d54a})=>_0x15bc6c['type']==_0x3b88c7&&_0x15bc6c['subType']==_0x52d54a);if(_0x4d7878<0x0||_0x58a187<0x0)return!0x1;const _0x252b01=_0x99827c['getFirstRange'](),_0x5b17f4=_0x15bc6c['getFirstRange']();if((0x0==_0x4d7878||0x1==_0x4d7878)&&0x2==_0x58a187&&_0x252b01['isIntersecting'](_0x5b17f4))return!0x0;if(0x2==_0x4d7878&&0x3==_0x58a187){const _0x11bdef=_0x23d508['_findSuggestions'](_0x252b01,'insertion')['filter'](({suggestion:_0xfcf5cc,meta:_0xc920a2})=>_0xc920a2['isOwn']&&'convertInlineImageToBlock'==_0xfcf5cc['subType']);if(_0x11bdef['length']>0x1&&_0x5b17f4['end']['isEqual'](_0x252b01['start']))return!0x0;if(0x1==_0x11bdef['length']&&(_0x252b01['start']['isEqual'](_0x5b17f4['end'])||_0x252b01['end']['isEqual'](_0x5b17f4['start'])))return!0x0;}if(0x3==_0x4d7878&&0x3==_0x58a187&&_0x252b01['start']['isBefore'](_0x5b17f4['start'])){const _0x54a6bb=_0x252b01['end']['nodeAfter'],_0x4aae15=_0x5b17f4['start']['nodeBefore'];return _0x34e215['isBlockImage'](_0x54a6bb)&&_0x54a6bb===_0x4aae15;}return!0x1;}_0x4a3a96['model']['document']['registerPostFixer'](()=>{let _0x38167d=!0x1;const _0x7c6146=Array['from'](_0x4a3a96['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x235d0d,data:_0x21b994}of _0x7c6146){const {group:_0x2c62d9,type:_0x5c1aeb,subType:_0x36b97e,id:_0x354407}=_0x23d508['_splitMarkerName'](_0x235d0d);if('suggestion'==_0x2c62d9&&_0x23d508['hasSuggestion'](_0x354407)){if('formatBlock'==_0x5c1aeb&&('imageStylePreApply'==_0x36b97e||'imageStylePostApply'==_0x36b97e)){const _0x84391c=_0x23d508['getSuggestion'](_0x354407);if(_0x21b994['newRange']){const _0x309f10=_0x84391c['getFirstRange']()['getContainedElement']();if(_0x34e215['isBlockImage'](_0x309f10))continue;_0x23d508['discardSuggestion'](_0x84391c),_0x38167d=!0x0;}}if('insertion'==_0x5c1aeb&&'imageCaption'==_0x36b97e&&!_0x21b994['newRange']){const _0x3d2e1d=_0x23d508['getSuggestion'](_0x354407);_0x3d2e1d['next']&&_0x3d2e1d['next']['isInContent']&&(_0x23d508['discardSuggestion'](_0x3d2e1d['next']),_0x38167d=!0x0);}}}return _0x38167d;}),this['_registerLegacyDescription'](_0x23cb0d);}['_registerLegacyDescription'](_0xb36bcd){const _0x4a0b75=this['editor'],_0x548f4e=_0x4a0b75['locale'];_0x4a0b75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e1399=>{if('formatBlock'!=_0x3e1399['type']&&'formatInline'!=_0x3e1399['type'])return;const {data:_0x448d90}=_0x3e1399;if(!_0x448d90||'imageStyle'!=_0x448d90['commandName'])return;const _0x428316=_0x448d90['commandParams'][0x0]['value'];return _0x17b0d8('side'===_0x428316?c(_0x548f4e,'FORMAT_SIDE_IMAGE'):_0xb36bcd[_0x428316]||_0x428316);function _0x17b0d8(_0x20b215){return{'type':'format','content':c(_0x548f4e,'*Format:*\x20%0',_0x20b215)};}});}}class ut extends _0x2a35ef{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5a6e19){super(_0x5a6e19),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x317033=this['editor'],_0x5ced43=_0x317033['commands']['get']('importWord'),_0x5255cf=_0x317033['commands']['get']('trackChanges');_0x5ced43&&(_0x5ced43['on']('execute',(_0x38b49c,[,_0x2d5026])=>{this['_trackChangesValueDuringImport']=_0x5255cf['value'],_0x2d5026['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5ced43,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5ced43,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5255cf['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x317033['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1108f7,_0x400db7){const {suggestions:_0x25ba4b}=_0x400db7,_0x5d35a6=this['editor']['commands']['get']('trackChanges'),_0x2e86ca=_0x5d35a6['value'];this['_trackChangesValueDuringImport']!==_0x2e86ca&&(_0x5d35a6['execute'](),this['_trackChangesExecuted']=!0x0),_0x25ba4b&&_0x25ba4b['forEach'](({id:_0x4922e0,type:_0x1852ad,author:_0x5c7b0f,created_at:_0x1ba922})=>{const _0x1c81dc={'id':_0x4922e0,'type':_0x1852ad,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5c7b0f,'createdAt':_0x1ba922?new Date(_0x1ba922):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1c81dc);});}}class ft extends _0x2a35ef{['afterInit'](){const _0x5d9547=this['editor'],_0x30238e=_0x5d9547['plugins']['get']('TrackChangesEditing');if(_0x5d9547['plugins']['has']('IndentEditing')&&(_0x30238e['enableCommand']('indent'),_0x30238e['enableCommand']('outdent')),_0x5d9547['plugins']['has']('IndentBlock')){for(const _0x3c68e7 of['indentBlock','outdentBlock'])_0x30238e['enableDefaultAttributesIntegration'](_0x3c68e7);}const _0x306216=_0x5d9547['locale'];_0x30238e['registerBlockAttribute']('blockIndent'),_0x30238e['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x306216,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4250b4=this['editor'],_0x3eef84=_0x4250b4['locale'],_0x1e5000=_0x4250b4['plugins']['get']('TrackChangesEditing');_0x1e5000['descriptionFactory']['registerDescriptionCallback'](_0x2040b3=>{if('formatBlock'!=_0x2040b3['type'])return;const {data:_0x572aae}=_0x2040b3;if(!_0x572aae)return;if('indentBlock'!=_0x572aae['commandName']&&'outdentBlock'!=_0x572aae['commandName'])return;const _0x24a0f5=_0x2040b3['getItems']()[0x0],_0x135f8b=_0x1e5000['descriptionFactory']['getItemLabel'](_0x24a0f5);return'indentBlock'==_0x572aae['commandName']?{'type':'format','content':c(_0x3eef84,'*Indent:*\x20%0',_0x135f8b)}:'outdentBlock'==_0x572aae['commandName']?{'type':'format','content':c(_0x3eef84,'*Outdent:*\x20%0',_0x135f8b)}:void 0x0;});}}class ht extends _0x2a35ef{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2a35ef{['afterInit'](){const _0x1dc26e=this['editor'];if(!_0x1dc26e['plugins']['has']('LinkEditing'))return;const _0x3cf477=_0x1dc26e['plugins']['get']('TrackChangesEditing'),_0x4a9b21=_0x1dc26e['commands']['get']('link');_0x3cf477['enableDefaultAttributesIntegration']('link'),_0x3cf477['enableDefaultAttributesIntegration']('unlink'),_0x3cf477['registerInlineAttribute']('linkHref');for(const _0x450588 of _0x4a9b21['manualDecorators'])_0x3cf477['registerInlineAttribute'](_0x450588['id']),_0x3cf477['descriptionFactory']['registerAttributeLabel'](_0x450588['id'],'link\x20('+_0x450588['label']['toLowerCase']()+')');_0x3cf477['descriptionFactory']['registerDescriptionCallback'](_0x5d5ece=>{if('attribute'!=_0x5d5ece['type'])return;const {data:_0xc57f80}=_0x5d5ece;if(!_0xc57f80||'linkHref'!=_0xc57f80['key'])return;const _0x231c24=_0xc57f80['newValue'],_0x3f6bde=_0x1dc26e['locale'];return{'type':'format','content':null==_0x231c24?c(_0x3f6bde,'*Remove\x20link*'):c(_0x3f6bde,'*Set\x20link:*\x20%0','\x22'+_0x231c24+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33bd80=this['editor'],_0x3f3459=_0x33bd80['locale'];_0x33bd80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x122b25=>{if('formatInline'!=_0x122b25['type'])return;const {data:_0x11ce77}=_0x122b25;if(_0x11ce77){if('link'==_0x11ce77['commandName']){const _0x32cc42=_0x11ce77['commandParams'][0x0];return{'type':'format','content':c(_0x3f3459,'*Set\x20link:*\x20%0','\x22'+_0x32cc42+'\x22')};}return'unlink'==_0x11ce77['commandName']?{'type':'format','content':c(_0x3f3459,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2a35ef{['afterInit'](){const _0x4cba1c=this['editor'],_0x1e1508=_0x4cba1c['locale'];if(!_0x4cba1c['plugins']['has']('LegacyListEditing'))return;const _0x4f4f5e=_0x4cba1c['plugins']['get']('TrackChangesEditing'),_0x3ec001=_0x4cba1c['plugins']['has']('LegacyTodoListEditing');function _0xcb4d2f(_0x2baba1){return()=>{const _0x45fa35=_0x4cba1c['model']['document']['selection'],_0x44d6cc=_0x4cba1c['commands']['get'](_0x2baba1);if(_0x44d6cc['value'])return void _0x4cba1c['execute']('paragraph',{});const _0x3ca51e=_0x2baba1['slice'](0x0,-0x4),_0x106bec=function(_0x18ef2f,_0x294b30,_0x57e8c5){let _0x16624f=Array['from'](_0x18ef2f)['filter'](_0x3ee26e=>function(_0x2135b0,_0x4125e4){return _0x4125e4['checkChild'](_0x2135b0['parent'],'listItem')&&!_0x4125e4['isObject'](_0x2135b0);}(_0x3ee26e,_0x57e8c5));_0x16624f=_0x16624f['filter'](_0x589adc=>!_0x589adc['is']('element','listItem')||_0x589adc['getAttribute']('listType')!=_0x294b30);const _0x5d8bdb=new Set();for(const _0x4183be of _0x16624f)_0x4183be['is']('element','listItem')?_0x5d8bdb['add'](Le(_0x4183be)):_0x5d8bdb['add'](_0x4183be);return Array['from'](_0x5d8bdb);}(_0x45fa35['getSelectedBlocks'](),_0x3ca51e,_0x4cba1c['model']['schema']);_0x4cba1c['model']['change'](()=>{for(const _0x3b9af9 of _0x106bec)_0x4f4f5e['markBlockFormat'](_0x3b9af9,{'commandName':_0x2baba1,'commandParams':[{'forceValue':!_0x44d6cc['value']}],'formatGroupId':'blockName'},Ee(_0x3b9af9));});};}function _0x1f8378(_0x220819){return()=>{const _0x366904=function(_0x42c237){let _0x106a1c=Array['from'](_0x42c237);const _0x39c808=_0x106a1c['findIndex'](_0x5226a8=>'listItem'!=_0x5226a8['name']);return _0x39c808>-0x1&&(_0x106a1c=_0x106a1c['slice'](0x0,_0x39c808)),_0x106a1c;}(_0x4cba1c['model']['document']['selection']['getSelectedBlocks']()),_0x59fa81=_0x4cba1c['model']['createRange'](_0x4cba1c['model']['createPositionAt'](_0x366904[0x0],'before'),_0x4cba1c['model']['createPositionAt'](_0x366904[_0x366904['length']-0x1],'end'));_0x4cba1c['model']['change'](()=>{_0x4f4f5e['markBlockFormat'](_0x59fa81,{'commandName':_0x220819,'commandParams':[],'formatGroupId':'listIndent'},function(_0x23b846){const _0x39c2c4=new Set();for(const _0x3b342a of _0x23b846){let _0x16a79d=_0x3b342a['nextSibling'];for(;_0x16a79d&&_0x16a79d['getAttribute']('listIndent')>_0x3b342a['getAttribute']('listIndent');)_0x39c2c4['add'](_0x16a79d),_0x16a79d=_0x16a79d['nextSibling'];}return Array['from'](_0x39c2c4);}(_0x366904));});};}_0x4f4f5e['enableCommand']('numberedList',_0xcb4d2f('numberedList')),_0x4f4f5e['enableCommand']('bulletedList',_0xcb4d2f('bulletedList')),_0x3ec001&&_0x4f4f5e['enableCommand']('todoList',_0xcb4d2f('todoList')),_0x4f4f5e['enableCommand']('indentList',_0x1f8378('indentList')),_0x4f4f5e['enableCommand']('outdentList',_0x1f8378('outdentList')),_0x3ec001&&_0x4f4f5e['enableCommand']('checkTodoList',()=>{const _0x3dad39=_0x4cba1c['commands']['get']('checkTodoList'),_0x36336c=Array['from'](_0x3dad39['_selectedElements']);_0x36336c['filter'](_0x1e466b=>_0x1e466b['getAttribute']('todoListChecked')!=_0x3dad39['value']),_0x4cba1c['model']['change'](()=>{for(const _0x50a054 of _0x36336c)_0x4f4f5e['markBlockFormat'](_0x50a054,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3dad39['value']}]});});}),_0x4f4f5e['descriptionFactory']['registerElementLabel']('listItem',_0x58bc44=>c(_0x1e1508,'ELEMENT_LIST_ITEM',_0x58bc44)),_0x4f4f5e['descriptionFactory']['registerDescriptionCallback'](_0x35a7b3=>{if('formatBlock'!=_0x35a7b3['type']&&'formatInline'!=_0x35a7b3['type'])return;const {data:_0x19cc76}=_0x35a7b3;if(_0x19cc76){if('numberedList'==_0x19cc76['commandName']||'bulletedList'==_0x19cc76['commandName']||'todoList'==_0x19cc76['commandName'])switch(_0x19cc76['commandName']['replace']('List','')){case'bulleted':return _0x58eaf0(c(_0x1e1508,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58eaf0(c(_0x1e1508,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58eaf0(c(_0x1e1508,'ELEMENT_TODO_LIST'));}if('indentList'==_0x19cc76['commandName'])return{'type':'format','content':c(_0x1e1508,'*Indent:*\x20%0',c(_0x1e1508,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x19cc76['commandName'])return{'type':'format','content':c(_0x1e1508,'*Outdent:*\x20%0',c(_0x1e1508,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x19cc76['commandName'])return _0x19cc76['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1e1508,'*Check\x20item*')}:{'type':'format','content':c(_0x1e1508,'*Uncheck\x20item*')};}function _0x58eaf0(_0x4b44b6){return{'type':'format','content':c(_0x1e1508,'*Change\x20to:*\x20%0',_0x4b44b6)};}});}}function Le(_0x1be102){const _0x9499f4=_0x1be102['getAttribute']('listIndent');if(0x0==_0x9499f4)return _0x1be102;let _0x235336=_0x1be102;for(;_0x1be102['previousSibling']&&_0x1be102['previousSibling']['is']('element','listItem');){const _0x512920=_0x1be102['previousSibling']['getAttribute']('listIndent');if(_0x512920==_0x9499f4)_0x235336=_0x1be102['previousSibling'];else{if(_0x512920<_0x9499f4)break;}_0x1be102=_0x1be102['previousSibling'];}return _0x235336;}function Ee(_0x1f09e7){const _0x3b727a=[];if(_0x1f09e7['is']('element','listItem')&&_0x1f09e7['getAttribute']('listIndent')>0x0){let _0x104b5a=_0x1f09e7['nextSibling'];for(;_0x104b5a&&'listItem'==_0x104b5a['name']&&_0x104b5a['getAttribute']('listIndent')==_0x1f09e7['getAttribute']('listIndent');)_0x3b727a['push'](_0x104b5a),_0x104b5a=_0x104b5a['nextSibling'];}return _0x3b727a;}class Q extends _0x2a35ef{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4050c6=this['editor']['config']['get']('list.properties'),_0x115d18=this['editor']['plugins']['get']('TrackChangesEditing');_0x4050c6['styles']&&_0x115d18['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4050c6['reversed']&&_0x115d18['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4050c6['startIndex']&&_0x115d18['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x115d18['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4a49c8,_0x4ae21b={}){const _0x49e7ed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x324db7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x49e7ed['markMultiRangeBlockFormat'](_0x324db7,{'commandName':'listStyle','commandParams':[{'type':_0x4ae21b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xfaa7e,_0x191b13={}){const _0x4e27e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1328c5=this['_getSuggestionBlocks'](_0xd52ff6=>_0xd52ff6['is']('element','listItem')&&'numbered'===_0xd52ff6['getAttribute']('listType'));if(_0x1328c5['length']<0x1)return;const _0x5a754d=_0x1328c5['map'](_0x3a2fc7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a2fc7,'before'),this['editor']['model']['createPositionAt'](_0x3a2fc7,0x0)));this['editor']['model']['change'](()=>{_0x4e27e5['markMultiRangeBlockFormat'](_0x5a754d,{'commandName':'listReversed','commandParams':[{'reversed':_0x191b13['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3ea9f8,_0x17e76c={}){const _0x4b448f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28fa6b=this['_getSuggestionBlocks'](_0x3f2014=>_0x3f2014['is']('element','listItem')&&'numbered'===_0x3f2014['getAttribute']('listType'));if(_0x28fa6b['length']<0x1)return;const _0x52b522=_0x28fa6b['map'](_0x243bcd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x243bcd,'before'),this['editor']['model']['createPositionAt'](_0x243bcd,0x0)));this['editor']['model']['change'](()=>{_0x4b448f['markMultiRangeBlockFormat'](_0x52b522,{'commandName':'listStart','commandParams':[{'startIndex':_0x17e76c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xa95fa8){if('formatBlock'!=_0xa95fa8['type']&&'formatInline'!=_0xa95fa8['type'])return;const _0x1136ee=this['editor']['locale'],{data:_0x422dd6}=_0xa95fa8;if(!_0x422dd6)return;let _0x137b8c,_0x5b5e92;switch(_0x422dd6['commandName']){case'listStyle':_0x137b8c='*Change\x20to:*\x20%0',_0x5b5e92={'type':'format','content':c(_0x1136ee,_0x137b8c,c(_0x1136ee,this['_getTranslationKeyForListStyle'](_0x422dd6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x137b8c=_0x422dd6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5b5e92={'type':'format','content':c(_0x1136ee,_0x137b8c)};break;case'listStart':_0x137b8c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5b5e92={'type':'format','content':c(_0x1136ee,_0x137b8c,_0x422dd6['commandParams'][0x0]['startIndex'])};}return _0x5b5e92;}['_getSuggestionBlocksForListStyle'](){const _0x120aae=this['editor']['plugins']['get']('LegacyListUtils');let _0x87b763=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x87b763[0x0]?.['is']('element','listItem')&&_0x87b763['unshift'](..._0x120aae['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x87b763[_0x87b763['length']-0x1]?.['is']('element','listItem')&&_0x87b763['push'](..._0x120aae['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x87b763=[...new Set(_0x87b763)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x87b763=_0x87b763['filter'](_0x59319a=>_0x59319a['is']('element','listItem'))),_0x87b763;}['_getSuggestionBlocks'](_0x1d5ae6){const _0x1e7ec0=this['editor']['plugins']['get']('LegacyListUtils');let _0x48d1c3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1d5ae6)['map'](_0x4bc4b4=>{const _0x239339=this['editor']['model']['createPositionAt'](_0x4bc4b4,0x0);return[..._0x1e7ec0['getSiblingNodes'](_0x239339,'backward'),..._0x1e7ec0['getSiblingNodes'](_0x239339,'forward')];})['flat']();return _0x48d1c3=[...new Set(_0x48d1c3)],_0x48d1c3;}['_getTranslationKeyForListStyle'](_0x193d7f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x193d7f)||'default')['toUpperCase']()+'_LIST_'+_0x193d7f['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2a35ef{['afterInit'](){const _0x28c0b7=this['editor'];if(!_0x28c0b7['plugins']['has']('MediaEmbedEditing'))return;const _0x3e8a64=_0x28c0b7['plugins']['get']('TrackChangesEditing'),_0x62f6b3=_0x28c0b7['locale'];_0x3e8a64['enableCommand']('mediaEmbed'),_0x3e8a64['descriptionFactory']['registerElementLabel']('media',_0x5e4bb3=>c(_0x62f6b3,'ELEMENT_MEDIA',_0x5e4bb3)),_0x28c0b7['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x378ca5,{writer:_0x3457f6,options:_0x2353f2})=>{if(_0x2353f2['showSuggestionHighlights'])return _0x3457f6['createEmptyElement']('div');},'converterPriority':'high'}),_0x28c0b7['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5c1824,_0x428dba,_0x300219)=>{_0x300219['options']['showSuggestionHighlights']&&_0x5c1824['stop']();},{'priority':'high'});}}class pt extends _0x2a35ef{['afterInit'](){const _0x592888=this['editor'];_0x592888['plugins']['has']('MentionEditing')&&_0x592888['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2a35ef{['afterInit'](){const _0x37be31=this['editor'];if(!_0x37be31['plugins']['has']('MergeFieldsEditing'))return;const _0x287603=_0x37be31['plugins']['get']('TrackChangesEditing'),_0x5c65da=_0x37be31['locale'];_0x287603['enableCommand']('insertMergeField'),_0x287603['enableCommand']('insertMergeFieldBlock'),_0x287603['enableCommand']('insertMergeFieldImage'),_0x287603['descriptionFactory']['registerElementLabel']('mergeField',_0x2bbebb=>c(_0x5c65da,'ELEMENT_MERGE_FIELD',_0x2bbebb)),_0x287603['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x582d88=>c(_0x5c65da,'ELEMENT_MERGE_FIELD',_0x582d88)),_0x287603['descriptionFactory']['registerDescriptionCallback'](_0x4d45b2=>{if('insertion'!=_0x4d45b2['type']&&'deletion'!=_0x4d45b2['type'])return;const _0x183b9d=_0x4d45b2['getContainedElement']();if(null==_0x183b9d)return;const _0x534352=_0x37be31['plugins']['get']('MergeFieldsEditing');let _0x6de9d;switch(_0x534352['getMergeFieldType'](_0x183b9d)){case null:return;case'image':{const _0x2790e2=_0x534352['unwrapAffixes'](_0x183b9d['getAttribute']('src'));_0x6de9d=_0x534352['getLabel'](_0x2790e2)||_0x2790e2;break;}default:{const _0xa8357=_0x183b9d['getAttribute']('id');_0x6de9d=_0x534352['getLabel'](_0xa8357)||_0xa8357;break;}}return'insertion'==_0x4d45b2['type']?{'type':'insertion','content':c(_0x5c65da,'*Insert:*\x20%0','\x22'+_0x6de9d+'\x22\x20'+c(_0x5c65da,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x5c65da,'*Remove:*\x20%0','\x22'+_0x6de9d+'\x22\x20'+c(_0x5c65da,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2a35ef{['afterInit'](){const _0x11f80e=this['editor'],_0x581247=_0x11f80e['plugins']['get']('TrackChangesEditing');_0x11f80e['plugins']['has']('MultiLevelList')&&(_0x581247['enableDefaultAttributesIntegration']('multiLevelList'),_0x581247['registerBlockAttribute']('listMarkerStyle'),_0x581247['descriptionFactory']['registerDescriptionCallback'](_0x5a779c=>this['handleDescriptions'](_0x5a779c)));}['handleDescriptions'](_0x50b012){const _0x19e5cc=this['editor']['locale'],{data:_0x15ecbf}=_0x50b012,_0x57f81a={'type':'format','content':''};if(_0x15ecbf&&'listMarkerStyle'==_0x15ecbf['key']){if(!_0x15ecbf['oldValue'])return{'type':'format','content':c(_0x19e5cc,'*Set\x20format:*\x20%0',c(_0x19e5cc,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x15ecbf['newValue']+')'};if(!_0x15ecbf['newValue']){let _0x3d34a8=_0x50b012['head'];for(;_0x3d34a8;){if(_0x3d34a8['data']&&'listType'==_0x3d34a8['data']['key']&&_0x3d34a8['data']['newValue'])return _0x57f81a;_0x3d34a8=_0x3d34a8['next'];}return{'type':'format','content':c(_0x19e5cc,'*Remove\x20format:*\x20%0',c(_0x19e5cc,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x15ecbf['oldValue']+')'};}}}}class bt extends _0x2a35ef{['afterInit'](){const _0xd78bf9=this['editor'];if(!_0xd78bf9['plugins']['has']('PageBreakEditing'))return;_0xd78bf9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x30792b=_0xd78bf9['plugins']['get']('TrackChangesEditing'),_0x431bae=_0xd78bf9['locale'];_0x30792b['descriptionFactory']['registerElementLabel']('pageBreak',_0x547542=>c(_0x431bae,'ELEMENT_PAGE_BREAK',_0x547542));}}class yt extends _0x2a35ef{['afterInit'](){const _0x3895d9=this['editor'];if(!_0x3895d9['plugins']['has']('Paragraph'))return;const _0x31ff99=_0x3895d9['locale'],_0x5efd91=_0x3895d9['plugins']['get']('TrackChangesEditing');_0x5efd91['descriptionFactory']['registerElementLabel']('paragraph',_0xf2caf7=>c(_0x31ff99,'ELEMENT_PARAGRAPH',_0xf2caf7)),_0x5efd91['enableDefaultAttributesIntegration']('paragraph'),_0x5efd91['enableCommand']('insertParagraph'),_0x3895d9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3895d9),{'priority':'highest'}),_0x3895d9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5382b5,_0x31aedb,_0x500ddb)=>{_0x500ddb['options']['showSuggestionHighlights']&&nr(_0x3895d9,{'showActiveMarker':!0x1})(_0x5382b5,_0x31aedb,_0x500ddb);},{'priority':'highest'});const _0x1cfbff=_0x5efd91['descriptionFactory'];_0x1cfbff['registerDescriptionCallback'](_0x4f35fa=>{if('insertion'!==_0x4f35fa['type'])return;const {start:_0xbdc4df,end:_0xeaa955}=_0x4f35fa['getFirstRange']();if(!_0xbdc4df['isTouching'](_0xeaa955)||!_0xbdc4df['nodeAfter'])return;const _0x2c5e33=_0x3895d9['model']['schema'],_0x3cb612=_0xbdc4df['nodeAfter'];return _0x2c5e33['isBlock'](_0x3cb612)&&!_0x2c5e33['isLimit'](_0x3cb612)&&_0x2c5e33['checkChild'](_0x3cb612,'$text')?{'type':'insertion','content':c(_0x31ff99,'*Insert:*\x20%0',_0x1cfbff['getItemLabel'](_0x3cb612,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf7af20=this['editor'],_0x849b68=_0xf7af20['locale'];_0xf7af20['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x511467=>{if('formatBlock'!=_0x511467['type'])return;const {data:_0x4d9c88}=_0x511467;return _0x4d9c88&&'paragraph'==_0x4d9c88['commandName']?{'type':'format','content':c(_0x849b68,'*Change\x20to:*\x20%0',c(_0x849b68,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2f87fd,{showActiveMarker:_0x34135d=!0x0}={}){return(_0x25102f,_0x205d6b,_0x219a99)=>{const _0x93a674=_0x2f87fd['plugins']['get']('TrackChangesEditing'),_0x1a3e2c=_0x205d6b['markerRange']['start'],_0x2d99f0=_0x205d6b['markerRange']['end'],_0x47e213=_0x2f87fd['model']['schema'];if(!_0x1a3e2c['isTouching'](_0x2d99f0)||!_0x1a3e2c['nodeAfter'])return;const _0x31a0bd=_0x1a3e2c['nodeAfter'];if(_0x47e213['isBlock'](_0x31a0bd)&&!_0x47e213['isLimit'](_0x31a0bd)&&_0x47e213['checkChild'](_0x31a0bd,'$text')){if(!_0x219a99['consumable']['consume'](_0x205d6b['markerRange'],_0x25102f['name']))return;const {authorId:_0x5a178e}=_0x93a674['_splitMarkerName'](_0x205d6b['markerName']),_0x3288ab=_0x219a99['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5a178e}),_0x4b2a71=_0x219a99['mapper']['toViewPosition'](_0x2d99f0);_0x34135d&&_0x93a674['activeMarkers']['includes'](_0x205d6b['markerName'])&&_0x219a99['writer']['addClass']('ck-suggestion-marker--active',_0x3288ab),_0x219a99['writer']['insert'](_0x4b2a71,_0x3288ab),_0x219a99['mapper']['bindElementToMarker'](_0x3288ab,_0x205d6b['markerName']);}};}class jt extends _0x2a35ef{['afterInit'](){const _0x251dc0=this['editor'];_0x251dc0['commands']['get']('replaceSource')&&_0x251dc0['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2a35ef{['afterInit'](){const _0x377650=this['editor'];if(!_0x377650['plugins']['has']('RemoveFormatEditing'))return;_0x377650['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x402ffb=this['editor'];_0x402ffb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ce20e=>{if('formatBlock'!=_0x4ce20e['type']&&'formatInline'!=_0x4ce20e['type'])return;const {data:_0x29c3a1}=_0x4ce20e;return _0x29c3a1&&'removeFormat'==_0x29c3a1['commandName']?{'type':'format','content':c(_0x402ffb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x2a35ef{['afterInit'](){const _0x9a4d57=this['editor'];if(!_0x9a4d57['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3345b5=_0x9a4d57['plugins']['get']('TrackChangesEditing');_0x3345b5['enableCommand']('goToPreviousRestrictedEditingException'),_0x3345b5['enableCommand']('goToNextRestrictedEditingException');const _0x26c22d=_0x9a4d57['plugins']['get']('RestrictedEditingModeEditing');_0x26c22d['enableCommand']('trackChanges'),_0x26c22d['enableCommand']('acceptSuggestion'),_0x26c22d['enableCommand']('discardSuggestion'),_0x26c22d['enableCommand']('acceptAllSuggestions'),_0x26c22d['enableCommand']('discardAllSuggestions'),_0x26c22d['enableCommand']('acceptSelectedSuggestions'),_0x26c22d['enableCommand']('discardSelectedSuggestions');}}class It extends _0x2a35ef{static get['requires'](){return[_0x52ecc3];}['init'](){const _0x56e72f=this['editor'],_0x5222e2=_0x56e72f['plugins']['get']('TrackChangesEditing');_0x5222e2['enableCommand']('shiftEnter'),_0x56e72f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x56e72f),{'priority':'high'}),_0x56e72f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x56e72f),{'priority':'high'}),_0x56e72f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2256bc,_0x1ade75,_0x1eda46)=>{_0x1eda46['options']['showSuggestionHighlights']&&je(_0x56e72f,{'showActiveMarker':!0x1})(_0x2256bc,_0x1ade75,_0x1eda46);}),_0x5222e2['descriptionFactory']['registerElementLabel']('softBreak',_0x5eaeb2=>c(_0x56e72f['locale'],'ELEMENT_LINE_BREAK',_0x5eaeb2));}}function je(_0xba300,{showActiveMarker:_0x447bfb=!0x0}={}){return(_0x31d9fa,_0x2c305f,_0x20ff61)=>{const _0x543f82=_0xba300['plugins']['get']('TrackChangesEditing');if(!_0x20ff61['consumable']['test'](_0x2c305f['markerRange'],_0x31d9fa['name']))return;const _0x497592=_0xba300['model'];for(const _0x593d74 of _0x2c305f['markerRange']['getItems']()){if(!_0x593d74['is']('element','softBreak'))continue;const _0xf4ce6f='deletion'==_0x2c305f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0xbaff38}=_0x543f82['_splitMarkerName'](_0x2c305f['markerName']),_0x255ba6=_0x20ff61['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xf4ce6f,'data-author-id':_0xbaff38}),_0x15507d=_0x20ff61['mapper']['toViewPosition'](_0x497592['createPositionBefore'](_0x593d74));_0x447bfb&&_0x543f82['activeMarkers']['includes'](_0x2c305f['markerName'])&&_0x20ff61['writer']['addClass']('ck-suggestion-marker--active',_0x255ba6),_0x20ff61['writer']['insert'](_0x15507d,_0x255ba6),_0x20ff61['mapper']['bindElementToMarker'](_0x255ba6,_0x2c305f['markerName']);}};}class _t extends _0x2a35ef{['afterInit'](){const _0x5a6ff8=this['editor'],_0x467cc3=_0x5a6ff8['model'],_0xd722da=_0x5a6ff8['locale'];if(!_0x5a6ff8['plugins']['has']('StandardEditingModeEditing'))return;const _0x4ffeb8=_0x5a6ff8['plugins']['get']('TrackChangesEditing'),_0x18517e='restrictedEditingException',_0x20026a=_0x5a6ff8['commands']['get'](_0x18517e);_0x4ffeb8['enableCommand'](_0x18517e,(_0x235adf,_0x5b1f3b={})=>{const _0x39e616=_0x467cc3['document']['selection'];if(_0x39e616['isCollapsed'])return void _0x235adf(_0x5b1f3b);const _0x3b93a3=void 0x0!==_0x5b1f3b['forceValue']?_0x5b1f3b['forceValue']:!_0x20026a['value'];_0x467cc3['change'](()=>{const _0x7bccb1=Array['from'](_0x39e616['getRanges']());for(const _0x1531e0 of _0x7bccb1){const _0x5f5602=_0x3b93a3?[_0x1531e0]:io(_0x18517e,_0x1531e0,_0x467cc3);for(const _0x1677dc of _0x5f5602)_0x4ffeb8['markInlineFormat'](_0x1677dc,{'commandName':_0x18517e,'commandParams':[{'forceValue':_0x3b93a3}]});}});}),_0x4ffeb8['descriptionFactory']['registerDescriptionCallback'](_0x387fc4=>{if('formatBlock'!=_0x387fc4['type']&&'formatInline'!=_0x387fc4['type'])return;const {data:_0x3ceb9e}=_0x387fc4;return _0x3ceb9e&&_0x3ceb9e['commandName']==_0x18517e?_0x3ceb9e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xd722da,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0xd722da,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x2a35ef{['afterInit'](){const _0x5d8bc6=this['editor'];if(!_0x5d8bc6['plugins']['has']('Style')||!_0x5d8bc6['plugins']['has']('DataSchema'))return;const _0x481751=_0x5d8bc6['plugins']['get']('TrackChangesEditing'),_0x446beb=_0x5d8bc6['locale'],_0x37896a=_0x5d8bc6['config']['get']('style')||{},_0x853cb8=_0x5d8bc6['plugins']['get']('GeneralHtmlSupport'),_0xe05c5e=_0x5d8bc6['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5d8bc6['plugins']['get']('DataSchema'),_0x37896a['definitions']);_0x481751['enableDefaultAttributesIntegration']('style');const _0x197a54=new Set();for(const _0x2bf57e of _0xe05c5e['block']){const _0x431199=_0x853cb8['getGhsAttributeNameForElement'](_0x2bf57e['element']);_0x197a54['add'](_0x431199);}const _0x2c2a82=new Set();for(const _0x11292d of _0xe05c5e['inline']){const _0x1e3cba=_0x853cb8['getGhsAttributeNameForElement'](_0x11292d['element']);_0x2c2a82['add'](_0x1e3cba);for(const _0x2082e4 of _0x11292d['ghsAttributes'])_0x2c2a82['add'](_0x2082e4);}for(const _0x4b08d8 of _0x197a54)_0x481751['registerBlockAttribute'](_0x4b08d8),_0x481751['descriptionFactory']['registerAttributeLabel'](_0x4b08d8,c(_0x446beb,'FORMAT_STYLE'));for(const _0x8f9136 of _0x2c2a82)_0x481751['registerInlineAttribute'](_0x8f9136),_0x481751['descriptionFactory']['registerAttributeLabel'](_0x8f9136,c(_0x446beb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3585ff=this['editor'],_0x41141f=_0x3585ff['locale'];_0x3585ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55ea58=>{if('formatBlock'!=_0x55ea58['type']&&'formatInline'!=_0x55ea58['type'])return;const {data:_0x1acdaa}=_0x55ea58;return _0x1acdaa&&'style'===_0x1acdaa['commandName']?_0x1acdaa['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x41141f,'*Set\x20format:*\x20%0',_0x1acdaa['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x41141f,'*Remove\x20format:*\x20%0',_0x1acdaa['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x2a35ef{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x28dbf1){super(_0x28dbf1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x17b393=this['editor'],_0x20d970=_0x17b393['model']['document']['selection'];if(!_0x17b393['plugins']['has']('TableEditing'))return;const _0x1471d1=_0x17b393['locale'],_0x5074cd=_0x17b393['plugins']['get']('TrackChangesEditing'),_0x5394fe=_0x17b393['plugins']['get']('TableUtils');_0x5074cd['descriptionFactory']['registerElementLabel']('table',_0x1d78c6=>c(_0x1471d1,'ELEMENT_TABLE',_0x1d78c6)),this['_setupColumnsRowsFixing'](),_0x5074cd['enableCommand']('insertTable'),_0x5074cd['enableCommand']('selectTableRow'),_0x5074cd['enableCommand']('selectTableColumn');for(const _0x3a55b6 of['insertTableRowAbove','insertTableRowBelow']){const _0x257905=_0x17b393['commands']['get'](_0x3a55b6);_0x5074cd['enableCommand'](_0x3a55b6,_0x1a9c30=>{_0x17b393['model']['change'](_0x1eec72=>{_0x1a9c30();const _0x26847e='above'===_0x257905['order'],_0x20063c=_0x5394fe['getSelectionAffectedTableCells'](_0x20d970),_0x3d2168=_0x5394fe['getRowIndexes'](_0x20063c),_0xa12237=_0x26847e?_0x3d2168['first']-0x1:_0x3d2168['last']+0x1,_0x514819=_0x20063c[0x0]['findAncestor']('table'),_0x714582=_0x5394fe['createTableWalker'](_0x514819,{'startRow':_0xa12237,'endRow':_0xa12237}),_0x29038f=Array['from'](_0x714582)['map'](_0x3aefcb=>_0x1eec72['createRangeOn'](_0x3aefcb['cell']));_0x5074cd['markMultiRangeInsertion'](_0x29038f,'tableRow');});});}for(const _0x7b68db of['insertTableColumnLeft','insertTableColumnRight']){const _0x3a7fe4=_0x17b393['commands']['get'](_0x7b68db);_0x5074cd['enableCommand'](_0x7b68db,_0x4152f8=>{_0x17b393['model']['change'](_0x2bbbcc=>{_0x4152f8();const _0x18d7c4='left'===_0x3a7fe4['order'],_0x570a91=_0x5394fe['getSelectionAffectedTableCells'](_0x20d970),_0x29cc85=_0x5394fe['getColumnIndexes'](_0x570a91),_0xeb6c86=_0x18d7c4?_0x29cc85['first']-0x1:_0x29cc85['last']+0x1,_0x52eaef=_0x570a91[0x0]['findAncestor']('table'),_0x20d629=_0x5394fe['createTableWalker'](_0x52eaef,{'startRow':0x0,'column':_0xeb6c86,'includeAllSlots':!0x1}),_0x4a139c=Array['from'](_0x20d629)['map'](_0x2138dd=>_0x2bbbcc['createRangeOn'](_0x2138dd['cell']));_0x5074cd['markMultiRangeInsertion'](_0x4a139c,'tableColumn');});});}for(const _0x471e28 of['removeTableRow','removeTableColumn']){const _0x5a3e4a=_0x471e28['substr'](0xb),_0x4bbd9a=_0x5a3e4a['toLowerCase'](),_0x4dd2e6=_0x4bbd9a['substr'](0x0,0x3)+'span',_0x2b04fa='table'+_0x5a3e4a,_0x1b3aa4='min'+_0x5a3e4a,_0xa8a478='max'+_0x5a3e4a;_0x5074cd['enableCommand'](_0x471e28,()=>{_0x17b393['model']['change'](_0x14d534=>{const _0x78df7a=_0x5394fe['getSelectionAffectedTableCells'](_0x20d970),_0x2a7244=_0x78df7a[0x0]['findAncestor']('table');let _0x54cd5b;if('removeTableRow'==_0x471e28){const _0xad3426=_0x5394fe['getRowIndexes'](_0x78df7a);_0x54cd5b={'startRow':_0xad3426['first'],'endRow':_0xad3426['last'],'includeAllSlots':!0x0};}else{const _0x139956=_0x5394fe['getColumnIndexes'](_0x78df7a);_0x54cd5b={'startColumn':_0x139956['first'],'endColumn':_0x139956['last'],'includeAllSlots':!0x0};}const _0x4baabb=_0x5394fe['createTableWalker'](_0x2a7244,_0x54cd5b),_0x2fbbdd=Array['from'](_0x4baabb)['map'](({cell:_0x1dad3e})=>_0x1dad3e),_0xa9604b=Ne(_0x2fbbdd['filter'](_0x3a5844=>_0x3a5844['hasAttribute'](_0x4dd2e6))),_0x68df8b=Ne(_0x2fbbdd['filter'](_0x58fd4e=>!_0x58fd4e['hasAttribute'](_0x4dd2e6)))['map'](_0x4d269c=>_0x14d534['createRangeOn'](_0x4d269c)),_0x35ae5b=_0x5074cd['markMultiRangeDeletion'](_0x68df8b,_0x2b04fa);if(_0x35ae5b&&('tableRow'==_0x35ae5b['subType']||'tableColumn'==_0x35ae5b['subType'])){const _0x275035=this['_getSuggestionCoords'](_0x35ae5b);for(const _0x113223 of _0xa9604b){const _0x56ad96=_0x14d534['createRangeOn'](_0x113223),_0x26ac57=_0x5394fe['getCellLocation'](_0x113223),_0x4c90dd=_0x113223['getAttribute'](_0x4dd2e6)-0x1,_0xb7469a=_0x275035[_0x1b3aa4],_0x53e951=_0x275035[_0xa8a478];_0xb7469a<=_0x26ac57[_0x4bbd9a]&&_0x26ac57[_0x4bbd9a]+_0x4c90dd<=_0x53e951&&_0x35ae5b['addRange'](_0x56ad96);}}});});}function _0x100a91(_0x2d46e){const _0x710d59=Array['from'](_0x20d970['getRanges']())['map'](_0x4fbb02=>_0x11ce9b['fromRange'](_0x4fbb02));_0x17b393['model']['change'](_0x57e651=>{const _0x3f3330=_0x57e651['batch'];_0x2d46e=_0x2d46e['filter'](_0x4e2459=>'$graveyard'!=_0x4e2459['root']['rootName']),_0x57e651['setSelection'](_0x2d46e),_0x17b393['commands']['get']('removeTableRow')['refresh'](),_0x17b393['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x17b393['model']['enqueueChange'](()=>{_0x17b393['model']['enqueueChange'](_0x3f3330,_0x27ea5b=>{const _0x5a76d3=_0x710d59['filter'](_0x21d189=>'$graveyard'!=_0x21d189['root']['rootName']);_0x5a76d3['length']>0x0&&_0x27ea5b['setSelection'](_0x5a76d3);for(const _0x44121b of _0x710d59)_0x44121b['detach']();});});});}function _0x4496ab(_0x5a3c6e){_0x17b393['model']['change'](_0x5639e1=>{const _0x38bf3a=Array['from'](_0x20d970['getRanges']())['map'](_0x1022db=>_0x11ce9b['fromRange'](_0x1022db)),_0x1dbf2f=[];for(const _0x8a5d99 of _0x5a3c6e)for(const _0xb48910 of _0x8a5d99['getItems']({'shallow':!0x0}))_0x1dbf2f['push'](_0xb48910);for(const _0x456825 of _0x1dbf2f)'$graveyard'!=_0x456825['root']['rootName']&&(_0x5639e1['setSelection'](_0x5639e1['createPositionAt'](_0x456825,0x0)),_0x17b393['commands']['get']('removeTableColumn')['refresh'](),_0x17b393['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x47f1ca=_0x38bf3a['filter'](_0x26cacc=>'$graveyard'!=_0x26cacc['root']['rootName']);_0x47f1ca['length']>0x0&&_0x5639e1['setSelection'](_0x47f1ca);for(const _0xe589da of _0x38bf3a)_0xe589da['detach']();});}function _0x13b9be(_0x2cc642,_0x16ac27){return _0x16ac27['every'](_0x5ed6fd=>_0x2cc642['some'](_0x208a98=>_0x208a98['end']['isEqual'](_0x5ed6fd['start'])||_0x5ed6fd['end']['isEqual'](_0x208a98['start'])));}function _0xb87a7d(_0x6684d4,_0xa2fb78){return!_0x6684d4['some'](_0x1f1175=>_0xa2fb78['some'](_0x1c082e=>_0x1f1175['isIntersecting'](_0x1c082e)))&&_0x6684d4['some'](_0x302e2f=>_0xa2fb78['some'](_0x547ba7=>_0x302e2f['end']['isTouching'](_0x547ba7['start'])));}_0x17b393['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3735bc,_0x584794,_0x24cc41)=>{if(!_0x24cc41['options']['showSuggestionHighlights'])return;const _0x42acb3=_0x584794['item'];if(!_0x42acb3)return;const _0xcdaf5a=_0x24cc41['mapper']['toViewElement'](_0x42acb3);function _0x1d516b(_0x4c51cd){return Array['isArray'](_0x4c51cd)?_0x4c51cd:[_0x4c51cd];}_0xcdaf5a&&'tableCell'===_0x42acb3['name']&&_0x1b7d9f(_0xcdaf5a,_0x24cc41['writer'],(_0x7bd19c,_0x38ce3d,_0xd8e5b3)=>_0xd8e5b3['addClass'](_0x1d516b(_0x38ce3d['classes']),_0x7bd19c),(_0x2d37bf,_0x554b33,_0x1f8492)=>_0x1f8492['removeClass'](_0x1d516b(_0x554b33['classes']),_0x2d37bf));},{'priority':'highest'}),_0x5074cd['descriptionFactory']['registerDescriptionCallback'](_0x57b5c5=>{if('insertion'!=_0x57b5c5['type']&&'deletion'!=_0x57b5c5['type'])return;const _0x2cc206=_0x57b5c5['getContainedElement']();if(null!=_0x2cc206&&_0x2cc206['is']('element','table')){if('insertion'==_0x57b5c5['type']){const _0x2ea6cb=_0x57b5c5['getItems']()['filter'](_0x4d79c7=>_0x4d79c7['is']('$textProxy'))['map'](_0x32ac72=>_0x32ac72['data']);if(_0x2ea6cb['length'])return{'type':'insertion','content':c(_0x1471d1,'*Insert:*\x20%0',c(_0x1471d1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2ea6cb['join']('\x20')+'\x22'))};}if('deletion'==_0x57b5c5['type']){const _0x121bb0=_0x57b5c5['getItems']()['filter'](_0x3ac3b7=>_0x3ac3b7['is']('$textProxy'))['map'](_0x3bfeb0=>_0x3bfeb0['data']);if(_0x121bb0['length'])return{'type':'deletion','content':c(_0x1471d1,'*Remove:*\x20%0',c(_0x1471d1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x121bb0['join']('\x20')+'\x22'))};}}}),_0x5074cd['descriptionFactory']['registerDescriptionCallback'](_0x3f4a4c=>{if('tableRow'==_0x3f4a4c['subType']){const _0x10af4b=_0x3f4a4c['getItems']()['filter'](_0x41c289=>_0x41c289['is']('$textProxy'))['map'](_0x3f6388=>_0x3f6388['data']),_0x44cb4e=this['_getSuggestionCoords'](_0x3f4a4c),_0x46f349=_0x44cb4e['maxRow']-_0x44cb4e['minRow']+0x1;if('insertion'==_0x3f4a4c['type'])return _0x10af4b['length']?{'type':'insertion','content':c(_0x1471d1,'*Insert:*\x20%0',c(_0x1471d1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x46f349,'\x22'+_0x10af4b['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1471d1,'*Insert:*\x20%0',c(_0x1471d1,'ELEMENT_TABLE_ROW',_0x46f349))};if('deletion'==_0x3f4a4c['type'])return _0x10af4b['length']?{'type':'deletion','content':c(_0x1471d1,'*Remove:*\x20%0',c(_0x1471d1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x46f349,'\x22'+_0x10af4b['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1471d1,'*Remove:*\x20%0',c(_0x1471d1,'ELEMENT_TABLE_ROW',_0x46f349))};}if('tableColumn'==_0x3f4a4c['subType']){const _0x2bf9c5=_0x3f4a4c['getItems']()['filter'](_0x447a62=>_0x447a62['is']('$textProxy'))['map'](_0x511a6a=>_0x511a6a['data']),_0xd107be=this['_getSuggestionCoords'](_0x3f4a4c),_0x285bd8=_0xd107be['maxColumn']-_0xd107be['minColumn']+0x1;if('insertion'==_0x3f4a4c['type'])return _0x2bf9c5['length']?{'type':'insertion','content':c(_0x1471d1,'*Insert:*\x20%0',c(_0x1471d1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x285bd8,'\x22'+_0x2bf9c5['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1471d1,'*Insert:*\x20%0',c(_0x1471d1,'ELEMENT_TABLE_COLUMN',_0x285bd8))};if('deletion'==_0x3f4a4c['type'])return _0x2bf9c5['length']?{'type':'deletion','content':c(_0x1471d1,'*Remove:*\x20%0',c(_0x1471d1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x285bd8,'\x22'+_0x2bf9c5['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1471d1,'*Remove:*\x20%0',c(_0x1471d1,'ELEMENT_TABLE_COLUMN',_0x285bd8))};}}),_0x5074cd['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x100a91),_0x5074cd['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x100a91),_0x5074cd['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4496ab),_0x5074cd['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4496ab),_0x5074cd['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x13b9be),_0x5074cd['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x13b9be),_0x5074cd['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xb87a7d),_0x5074cd['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xb87a7d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x391b91=this['editor'],_0x588734=_0x391b91['model']['document']['selection'];return(_0x3afa0f,_0x5b3a28)=>{_0x391b91['model']['change'](_0x2a4681=>{const {commandName:_0x5cbaa0,commandParams:_0x28fab6}=_0x5b3a28;let _0x50ee1b=_0x3afa0f[0x0]['end']['nodeBefore'];_0x28fab6&&_0x28fab6[0x0]&&!0x1===_0x28fab6[0x0]['forceValue']&&(_0x50ee1b=_0x3afa0f[0x0]['start']['nodeAfter']);const _0x87d68a=_0x2a4681['createRangeIn'](_0x50ee1b);if('$graveyard'==_0x87d68a['root']['rootName'])return;const _0x4eaca8=Array['from'](_0x588734['getRanges']())['map'](_0xb28105=>_0x11ce9b['fromRange'](_0xb28105));_0x2a4681['setSelection'](_0x87d68a),_0x391b91['commands']['get'](_0x5cbaa0)['refresh'](),_0x28fab6['push']({'forceDefaultExecution':!0x0}),_0x391b91['execute'](_0x5cbaa0,..._0x28fab6);const _0x216e7a=_0x4eaca8['filter'](_0x1591d1=>'$graveyard'!=_0x1591d1['root']['rootName']);_0x216e7a['length']>0x0&&_0x2a4681['setSelection'](_0x216e7a);for(const _0x240ced of _0x4eaca8)_0x240ced['detach']();});};}['_getCoordsForCells'](_0x3fc122){const _0x399384=this['editor']['plugins']['get']('TableUtils');let _0x314022=Number['MAX_SAFE_INTEGER'],_0x47d25e=Number['MIN_SAFE_INTEGER'],_0x55f682=Number['MAX_SAFE_INTEGER'],_0x3a40cc=Number['MIN_SAFE_INTEGER'];for(const _0x4905df of _0x3fc122){if('$graveyard'==_0x4905df['root']['rootName'])continue;const {row:_0x29612c,column:_0x5ad5f8}=_0x399384['getCellLocation'](_0x4905df),_0x31d84b=_0x4905df['hasAttribute']('rowspan')?_0x4905df['getAttribute']('rowspan')-0x1:0x0,_0x28c61c=_0x4905df['hasAttribute']('colspan')?_0x4905df['getAttribute']('colspan')-0x1:0x0;_0x314022=_0x29612c<_0x314022?_0x29612c:_0x314022,_0x47d25e=_0x29612c+_0x31d84b>_0x47d25e?_0x29612c+_0x31d84b:_0x47d25e,_0x55f682=_0x5ad5f8<_0x55f682?_0x5ad5f8:_0x55f682,_0x3a40cc=_0x5ad5f8+_0x28c61c>_0x3a40cc?_0x5ad5f8+_0x28c61c:_0x3a40cc;}return{'minRow':_0x314022,'maxRow':_0x47d25e,'minColumn':_0x55f682,'maxColumn':_0x3a40cc};}['_setupColumnsRowsFixing'](){const _0x2b73b6=this['editor'],_0x319b89=_0x2b73b6['plugins']['get']('TrackChangesEditing'),_0x594fe6=_0x2b73b6['plugins']['get']('TableUtils');_0x2b73b6['model']['document']['on']('change:data',()=>{const _0x36722b=Array['from'](_0x2b73b6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5eec0b,data:_0x21a872}of _0x36722b){const {group:_0x33b29b,id:_0x5c85f0,subType:_0x307669}=_0x319b89['_splitMarkerName'](_0x5eec0b);if('suggestion'!=_0x33b29b)continue;if(null!=_0x21a872['oldRange'])continue;const _0xc87f32=_0x319b89['getSuggestion'](_0x5c85f0);this['_tablePostFixingSubtypes']['includes'](_0x307669)&&this['_tableSuggestions']['add'](_0xc87f32);}},{'priority':'low'});const _0x5044e4=(_0x249700,_0x54158e)=>{let _0x190751=!0x1;const _0x156369=_0x54158e['createRangeOn'](_0x249700),_0x4824a2=_0x249700['findAncestor']('table'),_0x3af34b=_0x594fe6['getCellLocation'](_0x249700);for(const _0x5d1a4f of this['_tableSuggestions']){const _0x43066=_0x5d1a4f['subType'],_0x51cf15=_0x43066['startsWith']('tablePaste'),_0x2786a9=_0x43066['substr'](_0x51cf15?0xa:0x5),_0x2d1ee1=_0x2786a9['toLowerCase'](),_0x2c4faf=_0x2d1ee1['substr'](0x0,0x3)+'span',_0x270a5b='min'+_0x2786a9,_0x24ba43='max'+_0x2786a9;if(!_0x5d1a4f['isInContent'])continue;if(_0x4824a2!=_0x5d1a4f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5d1a4f['isIntersectingWithRange'](_0x156369))continue;const _0x2e045a=_0x249700['hasAttribute'](_0x2c4faf)?_0x249700['getAttribute'](_0x2c4faf)-0x1:0x0,_0x55fb74=this['_getSuggestionCoords'](_0x5d1a4f),_0x21c380=_0x55fb74[_0x270a5b],_0x5a3aa4=_0x55fb74[_0x24ba43];_0x21c380<=_0x3af34b[_0x2d1ee1]&&_0x3af34b[_0x2d1ee1]+_0x2e045a<=_0x5a3aa4&&(_0x5d1a4f['addRange'](_0x156369),_0x190751=!0x0);}return _0x190751;};_0x2b73b6['model']['document']['registerPostFixer'](_0x384933=>{let _0x47ad40=!0x1;for(const _0x5e6811 of _0x2b73b6['model']['document']['differ']['getChanges']())if('insert'==_0x5e6811['type']){if('tableRow'==_0x5e6811['name']){for(const _0x3e68ba of _0x5e6811['position']['nodeAfter']['getChildren']())_0x47ad40=_0x47ad40||_0x5044e4(_0x3e68ba,_0x384933);}else'tableCell'==_0x5e6811['name']&&(_0x47ad40=_0x47ad40||_0x5044e4(_0x5e6811['position']['nodeAfter'],_0x384933));}return _0x47ad40;});}['_getSuggestionCoords'](_0x47b630){return this['_getCoordsForCells'](_0x47b630['getRanges']()['map'](_0x398d10=>_0x398d10['start']['nodeAfter']));}}function Ne(_0x61ae0b){return Array['from'](new Set(_0x61ae0b)['values']());}class Nt extends _0x2a35ef{static get['requires'](){return[Ct];}['afterInit'](){const _0x2be544=this['editor'],_0x2e46c9=_0x2be544['model']['document']['selection'],_0x329625=_0x2be544['locale'];if(!_0x2be544['plugins']['has']('TableEditing'))return;const _0x291a8d=_0x2be544['plugins']['get']('TrackChangesEditing'),_0x2ec388=_0x2be544['plugins']['get']('TableUtils'),_0x15ab0b=_0x2be544['plugins']['get'](Ct);_0x15ab0b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x291a8d['enableCommand']('mergeTableCells',()=>{const _0x5ee7a4=_0x2ec388['getSelectionAffectedTableCells'](_0x2be544['model']['document']['selection']);_0x2be544['model']['change'](()=>{_0x291a8d['markMultiRangeBlockFormat'](_0x5ee7a4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2be544['commands']['get']('mergeTableCells')['on']('execute',(_0x283745,_0x50815a)=>{_0x2be544['commands']['get']('trackChanges')['value']&&(_0x50815a['length']>0x0&&_0x50815a[_0x50815a['length']-0x1]&&_0x50815a[_0x50815a['length']-0x1]['forceDefaultExecution']||_0x291a8d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x283745['stop']());},{'priority':'highest'});for(const _0x971d16 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x521164=_0x2be544['commands']['get'](_0x971d16);_0x291a8d['enableCommand'](_0x971d16,()=>{const _0x2298db=_0x2be544['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x31853f=>_0x31853f['is']('element','tableCell')),_0x206b2b=_0x521164['value'];_0x2be544['model']['change'](()=>{_0x291a8d['markMultiRangeBlockFormat']([_0x2298db,_0x206b2b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1167c9 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5a9d68=_0x2be544['commands']['get'](_0x1167c9);_0x291a8d['enableCommand'](_0x1167c9,()=>{const _0x5804df=_0x2ec388['getSelectionAffectedTableCells'](_0x2be544['model']['document']['selection'])[0x0],_0xd7f1f2=_0x5804df['findAncestor']('table'),{column:_0x38cc0,row:_0x167fc9}=_0x2ec388['getCellLocation'](_0x5804df);let _0x39b359=[];if('horizontally'==_0x5a9d68['direction']){const _0x2a7546=_0x2ec388['createTableWalker'](_0xd7f1f2,{'startRow':_0x167fc9,'endRow':_0x167fc9,'includeAllSlots':!0x0});_0x39b359=Array['from'](_0x2a7546)['map'](_0x1e063b=>_0x1e063b['cell']);}else{const _0x2bc82a=_0x2ec388['createTableWalker'](_0xd7f1f2,{'column':_0x38cc0,'includeAllSlots':!0x0});_0x39b359=Array['from'](_0x2bc82a)['map'](_0x58bf85=>_0x58bf85['cell']);}_0x2be544['model']['change'](_0x1c93c0=>{_0x291a8d['markBlockFormat'](_0x1c93c0['createRangeOn'](_0x5804df),{'commandName':_0x1167c9,'commandParams':[]},_0x39b359,_0x1167c9);});});}_0x291a8d['descriptionFactory']['registerDescriptionCallback'](_0x4b6a6a=>{if('formatBlock'!=_0x4b6a6a['type']&&'formatInline'!=_0x4b6a6a['type'])return;const {data:_0x3eb7e2}=_0x4b6a6a;return _0x3eb7e2&&'mergeTableCells'==_0x3eb7e2['commandName']?{'type':'format','content':c(_0x329625,'*Merge\x20cells*')}:void 0x0;}),_0x291a8d['descriptionFactory']['registerDescriptionCallback'](_0x54d6f9=>{if('formatBlock'!=_0x54d6f9['type']&&'formatInline'!=_0x54d6f9['type'])return;const {data:_0x42a0ef}=_0x54d6f9;return _0x42a0ef?'splitTableCellVertically'==_0x42a0ef['commandName']?{'type':'format','content':c(_0x329625,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x42a0ef['commandName']?{'type':'format','content':c(_0x329625,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3c08e5=_0x15ab0b['_acceptFormatSuggestionCallbackFactory']();for(const _0x11c140 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x291a8d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x11c140,'accept',_0x3c08e5);for(const _0x14a7c1 of['splitTableCellVertically','splitTableCellHorizontally'])_0x291a8d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14a7c1,'accept',_0x3c08e5);_0x291a8d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3c6239=>{_0x2be544['model']['change'](_0x2f11c7=>{const _0x57eca6=Array['from'](_0x2e46c9['getRanges']())['map'](_0xbd12d3=>_0x11ce9b['fromRange'](_0xbd12d3));_0x2f11c7['setSelection'](_0x3c6239),_0x2be544['commands']['get']('mergeTableCells')['refresh'](),_0x2be544['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x403c82=_0x57eca6['filter'](_0x5db936=>'$graveyard'!=_0x5db936['root']['rootName']);_0x403c82['length']>0x0&&_0x2f11c7['setSelection'](_0x403c82);for(const _0x500667 of _0x57eca6)_0x500667['detach']();});});for(const _0x4da7a0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x356c20=_0x2be544['commands']['get'](_0x4da7a0);_0x356c20['on']('set:isEnabled',(_0x2b762e,_0x4442f5,_0x346147)=>{if(_0x346147){const _0x38556f=_0x2be544['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x30c973=>_0x30c973['is']('element','tableCell'));this['_areMergableCells'](_0x356c20['value'],_0x38556f)||(_0x2b762e['return']=!0x1,_0x2b762e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5f1499=this['editor']['commands']['get']('mergeTableCells'),_0x46c5c9=this['editor']['plugins']['get']('TableUtils');if(!_0x5f1499['isEnabled'])return!0x1;const _0x482d70=_0x46c5c9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2dd22d of _0x482d70)for(const _0xf2650c of _0x482d70)if(_0x2dd22d!=_0xf2650c&&!this['_areMergableCells'](_0x2dd22d,_0xf2650c))return!0x1;return!0x0;}['_areMergableCells'](_0x270be7,_0x287a46){const _0x2dea33=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34be9c=this['editor']['model']['createRangeOn'](_0x270be7),_0xabd7b3=this['editor']['model']['createRangeOn'](_0x287a46),_0x1e6047=new Set(),_0x780b33=new Set();for(const _0x13ec26 of _0x2dea33['getSuggestions']())if(('insertion'==_0x13ec26['type']||'deletion'==_0x13ec26['type']||'mergeTableCells'==_0x13ec26['subType'])&&_0x13ec26['isInContent']){for(const _0x1e071c of _0x13ec26['getRanges']())_0x1e071c['containsRange'](_0x34be9c,!0x0)&&_0x1e6047['add'](_0x13ec26['type']+':'+_0x13ec26['author']['id']),_0x1e071c['containsRange'](_0xabd7b3,!0x0)&&_0x780b33['add'](_0x13ec26['type']+':'+_0x13ec26['author']['id']);}if(_0x1e6047['size']!=_0x780b33['size'])return!0x1;for(const _0x5a37d8 of _0x1e6047)if(!_0x780b33['has'](_0x5a37d8))return!0x1;return!0x0;}}class Dt extends _0x2a35ef{static get['requires'](){return[Ct];}['afterInit'](){const _0x567a41=this['editor'];if(!_0x567a41['plugins']['has']('TableEditing'))return;const _0x4964f4=_0x567a41['locale'],_0x5a902a=_0x567a41['plugins']['get']('TrackChangesEditing');_0x5a902a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5a902a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5a902a['registerBlockAttribute']('headingRows'),_0x5a902a['registerBlockAttribute']('headingColumns'),_0x5a902a['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x4964f4,'FORMAT_HEADER_ROW')),_0x5a902a['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x4964f4,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xef7524=this['editor']['plugins']['get']('TrackChangesEditing'),_0x402b96=this['editor']['plugins']['get']('TableUtils'),_0x3fdeb2=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x1c42e2({showActiveMarker:_0xc05c9=!0x0,setDataAttribute:_0x340fc5=!0x0}={}){return(_0x3ac841,_0x26a317,_0xa080b)=>{const {type:_0x4fac39,id:_0x359168}=_0xef7524['_splitMarkerName'](_0x26a317['markerName']),_0x209c7e=_0xef7524['getSuggestion'](_0x359168),_0xbf22bf=_0x209c7e['data'];if('formatBlock'!=_0x209c7e['type']||!_0xbf22bf||'setTableColumnHeader'!=_0xbf22bf['commandName'])return;if(_0x26a317['item'])return void _0x3ac841['stop']();if(!_0xa080b['consumable']['consume'](_0x26a317['markerRange'],_0x3ac841['name']))return;const _0x3e0b72=_0x26a317['markerRange']['start']['nodeAfter'],_0x21f81=_0x26a317['markerRange']['end']['nodeBefore'],_0x13c17b=_0x3e0b72['parent']['parent'],{column:_0x51f033}=_0x402b96['getCellLocation'](_0x3e0b72),{column:_0x2c2b92}=_0x402b96['getCellLocation'](_0x21f81);for(let _0x1d0ed5=_0x51f033;_0x1d0ed5<=_0x2c2b92;_0x1d0ed5++){const _0x2506db=_0x402b96['createTableWalker'](_0x13c17b,{'column':_0x1d0ed5,'includeAllSlots':!0x1});for(const _0x519892 of _0x2506db){const _0x59b1a6=_0x519892['cell'],_0x10386e=_0xa080b['mapper']['toViewElement'](_0x59b1a6);_0xa080b['writer']['addClass']('ck-suggestion-marker-'+_0x4fac39,_0x10386e),_0x340fc5&&_0xa080b['writer']['setAttribute']('data-suggestion',_0x359168,_0x10386e),_0xa080b['mapper']['bindElementToMarker'](_0x10386e,_0x26a317['markerName']),_0xc05c9&&(_0xef7524['activeMarkers']['includes'](_0x26a317['markerName'])?_0xa080b['writer']['addClass']('ck-suggestion-marker--active',_0x10386e):_0xa080b['writer']['removeClass']('ck-suggestion-marker--active',_0x10386e));}}};}_0xef7524['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3fdeb2),_0xef7524['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3fdeb2),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1c42e2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1fa3d8,_0x331ec2,_0x35483e)=>{_0x35483e['options']['showSuggestionHighlights']&&_0x1c42e2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1fa3d8,_0x331ec2,_0x35483e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x297f5f,_0x544baf,_0x46caf9)=>{const {type:_0x3c7ecb,id:_0x5c1ee4}=_0xef7524['_splitMarkerName'](_0x544baf['markerName']),_0x9c0719=_0xef7524['getSuggestion'](_0x5c1ee4),_0x5aac89=_0x9c0719['data'];if('formatBlock'!=_0x9c0719['type']||!_0x5aac89||'setTableColumnHeader'!=_0x5aac89['commandName'])return;const _0x35dccd=_0x46caf9['mapper']['markerNameToElements'](_0x544baf['markerName']);if(_0x35dccd){for(const _0x5ac4b3 of _0x35dccd)_0x46caf9['writer']['removeClass']('ck-suggestion-marker-'+_0x3c7ecb,_0x5ac4b3),_0x46caf9['writer']['removeClass']('ck-suggestion-marker--active',_0x5ac4b3),_0x46caf9['writer']['removeAttribute']('data-suggestion',_0x5ac4b3),_0x46caf9['mapper']['unbindElementFromMarkerName'](_0x5ac4b3,_0x544baf['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45b743=this['editor'],_0x1b3eb9=_0x45b743['locale'];function _0x1f09a6(_0xe5fb70){return{'type':'format','content':c(_0x1b3eb9,'*Format:*\x20%0',_0xe5fb70)};}_0x45b743['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59a7c8=>{if('formatBlock'!=_0x59a7c8['type'])return;const {data:_0x35387a}=_0x59a7c8;if(_0x35387a){if('setTableRowHeader'==_0x35387a['commandName']){const _0x11fe35=_0x35387a['commandParams'][0x0]['forceValue'];return _0x1f09a6(c(_0x1b3eb9,_0x11fe35?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x35387a['commandName']){const _0x4068a5=_0x35387a['commandParams'][0x0]['forceValue'];return _0x1f09a6(c(_0x1b3eb9,_0x4068a5?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x2fba10=>[_0x2fba10,null]));class Mt extends _0x2a35ef{static get['requires'](){return[Ct];}['afterInit'](){const _0x324a30=this['editor'];if(!_0x324a30['plugins']['has']('TableClipboard'))return;const _0xac8ae6=_0x324a30['plugins']['get']('TrackChangesEditing'),_0x10b5b9=_0x324a30['plugins']['get']('TableUtils'),_0x3aa266=_0x324a30['plugins']['get'](Ct),_0x42b0fd=_0x324a30['plugins']['get']('TableClipboard');_0x3aa266['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x324a30['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x324a30['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x11907c=null;_0x324a30['model']['on']('insertContent',(_0x1d8c73,_0x54fbe0)=>{const [_0x31f139,_0x168f2b]=_0x54fbe0,_0x1365bd=_0x54fbe0[_0x54fbe0['length']-0x1];_0x1365bd&&_0x1365bd['forceDefaultExecution']||_0xac8ae6['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5c154d,_0x5e5833,_0x4a4fc5,_0x5b0036,_0x207b59){if(_0x5e5833&&!_0x5e5833['is']('documentSelection'))return!0x1;const _0x25a787=_0x207b59['getTableIfOnlyTableInContent'](_0x5c154d,_0x4a4fc5);if(!_0x25a787||!Ue(_0x25a787,void 0x0,_0x5b0036))return!0x1;const _0x2883ca=_0x5b0036['getSelectionAffectedTableCells'](_0x4a4fc5['document']['selection']);if(!_0x2883ca['length'])return!0x1;const _0x49b389=_0x2883ca[0x0]['findAncestor']('table'),_0x5e2741=_0x5b0036['getRowIndexes'](_0x2883ca),_0x30a184=_0x5b0036['getColumnIndexes'](_0x2883ca),_0x597136={'startRow':_0x5e2741['first'],'endRow':_0x5e2741['last'],'startColumn':_0x30a184['first'],'endColumn':_0x30a184['last']};return 0x1==_0x2883ca['length']&&(_0x597136['endRow']+=_0x5b0036['getRows'](_0x25a787)-0x1,_0x597136['endColumn']+=_0x5b0036['getColumns'](_0x25a787)-0x1),Ue(_0x49b389,_0x597136,_0x5b0036);}(_0x31f139,_0x168f2b,_0x324a30['model'],_0x10b5b9,_0x42b0fd)&&(_0x1d8c73['stop'](),_0x11907c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x324a30['model']['change'](()=>{_0x324a30['model']['insertContent'](_0x54fbe0[0x0],_0x54fbe0[0x1],_0x54fbe0[0x2],{'forceDefaultExecution':!0x0});const _0x143c40=_0x50c0f0(),{rowInsertionRanges:_0x30886f,columnInsertionRanges:_0x56b9ba,insertionRanges:_0x155041,deletionRanges:_0x3fccf5,cells:_0x1b68b4}=_0x11907c;_0x30886f['length']&&_0xac8ae6['markMultiRangeInsertion'](_0x30886f,'tablePasteRow',{'tablePasteChainId':_0x143c40}),_0x56b9ba['length']&&_0xac8ae6['markMultiRangeInsertion'](_0x56b9ba,'tablePasteColumn',{'tablePasteChainId':_0x143c40}),_0x155041['length']&&(_0xac8ae6['markMultiRangeInsertion'](_0x155041,'tablePaste',{'tablePasteChainId':_0x143c40,'skipNestingCheck':!0x0}),_0x155041['forEach'](_0xf2a3d7=>_0xf2a3d7['detach']?.())),_0x3fccf5['length']&&(_0xac8ae6['markMultiRangeDeletion'](_0x3fccf5,'tablePaste',{'tablePasteChainId':_0x143c40,'skipNestingCheck':!0x0}),_0x3fccf5['forEach'](_0x3b91a0=>_0x3b91a0['detach']?.()));const _0x1eaa1c=_0xac8ae6['markMultiRangeBlockFormat'](_0x1b68b4['map'](({element:_0x1eba68})=>_0x1eba68),{'formatGroupId':_0x50c0f0()},[],'tablePasteCell',{'tablePasteChainId':_0x143c40});if(_0x1eaa1c){const _0x281276=_0x1eaa1c['getMarkers'](),_0x6af110=[];for(const {element:_0x840c4,attributes:_0x47d1fe}of _0x1b68b4){if(!_0x47d1fe)continue;const _0x362677=_0x324a30['model']['createRangeOn'](_0x840c4),_0x3ee5c6=_0x281276['find'](_0xa7e8f9=>_0xa7e8f9['getRange']()['isEqual'](_0x362677));_0x3ee5c6&&_0x6af110['push']([_0x3ee5c6['name'],_0x47d1fe]);}_0x6af110['length']&&_0x1eaa1c['setAttribute']('markerAttributes',Object['fromEntries'](_0x6af110));}_0x11907c=null;}));},{'priority':_0x5bb9b8['high']+0xa}),_0x324a30['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5b333e,_0x145ac7)=>{const [_0x5f8c2d,_0x1cfccc,,_0x41b990]=_0x145ac7;if(!_0x11907c)return;_0x5b333e['stop']();const _0x18507c=_0x5f8c2d['cell'],_0x1d0763=_0x1cfccc,_0xa4d721=Oe(_0x18507c),_0x356659=Oe(_0x1d0763);_0x5b333e['return']=_0x18507c;let _0x2ade06=null,_0x206998=null;if(_0x356659||_0xa4d721){if(_0xa4d721&&!_0x356659){_0x41b990['remove'](_0x18507c['getChild'](0x0));for(const _0x26fbd0 of Array['from'](_0x1d0763['getChildren']()))_0x41b990['insert'](_0x26fbd0,_0x18507c,'end');const _0x233b86=_0x11907c['rowInsertionIndexes']['includes'](_0x5f8c2d['row']),_0x38d395=_0x11907c['columnInsertionIndexes']['includes'](_0x5f8c2d['column']);_0x233b86||_0x38d395||(_0x2ade06=_0x11ce9b['fromRange'](_0x41b990['createRangeIn'](_0x18507c)));}else _0x356659&&!_0xa4d721&&(_0x206998=_0x41b990['createRangeIn'](_0x18507c));}else{const _0x48bfd4=_0x41b990['createElement']('tableCellSuggestion'),_0x4fd1c9=_0x41b990['createElement']('tableCellSuggestion');_0x41b990['wrap'](_0x41b990['createRangeIn'](_0x18507c),_0x4fd1c9),_0x41b990['insert'](_0x48bfd4,_0x18507c,0x0);for(const _0x461a37 of Array['from'](_0x1d0763['getChildren']()))_0x41b990['insert'](_0x461a37,_0x48bfd4,'end');_0x2ade06=_0x11ce9b['fromRange'](_0x41b990['createRangeOn'](_0x48bfd4)),_0x206998=_0x11ce9b['fromRange'](_0x41b990['createRangeOn'](_0x4fd1c9));}const _0x416706=Array['from'](_0x1d0763['getAttributes']())['filter'](([_0x18e0f6])=>Be['includes'](_0x18e0f6));_0x11907c['cells']['push']({'element':_0x18507c,'attributes':_0x416706['length']?Object['fromEntries'](_0x416706):null}),_0x2ade06&&_0x11907c['insertionRanges']['push'](_0x2ade06),_0x206998&&_0x11907c['deletionRanges']['push'](_0x206998);},{'priority':'high'}),_0x10b5b9['on']('insertColumns',(_0x5d4cbc,_0x48e3eb)=>{const [_0x324650,_0x4574d6={}]=_0x48e3eb;if(!_0x11907c)return;const _0xf13f6b=_0x4574d6['at']||0x0,_0x206872=_0x4574d6['columns']||0x1;_0x11907c['columnInsertionIndexes']=new Array(_0x206872)['fill'](_0xf13f6b)['map']((_0x12c547,_0x259ac5)=>_0x12c547+_0x259ac5);for(const {cell:_0x5c8d61}of _0x10b5b9['createTableWalker'](_0x324650,{'startColumn':_0xf13f6b,'endColumn':_0xf13f6b+_0x206872-0x1}))_0x11907c['columnInsertionRanges']['push'](_0x324a30['model']['createRangeOn'](_0x5c8d61));},{'priority':'low'}),_0x10b5b9['on']('insertRows',(_0x5e0ebe,_0xd1092)=>{const [_0x318ca1,_0x1e3f47={}]=_0xd1092;if(!_0x11907c)return;const _0x970ef5=_0x1e3f47['at']||0x0,_0x2e40e0=_0x1e3f47['rows']||0x1;_0x11907c['rowInsertionIndexes']=new Array(_0x2e40e0)['fill'](_0x970ef5)['map']((_0x5e312f,_0x3cfabe)=>_0x5e312f+_0x3cfabe);for(const {cell:_0x445050}of _0x10b5b9['createTableWalker'](_0x318ca1,{'startRow':_0x970ef5,'endRow':_0x970ef5+_0x2e40e0-0x1}))_0x11907c['rowInsertionRanges']['push'](_0x324a30['model']['createRangeOn'](_0x445050));},{'priority':'low'}),_0xac8ae6['descriptionFactory']['registerDescriptionCallback'](_0x1009da=>{if(_0x1009da['subType']&&_0x1009da['subType']['startsWith']('tablePaste'))return _0x1009da['previous']?{}:{'type':'insertion','content':c(_0x324a30['locale'],'*Replace\x20table\x20cells*')};});const _0x26b40d=()=>!0x1;for(const _0x2ddb63 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xac8ae6['_suggestionFactory']['registerCustomCallback']('insertion',_0x2ddb63,'join',_0x26b40d),_0xac8ae6['_suggestionFactory']['registerCustomCallback']('deletion',_0x2ddb63,'join',_0x26b40d),_0xac8ae6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2ddb63,'join',_0x26b40d);_0xac8ae6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x26b40d),_0xac8ae6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x429f44,_0x3f3c1e,_0x2c3435)=>{const _0x2f86ba=_0x429f44['map'](_0x294791=>_0x294791['getContainedElement']())['filter'](_0x536fee=>_0x536fee),_0x5647d5=new Map(_0x2f86ba['map'](_0x155c84=>[_0x155c84,null]));if(_0x11907c){for(const {element:_0x562354,attributes:_0x387a3c}of _0x11907c['cells'])_0x387a3c&&_0x5647d5['set'](_0x562354,_0x387a3c);}else{if(_0x2c3435&&_0x2c3435['markerAttributes'])for(const [_0x5278f3,_0x8b517c]of Object['entries'](_0x2c3435['markerAttributes'])){const _0x15967e=_0x324a30['model']['markers']['get'](_0x5278f3),_0x420718=_0x15967e?_0x15967e['getRange']()['getContainedElement']():null;_0x420718&&_0x5647d5['set'](_0x420718,_0x8b517c);}}_0x324a30['model']['change'](_0x20de51=>{for(const [_0x297430,_0x24727b]of _0x5647d5)_0x20de51['setAttributes']({...xe,..._0x24727b},_0x297430);});});const _0x560041=(_0x3077c3,_0x38cebe)=>{_0xac8ae6['_suggestionFactory']['registerCustomCallback'](_0x3077c3,'tablePaste',_0x38cebe,(_0x2b969e,_0x5196f6,_0x812039)=>{_0x324a30['model']['change'](_0x196680=>{const _0x594be7=[];for(const _0xbf7749 of _0x2b969e){const _0x1101de=_0xbf7749['start']['nodeAfter'];_0x1101de['is']('element','tableCellSuggestion')&&_0x594be7['push'](_0x1101de);}_0xac8ae6['_suggestionFactory']['getSuggestionCallback'](_0x3077c3,null,_0x38cebe)(_0x2b969e,_0x5196f6,_0x812039);for(const _0x53a485 of _0x594be7)'$graveyard'!=_0x53a485['root']['rootName']&&_0x196680['unwrap'](_0x53a485);});});};_0x560041('insertion','accept'),_0x560041('insertion','discard'),_0x560041('deletion','accept'),_0x560041('deletion','discard'),_0xac8ae6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x285d3a=>{const _0x534b38=_0x285d3a['map'](_0xae53b3=>_0xae53b3['getContainedElement']()),_0x25077b=_0x534b38[0x0]['findAncestor']('table'),{minRow:_0x581c31,maxRow:_0x14553d}=_0x3aa266['_getCoordsForCells'](_0x534b38);_0x10b5b9['removeRows'](_0x25077b,{'at':_0x581c31,'rows':_0x14553d-_0x581c31+0x1});}),_0xac8ae6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2abb55=>{const _0x4ea058=_0x2abb55['map'](_0xcab8d4=>_0xcab8d4['getContainedElement']()),_0x3199b1=_0x4ea058[0x0]['findAncestor']('table'),{minColumn:_0x48162d,maxColumn:_0x23d010}=_0x3aa266['_getCoordsForCells'](_0x4ea058);_0x10b5b9['removeColumns'](_0x3199b1,{'at':_0x48162d,'columns':_0x23d010-_0x48162d+0x1});});const _0x4e2b8b=(_0x380a02,_0x53d7f5)=>{if(!_0x53d7f5['subType']||!_0x53d7f5['subType']['startsWith']('tablePaste'))return;const _0x4e81ec=_0x53d7f5['attributes']['tablePasteChainId'],_0x5bb4eb=_0xac8ae6['getSuggestions']()['filter'](_0x5ebd70=>_0x5ebd70['isInContent']&&_0x5ebd70['attributes']&&_0x5ebd70['attributes']['tablePasteChainId']==_0x4e81ec);_0x5bb4eb['length']&&_0x53d7f5['getAllAdjacentSuggestions']()['length']!=_0x5bb4eb['length']&&_0x5bb4eb['reduce']((_0x5396b8,_0x26ba4e)=>(_0x5396b8['next']=_0x26ba4e,_0x26ba4e['previous']=_0x5396b8,_0x26ba4e));};function _0x15659d(_0x347b0d,_0x43c1c2=!0x0){const {id:_0xe17106,authorId:_0x3c2bc6}=_0xac8ae6['_splitMarkerName'](_0x347b0d['markerName']),_0x49976e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x31d7ea=_0xac8ae6['activeMarkers']['includes'](_0x347b0d['markerName']);return _0x31d7ea&&_0x49976e['push']('ck-suggestion-marker--active'),{'classes':_0x49976e,'attributes':{'data-suggestion':_0xe17106,'data-author-id':_0x3c2bc6},'priority':_0x31d7ea&&_0x43c1c2?0xbc2:0xbb8};}_0xac8ae6['on']('suggestionLoaded',_0x4e2b8b,{'priority':'high'}),_0xac8ae6['on']('suggestionUnloaded',_0x4e2b8b,{'priority':'high'}),_0x324a30['model']['document']['registerPostFixer'](()=>{let _0x127744=!0x1;const _0x55b647=Array['from'](_0x324a30['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x38f102,data:_0x2dad3b}of _0x55b647){const {group:_0x383edf,type:_0x30ff3e,id:_0x2ae9fa}=_0xac8ae6['_splitMarkerName'](_0x38f102);if('suggestion'!=_0x383edf||'deletion'!=_0x30ff3e||_0x2dad3b['oldRange'])continue;if(!_0xac8ae6['hasSuggestion'](_0x2ae9fa))continue;const _0x56476e=_0xac8ae6['getSuggestion'](_0x2ae9fa)['getRanges'](),_0xe21992=_0x324a30['plugins']['get']('Users')['me'];for(const _0xa2f56f of _0xac8ae6['getSuggestions']()){if(!_0xa2f56f['isInContent']||_0xa2f56f['author']!=_0xe21992)continue;if('formatBlock'!=_0xa2f56f['type']||'tablePasteCell'!=_0xa2f56f['subType'])continue;if(_0xa2f56f['getRanges']()['every'](_0x1fc498=>_0x56476e['some'](_0x3bf15d=>_0x3bf15d['containsRange'](_0x1fc498,!0x0)))){for(const _0x34739b of _0xa2f56f['getAllAdjacentSuggestions']())_0x34739b['isInContent']&&(_0x34739b['discard'](),_0x127744=!0x0);}}}return _0x127744;}),_0x324a30['model']['document']['registerPostFixer'](_0x4c2ab3=>{const _0x181034=_0x324a30['commands']['get']('redo');if(!_0x181034||!_0x181034['_createdBatches']['has'](_0x4c2ab3['batch']))return!0x1;let _0x567796=!0x1;const _0x21686b=_0x324a30['plugins']['get']('Users')['me'],_0x5f33e1=_0x324a30['model']['document']['differ']['getChanges'](),_0x2b9f37=Array['from'](_0x324a30['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1faa68,data:_0x24cca3})=>{const {group:_0xa180eb,subType:_0x4de8cf,authorId:_0x11b36b}=_0xac8ae6['_splitMarkerName'](_0x1faa68);return'suggestion'==_0xa180eb&&'tablePaste'==_0x4de8cf&&_0x11b36b==_0x21686b['id']&&!_0x24cca3['oldRange'];});for(const _0x531137 of _0x5f33e1){if('insert'!=_0x531137['type']||'tableCellSuggestion'!=_0x531137['name']||0x1!=_0x531137['length'])continue;const _0x21f9b1=_0x4c2ab3['createRange'](_0x531137['position'],_0x531137['position']['getShiftedBy'](0x1));if(!_0x2b9f37['find'](({data:_0x583782})=>_0x583782['newRange']['isEqual'](_0x21f9b1))){for(const {name:_0x40eba7,data:_0x5811a9}of _0x2b9f37)if(_0x21f9b1['containsRange'](_0x5811a9['newRange'])){_0x4c2ab3['updateMarker'](_0x40eba7,{'range':_0x21f9b1}),_0x567796=!0x0;break;}}}return _0x567796;}),_0x324a30['model']['document']['registerPostFixer'](_0x4971be=>{let _0x5e8b66=!0x1;const _0x3e2fc6=_0x324a30['plugins']['get']('Users')['me'],_0x2cc71b=_0xac8ae6['getSuggestions']()['filter'](_0x45849a=>_0x45849a['isInContent']&&_0x45849a['author']==_0x3e2fc6),_0x1736ee=new Set(),_0x3e09d8=new Set();for(const _0x496382 of _0x2cc71b)if('tablePaste'==_0x496382['subType'])for(const _0x39cce1 of _0x496382['getMarkers']()){const _0xe06470=_0x39cce1['getRange']()['getContainedElement']();if(_0xe06470){if(_0xe06470['is']('element','tableCellSuggestion')&&Oe(_0xe06470)){_0x496382['removeMarker'](_0x39cce1['name']),_0x1736ee['add'](_0xe06470),_0x5e8b66=!0x0;const _0x458769=_0xe06470['nextSibling'],_0x2da505=_0xe06470['previousSibling'],_0xf701fc=_0x458769&&_0x458769['is']('element','tableCellSuggestion'),_0x15154b=_0x2da505&&_0x2da505['is']('element','tableCellSuggestion');_0xf701fc&&!_0x1736ee['has'](_0x458769)&&_0x3e09d8['add'](_0x458769),_0x15154b&&!_0x1736ee['has'](_0x2da505)&&_0x3e09d8['add'](_0x2da505);}else _0xe06470['is']('element','paragraph')&&_0xe06470['isEmpty']&&(_0x496382['removeMarker'](_0x39cce1['name']),_0x5e8b66=!0x0);}}else{if('tablePasteCell'==_0x496382['subType']){if(!_0x496382['attributes']||!_0x496382['attributes']['tablePasteChainId'])continue;const _0x3ba375=_0x496382['attributes']['markerAttributes'];if(_0x3ba375&&Object['keys'](_0x3ba375)['length'])continue;const _0x228bfa=_0x496382['attributes']['tablePasteChainId'];let _0x23c3b8=!0x0,_0x3e9d73=!0x0;for(const _0x2d0d15 of _0x2cc71b)if(_0x2d0d15['subType']&&_0x2d0d15['subType']['startsWith']('tablePaste')){if(!_0x2d0d15['attributes']['tablePasteChainId']){_0x3e9d73=!0x1;break;}if(_0x2d0d15['id']!=_0x496382['id']&&_0x2d0d15['attributes']['tablePasteChainId']==_0x228bfa){_0x23c3b8=!0x1;break;}}_0x3e9d73&&_0x23c3b8&&(_0x496382['removeMarkers'](),_0x5e8b66=!0x0);}}for(const _0x344401 of _0x1736ee)_0x4971be['remove'](_0x344401);for(const _0x116dbf of _0x3e09d8)_0x4971be['unwrap'](_0x116dbf);return _0x5e8b66;}),_0x324a30['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x220a1f=>_0x15659d(_0x220a1f),'converterPriority':'high'}),_0x324a30['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x466f89,_0x5cca29)=>_0x5cca29['options']['showSuggestionHighlights']?_0x15659d(_0x466f89,!0x1):null,'converterPriority':'high'});const _0x11a1ad=_0x324a30['editing']['view'];this['listenTo'](_0x11a1ad['document'],'clipboardOutput',(_0x763137,_0x4ef6c8)=>{const _0x2ba127=[];for(const _0xf9b808 of _0x11a1ad['createRangeIn'](_0x4ef6c8['content'])['getItems']())_0xf9b808['is']('element','suggestion-td')&&_0x2ba127['push'](_0xf9b808);_0x11a1ad['change'](_0x229e25=>{for(const _0x30ca31 of _0x2ba127)_0x229e25['move'](_0x229e25['createRangeIn'](_0x30ca31),_0x229e25['createPositionBefore'](_0x30ca31)),_0x229e25['remove'](_0x30ca31);});});}}function Oe(_0x3f0363){if(_0x3f0363['isEmpty'])return!0x0;const _0x19574d=_0x3f0363['getChild'](0x0);return _0x19574d['is']('element','paragraph')&&_0x19574d['isEmpty'];}function Ue(_0x966d83,_0x15b834={},_0x28d938){for(const {isAnchor:_0x103eae,cellHeight:_0x4ef6cc,cellWidth:_0x560e29}of _0x28d938['createTableWalker'](_0x966d83,{'includeAllSlots':!0x0,..._0x15b834}))if(!_0x103eae||0x1!=_0x4ef6cc||0x1!=_0x560e29)return!0x1;return!0x0;}class $t extends _0x2a35ef{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x34f649=this['editor']['plugins']['get']('TrackChangesEditing');_0x34f649['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x34f649['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x34f649['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34f649['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x34f649['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x34f649['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2c0628,_0x451244){const _0xe7f7d9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e891a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4ee041=_0x451244['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1c5223=_0x5e891a['getColumnGroupElement'](_0x4ee041);let _0x32fc7d=_0x1c5223?_0x5e891a['getTableColumnsWidths'](_0x1c5223):null,_0x20fa29=_0x4ee041['getAttribute']('tableWidth')||null;const _0x4ae2f2=_0x451244['tableWidth']||_0x20fa29,_0x3a4afb=_0x451244['columnWidths']||_0x32fc7d,_0x334d4d=this['editor']['plugins']['get']('Users')['me'];for(const _0x1d68e5 of _0xe7f7d9['getSuggestions']()){const _0xfe7d50=_0x1d68e5['getContainedElement']();if('resizeTable'===_0x1d68e5['subType']&&_0xfe7d50===_0x4ee041){_0x1d68e5['author']!==_0x334d4d&&_0x1d68e5['discard']();const _0x7c81ee=_0x1d68e5['data']['commandParams'];_0x20fa29=_0x7c81ee[0x0]['tableWidth'],_0x32fc7d=_0x7c81ee[0x0]['columnWidths'];break;}}_0x2c0628({'table':_0x4ee041,'tableWidth':_0x4ae2f2,'columnWidths':_0x3a4afb}),_0xe7f7d9['markBlockFormat'](_0x4ee041,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x20fa29,'columnWidths':_0x32fc7d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x244df3){if('formatBlock'!=_0x244df3['type']&&'formatInline'!=_0x244df3['type'])return;const {data:_0x1ca9d4}=_0x244df3;if(_0x1ca9d4&&'resizeTable'===_0x1ca9d4['formatGroupId']){const _0x5033cf='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x5033cf)};}}}class Bt extends _0x2a35ef{['afterInit'](){const _0x11bbf6=this['editor'];_0x11bbf6['plugins']['has']('Template')&&_0x11bbf6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x2a35ef{['afterInit'](){const _0xa29d81=this['editor'];if(!_0xa29d81['commands']['get']('insertTableOfContents'))return;_0xa29d81['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2cb49d=_0xa29d81['plugins']['get']('TrackChangesEditing'),_0x5ee651=_0xa29d81['locale'];_0x2cb49d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4c7bdf=>c(_0x5ee651,'ELEMENT_TABLE_OF_CONTENTS',_0x4c7bdf));}}class Rt extends _0x2a35ef{['afterInit'](){const _0x4e165e=this['editor'];if(!_0x4e165e['plugins']['has']('Title'))return;const _0x6bf764=_0x4e165e['plugins']['get']('TrackChangesEditing');_0x6bf764['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x4e165e['locale'],'ELEMENT_TITLE')),_0x4e165e['model']['document']['registerPostFixer'](_0x5eaaaa=>{let _0x349b82=!0x1;const _0x196144=Array['from'](_0x4e165e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23c1bd,data:_0xdb244d}of _0x196144){const {group:_0x553d9d}=_0x6bf764['_splitMarkerName'](_0x23c1bd);if('suggestion'!==_0x553d9d||!_0xdb244d['newRange'])continue;const _0x125e85=_0xdb244d['newRange'],_0x3184a8=_0x125e85['end']['nodeBefore'];if(!_0x3184a8||!_0x3184a8['is']('element','title-content'))continue;if(!_0x125e85['start']['isTouching'](_0x125e85['end']))continue;const _0x3b98a7=_0x4e165e['model']['schema']['getNearestSelectionRange'](_0x125e85['end'],'forward');if(_0x3b98a7&&_0x3b98a7['isCollapsed']){const _0xe66181=_0x5eaaaa['createRange'](_0x125e85['start'],_0x3b98a7['start']);_0xe66181['isEqual'](_0x125e85)||(_0x5eaaaa['updateMarker'](_0x23c1bd,{'range':_0xe66181}),_0x349b82=!0x0);}_0x349b82||(_0x5eaaaa['removeMarker'](_0x23c1bd),_0x349b82=!0x0);}return _0x349b82;});}}class xt extends _0x2a35ef{['afterInit'](){const _0x3e5d8e=this['editor'],_0x3e8fad=_0x3e5d8e['plugins']['get']('TrackChangesEditing');_0x3e5d8e['plugins']['has']('Uploadcare')&&(_0x3e8fad['enableCommand']('uploadcare'),_0x3e5d8e['plugins']['has']('UploadcareImageEdit')&&(_0x3e8fad['enableCommand']('uploadcareImageEdit'),_0x3e8fad['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3e8fad['registerBlockAttribute']('uploadcareImageId'),_0x3e8fad['descriptionFactory']['registerDescriptionCallback'](_0x34b6dc=>{if('attribute'!=_0x34b6dc['type'])return;const {data:_0x133acd}=_0x34b6dc;return _0x133acd&&'uploadcareImageId'==_0x133acd['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x2a35ef{['afterInit'](){const _0x21799e=this['editor'],_0x3680e8=_0x21799e['plugins']['get']('TrackChangesEditing');_0x21799e['plugins']['has']('UndoEditing')&&(_0x3680e8['enableCommand']('undo'),_0x3680e8['enableCommand']('redo'));}}class Et extends _0x2a35ef{static get['requires'](){return[Ct];}['afterInit'](){const _0x23b871=this['editor'];if(!_0x23b871['plugins']['has']('TableCaptionEditing'))return;_0x23b871['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x2a35ef{['tableProperties'];['tableCellProperties'];constructor(_0x396cb8){super(_0x396cb8),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x2f97ff=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x771357 of this['tableProperties'])_0x2f97ff['enableCommand'](_0x771357,(_0x3d90b4,_0x256b52)=>{const _0x598bae=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x771357,[_0x598bae],this['tableProperties'],'tableProperties',_0x3d90b4,_0x256b52);});_0x2f97ff['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2f97ff['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f97ff['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x45e616,_0x592ef9)=>this['handleDiscardAction'](this['tableProperties'],_0x45e616,_0x592ef9)),_0x2f97ff['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x534211 of this['tableCellProperties'])_0x2f97ff['enableCommand'](_0x534211,(_0x30336c,_0x19f302)=>{const _0x48b32a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x534211,_0x48b32a,this['tableCellProperties'],'tableCellProperties',_0x30336c,_0x19f302);});_0x2f97ff['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2f97ff['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f97ff['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1eaa22,_0x2b657d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1eaa22,_0x2b657d)),_0x2f97ff['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2f97ff['descriptionFactory']['registerDescriptionCallback'](_0x554558=>this['handleSuggestionDescription'](_0x554558));}['_handlePropertyChange'](_0x539d09,_0x2346d6,_0x36bd83,_0x5c0f2d,_0x56576c,_0x252142){const _0x25ac3b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x252142['batch'],()=>{for(const _0x516b3c of _0x2346d6){if(this['_getSuggestion'](_0x516b3c,_0x5c0f2d))_0x56576c(_0x252142);else{const _0x5bfd47={};for(const _0x34314f of _0x36bd83){const _0x5564c2=_0x516b3c['getAttribute'](_0x34314f);void 0x0!==_0x5564c2&&(_0x5bfd47[_0x34314f]=_0x5564c2);}_0x56576c(_0x252142),_0x25ac3b['markBlockFormat'](_0x516b3c,{'commandParams':[_0x5bfd47]},[],_0x5c0f2d);}}});}['handleDiscardAction'](_0x3f4ba5,_0x3c9926,_0x4898d4){const _0x1addc9=_0x3c9926[0x0]['start']['nodeAfter'],_0x39bfd7=_0x4898d4['commandParams'][0x0];this['editor']['model']['change'](_0x1fffe5=>{for(const _0x4b55e1 of _0x3f4ba5)void 0x0!==_0x39bfd7[_0x4b55e1]?_0x1fffe5['setAttribute'](_0x4b55e1,_0x39bfd7[_0x4b55e1],_0x1addc9):_0x1fffe5['removeAttribute'](_0x4b55e1,_0x1addc9);});}['handleSuggestionDescription'](_0x1c2386){if(_0x1c2386['data'])switch(_0x1c2386['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x2f3a94,_0x5c7ad8){const _0x4f39f7=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x117e6d of _0x4f39f7['getSuggestions']({'skipNotAttached':!0x0})){const _0x1af5a2=_0x117e6d['getContainedElement']();if(_0x117e6d['subType']===_0x5c7ad8&&_0x1af5a2===_0x2f3a94)return _0x117e6d;}return null;}}const u='$elementName';class p extends _0x2a35ef{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x27766d,_0x7ccbb7,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x512089){super(_0x512089),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x41d0c8,_0x1fac65,_0x5d71ce,_0x39a2a6)=>{this['_model']['change'](()=>{for(const _0x13525c of[..._0x39a2a6,..._0x5d71ce])this['_model']['markers']['has'](_0x13525c)&&_0x512089['editing']['reconvertMarker'](_0x13525c);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x512089['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x512089['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x512089['config']['get']('trackChanges.trackFormatChanges'),_0x512089['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x512089['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x512089,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x31746d=this['editor'],_0x2ac026=(_0x2beb74,_0x1c43d8)=>{if('attribute'!=_0x2beb74)return'ck-suggestion-marker-'+_0x2beb74;const _0x4b58bf=_0x1c43d8['split']('|')[0x0];return this['_isBlockAttribute'](_0x4b58bf)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x31746d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x322334=>{const {id:_0x53a43f,authorId:_0x59a11b,type:_0x31537b,subType:_0x1b4be7}=this['_splitMarkerName'](_0x322334['markerName']),_0x2fc416=['ck-suggestion-marker',_0x2ac026(_0x31537b,_0x1b4be7)];let _0x129bd0=0xbb8;return this['activeMarkers']['includes'](_0x322334['markerName'])&&(_0x2fc416['push']('ck-suggestion-marker--active'),_0x129bd0=0xbc2),'deletion'==_0x31537b&&(_0x129bd0+=0x5),{'classes':_0x2fc416,'attributes':{'data-suggestion':_0x53a43f,'data-author-id':_0x59a11b},'priority':_0x129bd0};}}),_0x31746d['conversion']['for']('dataDowncast')['add'](_0x3deadf=>{_0x3deadf['on']('addMarker:suggestion',(_0x50edc0,_0x2ab1ad,_0x170890)=>{if(!_0x170890['options']['showSuggestionHighlights'])return;const _0x41fbc5=_0x2ab1ad['item'];if(!_0x41fbc5)return;const _0x314ae6=_0x170890['mapper']['toViewElement'](_0x41fbc5);_0x31746d['model']['schema']['isObject'](_0x41fbc5)&&_0x314ae6&&!_0x314ae6['getCustomProperty']('widget')&&_0x314ae6['is']('containerElement')&&_0x40f76d(_0x314ae6,_0x170890['writer']);},{'priority':'high'});}),_0x31746d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3dc3c4,_0x5da494)=>{if(!_0x5da494['options']['showSuggestionHighlights'])return null;const {type:_0x17a611,subType:_0x542124}=this['_splitMarkerName'](_0x3dc3c4['markerName']);return{'classes':['ck-suggestion-marker',_0x2ac026(_0x17a611,_0x542124)],'priority':0xbb8};}});const _0x3d132e=({showActiveMarkers:_0x2ccff7=!0x0,isAttributeSuggestion:_0x29b1da=!0x1}={})=>(_0x370e01,_0x17cbf4,_0x519c34)=>{if(!_0x17cbf4['item'])return;const {id:_0x12a93b,authorId:_0x50f1cc}=this['_splitMarkerName'](_0x17cbf4['markerName']);if(_0x29b1da){const _0x1cc157=this['_suggestions']['get'](_0x12a93b),_0x30c27d=this['_getAttributeKey'](_0x1cc157);if(!this['_isBlockAttribute'](_0x30c27d))return;}if(_0x17cbf4['item']['is']('selection'))return void _0x519c34['consumable']['consume'](_0x17cbf4['item'],_0x370e01['name']);const _0x3ab003=_0x519c34['mapper']['toViewElement'](_0x17cbf4['item']);if(_0x17cbf4['item']['is']('element')&&_0x31746d['model']['schema']['isBlock'](_0x17cbf4['item'])&&!_0x3ab003['getCustomProperty']('addHighlight')){_0x519c34['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3ab003),_0x519c34['writer']['setAttribute']('data-suggestion',_0x12a93b,_0x3ab003),_0x519c34['writer']['setAttribute']('data-author-id',_0x50f1cc,_0x3ab003),_0x519c34['mapper']['bindElementToMarker'](_0x3ab003,_0x17cbf4['markerName']),_0x2ccff7&&(this['activeMarkers']['includes'](_0x17cbf4['markerName'])?_0x519c34['writer']['addClass']('ck-suggestion-marker--active',_0x3ab003):_0x519c34['writer']['removeClass']('ck-suggestion-marker--active',_0x3ab003));for(const _0x5e3757 of _0x31746d['model']['createRangeIn'](_0x17cbf4['item'])['getItems']())_0x519c34['consumable']['consume'](_0x5e3757,_0x370e01['name']);_0x519c34['consumable']['consume'](_0x17cbf4['item'],_0x370e01['name']);}};_0x31746d['conversion']['for']('dataDowncast')['add'](_0x585a83=>{_0x585a83['on']('addMarker:suggestion:formatBlock',(_0x8cae6a,_0xc434c3,_0x5e432a)=>{_0x5e432a['options']['showSuggestionHighlights']&&_0x3d132e({'showActiveMarkers':!0x1})(_0x8cae6a,_0xc434c3,_0x5e432a);},{'priority':'highest'});}),_0x31746d['conversion']['for']('dataDowncast')['add'](_0x1ffc7c=>{_0x1ffc7c['on']('addMarker:suggestion:attribute',(_0x530c60,_0x5d38cc,_0x963f29)=>{_0x963f29['options']['showSuggestionHighlights']&&_0x3d132e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x530c60,_0x5d38cc,_0x963f29);},{'priority':'highest'});}),_0x31746d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2dc704,_0xff438c)=>_0xff438c['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2dc704['substr'](0xb)}}),_0x31746d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x38e4d1,{writer:_0x10e1eb})=>{let _0x2b6f97='suggestion:'+_0x38e4d1['getAttribute']('suggestion-type')+':'+_0x38e4d1['getAttribute']('id');return _0x38e4d1['getAttribute']('marker-count')&&(_0x2b6f97+=':'+_0x38e4d1['getAttribute']('marker-count')),_0x10e1eb['createElement']('$marker',{'data-name':_0x2b6f97});}}),_0x31746d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x31746d['conversion']['for']('editingDowncast')['add'](_0x618a87=>{_0x618a87['on']('addMarker:suggestion:formatBlock',_0x3d132e(),{'priority':'high'});}),_0x31746d['conversion']['for']('editingDowncast')['add'](_0x534ed0=>{_0x534ed0['on']('addMarker:suggestion:attribute',_0x3d132e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x31746d['conversion']['for']('editingDowncast')['add'](_0x2cb78d=>{_0x2cb78d['on']('removeMarker:suggestion:formatBlock',(_0x159fde,_0x17721f,_0x491a93)=>{const _0xbb1d16=_0x491a93['mapper']['markerNameToElements'](_0x17721f['markerName']);if(_0xbb1d16){for(const _0xc570fc of _0xbb1d16)_0xc570fc['getCustomProperty']('addHighlight')||(_0x491a93['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xc570fc),_0x491a93['writer']['removeAttribute']('data-suggestion',_0xc570fc),_0x491a93['writer']['removeAttribute']('data-author-id',_0xc570fc),_0x491a93['mapper']['unbindElementFromMarkerName'](_0xc570fc,_0x17721f['markerName']));}},{'priority':'high'});}),_0x31746d['conversion']['for']('editingDowncast')['add'](_0x5cdf49=>{_0x5cdf49['on']('removeMarker:suggestion:attribute',(_0x122cd6,_0x2e6770,_0x27e603)=>{const _0x1ab214=_0x27e603['mapper']['markerNameToElements'](_0x2e6770['markerName']);if(!_0x1ab214)return;const {id:_0x1df476}=this['_splitMarkerName'](_0x2e6770['markerName']),_0x2724d0=this['_suggestions']['get'](_0x1df476),_0x1ad200=this['_getAttributeKey'](_0x2724d0);if(this['_isBlockAttribute'](_0x1ad200)){for(const _0xae75fd of _0x1ab214)_0xae75fd['getCustomProperty']('addHighlight')||(_0x27e603['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xae75fd),_0x27e603['writer']['removeAttribute']('data-suggestion',_0xae75fd),_0x27e603['writer']['removeAttribute']('data-author-id',_0xae75fd),_0x27e603['mapper']['unbindElementFromMarkerName'](_0xae75fd,_0x2e6770['markerName']));}},{'priority':'high'});}),_0x31746d['model']['document']['registerPostFixer'](_0x58782b=>{let _0x1ffefc=!0x1;const _0x41e9bf=Array['from'](_0x31746d['model']['document']['differ']['getChangedMarkers']()),_0xc2972d=new Set();for(const {name:_0x22b967,data:_0x507dd5}of _0x41e9bf){const {group:_0x5d4831,type:_0x22c852,subType:_0x582c68,id:_0x42ba5a}=this['_splitMarkerName'](_0x22b967);if('suggestion'!==_0x5d4831)continue;const _0x1c7115=this['_suggestions']['get'](_0x42ba5a);if(null!=_0x507dd5['newRange']){'formatInline'==_0x22c852&&(_0x1ffefc=_0x1ffefc||Lt(_0x507dd5['newRange'],_0x22b967,_0x58782b,_0x31746d['model']['schema']));const _0x515b75='attribute'==_0x22c852&&this['_isBlockAttribute'](_0x582c68['split']('|')[0x0]);if(_0x507dd5['newRange']['isCollapsed']||'$graveyard'==_0x507dd5['newRange']['root']['rootName']||'formatBlock'==_0x22c852&&!Kt(_0x507dd5['newRange'])||_0x515b75&&!Kt(_0x507dd5['newRange'])||'deletion'==_0x22c852&&!(!Gt(_0x5cd945=_0x507dd5['newRange'])&&!function(_0x6c4ec8){return _0x6c4ec8['start']['parent']==_0x6c4ec8['end']['nodeBefore']&&_0x6c4ec8['start']['isAtEnd'];}(_0x5cd945)))_0x58782b['removeMarker'](_0x22b967),_0x1ffefc=!0x0;else{if(!_0x1c7115||!_0x1c7115['isInContent'])continue;if(_0x507dd5['newRange']&&_0x507dd5['oldRange']&&_0x507dd5['newRange']['isEqual'](_0x507dd5['oldRange']))continue;_0xc2972d['add'](_0x1c7115);}}}var _0x5cd945;return _0xc2972d['size']>0x0&&(_0x1ffefc=!!this['_joinWithAdjacentSuggestions'](_0xc2972d)||_0x1ffefc),_0x1ffefc;}),_0x31746d['model']['document']['registerPostFixer'](_0x1da09d=>{let _0x35cf5c=!0x1;for(const _0x55dd85 of _0x31746d['model']['document']['differ']['getChanges']())if('insert'==_0x55dd85['type'])for(const _0x38e4e1 of this['_suggestions']['values']()){if(_0x38e4e1['isMultiRange']||!_0x38e4e1['isInContent'])continue;const _0xee538='formatBlock'==_0x38e4e1['type'],_0x27685c=this['_getAttributeKey'](_0x38e4e1),_0x416119=_0x27685c&&this['_isBlockAttribute'](_0x27685c);if(!_0xee538&&!_0x416119)continue;const _0x2b1946=_0x38e4e1['getFirstRange']();if(_0x2b1946['start']['parent']!=_0x2b1946['end']['parent']&&!_0x2b1946['end']['isAtEnd']){const _0x325913=_0x31746d['model']['createPositionAt'](_0x2b1946['start']['nodeAfter'],'end'),_0x367eea=_0x31746d['model']['createRange'](_0x2b1946['start'],_0x325913);_0x1da09d['updateMarker'](_0x38e4e1['getFirstMarker'](),{'range':_0x367eea}),_0x35cf5c=!0x0;}}return _0x35cf5c;}),_0x31746d['model']['document']['registerPostFixer'](_0x25f601=>this['_processAttributeChanges'](_0x25f601)),_0x31746d['model']['document']['registerPostFixer'](_0x5ba025=>!_0x5ba025['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5ba025)),_0x31746d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x31746d['model']['document']['on']('change:data',(_0xdf775e,_0x2e7505)=>{if(!_0x2e7505['isLocal']||_0x2e7505['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1e27e8=_0x31746d['model']['document']['differ']['getChanges']();if(0x0==_0x1e27e8['length'])return;const _0x19980d=[],_0x187175=_0x1e27e8['filter'](_0x1d6078=>'attribute'==_0x1d6078['type']),_0x43517d=_0x1e27e8['filter'](_0xb1e1d7=>'insert'==_0xb1e1d7['type']&&'$text'!=_0xb1e1d7['name']);for(const _0x1310ed of _0x187175)this['_isRegisteredAttribute'](_0x1310ed['attributeKey'])&&_0x19980d['push']({'key':_0x1310ed['attributeKey'],'newValue':_0x1310ed['attributeNewValue'],'oldValue':_0x1310ed['attributeOldValue'],'range':Ht(_0x1310ed['range'],_0x31746d['model'])});for(const _0x368973 of _0x43517d){if('rename'!=_0x368973['action']&&'refresh'!=_0x368973['action'])continue;const _0x5d3d1c=qt(_0x368973['position']['nodeAfter'],_0x31746d['model']),_0x4067b7=_0x368973['before'];'rename'==_0x368973['action']&&_0x19980d['push']({'key':u,'newValue':_0x368973['name'],'oldValue':_0x4067b7['name'],'range':_0x5d3d1c});for(const [_0xf1d846,_0x33a1c3]of _0x4067b7['attributes']){if(!this['_isRegisteredAttribute'](_0xf1d846))continue;const _0x33dd45=_0x368973['attributes']['get'](_0xf1d846);_0x33a1c3!==_0x33dd45&&_0x19980d['push']({'key':_0xf1d846,'newValue':_0x33dd45,'oldValue':_0x33a1c3,'range':_0x5d3d1c});}for(const [_0x517ec1,_0x3cdaf8]of _0x368973['attributes'])this['_isRegisteredAttribute'](_0x517ec1)&&(_0x4067b7['attributes']['has'](_0x517ec1)||_0x19980d['push']({'key':_0x517ec1,'newValue':_0x3cdaf8,'oldValue':null,'range':_0x5d3d1c}));}0x0!=_0x19980d['length']&&_0x31746d['model']['enqueueChange'](_0x2e7505,_0x2c79e2=>{const _0x113642=_0x50c0f0();for(const {range:_0x36d633,key:_0xad649e,oldValue:_0x28ec63,newValue:_0x4645d7}of _0x19980d)this['markAttributeChange'](_0x36d633,_0xad649e,_0x28ec63,_0x4645d7,{'groupId':_0x113642});this['_reduceExistingSuggestions'](_0x2c79e2,_0x19980d);});},{'priority':'lowest'}),_0x31746d['model']['markers']['on']('update:suggestion',(_0x23d132,_0x4b204c,_0x5a22c0)=>{if(null==_0x5a22c0){const {id:_0x496969}=this['_splitMarkerName'](_0x4b204c['name']),_0xcc60cd=this['_suggestions']['get'](_0x496969);_0xcc60cd&&_0xcc60cd['addMarkerName'](_0x4b204c['name']);}}),_0x31746d['model']['document']['on']('change:data',()=>{const _0x53dec0=Array['from'](_0x31746d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x141c12=>'suggestion'===this['_splitMarkerName'](_0x141c12['name'])['group']);if(0x0===_0x53dec0['length'])return;_0x53dec0['sort']((_0x3a3502,_0x3b7819)=>{const _0x2ae268=_0x3a3502['data']['oldRange'],_0x238424=_0x3b7819['data']['oldRange'];return null===_0x2ae268&&null===_0x238424?0x0:null===_0x2ae268&&null!==_0x238424?-0x1:null!==_0x2ae268&&null===_0x238424?0x1:_0x2ae268['start']['isBefore'](_0x238424['start'])?-0x1:0x1;});const _0x245401=new Set(),_0x3cb750=new Set();for(const {name:_0x769dff,data:_0x3d8ca4}of _0x53dec0){const {id:_0xfcf078}=this['_splitMarkerName'](_0x769dff);if(null===_0x3d8ca4['oldRange']){const _0x1e8a3a=this['_handleNewSuggestionMarker'](_0x769dff);_0x3cb750['add'](_0x1e8a3a);}else{const _0x27f2ac=this['_suggestions']['get'](_0xfcf078);null!==_0x3d8ca4['newRange']||_0x27f2ac['isInContent']?(_0x245401['add'](_0x27f2ac['head']),_0x3cb750['add'](_0x27f2ac)):this['_removeSuggestion'](_0x27f2ac);}}_0x3cb750['size']>0x0&&this['_refreshSuggestionsChain'](_0x3cb750);for(const _0x18c25a of _0x245401)this['fire']('suggestionChanged',_0x18c25a);}),_0x31746d['model']['on']('applyOperation',(_0xe7b916,_0x570fe4)=>{const _0x2cfad8=_0x570fe4[0x0];if(!this['_suggestions']['size'])return;if(!_0x2cfad8['isDocumentOperation'])return;if(_0x2cfad8['batch']['isUndo']||!_0x2cfad8['batch']['isLocal'])return;let _0x411aa8,_0x266fb6;switch(_0x2cfad8['type']){case'insert':_0x411aa8=_0x31746d['model']['createPositionAt'](_0x2cfad8['position']),_0x266fb6=_0x411aa8['getShiftedBy'](_0x2cfad8['howMany']);break;case'split':_0x411aa8=_0x31746d['model']['createPositionAt'](_0x2cfad8['splitPosition']),_0x266fb6=_0x31746d['model']['createPositionAt'](_0x2cfad8['moveTargetPosition']);break;case'move':_0x411aa8=_0x31746d['model']['createPositionAt'](_0x2cfad8['targetPosition']),_0x266fb6=_0x411aa8['getShiftedBy'](_0x2cfad8['howMany']);break;default:return;}const _0x38037e=_0x31746d['model']['createRange'](_0x411aa8,_0x266fb6);_0x31746d['model']['change'](()=>{for(const {suggestion:_0x2b441c,meta:_0x5125d0}of this['_findSuggestions'](_0x38037e)){if(_0x2b441c['isMultiRange'])continue;if('formatInline'==_0x2b441c['type'])continue;const _0x2d3938=this['_getAttributeKey'](_0x2b441c);if(_0x2d3938&&this['_isBlockAttribute'](_0x2d3938)&&'split'!=_0x2cfad8['type'])continue;const _0x120ba8=_0x2b441c['data']&&_0x2b441c['data']['multipleBlocks'];('formatBlock'!=_0x2b441c['type']||'split'==_0x2cfad8['type']&&!_0x120ba8)&&(_0x5125d0['containsRangeInObject']||'insertion'==_0x2b441c['type']&&_0x5125d0['isOwn']||_0x2b441c['getFirstRange']()['containsRange'](_0x38037e)&&this['_breakSuggestionMarker'](_0x2b441c,_0x411aa8,_0x266fb6));}});},{'priority':'lowest'}),_0x31746d['model']['on']('deleteContent',(_0x2ba910,_0x37d717)=>{const _0x2b77f1=_0x37d717[0x0],_0x4212c6=_0x37d717[0x1];if(_0x4212c6&&_0x4212c6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2b77f1['isCollapsed'])return;const _0xeeb6e8=_0x31746d['model']['schema'],{start:_0x20112c,end:_0x29228e}=_0x2b77f1['getFirstRange'](),_0x1f4ca7=_0x20112c['nodeAfter']&&_0xeeb6e8['isLimit'](_0x20112c['nodeAfter'])?null:_0xeeb6e8['getNearestSelectionRange'](_0x20112c,'forward'),_0x4d23fb=_0x29228e['nodeBefore']&&_0xeeb6e8['isLimit'](_0x29228e['nodeBefore'])?null:_0xeeb6e8['getNearestSelectionRange'](_0x29228e,'backward'),_0x59d902=_0x31746d['model']['createRange'](_0x1f4ca7?_0x1f4ca7['start']:_0x20112c,_0x4d23fb?_0x4d23fb['end']:_0x29228e);_0x31746d['model']['change'](_0xd28eab=>{this['markDeletion'](_0x59d902);const _0x363fc3=_0x31746d['model']['schema']['getNearestSelectionRange'](_0x59d902['start']);_0x2b77f1['is']('documentSelection')?_0xd28eab['setSelection'](_0x363fc3):_0x2b77f1['setTo'](_0x363fc3);}),_0x2ba910['stop']();},{'priority':_0x5bb9b8['normal']+0xa}),_0x31746d['model']['on']('insertContent',(_0x4a1c41,_0x56f16d)=>{const _0x3ce101=_0x56f16d[_0x56f16d['length']-0x1];_0x3ce101&&_0x3ce101['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x31746d['model']['change'](()=>{let _0x3d2bea=_0x31746d['model']['insertContent'](_0x56f16d[0x0],_0x56f16d[0x1],_0x56f16d[0x2],{'forceDefaultExecution':!0x0});if(!_0x3d2bea)return;_0x4a1c41['return']=_0x3d2bea['clone']();const _0x58f70c=_0x3d2bea['end']['nodeBefore'],_0x34729e=_0x31746d['model']['schema'];_0x58f70c&&_0x34729e['isBlock'](_0x58f70c)&&!_0x34729e['isObject'](_0x58f70c)&&(_0x3d2bea=_0x31746d['model']['createRange'](_0x3d2bea['start'],_0x31746d['model']['createPositionAt'](_0x58f70c,'end'))),this['markInsertion'](_0x3d2bea);}),_0x4a1c41['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3d5926=new O(_0x31746d,this['_suggestions']);_0x31746d['commands']['add']('acceptSuggestion',_0x3d5926),this['enableCommand']('acceptSuggestion');const _0x525b22=new R(_0x31746d,this['_suggestions']);_0x31746d['commands']['add']('discardSuggestion',_0x525b22),this['enableCommand']('discardSuggestion'),_0x31746d['commands']['add']('acceptAllSuggestions',new x(_0x31746d,_0x3d5926,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x31746d['commands']['add']('discardAllSuggestions',new x(_0x31746d,_0x525b22,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x31746d['commands']['add']('acceptSelectedSuggestions',new E(_0x31746d,_0x3d5926,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x31746d['commands']['add']('discardSelectedSuggestions',new E(_0x31746d,_0x525b22,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2cff3a=_0x31746d['plugins']['get']('CommentsRepository');this['listenTo'](_0x2cff3a,'addComment',(_0x5af58a,{threadId:_0x33fc6d})=>{const _0x3156e8=this['_suggestions']['get'](_0x33fc6d);_0x3156e8&&_0x3156e8['commentThread']&&0x1===_0x3156e8['commentThread']['length']&&this['_updateSuggestionData'](_0x33fc6d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2cff3a,'removeComment',(_0x26a3ac,{threadId:_0x28eb85})=>{const _0x44bde5=this['_suggestions']['get'](_0x28eb85);_0x44bde5&&_0x44bde5['commentThread']&&!_0x44bde5['commentThread']['length']&&this['_updateSuggestionData'](_0x28eb85,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3ad273){const _0x50d61f=_0x4c4810([0x69,0x6e,0x51,0x62,0x6f,0x71,0x49,0x61,0x63,0x4d,0x4c,0x59,0x73,0x30,0x6d,0x50,0x36,0x78,0x45,0x68,0x75,0x5a,0x72,0x34,0x32,0x58,0x64,0x4a,0x53,0x48,0x35,0x66,0x74,0x47,0x65,0x4e,0x46,0x6c,0x76,0x52,0x31,0x56,0x55,0x77,0x4b,0x44,0x42,0x43,0x54,0x6b,0x7a,0x33,0x41,0x70,0x6a,0x38,0x39,0x37,0x4f,0x57,0x67,0x79]),_0x45b874=0x38a17312,_0x332839=0x38a61252^_0x45b874,_0x42d5c6=window[_0x4c4810([0x44,0x61,0x74,0x65])][_0x4c4810([0x6e,0x6f,0x77])](),_0x2d0472=_0x3ad273[_0x4c4810([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a57be=new window[(_0x4c4810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c94b1=>{_0x2d0472[_0x4c4810([0x6f,0x6e,0x63,0x65])](_0x4c4810([0x72,0x65,0x61,0x64,0x79]),_0x5c94b1);}),_0x1cda78={[_0x4c4810([0x6b,0x74,0x79])]:_0x4c4810([0x45,0x43]),[_0x4c4810([0x75,0x73,0x65])]:_0x4c4810([0x73,0x69,0x67]),[_0x4c4810([0x63,0x72,0x76])]:_0x4c4810([0x50,0x2d,0x32,0x35,0x36]),[_0x4c4810([0x78])]:_0x4c4810([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]),[_0x4c4810([0x79])]:_0x4c4810([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]),[_0x4c4810([0x61,0x6c,0x67])]:_0x4c4810([0x45,0x53,0x32,0x35,0x36])},_0x4c4f40=_0x2d0472[_0x4c4810([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4c4810([0x67,0x65,0x74])](_0x4c4810([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x575d04(){let _0x568fb0,_0x58955b=null,_0x332d39=null;try{if(_0x4c4f40==_0x4c4810([0x47,0x50,0x4c]))return _0x4c4810([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x568fb0=_0x4d2ac8(),!_0x568fb0)return _0x4c4810([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x568fb0[_0x4c4810([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x332d39=_0x8ca457(_0x568fb0[_0x4c4810([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x568fb0[_0x4c4810([0x6a,0x74,0x69])])),await _0x5241c7()?_0x148b36()?_0x1cfbe1()?_0x4c4810([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x254439()?(_0x568fb0[_0x4c4810([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c4810([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58955b=_0x5bdec7(_0x4c4810([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x568fb0[_0x4c4810([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c4810([0x74,0x72,0x69,0x61,0x6c])&&(_0x58955b=_0x5bdec7(_0x4c4810([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5eadb5()):_0x4c4810([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4c4810([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4c4810([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x19504d){return _0x4c4810([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1cfbe1(){const _0x152c23=[_0x4c4810([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4c4810([0x74,0x72,0x69,0x61,0x6c])][_0x4c4810([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x568fb0[_0x4c4810([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x42d5c6/0x3e8:0xe10*_0x332839;return _0x568fb0[_0x4c4810([0x65,0x78,0x70])]<_0x152c23;}function _0x148b36(){const _0x582f1e=_0x568fb0[_0x4c4810([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x582f1e)return!0x1;if(_0x582f1e[_0x4c4810([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c4810([0x2a])))return!0x0;if(_0x582f1e[_0x4c4810([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c4810([0x54,0x43])))return!0x0;if(_0x582f1e[_0x4c4810([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c4810([0x52,0x54,0x43]))){if(_0x154d33())return!0x0;if(_0x27e368()||_0x15db16())return!0x0;}return!0x1;}function _0x254439(){const _0x181195=_0x568fb0[_0x4c4810([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x181195||0x0==_0x181195[_0x4c4810([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31aa76}=new URL(window[_0x4c4810([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x181195[_0x4c4810([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31aa76))return!0x0;const _0x334e26=_0x31aa76[_0x4c4810([0x73,0x70,0x6c,0x69,0x74])](_0x4c4810([0x2e]));return _0x181195[_0x4c4810([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4928e2=>_0x4928e2[_0x4c4810([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c4810([0x2a])))[_0x4c4810([0x6d,0x61,0x70])](_0x384afb=>_0x384afb[_0x4c4810([0x73,0x70,0x6c,0x69,0x74])](_0x4c4810([0x2e])))[_0x4c4810([0x73,0x6f,0x6d,0x65])](_0x577e7f=>_0x334e26[_0x4c4810([0x65,0x76,0x65,0x72,0x79])]((_0x54b42a,_0x509e82)=>_0x577e7f[_0x509e82]===_0x54b42a||_0x577e7f[_0x509e82]===_0x4c4810([0x2a])));}function _0x5eadb5(){return _0x58955b&&_0x332d39?new window[(_0x4c4810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e7732,_0x30619d)=>{_0x58955b[_0x4c4810([0x74,0x68,0x65,0x6e])](_0x3e7732,_0x30619d),_0x332d39[_0x4c4810([0x74,0x68,0x65,0x6e])](_0x24e584=>{_0x24e584!=_0x4c4810([0x56,0x61,0x6c,0x69,0x64])&&_0x3e7732(_0x24e584);},_0x30619d);}):_0x58955b||_0x332d39||_0x4c4810([0x56,0x61,0x6c,0x69,0x64]);}}function _0x8ca457(_0x33ea6d,_0x1d6542){return new window[(_0x4c4810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46faa1=>{if(_0x2a0c43())return _0x46faa1(_0x4c4810([0x56,0x61,0x6c,0x69,0x64]));_0x2236c1(),_0x2d0472[_0x4c4810([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4c4810([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3b4ad3=!0x1;const _0x4c584a=_0x50c0f0();function _0x19dd1a(_0x11701f){return!!_0x11701f&&(typeof _0x11701f===_0x4c4810([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x11701f===_0x4c4810([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x11701f[_0x4c4810([0x74,0x68,0x65,0x6e])]===_0x4c4810([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x11701f[_0x4c4810([0x63,0x61,0x74,0x63,0x68])]===_0x4c4810([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x336a9c(_0x33b933){_0x4f60bd(_0x33b933)[_0x4c4810([0x74,0x68,0x65,0x6e])](_0x5ce9dc=>{if(!_0x5ce9dc||_0x5ce9dc[_0x4c4810([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4c4810([0x6f,0x6b]))return _0x4c4810([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x48e799(_0x1b249f(_0x4c584a+_0x1d6542))!=_0x5ce9dc[_0x4c4810([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4c4810([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4c4810([0x56,0x61,0x6c,0x69,0x64]);})[_0x4c4810([0x74,0x68,0x65,0x6e])](_0x4bcbf1=>(_0x16b0fd(),_0x4bcbf1),()=>{const _0x1aef16=_0x23822a();return null==_0x1aef16?(_0x16b0fd(),_0x4c4810([0x56,0x61,0x6c,0x69,0x64])):_0x4c4810(_0x42d5c6-_0x1aef16>(0x1cadf712^_0x45b874)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4c4810([0x74,0x68,0x65,0x6e])](_0x46faa1)[_0x4c4810([0x63,0x61,0x74,0x63,0x68])](()=>{_0x46faa1(_0x4c4810([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e152f=0x38979d92^_0x45b874;function _0x16b0fd(){const _0x1d0faa=_0x4c4810([0x6c,0x6c,0x63,0x74,0x2d])+_0x48e799(_0x1b249f(_0x33ea6d)),_0x2e083e=_0x501cfc(_0x48e799(window[_0x4c4810([0x4d,0x61,0x74,0x68])][_0x4c4810([0x63,0x65,0x69,0x6c])](_0x42d5c6/_0x2e152f)));window[_0x4c4810([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c4810([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d0faa,_0x2e083e);}function _0x23822a(){const _0x5a30d7=_0x4c4810([0x6c,0x6c,0x63,0x74,0x2d])+_0x48e799(_0x1b249f(_0x33ea6d)),_0x408b3f=window[_0x4c4810([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c4810([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a30d7);return _0x408b3f?window[_0x4c4810([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x501cfc(_0x408b3f),0x10)*_0x2e152f:null;}function _0x4f60bd(_0x411b43){return new window[(_0x4c4810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11c990,_0x37b097)=>{_0x411b43[_0x4c4810([0x74,0x68,0x65,0x6e])](_0x11c990,_0x37b097),window[_0x4c4810([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37b097,0x38a0a7d2^_0x45b874);});}}_0x2d0472[_0x4c4810([0x6f,0x6e])](_0x4c4810([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x293d34,_0x582d9d)=>{if(_0x582d9d[0x0]!=_0x33ea6d)return _0x46faa1(_0x4c4810([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x582d9d[0x1]={..._0x582d9d[0x1],[_0x4c4810([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c584a};},{[_0x4c4810([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c4810([0x68,0x69,0x67,0x68])}),_0x2d0472[_0x4c4810([0x6f,0x6e])](_0x4c4810([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3c7541=>{_0x19dd1a(_0x3c7541[_0x4c4810([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3b4ad3=!0x0,_0x336a9c(_0x3c7541[_0x4c4810([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4c4810([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c4810([0x6c,0x6f,0x77])}),_0x1a57be[_0x4c4810([0x74,0x68,0x65,0x6e])](()=>{_0x3b4ad3||_0x46faa1(_0x4c4810([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2a0c43(){return _0x2d0472[_0x4c4810([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c4810([0x76,0x69,0x65,0x77])][_0x4c4810([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4c4810([0x61,0x75,0x74,0x6f]);}function _0x2236c1(){_0x2d0472[_0x4c4810([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c4810([0x76,0x69,0x65,0x77])][_0x4c4810([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c4810([0x61,0x75,0x74,0x6f]);}}function _0x5bdec7(_0x4de454){const _0x45e4d7=[new window[(_0x4c4810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b433d=>setTimeout(_0x5b433d,0x38a84dde^_0x45b874)),_0x1a57be[_0x4c4810([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4c4810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d2287=>{let _0x3b4a9d=0x0;_0x2d0472[_0x4c4810([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c4810([0x6f,0x6e])](_0x4c4810([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x535721,_0x3436aa)=>{_0x3436aa[0x0][_0x4c4810([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3b4a9d++,_0x3b4a9d==(0x38a172ea^_0x45b874)&&(_0x5d2287(),_0x535721[_0x4c4810([0x6f,0x66,0x66])]());});}))];return window[_0x4c4810([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c4810([0x72,0x61,0x63,0x65])](_0x45e4d7)[_0x4c4810([0x74,0x68,0x65,0x6e])](()=>_0x4de454);}async function _0xde4f8f(){await _0x1a57be,_0x2d0472[_0x4c4810([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c4810([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x44e7cb,_0x2d0472[_0x4c4810([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c4810([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x44e7cb,_0x2d0472[_0x4c4810([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4c4810([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x154d33(){return _0x248d28(_0x4c4810([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5a2b7a(_0x4c4810([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4c4810([0x73,0x74,0x61,0x74,0x65])]==_0x4c4810([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x27e368(){return _0x248d28(_0x4c4810([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 _0x15db16(){return _0x248d28(_0x4c4810([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5b6e1e(_0xc00f76){const _0x3ddc14=_0x3994b0();_0x2d0472[_0x3ddc14]=_0x4c4810([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xc00f76,_0xc00f76!=_0x4c4810([0x56,0x61,0x6c,0x69,0x64])&&_0xde4f8f();}function _0x3994b0(){const _0xb4833b=window[_0x4c4810([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4c4810([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4c4810([0x6e,0x6f,0x77])]())[_0x4c4810([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4c4810([0x2e]),'');let _0x33c69f=_0x4c4810([0x69]);for(let _0x2d9c81=0x0;_0x2d9c81<_0xb4833b[_0x4c4810([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d9c81+=0x2){let _0x489019=window[_0x4c4810([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb4833b[_0x4c4810([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d9c81,_0x2d9c81+0x2));_0x489019>=_0x50d61f[_0x4c4810([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x489019-=_0x50d61f[_0x4c4810([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x33c69f+=_0x50d61f[_0x489019];}return _0x33c69f;}function _0x4d2ac8(){const _0x2cfd6c=_0x4c4f40[_0x4c4810([0x73,0x70,0x6c,0x69,0x74])](_0x4c4810([0x2e]));if(0x3!=_0x2cfd6c[_0x4c4810([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xe2f736(_0x2cfd6c[0x1]);function _0xe2f736(_0x4ad862){const _0x335b1c=_0x43e653(_0x4ad862);return _0x335b1c&&_0x566518()?_0x335b1c:null;function _0x566518(){const _0x2999f2=_0x335b1c[_0x4c4810([0x6a,0x74,0x69])],_0xa934ec=window[_0x4c4810([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2999f2[_0x4c4810([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2999f2[_0x4c4810([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5173dd={..._0x335b1c,[_0x4c4810([0x6a,0x74,0x69])]:_0x2999f2[_0x4c4810([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2999f2[_0x4c4810([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5173dd[_0x4c4810([0x76,0x63])],_0x1b249f(_0x5173dd)==_0xa934ec;}}}async function _0x5241c7(){let _0x413537=!0x0;try{const _0x5b3c74=_0x4c4f40[_0x4c4810([0x73,0x70,0x6c,0x69,0x74])](_0x4c4810([0x2e])),[_0x3454f3,_0x3e5af1,_0x1e4010]=_0x5b3c74;return _0x271f19(_0x3454f3),await _0x28d0a3(_0x3454f3,_0x3e5af1,_0x1e4010),_0x413537;}catch(_0xf9f378){return!0x1;}function _0x271f19(_0x4bc74b){const _0x3186f2=_0x43e653(_0x4bc74b);_0x3186f2&&_0x3186f2[_0x4c4810([0x61,0x6c,0x67])]==_0x4c4810([0x45,0x53,0x32,0x35,0x36])||(_0x413537=!0x1);}async function _0x28d0a3(_0x3c26d5,_0x41c9c8,_0x3c3c50){const _0x2464e7=window[_0x4c4810([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4c4810([0x66,0x72,0x6f,0x6d])](_0x27a6f0(_0x3c3c50),_0x1bff86=>_0x1bff86[_0x4c4810([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x31a327=new window[(_0x4c4810([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4c4810([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3c26d5+_0x4c4810([0x2e])+_0x41c9c8),_0x456892=window[_0x4c4810([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4c4810([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x456892)return;const _0x5b8140=await _0x456892[_0x4c4810([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4c4810([0x6a,0x77,0x6b]),_0x1cda78,{[_0x4c4810([0x6e,0x61,0x6d,0x65])]:_0x4c4810([0x45,0x43,0x44,0x53,0x41]),[_0x4c4810([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4c4810([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4c4810([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x456892[_0x4c4810([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4c4810([0x6e,0x61,0x6d,0x65])]:_0x4c4810([0x45,0x43,0x44,0x53,0x41]),[_0x4c4810([0x68,0x61,0x73,0x68])]:{[_0x4c4810([0x6e,0x61,0x6d,0x65])]:_0x4c4810([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5b8140,_0x2464e7,_0x31a327)||(_0x413537=!0x1);}}function _0x43e653(_0x416c68){return _0x416c68[_0x4c4810([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4c4810([0x65,0x79]))?JSON[_0x4c4810([0x70,0x61,0x72,0x73,0x65])](_0x27a6f0(_0x416c68)):null;}function _0x27a6f0(_0x548087){return window[_0x4c4810([0x61,0x74,0x6f,0x62])](_0x548087[_0x4c4810([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4c4810([0x2b]))[_0x4c4810([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4c4810([0x2f])));}function _0x1b249f(_0x329edf){let _0x31b465=0x1505;function _0x2f35b7(_0x4581cb){for(let _0x188019=0x0;_0x188019<_0x4581cb[_0x4c4810([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x188019++){const _0x41bab6=_0x4581cb[_0x4c4810([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x188019);_0x31b465=(_0x31b465<<0x5)+_0x31b465+_0x41bab6,_0x31b465&=_0x31b465;}}function _0x435812(_0x3ee0f3){Array[_0x4c4810([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ee0f3)?_0x3ee0f3[_0x4c4810([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x435812):_0x3ee0f3&&typeof _0x3ee0f3==_0x4c4810([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4c4810([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ee0f3)[_0x4c4810([0x73,0x6f,0x72,0x74])]()[_0x4c4810([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x453ff5,_0x3937e4])=>{_0x2f35b7(_0x453ff5),_0x435812(_0x3937e4);}):_0x2f35b7(window[_0x4c4810([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ee0f3));}return _0x435812(_0x329edf),_0x31b465>>>0x0;}function _0x48e799(_0x4807bb){return _0x4807bb[_0x4c4810([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4c4810([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4c4810([0x30]));}function _0x501cfc(_0xbea40){return _0xbea40[_0x4c4810([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4c4810([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4c4810([0x6a,0x6f,0x69,0x6e])]('');}function _0x248d28(_0x1e08d5){return _0x2d0472[_0x4c4810([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4c4810([0x68,0x61,0x73])](_0x1e08d5);}function _0x5a2b7a(_0x1044f6){return _0x2d0472[_0x4c4810([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4c4810([0x67,0x65,0x74])](_0x1044f6);}function _0x44e7cb(){}function _0x4c4810(_0x16cea2){return _0x16cea2['map'](_0x1ef9d3=>String['fromCharCode'](_0x1ef9d3))['join']('');}_0x5b6e1e(await _0x575d04());}(this);}set['adapter'](_0x156bcb){if(this['_adapter'])throw new _0x415647('track-changes-adapter-already-set',this);this['_adapter']=_0x156bcb;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x200009=!0x1,toJSON:_0x1dfb91=!0x1}={}){const _0x68945c=[];for(const _0x3fe66a of this['_suggestions']['values']())_0x200009&&!_0x3fe66a['isInContent']||_0x68945c['push'](_0x3fe66a);return _0x1dfb91?_0x68945c['map'](_0x1588b5=>_0x1588b5['toJSON']()):_0x68945c;}['getSuggestion'](_0x2ec46c){const _0xcc3041=this['_suggestions']['get'](_0x2ec46c);if(!_0xcc3041)throw new _0x415647('track-changes-suggestion-not-found',this);return _0xcc3041;}['hasSuggestion'](_0x31a11d){return this['_suggestions']['has'](_0x31a11d);}['addSuggestionData'](_0x213e4d){const {authorId:_0x46a877,id:_0x53859a,attributes:_0x26148c}=_0x213e4d,[_0x421ada,_0x29216e]=_0x213e4d['type']['split'](':'),_0x17b4ee=this['_suggestions']['get'](_0x53859a)||this['_createSuggestion'](_0x421ada,_0x29216e,_0x53859a,_0x46a877,_0x26148c);if(this['_addThreadToSuggestion'](_0x17b4ee),this['_checkSuggestionCorrectness'](_0x17b4ee,_0x421ada,_0x29216e||null,_0x46a877),_0x17b4ee['createdAt']=_0x213e4d['createdAt'],_0x17b4ee['_isDataLoaded']=!0x0,_0x26148c&&_0x26148c['@external']){const _0x1eec04=_0x26148c['@external'],_0xa78dc9=this['_getExternalAuthor'](_0x1eec04['authorName']);_0x17b4ee['authoredAt']=_0x1eec04['createdAt'],_0x17b4ee['author']=_0xa78dc9,_0x17b4ee['isExternal']=!0x0;}else _0x17b4ee['authoredAt']=_0x213e4d['createdAt'];switch(_0x213e4d['data']&&(_0x17b4ee['data']=_0x213e4d['data']),_0x213e4d['attributes']&&(_0x17b4ee['attributes']=_0x213e4d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x17b4ee['_saved']=!0x0),this['_suggestionState']['get'](_0x17b4ee)){case'notReady':this['_suggestionState']['set'](_0x17b4ee,'dataReady');break;case'markerReady':_0x17b4ee['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x17b4ee])),this['_refreshSuggestionsChain'](new Set([_0x17b4ee])),this['_suggestionState']['set'](_0x17b4ee,'ready'),this['fire']('suggestionLoaded',_0x17b4ee)):this['_suggestionState']['set'](_0x17b4ee,'removed');}return _0x17b4ee;}['acceptSuggestion'](_0x437606){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x157186 of _0x437606['getAllAdjacentSuggestions']())_0x157186['accept']();});});}['discardSuggestion'](_0x327cd9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4bb9a3 of _0x327cd9['getAllAdjacentSuggestions']())_0x4bb9a3['discard']();});});}['enableCommand'](_0x36f928,_0x101e3b){const _0x3b4dfc=this['editor']['commands']['get'](_0x36f928);if(!_0x3b4dfc)throw new _0x415647('track-changes-command-not-found',this,{'commandName':_0x36f928});if(this['_enabledCommands']['has'](_0x3b4dfc))throw new _0x415647('track-changes-enable-command-twice',this,{'commandName':_0x36f928});this['_enabledCommands']['add'](_0x3b4dfc),_0x101e3b&&_0x3b4dfc['on']('execute',(_0x2d028f,_0x268a13)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x268a13['length']>0x0&&_0x268a13[_0x268a13['length']-0x1]&&_0x268a13[_0x268a13['length']-0x1]['forceDefaultExecution']?_0x268a13['pop']():(_0x2d028f['return']=_0x101e3b((..._0x288720)=>_0x3b4dfc['execute'](..._0x288720,{'forceDefaultExecution':!0x0}),..._0x268a13),_0x2d028f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x50cbd5){let _0x74d374,_0x494941;const _0xf08bfb=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x74d374=_0x50cbd5();}catch(_0x361f23){_0x494941=_0x361f23;}return _0xf08bfb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x494941&&_0x415647['rethrowUnexpectedError'](_0x494941,this),_0x74d374;}['markInsertion'](_0x1e2194,_0x100f66=null,_0x3cd05f={}){if(_0x1e2194['isCollapsed'])return null;const _0x3e87b2=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1443e3,meta:_0x37fd70}of this['_findSuggestions'](_0x1e2194,'insertion'))if(_0x37fd70['isOwn']){if(!_0x37fd70['isNextTo']){if(_0x37fd70['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x1443e3,_0x3cd05f))continue;return _0x1443e3;}if(Qt(_0x1443e3,_0x3cd05f))return _0x1443e3;this['_breakSuggestionMarker'](_0x1443e3,_0x1e2194['start'],_0x1e2194['end']);break;}if(_0x100f66==_0x1443e3['subType']&&Qt(_0x1443e3,_0x3cd05f)){const _0x5ae716=_0x1443e3['getFirstRange']();return _0x5ae716['start']['isEqual'](_0x1e2194['end'])?this['_setSuggestionRange'](_0x1443e3,this['_model']['createRange'](_0x1e2194['start'],_0x5ae716['end'])):this['_setSuggestionRange'](_0x1443e3,this['_model']['createRange'](_0x5ae716['start'],_0x1e2194['end'])),_0x1443e3;}}const _0x27f66f=_0x50c0f0(),_0x14b3d8=_0x3e87b2['id'],_0x20827f=_0x100f66?'insertion:'+_0x100f66:'insertion',_0x4b4640=this['_setSuggestionData']({'id':_0x27f66f,'type':_0x20827f,'createdAt':new Date(),'authorId':_0x14b3d8,'attributes':_0x3cd05f});return this['_addSuggestionMarker'](_0x20827f,_0x27f66f,_0x14b3d8,_0x1e2194),_0x4b4640;}['markMultiRangeInsertion'](_0x170a55,_0x3a240c='multi',_0x1f5654={}){const _0xe4fb1d=this['editor']['plugins']['get']('Users')['me'],_0x56dc87=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3a240c,'join');for(const _0x245de6 of this['getSuggestions']())if(_0x245de6['author']['id']==_0xe4fb1d['id']&&'insertion'==_0x245de6['type']&&_0x245de6['subType']==_0x3a240c&&Qt(_0x245de6,_0x1f5654)&&(_0x56dc87(_0x245de6['getRanges'](),_0x170a55)||_0x56dc87(_0x170a55,_0x245de6['getRanges']()))){for(const _0x5de860 of _0x170a55)_0x245de6['addRange'](_0x5de860);return _0x245de6;}for(const {suggestion:_0x59aef3,meta:_0x587b33}of this['_findSuggestions'](_0x170a55,'insertion')){if(!_0x587b33['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x587b33['containsRangeInObject'])continue;if(!Qt(_0x59aef3,_0x1f5654))continue;let _0x16ae89=!0x0;for(const _0x437ecf of _0x59aef3['getRanges']())for(const _0x41e0e0 of _0x170a55)if(!_0x437ecf['containsRange'](_0x41e0e0)){_0x16ae89=!0x1;break;}if(_0x16ae89)return _0x59aef3;}const _0x5c29d7=_0x50c0f0(),_0x31743c=_0xe4fb1d['id'],_0x1910f6='insertion:'+_0x3a240c,_0x40276d=this['_setSuggestionData']({'id':_0x5c29d7,'type':_0x1910f6,'createdAt':new Date(),'authorId':_0x31743c,'attributes':_0x1f5654});for(const _0x597481 of _0x170a55)this['_addSuggestionMarker'](_0x1910f6,_0x5c29d7,_0x31743c,_0x597481,o['getMultiRangeId']());return _0x40276d;}['markInlineFormat'](_0x4fec48,_0x19f11d,_0x4cc15b=null,_0x59a9da={}){if(_0x4cc15b=_0x4cc15b||Jt(_0x19f11d),_0x4fec48['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x374235=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4cc15b,'accept');return this['forceDefaultExecution'](()=>_0x374235([_0x4fec48],_0x19f11d,_0x59a9da)),null;}const _0x224d3b=this['editor']['plugins']['get']('Users')['me'],_0x356b30=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x27ff38,meta:_0x1d8b5b}of this['_findSuggestions'](_0x4fec48,'insertion'))_0x1d8b5b['isOwn']&&!_0x1d8b5b['isInsideObject']&&_0x356b30['push'](..._0x27ff38['getRanges']());}const _0x406984=function(_0x464efa,_0x2575d3){const _0x39f8d1=[];for(const _0x192f54 of _0x2575d3){const _0x2e2f1d=_0x464efa['getIntersection'](_0x192f54);_0x2e2f1d&&_0x39f8d1['push'](_0x2e2f1d);}return _0x39f8d1;}(_0x4fec48,_0x356b30),_0x569e3c=function(_0x25d343,_0x26e230){const _0x50dbb0=[_0x25d343];for(const _0xa26cca of _0x26e230){let _0x3eedac=0x0;for(;_0x3eedac<_0x50dbb0['length'];){const _0x5367ae=_0x50dbb0[_0x3eedac]['getDifference'](_0xa26cca);_0x50dbb0['splice'](_0x3eedac,0x1,..._0x5367ae),_0x3eedac+=_0x5367ae['length'];}}return _0x50dbb0;}(_0x4fec48,_0x356b30);_0x406984['length']&&this['_model']['change'](()=>{for(const _0x2322fb of _0x406984){const _0x357d94=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4cc15b,'accept');this['forceDefaultExecution'](()=>_0x357d94([_0x2322fb],_0x19f11d,_0x59a9da));}});for(const _0x13705a of _0x569e3c){let _0x34c00c=null,_0x4dbdb0=_0x13705a['start'],_0x8cfce5=_0x13705a['end'];for(const {suggestion:_0x5f4c9c,meta:_0x47b205}of this['_findSuggestions'](_0x13705a,'formatInline')){if(!_0x47b205['isOwn'])continue;if(_0x5f4c9c['subType']!=_0x4cc15b)continue;if(!Qt(_0x5f4c9c,_0x59a9da))continue;const _0x2d10e2=_0x5f4c9c['getFirstRange']();if(_0x2d10e2['containsRange'](_0x13705a,!0x0))return null;_0x4dbdb0=_0x4dbdb0['isBefore'](_0x2d10e2['start'])?_0x4dbdb0:_0x2d10e2['start'],_0x8cfce5=_0x8cfce5['isAfter'](_0x2d10e2['end'])?_0x8cfce5:_0x2d10e2['end'],_0x34c00c?_0x2d10e2['start']['isBefore'](_0x34c00c['getFirstRange']()['start'])?(_0x34c00c['removeMarkers'](),_0x34c00c=_0x5f4c9c):_0x5f4c9c['removeMarkers']():_0x34c00c=_0x5f4c9c;}const _0x31675e=this['_model']['createRange'](_0x4dbdb0,_0x8cfce5);if(_0x34c00c)this['_setSuggestionRange'](_0x34c00c,_0x31675e);else{const _0x309165=_0x50c0f0(),_0x1196f8=_0x224d3b['id'];this['_setSuggestionData']({'id':_0x309165,'type':'formatInline:'+_0x4cc15b,'data':_0x19f11d,'createdAt':new Date(),'authorId':_0x1196f8,'attributes':_0x59a9da}),this['_addSuggestionMarker']('formatInline:'+_0x4cc15b,_0x309165,_0x1196f8,_0x31675e);}}return null;}['markBlockFormat'](_0xb655e9,_0x387678,_0x2c1db5=[],_0x1d6616=null,_0x19da55={}){_0x387678['formatGroupId']||(_0x387678['formatGroupId']=_0x387678['commandName']),_0x387678['multipleBlocks']=_0xb655e9['is']('range'),_0x1d6616=_0x1d6616||Jt(_0x387678);const _0x396ede=_0x2c1db5['map'](_0x3bfe9e=>qt(_0x3bfe9e,this['_model'])),_0x295470=_0xb655e9['is']('range')?_0xb655e9:qt(_0xb655e9,this['_model']);if('never'===this['_trackFormatChanges']){const _0x594a44=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d6616,'accept');return this['forceDefaultExecution'](()=>_0x594a44([_0x295470],_0x387678,_0x19da55)),null;}_0x396ede['push'](_0x295470);let _0x5d9a3a=!0x0;for(const _0x381b0a of _0x396ede)if(!this['_rangeIsInLocalUserInsertion'](_0x381b0a)){_0x5d9a3a=!0x1;break;}if(_0x5d9a3a&&'always'!==this['_trackFormatChanges']){const _0x52313b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d6616,'accept');return this['forceDefaultExecution'](()=>_0x52313b([_0x295470],_0x387678,_0x19da55)),null;}let _0x5bead6=null,_0x147800=_0x295470['start'],_0xee309d=_0x295470['end'];for(const {suggestion:_0x1c8db9,meta:_0x5d9530}of this['_findSuggestions'](_0x295470,'formatBlock')){if(!_0x5d9530['isOwn'])continue;if(_0x5d9530['isNextTo']||_0x5d9530['containsRangeInObject']||_0x5d9530['isInsideObject'])continue;if(_0x1c8db9['data']['formatGroupId']!=_0x387678['formatGroupId'])continue;if(!Qt(_0x1c8db9,_0x19da55))continue;const _0x32aae8=_0x1c8db9['getFirstRange']();if(_0x1c8db9['subType']==_0x1d6616){if(_0x32aae8['containsRange'](_0x295470,!0x0))return null;_0x147800=_0x147800['isBefore'](_0x32aae8['start'])?_0x147800:_0x32aae8['start'],_0xee309d=_0xee309d['isAfter'](_0x32aae8['end'])?_0xee309d:_0x32aae8['end'],_0x5bead6?_0x32aae8['start']['isBefore'](_0x5bead6['getFirstRange']()['start'])?(_0x5bead6['removeMarkers'](),_0x5bead6=_0x1c8db9):_0x1c8db9['removeMarkers']():_0x5bead6=_0x1c8db9;}else{const _0x34d571=_0x295470['getIntersection'](_0x32aae8);this['_cutOutSuggestionMarker'](_0x1c8db9,_0x34d571);}}const _0x2fc7df=this['editor']['plugins']['get']('Users')['me'],_0x1f33b0=_0x50c0f0(),_0x36f453=_0x2fc7df['id'];if(_0x5bead6)return this['_setSuggestionRange'](_0x5bead6,this['_model']['createRange'](_0x147800,_0xee309d)),_0x5bead6;{const _0x10044a=this['_setSuggestionData']({'id':_0x1f33b0,'type':'formatBlock:'+_0x1d6616,'data':_0x387678,'createdAt':new Date(),'authorId':_0x36f453,'attributes':_0x19da55});return this['_addSuggestionMarker']('formatBlock:'+_0x1d6616,_0x1f33b0,_0x36f453,this['_model']['createRange'](_0x147800,_0xee309d)),_0x10044a;}}['markMultiRangeBlockFormat'](_0x20f994,_0x34ac25,_0x271932=[],_0x426ab8=null,_0x6a9665={}){_0x34ac25['formatGroupId']||(_0x34ac25['formatGroupId']=_0x34ac25['commandName']);const _0x78bf57=_0x20f994[0x0];_0x34ac25['multipleBlocks']=_0x78bf57['is']('range'),_0x426ab8=_0x426ab8||Jt(_0x34ac25);const _0x58494f=_0x271932['map'](_0x5bd7f1=>qt(_0x5bd7f1,this['_model'])),_0xec3e4b=_0x78bf57['is']('range')?_0x20f994:_0x20f994['map'](_0x566aad=>qt(_0x566aad,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1d3729=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x426ab8,'accept');return this['forceDefaultExecution'](()=>_0x1d3729(_0xec3e4b,_0x34ac25,_0x6a9665)),null;}_0x58494f['push'](..._0xec3e4b);let _0x544811=!0x0;for(const _0x107aec of _0x58494f)if(!this['_rangeIsInLocalUserInsertion'](_0x107aec)){_0x544811=!0x1;break;}if(_0x544811&&'always'!==this['_trackFormatChanges']){const _0x30c318=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x426ab8,'accept');return this['forceDefaultExecution'](()=>_0x30c318(_0xec3e4b,_0x34ac25,_0x6a9665)),null;}const _0x54606d=this['editor']['plugins']['get']('Users')['me'];for(const _0x30f966 of this['getSuggestions']()){if(_0x30f966['author']['id']!=_0x54606d['id'])continue;if('formatBlock'!=_0x30f966['type']||_0x30f966['data']['formatGroupId']!=_0x34ac25['formatGroupId'])continue;if(!Qt(_0x30f966,_0x6a9665))continue;const _0x448656=_0x30f966['subType']==_0x426ab8;for(let _0x11f497=0x0;_0x11f497<_0xec3e4b['length'];_0x11f497++){const _0x4dcf6e=_0xec3e4b[_0x11f497];for(const _0xa231aa of _0x30f966['getMarkers']()){const _0x582de1=_0xa231aa['getRange']();if(_0x4dcf6e['isEqual'](_0x582de1)){_0x448656?(_0xec3e4b['splice'](_0x11f497,0x1),_0x11f497--):_0x30f966['removeMarker'](_0xa231aa['name']);break;}}}}if(0x0==_0xec3e4b['length'])return null;const _0x4ec891=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x426ab8,'join');for(const _0x368c07 of this['getSuggestions']())if(_0x368c07['author']['id']==_0x54606d['id']&&'formatBlock'==_0x368c07['type']&&_0x368c07['data']['formatGroupId']==_0x34ac25['formatGroupId']&&_0x368c07['subType']==_0x426ab8&&Qt(_0x368c07,_0x6a9665)&&(_0x4ec891(_0x368c07['getRanges'](),_0xec3e4b)||_0x4ec891(_0xec3e4b,_0x368c07['getRanges']()))){for(const _0x2b49fb of _0xec3e4b)_0x368c07['addRange'](_0x2b49fb);return _0x368c07;}const _0x9fba9e=_0x50c0f0(),_0x4b2e3e=_0x54606d['id'],_0x25c135='formatBlock:'+_0x426ab8,_0x2a405e=this['_setSuggestionData']({'id':_0x9fba9e,'type':_0x25c135,'data':_0x34ac25,'createdAt':new Date(),'authorId':_0x4b2e3e,'attributes':_0x6a9665});for(const _0x715029 of _0xec3e4b)this['_addSuggestionMarker'](_0x25c135,_0x9fba9e,_0x4b2e3e,_0x715029,o['getMultiRangeId']());return _0x2a405e;}['markDeletion'](_0x8eae9c,_0x24a27c=null,_0x4d6a9a={}){if(_0x8eae9c['isCollapsed'])return null;const _0x1f9913=this['editor']['plugins']['get']('Users')['me'],_0x4daf05=new _0x11ce9b(_0x8eae9c['start'],_0x8eae9c['end']);for(const {suggestion:_0x2ab183,meta:_0x3a8572}of this['_findSuggestions'](_0x4daf05,'insertion'))if(_0x3a8572['isOwn']&&!_0x3a8572['isNextTo']){if(_0x2ab183['isMultiRange']){const _0x455b0a=_0x2ab183['getRanges']()['filter'](_0x21eb41=>'$graveyard'!=_0x21eb41['root']['rootName']);_0x455b0a['every'](_0x6dcb27=>_0x4daf05['containsRange'](_0x6dcb27,!0x0))&&_0x2ab183['discard']();if(_0x455b0a['some'](_0x4d2cdf=>_0x4d2cdf['containsRange'](_0x4daf05,!0x0))){const _0x2a9174=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x24a27c,'accept');return this['forceDefaultExecution'](()=>_0x2a9174([_0x4daf05],null,_0x4d6a9a)),null;}}else{const _0x2311c1=_0x4daf05['getIntersection'](_0x2ab183['getFirstRange']());null!==_0x2311c1&&_0x2ab183['_onDiscard']([_0x2311c1],null,_0x4d6a9a);}}if(_0x4daf05['detach'](),_0x4daf05['isCollapsed']||'$graveyard'==_0x4daf05['root']['rootName'])return null;let _0x2a9533=null,_0x1d4079=_0x4daf05['start'],_0x550db0=_0x4daf05['end'];const _0x1832a4=this['_findSuggestions'](_0x4daf05,'deletion');for(const {suggestion:_0x5c2a86,meta:_0x54567c}of _0x1832a4){const _0x65473b=this['_model']['createRange'](_0x1d4079,_0x550db0);if(_0x54567c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x54567c['containsRangeInObject']&&!_0x54567c['isInsideObject'])){if(_0x5c2a86['isMultiRange']){if(!Qt(_0x5c2a86,_0x4d6a9a))continue;let _0x4855e4=!0x0;for(const _0x8a9e54 of _0x5c2a86['getRanges']()){if(_0x8a9e54['containsRange'](_0x65473b,!0x0))return _0x5c2a86;_0x65473b['containsRange'](_0x8a9e54)||(_0x4855e4=!0x1);}_0x4855e4&&_0x5c2a86['discard']();}else{const _0x4fdc09=_0x5c2a86['getFirstRange']();if(_0x4fdc09['containsRange'](_0x65473b,!0x0))return _0x5c2a86;if(!Qt(_0x5c2a86,_0x4d6a9a)){_0x65473b['containsRange'](_0x4fdc09)?_0x5c2a86['removeMarkers']():_0x4fdc09['containsPosition'](_0x1d4079)?_0x1d4079=_0x4fdc09['end']:_0x4fdc09['containsPosition'](_0x550db0)&&(_0x550db0=_0x4fdc09['start']);continue;}_0x1d4079=_0x1d4079['isBefore'](_0x4fdc09['start'])?_0x1d4079:_0x4fdc09['start'],_0x550db0=_0x550db0['isAfter'](_0x4fdc09['end'])?_0x550db0:_0x4fdc09['end'],_0x4d6a9a=Object['assign']({},_0x5c2a86['attributes']),_0x2a9533?_0x4fdc09['start']['isBefore'](_0x2a9533['getFirstRange']()['start'])?(_0x2a9533['removeMarkers'](),_0x2a9533=_0x5c2a86):_0x5c2a86['removeMarkers']():_0x2a9533=_0x5c2a86;}}}if(_0x2a9533)return this['_setSuggestionRange'](_0x2a9533,this['_model']['createRange'](_0x1d4079,_0x550db0)),_0x2a9533;{const _0x331f89=_0x50c0f0(),_0x302380=this['_model']['createRange'](_0x1d4079,_0x550db0),_0x53f4ba=_0x1f9913['id'],_0x17a0f6=_0x24a27c?'deletion:'+_0x24a27c:'deletion',_0x16d5e4=this['_setSuggestionData']({'id':_0x331f89,'type':_0x17a0f6,'createdAt':new Date(),'authorId':_0x53f4ba,'attributes':_0x4d6a9a});return this['_addSuggestionMarker'](_0x17a0f6,_0x331f89,_0x53f4ba,_0x302380),_0x16d5e4;}}['markMultiRangeDeletion'](_0x59bb9b,_0x1a34d4='multi',_0x1a81f4={}){const _0x477941=this['editor']['plugins']['get']('Users')['me'],_0xa73e92=_0x59bb9b['map'](_0x4280ef=>new _0x11ce9b(_0x4280ef['start'],_0x4280ef['end'])),_0x3ffbce=new Set();for(const {suggestion:_0x5304dd,meta:_0x33cdd4}of this['_findSuggestions'](_0xa73e92,'insertion'))_0x33cdd4['isOwn']&&!_0x33cdd4['isNextTo']&&_0x3ffbce['add'](_0x5304dd);for(const _0x19e38b of _0x3ffbce)if(_0x19e38b['isMultiRange']){const _0x548d5b=_0x19e38b['getRanges']();(!_0x19e38b['attributes']||!_0x19e38b['attributes']['skipNestingCheck'])&&(_0x548d5b['every'](_0x4d8169=>_0xa73e92['some'](_0x3a8b9d=>_0x3a8b9d['containsRange'](_0x4d8169,!0x0)))&&_0x19e38b['discard']());if(_0xa73e92['every'](_0x3a881e=>_0x548d5b['some'](_0x413828=>_0x413828['containsRange'](_0x3a881e,!0x0)))){const _0x1f0e81=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a34d4,'accept');return this['forceDefaultExecution'](()=>_0x1f0e81(_0x59bb9b,null,_0x1a81f4)),null;}}else{const _0x25e193=_0x19e38b['getFirstRange']();_0xa73e92['some'](_0x5bdf83=>_0x5bdf83['containsRange'](_0x25e193,!0x0))&&_0x19e38b['discard']();if(_0xa73e92['every'](_0x53478b=>_0x25e193['containsRange'](_0x53478b,!0x0))){const _0x3ae80e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a34d4,'accept');return this['forceDefaultExecution'](()=>_0x3ae80e(_0xa73e92,null,_0x1a81f4)),null;}}const _0x30c481=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a34d4,'join');let _0x4e592e=null;for(const _0x155b74 of this['getSuggestions']())if(_0x155b74['author']['id']==_0x477941['id']&&_0x155b74['isInContent']&&'deletion'==_0x155b74['type']&&_0x155b74['subType']==_0x1a34d4&&Qt(_0x155b74,_0x1a81f4)&&(_0x30c481(_0x155b74['getRanges'](),_0xa73e92)||_0x30c481(_0xa73e92,_0x155b74['getRanges']()))){if(_0x4e592e){if(_0x155b74['commentThread']&&_0x155b74['commentThread']['length'])continue;for(const _0x425b41 of _0x155b74['getRanges']())_0x4e592e['isIntersectingWithRange'](_0x425b41)||_0x4e592e['addRange'](_0x425b41);_0x155b74['removeMarkers']();}else{_0x4e592e=_0x155b74;for(const _0xcb35a4 of _0xa73e92)_0x155b74['isIntersectingWithRange'](_0xcb35a4)||_0x155b74['addRange'](_0xcb35a4);}}if(_0x4e592e)return _0x4e592e;_0x3ffbce['clear']();for(const {suggestion:_0x248eda,meta:_0x2d51df}of this['_findSuggestions'](_0xa73e92,'deletion'))_0x2d51df['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2d51df['containsRangeInObject']&&!_0x2d51df['isInsideObject'])&&Qt(_0x248eda,_0x1a81f4)&&_0x3ffbce['add'](_0x248eda);for(const _0x32e15c of _0x3ffbce){const _0x50bc=_0x32e15c['getRanges']();if(!_0x1a81f4||!_0x1a81f4['skipNestingCheck']){if(_0xa73e92['every'](_0x163fa8=>_0x50bc['some'](_0x4653d3=>_0x4653d3['containsRange'](_0x163fa8,!0x0))))return _0x32e15c;}(!_0x32e15c['attributes']||!_0x32e15c['attributes']['skipNestingCheck'])&&(_0x50bc['every'](_0xec6281=>_0xa73e92['some'](_0x500109=>_0x500109['containsRange'](_0xec6281,!0x0)))&&_0x32e15c['discard']());}const _0x143596=_0x50c0f0(),_0x167ffb=_0x477941['id'],_0x31dca2='deletion:'+_0x1a34d4,_0x59c644=this['_setSuggestionData']({'id':_0x143596,'type':_0x31dca2,'createdAt':new Date(),'authorId':_0x167ffb,'attributes':_0x1a81f4});for(const _0x3b3f97 of _0xa73e92)_0x3b3f97['detach'](),_0x3b3f97['isCollapsed']||'$graveyard'==_0x3b3f97['root']['rootName']||this['_addSuggestionMarker'](_0x31dca2,_0x143596,_0x167ffb,_0x3b3f97,o['getMultiRangeId']());return _0x59c644;}['markAttributeChange'](_0x21595d,_0x2d6e2b,_0x43d838,_0x31618f,_0x1f4fbe){if(_0x21595d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x16c852=this['editor']['plugins']['get']('Users')['me']['id'],_0x173ba6=Array['from'](this['_suggestions']['values']())['filter'](_0x2c8b59=>'attribute'==_0x2c8b59['type']&&_0x2c8b59['data']['key']==_0x2d6e2b&&_0x2c8b59['isIntersectingWithRange'](_0x21595d));if('default'===this['_trackFormatChanges']){const _0x591026=this['_findSuggestions'](_0x21595d,'insertion')['filter'](({meta:_0x19dc76})=>_0x19dc76['isOwn']&&!_0x19dc76['isInsideObject']&&!_0x19dc76['isNextTo'])['map'](({suggestion:_0x10c806})=>_0x10c806);_0x173ba6['unshift'](..._0x591026);}const _0x3ccbed=new Map([[_0x21595d,_0x43d838]]);for(const _0x5c8c50 of _0x173ba6){const _0x289c27='attribute'==_0x5c8c50['type']?_0x5c8c50['data']['oldValue']:void 0x0,_0xc7830d=_0x5c8c50['getFirstRange'](),_0x5aa25d=Array['from'](_0x3ccbed['keys']())['find'](_0x29b35a=>_0x29b35a['isIntersecting'](_0xc7830d));if(!_0x5aa25d)continue;const _0x4114bb=_0x5aa25d['getDifference'](_0xc7830d);this['_isBlockAttribute'](_0x2d6e2b)&&'insertion'==_0x5c8c50['type']&&0x0!=_0x4114bb['length']||(_0x3ccbed['delete'](_0x5aa25d),_0x4114bb['forEach'](_0x1d1452=>{_0x3ccbed['set'](_0x1d1452,_0x43d838);}),'insertion'!=_0x5c8c50['type']&&_0x289c27!=_0x31618f&&_0x3ccbed['set'](_0x5aa25d['getIntersection'](_0xc7830d),_0x289c27));}const _0x1621f0=[];for(const [_0x4c3b39,_0x2b7bd3]of _0x3ccbed){const _0xccf6d2=_0x50c0f0(),_0x102874={'key':_0x2d6e2b,'oldValue':_0x2b7bd3,'newValue':_0x31618f};_0x2d6e2b['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':_0x2d6e2b});const _0x496ecb=('attribute:'+(_0x2d6e2b+'|'+Jt({'newValue':_0x31618f})))['substring'](0x0,0x3c),_0x2c787a=this['_setSuggestionData']({'id':_0xccf6d2,'type':_0x496ecb,'data':_0x102874,'createdAt':new Date(),'authorId':_0x16c852,'attributes':_0x1f4fbe});_0x1621f0['push'](_0x2c787a),this['_addSuggestionMarker'](_0x496ecb,_0xccf6d2,_0x16c852,_0x4c3b39);}return _0x1621f0;}['enableDefaultAttributesIntegration'](_0x4058d6){this['enableCommand'](_0x4058d6,(_0x4f3d59,..._0x37a656)=>{this['_recordAttributeChanges'](()=>{_0x4f3d59(..._0x37a656);});});}['registerBlockAttribute'](_0x71b8dc){this['_blockAttributeKeys']['add'](_0x71b8dc);}['registerInlineAttribute'](_0x12b94b){this['_inlineAttributeKeys']['add'](_0x12b94b);}['_getAttributeKey'](_0x15aa0e){return'attribute'==_0x15aa0e['type']?_0x15aa0e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x29cc6e,_0x139add){const _0x445061=_0x29cc6e['getFirstMarker']();this['_model']['change'](_0x201a56=>{_0x201a56['updateMarker'](_0x445061,{'range':_0x139add});});}['_addThreadToSuggestion'](_0x6ad81a){const _0x2159c3=_0x6ad81a['id'],_0x1686e3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2159c3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1686e3,'threadId':_0x2159c3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x23c4bb=this['_commentsRepository']['getCommentThread'](_0x2159c3);_0x23c4bb['unbind']('isRemovable'),_0x23c4bb['isRemovable']=!0x1,_0x6ad81a['commentThread']=_0x23c4bb;}['_checkSuggestionCorrectness'](_0x414359,_0x57890c,_0x4216ef,_0x3337ab){if(_0x414359['type']!=_0x57890c||_0x414359['subType']!=_0x4216ef||_0x414359['creator']['id']!=_0x3337ab)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x415647('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x41d947,_0x3a3605){const _0x26f02b=_0x41d947['getFirstRange']();if(_0x3a3605['isEqual'](_0x26f02b))_0x41d947['removeMarkers']();else{if(_0x26f02b['containsRange'](_0x3a3605)){const _0x55177e=this['_model']['createPositionAt'](_0x3a3605['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x41d947,this['_model']['createRange'](_0x26f02b['start'],_0x55177e));const _0x5e15df=_0x50c0f0(),_0x5c803c=_0x41d947['creator']['id'],_0x5417db=_0x41d947['type']+':'+_0x41d947['subType'];this['_setSuggestionData']({'id':_0x5e15df,'type':_0x5417db,'createdAt':new Date(),'authorId':_0x5c803c,'data':_0x41d947['data'],'attributes':_0x41d947['attributes']});const _0x1e7002=this['_model']['createPositionAt'](_0x3a3605['end']['parent'],'after'),_0x541d3e=this['_model']['createRange'](_0x1e7002,_0x26f02b['end']);this['_addSuggestionMarker'](_0x5417db,_0x5e15df,_0x5c803c,_0x541d3e);}else{if(_0x26f02b['containsPosition'](_0x3a3605['start'])){const _0x25de90=this['_model']['createPositionAt'](_0x3a3605['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x41d947,this['_model']['createRange'](_0x26f02b['start'],_0x25de90));}else{const _0x3d8c92=this['_model']['createPositionAt'](_0x3a3605['end']['parent'],'after');this['_setSuggestionRange'](_0x41d947,this['_model']['createRange'](_0x3d8c92,_0x26f02b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x37d110){for(const {suggestion:_0x17ed8e,meta:_0x58c957}of this['_findSuggestions'](_0x37d110,'insertion')){if(!_0x58c957['isOwn'])continue;const _0x4b9d31=_0x17ed8e['getRanges']();for(const _0x4296aa of _0x4b9d31)if(!_0x37d110['getDifference'](_0x4296aa)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x13c04f){const _0x3110ec=this['editor']['plugins']['get']('Users')['getUser'](_0x13c04f);if(!_0x3110ec)throw new _0x415647('track-changes-user-not-found',this);return _0x3110ec;}['_getExternalAuthor'](_0x13aa26){const _0x1996dc=this['editor']['plugins']['get']('Users'),_0x3c8796=_0x540567('external:'+_0x13aa26),_0x348eaa=_0x1996dc['getUser'](_0x3c8796);return _0x348eaa||_0x1996dc['addUser']({'id':_0x3c8796,'name':_0x13aa26});}['_createSuggestion'](_0x5e111c,_0x5ed1d0,_0x1e9330,_0x15d409,_0x103f9d){const _0x52e67f=this['_getAuthorFromId'](_0x15d409),_0x8a3354=this['_suggestionFactory']['buildSuggestion'](_0x5e111c,_0x5ed1d0,_0x1e9330,_0x52e67f,_0x103f9d,_0x47566d=>{this['_updateSuggestionData'](_0x1e9330,{'attributes':_0x47566d});const _0x5037be=this['getSuggestion'](_0x1e9330);this['_joinWithAdjacentSuggestions'](new Set([_0x5037be])),this['_refreshSuggestionsChain'](new Set([_0x5037be]));});return this['listenTo'](_0x8a3354,'accept',()=>{this['_updateSuggestionData'](_0x1e9330,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x8a3354,'discard',()=>{this['_updateSuggestionData'](_0x1e9330,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1e9330,_0x8a3354),this['_suggestionState']['set'](_0x8a3354,'notReady'),_0x8a3354;}['_splitMarkerName'](_0x521033){const _0x165ef6=_0x521033['split'](':');return{'group':_0x165ef6[0x0],'type':_0x165ef6[0x1],'subType':_0x165ef6['length']>=0x5?_0x165ef6[0x2]:null,'id':_0x165ef6['length']<0x5?_0x165ef6[0x2]:_0x165ef6[0x3],'authorId':_0x165ef6['length']<0x5?_0x165ef6[0x3]:_0x165ef6[0x4],'markerCount':0x6==_0x165ef6['length']?_0x165ef6[0x5]:null};}['_breakSuggestionMarker'](_0x1bf89f,_0x1ff29f,_0x5c7d74){const _0x3ba9b3=_0x1bf89f['getFirstRange'](),_0x48dc1b=_0x3ba9b3['start'],_0x518815=_0x3ba9b3['end'];this['_setSuggestionRange'](_0x1bf89f,this['_model']['createRange'](_0x48dc1b,_0x1ff29f));const _0x33adbf=_0x50c0f0(),_0x36db1e=_0x1bf89f['creator']['id'],_0xd8f2bc=_0x1bf89f['type']+(_0x1bf89f['subType']?':'+_0x1bf89f['subType']:'');this['_setSuggestionData']({'id':_0x33adbf,'type':_0xd8f2bc,'createdAt':new Date(),'authorId':_0x36db1e,'originalSuggestionId':_0x1bf89f['id'],'attributes':_0x1bf89f['attributes'],'data':_0x1bf89f['data']});const _0x20774f=this['_getAttributeKey'](_0x1bf89f);('formatBlock'==_0x1bf89f['type']||_0x20774f&&this['_isBlockAttribute'](_0x20774f))&&(_0x5c7d74=this['_model']['createPositionBefore'](_0x5c7d74['parent'])),this['_addSuggestionMarker'](_0xd8f2bc,_0x33adbf,_0x36db1e,this['_model']['createRange'](_0x5c7d74,_0x518815));}['_findSuggestions'](_0x2865bb,_0x168e0d=null){const _0x49041f=[],_0x409219=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2865bb)||(_0x2865bb=[_0x2865bb]);for(const _0x2e2e87 of this['getSuggestions']()){if(!_0x2e2e87['isInContent'])continue;if(_0x168e0d&&_0x2e2e87['type']!=_0x168e0d)continue;let _0x54b099=!0x1;for(const _0x27de0d of _0x2e2e87['getRanges']()){for(const _0x322b98 of _0x2865bb){const _0x49360d=_0x322b98['start']['isEqual'](_0x27de0d['end'])||_0x322b98['end']['isEqual'](_0x27de0d['start']);if(_0x49360d||_0x322b98['getIntersection'](_0x27de0d)){const _0x56c2f4=_0x322b98['containsRange'](_0x27de0d)&&Pt(this['_model']['schema'],_0x27de0d['start'],_0x322b98),_0x500b3c=_0x27de0d['containsRange'](_0x322b98)&&Pt(this['_model']['schema'],_0x322b98['start'],_0x27de0d);_0x49041f['push']({'suggestion':_0x2e2e87,'meta':{'isOwn':_0x409219==_0x2e2e87['author'],'isNextTo':_0x49360d,'isInsideObject':_0x56c2f4,'containsRangeInObject':_0x500b3c}}),_0x54b099=!0x0;break;}}if(_0x54b099)break;}}return _0x49041f;}['_addSuggestionMarker'](_0x463f79,_0x3f3178,_0x464e66,_0x5ba73d,_0x20917d){this['_model']['change'](_0x207236=>{let _0x382582='suggestion:'+_0x463f79+':'+_0x3f3178+':'+_0x464e66;_0x20917d&&(_0x382582=_0x382582+':'+_0x20917d),_0x207236['addMarker'](_0x382582,{'range':_0x5ba73d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x26a958){const _0x19f7c0=_0x26a958['previous'],_0x304f17=_0x26a958['next'];_0x26a958['previous']=null,_0x26a958['next']=null,null!=_0x19f7c0&&_0x19f7c0['next']==_0x26a958&&(_0x19f7c0['next']=_0x304f17),null!=_0x304f17&&_0x304f17['previous']==_0x26a958&&(_0x304f17['previous']=_0x19f7c0),'ready'==this['_suggestionState']['get'](_0x26a958)&&(this['_suggestionState']['set'](_0x26a958,'removed'),this['fire']('suggestionUnloaded',_0x26a958,_0x19f7c0,_0x304f17));}['_setSuggestionData'](_0x2e79e1){const _0x35e100=_0x2e79e1['id'],_0x964723=this['addSuggestionData'](_0x2e79e1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xe91504=this['editor']['plugins']['get']('PendingActions'),_0x2859b4=_0x964723['hasComments'],_0x478bb9=_0x964723['subType']?_0x964723['type']+':'+_0x964723['subType']:_0x964723['type'],_0x381de9=this['editor']['locale'],_0x1565ec=_0xe91504['add'](c(_0x381de9,'PENDING_ACTION_SUGGESTION')),_0x7071fa={'id':_0x35e100,'type':_0x478bb9,'hasComments':_0x2859b4,'data':_0x2e79e1['data']||null,'originalSuggestionId':_0x2e79e1['originalSuggestionId']||null,'attributes':_0x964723['attributes']};this['_adapter']['addSuggestion'](_0x7071fa)['then'](_0x1cb84b=>{_0x964723['_saved']=!0x0,_0xe91504['remove'](_0x1565ec),_0x1cb84b&&_0x1cb84b['createdAt']&&(this['_suggestions']['get'](_0x35e100)['createdAt']=_0x1cb84b['createdAt']);})['catch'](_0x319d9b=>{throw _0x49d6d0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x964723['discard']();}),_0x964723['stopListening'](),this['_suggestions']['delete'](_0x964723['id']),this['_suggestionState']['delete'](_0x964723),_0x319d9b;});}return _0x964723;}['_isBlockAttribute'](_0x508158){return this['_blockAttributeKeys']['has'](_0x508158);}['_updateSuggestionData'](_0xb9319b,_0x34c101){const _0x575691=this['editor']['plugins']['get']('PendingActions'),_0x140677=this['getSuggestion'](_0xb9319b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x140677['_saved']){const _0x22cb41=_0x575691['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xb9319b,_0x34c101)['then'](()=>{_0x575691['remove'](_0x22cb41);});}else _0x140677['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xb9319b,_0x34c101);});}}['_getSuggestionData'](_0x2d74e2){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x415647('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2d74e2);}['_handleNewSuggestionMarker'](_0x51777f){const {id:_0x2ff908,type:_0x2a818e,subType:_0x4641a3,authorId:_0x13d03a}=this['_splitMarkerName'](_0x51777f),_0x36276f=this['_suggestions']['get'](_0x2ff908)||this['_createSuggestion'](_0x2a818e,_0x4641a3,_0x2ff908,_0x13d03a,{});switch(this['_checkSuggestionCorrectness'](_0x36276f,_0x2a818e,_0x4641a3,_0x13d03a),this['_suggestionState']['get'](_0x36276f)){case'notReady':this['_getSuggestionData'](_0x2ff908)['then'](_0x6b3736=>{let _0x388d57=Promise['resolve']();_0x6b3736['hasComments']&&(_0x388d57=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2ff908})),_0x388d57['then'](()=>{this['addSuggestionData'](_0x6b3736)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x36276f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2ff908,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x36276f,'ready'),this['fire']('suggestionLoaded',_0x36276f);break;case'ready':this['fire']('suggestionChanged',_0x36276f);}return _0x36276f['addMarkerName'](_0x51777f),_0x36276f;}['_refreshSuggestionsChain'](_0x17a1a7){const _0x68a26c=Array['from'](_0x17a1a7),_0x5d7b1c=_0x68a26c['filter'](_0x3283fa=>'attribute'==_0x3283fa['type']);this['_refreshAttributeSuggestionsChain'](_0x5d7b1c);const _0x288d5d=_0x68a26c['filter'](_0x539256=>!_0x539256['isMultiRange']&&'attribute'!=_0x539256['type']),_0x14df28=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b1b94=>!_0x4b1b94['isMultiRange']&&'attribute'!=_0x4b1b94['type']),_0x360f2d=_0x14df28['filter'](_0x8a7277=>!_0x17a1a7['has'](_0x8a7277)),_0x5e51d0=new Map(_0x14df28['map'](_0x188c1c=>[_0x188c1c,this['_suggestionFactory']['getSuggestionCallback'](_0x188c1c['type'],_0x188c1c['subType'],'chain')])),_0x1c907a=new Map(_0x14df28['map'](_0x58d0dd=>[_0x58d0dd,_0x58d0dd['getFirstRange']()])),_0x17a1b1=new Set(),_0x5bd2b9=new Set();for(let _0x3724af=0x0;_0x3724af<_0x288d5d['length'];_0x3724af++)_0x5292fb(_0x288d5d[_0x3724af],_0x288d5d,_0x3724af+0x1);for(let _0x21c2f5=0x0;_0x21c2f5<_0x288d5d['length'];_0x21c2f5++)_0x5292fb(_0x288d5d[_0x21c2f5],_0x360f2d,0x0);const _0x188140=new Set();for(let _0xefca52=0x0;_0xefca52<_0x288d5d['length'];_0xefca52++){const _0x1a5609=_0x288d5d[_0xefca52];!_0x5bd2b9['has'](_0x1a5609)&&_0x1a5609['previous']&&(_0x188140['add'](_0x1a5609['previous']),_0x1a5609['previous']['next']===_0x1a5609&&(_0x1a5609['previous']['next']=null),_0x1a5609['previous']=null),!_0x17a1b1['has'](_0x1a5609)&&_0x1a5609['next']&&(_0x188140['add'](_0x1a5609['next']),_0x1a5609['next']['previous']===_0x1a5609&&(_0x1a5609['next']['previous']=null),_0x1a5609['next']=null);}function _0x5292fb(_0x4d0c6d,_0x520631,_0xa3cd){for(let _0x4077d6=_0xa3cd;_0x4077d6<_0x520631['length'];_0x4077d6++){const _0x49c07e=_0x42fb34(_0x4d0c6d,_0x520631[_0x4077d6]);_0x49c07e&&(_0x49c07e[0x0]['next']=_0x49c07e[0x1],_0x49c07e[0x1]['previous']=_0x49c07e[0x0],_0x17a1b1['add'](_0x49c07e[0x0]),_0x5bd2b9['add'](_0x49c07e[0x1]));}}function _0x42fb34(_0x373a44,_0x351902){if(_0x373a44['author']['id']!==_0x351902['author']['id'])return null;const _0xf63bc0=_0x5e51d0['get'](_0x373a44)(_0x373a44,_0x351902,_0x1c907a['get'](_0x373a44),_0x1c907a['get'](_0x351902));if(!_0xf63bc0)return null;return _0x5e51d0['get'](_0x351902)(_0x373a44,_0x351902,_0x1c907a['get'](_0x373a44),_0x1c907a['get'](_0x351902))?_0xf63bc0[0x1]['commentThread']&&_0xf63bc0[0x1]['commentThread']['length']?null:_0xf63bc0:null;}_0x188140['size']&&this['_refreshSuggestionsChain'](_0x188140);}['_refreshAttributeSuggestionsChain'](_0xb1b39e){if(0x0==_0xb1b39e['length'])return;const _0x2c2772=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22f681=>'attribute'==_0x22f681['type']&&_0x22f681['_isDataLoaded']),_0x159189=[],_0x1481aa=new Map();for(const _0x32d6cb of _0x2c2772){const _0x5d5f21=_0x540567(_0x32d6cb['attributes']);_0x1481aa['has'](_0x5d5f21)||(_0x1481aa['set'](_0x5d5f21,_0x159189['length']),_0x159189['push']([]));const _0x3eca3d=_0x1481aa['get'](_0x5d5f21);_0x159189[_0x3eca3d]['push'](_0x32d6cb);}!(function(){_0x159189['sort']((_0x246ef4,_0x5dd9d0)=>{const _0x58d279=_0x246ef4[0x0]['createdAt'],_0x403d26=_0x5dd9d0[0x0]['createdAt'];return _0x58d279==_0x403d26?_0x246ef4[0x0]['attributes']['groupId']<_0x5dd9d0[0x0]['attributes']['groupId']?-0x1:0x1:_0x58d279<_0x403d26?-0x1:0x1;});for(const _0x4d0f20 of _0x159189)_0x4d0f20['sort']((_0xf55b0e,_0x2cf36c)=>_0xf55b0e['id']<_0x2cf36c['id']?-0x1:0x1);}());for(let _0x37b35f=0x0;_0x37b35f<_0x159189['length'];_0x37b35f++){if(0x0==_0x159189[_0x37b35f]['length'])continue;const _0x450077=[];for(let _0x11f15c=_0x37b35f+0x1;_0x11f15c<_0x159189['length'];_0x11f15c++)0x0!=_0x159189[_0x11f15c]['length']&&_0x21f955(_0x159189[_0x37b35f],_0x159189[_0x11f15c])&&_0x450077['push'](_0x11f15c);for(const _0x36a064 of _0x450077)_0x159189[_0x37b35f]=_0x159189[_0x37b35f]['concat'](_0x159189[_0x36a064]),_0x159189[_0x36a064]=[];}for(const _0x394431 of _0x159189)for(let _0x3d8980=0x0;_0x3d8980<_0x394431['length'];_0x3d8980++){const _0x4b3074=_0x394431[_0x3d8980+0x1]||null;_0x394431[_0x3d8980]['next']!==_0x4b3074&&(_0x394431[_0x3d8980]['next']=_0x4b3074);}for(const _0x27ebcd of _0x159189)for(let _0x2ce4fd=0x0;_0x2ce4fd<_0x27ebcd['length'];_0x2ce4fd++){const _0x4d29ab=_0x27ebcd[_0x2ce4fd-0x1]||null;_0x27ebcd[_0x2ce4fd]['previous']!==_0x4d29ab&&(_0x27ebcd[_0x2ce4fd]['previous']=_0x4d29ab);}function _0x21f955(_0x30e80,_0x46c2ae){if(_0x30e80[0x0]['attributes']['groupId']!==_0x46c2ae[0x0]['attributes']['groupId']&&_0x30e80[0x0]['author']!==_0x46c2ae[0x0]['author'])return!0x1;if(!function(_0x5290e7,_0x26d195){if(!_0x5290e7['hasComments']&&!_0x26d195['hasComments'])return!0x0;if(_0x5290e7['hasComments']&&_0x26d195['hasComments'])return!0x1;if(_0x5290e7['hasComments']&&_0x26d195['createdAt']<_0x5290e7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x26d195['hasComments']&&_0x5290e7['createdAt']<_0x26d195['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x30e80[0x0],_0x46c2ae[0x0]))return!0x1;const _0x281b72=Vt(_0x30e80[0x0]['attributes'],'groupId'),_0x13eda7=Vt(_0x46c2ae[0x0]['attributes'],'groupId');if(!_0x4f107(_0x281b72,_0x13eda7))return!0x1;return!!_0x30e80['every'](_0x37d970=>_0x46c2ae['some'](_0x418f8c=>_0x37d970['getFirstRange']()['isEqual'](_0x418f8c['getFirstRange']())))&&_0x46c2ae['every'](_0x1f65b6=>_0x30e80['some'](_0xddd157=>_0x1f65b6['getFirstRange']()['isEqual'](_0xddd157['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x448ee8){const _0x11dfd2=Array['from'](_0x448ee8),_0x5b0c1a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2e635c=_0x5b0c1a['filter'](_0x51abc0=>!_0x448ee8['has'](_0x51abc0)),_0x18b217=new Map(_0x11dfd2['map'](_0x387886=>[_0x387886,this['_suggestionFactory']['getSuggestionCallback'](_0x387886['type'],_0x387886['subType'],'join')])),_0x157014=new Map(_0x5b0c1a['map'](_0x43ab36=>[_0x43ab36,_0x43ab36['getRanges']()]));for(let _0x32c2c9=0x0;_0x32c2c9<_0x11dfd2['length'];_0x32c2c9++){if(_0x1a29ec(this,_0x11dfd2[_0x32c2c9],_0x11dfd2,_0x32c2c9+0x1))return!0x0;}for(let _0x565788=0x0;_0x565788<_0x11dfd2['length'];_0x565788++){if(_0x1a29ec(this,_0x11dfd2[_0x565788],_0x2e635c,0x0))return!0x0;}return!0x1;function _0x1a29ec(_0x1059d2,_0x75246f,_0x1a78fb,_0x940cc7){for(let _0xc11334=_0x940cc7;_0xc11334<_0x1a78fb['length'];_0xc11334++){const _0x5f4fd8=_0x1a78fb[_0xc11334];if(_0x5f4fd8['type']!==_0x75246f['type']||_0x5f4fd8['author']['id']!==_0x75246f['author']['id']||_0x5f4fd8['subType']!==_0x75246f['subType'])continue;if(!Wt(_0x75246f,_0x5f4fd8))continue;if('attribute'==_0x75246f['type']&&_0x75246f['data']['oldValue']!=_0x5f4fd8['data']['oldValue'])continue;if('attribute'==_0x75246f['type']&&_0x1059d2['_isBlockAttribute'](_0x75246f['data']['key']))continue;if('formatBlock'==_0x75246f['type']){const _0x1c7c0b=_0x1059d2['editor']['model'],_0x4e0d23=_0x75246f['getContainedElement']();if(_0x4e0d23&&(_0x1c7c0b['schema']['isObject'](_0x4e0d23)||_0x1c7c0b['schema']['isLimit'](_0x4e0d23)))continue;}const _0x4a5986=_0x18b217['get'](_0x75246f),_0x579c37=_0x157014['get'](_0x75246f),_0x584d0a=_0x157014['get'](_0x5f4fd8),_0x4572e1=_0x75246f['commentThread']&&_0x75246f['commentThread']['length'],_0x49e99f=_0x5f4fd8['commentThread']&&_0x5f4fd8['commentThread']['length'];if(!_0x4572e1&&_0x4a5986(_0x584d0a,_0x579c37))return _0x1059d2['_joinSuggestions'](_0x5f4fd8,_0x75246f),_0x157014['delete'](_0x75246f),!0x0;if(!_0x49e99f&&_0x4a5986(_0x579c37,_0x584d0a))return _0x1059d2['_joinSuggestions'](_0x75246f,_0x5f4fd8),_0x157014['delete'](_0x5f4fd8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x23fc62,_0x1d97ab){if(_0x23fc62['isMultiRange']){for(const _0x82fd69 of _0x1d97ab['getRanges']())_0x23fc62['addRange'](_0x82fd69);}else{const _0x5ec52d=_0x1d97ab['getFirstRange']()['end'];this['_setSuggestionRange'](_0x23fc62,this['_model']['createRange'](_0x23fc62['getFirstRange']()['start'],_0x5ec52d));}_0x1d97ab['removeMarkers']();}['_getMarkerAnnouncementText'](_0xf19bf2,_0x56a905,_0x160b93){const _0x52843c=_0xf19bf2['startsWith']('format')||_0xf19bf2['startsWith']('attribute')?'FORMATTING':_0xf19bf2['toUpperCase']();return c(this['editor']['locale'],_0x56a905+'_'+_0x52843c+'_SUGGESTION_ANNOUNCEMENT',_0x160b93);}['_initAriaMarkerChangeAnnouncements'](){const _0xad80aa=this['editor'];if(!_0xad80aa['ui'])return;const {ariaLiveAnnouncer:_0x44cbf9}=_0xad80aa['ui'];_0x2130f1(this['_model'],({left:_0x412d7c,entered:_0xf7a996})=>{for(const _0x42ca13 of _0x412d7c){const {group:_0x4f19b7,type:_0x38d2ed}=this['_splitMarkerName'](_0x42ca13['name']);if('suggestion'===_0x4f19b7){_0x44cbf9['announce'](this['_getMarkerAnnouncementText'](_0x38d2ed,'LEAVE'));break;}}for(const _0x2c9ef2 of _0xf7a996){const {group:_0x3c9a8f,type:_0x5cd328}=this['_splitMarkerName'](_0x2c9ef2['name']);if('suggestion'===_0x3c9a8f){_0x44cbf9['announce'](this['_getMarkerAnnouncementText'](_0x5cd328,'ENTER',_0x193c4c(_0x2c8a38)));break;}}});}['_processAttributeChanges'](_0x468c08){if(this['_recordAttributeSuggestions'])return!0x1;const _0x492f48=this['editor'],_0x259b68=_0x492f48['model']['document']['differ']['getChanges']();if(0x0==_0x259b68['length'])return!0x1;const _0x2989d8=[],_0x121f41=_0x259b68['filter'](_0x506e47=>'attribute'==_0x506e47['type']),_0x218053=_0x259b68['filter'](_0x1e2feb=>'insert'==_0x1e2feb['type']&&'$text'!=_0x1e2feb['name']),_0x3134f5=_0x259b68['filter'](_0x331df4=>'remove'==_0x331df4['type']&&'$text'!=_0x331df4['name']);for(const _0x2bdd3f of _0x121f41)_0x2989d8['push']({'key':_0x2bdd3f['attributeKey'],'newValue':_0x2bdd3f['attributeNewValue'],'oldValue':_0x2bdd3f['attributeOldValue'],'range':Ht(_0x2bdd3f['range'],_0x492f48['model'])});for(const _0x33d29f of _0x218053){const _0x4761dc=_0x3134f5['find'](_0x1f67e4=>_0x1f67e4['position']['isEqual'](_0x33d29f['position']));_0x4761dc&&_0x2989d8['push']({'key':u,'newValue':_0x33d29f['name'],'oldValue':_0x4761dc['name'],'range':_0x492f48['model']['createRangeOn'](_0x33d29f['position']['nodeAfter'])});}return 0x0!=_0x2989d8['length']&&this['_reduceExistingSuggestions'](_0x468c08,_0x2989d8);}['_processAttributeSuggestions'](_0x2b139a){let _0x5247c2=!0x1;const _0x4006bc=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x37f8b4=>_0x37f8b4['data']['newRange']&&_0x37f8b4['name']['startsWith']('suggestion:attribute:'));for(const _0x366496 of _0x4006bc){const {subType:_0x25f7fa,id:_0x25cc57}=this['_splitMarkerName'](_0x366496['name']),_0xee2343=_0x25f7fa['split']('|')[0x0];for(const _0x29e84b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x29e84b['id']!=_0x25cc57&&'attribute'==_0x29e84b['type']&&_0x29e84b['data']&&_0x29e84b['data']['key']==_0xee2343&&_0x29e84b['getFirstRange']()['isIntersecting'](_0x366496['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x29e84b,_0x366496['data']['newRange'],_0x2b139a),_0x5247c2=!0x0);}return _0x5247c2;}['_recordAttributeChanges'](_0x4af7fe){this['_recordAttributeSuggestions']=!0x0,_0x4af7fe();}['_isRegisteredAttribute'](_0x54a41d){const _0x9a09=this['_isBlockAttribute'](_0x54a41d),_0x2a95b7=this['_inlineAttributeKeys']['has'](_0x54a41d);return _0x9a09||_0x2a95b7;}['_reduceExistingSuggestions'](_0x302c98,_0x454328){if(0x0==_0x454328['length'])return!0x1;let _0x473905=!0x1;for(const _0x43db5d of _0x454328){const _0x3aded4=this['_findSuggestions'](_0x43db5d['range'],'attribute')['filter'](_0x1c486b=>!_0x1c486b['meta']['isNextTo'])['map'](_0x5bd0c3=>_0x5bd0c3['suggestion']),_0x4a5247=_0x540567({'newValue':_0x43db5d['newValue']});_0x3aded4['filter'](_0x3ab4d0=>{const [_0x4aa146,_0x47dc63]=_0x3ab4d0['subType']['split']('|');return _0x4aa146==_0x43db5d['key']&&_0x47dc63!=_0x4a5247;})['forEach'](_0x1f6d02=>{this['_reduceSuggestionAttributeRange'](_0x1f6d02,_0x43db5d['range'],_0x302c98),_0x473905=!0x0;});}return _0x473905;}['_reduceSuggestionAttributeRange'](_0x4bb02e,_0x34ec30,_0x2a0bea){const _0x11b694=_0x4bb02e['getFirstRange']()['getDifference'](_0x34ec30);0x0!==_0x11b694['length']?0x1!==_0x11b694['length']?this['_breakSuggestionMarker'](_0x4bb02e,_0x34ec30['start'],_0x34ec30['end']):this['_setSuggestionRange'](_0x4bb02e,_0x11b694[0x0]):_0x2a0bea['removeMarker'](_0x4bb02e['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x6e9fa){this['_editor']=_0x6e9fa,this['_model']=_0x6e9fa['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3a603a,_0x401594,_0x5e45c6,_0x21e2f9,_0x4d95b7,_0x1aafa9){return new o(this['_model'],{'type':_0x3a603a,'subType':_0x401594,'id':_0x5e45c6,'author':_0x21e2f9,'creator':_0x21e2f9,'attributes':_0x4d95b7,'onAttributesChange':_0x1aafa9,'onAccept':(..._0x416932)=>this['getSuggestionCallback'](_0x3a603a,_0x401594,'accept')(..._0x416932),'onDiscard':(..._0x4e00f0)=>this['getSuggestionCallback'](_0x3a603a,_0x401594,'discard')(..._0x4e00f0)});}['registerCustomCallback'](_0x1d83ca,_0x20e32f,_0x29ea57,_0x16b41e){const _0x3c6242=_0x1d83ca+':'+_0x20e32f+':'+_0x29ea57;this['_customCallbacks']['set'](_0x3c6242,_0x16b41e);}['getSuggestionCallback'](_0x1e92f2,_0x2b03fd,_0x1f3afe){const _0x116727=_0x1e92f2+':'+_0x2b03fd+':'+_0x1f3afe;return this['_customCallbacks']['get'](_0x116727)||this['_defaultCallbacks']['get'](_0x1e92f2+':'+_0x1f3afe);}['_registerDefaultCallbacks'](){const _0x435347=()=>!0x1,_0x404da5=_0x1e330a=>{_0x1e330a['sort']((_0x29213f,_0x14e1ed)=>_0x29213f['start']['isBefore'](_0x14e1ed['start'])?0x1:-0x1),this['_model']['change'](_0x1df6a0=>{for(const _0x33b3eb of _0x1e330a){let _0xe3cf4;_0xe3cf4=_0x33b3eb['end']['isAtEnd']&&_0x33b3eb['end']['parent']==_0x33b3eb['start']['nodeAfter']?_0x1df6a0['createSelection'](_0x33b3eb['start']['nodeAfter'],'on'):_0x1df6a0['createSelection'](_0x33b3eb),this['_model']['deleteContent'](_0xe3cf4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5b5c83=(_0x1e01b6,_0x4ccadb)=>{_0x4ccadb&&this['_model']['change'](_0x378965=>{const {commandName:_0x2f55a2,commandParams:_0x52a320=[]}=_0x4ccadb,_0x98910b=_0x1e01b6['map'](_0x334a82=>(Gt(_0x334a82)&&(_0x334a82=this['_model']['createRange'](_0x334a82['end'])),_0x334a82))['filter'](_0x54e32a=>'$graveyard'!==_0x54e32a['root']['rootName']);if(_0x98910b['length']<0x1)return;const _0x423d54=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4e8ee1=>_0x11ce9b['fromRange'](_0x4e8ee1));_0x378965['setSelection'](_0x98910b);for(const _0x185192 of this['_editor']['commands']['commands']())_0x185192['refresh']();_0x52a320['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2f55a2,..._0x52a320);const _0x48bad8=_0x423d54['filter'](_0x5b520d=>'$graveyard'!=_0x5b520d['root']['rootName']);_0x48bad8['length']>0x0&&_0x378965['setSelection'](_0x48bad8);for(const _0x12f88f of _0x423d54)_0x12f88f['detach']();});},_0xd4d014=(_0x3a1bdd,_0x409b69)=>0x1==_0x3a1bdd['length']&&0x1==_0x409b69['length']&&_0x3a1bdd[0x0]['end']['isEqual'](_0x409b69[0x0]['start']),_0x2f1621=(_0x1a4075,_0x7d4712,_0x541f0f,_0x5ca0c3)=>zt(_0x1a4075,_0x7d4712,_0x541f0f,_0x5ca0c3)?[_0x1a4075,_0x7d4712]:zt(_0x7d4712,_0x1a4075,_0x5ca0c3,_0x541f0f)?[_0x7d4712,_0x1a4075]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x435347),this['_defaultCallbacks']['set']('insertion:discard',_0x404da5),this['_defaultCallbacks']['set']('insertion:join',_0xd4d014),this['_defaultCallbacks']['set']('insertion:chain',_0x2f1621),this['_defaultCallbacks']['set']('deletion:accept',_0x404da5),this['_defaultCallbacks']['set']('deletion:discard',_0x435347),this['_defaultCallbacks']['set']('deletion:join',_0xd4d014),this['_defaultCallbacks']['set']('deletion:chain',_0x2f1621),this['_defaultCallbacks']['set']('formatInline:accept',_0x5b5c83),this['_defaultCallbacks']['set']('formatInline:discard',_0x435347),this['_defaultCallbacks']['set']('formatInline:join',_0xd4d014),this['_defaultCallbacks']['set']('formatInline:chain',_0x435347),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5b5c83),this['_defaultCallbacks']['set']('formatBlock:discard',_0x435347),this['_defaultCallbacks']['set']('formatBlock:join',_0xd4d014),this['_defaultCallbacks']['set']('formatBlock:chain',_0x435347),this['_defaultCallbacks']['set']('attribute:accept',_0x435347),this['_defaultCallbacks']['set']('attribute:discard',(_0x1d45e0,_0x5eee29)=>{if(!_0x5eee29)return;const _0x55062f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5e6952=>{if(_0x5eee29['key']==u)for(const _0x4b3341 of _0x1d45e0){const _0x4aee1b=_0x4b3341['start']['nodeAfter'],_0x584d96=_0x5eee29['oldValue'];_0x5e6952['rename'](_0x4aee1b,_0x584d96);}else{if(_0x55062f['_isBlockAttribute'](_0x5eee29['key'])){for(const _0x4985b0 of _0x1d45e0)void 0x0!==_0x5eee29['oldValue']?_0x5e6952['setAttribute'](_0x5eee29['key'],_0x5eee29['oldValue'],_0x4985b0['start']['nodeAfter']):_0x5e6952['removeAttribute'](_0x5eee29['key'],_0x4985b0['start']['nodeAfter']);}else{for(const _0x171fcb of _0x1d45e0)_0x5eee29['oldValue']?_0x5e6952['setAttribute'](_0x5eee29['key'],_0x5eee29['oldValue'],_0x171fcb):_0x5e6952['removeAttribute'](_0x5eee29['key'],_0x171fcb);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xd4d014);}}function Pt(_0x20a0ae,_0x3a9d75,_0x52f7ba){for(const _0x5268c4 of _0x3a9d75['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5268c4['root']==_0x5268c4)return!0x1;if(!_0x52f7ba['containsItem'](_0x5268c4))return!0x1;if(_0x20a0ae['isObject'](_0x5268c4)||_0x20a0ae['isLimit'](_0x5268c4))return!0x0;}return!0x1;}function Gt(_0x38c388){return _0x38c388['end']['parent']==_0x38c388['start']['nodeAfter']&&_0x38c388['end']['isAtStart'];}function Lt(_0x2ce6a3,_0x26c0ce,_0x50e9d9,_0x44b43a){const _0x40bed9=_0x5675ba=>!_0x5675ba['item']['is']('$textProxy')&&!_0x44b43a['isObject'](_0x5675ba['item']),_0x263b95=_0x2ce6a3['start']['getLastMatchingPosition'](_0x40bed9),_0x221980=_0x2ce6a3['end']['getLastMatchingPosition'](_0x40bed9,{'direction':'backward'});return(!_0x2ce6a3['start']['isEqual'](_0x263b95)||!_0x2ce6a3['end']['isEqual'](_0x221980))&&(_0x263b95['isBefore'](_0x221980)?_0x50e9d9['updateMarker'](_0x26c0ce,{'range':_0x50e9d9['createRange'](_0x263b95,_0x221980)}):_0x50e9d9['removeMarker'](_0x26c0ce),!0x0);}function Jt(_0x81b299){return _0x540567(_0x81b299);}function Kt(_0x41b4c9){const _0x1933fb=_0x41b4c9['start']['nodeAfter'];return _0x1933fb&&_0x1933fb['is']('element');}function Ht(_0x3d42f8,_0x1ba083){return null==_0x3d42f8['end']['nodeBefore']&&_0x3d42f8['end']['parent']==_0x3d42f8['start']['nodeAfter']?qt(_0x3d42f8['start']['nodeAfter'],_0x1ba083):_0x3d42f8;}function qt(_0x41452e,_0x409da9){const _0x5136c8=_0x409da9['schema']['isObject'](_0x41452e)||_0x409da9['schema']['isSelectable'](_0x41452e);return _0x409da9['createRange'](_0x409da9['createPositionAt'](_0x41452e,'before'),_0x5136c8?_0x409da9['createPositionAfter'](_0x41452e):_0x409da9['createPositionAt'](_0x41452e,'end'));}function zt(_0x561a55,_0x577e05,_0x13d9dd,_0x329271){return!!Wt(_0x561a55,_0x577e05)&&_0x13d9dd['end']['isEqual'](_0x329271['start']);}function Wt(_0x4c9471,_0x268268){if(!_0x4c9471['_isDataLoaded']||!_0x268268['_isDataLoaded'])return!0x1;const _0xd0e1b6=new Set(Object['keys'](_0x4c9471['attributes'])),_0x440467=new Set(Object['keys'](_0x268268['attributes']));if(_0xd0e1b6['delete']('groupId'),_0x440467['delete']('groupId'),0x0==_0xd0e1b6['size']&&0x0==_0x440467['size'])return!0x0;if(_0xd0e1b6['size']!=_0x440467['size'])return!0x1;const _0x43c796={..._0x4c9471['attributes']},_0x477326={..._0x268268['attributes']};return delete _0x43c796['groupId'],delete _0x477326['groupId'],JSON['stringify'](_0x43c796)==JSON['stringify'](_0x477326);}function Qt(_0x3203ab,_0x37d5d3){const _0x1af1d7=Xt(_0x3203ab['attributes']),_0x5cafa2=Xt(_0x37d5d3);if(!_0x3203ab['_isDataLoaded'])return!0x1;for(const _0x29eb0b of Object['keys'](_0x5cafa2))if(!_0x4f107(_0x1af1d7[_0x29eb0b],_0x5cafa2[_0x29eb0b]))return!0x1;return!0x0;}function Xt(_0x3111b8){const _0xc091f9=Object['assign']({},_0x3111b8);return delete _0xc091f9['skipNestingCheck'],delete _0xc091f9['tablePasteChainId'],_0xc091f9;}class pe extends/* #__PURE__ -- @preserve */
25
- _0x5c89eb(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x32eb9a,_0x5cebbf,_0x4a6c43,_0x4d69d7){super(),this['model']=_0x5cebbf,this['view']=_0x4a6c43,this['commentThreadController']=_0x4d69d7,this['_editor']=_0x32eb9a,this['_acceptCommand']=_0x32eb9a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x32eb9a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x37970e,_0x23f9eb)=>_0x37970e||_0x23f9eb),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x95260b=>_0x95260b&&this['_editor']['model']['canEditAt'](_0x5cebbf['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x291587=>_0x291587&&this['_editor']['model']['canEditAt'](_0x5cebbf['getRanges']())),this['_pendingAction']=null,_0x4a6c43['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4a6c43,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4a6c43,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4a6c43,'change:isDirty',()=>{_0x4a6c43['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 _0x278ae4=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x278ae4);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x927a89{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x575012,_0x540ea0,_0x5860ce,_0xf9c112){super(_0x575012),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2abf29(_0x575012,c(_0x575012,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x540ea0['authoredAt']),this['bind']('authoredAt')['to'](_0x540ea0),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',_0x540ea0,'authoredAt',this,'descriptionParts',(_0xc112ea,_0x7fea8e,_0x2004d3)=>{const _0x52fd29=_0x2004d3['map'](_0x4c0cb7=>ls(_0x4c0cb7['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xc112ea-0x1,_0x540ea0['author']['name'],_0x7fea8e?_0xf9c112['formatDateTime'](_0x7fea8e):'',new DOMParser()['parseFromString'](_0x52fd29,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1e95a8(),this['focusTracker']=new _0x35b955(),this['keystrokes']=new _0x443ddb(),this['focusCycler']=new _0x2dc12a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x55b0af=>_0x55b0af['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x540ea0,this['_localUser']=_0x5860ce,this['_config']=_0xf9c112,_0xf9c112['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x465b52(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1794d9}=this['_config'];this['commentsListView']=new _0x1794d9(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',_0x1a02e3=>_0x1a02e3+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1e9df8,_0x2be3ad)=>_0x1e9df8||!!_0x2be3ad);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2ac45a}=this['_config'],_0x53cb37=new _0x2ac45a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3593f1=_0x53cb37['commentInputView'];return _0x53cb37['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3593f1,'value',(_0x59b9ff,_0x146aaf,_0x4e046f)=>!!_0x4e046f||_0x59b9ff&&!_0x146aaf),_0x3593f1['on']('submit',(_0x53a2c9,_0x29d95b)=>{this['fire']('addComment',_0x29d95b),_0x3593f1['editor']['setData']('');}),_0x3593f1['on']('cancel',()=>this['focus']()),_0x3593f1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x53cb37;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0xa36917,_0x16766d,_0x404048,_0x26b683){super(_0xa36917,_0x16766d,_0x404048,_0x26b683),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xb094ca=>_0xb094ca&&_0xb094ca[0x0]?_0xb094ca[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x40e673,_0x780e4e)=>{let _0xbf96fb='';for(const _0x54ca53 of _0x40e673)_0xbf96fb+='<p>'+ls(_0x54ca53['content'],_0x54ca53['color'])+'</p>';return _0x780e4e?_0xbf96fb:ti(_0xbf96fb,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x26b683['SuggestionView'](_0xa36917,_0x16766d,{'formatDateTime':_0x26b683['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 _0x51b075=this['bindTemplate'],_0xf07939=[this['suggestionView']];return this['commentsListView']&&_0xf07939['push'](this['commentsListView']),this['commentThreadInputView']&&_0xf07939['push'](this['commentThreadInputView']),_0xf07939['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x51b075['if']('isActive','ck-suggestion-wrapper--active'),_0x51b075['to']('type',_0xa1c590=>'ck-suggestion-'+_0xa1c590),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':_0x51b075['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xf07939};}['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 we extends _0x927a89{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x55ea25,_0x316081,_0x1a3c72){super(_0x55ea25),this['_model']=_0x316081,this['_config']=_0x1a3c72,this['set']('description',''),this['bind']('authoredAt')['to'](_0x316081),this['acceptButton']=this['_createButton'](c(_0x55ea25,'Accept\x20suggestion'),_0x361a3c,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x55ea25,'Discard\x20suggestion'),_0x410bd1,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2c61ff(_0x55ea25,_0x316081['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1e95a8([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x35b955(),this['keystrokes']=new _0x443ddb(),this['focusCycler']=new _0x2dc12a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2a7f47=>_0x2a7f47['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1876e1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1876e1['innerHTML']=this['description'],this['on']('change:description',(_0x4a2289,_0x292d76,_0x1161bd)=>{_0x1876e1['innerHTML']=_0x1161bd;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xf5618a=this['bindTemplate'],_0x425ea7=[{'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':_0xf5618a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xf5618a['to']('authoredAt',_0x50e337=>this['_config']['formatDateTime'](_0x50e337))}]}]},{'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']&&_0x425ea7['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':_0x425ea7}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x44c43a,_0x306466,_0x4cfcfa,_0x193d68,_0x23cef1){const _0x238be6=new _0x57f5b6(this['locale']);return _0x238be6['set']({'label':_0x44c43a,'icon':_0x306466,'tooltip':!0x0,'tooltipPosition':_0x23cef1}),_0x238be6['extendTemplate']({'attributes':{'class':_0x4cfcfa}}),_0x238be6['on']('execute',()=>{this['fire'](_0x193d68,this['_model']['id']);}),_0x238be6;}['_setupKeyboardNavigation'](){const _0x4194a8=this['element'];this['keystrokes']['listenTo'](_0x4194a8);for(const _0x249236 of this['focusables'])this['focusTracker']['add'](_0x249236['element']),this['keystrokes']['listenTo'](_0x249236['element']);this['keystrokes']['set']('enter',(_0x6373cb,_0x337ec9)=>{_0x4194a8===_0x6373cb['target']&&(this['focusCycler']['focusFirst'](),_0x337ec9());}),this['keystrokes']['set']('esc',(_0x1f51b3,_0x116fa2)=>{_0x4194a8!==_0x1f51b3['target']&&(this['focus'](),_0x116fa2());});}}class d extends _0x2a35ef{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x27766d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x356ebf){super(_0x356ebf),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x14edca=this['editor']['config'];_0x14edca['define']('trackChanges.SuggestionThreadView',fe),_0x14edca['define']('trackChanges.SuggestionView',we),_0x14edca['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x14edca['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x925653,_0x256b64){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x11a6c7,_0x4a74b5]of this['_handleControllerBuffer']){const _0x196bb5=this['_suggestionToController']['has'](_0x11a6c7);_0x196bb5||_0x4a74b5?_0x196bb5&&_0x4a74b5&&this['_destroyController'](_0x11a6c7):this['_initializeController'](_0x11a6c7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x925653,_0x256b64);}['init'](){const _0xcc60ef=this['editor'],_0x521f35=_0xcc60ef['plugins']['get']('TrackChangesEditing'),_0x43a59e=_0xcc60ef['plugins']['get']('Annotations'),_0xc1afe7=_0xcc60ef['plugins']['get']('EditorAnnotations'),_0x4b2bbf=_0xcc60ef['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xc1afe7['addSourceCollector'](()=>{const _0x490fcd=[];for(const [_0x1c1bda,_0x45c1e8]of Array['from'](this['_suggestionToController'])){const _0x567a78=_0x1c1bda['getAllAdjacentSuggestions'](),_0x4ed573=[];for(const _0x22e469 of _0x567a78){if(!_0x22e469['isInContent'])continue;if(_0x22e469['isMultiRange']){_0x4ed573['push'](..._0x22e469['getRanges']());continue;}const _0x303e81=_0x22e469['getFirstRange']();if(_0x4ed573['length']>0x0){const _0x13a981=_0x4ed573[0x0]['getJoined'](_0x303e81);if(_0x13a981){_0x4ed573[0x0]=_0x13a981;continue;}}_0x4ed573['push'](_0x303e81);}_0x490fcd['push']([_0x45c1e8['view'],_0x4ed573]);}return _0x490fcd;}),this['listenTo'](_0x521f35,'suggestionLoaded',(_0x4e07c4,_0x37c608)=>{this['listenTo'](_0x37c608,'change:previous',(_0x5f2f82,_0x301f29,_0x40f7af,_0x3282a9)=>{_0x37c608['isInContent']&&(null==_0x40f7af?(this['_updateController'](_0x3282a9['head']),this['_handleSuggestionControllerDelayed'](_0x37c608,!0x1)):(this['_updateController'](_0x40f7af['head']),null==_0x3282a9&&this['_handleSuggestionControllerDelayed'](_0x37c608,!0x0)));}),null!==_0x37c608['previous']?this['_updateController'](_0x37c608['head']):this['_handleSuggestionControllerDelayed'](_0x37c608,!0x1);}),this['listenTo'](_0x521f35,'suggestionUnloaded',(_0x2207b0,_0x139449,_0x3239e6)=>{this['stopListening'](_0x139449,'change:previous'),this['_handleControllerBuffer']['delete'](_0x139449),this['_suggestionToController']['has'](_0x139449)&&this['_destroyController'](_0x139449),_0x3239e6&&this['_updateController'](_0x3239e6['head']);}),this['listenTo'](_0x521f35,'suggestionChanged',(_0xc7b619,_0x4546b4)=>{this['_updateController'](_0x4546b4);}),this['listenTo'](_0x43a59e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4b2bbf,'addComment',(_0x53fa54,{threadId:_0x311e11,isFromAdapter:_0x2225e5})=>{if(_0x2225e5||!_0x521f35['hasSuggestion'](_0x311e11))return;const _0x26e0f9=_0x521f35['getSuggestion'](_0x311e11);this['_suggestionToController']['get'](_0x26e0f9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3bcb7a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x332416;for(const _0x12c4fb in _0x3bcb7a){const _0x19f6b1=_0x12c4fb,_0x5a3939=_0x3bcb7a[_0x19f6b1];if('trackChangesLicenseKeyValid'==_0x5a3939||'trackChangesLicenseKeyInvalid'==_0x5a3939||'trackChangesLicenseKeyExpired'==_0x5a3939||'trackChangesLicenseKeyDomainLimit'==_0x5a3939||'trackChangesLicenseKeyNotAllowed'==_0x5a3939||'trackChangesLicenseKeyEvaluationLimit'==_0x5a3939||'trackChangesLicenseKeyTrialLimit'==_0x5a3939||'trackChangesLicenseKeyUsageLimit'==_0x5a3939){delete _0x3bcb7a[_0x19f6b1],_0x332416=_0x5a3939,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x332416&&_0x3bcb7a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x332416&&_0x3bcb7a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x332416&&_0x3bcb7a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x332416&&_0x3bcb7a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x332416&&_0x3bcb7a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x332416&&_0x3bcb7a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x332416&&_0x3bcb7a['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x435c46=this['editor']['plugins']['get']('Annotations'),_0x496990=this['editor']['plugins']['get']('TrackChangesEditing'),_0x168367=Array['from'](_0x435c46['activeAnnotations'],_0x1fb0bd=>_0x1fb0bd['innerView'])['filter'](_0x26dcca=>this['_viewToController']['has'](_0x26dcca)),_0x3e2751=[];for(const _0x57f3ac of _0x168367){const _0x3cee45=this['_viewToController']['get'](_0x57f3ac)['model']['getAllAdjacentSuggestions']();_0x3e2751['push'](..._0x3cee45['reduce']((_0x55dbc0,_0x5db08e)=>[..._0x55dbc0,..._0x5db08e['getMarkerNames']()],[]));}_0x496990['activeMarkers']=_0x3e2751;}['_addUIComponentsToFactory'](){const _0x1a56d5=this['editor'],_0x3e39ef=_0x1a56d5['locale'],_0x8516ed=c(_0x3e39ef,'Track\x20changes'),_0x26f653=new _0x4c1118([{'type':'switchbutton','model':new _0x28756e({'withText':!0x0,'isToggleable':!0x0,'label':_0x8516ed,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x28756e({'withText':!0x0,'label':c(_0x3e39ef,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x28756e({'withText':!0x0,'label':c(_0x3e39ef,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x28756e({'withText':!0x0,'label':c(_0x3e39ef,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x28756e({'withText':!0x0,'label':c(_0x3e39ef,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1a56d5['plugins']['has']('TrackChangesPreview')&&_0x26f653['addMany']([{'type':'separator'},{'type':'button','model':new _0x28756e({'withText':!0x0,'label':c(_0x3e39ef,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3b6492 of _0x26f653)if(ke(_0x3b6492)){const _0x4213c8=_0x1a56d5['commands']['get'](_0x3b6492['model']['commandName']);_0x3b6492['model']['bind']('isOn','isEnabled')['to'](_0x4213c8,'value','isEnabled');}_0x1a56d5['ui']['componentFactory']['add']('trackChanges',_0x39be6b=>this['_createToolbarButton'](_0x39be6b,_0x26f653,_0x8516ed)),_0x1a56d5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4d39b6=>this['_createMenuBarMenu'](_0x4d39b6,_0x26f653,_0x8516ed));}['_createToolbarButton'](_0x1abe05,_0x3a3caa,_0x4e4a22){const _0x3bcca4=_0xdbe06b(_0x1abe05,_0x5986be),_0x11014c=this['editor']['commands']['get']('trackChanges');_0x3bcca4['buttonView']['set']({'tooltip':_0x4e4a22,'label':_0x4e4a22,'icon':_0x369f3f}),_0x3bcca4['buttonView']['bind']('isOn')['to'](_0x11014c,'value'),_0x3bcca4['buttonView']['on']('execute',()=>{_0x11014c['execute'](),this['editor']['editing']['view']['focus']();}),_0x28c7ed(_0x3bcca4,_0x3a3caa,{'role':'menu'});const _0x25bf02=[];for(const _0x5b1112 of _0x3a3caa)ke(_0x5b1112)&&_0x25bf02['push'](this['editor']['commands']['get'](_0x5b1112['model']['commandName']));const _0x1339f9=_0x3bcca4['buttonView'];return _0x1339f9['actionView']['unbind']('isEnabled'),_0x1339f9['arrowView']['unbind']('isEnabled'),_0x1339f9['actionView']['bind']('isEnabled')['to'](_0x11014c,'isEnabled'),_0x1339f9['arrowView']['bind']('isEnabled')['toMany'](_0x25bf02,'isEnabled',(..._0x52c108)=>_0x52c108['some'](_0xd4e1a3=>_0xd4e1a3)),_0x3bcca4['on']('execute',_0x76caf0=>{this['editor']['execute'](_0x76caf0['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3bcca4;}['_createMenuBarMenu'](_0x18262c,_0x527a16,_0x3c216b){const _0x5cc038=new _0x5cbf0a(_0x18262c),_0x10e065=this['editor']['commands']['get']('trackChanges');_0x5cc038['buttonView']['set']({'label':_0x3c216b,'icon':_0x369f3f});const _0x232aa2=new _0x19ac3c(_0x18262c);for(const _0x25fa0b of _0x527a16){if('separator'==_0x25fa0b['type']){_0x232aa2['items']['add'](new _0x5ec8b8(_0x18262c));continue;}const _0x28d37f=new _0x595c66(_0x18262c,_0x5cc038),_0x33cd8a=new _0xf352ab(_0x18262c),_0x36e291=_0x25fa0b['model'];_0x33cd8a['bind'](...Object['keys'](_0x36e291))['to'](_0x36e291),_0x33cd8a['delegate']('execute')['to'](_0x5cc038),_0x33cd8a['on']('execute',()=>{this['editor']['execute'](_0x36e291['commandName']),this['editor']['editing']['view']['focus']();}),_0x28d37f['children']['add'](_0x33cd8a),_0x232aa2['items']['add'](_0x28d37f);}return _0x5cc038['bind']('isEnabled')['to'](_0x10e065,'isEnabled'),_0x5cc038['panelView']['children']['add'](_0x232aa2),_0x5cc038;}['_initializeController'](_0x361bff){const _0x3eb8f7=this['editor'],_0x4ec288=_0x3eb8f7['config'],_0xfd3e65=_0x3eb8f7['plugins']['get']('Annotations'),_0x6460d1=_0x3eb8f7['plugins']['get']('CommentsRepository'),_0x235e99=_0x3eb8f7['plugins']['get']('EditorAnnotations'),_0x548ae8=_0x3eb8f7['plugins']['get'](_0x27766d)['me'],_0x1efe03=_0x4ec288['get']('trackChanges')['SuggestionThreadView'],_0x2cd915=_0x4ec288['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x47510e,CommentThreadInputView:_0x150cf7}=_0x3eb8f7['plugins']['get']('CommentsUI');let _0x8937e,_0x23607c,_0x10ffab;this['_annotationViews']['has'](_0x361bff['id'])?(_0x23607c=this['_annotationViews']['get'](_0x361bff['id']),_0x8937e=_0x23607c['mainView']):(_0x8937e=new _0x1efe03(_0x3eb8f7['locale'],_0x361bff,_0x548ae8,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4ec288['get']('comments.editorConfig'),'licenseKey':_0x4ec288['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4ec288['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4ec288['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4ec288['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x26a2e7(_0x4ec288['get']('locale')),'CommentView':_0x4ec288['get']('comments')['CommentView'],'CommentsListView':_0x47510e,'CommentThreadInputView':_0x150cf7,'SuggestionView':_0x2cd915}),_0x8937e['suggestionView']['acceptButton']['on']('execute',()=>{_0x3eb8f7['editing']['view']['focus']();}),_0x8937e['suggestionView']['discardButton']['on']('execute',()=>{_0x3eb8f7['editing']['view']['focus']();}),_0x23607c=_0xfd3e65['createAnnotationView'](this['editor']['locale'],_0x8937e),_0x23607c['bind']('isDirty')['to'](_0x8937e,'isDirty'),_0x23607c['bind']('length')['to'](_0x8937e),_0x23607c['bind']('type')['to'](_0x8937e,'type',_0x4c4a61=>'suggestion-'+_0x4c4a61),_0x8937e['on']('escape',()=>{_0x10ffab['fire']('escape');}),this['_annotationViews']['set'](_0x361bff['id'],_0x23607c));const _0x30b4ce=_0x6460d1['createCommentThreadController'](_0x361bff['commentThread'],_0x8937e),_0x37142a=new pe(_0x3eb8f7,_0x361bff,_0x8937e,_0x30b4ce),_0x2164b4=_0x361bff['getAllAdjacentSuggestions']()['filter'](_0x4be966=>_0x4be966['isInContent']);_0x8937e['descriptionParts']=_0x3eb8f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2164b4),this['_suggestionToController']['set'](_0x361bff,_0x37142a),this['_viewToController']['set'](_0x8937e,_0x37142a),_0x10ffab=_0xfd3e65['createAnnotation']({'view':_0x23607c,'target':()=>{const _0x29b638=[],_0x4a1484=_0x361bff['getAllAdjacentSuggestions']()['filter'](_0x195291=>_0x195291['isInContent']);for(const _0x1fcf30 of _0x4a1484)_0x29b638['push'](..._0x1fcf30['getMarkers']());return _0x514647(_0x3eb8f7['editing'],_0x29b638);},'type':()=>'suggestion-'+_0x37142a['view']['type']}),_0x6460d1['_bindAnnotationToEditors'](_0x8937e,_0x10ffab),_0xfd3e65['add'](_0x10ffab),_0x235e99['registerAnnotation'](_0x10ffab);}['_destroyController'](_0x243055){const _0x59ea73=this['editor']['plugins']['get']('CommentsRepository'),_0x239049=this['editor']['plugins']['get']('Annotations'),_0x5d7cb8=this['_suggestionToController']['get'](_0x243055),_0x3d3bc3=_0x5d7cb8['view'],_0x597539=_0x239049['getByInnerView'](_0x3d3bc3);_0x59ea73['_unbindEditors'](_0x3d3bc3),_0x597539&&_0x239049['remove'](_0x597539),this['_suggestionToController']['delete'](_0x243055),this['_viewToController']['delete'](_0x3d3bc3),_0x5d7cb8['destroy']();}['_updateController'](_0x6b47b3){if(!_0x6b47b3['isInContent']||!this['_suggestionToController']['has'](_0x6b47b3))return;const _0x2def59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e2a74=this['_suggestionToController']['get'](_0x6b47b3),_0x25e0b4=_0x6b47b3['getAllAdjacentSuggestions']();_0x2e2a74['view']['descriptionParts']=_0x2def59['descriptionFactory']['getDescriptions'](_0x25e0b4);}['destroy'](){for(const _0x47225a of this['_suggestionToController']['keys']())this['_destroyController'](_0x47225a);for(const _0x5d1673 of this['_annotationViews']['values']())_0x5d1673['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x54bb5d){return'model'in _0x54bb5d;}class k extends _0x2a35ef{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1cfe16){this['editor']['plugins']['get'](p)['adapter']=_0x1cfe16;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x435064){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x435064);}['getSuggestions']({skipNotAttached:_0x511211=!0x1,toJSON:_0x139a2e=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x511211,'toJSON':_0x139a2e});}['getSuggestion'](_0x1dab2c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1dab2c);}}const w=['Pagination'];class T extends _0x2a35ef{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x58b13f=this['editor'];if(_0x58b13f['config']['define']('trackChangesData.editorCreator',_0x3538c3=>{const _0x47a780=_0x58b13f['model']['document']['getRootNames']()['reduce']((_0x296d74,_0x5ac785)=>(_0x296d74[_0x5ac785]='',_0x296d74),{});return _0x58b13f['constructor']['create'](_0x47a780,_0x3538c3);}),'function'!=typeof _0x58b13f['config']['get']('trackChangesData')['editorCreator'])throw new _0x415647('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5b5373){return N(this['editor'],!0x0,_0x5b5373);}['getDataWithDiscardedSuggestions'](_0x3255f1){return N(this['editor'],!0x1,_0x3255f1);}}class D extends _0x2a35ef{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x498bf0){function _0x4726d5(_0x4b06d5){return _0x4b06d5['map'](_0x2de3ad=>String['fromCharCode'](_0x2de3ad))['join']('');}super(_0x498bf0),this['result']='end',_0x498bf0[_0x4726d5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4726d5([0x76,0x69,0x65,0x77])][_0x4726d5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4726d5([0x61,0x75,0x74,0x6f]),_0x498bf0[_0x4726d5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4726d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4726d5([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4726d5([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4726d5([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 Fe(_0x1fdefb){return void 0x0!==_0x1fdefb['getRootsAttributes'];}async function N(_0x4fd826,_0x1242ea,_0x9f4df9){const _0x2c32cd=_0x1fa962(_0x4fd826,w);_0x2c32cd['plugins']['push'](p,D),_0x2c32cd['rootsAttributes']=Fe(_0x4fd826)?_0x4fd826['getRootsAttributes']():void 0x0;const _0x443a35=document['createDocumentFragment'](),_0x3f0271=_0x4fd826['config']['get']('trackChangesData')['editorCreator'],_0xcc562d=await _0x3f0271(_0x2c32cd,()=>function(_0x2c2f01){const _0x4053d6=document['createElement']('div');return _0x2c2f01['appendChild'](_0x4053d6),_0x4053d6;}(_0x443a35));!function(_0x45eb41,_0x4e968f){const _0x3a0c61=_0x45eb41['model']['document']['getRootNames']()['reduce']((_0x3b1bb3,_0x1a9111)=>(_0x3b1bb3[_0x1a9111]=_0x45eb41['data']['get']({'rootName':_0x1a9111}),_0x3b1bb3),{}),_0x3409c9=_0x45eb41['plugins']['get']('Users')['users']['map'](_0x23b83f=>({'id':_0x23b83f['id'],'name':_0x23b83f['name']})),_0x524bf6=_0x45eb41['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4f00a5=_0x45eb41['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x27ac27=_0x4e968f['plugins']['get']('Users'),_0x301ee4=_0x4e968f['plugins']['get']('TrackChangesEditing'),_0x3171d6=_0x4e968f['plugins']['get']('CommentsRepository');for(const _0x574016 of _0x3171d6['getCommentThreads']())_0x574016['remove']();for(const _0x232489 of _0x3409c9)_0x27ac27['getUser'](_0x232489['id'])||_0x27ac27['addUser'](_0x232489);_0x27ac27['me']||_0x27ac27['useAnonymousUser']();for(const _0x2e22a7 of _0x4f00a5)_0x3171d6['addCommentThread'](_0x2e22a7);for(const _0xe432f6 of _0x524bf6)_0x301ee4['addSuggestionData'](_0xe432f6);_0x4e968f['data']['set'](_0x3a0c61);}(_0x4fd826,_0xcc562d),_0xcc562d['execute'](_0x1242ea?'acceptAllSuggestions':'discardAllSuggestions');const _0x587fc2=Fe(_0xcc562d)?_0xcc562d['getFullData'](_0x9f4df9):_0xcc562d['data']['get'](_0x9f4df9);return await _0xcc562d['destroy'](),_0x587fc2;}class Me extends _0x927a89{['options'];constructor(_0x40a76d,_0xa0a092){super(_0x40a76d),this['options']=_0xa0a092,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'](_0x3d3bbf,_0x17e750){if(!this['element'])return;const _0x29ca58=[];for(const [_0x4e243b,_0x2cad43]of _0x3d3bbf){const _0x550295=document['createElement']('div');_0x550295['setAttribute']('data-ck-root-name',_0x4e243b),_0x550295['className']=_0x2cad43['classes']+'\x20ck-track-changes-preview__root-container',_0x550295['innerHTML']=_0x2cad43['content'],_0x29ca58['push'](_0x550295);}_0x17e750(this['element'],_0x29ca58),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x280e5a{constructor(_0x1d9d01){super(_0x1d9d01),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x21601a=this['editor'],_0x5a1d2a=_0x21601a['locale'],_0x4648e3=_0x21601a['plugins']['get']('Dialog');let _0x2ed36e;const _0x48f675=function(_0x8a2bab){const _0x59cc18={};if('editables'in _0x8a2bab['ui']['view']){for(const [_0x10cf59,_0x53c2fa]of Object['entries'](_0x8a2bab['ui']['view']['editables']))_0x59cc18[_0x10cf59]=_0x53c2fa['element'];}else _0x59cc18[_0x8a2bab['model']['document']['getRootNames']()[0x0]]=_0x8a2bab['ui']['view']['editable']['element'];return _0x59cc18;}(_0x21601a),_0x20b3d7=function(_0x1d8f17){let _0x3b2499=0x0;for(const _0x499d0c of Object['values'](_0x1d8f17))_0x3b2499=Math['max'](_0x3b2499,_0x499d0c['getBoundingClientRect']()['width']);let _0x404be9=0x0;for(const _0x22c54a of Object['values'](_0x1d8f17))_0x404be9+=_0x22c54a['getBoundingClientRect']()['height'];const _0x2ad972=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x16ab7d=Math['min'](_0x404be9,_0x2ad972);return{'width':_0x3b2499,'height':_0x16ab7d};}(_0x48f675);_0x4648e3['show']({'id':'finalContentPreview','title':c(_0x5a1d2a,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5a1d2a,{'dialogRects':_0x20b3d7}),'onHide':()=>{_0x2ed36e['detachFromDom']();},'onShow':()=>{_0x21601a['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xd13880=>{const _0x2ef7ee=this['_standarizeRootsData'](_0xd13880,_0x21601a,_0x48f675);_0x4648e3['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2ef7ee,_0x21601a['config']['get']('trackChanges.preview.renderFunction'));}),_0x2ed36e=new _0x5baf75(_0x5a1d2a,[_0x4648e3['view']]),_0x2ed36e['attachToDom'](),_0x2ed36e['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x21601a['once']('destroy',()=>{_0x2ed36e['detachFromDom']();});const _0x371133=_0x4648e3['view']['headerView']['class'];_0x4648e3['view']['headerView']['class']=_0x371133?_0x371133+'\x20ck-reset_all':'ck-reset_all',_0x4648e3['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4648e3['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xd43c8b=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x144d2d=_0xd43c8b['previewMode'],_0x191143={};if('$labels'===_0x144d2d){for(const _0x398ef9 of _0xd43c8b['getMergeFieldsIds']())_0x191143[_0x398ef9]=_0xd43c8b['getLabel'](_0x398ef9)||_0x398ef9;}else{const _0x220fe9='$defaultValues'===_0x144d2d?_0xd43c8b['getDefaultValues']():_0xd43c8b['getDataSetValues'](_0x144d2d,!0x0);for(const _0x54c1cd of Object['entries'](_0x220fe9)){const [_0x22bf40,_0x207d88]=_0x54c1cd;_0x191143[_0x22bf40]=null!==_0x207d88?_0x207d88:_0xd43c8b['getLabel'](_0x22bf40)||_0x22bf40;}}return{'mergeFieldsData':_0x191143};}['_standarizeRootsData'](_0x488642,_0xf4f3fd,_0x4e3cf2){let _0xc6d747;if('string'==typeof _0x488642){const _0x43487=_0xf4f3fd['model']['document']['getRootNames']()[0x0];_0xc6d747={[_0x43487]:_0x488642};}else _0xc6d747=_0x488642;const _0x2ed3ef=this['_fixMediaEmbeds'](_0xc6d747,_0xf4f3fd),_0x254c2a=function(_0x2af133,_0x183a3a){for(const [_0x5ea73f,_0x21ce4e]of _0x2af133)_0x21ce4e['classes']=_0x183a3a[_0x5ea73f]['classList']['value']['replace']('ck-focused','');return _0x2af133;}(this['_sortRoots'](_0xf4f3fd)['reduce']((_0x3b6dad,_0x11cfb5)=>(_0x3b6dad['push']([_0x11cfb5,{'content':_0x2ed3ef[_0x11cfb5],'classes':''}]),_0x3b6dad),[]),_0x4e3cf2);return _0x254c2a;}['_fixMediaEmbeds'](_0x5597b2,_0x155ab0){if(!_0x155ab0['plugins']['has']('MediaEmbedEditing'))return _0x5597b2;const _0x1873ab=_0x155ab0['plugins']['get']('MediaEmbedEditing');for(const [_0x12d05c,_0xc59096]of Object['entries'](_0x5597b2)){const _0x8cf236=document['createElement']('div');_0x8cf236['innerHTML']=_0xc59096,(_0x8cf236['querySelectorAll']('figure.media')['forEach'](_0x5b1327=>{const _0x3c39a1=_0x5b1327['querySelector']('oembed');if(_0x3c39a1){const _0xa3c019=_0x3c39a1['getAttribute']('url');if(_0xa3c019){const _0xdf75ca=_0x1873ab['registry']['getMediaViewElement'](new _0x301443(_0x155ab0['editing']['view']['document']),_0xa3c019,{'elementName':'','renderForEditingView':!0x0}),_0x1225f=document['createElement']('div');_0x1225f['classList']['add']('ck-media__wrapper'),_0xdf75ca['render'](_0x1225f,_0x155ab0['editing']['view']['domConverter']),_0x3c39a1['replaceWith'](_0x1225f);}}}),_0x5597b2[_0x12d05c]=_0x8cf236['innerHTML']);}return _0x5597b2;}['_sortRoots'](_0x56e46e){if(!function(_0x3608f4){return void 0x0!==_0x3608f4['getRootsAttributes'];}(_0x56e46e))return _0x56e46e['model']['document']['getRootNames']();const _0x1fdcd0=[],_0x1fd834=new Map();for(const _0x2aa41a of _0x56e46e['model']['document']['getRootNames']()){const _0x31daa6=_0x56e46e['editing']['view']['getDomRoot'](_0x2aa41a)['getClientRects']()['item'](0x0);_0x1fdcd0['push'](_0x2aa41a),_0x1fd834['set'](_0x2aa41a,_0x31daa6);}return _0x1fdcd0['sort']((_0x408c1e,_0x36524f)=>{const _0x48ef9f=_0x1fd834['get'](_0x408c1e),_0x1232e0=_0x1fd834['get'](_0x36524f);return _0x48ef9f['y']-_0x1232e0['y']||_0x48ef9f['x']-_0x1232e0['x'];}),_0x1fdcd0;}}class te extends _0x2a35ef{static get['requires'](){return[T,_0xb527ad];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21c08f){super(_0x21c08f),_0x21c08f['commands']['add']('previewFinalContent',new re(this['editor'])),_0x21c08f['config']['define']('trackChanges.preview.renderFunction',(_0x4c4c09,_0x10ed81)=>{for(const _0x20ecfd of _0x10ed81)_0x4c4c09['appendChild'](_0x20ecfd);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x339021,Plugin as _0x54e516,PendingActions as _0x5cb8b7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1a1d2d,ObservableMixin as _0x1f73ca,uid as _0x5310dd,priorities as _0x2800bb,insertToPriorityArray as _0x33918d,logWarning as _0x5b3cf6,getEnvKeystrokeText as _0x5f531a,FocusTracker as _0xc2e669,KeystrokeHandler as _0x5188e6,Collection as _0x2e0cef}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x35d65b,IconCancel as _0x12bc4e,IconTrackChanges as _0xd8a762}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1f08af,View as _0x1d3524,ViewCollection as _0x10e58e,FocusCycler as _0x279a0f,ViewModel as _0x4e4f6a,createDropdown as _0x56e766,SplitButtonView as _0x5c40a3,addListToDropdown as _0x3efabf,MenuBarMenuView as _0x1aee17,MenuBarMenuListView as _0x2d7c81,ListSeparatorView as _0x36879a,MenuBarMenuListItemView as _0x4592f0,MenuBarMenuListItemButtonView as _0x89f640,BodyCollection as _0x36cf22,Dialog as _0x7a5ccd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x25323f,hashObject as _0x52257a,surroundingMarkersDetector as _0x492d76,FOCUS_ANNOTATION_KEYSTROKE as _0x295ed7,AriaDescriptionView as _0xa50ecc,setupThreadKeyboardNavigation as _0x82ff32,trimHtml as ti,UserView as _0xecee32,LateFocusButtonView as _0x2f4a77,getDateTimeFormatter as _0x31fc8e,getAllMarkersDomElementsSorted as _0x1cd5aa,sanitizeEditorConfig as _0x3a3895}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x27bc06,LiveRange as _0x6b53b6,LivePosition as _0x5f2a4a,DowncastWriter as _0x162b19}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x63d294,toWidget as _0x2b5ac0}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x6a5ce,set as _0x4e20bb,isEqual as _0x14f7b8,unset as _0x5e6601,omit as Vt}from'es-toolkit/compat';import{Delete as _0x2df60f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x188e6c,ShiftEnter as _0x234e13}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x339021{['_enabledCommands'];constructor(_0x1bd0fb,_0x2a3ba2){super(_0x1bd0fb),this['_enabledCommands']=_0x2a3ba2,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 _0xc8d74e of this['editor']['commands']['commands']())_0xc8d74e['affectsData']&&!this['_enabledCommands']['has'](_0xc8d74e)&&_0xc8d74e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1424ad of this['editor']['commands']['commands']())_0x1424ad['affectsData']&&!this['_enabledCommands']['has'](_0x1424ad)&&_0x1424ad['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x339021{['_suggestions'];constructor(_0x50fb57,_0x39e0c5){super(_0x50fb57),this['_suggestions']=_0x39e0c5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xaf32da){const _0x2ea87e=this['_suggestions']['get'](_0xaf32da);if(!_0x2ea87e)throw new _0x1a1d2d('track-changes-accept-suggestion-not-found',this);const _0x245d01=_0x2ea87e['getRanges']();this['editor']['model']['canEditAt'](_0x245d01)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2ea87e);}}class R extends _0x339021{['_suggestions'];constructor(_0x41a300,_0x7f9379){super(_0x41a300),this['_suggestions']=_0x7f9379,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x57f837){const _0x56713a=this['_suggestions']['get'](_0x57f837);if(!_0x56713a)throw new _0x1a1d2d('track-changes-discard-suggestion-not-found',this);const _0x2868d5=_0x56713a['getRanges']();this['editor']['model']['canEditAt'](_0x2868d5)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x56713a);}}function ls(_0x5064cd,_0x55d046){let _0x224d04='';return _0x224d04+=_0x5064cd['split']('*')['map']((_0x35b9e9,_0x4cca93)=>_0x4cca93%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x35b9e9)+'</span>':nn(_0x35b9e9))['join'](''),_0x55d046&&(_0x224d04+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x55d046['value']+'\x22\x20title=\x22'+_0x55d046['title']+'\x22></span>'),_0x224d04;}function nn(_0xb70e70){const _0x19e495=document['createElement']('span');return _0x19e495['innerText']=_0xb70e70,_0x19e495['innerHTML'];}function ts(_0x5b4072){return _0x5b4072['sort']((_0x25fbcc,_0x16855d)=>'deletion'==_0x25fbcc['type']&&'deletion'!=_0x16855d['type']?-0x1:'deletion'!=_0x25fbcc['type']&&'deletion'==_0x16855d['type']?0x1:0x0);}function Zt(_0x302872,_0x167e4f){let _0x514081,_0x37c761=0x0;const _0x3a09ee=[],_0x56beb1=_0x167e4f['schema'];for(;_0x37c761<_0x302872['length'];){const _0x4e49a8=_0x302872[_0x37c761],_0x22eac5=_0x302872[_0x37c761+0x1];_0x514081||(_0x514081=_0x167e4f['createPositionBefore'](_0x4e49a8)),on(_0x167e4f,_0x4e49a8,_0x22eac5)||(_0x3a09ee['push'](_0x167e4f['createRange'](_0x514081,_0x56beb1['isObject'](_0x4e49a8)?_0x167e4f['createPositionAfter'](_0x4e49a8):_0x167e4f['createPositionAt'](_0x4e49a8,'end'))),_0x514081=null),_0x37c761++;}return _0x3a09ee;}function on(_0x42525e,_0x452977,_0x3b51c0){if(!_0x3b51c0)return!0x1;const _0x42f5f4=_0x42525e['createPositionAfter'](_0x452977),_0x8f397a=_0x42525e['createPositionBefore'](_0x3b51c0);return _0x42f5f4['isTouching'](_0x8f397a);}function rs(_0x21ad31,_0x25830a,_0x1d393e){for(;_0x1d393e['length'];){const _0x2f1885=_0x1d393e['splice'](0x0,0x64);_0x21ad31['change'](()=>{for(const _0xad5de5 of _0x2f1885)_0xad5de5['isInContent']&&_0x25830a['execute'](_0xad5de5['id']);});}}class x extends _0x339021{['_command'];['_suggestions'];constructor(_0x55adde,_0x5dda6c,_0xc1d87c){super(_0x55adde),this['_command']=_0x5dda6c,this['_suggestions']=_0xc1d87c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2c876c=Array['from'](this['_suggestions']['values']())['some'](_0x361d94=>_0x361d94['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2c876c;}['execute'](){const _0x3a077a=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3bf183 of _0x3a077a){const _0x577d01=_0x3bf183['getRanges']();if(!this['editor']['model']['canEditAt'](_0x577d01))return;}rs(this['editor']['model'],this['_command'],_0x3a077a);}}class E extends _0x339021{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xd61ae8,_0x1f4d19,_0x36487e){super(_0xd61ae8),this['_command']=_0x1f4d19,this['_suggestions']=_0x36487e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xf2ae9d=this['editor']['model']['document']['selection'],_0x3e1164=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x40893b,_0x30513a){const _0x376647=Array['from'](_0x40893b['getRanges']()),_0xafb41e=new Set();for(const _0xe27cad of _0x30513a)if(_0xe27cad['isInContent']){for(const _0xe4d634 of _0x376647)for(const _0x36b3c7 of _0xe27cad['getRanges']())(_0xe4d634['isIntersecting'](_0x36b3c7)||_0x40893b['isCollapsed']&&!_0xe27cad['isMultiRange']&&_0xe27cad['next']&&_0x36b3c7['end']['isTouching'](_0xe4d634['start']))&&_0xafb41e['add'](_0xe27cad);}return _0xafb41e;}(_0xf2ae9d,_0x3e1164),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4a770e=ts(Array['from'](this['_selectedSuggestions']));for(const _0x37fa16 of _0x4a770e){const _0x484cb4=_0x37fa16['getRanges']();if(!this['editor']['model']['canEditAt'](_0x484cb4))return;}rs(this['editor']['model'],this['_command'],_0x4a770e);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x1f73ca(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x18f43a,_0x5064dd){super(),this['id']=_0x5064dd['id'],this['type']=_0x5064dd['type'],this['subType']=_0x5064dd['subType']||null,this['author']=_0x5064dd['author'],this['creator']=_0x5064dd['creator']||_0x5064dd['author'],this['isExternal']=Boolean(_0x5064dd['attributes']&&_0x5064dd['attributes']['@external']),this['data']=null,this['_model']=_0x18f43a,this['_onAccept']=_0x5064dd['onAccept'],this['_onDiscard']=_0x5064dd['onDiscard'],this['_onAttributesChange']=_0x5064dd['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5064dd['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 _0x352eb2=this;for(;_0x352eb2['previous'];)_0x352eb2=_0x352eb2['previous'];return _0x352eb2;}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'](_0x1c5bbc){this['_markerNames']['add'](_0x1c5bbc);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x9dae32=>this['_model']['markers']['get'](_0x9dae32))['filter'](_0x1351b7=>_0x1351b7);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3b7733=>{for(const _0x2982cf of this['getMarkers']())_0x3b7733['removeMarker'](_0x2982cf);}),this['_markerNames']['clear']();}['removeMarker'](_0x116504){this['_model']['change'](_0x5d4c82=>{_0x5d4c82['removeMarker'](_0x116504);}),this['_markerNames']['delete'](_0x116504);}['addRange'](_0x30a89d){const _0x99073b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x99073b),this['_model']['change'](_0x29e695=>{_0x29e695['addMarker'](_0x99073b,{'range':_0x30a89d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3da057){for(const _0xb35ed7 of this['getRanges']())if(_0xb35ed7['isIntersecting'](_0x3da057))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x522bb4=>_0x522bb4['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x147791,_0x1fe7dc)=>[..._0x147791,..._0x1fe7dc['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x967300=this['getRanges']();if(0x1!=_0x967300['length'])return null;const _0x3c8b4b=_0x967300[0x0],_0x4b2683=_0x3c8b4b['start']['nodeAfter'],_0x13d60a=_0x3c8b4b['end']['nodeBefore'];return _0x4b2683 instanceof _0x27bc06?_0x4b2683!=_0x13d60a?null:_0x4b2683: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 _0x2d8656=[];let _0x324c30=this['head'];for(;_0x324c30;)_0x2d8656['push'](_0x324c30),_0x324c30=_0x324c30['next'];return _0x2d8656;}['setAttribute'](_0x12578a,_0x1a9594){const _0xf4b7b4=_0x6a5ce(this['attributes']);_0x4e20bb(_0xf4b7b4,_0x12578a,_0x1a9594),_0x14f7b8(_0xf4b7b4,this['attributes'])||(this['attributes']=_0xf4b7b4,this['_onAttributesChange'](_0xf4b7b4));}['removeAttribute'](_0x2c8028){const _0x137ce6=_0x6a5ce(this['attributes']);_0x5e6601(_0x137ce6,_0x2c8028),_0x14f7b8(_0x137ce6,this['attributes'])||(this['attributes']=_0x137ce6,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 _0x5310dd()['substr'](0x1,0x5);}}function c(_0x187131,_0x4ef276,_0x50d876){const _0x4fd597=_0x187131['t'],t=_0x187131['t'];switch(_0x4ef276){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',_0x50d876);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x50d876);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x50d876);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x50d876);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x50d876);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',_0x50d876);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x50d876);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',_0x50d876);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x50d876);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x50d876);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x50d876);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x50d876);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x50d876);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x50d876);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x50d876);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x50d876);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x50d876);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x50d876);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x50d876);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x50d876);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x50d876);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x50d876);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x50d876);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x50d876);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'},_0x50d876);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x50d876);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x50d876);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x50d876);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x50d876);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x50d876);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'},_0x50d876);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x50d876);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x50d876);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x50d876);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x50d876);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x50d876);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x50d876);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'},_0x50d876);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x50d876);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x50d876);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'},_0x50d876);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x50d876);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'},_0x50d876);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x50d876);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x50d876);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'},_0x50d876);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x50d876);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 _0x4fd597({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x50d876);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4fd597({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x50d876);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x50d876);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'},_0x50d876);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'},_0x50d876);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'},_0x50d876);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4ef276;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x55444a,_0x4b108c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x55444a,this['_locale']=_0x4b108c;}['getDescriptions'](_0x34b855){const _0x49983a=[],_0x280062=new Set(),_0x44ac03=new Set();for(let _0x41b852=0x0;_0x41b852<_0x34b855['length'];_0x41b852++){const _0x5919b3=_0x34b855[_0x41b852];if(!_0x5919b3['isInContent'])continue;const _0x1877de=this['_handleCustomCallbackDescription'](_0x5919b3);if(_0x1877de){if(null!=_0x5919b3['subType']){if(_0x280062['has'](_0x5919b3['subType']))continue;_0x280062['add'](_0x5919b3['subType']);}_0x49983a['push'](_0x1877de);}else{if('attribute'!=_0x5919b3['type'])'insertion'!=_0x5919b3['type']&&'deletion'!=_0x5919b3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x49983a,_0x5919b3,_0x34b855[_0x41b852+0x1]);else{const _0x13a2ce=_0x5919b3['data']['key'];if(_0x44ac03['has'](_0x13a2ce))continue;_0x44ac03['add'](_0x5919b3['data']['key']),_0x13a2ce==u?this['_handleRenameSuggestionDescription'](_0x49983a,_0x5919b3):this['_handleAttributeSuggestionDescription'](_0x49983a,_0x5919b3);}}}return this['_resolveDescriptionItems'](_0x49983a);}['registerDescriptionCallback'](_0x22d146){this['_customCallbacks']['push'](_0x22d146);}['registerElementLabel'](_0xf6e3f,_0x1112a0,_0x16b30b=_0x2800bb['normal']){'function'==typeof _0xf6e3f?_0x33918d(this['_itemLabelsCallbacks'],{'matchingCallback':_0xf6e3f,'label':_0x1112a0,'priority':_0x16b30b}):this['_itemLabels']['set'](_0xf6e3f,_0x1112a0);}['registerAttributeLabel'](_0x313001,_0xda37b1){this['_attributeLabels']['set'](_0x313001,_0xda37b1);}['getItemLabel'](_0x59dfeb,_0x15dc1c=0x1){let _0x2be99a;for(const _0x48a3f9 of this['_itemLabelsCallbacks'])if(_0x48a3f9['matchingCallback'](_0x59dfeb)){_0x2be99a=_0x48a3f9['label'];break;}return _0x2be99a||(_0x2be99a=this['_itemLabels']['get'](_0x59dfeb['name'])),_0x2be99a?_0x2be99a(_0x15dc1c):0x1!==_0x15dc1c?_0x15dc1c+'\x20'+_0x59dfeb['name']+'s':''+_0x59dfeb['name'];}['_addDescriptionItems'](_0x4f0f29,_0x4aa198){const _0x2b22cd=_0x4aa198['getFirstRange']()['getWalker'](),_0x91aa22='insertion'==_0x4aa198['type']?'add':'remove';for(const _0x1c5e21 of _0x2b22cd){const _0x385214=_0x1c5e21['item'],_0x5f30a3=_0x4f0f29[_0x4f0f29['length']-0x1];if(_0x385214['is']('$textProxy'))_0x5f30a3&&_0x5f30a3['type']['indexOf']('Container')>-0x1&&_0x4f0f29['pop'](),_0x5f30a3&&'text'==_0x5f30a3['type']?_0x5f30a3[_0x91aa22]+=_0x385214['data']:_0x4f0f29['push']({'type':'text','add':'add'==_0x91aa22?_0x385214['data']:'','remove':'remove'==_0x91aa22?_0x385214['data']:''});else{if(this['_schema']['isObject'](_0x385214)){const _0xb4d4ea=_0x385214;if(_0x5f30a3&&_0x5f30a3['type']['indexOf']('Container')>-0x1&&_0x4f0f29['pop'](),'elementEnd'==_0x1c5e21['type'])continue;_0x5f30a3&&_0x5f30a3['type']==_0x91aa22+'Object'&&_0x5f30a3['element']['name']==_0xb4d4ea['name']?_0x5f30a3['quantity']++:_0x4f0f29['push']({'type':_0x91aa22+'Object','element':_0xb4d4ea,'quantity':0x1}),_0x2b22cd['skip'](_0x2680eb=>!('elementEnd'==_0x2680eb['type']&&_0x2680eb['item']==_0x385214));}else{if(this['_schema']['checkChild'](_0x385214,'$text')||_0x385214['is']('element','softBreak')){const _0x443f49=_0x385214;if('add'==_0x91aa22&&'elementStart'==_0x1c5e21['type']||'remove'==_0x91aa22&&'elementEnd'==_0x1c5e21['type'])continue;if(_0x5f30a3&&-0x1==_0x5f30a3['type']['indexOf']('Container')){'text'==_0x5f30a3['type']&&(_0x5f30a3[_0x91aa22]+='\x0a');continue;}let _0x55b93c;if(_0x55b93c='add'==_0x91aa22?_0x443f49['nextSibling']&&!this['_schema']['isObject'](_0x443f49['nextSibling'])?_0x443f49['nextSibling']:null:_0x443f49['previousSibling']&&!this['_schema']['isObject'](_0x443f49['previousSibling'])?_0x443f49['previousSibling']:null,_0x443f49['isEmpty']||_0x55b93c&&_0x55b93c['isEmpty']){const _0x262032=_0x55b93c&&_0x55b93c['isEmpty']?_0x55b93c:_0x443f49;_0x5f30a3&&_0x5f30a3['type']==_0x91aa22+'EmptyContainer'&&_0x5f30a3['element']['name']==_0x262032['name']?_0x5f30a3['quantity']++:_0x4f0f29['push']({'type':_0x91aa22+'EmptyContainer','element':_0x262032,'quantity':0x1});}else _0x4f0f29['push']({'type':_0x91aa22+'Container','element':_0x443f49});}}}}}['_resolveDescriptionItems'](_0x4823b5){const _0x5a2c4b=this['_locale'],_0x28c703=[],_0x175b2f=[],_0x2fe0d0=[];for(const _0x282f74 of _0x4823b5)switch(_0x282f74['type']){case'text':if(_0x282f74['add']=_0x282f74['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x282f74['remove']=_0x282f74['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x282f74['add']&&''!=_0x282f74['remove']){_0x28c703['push']({'type':'replace','content':c(_0x5a2c4b,'REPLACE_TEXT',['\x22'+_0x282f74['remove']+'\x22','\x22'+_0x282f74['add']+'\x22'])});continue;}if(null!=_0x282f74['add']['match'](/^ +$/)){_0x28c703['push']({'type':'insertion','content':c(_0x5a2c4b,'*Insert:*\x20%0',c(_0x5a2c4b,'ELEMENT_SPACE',_0x282f74['add']['length']))});continue;}if(null!=_0x282f74['remove']['match'](/^ +$/)){_0x28c703['push']({'type':'deletion','content':c(_0x5a2c4b,'*Remove:*\x20%0',c(_0x5a2c4b,'ELEMENT_SPACE',_0x282f74['remove']['length']))});continue;}if(''!=_0x282f74['add']){_0x28c703['push']({'type':'insertion','content':c(_0x5a2c4b,'*Insert:*\x20%0','\x22'+_0x282f74['add']+'\x22')});continue;}_0x28c703['push']({'type':'deletion','content':c(_0x5a2c4b,'*Remove:*\x20%0','\x22'+_0x282f74['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x28c703['push']({'type':'insertion','content':c(_0x5a2c4b,'*Insert:*\x20%0',this['getItemLabel'](_0x282f74['element'],_0x282f74['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x28c703['push']({'type':'deletion','content':c(_0x5a2c4b,'*Remove:*\x20%0',this['getItemLabel'](_0x282f74['element'],_0x282f74['quantity']))});continue;case'addContainer':_0x28c703['push']({'type':'insertion','content':c(_0x5a2c4b,'*Split:*\x20%0',this['getItemLabel'](_0x282f74['element'],_0x282f74['quantity']))});continue;case'removeContainer':_0x28c703['push']({'type':'deletion','content':c(_0x5a2c4b,'*Merge:*\x20%0',this['getItemLabel'](_0x282f74['element'],_0x282f74['quantity']))});continue;case'addFormat':_0x175b2f['push'](_0x282f74['key']);continue;case'removeFormat':_0x2fe0d0['push'](_0x282f74['key']);continue;default:_0x28c703['push'](_0x282f74);}if(_0x175b2f['length']){const _0x5c3232=_0x175b2f['map'](_0x30a5dd=>this['_attributeLabels']['has'](_0x30a5dd)?this['_attributeLabels']['get'](_0x30a5dd):_0x30a5dd)['join'](',\x20');_0x28c703['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x5c3232)});}if(_0x2fe0d0['length']){const _0x3665ad=_0x2fe0d0['map'](_0x5d3abe=>this['_attributeLabels']['has'](_0x5d3abe)?this['_attributeLabels']['get'](_0x5d3abe):_0x5d3abe)['join'](',\x20');_0x28c703['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x3665ad)});}return _0x28c703;}['_handleCustomCallbackDescription'](_0x581997){for(const _0x5c7e05 of this['_customCallbacks']){const _0x5cef61=_0x5c7e05(_0x581997);if(_0x5cef61&&'type'in _0x5cef61)return _0x5cef61;}}['_handleAttributeSuggestionDescription'](_0x54b160,_0x5a1354){const _0x394ce4=_0x5a1354['data'],_0x21cddd=void 0x0===_0x394ce4['newValue']?'removeFormat':'addFormat';_0x54b160['push']({'type':_0x21cddd,'key':_0x394ce4['key']});}['_handleRenameSuggestionDescription'](_0x164e18,_0x408d1e){_0x164e18['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x408d1e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xfdb9b3,_0x2aa70e,_0xd279ab){if(this['_addDescriptionItems'](_0xfdb9b3,_0x2aa70e),_0xd279ab&&_0xd279ab['getFirstRange']()&&!_0x2aa70e['getFirstRange']()['end']['isEqual'](_0xd279ab['getFirstRange']()['start'])){const _0x49912e=_0xfdb9b3[_0xfdb9b3['length']-0x1],_0x5ba878='insertion'==_0x2aa70e['type']?'add':'remove';_0x49912e&&'text'==_0x49912e['type']&&(_0x49912e[_0x5ba878]+='\x0a');}}}class U extends _0x54e516{['afterInit'](){const _0x4df0c1=this['editor'],_0x3c8605=_0x4df0c1['plugins']['get']('TrackChangesEditing');_0x4df0c1['commands']['get']('showAIAssistant')&&_0x3c8605['enableCommand']('showAIAssistant');}}class V extends _0x54e516{['afterInit'](){const _0x5bcb7a=this['editor'],_0x27c914=_0x5bcb7a['locale'];if(!_0x5bcb7a['plugins']['has']('AlignmentEditing'))return;const _0x38cb29=_0x5bcb7a['plugins']['get']('TrackChangesEditing');_0x38cb29['enableDefaultAttributesIntegration']('alignment'),_0x38cb29['registerBlockAttribute']('alignment'),_0x38cb29['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x27c914,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b9f13=this['editor'],_0x11f74f=_0x3b9f13['locale'];_0x3b9f13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ae088=>{if('formatBlock'!=_0x4ae088['type'])return;const {data:_0xe2b854}=_0x4ae088;if(_0xe2b854&&'alignment'==_0xe2b854['commandName']){const _0x2b7b5d=_0xe2b854['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x11f74f,'*Format:*\x20%0',function(_0x2a1dcc){switch(_0x2a1dcc){case'left':return c(_0x11f74f,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x11f74f,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x11f74f,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x11f74f,'FORMAT_JUSTIFY_TEXT');}}(_0x2b7b5d))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x54e516{['afterInit'](){const _0x13604a=this['editor'],_0xd94fcb=_0x13604a['plugins']['get']('TrackChangesEditing'),_0x3444f4=_0x13604a['locale'];for(const _0x21dd72 of Yt){if(!_0x13604a['plugins']['has'](_0x21dd72))continue;const _0x1d346a=_0x21dd72['slice'](0x0,-0x7)['toLowerCase'](),_0x33c7ea='FORMAT_'+_0x1d346a['toUpperCase']();_0xd94fcb['enableDefaultAttributesIntegration'](_0x1d346a),_0xd94fcb['registerInlineAttribute'](_0x1d346a),_0xd94fcb['descriptionFactory']['registerAttributeLabel'](_0x1d346a,c(_0x3444f4,_0x33c7ea));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54528d=this['editor'],_0xcd0815=_0x54528d['locale'],_0x34b329=_0x54528d['plugins']['get']('TrackChangesEditing');function _0x2e1ec8(_0x4a2c71,_0x2d2aea){_0x34b329['descriptionFactory']['registerDescriptionCallback'](_0x3db755=>{if('formatInline'!=_0x3db755['type'])return;const {data:_0x4a4067}=_0x3db755;return _0x4a4067&&_0x4a4067['commandName']===_0x4a2c71?_0x4a4067['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xcd0815,'*Format:*\x20%0',_0x2d2aea)}:{'type':'format','content':c(_0xcd0815,'*Remove\x20format:*\x20%0',_0x2d2aea)}:void 0x0;});}_0x2e1ec8('bold',c(_0xcd0815,'FORMAT_BOLD')),_0x2e1ec8('italic',c(_0xcd0815,'FORMAT_ITALIC')),_0x2e1ec8('underline',c(_0xcd0815,'FORMAT_UNDERLINE')),_0x2e1ec8('code',c(_0xcd0815,'FORMAT_CODE')),_0x2e1ec8('strikethrough',c(_0xcd0815,'FORMAT_STRIKETHROUGH')),_0x2e1ec8('subscript',c(_0xcd0815,'FORMAT_SUBSCRIPT')),_0x2e1ec8('superscript',c(_0xcd0815,'FORMAT_SUPERSCRIPT'));}}class G extends _0x54e516{['afterInit'](){const _0x26df81=this['editor'],_0xacf354=_0x26df81['locale'];if(!_0x26df81['plugins']['has']('BlockQuoteEditing'))return;const _0x2dedab=_0x26df81['plugins']['get']('TrackChangesEditing'),_0x48a969=this['editor']['commands']['get']('blockQuote');_0x2dedab['enableCommand']('blockQuote',(_0x5a13d0,_0x4978f4={})=>{const _0x2a21f0=this['editor']['model']['document']['selection'],_0x557aa5=_0x4978f4&&void 0x0!==_0x4978f4['forceValue']?_0x4978f4['forceValue']:!_0x48a969['value'];let _0x54910f=[];if(_0x557aa5){const _0x2200a0=Array['from'](_0x2a21f0['getSelectedBlocks']())['filter'](_0x38897b=>to(_0x38897b)||function(_0x25f992,_0x3f69b6){const _0x5c98ee=_0x3f69b6['checkChild'](_0x25f992['parent'],'blockQuote'),_0x3980ce=_0x3f69b6['checkChild'](['$root','blockQuote'],_0x25f992);return _0x5c98ee&&_0x3980ce;}(_0x38897b,this['editor']['model']['schema']));_0x54910f=Zt(_0x2200a0,_0x26df81['model']);}else{const _0x7a984a=Array['from'](_0x2a21f0['getSelectedBlocks']())['filter'](_0x4e6b80=>to(_0x4e6b80));_0x54910f=Zt(_0x7a984a,_0x26df81['model']);}_0x26df81['model']['change'](()=>{for(const _0x516101 of _0x54910f)_0x2dedab['markBlockFormat'](_0x516101,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x557aa5}]});});}),_0x2dedab['descriptionFactory']['registerDescriptionCallback'](_0x55312d=>{const {data:_0x465cbb}=_0x55312d;if(_0x465cbb&&'blockQuote'==_0x465cbb['commandName']){const _0x2588c1=c(_0xacf354,'ELEMENT_BLOCK_QUOTE');return _0x465cbb['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xacf354,'*Set\x20format:*\x20%0',_0x2588c1)}:{'type':'format','content':c(_0xacf354,'*Remove\x20format:*\x20%0',_0x2588c1)};}});}}function to(_0x15754c){return'blockQuote'==_0x15754c['parent']['name'];}class L extends _0x54e516{['afterInit'](){const _0x2fd2bf=this['editor'],_0x5f5444=_0x2fd2bf['locale'],_0x16b2b4=_0x2fd2bf['plugins']['get']('TrackChangesEditing');_0x2fd2bf['plugins']['has']('BookmarkEditing')&&(_0x16b2b4['enableCommand']('insertBookmark'),_0x16b2b4['enableDefaultAttributesIntegration']('updateBookmark'),_0x16b2b4['registerBlockAttribute']('bookmarkId'),_0x16b2b4['descriptionFactory']['registerDescriptionCallback'](_0xd9294=>{if('insertion'!=_0xd9294['type']&&'deletion'!=_0xd9294['type']&&'attribute'!=_0xd9294['type'])return;const _0xe68bb9=_0xd9294['getContainedElement']();if(null==_0xe68bb9)return;if(!_0xe68bb9['is']('element','bookmark'))return;const _0x363d57=_0xe68bb9['getAttribute']('bookmarkId');if('insertion'==_0xd9294['type'])return{'type':'insertion','content':c(_0x5f5444,'*Insert:*\x20%0','\x22'+_0x363d57+'\x22\x20'+c(_0x5f5444,'ELEMENT_BOOKMARK'))};if('deletion'==_0xd9294['type'])return{'type':'deletion','content':c(_0x5f5444,'*Remove:*\x20%0','\x22'+_0x363d57+'\x22\x20'+c(_0x5f5444,'ELEMENT_BOOKMARK'))};const {data:_0x42d126}=_0xd9294;if(!_0x42d126||'bookmarkId'!=_0x42d126['key'])return;return{'type':'format','content':c(_0x5f5444,'*Set\x20bookmark:*\x20%0','\x22'+_0x42d126['newValue']+'\x22')};}));}}class J extends _0x54e516{['afterInit'](){const _0x4b6545=this['editor'];_0x4b6545['plugins']['has']('CaseChange')&&(_0x4b6545['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4b6545['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4b6545['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x54e516{['afterInit'](){const _0x132cf5=this['editor'];_0x132cf5['commands']['get']('ckbox')&&_0x132cf5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x54e516{['afterInit'](){const _0x41be2c=this['editor'];if(!_0x41be2c['plugins']['has']('CodeBlock'))return;const _0x4c8819=_0x41be2c['plugins']['get']('TrackChangesEditing'),_0x1d4e6b=_0x41be2c['locale'],_0x9038a9=_0x41be2c['config']['get']('codeBlock')['languages'],_0xa5f17=_0x41be2c['commands']['get']('codeBlock');_0x4c8819['enableCommand']('indentCodeBlock'),_0x4c8819['enableCommand']('outdentCodeBlock'),_0x4c8819['enableCommand']('codeBlock',(_0x1053d7,_0x1e5264={})=>{const _0xb07d28=_0x41be2c['model'],_0x21a124=_0x41be2c['model']['document']['selection'],_0x248029=_0x1e5264&&void 0x0!==_0x1e5264['forceValue']?_0x1e5264['forceValue']:!_0xa5f17['value'];let _0x4fb890;_0x1e5264['language']||(_0x1e5264['language']=_0x9038a9[0x0]['language']),_0x4fb890=_0x248029?Array['from'](_0x21a124['getSelectedBlocks']())['filter'](_0x73bfcd=>oo(_0x73bfcd)||function(_0x4457fb,_0x432006){if(_0x4457fb['is']('rootElement')||_0x432006['isLimit'](_0x4457fb))return!0x1;return _0x432006['checkChild'](_0x4457fb['parent'],'codeBlock');}(_0x73bfcd,_0xb07d28['schema'])):Array['from'](_0x21a124['getSelectedBlocks']())['filter'](_0x34b965=>oo(_0x34b965));const _0x57bc71=Zt(_0x4fb890,_0xb07d28);_0xb07d28['change'](()=>{for(const _0x3efd9d of _0x57bc71)_0x4c8819['markBlockFormat'](_0x3efd9d,{'commandName':'codeBlock','commandParams':[{..._0x1e5264,'forceValue':_0x248029}],'formatGroupId':'blockName'});});}),(_0x4c8819['descriptionFactory']['registerElementLabel']('codeBlock',_0xb90e13=>c(_0x1d4e6b,'ELEMENT_CODE_BLOCK',_0xb90e13)),_0x4c8819['descriptionFactory']['registerDescriptionCallback'](_0x250b53=>{if('formatBlock'!=_0x250b53['type'])return;const _0x27be56=_0x1d4e6b['t'],{data:_0x151e0a}=_0x250b53;if(!_0x151e0a||'codeBlock'!=_0x151e0a['commandName'])return;const _0x2fe561=_0x151e0a['commandParams'][0x0]['language'],_0x52abc8=_0x27be56(_0x9038a9['find'](_0xb26b59=>_0xb26b59['language']===_0x2fe561)['label'])['toLowerCase']();return _0x151e0a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1d4e6b,'*Set\x20format:*\x20%0',c(_0x1d4e6b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x52abc8+')')}:{'type':'format','content':c(_0x1d4e6b,'*Remove\x20format:*\x20%0',c(_0x1d4e6b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x2b2d4f){return'codeBlock'==_0x2b2d4f['name'];}class q extends _0x54e516{['afterInit'](){const _0x2fa257=this['editor'];if(!_0x2fa257['plugins']['has']('CommentsEditing'))return;_0x2fa257['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x70a83b,_0x4e329f,_0xbbc976){const _0x17643b=[];for(const _0x5037fb of _0x4e329f['getItems']())_0x5037fb['hasAttribute'](_0x70a83b)&&_0x17643b['push'](_0xbbc976['createRangeOn'](_0x5037fb));return _0x17643b;}function De(_0x32981e,_0x3a3275,{showActiveMarker:_0x5df6e9=!0x0}={}){const _0x491807=_0x32981e['plugins']['get']('TrackChangesEditing');return(_0x39117f,_0x442e45,_0x93903c)=>{if(!_0x93903c['consumable']['test'](_0x442e45['markerRange'],_0x39117f['name']))return;const _0x180556=_0x442e45['markerRange']['getWalker'](),_0x1ee0e4=_0x442e45['markerRange']['start'],_0x40ac2e=_0x32981e['model']['schema'];let _0x2590d5=null,_0x42954b=null,_0x5a3a14=!0x1,_0x15a723=!0x1;for(const _0x13b583 of _0x180556){const _0x462a92=_0x13b583['item'];_0x5a3a14=_0x5a3a14||_0x40ac2e['isContent'](_0x462a92);const _0x49d3a4=_0x93903c['mapper']['toViewElement'](_0x462a92);if(_0x49d3a4&&_0x49d3a4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x13b583['type']&&(_0x40ac2e['isBlock'](_0x462a92)&&!_0x40ac2e['isLimit'](_0x462a92)&&(_0x462a92['nextSibling']||_0x1ee0e4['isAtEnd']?_0x2590d5&&_0x2590d5['parent']==_0x462a92||(_0x2590d5=_0x462a92,_0x5e3c23(_0x13b583['previousPosition']),_0x15a723=!0x0):_0x42954b=_0x42954b||_0x13b583['previousPosition']));}function _0x5e3c23(_0x4d499c){const {authorId:_0x4479c6}=_0x491807['_splitMarkerName'](_0x442e45['markerName']),_0x469cbe=_0x93903c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a3275,'data-author-id':_0x4479c6}),_0x409f43=_0x93903c['mapper']['toViewPosition'](_0x4d499c);_0x5df6e9&&_0x491807['activeMarkers']['includes'](_0x442e45['markerName'])&&_0x93903c['writer']['addClass']('ck-suggestion-marker--active',_0x469cbe),_0x93903c['writer']['insert'](_0x409f43,_0x469cbe),_0x93903c['mapper']['bindElementToMarker'](_0x469cbe,_0x442e45['markerName']);}_0x5a3a14||_0x15a723||!_0x42954b||_0x5e3c23(_0x42954b);};}class z extends _0x54e516{static get['requires'](){return[_0x2df60f];}['init'](){const _0x42d46c=this['editor'],_0x1e986e=_0x42d46c['plugins']['get']('TrackChangesEditing');_0x1e986e['enableCommand']('delete');const _0x35473e=_0x42d46c['commands']['get']('deleteForward');_0x1e986e['enableCommand']('deleteForward',(_0x54a6d8,_0x4d6572={})=>{const _0x14d6e4=_0x42d46c['model']['createSelection'](_0x42d46c['model']['document']['selection']);_0x14d6e4['isCollapsed']&&_0x42d46c['model']['modifySelection'](_0x14d6e4,{'direction':'forward','unit':_0x4d6572['unit']});const _0x4e95b1=_0x14d6e4['getFirstRange'](),_0x41c475=_0x6b53b6['fromRange'](_0x4e95b1);let _0x173fc8;_0x54a6d8(_0x4d6572),_0x173fc8='$graveyard'==_0x41c475['root']['rootName']?_0x42d46c['model']['createRange'](_0x4e95b1['start']):_0x42d46c['model']['createRange'](_0x41c475['start'],_0x41c475['end']),_0x41c475['detach'](),_0x42d46c['model']['enqueueChange'](_0x35473e['buffer']['batch'],_0x2e5fbc=>{_0x35473e['buffer']['lock'](),_0x2e5fbc['setSelection'](_0x2e5fbc['createRange'](_0x173fc8['end'])),_0x35473e['buffer']['unlock']();});}),_0x42d46c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x42d46c,'merge'),{'priority':'high'}),_0x42d46c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3e2814,_0x117fde,_0x52b11d)=>{_0x52b11d['options']['showSuggestionHighlights']&&De(_0x42d46c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3e2814,_0x117fde,_0x52b11d);},{'priority':'high'}),_0x42d46c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x489cb3,_0x138155,_0x38367a)=>{const _0x38ef57=_0x38367a['mapper']['markerNameToElements'](_0x138155['markerName']);if(_0x38ef57){for(const _0x515334 of _0x38ef57)_0x515334['is']('uiElement')&&(_0x38367a['mapper']['unbindElementFromMarkerName'](_0x515334,_0x138155['markerName']),_0x38367a['writer']['remove'](_0x515334));}},{'priority':'high'});}}class W extends _0x54e516{['afterInit'](){const _0x51320a=this['editor'];if(!_0x51320a['plugins']['has']('ListEditing'))return;const _0x249b7b=_0x51320a['locale'],_0x463ec9=_0x51320a['plugins']['get']('TrackChangesEditing'),_0x36cca9=_0x51320a['plugins']['has']('TodoListEditing'),_0x4961ea=!!_0x51320a['config']['get']('list.multiBlock');function _0x205899(_0x1b282e){return{'type':'format','content':''+c(_0x249b7b,'*Set\x20format:*\x20%0',_0x1b282e)};}function _0x3c8f83(_0x594079){return{'type':'format','content':''+c(_0x249b7b,'*Remove\x20format:*\x20%0',_0x594079)};}_0x463ec9['enableDefaultAttributesIntegration']('numberedList'),_0x463ec9['enableDefaultAttributesIntegration']('bulletedList'),_0x463ec9['enableDefaultAttributesIntegration']('customNumberedList'),_0x463ec9['enableDefaultAttributesIntegration']('customBulletedList'),_0x463ec9['enableDefaultAttributesIntegration']('indentList'),_0x463ec9['enableDefaultAttributesIntegration']('outdentList'),_0x463ec9['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x463ec9['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x463ec9['registerBlockAttribute']('listItemId'),_0x463ec9['registerBlockAttribute']('listType'),_0x463ec9['registerBlockAttribute']('listIndent'),_0x4961ea&&(_0x463ec9['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x463ec9['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x36cca9&&(_0x463ec9['enableDefaultAttributesIntegration']('todoList'),_0x463ec9['enableDefaultAttributesIntegration']('checkTodoList'),_0x463ec9['registerBlockAttribute']('todoListChecked'),_0x463ec9['descriptionFactory']['registerDescriptionCallback'](_0x1d5941=>{const {data:_0x1bc5e4}=_0x1d5941;if(_0x1bc5e4&&'todoListChecked'==_0x1bc5e4['key'])return{'type':'format','content':_0x1bc5e4['newValue']?c(_0x249b7b,'*Check\x20item*'):c(_0x249b7b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x506d79=>{if(_0x506d79['batch']['isUndo'])return!0x1;let _0x2cf2e4=!0x1;const _0x2e1e9f=_0x463ec9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x156659=>'todoListChecked'===_0x463ec9['_getAttributeKey'](_0x156659));for(const _0x5085b0 of _0x2e1e9f){'todo'!=_0x5085b0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x463ec9['_findSuggestions'](_0x5085b0['getFirstRange'](),'attribute')['find'](_0x46be1b=>'listType'===_0x463ec9['_getAttributeKey'](_0x46be1b['suggestion']))||(_0x506d79['removeMarker'](_0x5085b0['getFirstMarker']()),_0x2cf2e4=!0x0));}return _0x2cf2e4;})),_0x463ec9['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x249b7b,'FORMAT_INDENT'));const _0x1e3590={'type':'format','content':''};_0x463ec9['descriptionFactory']['registerDescriptionCallback'](_0x1f0189=>{const {data:_0x1c684e}=_0x1f0189;if(!_0x1c684e||'listType'!=_0x1c684e['key'])return;let _0xf96e6b=_0x1f0189['head'];for(;_0xf96e6b;){if(_0xf96e6b['data']&&(('listStyle'==_0xf96e6b['data']['key']||'listMarkerStyle'==_0xf96e6b['data']['key'])&&(_0xf96e6b['data']['newValue']&&'default'!=_0xf96e6b['data']['newValue']||'default'!=_0xf96e6b['data']['oldValue']&&!_0x1c684e['newValue'])||!_0x4961ea&&_0xf96e6b['data']['key']==u))return _0x1e3590;_0xf96e6b=_0xf96e6b['next'];}if(null==_0x1c684e['newValue'])switch(_0x1c684e['oldValue']){case'bulleted':return _0x3c8f83(c(_0x249b7b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c8f83(c(_0x249b7b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c8f83(c(_0x249b7b,'ELEMENT_TODO_LIST'));}switch(_0x1c684e['newValue']){case'bulleted':return _0x205899(c(_0x249b7b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x205899(c(_0x249b7b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x205899(c(_0x249b7b,'ELEMENT_TODO_LIST'));}}),_0x463ec9['descriptionFactory']['registerDescriptionCallback'](_0x232750=>{const {data:_0x461334}=_0x232750;if(_0x461334&&'listIndent'==_0x461334['key'])return null==_0x461334['newValue']||null==_0x461334['oldValue']&&0x0==_0x461334['newValue']?_0x1e3590:void 0x0;}),_0x463ec9['descriptionFactory']['registerDescriptionCallback'](_0x1f0b57=>{if('attribute'!=_0x1f0b57['type'])return;const {data:_0x3a4843}=_0x1f0b57;if(!_0x3a4843||'listItemId'!=_0x3a4843['key'])return;const _0x48928c=Te(_0x1f0b57);return'newValue'==_0x48928c?{'type':'format','content':c(_0x249b7b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x48928c?{'type':'format','content':c(_0x249b7b,'*Split:*\x20list\x20item')}:_0x1e3590;}),_0x51320a['model']['document']['registerPostFixer'](_0x26e947=>this['listItemIdFixer'](_0x26e947)),_0x51320a['model']['document']['registerPostFixer'](_0x7e678d=>this['noTrackChangesFixer'](_0x7e678d)),_0x51320a['model']['document']['on']('change:data',(_0x40c398,_0x402857)=>{if(_0x402857['isUndo']||!_0x402857['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x460212){if(_0x460212['batch']['isUndo']||!_0x460212['batch']['isLocal'])return!0x1;let _0x552d4e=!0x1;const _0x2e55d4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ec905=>_0x3ec905['data']&&'listItemId'==_0x3ec905['data']['key'])['filter'](_0x4f2456=>_0x4f2456['data']['newValue']&&_0x4f2456['data']['oldValue']);for(const _0x4465bb of _0x2e55d4)Te(_0x4465bb)||(_0x460212['removeMarker'](_0x4465bb['getFirstMarker']()),_0x552d4e=!0x0);return _0x552d4e;}['noTrackChangesFixer'](_0x3ea00f){if(_0x3ea00f['batch']['isUndo']||!_0x3ea00f['batch']['isLocal'])return!0x1;const _0x568211=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x568211['trackChangesCommand']['value'])return!0x1;let _0x4e27a3=!0x1;const _0xb47a8a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1e9966=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x28f3e5=>'attribute'==_0x28f3e5['type'])['filter'](_0x4fa606=>_0xb47a8a['includes'](_0x4fa606['attributeKey']));if(0x0==_0x1e9966['length'])return _0x4e27a3;for(const _0x4f7dd4 of _0x1e9966){const _0x431f50=_0x568211['_findSuggestions'](_0x4f7dd4['range'],'attribute')['filter'](_0x37528a=>!_0x37528a['meta']['isNextTo'])['map'](_0x56ba13=>_0x56ba13['suggestion'])['filter'](_0x3c1342=>{const _0x372d7e=_0x568211['_getAttributeKey'](_0x3c1342);return _0xb47a8a['includes'](_0x372d7e);});if(_0x431f50['length']){for(const _0x2975a0 of _0x431f50)_0x3ea00f['removeMarker'](_0x2975a0['getFirstMarker']());_0x4e27a3=!0x0;}}return _0x4e27a3;}['assureChains'](){const _0x131ec3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x567eb5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x19a234;const _0x3143aa=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5d652f=>{if(_0x5d652f['data']['oldRange']||!_0x5d652f['data']['newRange'])return null;if(!_0x5d652f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x13768a}=_0x131ec3['_splitMarkerName'](_0x5d652f['name']);if(!_0x131ec3['hasSuggestion'](_0x13768a))return null;const _0x4ac01d=_0x131ec3['getSuggestion'](_0x13768a);return _0x567eb5['includes'](_0x4ac01d['data']['key']);})['map'](_0xc6cd97=>{const {id:_0x3a85c2}=_0x131ec3['_splitMarkerName'](_0xc6cd97['name']),_0x15bc85=_0x131ec3['getSuggestion'](_0x3a85c2);return _0x19a234=_0x15bc85['attributes']['groupId'],_0x15bc85['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3143aa['size'])return;const _0x29d59c=_0x131ec3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x588231=>'attribute'==_0x588231['type']&&_0x588231['data']&&_0x567eb5['includes'](_0x588231['data']['key'])&&_0x588231['attributes']['groupId']!=_0x19a234)['map'](_0x5dbfc0=>({'listItem':_0x5dbfc0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5dbfc0['attributes']['groupId']})),_0x2e4ce=new Set();for(const {groupId:_0x5e5c6f,listItem:_0x2938c6}of _0x29d59c)_0x3143aa['has'](_0x2938c6)&&_0x2e4ce['add'](_0x5e5c6f);for(const _0x7efa08 of _0x131ec3['getSuggestions']())_0x2e4ce['has'](_0x7efa08['attributes']['groupId'])&&_0x7efa08['setAttribute']('groupId',_0x19a234);}['_supportLegacySuggestions'](){const _0xa344ae=this['editor'],_0x24fbf2=_0xa344ae['locale'],_0x487bf0=_0xa344ae['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x487bf0['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3a8765,_0x147bfe){const _0x4d885b=[];for(let _0x5993aa of _0x3a8765)_0x5993aa['start']['nodeAfter']===_0x5993aa['end']['parent']&&(_0x5993aa=_0xa344ae['model']['createRange'](_0xa344ae['model']['createPositionAt'](_0x5993aa['start']['nodeAfter'],0x0))),_0x4d885b['push'](_0x5993aa);_0xa344ae['model']['change'](_0x122114=>{const _0x58830a=_0xa344ae['model']['document']['selection'],_0x67f8d2=Array['from'](_0x58830a['getRanges']())['map'](_0x4d6662=>_0x6b53b6['fromRange'](_0x4d6662));_0x122114['setSelection'](_0x4d885b),_0xa344ae['commands']['get'](_0x147bfe['commandName'])['refresh'](),_0x147bfe['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xa344ae['execute'](_0x147bfe['commandName'],..._0x147bfe['commandParams']),_0x122114['setSelection'](_0x67f8d2);for(const _0x251f6a of _0x67f8d2)_0x251f6a['detach']();});}),_0x487bf0['descriptionFactory']['registerElementLabel'](function(_0x491474){const _0x51fe30=!_0xa344ae['model']['schema']['isObject'](_0x491474),_0xfc517a=_0x491474['previousSibling'],_0x4eb874=_0x491474['nextSibling'],_0x2ca5f3=_0x491474['getAttribute']('listItemId'),_0x547167=!_0xfc517a||_0xfc517a['getAttribute']('listItemId')!==_0x2ca5f3,_0x447cb1=!_0x4eb874||_0x4eb874['getAttribute']('listItemId')!==_0x2ca5f3;return _0x51fe30&&Boolean(_0x2ca5f3)&&_0x547167&&_0x447cb1;},_0x4b9562=>c(_0x24fbf2,'ELEMENT_LIST_ITEM',_0x4b9562));}['_registerLegacyDescription'](){const _0x1d7802=this['editor'],_0x51d5db=_0x1d7802['locale'];function _0x2f621e(_0x41d96f){const _0x10a3ad=_0x1d7802['commands']['get']('bulletedList')['value'],_0x5385ba=_0x1d7802['commands']['get']('numberedList')['value'];return'numberedList'===_0x41d96f?_0x10a3ad:_0x5385ba;}_0x1d7802['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3f8c01){if('formatBlock'!=_0x3f8c01['type'])return;const {data:_0x42c00c}=_0x3f8c01;if(!_0x42c00c)return;let _0x54145e,_0x2cede8,_0x125f50,_0x5650e8;switch(_0x42c00c['commandName']){case'bulletedList':_0x125f50=_0x42c00c['commandParams'][0x0]['forceValue'],_0x5650e8=_0x2f621e(_0x42c00c['commandName']),_0x54145e=_0x125f50?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5650e8&&_0x1d7802['config']['get']('list.multiBlock')||(_0x54145e='*Change\x20to:*\x20%0'),_0x2cede8={'type':'format','content':c(_0x51d5db,_0x54145e,c(_0x51d5db,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x125f50=_0x42c00c['commandParams'][0x0]['forceValue'],_0x5650e8=_0x2f621e(_0x42c00c['commandName']),_0x54145e=_0x125f50?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5650e8&&_0x1d7802['config']['get']('list.multiBlock')||(_0x54145e='*Change\x20to:*\x20%0'),_0x2cede8={'type':'format','content':c(_0x51d5db,_0x54145e,c(_0x51d5db,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x54145e='*Indent:*\x20%0',_0x2cede8={'type':'format','content':c(_0x51d5db,_0x54145e,c(_0x51d5db,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x54145e=function(_0x3abb90){const _0x56892a=_0x3abb90['getFirstRange']();let _0x4a003e=_0x56892a['start']['nodeAfter'];for(;_0x4a003e&&_0x56892a['containsItem'](_0x4a003e);){if(_0x4a003e['getAttribute']('listIndent')>0x0)return!0x1;_0x4a003e=_0x4a003e['nextSibling'];}return!0x0;}(_0x3f8c01)?c(_0x51d5db,'*Format:*\x20remove\x20from\x20%0',c(_0x51d5db,function(_0x25558a){return'ELEMENT_'+_0x25558a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3f8c01))):c(_0x51d5db,'*Outdent:*\x20%0',c(_0x51d5db,'ELEMENT_LIST_ITEM')),_0x2cede8={'type':'format','content':_0x54145e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x42c00c['multipleBlocks']&&(_0x54145e='*Merge:*\x20%0',_0x2cede8={'type':'deletion','content':c(_0x51d5db,_0x54145e,c(_0x51d5db,'ELEMENT_LIST_ITEM'))});}return _0x2cede8;});}}function Te(_0x2ee48d){let _0x27a74f=_0x2ee48d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x27a74f;){const _0x4ccc55=_0x27a74f['getAttribute']('listItemId');if(!_0x4ccc55)return!0x1;if(_0x4ccc55==_0x2ee48d['data']['newValue'])return'newValue';if(_0x4ccc55==_0x2ee48d['data']['oldValue'])return'oldValue';_0x27a74f=_0x27a74f['previousSibling'];}return!0x1;}class Se extends _0x54e516{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x58fe5a=this['editor']['config']['get']('list.properties'),_0xb174b1=this['editor']['plugins']['get']('TrackChangesEditing');_0x58fe5a['styles']&&(_0xb174b1['enableDefaultAttributesIntegration']('listStyle'),_0xb174b1['registerBlockAttribute']('listStyle')),_0x58fe5a['reversed']&&(_0xb174b1['enableDefaultAttributesIntegration']('listReversed'),_0xb174b1['registerBlockAttribute']('listReversed')),_0x58fe5a['startIndex']&&(_0xb174b1['enableDefaultAttributesIntegration']('listStart'),_0xb174b1['registerBlockAttribute']('listStart'));const _0x19822e={'type':'format','content':''};_0xb174b1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x229fa4=this['editor']['locale'];_0xb174b1['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x229fa4,'FORMAT_LIST_REVERSED')),_0xb174b1['descriptionFactory']['registerDescriptionCallback'](_0x1b7514=>{const {data:_0x2fbd86}=_0x1b7514;if(_0x2fbd86&&'listReversed'==_0x2fbd86['key'])return null==_0x2fbd86['newValue']||0x0==_0x2fbd86['newValue']&&null==_0x2fbd86['oldValue']?_0x19822e:void 0x0;}),_0xb174b1['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x229fa4,'FORMAT_LIST_START')),_0xb174b1['descriptionFactory']['registerDescriptionCallback'](_0xd167dd=>{const {data:_0x200840}=_0xd167dd;if(_0x200840&&'listStart'==_0x200840['key'])return null==_0x200840['newValue']||0x1==_0x200840['newValue']&&null==_0x200840['oldValue']?_0x19822e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x54823e=>{if(_0x54823e['batch']['isUndo'])return!0x1;let _0x88c17=!0x1;const _0x315b7c=_0xb174b1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f82b8=>{const _0x38183c=_0xb174b1['_getAttributeKey'](_0x4f82b8);return'listStart'==_0x38183c||'listReversed'==_0x38183c;});for(const _0xb75c23 of _0x315b7c){const _0x3d39d8=_0xb75c23['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3d39d8||'customNumbered'==_0x3d39d8)continue;_0xb174b1['_findSuggestions'](_0xb75c23['getFirstRange'](),'attribute')['find'](_0x25d09d=>'listType'==_0xb174b1['_getAttributeKey'](_0x25d09d['suggestion']))||(_0x54823e['removeMarker'](_0xb75c23['getFirstMarker']()),_0x88c17=!0x0);}return _0x88c17;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x540d0d){const _0x4ad1ec=this['editor']['locale'],{data:_0x2592ac}=_0x540d0d,_0xb9c62={'type':'format','content':''};if(!_0x2592ac||'listStyle'!=_0x2592ac['key'])return;if(!_0x2592ac['oldValue'])return'default'==_0x2592ac['newValue']?_0xb9c62:{'type':'format','content':''+c(_0x4ad1ec,'*Set\x20format:*\x20%0',c(_0x4ad1ec,this['_getTranslationKeyForListStyle'](_0x2592ac['newValue'])))};if(!_0x2592ac['newValue']){if('default'==_0x2592ac['oldValue'])return _0xb9c62;let _0x589e2a=_0x540d0d['head'];for(;_0x589e2a;){if(_0x589e2a['data']&&'listType'==_0x589e2a['data']['key']&&_0x589e2a['data']['newValue'])return _0xb9c62;_0x589e2a=_0x589e2a['next'];}return{'type':'format','content':''+c(_0x4ad1ec,'*Remove\x20format:*\x20%0',c(_0x4ad1ec,this['_getTranslationKeyForListStyle'](_0x2592ac['oldValue'])))};}if('default'!=_0x2592ac['newValue'])return{'type':'format','content':''+c(_0x4ad1ec,'*Set\x20format:*\x20%0',c(_0x4ad1ec,this['_getTranslationKeyForListStyle'](_0x2592ac['newValue'])))};let _0x51de1f=_0x540d0d['head'];for(;_0x51de1f;){if(_0x51de1f['data']&&'listType'==_0x51de1f['data']['key']&&_0x51de1f['data']['newValue']&&_0x51de1f['data']['oldValue'])return _0xb9c62;_0x51de1f=_0x51de1f['next'];}return{'type':'format','content':c(_0x4ad1ec,'*Set\x20format:*\x20%0',c(_0x4ad1ec,'ELEMENT_'+_0x540d0d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x328ffd=this['editor'],_0x4bed79=_0x328ffd['locale'];_0x328ffd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48b06b=>{if('formatBlock'!=_0x48b06b['type'])return;const {data:_0x30531b}=_0x48b06b;if(!_0x30531b)return;let _0x45fbf8,_0xfe63e7;switch(_0x30531b['commandName']){case'listStyle':_0x45fbf8='*Change\x20to:*\x20%0',_0xfe63e7={'type':'format','content':c(_0x4bed79,_0x45fbf8,c(_0x4bed79,this['_getTranslationKeyForListStyle'](_0x30531b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x45fbf8=_0x30531b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xfe63e7={'type':'format','content':c(_0x4bed79,_0x45fbf8)};break;case'listStart':_0x45fbf8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xfe63e7={'type':'format','content':c(_0x4bed79,_0x45fbf8,_0x30531b['commandParams'][0x0]['startIndex'])};}return _0xfe63e7;});}['_getTranslationKeyForListStyle'](_0x1ce6da){return'ELEMENT_'+function(_0xbec727){if(_e['includes'](_0xbec727))return'bulleted';if(Re['includes'](_0xbec727))return'numbered';return null;}(_0x1ce6da)['toUpperCase']()+'_LIST_'+_0x1ce6da['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x54e516{['afterInit'](){const _0x4f0808=this['editor'];_0x4f0808['commands']['get']('emoji')&&_0x4f0808['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x54e516{static get['requires'](){return[_0x188e6c];}['init'](){const _0x5d67e8=this['editor'],_0x4af2b1=_0x5d67e8['plugins']['get']('TrackChangesEditing'),_0x4d1dc2=_0x5d67e8['commands']['get']('enter');_0x4af2b1['enableCommand']('enter',()=>{_0x5d67e8['model']['change'](_0x59a6aa=>{const _0x30f200=_0x5d67e8['model']['document']['selection'],_0x49b0ab=_0x30f200['getFirstPosition'](),_0x52aa46=_0x6b53b6['fromRange'](_0x30f200['getFirstRange']());if(_0x4d1dc2['enterBlock'](_0x59a6aa)){const _0x3f6c34=_0x5d67e8['model']['createPositionAt'](_0x49b0ab['parent']['nextSibling'],0x0),_0x15891a=_0x59a6aa['createRange'](_0x49b0ab,_0x3f6c34);_0x4af2b1['markInsertion'](_0x15891a);}else _0x59a6aa['setSelection'](_0x59a6aa['createRange'](_0x52aa46['end']));_0x52aa46['detach'](),_0x4d1dc2['fire']('afterExecute',{'writer':_0x59a6aa});});}),_0x5d67e8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x5d67e8,'split'),{'priority':'high'}),_0x5d67e8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x340f7a,_0x116936,_0x2a4f59)=>{const _0x5972ea=_0x2a4f59['mapper']['markerNameToElements'](_0x116936['markerName']);if(_0x5972ea){for(const _0x658fcc of _0x5972ea)_0x658fcc['hasClass']('ck-suggestion-marker-split')&&(_0x2a4f59['mapper']['unbindElementFromMarkerName'](_0x658fcc,_0x116936['markerName']),_0x2a4f59['writer']['remove'](_0x658fcc));}},{'priority':'high'}),_0x5d67e8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x390ca0,_0x3896d1,_0x52ee20)=>{_0x52ee20['options']['showSuggestionHighlights']&&De(_0x5d67e8,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x390ca0,_0x3896d1,_0x52ee20);},{'priority':'high'});}}class Z extends _0x54e516{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3d9ceb=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d9ceb['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3d9ceb['enableCommand']('findNext'),_0x3d9ceb['enableCommand']('findPrevious'),_0x3d9ceb['enableCommand']('replace'),_0x3d9ceb['enableCommand']('replaceAll');}['handleFindCommand'](_0x377ba4,_0x2ce9dd,_0x2b6d3b={}){const _0x1fda50=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x377ba4(_0x14113d=>{let _0x5e0eb1=('string'==typeof _0x2ce9dd?_0x1fda50['findByTextCallback'](_0x2ce9dd,_0x2b6d3b):_0x2ce9dd)(_0x14113d);Array['isArray'](_0x5e0eb1)&&(_0x5e0eb1={'results':_0x5e0eb1,'searchText':'string'==typeof _0x2ce9dd?_0x2ce9dd:''});const _0x41b709=_0x5e0eb1['results']['filter'](_0x20f875=>!0x1===this['_isInDeletionRange'](_0x20f875,_0x14113d['item']));return{..._0x5e0eb1,'results':_0x41b709};},_0x2b6d3b);}['_isInDeletionRange'](_0x2a4276,_0x24b92c){const _0x50012e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24b92c,_0x2a4276['start']),this['editor']['model']['createPositionAt'](_0x24b92c,_0x2a4276['end']));for(const _0x50f012 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x50012e['getIntersection'](_0x50f012['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x54e516{['afterInit'](){const _0x439ad8=this['editor']['locale'],_0x2a18ee=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xf22c72,commandName:_0x314c97}of eo)this['editor']['plugins']['has'](_0xf22c72)&&(_0x2a18ee['enableDefaultAttributesIntegration'](_0x314c97),_0x2a18ee['registerInlineAttribute'](_0x314c97));_0x2a18ee['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x439ad8,'FORMAT_FONT_SIZE')),_0x2a18ee['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x439ad8,'FORMAT_FONT_FAMILY')),_0x2a18ee['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x439ad8,'FORMAT_FONT_COLOR')),_0x2a18ee['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x439ad8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b1bb8=this['editor'],_0x3e296f=_0x4b1bb8['locale'];_0x4b1bb8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x348e56=>{const _0x274b50=_0x3e296f['t'];if('formatInline'!=_0x348e56['type'])return;const {data:_0x2ca4f6}=_0x348e56;if(null!=_0x2ca4f6){if('fontSize'==_0x2ca4f6['commandName']){const _0x136aa3=_0x2ca4f6['commandParams'][0x0]['value'];if(_0x136aa3){const _0x2ae783=_0x274b50(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2f520e=>_0x2f520e['model']==_0x136aa3)['title'])['toLowerCase']();return{'type':'format','content':c(_0x3e296f,'*Set\x20font\x20size:*\x20%0',_0x2ae783)};}return{'type':'format','content':c(_0x3e296f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2ca4f6['commandName']){const _0x42fa0f=_0x2ca4f6['commandParams'][0x0]['value'];return _0x42fa0f?{'type':'format','content':c(_0x3e296f,'*Set\x20font\x20family:*\x20%0',_0x42fa0f)}:{'type':'format','content':c(_0x3e296f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2ca4f6['commandName']){const _0x43b5a2=_0x2ca4f6['commandParams'][0x0]['value'];if(_0x43b5a2){const _0x332f61=_0x1f08af(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5196ff=>_0x5196ff['model']==_0x43b5a2);let _0x416a01=_0x43b5a2,_0x37b5b8='';return _0x332f61&&(_0x416a01=_0x332f61['label'],_0x37b5b8=_0x274b50(_0x416a01)['toLowerCase']()),{'type':'format','content':c(_0x3e296f,'*Set\x20font\x20color:*\x20%0',_0x37b5b8)['trim'](),'color':{'value':_0x43b5a2,'title':_0x37b5b8||_0x416a01}};}return{'type':'format','content':c(_0x3e296f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2ca4f6['commandName']){const _0x3375c0=_0x2ca4f6['commandParams'][0x0]['value'];if(_0x3375c0){const _0xe46e00=_0x1f08af(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5b9f5c=>_0x5b9f5c['model']==_0x3375c0);let _0x2d90f8=_0x3375c0,_0x520cd6='';return _0xe46e00&&(_0x2d90f8=_0xe46e00['label'],_0x520cd6=_0x274b50(_0x2d90f8)['toLowerCase']()),{'type':'format','content':c(_0x3e296f,'*Set\x20font\x20background\x20color:*\x20%0',_0x520cd6)['trim'](),'color':{'value':_0x3375c0,'title':_0x520cd6||_0x2d90f8}};}return{'type':'format','content':c(_0x3e296f,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x54e516{['afterInit'](){const _0x2b261b=this['editor'],_0x2df8c2=_0x2b261b['plugins']['get']('TrackChangesEditing'),_0x1d258d=_0x2b261b['commands']['get']('copyFormat'),_0xcc9435=_0x2b261b['commands']['get']('pasteFormat');_0x1d258d&&_0xcc9435&&(_0x2df8c2['enableDefaultAttributesIntegration']('pasteFormat'),_0x2df8c2['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x130bc9=this['editor'],_0x18f523=_0x130bc9['locale'];_0x130bc9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49612c=>{if('formatBlock'!=_0x49612c['type']&&'formatInline'!=_0x49612c['type'])return;const {data:_0xd449eb}=_0x49612c;if(_0xd449eb&&'pasteFormat'===_0xd449eb['commandName']){const _0xe55b59=[],_0x49a1d5=_0xd449eb['commandParams'][0x0];for(const [_0x29697e,_0x3b9588]of Object['entries'](_0x49a1d5))_0xe55b59['push'](ro(_0x130bc9,_0x29697e,_0x3b9588));return _0xe55b59['length']?{'type':'format','content':c(_0x18f523,'*Set\x20format\x20to:*\x20%0',_0xe55b59['join'](',\x20'))}:{'type':'format','content':c(_0x18f523,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3a4ddf,_0x45e11b,_0x1d29e3){const _0x47344a=_0x3a4ddf['locale']['t'],_0xf29f4b=_0x45e11b['split'](/(?=[A-Z])/)['join']('\x20'),_0x3dcac7=_0x47344a(_0xf29f4b['charAt'](0x0)['toUpperCase']()+_0xf29f4b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1d29e3)return _0x3dcac7;if('fontColor'===_0x45e11b||'fontBackgroundColor'===_0x45e11b){const _0x59dad3=_0x1f08af(_0x3a4ddf['config']['get']('fontColor.colors'))['find'](_0x12c41a=>_0x12c41a['model']==_0x1d29e3);return _0x3dcac7+'\x20('+(_0x59dad3?_0x47344a(_0x59dad3['label'])['toLowerCase']():_0x1d29e3)+')';}if('fontSize'===_0x45e11b&&isNaN(parseFloat(_0x1d29e3))){const _0x48714b=_0x3a4ddf['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3a4ddf['config']['get']('fontSize.options'))['find'](_0x139e68=>_0x139e68['model']==_0x1d29e3);return _0x3dcac7+'\x20('+(_0x48714b?_0x47344a(_0x48714b['title'])['toLowerCase']():_0x1d29e3)+')';}return _0x3dcac7+'\x20('+_0x1d29e3+')';}class nt extends _0x54e516{['_headingOptions'];['afterInit'](){const _0x4e1cd9=this['editor'];if(!_0x4e1cd9['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4e1cd9['config']['get']('heading.options');const _0x2a54d7=_0x4e1cd9['locale'],_0x335325=_0x4e1cd9['plugins']['get']('TrackChangesEditing');_0x335325['enableDefaultAttributesIntegration']('heading');for(const _0x17f254 of this['_headingOptions'])'paragraph'!=_0x17f254['model']&&_0x335325['descriptionFactory']['registerElementLabel'](_0x17f254['model'],_0x294671=>{const _0x134ee3=this['_getHeadingLevel'](_0x17f254['model']);return null!==_0x134ee3?_0x1ee86e(_0x294671,_0x134ee3):_0x423a8b(_0x294671,_0x17f254['title']);});function _0x1ee86e(_0x20a719,_0x299e98){return c(_0x2a54d7,'ELEMENT_HEADING',[_0x20a719,_0x299e98]);}function _0x423a8b(_0x2b1a2c,_0xd02ea4){return c(_0x2a54d7,'ELEMENT_HEADING_CUSTOM',[_0x2b1a2c,_0xd02ea4]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20f6c7=this['editor'],_0x2cea5a=_0x20f6c7['locale'];function _0x325fcd(_0x29b94b,_0x515b18){return c(_0x2cea5a,'ELEMENT_HEADING_CUSTOM',[_0x29b94b,_0x515b18]);}_0x20f6c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178c73=>{if('formatBlock'!=_0x178c73['type'])return;const {data:_0xd3e04b}=_0x178c73;if(_0xd3e04b&&'heading'==_0xd3e04b['commandName']){const _0x3d4079=_0xd3e04b['commandParams'][0x0]['value'],_0x1061e9=this['_getHeadingLevel'](_0x3d4079);if(null!==_0x1061e9)return{'type':'format','content':c(_0x2cea5a,'*Change\x20to:*\x20%0',(_0x3cb013=0x1,_0x11bea7=_0x1061e9,c(_0x2cea5a,'ELEMENT_HEADING',[_0x3cb013,_0x11bea7])))};const _0x50de85=this['_headingOptions']['find'](_0x3e71f9=>_0x3e71f9['model']===_0x3d4079)['title'];return{'type':'format','content':c(_0x2cea5a,'*Change\x20to:*\x20%0',_0x325fcd(0x1,_0x50de85))};}var _0x3cb013,_0x11bea7;});}['_getHeadingLevel'](_0x4a636b){const _0x3a7f99=_0x4a636b['match'](/^heading(\d+)/);if(_0x3a7f99)return _0x3a7f99[0x1];const _0x1d12d3=this['_headingOptions']?.['find'](_0x2dceea=>_0x2dceea['model']==_0x4a636b);if(_0x1d12d3&&_0x1d12d3['view']){const _0x208ded=_0x1d12d3['view'],_0x5c76ab=(_0x208ded['name']??_0x208ded)['match'](/^h(\d+)/);if(_0x5c76ab)return _0x5c76ab[0x1];}return null;}}class it extends _0x54e516{['afterInit'](){const _0x4b9431=this['editor'];if(!_0x4b9431['plugins']['has']('HighlightEditing'))return;const _0x5379cd=_0x4b9431['plugins']['get']('TrackChangesEditing'),_0x553f8c=_0x4b9431['locale'];_0x5379cd['enableDefaultAttributesIntegration']('highlight'),_0x5379cd['registerInlineAttribute']('highlight'),_0x5379cd['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x553f8c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ccf72=this['editor'],_0x19b130=_0x2ccf72['locale'];_0x2ccf72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4741f5=>{if('formatInline'!=_0x4741f5['type'])return;const {data:_0x29abfd}=_0x4741f5;if(_0x29abfd&&'highlight'==_0x29abfd['commandName']){const _0x36bdd0=_0x19b130['t'],_0x109dcd=_0x29abfd['commandParams'][0x0]['value'];if(_0x109dcd){const _0x5a206a=_0x2ccf72['config']['get']('highlight.options')['find'](_0x34c732=>_0x34c732['model']==_0x109dcd),_0x3198f0=_0x36bdd0(_0x5a206a['title'])['toLowerCase']();return{'type':'format','content':c(_0x19b130,'*Set\x20highlight:*\x20%0',_0x3198f0),'color':{'value':_0x5a206a['color'],'title':_0x5a206a['title']}};}return{'type':'format','content':c(_0x19b130,'*Remove\x20highlight*',c(_0x19b130,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x54e516{['afterInit'](){const _0x1346f5=this['editor'];if(!_0x1346f5['plugins']['has']('HorizontalLineEditing'))return;_0x1346f5['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5ec215=_0x1346f5['plugins']['get']('TrackChangesEditing'),_0x473541=_0x1346f5['locale'];_0x5ec215['descriptionFactory']['registerElementLabel']('horizontalLine',_0x932b7f=>c(_0x473541,'ELEMENT_HORIZONTAL_LINE',_0x932b7f)),_0x1346f5['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4dd9db,{writer:_0x1eb596,options:_0x4fcc0b})=>{if(!_0x4fcc0b['showSuggestionHighlights'])return null;const _0x4cc111=_0x1eb596['createContainerElement']('div'),_0x3a4b40=_0x1eb596['createEmptyElement']('hr');return _0x1eb596['addClass']('ck-horizontal-line',_0x4cc111),_0x1eb596['insert'](_0x1eb596['createPositionAt'](_0x4cc111,0x0),_0x3a4b40),_0x4cc111;},'converterPriority':'high'});}}class ot extends _0x54e516{['afterInit'](){const _0x445d07=this['editor'];if(!_0x445d07['plugins']['has']('HtmlEmbed'))return;const _0x479464=_0x445d07['plugins']['get']('TrackChangesEditing'),_0x589d62=_0x445d07['locale'];_0x479464['descriptionFactory']['registerElementLabel']('rawHtml',_0x4124a5=>c(_0x589d62,'ELEMENT_HTML_EMBED',_0x4124a5)),_0x479464['enableDefaultAttributesIntegration']('htmlEmbed'),_0x479464['registerBlockAttribute']('value'),_0x479464['descriptionFactory']['registerDescriptionCallback'](_0x4a361d=>{if('attribute'!=_0x4a361d['type'])return;const {data:_0x2ee5a5}=_0x4a361d;if(_0x2ee5a5&&'value'==_0x2ee5a5['key']&&_0x4a361d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xa547b6=c(_0x589d62,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x589d62,'*Change\x20%0\x20content*',_0xa547b6)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56e3ba=this['editor'],_0x37a2bf=_0x56e3ba['locale'];_0x56e3ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54b2b9=>{if('formatBlock'!=_0x54b2b9['type'])return;const {data:_0x568d2f}=_0x54b2b9;if(_0x568d2f&&'htmlEmbed'==_0x568d2f['commandName']){const _0x5c2b97=c(_0x37a2bf,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x37a2bf,'*Change\x20%0\x20content*',_0x5c2b97)};}});}}class rt extends _0x54e516{['afterInit'](){const _0x50b853=this['editor'];if(!_0x50b853['plugins']['has']('ImageEditing'))return;const _0x1b4885=_0x50b853['plugins']['get']('TrackChangesEditing'),_0x2c0f96=_0x50b853['plugins']['get']('ImageUtils'),_0xec6e6f=_0x50b853['locale'];_0x1b4885['enableCommand']('insertImage'),_0x1b4885['descriptionFactory']['registerElementLabel']('imageBlock',_0xe117a3=>c(_0xec6e6f,'ELEMENT_IMAGE',_0xe117a3)),_0x1b4885['descriptionFactory']['registerElementLabel']('imageInline',_0x3b99f7=>c(_0xec6e6f,'ELEMENT_INLINE_IMAGE',_0x3b99f7)),_0x1b4885['descriptionFactory']['registerElementLabel']('caption',()=>c(_0xec6e6f,'ELEMENT_CAPTION')),_0x50b853['plugins']['has']('ImageUploadEditing')&&_0x1b4885['enableCommand']('uploadImage'),_0x50b853['plugins']['has']('ImageBlockEditing')&&_0x50b853['plugins']['has']('ImageInlineEditing')&&(_0x1b4885['enableCommand']('imageTypeInline',(_0x2a1f49,_0x209f78)=>{const _0x53b23c=_0x2c0f96['getClosestSelectedImageElement'](_0x50b853['model']['document']['selection']);_0x50b853['model']['change'](()=>{_0x1b4885['markBlockFormat'](_0x53b23c,{'commandName':'imageTypeInline','commandParams':[_0x209f78]},[],'convertBlockImageToInline');});}),_0x1b4885['enableCommand']('imageTypeBlock',(_0xbe2552,_0x5b4523)=>{_0x50b853['model']['change'](_0x58b183=>{let _0x2d4b85=_0x2c0f96['getClosestSelectedImageElement'](_0x50b853['model']['document']['selection']),_0x6d213=_0x58b183['createRangeOn'](_0x2d4b85);const _0x37fab1=_0x5f2a4a['fromPosition'](_0x6d213['start'],'toPrevious'),_0x5943fe=_0x5f2a4a['fromPosition'](_0x6d213['end'],'toNext');_0x1b4885['forceDefaultExecution'](()=>_0xbe2552(_0x5b4523)),_0x2d4b85=_0x2c0f96['getClosestSelectedImageElement'](_0x50b853['model']['document']['selection']),_0x6d213=_0x58b183['createRangeOn'](_0x2d4b85);const _0x4cc52d=_0x58b183['createRange'](_0x37fab1,_0x5943fe);_0x37fab1['detach'](),_0x5943fe['detach'](),_0x1b4885['markBlockFormat'](_0x2d4b85,{'commandName':'imageTypeInline','commandParams':[_0x5b4523]},[],'convertInlineImageToBlock'),_0x4cc52d['start']['isBefore'](_0x6d213['start'])&&_0x1b4885['markInsertion'](_0x58b183['createRange'](_0x4cc52d['start'],_0x6d213['start']),'convertInlineImageToBlock'),_0x6d213['end']['isBefore'](_0x4cc52d['end'])&&_0x1b4885['markInsertion'](_0x58b183['createRange'](_0x6d213['end'],_0x4cc52d['end']),'convertInlineImageToBlock');});}),_0x1b4885['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1b4885['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1b4885['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1b4885['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1b4885['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1b4885['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5dd896])=>{const _0x38d622=_0x1b4885['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x59294d=_0x5dd896['start'],_0x1077a2=_0x5dd896['end'];const _0x51e011=_0x50b853['model']['schema']['getNearestSelectionRange'](_0x59294d,'backward'),_0x43888b=_0x50b853['model']['schema']['getNearestSelectionRange'](_0x1077a2,'forward');_0x51e011['isCollapsed']&&(_0x59294d=_0x51e011['start']),_0x43888b['isCollapsed']&&(_0x1077a2=_0x43888b['end']),_0x38d622([_0x50b853['model']['createRange'](_0x59294d,_0x1077a2)]);}),_0x1b4885['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1784b8),_0x1b4885['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1784b8)),_0x50b853['plugins']['has']('ImageCaptionEditing')&&(_0x1b4885['enableCommand']('toggleImageCaption',(_0xd66e9d,_0x478354)=>{const _0x1bd7dc=_0x50b853['plugins']['get']('ImageCaptionUtils');let _0x4e292d=_0x2c0f96['getClosestSelectedImageElement'](_0x50b853['model']['document']['selection']),_0x52ded6=_0x1bd7dc['getCaptionFromImageModelElement'](_0x4e292d);_0x50b853['model']['change'](()=>{if(_0x52ded6)return void _0x1b4885['markDeletion'](_0x50b853['model']['createRangeOn'](_0x52ded6));const _0x47b6f6=_0x2c0f96['isBlockImage'](_0x4e292d);_0xd66e9d(_0x478354),_0x4e292d=_0x2c0f96['getClosestSelectedImageElement'](_0x50b853['model']['document']['selection']),_0x52ded6=_0x1bd7dc['getCaptionFromImageModelElement'](_0x4e292d),_0x1b4885['markInsertion'](_0x50b853['model']['createRangeOn'](_0x52ded6),_0x47b6f6?null:'imageCaption');});}),_0x1b4885['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1784b8));const _0xe0b9a5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x435095(_0x58b1ee,_0x5346d2){const _0x57381a=_0xe0b9a5['findIndex'](({type:_0x45fe3c,subType:_0x3accb2})=>_0x58b1ee['type']==_0x45fe3c&&_0x58b1ee['subType']==_0x3accb2),_0x74494f=_0xe0b9a5['findIndex'](({type:_0x4a58f2,subType:_0x10f4a3})=>_0x5346d2['type']==_0x4a58f2&&_0x5346d2['subType']==_0x10f4a3);if(_0x57381a<0x0||_0x74494f<0x0)return!0x1;const _0x383ff5=_0x58b1ee['getFirstRange'](),_0x1eced9=_0x5346d2['getFirstRange']();if((0x0==_0x57381a||0x1==_0x57381a)&&0x2==_0x74494f&&_0x383ff5['isIntersecting'](_0x1eced9))return!0x0;if(0x2==_0x57381a&&0x3==_0x74494f){const _0x47f0c9=_0x1b4885['_findSuggestions'](_0x383ff5,'insertion')['filter'](({suggestion:_0x398807,meta:_0x2a2802})=>_0x2a2802['isOwn']&&'convertInlineImageToBlock'==_0x398807['subType']);if(_0x47f0c9['length']>0x1&&_0x1eced9['end']['isEqual'](_0x383ff5['start']))return!0x0;if(0x1==_0x47f0c9['length']&&(_0x383ff5['start']['isEqual'](_0x1eced9['end'])||_0x383ff5['end']['isEqual'](_0x1eced9['start'])))return!0x0;}if(0x3==_0x57381a&&0x3==_0x74494f&&_0x383ff5['start']['isBefore'](_0x1eced9['start'])){const _0x2140c5=_0x383ff5['end']['nodeAfter'],_0x3c6c63=_0x1eced9['start']['nodeBefore'];return _0x2c0f96['isBlockImage'](_0x2140c5)&&_0x2140c5===_0x3c6c63;}return!0x1;}function _0x1784b8(_0x3d7d27,_0x14078d){return _0x435095(_0x3d7d27,_0x14078d)?[_0x3d7d27,_0x14078d]:_0x435095(_0x14078d,_0x3d7d27)?[_0x14078d,_0x3d7d27]:null;}_0x50b853['plugins']['has']('ImageResize')&&(_0x1b4885['enableDefaultAttributesIntegration']('resizeImage'),_0x1b4885['registerBlockAttribute']('resizedWidth'),_0x1b4885['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0xec6e6f,'FORMAT_IMAGE_SIZE'))),_0x50b853['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1b4885['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1b4885['registerBlockAttribute']('alt')),_0x50b853['plugins']['has']('PictureEditing')&&(_0x1b4885['registerBlockAttribute']('sources'),_0x1b4885['descriptionFactory']['registerDescriptionCallback'](_0x1cc340=>{if('attribute'!=_0x1cc340['type'])return;const {data:_0x5cbd6e}=_0x1cc340;return _0x5cbd6e&&'sources'==_0x5cbd6e['key']?{'type':'format','content':''}:void 0x0;})),_0x50b853['plugins']['has']('ImageSizeAttributes')&&(_0x1b4885['registerBlockAttribute']('width'),_0x1b4885['registerBlockAttribute']('height'),_0x1b4885['descriptionFactory']['registerDescriptionCallback'](_0x35203a=>{if('attribute'!=_0x35203a['type'])return;const {data:_0x91d6c6}=_0x35203a;return!_0x91d6c6||'width'!=_0x91d6c6['key']&&'height'!=_0x91d6c6['key']?void 0x0:{'type':'format','content':''};})),_0x1b4885['descriptionFactory']['registerDescriptionCallback'](_0x53a08c=>{if(!!_0xe0b9a5['find'](({type:_0x5973fa,subType:_0x56c994})=>_0x53a08c['type']==_0x5973fa&&_0x53a08c['subType']==_0x56c994))return _0x53a08c['previous']?{}:void 0x0;}),_0x1b4885['descriptionFactory']['registerDescriptionCallback'](_0x731ce1=>{if('insertion'==_0x731ce1['type']||'deletion'==_0x731ce1['type']){const _0x3d7fc0=_0x731ce1['getContainedElement']();if(_0x3d7fc0&&_0x3d7fc0['is']('element','caption'))return{'type':'insertion'==_0x731ce1['type']?'addObject':'removeObject','element':_0x3d7fc0,'quantity':0x1};}}),_0x1b4885['descriptionFactory']['registerDescriptionCallback'](_0x1ac9d4=>'formatBlock'==_0x1ac9d4['type']&&'convertInlineImageToBlock'==_0x1ac9d4['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1ac9d4['type']&&'convertBlockImageToInline'==_0x1ac9d4['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1b4885['descriptionFactory']['registerDescriptionCallback'](_0x5d8f14=>{if('attribute'!=_0x5d8f14['type'])return;const {data:_0x552a8c}=_0x5d8f14;if(!_0x552a8c||'alt'!=_0x552a8c['key'])return;const _0x4348f0=_0x552a8c['newValue'];return _0x4348f0?{'type':'format','content':c(_0xec6e6f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4348f0+'\x22')}:{'type':'format','content':c(_0xec6e6f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5deea2=this['editor'],_0x46b111=_0x5deea2['locale'];_0x5deea2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e4698=>{if('formatBlock'!=_0x5e4698['type']&&'formatInline'!=_0x5e4698['type'])return;const {data:_0x4b8706}=_0x5e4698;if(_0x4b8706){if('imageTextAlternative'==_0x4b8706['commandName']){const _0x1366c2=_0x4b8706['commandParams'][0x0]['newValue'];return _0x1366c2?{'type':'format','content':c(_0x46b111,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1366c2+'\x22')}:{'type':'format','content':c(_0x46b111,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4b8706['commandName']){const _0x26e7c3=_0x4b8706['commandParams'][0x0]['width'];return _0x26e7c3?{'type':'format','content':c(_0x46b111,'*Set\x20image\x20width:*\x20%0',_0x26e7c3)}:{'type':'format','content':c(_0x46b111,'*Reset\x20image\x20width*')};}}});}}class at extends _0x54e516{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x7da5d5=this['editor']['locale'],_0x1545ac=this['editor']['plugins']['get']('TrackChangesEditing');_0x1545ac['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1545ac['registerBlockAttribute']('src'),_0x1545ac['descriptionFactory']['registerDescriptionCallback'](_0xa11b84=>{if('attribute'!=_0xa11b84['type'])return;const {data:_0xe0ca60}=_0xa11b84;return _0xe0ca60&&'src'==_0xe0ca60['key']?_0xe0ca60['newValue']&&_0xe0ca60['oldValue']?{'type':'format','content':c(_0x7da5d5,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1d7f65=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d7f65['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1d7f65['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1d7f65['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1d7f65['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36f852=this['editor'],_0x175362=_0x36f852['locale'];_0x36f852['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x124387=>{if('formatBlock'!=_0x124387['type']&&'formatInline'!=_0x124387['type'])return;const {data:_0x3b2603}=_0x124387;if(!_0x3b2603||'replaceImageSource'!=_0x3b2603['commandName'])return;return{'type':'format','content':c(_0x175362,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x54e516{['afterInit'](){const _0x581a89=this['editor'];if(!_0x581a89['plugins']['has']('ImageStyleEditing'))return;const _0x3fdd93=_0x581a89['plugins']['get']('TrackChangesEditing'),_0x45b710=_0x581a89['plugins']['get']('ImageUtils'),_0x4384f3={};_0x3fdd93['enableCommand']('imageStyle',(_0x4df839,_0x1aa050)=>{const _0x36b5b6=_0x581a89['plugins']['get']('Users')['me'],_0x2a5bc4=_0x581a89['commands']['get']('imageStyle');let _0x11937d=_0x45b710['getClosestSelectedImageElement'](_0x581a89['model']['document']['selection']),_0x20386b=_0x581a89['model']['createRangeOn'](_0x11937d),_0x4133a3=_0x2a5bc4['value'];if(_0x4133a3==_0x1aa050['value'])return;const _0x236af4={'commandName':'imageStyle','commandParams':[_0x1aa050],'formatGroupId':_0x5310dd()};_0x581a89['model']['change'](()=>{if(_0x3fdd93['getSuggestions']()['filter'](_0x29a050=>_0x29a050['isInContent']&&_0x36b5b6==_0x29a050['author']&&('formatBlock'==_0x29a050['type']||'formatInline'==_0x29a050['type'])&&('imageStylePreApply'==_0x29a050['subType']||'imageStylePostApply'==_0x29a050['subType'])&&_0x29a050['getFirstRange']()['isEqual'](_0x20386b))['forEach'](_0x4044ac=>_0x3fdd93['discardSuggestion'](_0x4044ac['head'])),_0x11937d=_0x45b710['getClosestSelectedImageElement'](_0x581a89['model']['document']['selection']),_0x20386b=_0x581a89['model']['createRangeOn'](_0x11937d),_0x2a5bc4['refresh'](),_0x581a89['commands']['get']('imageTypeInline')['refresh'](),_0x581a89['commands']['get']('imageTypeBlock')['refresh'](),_0x4133a3=_0x2a5bc4['value'],_0x4133a3!=_0x1aa050['value'])return _0x45b710['isInlineImage'](_0x11937d)&&_0x2a5bc4['shouldConvertImageType'](_0x1aa050['value'],_0x11937d)?(_0x4df839({..._0x1aa050,'setImageSizes':!0x1}),_0x11937d=_0x45b710['getClosestSelectedImageElement'](_0x581a89['model']['document']['selection']),void _0x3fdd93['markBlockFormat'](_0x11937d,{..._0x236af4,'commandReversedParams':[{'value':_0x4133a3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x45b710['isBlockImage'](_0x11937d)?_0x3fdd93['markBlockFormat'](_0x11937d,_0x236af4,[],'imageStylePostApply'):_0x3fdd93['markInlineFormat'](_0x20386b,_0x236af4,'imageStylePostApply'));});});for(const _0x248ca7 of _0x581a89['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4384f3[_0x248ca7['name']]=_0x248ca7['title']['toLowerCase']();_0x3fdd93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3fdd93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3fdd93['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3fdd93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3ad40f])=>{_0x45b710['setImageNaturalSizeAttributes'](_0x3ad40f['getContainedElement']());}),_0x3fdd93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5d851f,_0x4e1a66)=>{_0x3fdd93['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5d851f,{'commandName':_0x4e1a66['commandName'],'commandParams':_0x4e1a66['commandReversedParams']});}),_0x3fdd93['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5654d2,_0x8fc1c0){if(_0x5e9737(_0x5654d2,_0x8fc1c0))return[_0x5654d2,_0x8fc1c0];if(_0x5e9737(_0x8fc1c0,_0x5654d2))return[_0x8fc1c0,_0x5654d2];return null;});const _0x4a5d32=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5e9737(_0x1a7b97,_0x59d1ed){const _0x1f6689=_0x4a5d32['findIndex'](({type:_0x14e55a,subType:_0x345029})=>_0x1a7b97['type']==_0x14e55a&&_0x1a7b97['subType']==_0x345029),_0x581375=_0x4a5d32['findIndex'](({type:_0x1806ff,subType:_0x3ebfd0})=>_0x59d1ed['type']==_0x1806ff&&_0x59d1ed['subType']==_0x3ebfd0);if(_0x1f6689<0x0||_0x581375<0x0)return!0x1;const _0x4d9001=_0x1a7b97['getFirstRange'](),_0x4dd7bf=_0x59d1ed['getFirstRange']();if((0x0==_0x1f6689||0x1==_0x1f6689)&&0x2==_0x581375&&_0x4d9001['isIntersecting'](_0x4dd7bf))return!0x0;if(0x2==_0x1f6689&&0x3==_0x581375){const _0xca8079=_0x3fdd93['_findSuggestions'](_0x4d9001,'insertion')['filter'](({suggestion:_0x4842d2,meta:_0x3da657})=>_0x3da657['isOwn']&&'convertInlineImageToBlock'==_0x4842d2['subType']);if(_0xca8079['length']>0x1&&_0x4dd7bf['end']['isEqual'](_0x4d9001['start']))return!0x0;if(0x1==_0xca8079['length']&&(_0x4d9001['start']['isEqual'](_0x4dd7bf['end'])||_0x4d9001['end']['isEqual'](_0x4dd7bf['start'])))return!0x0;}if(0x3==_0x1f6689&&0x3==_0x581375&&_0x4d9001['start']['isBefore'](_0x4dd7bf['start'])){const _0x58e256=_0x4d9001['end']['nodeAfter'],_0x568668=_0x4dd7bf['start']['nodeBefore'];return _0x45b710['isBlockImage'](_0x58e256)&&_0x58e256===_0x568668;}return!0x1;}_0x581a89['model']['document']['registerPostFixer'](()=>{let _0x370213=!0x1;const _0x4a3b35=Array['from'](_0x581a89['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43703d,data:_0x3f10a7}of _0x4a3b35){const {group:_0x5e508e,type:_0x5ede1e,subType:_0x29ed4a,id:_0x27af7f}=_0x3fdd93['_splitMarkerName'](_0x43703d);if('suggestion'==_0x5e508e&&_0x3fdd93['hasSuggestion'](_0x27af7f)){if('formatBlock'==_0x5ede1e&&('imageStylePreApply'==_0x29ed4a||'imageStylePostApply'==_0x29ed4a)){const _0x20a519=_0x3fdd93['getSuggestion'](_0x27af7f);if(_0x3f10a7['newRange']){const _0x1341e2=_0x20a519['getFirstRange']()['getContainedElement']();if(_0x45b710['isBlockImage'](_0x1341e2))continue;_0x3fdd93['discardSuggestion'](_0x20a519),_0x370213=!0x0;}}if('insertion'==_0x5ede1e&&'imageCaption'==_0x29ed4a&&!_0x3f10a7['newRange']){const _0x22ce69=_0x3fdd93['getSuggestion'](_0x27af7f);_0x22ce69['next']&&_0x22ce69['next']['isInContent']&&(_0x3fdd93['discardSuggestion'](_0x22ce69['next']),_0x370213=!0x0);}}}return _0x370213;}),this['_registerLegacyDescription'](_0x4384f3);}['_registerLegacyDescription'](_0x5933a3){const _0x4d8cdf=this['editor'],_0xaa817a=_0x4d8cdf['locale'];_0x4d8cdf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47f28a=>{if('formatBlock'!=_0x47f28a['type']&&'formatInline'!=_0x47f28a['type'])return;const {data:_0xd01ca6}=_0x47f28a;if(!_0xd01ca6||'imageStyle'!=_0xd01ca6['commandName'])return;const _0xf8c97c=_0xd01ca6['commandParams'][0x0]['value'];return _0x412262('side'===_0xf8c97c?c(_0xaa817a,'FORMAT_SIDE_IMAGE'):_0x5933a3[_0xf8c97c]||_0xf8c97c);function _0x412262(_0x2b4151){return{'type':'format','content':c(_0xaa817a,'*Format:*\x20%0',_0x2b4151)};}});}}class ut extends _0x54e516{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3b45a5){super(_0x3b45a5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1d9c0a=this['editor'],_0x3deca9=_0x1d9c0a['commands']['get']('importWord'),_0x411a12=_0x1d9c0a['commands']['get']('trackChanges');_0x3deca9&&(_0x3deca9['on']('execute',(_0x2c0852,[,_0x19a8a5])=>{this['_trackChangesValueDuringImport']=_0x411a12['value'],_0x19a8a5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3deca9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3deca9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x411a12['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1d9c0a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3ffd72,_0x375a00){const {suggestions:_0x11da7d}=_0x375a00,_0x3033d5=this['editor']['commands']['get']('trackChanges'),_0x4cc731=_0x3033d5['value'];this['_trackChangesValueDuringImport']!==_0x4cc731&&(_0x3033d5['execute'](),this['_trackChangesExecuted']=!0x0),_0x11da7d&&_0x11da7d['forEach'](({id:_0x3337de,type:_0x394838,author:_0x2bbe62,created_at:_0x56f334})=>{const _0x4030ac={'id':_0x3337de,'type':_0x394838,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2bbe62,'createdAt':_0x56f334?new Date(_0x56f334):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4030ac);});}}class ft extends _0x54e516{['afterInit'](){const _0x1ac5c5=this['editor'],_0x4b4b63=_0x1ac5c5['plugins']['get']('TrackChangesEditing');if(_0x1ac5c5['plugins']['has']('IndentEditing')&&(_0x4b4b63['enableCommand']('indent'),_0x4b4b63['enableCommand']('outdent')),_0x1ac5c5['plugins']['has']('IndentBlock')){for(const _0x1a6c77 of['indentBlock','outdentBlock'])_0x4b4b63['enableDefaultAttributesIntegration'](_0x1a6c77);}const _0x513c16=_0x1ac5c5['locale'];_0x4b4b63['registerBlockAttribute']('blockIndent'),_0x4b4b63['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x513c16,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x500f3f=this['editor'],_0x5cbb10=_0x500f3f['locale'],_0x11fc01=_0x500f3f['plugins']['get']('TrackChangesEditing');_0x11fc01['descriptionFactory']['registerDescriptionCallback'](_0x1c5939=>{if('formatBlock'!=_0x1c5939['type'])return;const {data:_0x2cfd5b}=_0x1c5939;if(!_0x2cfd5b)return;if('indentBlock'!=_0x2cfd5b['commandName']&&'outdentBlock'!=_0x2cfd5b['commandName'])return;const _0xed8370=_0x1c5939['getItems']()[0x0],_0x2403c0=_0x11fc01['descriptionFactory']['getItemLabel'](_0xed8370);return'indentBlock'==_0x2cfd5b['commandName']?{'type':'format','content':c(_0x5cbb10,'*Indent:*\x20%0',_0x2403c0)}:'outdentBlock'==_0x2cfd5b['commandName']?{'type':'format','content':c(_0x5cbb10,'*Outdent:*\x20%0',_0x2403c0)}:void 0x0;});}}class ht extends _0x54e516{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x54e516{['afterInit'](){const _0x10e3cd=this['editor'];if(!_0x10e3cd['plugins']['has']('LinkEditing'))return;const _0x353522=_0x10e3cd['plugins']['get']('TrackChangesEditing'),_0x26b3d2=_0x10e3cd['commands']['get']('link');_0x353522['enableDefaultAttributesIntegration']('link'),_0x353522['enableDefaultAttributesIntegration']('unlink'),_0x353522['registerInlineAttribute']('linkHref');for(const _0x3689e4 of _0x26b3d2['manualDecorators'])_0x353522['registerInlineAttribute'](_0x3689e4['id']),_0x353522['descriptionFactory']['registerAttributeLabel'](_0x3689e4['id'],'link\x20('+_0x3689e4['label']['toLowerCase']()+')');_0x353522['descriptionFactory']['registerDescriptionCallback'](_0x1749fe=>{if('attribute'!=_0x1749fe['type'])return;const {data:_0x356445}=_0x1749fe;if(!_0x356445||'linkHref'!=_0x356445['key'])return;const _0x7d1b44=_0x356445['newValue'],_0x1dff5a=_0x10e3cd['locale'];return{'type':'format','content':null==_0x7d1b44?c(_0x1dff5a,'*Remove\x20link*'):c(_0x1dff5a,'*Set\x20link:*\x20%0','\x22'+_0x7d1b44+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cf27c=this['editor'],_0x5473f2=_0x1cf27c['locale'];_0x1cf27c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dbc20=>{if('formatInline'!=_0x3dbc20['type'])return;const {data:_0x3bc987}=_0x3dbc20;if(_0x3bc987){if('link'==_0x3bc987['commandName']){const _0x1f7ef6=_0x3bc987['commandParams'][0x0];return{'type':'format','content':c(_0x5473f2,'*Set\x20link:*\x20%0','\x22'+_0x1f7ef6+'\x22')};}return'unlink'==_0x3bc987['commandName']?{'type':'format','content':c(_0x5473f2,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x54e516{['afterInit'](){const _0x2f4ece=this['editor'],_0x25c4ba=_0x2f4ece['locale'];if(!_0x2f4ece['plugins']['has']('LegacyListEditing'))return;const _0x45ad6c=_0x2f4ece['plugins']['get']('TrackChangesEditing'),_0xe3bd95=_0x2f4ece['plugins']['has']('LegacyTodoListEditing');function _0x2a4df8(_0x37b33c){return()=>{const _0x584051=_0x2f4ece['model']['document']['selection'],_0x745e04=_0x2f4ece['commands']['get'](_0x37b33c);if(_0x745e04['value'])return void _0x2f4ece['execute']('paragraph',{});const _0x293f19=_0x37b33c['slice'](0x0,-0x4),_0x555129=function(_0x105e07,_0x2ec108,_0x4daf81){let _0x2ed37f=Array['from'](_0x105e07)['filter'](_0x192a7a=>function(_0x4f5023,_0x49fd04){return _0x49fd04['checkChild'](_0x4f5023['parent'],'listItem')&&!_0x49fd04['isObject'](_0x4f5023);}(_0x192a7a,_0x4daf81));_0x2ed37f=_0x2ed37f['filter'](_0x2f4f3b=>!_0x2f4f3b['is']('element','listItem')||_0x2f4f3b['getAttribute']('listType')!=_0x2ec108);const _0x5e9fea=new Set();for(const _0x3928d2 of _0x2ed37f)_0x3928d2['is']('element','listItem')?_0x5e9fea['add'](Le(_0x3928d2)):_0x5e9fea['add'](_0x3928d2);return Array['from'](_0x5e9fea);}(_0x584051['getSelectedBlocks'](),_0x293f19,_0x2f4ece['model']['schema']);_0x2f4ece['model']['change'](()=>{for(const _0x1b859b of _0x555129)_0x45ad6c['markBlockFormat'](_0x1b859b,{'commandName':_0x37b33c,'commandParams':[{'forceValue':!_0x745e04['value']}],'formatGroupId':'blockName'},Ee(_0x1b859b));});};}function _0x241079(_0xfe8c57){return()=>{const _0x2a929b=function(_0x291ac9){let _0x3324b8=Array['from'](_0x291ac9);const _0x4a106d=_0x3324b8['findIndex'](_0x2fff79=>'listItem'!=_0x2fff79['name']);return _0x4a106d>-0x1&&(_0x3324b8=_0x3324b8['slice'](0x0,_0x4a106d)),_0x3324b8;}(_0x2f4ece['model']['document']['selection']['getSelectedBlocks']()),_0x1d3e55=_0x2f4ece['model']['createRange'](_0x2f4ece['model']['createPositionAt'](_0x2a929b[0x0],'before'),_0x2f4ece['model']['createPositionAt'](_0x2a929b[_0x2a929b['length']-0x1],'end'));_0x2f4ece['model']['change'](()=>{_0x45ad6c['markBlockFormat'](_0x1d3e55,{'commandName':_0xfe8c57,'commandParams':[],'formatGroupId':'listIndent'},function(_0x338abd){const _0x5bfe51=new Set();for(const _0x2f67c4 of _0x338abd){let _0x52975e=_0x2f67c4['nextSibling'];for(;_0x52975e&&_0x52975e['getAttribute']('listIndent')>_0x2f67c4['getAttribute']('listIndent');)_0x5bfe51['add'](_0x52975e),_0x52975e=_0x52975e['nextSibling'];}return Array['from'](_0x5bfe51);}(_0x2a929b));});};}_0x45ad6c['enableCommand']('numberedList',_0x2a4df8('numberedList')),_0x45ad6c['enableCommand']('bulletedList',_0x2a4df8('bulletedList')),_0xe3bd95&&_0x45ad6c['enableCommand']('todoList',_0x2a4df8('todoList')),_0x45ad6c['enableCommand']('indentList',_0x241079('indentList')),_0x45ad6c['enableCommand']('outdentList',_0x241079('outdentList')),_0xe3bd95&&_0x45ad6c['enableCommand']('checkTodoList',()=>{const _0x19e0f1=_0x2f4ece['commands']['get']('checkTodoList'),_0x545458=Array['from'](_0x19e0f1['_selectedElements']);_0x545458['filter'](_0x3c82fc=>_0x3c82fc['getAttribute']('todoListChecked')!=_0x19e0f1['value']),_0x2f4ece['model']['change'](()=>{for(const _0x3d377f of _0x545458)_0x45ad6c['markBlockFormat'](_0x3d377f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x19e0f1['value']}]});});}),_0x45ad6c['descriptionFactory']['registerElementLabel']('listItem',_0x355fdc=>c(_0x25c4ba,'ELEMENT_LIST_ITEM',_0x355fdc)),_0x45ad6c['descriptionFactory']['registerDescriptionCallback'](_0x442e5f=>{if('formatBlock'!=_0x442e5f['type']&&'formatInline'!=_0x442e5f['type'])return;const {data:_0x4b3ca8}=_0x442e5f;if(_0x4b3ca8){if('numberedList'==_0x4b3ca8['commandName']||'bulletedList'==_0x4b3ca8['commandName']||'todoList'==_0x4b3ca8['commandName'])switch(_0x4b3ca8['commandName']['replace']('List','')){case'bulleted':return _0x136aab(c(_0x25c4ba,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x136aab(c(_0x25c4ba,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x136aab(c(_0x25c4ba,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4b3ca8['commandName'])return{'type':'format','content':c(_0x25c4ba,'*Indent:*\x20%0',c(_0x25c4ba,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4b3ca8['commandName'])return{'type':'format','content':c(_0x25c4ba,'*Outdent:*\x20%0',c(_0x25c4ba,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4b3ca8['commandName'])return _0x4b3ca8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x25c4ba,'*Check\x20item*')}:{'type':'format','content':c(_0x25c4ba,'*Uncheck\x20item*')};}function _0x136aab(_0x3549e3){return{'type':'format','content':c(_0x25c4ba,'*Change\x20to:*\x20%0',_0x3549e3)};}});}}function Le(_0x185305){const _0x3f4edd=_0x185305['getAttribute']('listIndent');if(0x0==_0x3f4edd)return _0x185305;let _0x2aeed7=_0x185305;for(;_0x185305['previousSibling']&&_0x185305['previousSibling']['is']('element','listItem');){const _0x10a1a4=_0x185305['previousSibling']['getAttribute']('listIndent');if(_0x10a1a4==_0x3f4edd)_0x2aeed7=_0x185305['previousSibling'];else{if(_0x10a1a4<_0x3f4edd)break;}_0x185305=_0x185305['previousSibling'];}return _0x2aeed7;}function Ee(_0x3050d4){const _0x2327da=[];if(_0x3050d4['is']('element','listItem')&&_0x3050d4['getAttribute']('listIndent')>0x0){let _0x5f2bfe=_0x3050d4['nextSibling'];for(;_0x5f2bfe&&'listItem'==_0x5f2bfe['name']&&_0x5f2bfe['getAttribute']('listIndent')==_0x3050d4['getAttribute']('listIndent');)_0x2327da['push'](_0x5f2bfe),_0x5f2bfe=_0x5f2bfe['nextSibling'];}return _0x2327da;}class Q extends _0x54e516{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5e09b2=this['editor']['config']['get']('list.properties'),_0x4eb49f=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e09b2['styles']&&_0x4eb49f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5e09b2['reversed']&&_0x4eb49f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5e09b2['startIndex']&&_0x4eb49f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4eb49f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x175a06,_0x56e36c={}){const _0x40f9c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x502e25=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x40f9c1['markMultiRangeBlockFormat'](_0x502e25,{'commandName':'listStyle','commandParams':[{'type':_0x56e36c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x39dc12,_0x5c70f5={}){const _0x405832=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27daa3=this['_getSuggestionBlocks'](_0x28e00e=>_0x28e00e['is']('element','listItem')&&'numbered'===_0x28e00e['getAttribute']('listType'));if(_0x27daa3['length']<0x1)return;const _0x448063=_0x27daa3['map'](_0x3be051=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3be051,'before'),this['editor']['model']['createPositionAt'](_0x3be051,0x0)));this['editor']['model']['change'](()=>{_0x405832['markMultiRangeBlockFormat'](_0x448063,{'commandName':'listReversed','commandParams':[{'reversed':_0x5c70f5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x33151f,_0x154e90={}){const _0x3ee840=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4eec60=this['_getSuggestionBlocks'](_0x42c0c0=>_0x42c0c0['is']('element','listItem')&&'numbered'===_0x42c0c0['getAttribute']('listType'));if(_0x4eec60['length']<0x1)return;const _0x414ccc=_0x4eec60['map'](_0x395f93=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x395f93,'before'),this['editor']['model']['createPositionAt'](_0x395f93,0x0)));this['editor']['model']['change'](()=>{_0x3ee840['markMultiRangeBlockFormat'](_0x414ccc,{'commandName':'listStart','commandParams':[{'startIndex':_0x154e90['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x6827cd){if('formatBlock'!=_0x6827cd['type']&&'formatInline'!=_0x6827cd['type'])return;const _0x4c7202=this['editor']['locale'],{data:_0x2e8d91}=_0x6827cd;if(!_0x2e8d91)return;let _0x364a95,_0x14f1ec;switch(_0x2e8d91['commandName']){case'listStyle':_0x364a95='*Change\x20to:*\x20%0',_0x14f1ec={'type':'format','content':c(_0x4c7202,_0x364a95,c(_0x4c7202,this['_getTranslationKeyForListStyle'](_0x2e8d91['commandParams'][0x0]['type'])))};break;case'listReversed':_0x364a95=_0x2e8d91['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x14f1ec={'type':'format','content':c(_0x4c7202,_0x364a95)};break;case'listStart':_0x364a95='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x14f1ec={'type':'format','content':c(_0x4c7202,_0x364a95,_0x2e8d91['commandParams'][0x0]['startIndex'])};}return _0x14f1ec;}['_getSuggestionBlocksForListStyle'](){const _0xa05aba=this['editor']['plugins']['get']('LegacyListUtils');let _0x392dc8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x392dc8[0x0]?.['is']('element','listItem')&&_0x392dc8['unshift'](..._0xa05aba['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x392dc8[_0x392dc8['length']-0x1]?.['is']('element','listItem')&&_0x392dc8['push'](..._0xa05aba['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x392dc8=[...new Set(_0x392dc8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x392dc8=_0x392dc8['filter'](_0x113a83=>_0x113a83['is']('element','listItem'))),_0x392dc8;}['_getSuggestionBlocks'](_0x383697){const _0xddde37=this['editor']['plugins']['get']('LegacyListUtils');let _0x3f40bd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x383697)['map'](_0x49403b=>{const _0x464718=this['editor']['model']['createPositionAt'](_0x49403b,0x0);return[..._0xddde37['getSiblingNodes'](_0x464718,'backward'),..._0xddde37['getSiblingNodes'](_0x464718,'forward')];})['flat']();return _0x3f40bd=[...new Set(_0x3f40bd)],_0x3f40bd;}['_getTranslationKeyForListStyle'](_0x431ecc){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x431ecc)||'default')['toUpperCase']()+'_LIST_'+_0x431ecc['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x54e516{['afterInit'](){const _0x3432e5=this['editor'];if(!_0x3432e5['plugins']['has']('MediaEmbedEditing'))return;const _0x59621e=_0x3432e5['plugins']['get']('TrackChangesEditing'),_0x1d952e=_0x3432e5['locale'];_0x59621e['enableCommand']('mediaEmbed'),_0x59621e['descriptionFactory']['registerElementLabel']('media',_0x59205c=>c(_0x1d952e,'ELEMENT_MEDIA',_0x59205c)),_0x3432e5['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1ec68b,{writer:_0x575d20,options:_0x5d05c8})=>{if(_0x5d05c8['showSuggestionHighlights'])return _0x575d20['createEmptyElement']('div');},'converterPriority':'high'}),_0x3432e5['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3647cd,_0x2ad2b7,_0x11ef59)=>{_0x11ef59['options']['showSuggestionHighlights']&&_0x3647cd['stop']();},{'priority':'high'});}}class pt extends _0x54e516{['afterInit'](){const _0x5302b9=this['editor'];_0x5302b9['plugins']['has']('MentionEditing')&&_0x5302b9['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x54e516{['afterInit'](){const _0x2acb6a=this['editor'];if(!_0x2acb6a['plugins']['has']('MergeFieldsEditing'))return;const _0x439ef0=_0x2acb6a['plugins']['get']('TrackChangesEditing'),_0x1b6497=_0x2acb6a['locale'];_0x439ef0['enableCommand']('insertMergeField'),_0x439ef0['enableCommand']('insertMergeFieldBlock'),_0x439ef0['enableCommand']('insertMergeFieldImage'),_0x439ef0['descriptionFactory']['registerElementLabel']('mergeField',_0x244b31=>c(_0x1b6497,'ELEMENT_MERGE_FIELD',_0x244b31)),_0x439ef0['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2bbd38=>c(_0x1b6497,'ELEMENT_MERGE_FIELD',_0x2bbd38)),_0x439ef0['descriptionFactory']['registerDescriptionCallback'](_0x1e98fb=>{if('insertion'!=_0x1e98fb['type']&&'deletion'!=_0x1e98fb['type'])return;const _0x4ed6e8=_0x1e98fb['getContainedElement']();if(null==_0x4ed6e8)return;const _0xdff7ee=_0x2acb6a['plugins']['get']('MergeFieldsEditing');let _0x2320c7;switch(_0xdff7ee['getMergeFieldType'](_0x4ed6e8)){case null:return;case'image':{const _0x369fd0=_0xdff7ee['unwrapAffixes'](_0x4ed6e8['getAttribute']('src'));_0x2320c7=_0xdff7ee['getLabel'](_0x369fd0)||_0x369fd0;break;}default:{const _0x48ba6b=_0x4ed6e8['getAttribute']('id');_0x2320c7=_0xdff7ee['getLabel'](_0x48ba6b)||_0x48ba6b;break;}}return'insertion'==_0x1e98fb['type']?{'type':'insertion','content':c(_0x1b6497,'*Insert:*\x20%0','\x22'+_0x2320c7+'\x22\x20'+c(_0x1b6497,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x1b6497,'*Remove:*\x20%0','\x22'+_0x2320c7+'\x22\x20'+c(_0x1b6497,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x54e516{['afterInit'](){const _0x395a80=this['editor'],_0x3e4a6a=_0x395a80['plugins']['get']('TrackChangesEditing');_0x395a80['plugins']['has']('MultiLevelList')&&(_0x3e4a6a['enableDefaultAttributesIntegration']('multiLevelList'),_0x3e4a6a['registerBlockAttribute']('listMarkerStyle'),_0x3e4a6a['descriptionFactory']['registerDescriptionCallback'](_0x29122a=>this['handleDescriptions'](_0x29122a)));}['handleDescriptions'](_0x292118){const _0x46b1af=this['editor']['locale'],{data:_0x21b92c}=_0x292118,_0x1b578f={'type':'format','content':''};if(_0x21b92c&&'listMarkerStyle'==_0x21b92c['key']){if(!_0x21b92c['oldValue'])return{'type':'format','content':c(_0x46b1af,'*Set\x20format:*\x20%0',c(_0x46b1af,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x21b92c['newValue']+')'};if(!_0x21b92c['newValue']){let _0x6beec2=_0x292118['head'];for(;_0x6beec2;){if(_0x6beec2['data']&&'listType'==_0x6beec2['data']['key']&&_0x6beec2['data']['newValue'])return _0x1b578f;_0x6beec2=_0x6beec2['next'];}return{'type':'format','content':c(_0x46b1af,'*Remove\x20format:*\x20%0',c(_0x46b1af,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x21b92c['oldValue']+')'};}}}}class bt extends _0x54e516{['afterInit'](){const _0x3285d9=this['editor'];if(!_0x3285d9['plugins']['has']('PageBreakEditing'))return;_0x3285d9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2205d4=_0x3285d9['plugins']['get']('TrackChangesEditing'),_0x4e5f6b=_0x3285d9['locale'];_0x2205d4['descriptionFactory']['registerElementLabel']('pageBreak',_0x24a536=>c(_0x4e5f6b,'ELEMENT_PAGE_BREAK',_0x24a536));}}class yt extends _0x54e516{['afterInit'](){const _0x2d46fe=this['editor'];if(!_0x2d46fe['plugins']['has']('Paragraph'))return;const _0x164f2b=_0x2d46fe['locale'],_0x6bbb4c=_0x2d46fe['plugins']['get']('TrackChangesEditing');_0x6bbb4c['descriptionFactory']['registerElementLabel']('paragraph',_0x4772ed=>c(_0x164f2b,'ELEMENT_PARAGRAPH',_0x4772ed)),_0x6bbb4c['enableDefaultAttributesIntegration']('paragraph'),_0x6bbb4c['enableCommand']('insertParagraph'),_0x2d46fe['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2d46fe),{'priority':'highest'}),_0x2d46fe['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xdab8cb,_0x163797,_0x579a89)=>{_0x579a89['options']['showSuggestionHighlights']&&nr(_0x2d46fe,{'showActiveMarker':!0x1})(_0xdab8cb,_0x163797,_0x579a89);},{'priority':'highest'});const _0x5d6b35=_0x6bbb4c['descriptionFactory'];_0x5d6b35['registerDescriptionCallback'](_0x506297=>{if('insertion'!==_0x506297['type'])return;const {start:_0x3c6f64,end:_0x33ab9d}=_0x506297['getFirstRange']();if(!_0x3c6f64['isTouching'](_0x33ab9d)||!_0x3c6f64['nodeAfter'])return;const _0x2fb320=_0x2d46fe['model']['schema'],_0x414a5c=_0x3c6f64['nodeAfter'];return _0x2fb320['isBlock'](_0x414a5c)&&!_0x2fb320['isLimit'](_0x414a5c)&&_0x2fb320['checkChild'](_0x414a5c,'$text')?{'type':'insertion','content':c(_0x164f2b,'*Insert:*\x20%0',_0x5d6b35['getItemLabel'](_0x414a5c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x398dd5=this['editor'],_0x1768bd=_0x398dd5['locale'];_0x398dd5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ebbb8=>{if('formatBlock'!=_0x5ebbb8['type'])return;const {data:_0x1c5eff}=_0x5ebbb8;return _0x1c5eff&&'paragraph'==_0x1c5eff['commandName']?{'type':'format','content':c(_0x1768bd,'*Change\x20to:*\x20%0',c(_0x1768bd,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x34082d,{showActiveMarker:_0x74b031=!0x0}={}){return(_0x52537,_0x1b7b80,_0x23c0c8)=>{const _0x272420=_0x34082d['plugins']['get']('TrackChangesEditing'),_0x354e2a=_0x1b7b80['markerRange']['start'],_0x767106=_0x1b7b80['markerRange']['end'],_0x23648c=_0x34082d['model']['schema'];if(!_0x354e2a['isTouching'](_0x767106)||!_0x354e2a['nodeAfter'])return;const _0x470616=_0x354e2a['nodeAfter'];if(_0x23648c['isBlock'](_0x470616)&&!_0x23648c['isLimit'](_0x470616)&&_0x23648c['checkChild'](_0x470616,'$text')){if(!_0x23c0c8['consumable']['consume'](_0x1b7b80['markerRange'],_0x52537['name']))return;const {authorId:_0x3f89fd}=_0x272420['_splitMarkerName'](_0x1b7b80['markerName']),_0x50c60c=_0x23c0c8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3f89fd}),_0x350cea=_0x23c0c8['mapper']['toViewPosition'](_0x767106);_0x74b031&&_0x272420['activeMarkers']['includes'](_0x1b7b80['markerName'])&&_0x23c0c8['writer']['addClass']('ck-suggestion-marker--active',_0x50c60c),_0x23c0c8['writer']['insert'](_0x350cea,_0x50c60c),_0x23c0c8['mapper']['bindElementToMarker'](_0x50c60c,_0x1b7b80['markerName']);}};}class jt extends _0x54e516{['afterInit'](){const _0x460827=this['editor'];_0x460827['commands']['get']('replaceSource')&&_0x460827['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x54e516{['afterInit'](){const _0x2165d7=this['editor'];if(!_0x2165d7['plugins']['has']('RemoveFormatEditing'))return;_0x2165d7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3027bd=this['editor'];_0x3027bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47ce44=>{if('formatBlock'!=_0x47ce44['type']&&'formatInline'!=_0x47ce44['type'])return;const {data:_0x39d965}=_0x47ce44;return _0x39d965&&'removeFormat'==_0x39d965['commandName']?{'type':'format','content':c(_0x3027bd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x54e516{['afterInit'](){const _0x295b5c=this['editor'];if(!_0x295b5c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x64d6c6=_0x295b5c['plugins']['get']('TrackChangesEditing');_0x64d6c6['enableCommand']('goToPreviousRestrictedEditingException'),_0x64d6c6['enableCommand']('goToNextRestrictedEditingException');const _0x290e76=_0x295b5c['plugins']['get']('RestrictedEditingModeEditing');_0x290e76['enableCommand']('trackChanges'),_0x290e76['enableCommand']('acceptSuggestion'),_0x290e76['enableCommand']('discardSuggestion'),_0x290e76['enableCommand']('acceptAllSuggestions'),_0x290e76['enableCommand']('discardAllSuggestions'),_0x290e76['enableCommand']('acceptSelectedSuggestions'),_0x290e76['enableCommand']('discardSelectedSuggestions');}}class It extends _0x54e516{static get['requires'](){return[_0x234e13];}['init'](){const _0x470e33=this['editor'],_0x590c7c=_0x470e33['plugins']['get']('TrackChangesEditing');_0x590c7c['enableCommand']('shiftEnter'),_0x470e33['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x470e33),{'priority':'high'}),_0x470e33['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x470e33),{'priority':'high'}),_0x470e33['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe1a9c8,_0x4f1582,_0x1711d5)=>{_0x1711d5['options']['showSuggestionHighlights']&&je(_0x470e33,{'showActiveMarker':!0x1})(_0xe1a9c8,_0x4f1582,_0x1711d5);}),_0x590c7c['descriptionFactory']['registerElementLabel']('softBreak',_0x401d11=>c(_0x470e33['locale'],'ELEMENT_LINE_BREAK',_0x401d11));}}function je(_0x30a66e,{showActiveMarker:_0x197c2c=!0x0}={}){return(_0x2fa739,_0xd454d5,_0xb88249)=>{const _0x64fb9=_0x30a66e['plugins']['get']('TrackChangesEditing');if(!_0xb88249['consumable']['test'](_0xd454d5['markerRange'],_0x2fa739['name']))return;const _0x180f69=_0x30a66e['model'];for(const _0xb717de of _0xd454d5['markerRange']['getItems']()){if(!_0xb717de['is']('element','softBreak'))continue;const _0x1ee932='deletion'==_0xd454d5['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x381a1f}=_0x64fb9['_splitMarkerName'](_0xd454d5['markerName']),_0x29cce5=_0xb88249['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1ee932,'data-author-id':_0x381a1f}),_0x48855d=_0xb88249['mapper']['toViewPosition'](_0x180f69['createPositionBefore'](_0xb717de));_0x197c2c&&_0x64fb9['activeMarkers']['includes'](_0xd454d5['markerName'])&&_0xb88249['writer']['addClass']('ck-suggestion-marker--active',_0x29cce5),_0xb88249['writer']['insert'](_0x48855d,_0x29cce5),_0xb88249['mapper']['bindElementToMarker'](_0x29cce5,_0xd454d5['markerName']);}};}class _t extends _0x54e516{['afterInit'](){const _0xd3420a=this['editor'],_0x136536=_0xd3420a['model'],_0x58932a=_0xd3420a['locale'];if(!_0xd3420a['plugins']['has']('StandardEditingModeEditing'))return;const _0x2251d5=_0xd3420a['plugins']['get']('TrackChangesEditing'),_0x57c475='restrictedEditingException',_0x6e1c93=_0xd3420a['commands']['get'](_0x57c475);_0x2251d5['enableCommand'](_0x57c475,(_0x1b6e96,_0x4ce493={})=>{const _0x2b4c96=_0x136536['document']['selection'];if(_0x2b4c96['isCollapsed'])return void _0x1b6e96(_0x4ce493);const _0x5028a8=void 0x0!==_0x4ce493['forceValue']?_0x4ce493['forceValue']:!_0x6e1c93['value'];_0x136536['change'](()=>{const _0x1ea533=Array['from'](_0x2b4c96['getRanges']());for(const _0x1ef7d9 of _0x1ea533){const _0x585777=_0x5028a8?[_0x1ef7d9]:io(_0x57c475,_0x1ef7d9,_0x136536);for(const _0x1aaa87 of _0x585777)_0x2251d5['markInlineFormat'](_0x1aaa87,{'commandName':_0x57c475,'commandParams':[{'forceValue':_0x5028a8}]});}});}),_0x2251d5['descriptionFactory']['registerDescriptionCallback'](_0x4c3b46=>{if('formatBlock'!=_0x4c3b46['type']&&'formatInline'!=_0x4c3b46['type'])return;const {data:_0x5dfcbe}=_0x4c3b46;return _0x5dfcbe&&_0x5dfcbe['commandName']==_0x57c475?_0x5dfcbe['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x58932a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x58932a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x54e516{['afterInit'](){const _0x275a70=this['editor'];if(!_0x275a70['plugins']['has']('Style')||!_0x275a70['plugins']['has']('DataSchema'))return;const _0x14f997=_0x275a70['plugins']['get']('TrackChangesEditing'),_0x4a1bdc=_0x275a70['locale'],_0x41ccdd=_0x275a70['config']['get']('style')||{},_0x3e03b8=_0x275a70['plugins']['get']('GeneralHtmlSupport'),_0xdbff85=_0x275a70['plugins']['get']('StyleUtils')['normalizeConfig'](_0x275a70['plugins']['get']('DataSchema'),_0x41ccdd['definitions']);_0x14f997['enableDefaultAttributesIntegration']('style');const _0x4e50ed=new Set();for(const _0x4ab677 of _0xdbff85['block']){const _0x178a56=_0x3e03b8['getGhsAttributeNameForElement'](_0x4ab677['element']);_0x4e50ed['add'](_0x178a56);}const _0x7b19e8=new Set();for(const _0x42a256 of _0xdbff85['inline']){const _0x15a200=_0x3e03b8['getGhsAttributeNameForElement'](_0x42a256['element']);_0x7b19e8['add'](_0x15a200);for(const _0x21850c of _0x42a256['ghsAttributes'])_0x7b19e8['add'](_0x21850c);}for(const _0x418751 of _0x4e50ed)_0x14f997['registerBlockAttribute'](_0x418751),_0x14f997['descriptionFactory']['registerAttributeLabel'](_0x418751,c(_0x4a1bdc,'FORMAT_STYLE'));for(const _0x574826 of _0x7b19e8)_0x14f997['registerInlineAttribute'](_0x574826),_0x14f997['descriptionFactory']['registerAttributeLabel'](_0x574826,c(_0x4a1bdc,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46c24b=this['editor'],_0x507c62=_0x46c24b['locale'];_0x46c24b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bd029=>{if('formatBlock'!=_0x1bd029['type']&&'formatInline'!=_0x1bd029['type'])return;const {data:_0xc1b25f}=_0x1bd029;return _0xc1b25f&&'style'===_0xc1b25f['commandName']?_0xc1b25f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x507c62,'*Set\x20format:*\x20%0',_0xc1b25f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x507c62,'*Remove\x20format:*\x20%0',_0xc1b25f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x54e516{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4522f4){super(_0x4522f4),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3dce3d=this['editor'],_0xad29da=_0x3dce3d['model']['document']['selection'];if(!_0x3dce3d['plugins']['has']('TableEditing'))return;const _0x1bad00=_0x3dce3d['locale'],_0x28abe2=_0x3dce3d['plugins']['get']('TrackChangesEditing'),_0x43c3df=_0x3dce3d['plugins']['get']('TableUtils');_0x28abe2['descriptionFactory']['registerElementLabel']('table',_0x46bbf8=>c(_0x1bad00,'ELEMENT_TABLE',_0x46bbf8)),this['_setupColumnsRowsFixing'](),_0x28abe2['enableCommand']('insertTable'),_0x28abe2['enableCommand']('selectTableRow'),_0x28abe2['enableCommand']('selectTableColumn');for(const _0x468bc4 of['insertTableRowAbove','insertTableRowBelow']){const _0x45d9e4=_0x3dce3d['commands']['get'](_0x468bc4);_0x28abe2['enableCommand'](_0x468bc4,_0x466a40=>{_0x3dce3d['model']['change'](_0x4ee05e=>{_0x466a40();const _0x6f4ffa='above'===_0x45d9e4['order'],_0x57ab84=_0x43c3df['getSelectionAffectedTableCells'](_0xad29da),_0x4b25be=_0x43c3df['getRowIndexes'](_0x57ab84),_0x370e=_0x6f4ffa?_0x4b25be['first']-0x1:_0x4b25be['last']+0x1,_0x4154e0=_0x57ab84[0x0]['findAncestor']('table'),_0x2b4e9d=_0x43c3df['createTableWalker'](_0x4154e0,{'startRow':_0x370e,'endRow':_0x370e}),_0xd1d777=Array['from'](_0x2b4e9d)['map'](_0x52dd98=>_0x4ee05e['createRangeOn'](_0x52dd98['cell']));_0x28abe2['markMultiRangeInsertion'](_0xd1d777,'tableRow');});});}for(const _0x56fb0c of['insertTableColumnLeft','insertTableColumnRight']){const _0x4d17e0=_0x3dce3d['commands']['get'](_0x56fb0c);_0x28abe2['enableCommand'](_0x56fb0c,_0x109f3e=>{_0x3dce3d['model']['change'](_0x3ccff8=>{_0x109f3e();const _0xcc0f5f='left'===_0x4d17e0['order'],_0xbc7ed0=_0x43c3df['getSelectionAffectedTableCells'](_0xad29da),_0x2e88d9=_0x43c3df['getColumnIndexes'](_0xbc7ed0),_0x3dc501=_0xcc0f5f?_0x2e88d9['first']-0x1:_0x2e88d9['last']+0x1,_0x4bd094=_0xbc7ed0[0x0]['findAncestor']('table'),_0x35264a=_0x43c3df['createTableWalker'](_0x4bd094,{'startRow':0x0,'column':_0x3dc501,'includeAllSlots':!0x1}),_0x43552d=Array['from'](_0x35264a)['map'](_0xc9554a=>_0x3ccff8['createRangeOn'](_0xc9554a['cell']));_0x28abe2['markMultiRangeInsertion'](_0x43552d,'tableColumn');});});}for(const _0x269604 of['removeTableRow','removeTableColumn']){const _0x3b169c=_0x269604['substr'](0xb),_0x5f1610=_0x3b169c['toLowerCase'](),_0x1d66bc=_0x5f1610['substr'](0x0,0x3)+'span',_0x1a95d3='table'+_0x3b169c,_0x21cc06='min'+_0x3b169c,_0x16d055='max'+_0x3b169c;_0x28abe2['enableCommand'](_0x269604,()=>{_0x3dce3d['model']['change'](_0x4e8ed7=>{const _0x6e002b=_0x43c3df['getSelectionAffectedTableCells'](_0xad29da),_0x4b1a4c=_0x6e002b[0x0]['findAncestor']('table');let _0x13ba22;if('removeTableRow'==_0x269604){const _0x613953=_0x43c3df['getRowIndexes'](_0x6e002b);_0x13ba22={'startRow':_0x613953['first'],'endRow':_0x613953['last'],'includeAllSlots':!0x0};}else{const _0x356d6b=_0x43c3df['getColumnIndexes'](_0x6e002b);_0x13ba22={'startColumn':_0x356d6b['first'],'endColumn':_0x356d6b['last'],'includeAllSlots':!0x0};}const _0x51c12c=_0x43c3df['createTableWalker'](_0x4b1a4c,_0x13ba22),_0x584cd8=Array['from'](_0x51c12c)['map'](({cell:_0x268e3a})=>_0x268e3a),_0x468a61=Ne(_0x584cd8['filter'](_0x2a116c=>_0x2a116c['hasAttribute'](_0x1d66bc))),_0xe3ee6e=Ne(_0x584cd8['filter'](_0x2ebb37=>!_0x2ebb37['hasAttribute'](_0x1d66bc)))['map'](_0x2f17a9=>_0x4e8ed7['createRangeOn'](_0x2f17a9)),_0x2d82da=_0x28abe2['markMultiRangeDeletion'](_0xe3ee6e,_0x1a95d3);if(_0x2d82da&&('tableRow'==_0x2d82da['subType']||'tableColumn'==_0x2d82da['subType'])){const _0x1c8467=this['_getSuggestionCoords'](_0x2d82da);for(const _0x20ad8a of _0x468a61){const _0x442cf4=_0x4e8ed7['createRangeOn'](_0x20ad8a),_0x44170c=_0x43c3df['getCellLocation'](_0x20ad8a),_0x76d9d0=_0x20ad8a['getAttribute'](_0x1d66bc)-0x1,_0x16116c=_0x1c8467[_0x21cc06],_0x1e8c00=_0x1c8467[_0x16d055];_0x16116c<=_0x44170c[_0x5f1610]&&_0x44170c[_0x5f1610]+_0x76d9d0<=_0x1e8c00&&_0x2d82da['addRange'](_0x442cf4);}}});});}function _0x42db65(_0x33fcf){const _0x5662c1=Array['from'](_0xad29da['getRanges']())['map'](_0x4228c0=>_0x6b53b6['fromRange'](_0x4228c0));_0x3dce3d['model']['change'](_0x58a7ea=>{const _0x4c0dcb=_0x58a7ea['batch'];_0x33fcf=_0x33fcf['filter'](_0xf04095=>'$graveyard'!=_0xf04095['root']['rootName']),_0x58a7ea['setSelection'](_0x33fcf),_0x3dce3d['commands']['get']('removeTableRow')['refresh'](),_0x3dce3d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3dce3d['model']['enqueueChange'](()=>{_0x3dce3d['model']['enqueueChange'](_0x4c0dcb,_0x56cfe7=>{const _0x1a58ae=_0x5662c1['filter'](_0x33af8f=>'$graveyard'!=_0x33af8f['root']['rootName']);_0x1a58ae['length']>0x0&&_0x56cfe7['setSelection'](_0x1a58ae);for(const _0x5c4569 of _0x5662c1)_0x5c4569['detach']();});});});}function _0x445929(_0xbee443){_0x3dce3d['model']['change'](_0x38060b=>{const _0x3f3855=Array['from'](_0xad29da['getRanges']())['map'](_0x26706f=>_0x6b53b6['fromRange'](_0x26706f)),_0x5deced=[];for(const _0x486667 of _0xbee443)for(const _0x531095 of _0x486667['getItems']({'shallow':!0x0}))_0x5deced['push'](_0x531095);for(const _0x220bbd of _0x5deced)'$graveyard'!=_0x220bbd['root']['rootName']&&(_0x38060b['setSelection'](_0x38060b['createPositionAt'](_0x220bbd,0x0)),_0x3dce3d['commands']['get']('removeTableColumn')['refresh'](),_0x3dce3d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x15f97a=_0x3f3855['filter'](_0x289df5=>'$graveyard'!=_0x289df5['root']['rootName']);_0x15f97a['length']>0x0&&_0x38060b['setSelection'](_0x15f97a);for(const _0xa6f4fc of _0x3f3855)_0xa6f4fc['detach']();});}function _0x345d84(_0xdc1fbd,_0x5e0716){return _0x5e0716['every'](_0x5ec983=>_0xdc1fbd['some'](_0x8ea47c=>_0x8ea47c['end']['isEqual'](_0x5ec983['start'])||_0x5ec983['end']['isEqual'](_0x8ea47c['start'])));}function _0x5cc46c(_0x14846b,_0x2cd9ba){return!_0x14846b['some'](_0xf47474=>_0x2cd9ba['some'](_0x31af85=>_0xf47474['isIntersecting'](_0x31af85)))&&_0x14846b['some'](_0x5df7f7=>_0x2cd9ba['some'](_0x126dac=>_0x5df7f7['end']['isTouching'](_0x126dac['start'])));}_0x3dce3d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x279365,_0x334999,_0x3d71e9)=>{if(!_0x3d71e9['options']['showSuggestionHighlights'])return;const _0x33e9cc=_0x334999['item'];if(!_0x33e9cc)return;const _0x52f529=_0x3d71e9['mapper']['toViewElement'](_0x33e9cc);function _0xe60cac(_0x5eef72){return Array['isArray'](_0x5eef72)?_0x5eef72:[_0x5eef72];}_0x52f529&&'tableCell'===_0x33e9cc['name']&&_0x63d294(_0x52f529,_0x3d71e9['writer'],(_0x3197b3,_0x144e8d,_0x2bf1d3)=>_0x2bf1d3['addClass'](_0xe60cac(_0x144e8d['classes']),_0x3197b3),(_0x21a52d,_0x17d09e,_0x30afdb)=>_0x30afdb['removeClass'](_0xe60cac(_0x17d09e['classes']),_0x21a52d));},{'priority':'highest'}),_0x28abe2['descriptionFactory']['registerDescriptionCallback'](_0x4df445=>{if('insertion'!=_0x4df445['type']&&'deletion'!=_0x4df445['type'])return;const _0x377ac2=_0x4df445['getContainedElement']();if(null!=_0x377ac2&&_0x377ac2['is']('element','table')){if('insertion'==_0x4df445['type']){const _0x561206=_0x4df445['getItems']()['filter'](_0x10c621=>_0x10c621['is']('$textProxy'))['map'](_0x3901dc=>_0x3901dc['data']);if(_0x561206['length'])return{'type':'insertion','content':c(_0x1bad00,'*Insert:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x561206['join']('\x20')+'\x22'))};}if('deletion'==_0x4df445['type']){const _0x21ad63=_0x4df445['getItems']()['filter'](_0x22b1ff=>_0x22b1ff['is']('$textProxy'))['map'](_0x58ce8c=>_0x58ce8c['data']);if(_0x21ad63['length'])return{'type':'deletion','content':c(_0x1bad00,'*Remove:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x21ad63['join']('\x20')+'\x22'))};}}}),_0x28abe2['descriptionFactory']['registerDescriptionCallback'](_0x2a0abc=>{if('tableRow'==_0x2a0abc['subType']){const _0xaa9b78=_0x2a0abc['getItems']()['filter'](_0x115684=>_0x115684['is']('$textProxy'))['map'](_0x535aa3=>_0x535aa3['data']),_0xa5dee=this['_getSuggestionCoords'](_0x2a0abc),_0x1ed3cd=_0xa5dee['maxRow']-_0xa5dee['minRow']+0x1;if('insertion'==_0x2a0abc['type'])return _0xaa9b78['length']?{'type':'insertion','content':c(_0x1bad00,'*Insert:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1ed3cd,'\x22'+_0xaa9b78['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1bad00,'*Insert:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_ROW',_0x1ed3cd))};if('deletion'==_0x2a0abc['type'])return _0xaa9b78['length']?{'type':'deletion','content':c(_0x1bad00,'*Remove:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1ed3cd,'\x22'+_0xaa9b78['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1bad00,'*Remove:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_ROW',_0x1ed3cd))};}if('tableColumn'==_0x2a0abc['subType']){const _0x11cbe1=_0x2a0abc['getItems']()['filter'](_0x216425=>_0x216425['is']('$textProxy'))['map'](_0x2e9fba=>_0x2e9fba['data']),_0x55c22a=this['_getSuggestionCoords'](_0x2a0abc),_0x35c5ba=_0x55c22a['maxColumn']-_0x55c22a['minColumn']+0x1;if('insertion'==_0x2a0abc['type'])return _0x11cbe1['length']?{'type':'insertion','content':c(_0x1bad00,'*Insert:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x35c5ba,'\x22'+_0x11cbe1['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x1bad00,'*Insert:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_COLUMN',_0x35c5ba))};if('deletion'==_0x2a0abc['type'])return _0x11cbe1['length']?{'type':'deletion','content':c(_0x1bad00,'*Remove:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x35c5ba,'\x22'+_0x11cbe1['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x1bad00,'*Remove:*\x20%0',c(_0x1bad00,'ELEMENT_TABLE_COLUMN',_0x35c5ba))};}}),_0x28abe2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x42db65),_0x28abe2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x42db65),_0x28abe2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x445929),_0x28abe2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x445929),_0x28abe2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x345d84),_0x28abe2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x345d84),_0x28abe2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5cc46c),_0x28abe2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5cc46c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x33671b=this['editor'],_0x68625d=_0x33671b['model']['document']['selection'];return(_0x238dfd,_0x1d2b9a)=>{_0x33671b['model']['change'](_0xf235fb=>{const {commandName:_0x50a967,commandParams:_0x5d5445}=_0x1d2b9a;let _0x7ae8bd=_0x238dfd[0x0]['end']['nodeBefore'];_0x5d5445&&_0x5d5445[0x0]&&!0x1===_0x5d5445[0x0]['forceValue']&&(_0x7ae8bd=_0x238dfd[0x0]['start']['nodeAfter']);const _0x5b9fac=_0xf235fb['createRangeIn'](_0x7ae8bd);if('$graveyard'==_0x5b9fac['root']['rootName'])return;const _0x260b5=Array['from'](_0x68625d['getRanges']())['map'](_0x5d12ee=>_0x6b53b6['fromRange'](_0x5d12ee));_0xf235fb['setSelection'](_0x5b9fac),_0x33671b['commands']['get'](_0x50a967)['refresh'](),_0x5d5445['push']({'forceDefaultExecution':!0x0}),_0x33671b['execute'](_0x50a967,..._0x5d5445);const _0x54fc91=_0x260b5['filter'](_0x6b3759=>'$graveyard'!=_0x6b3759['root']['rootName']);_0x54fc91['length']>0x0&&_0xf235fb['setSelection'](_0x54fc91);for(const _0x29c578 of _0x260b5)_0x29c578['detach']();});};}['_getCoordsForCells'](_0x9ecf06){const _0x395b28=this['editor']['plugins']['get']('TableUtils');let _0x236a77=Number['MAX_SAFE_INTEGER'],_0x5355f4=Number['MIN_SAFE_INTEGER'],_0x11f2bb=Number['MAX_SAFE_INTEGER'],_0x201cc8=Number['MIN_SAFE_INTEGER'];for(const _0x4272cd of _0x9ecf06){if('$graveyard'==_0x4272cd['root']['rootName'])continue;const {row:_0x331d03,column:_0x1cc977}=_0x395b28['getCellLocation'](_0x4272cd),_0x4b7c3e=_0x4272cd['hasAttribute']('rowspan')?_0x4272cd['getAttribute']('rowspan')-0x1:0x0,_0x5059dc=_0x4272cd['hasAttribute']('colspan')?_0x4272cd['getAttribute']('colspan')-0x1:0x0;_0x236a77=_0x331d03<_0x236a77?_0x331d03:_0x236a77,_0x5355f4=_0x331d03+_0x4b7c3e>_0x5355f4?_0x331d03+_0x4b7c3e:_0x5355f4,_0x11f2bb=_0x1cc977<_0x11f2bb?_0x1cc977:_0x11f2bb,_0x201cc8=_0x1cc977+_0x5059dc>_0x201cc8?_0x1cc977+_0x5059dc:_0x201cc8;}return{'minRow':_0x236a77,'maxRow':_0x5355f4,'minColumn':_0x11f2bb,'maxColumn':_0x201cc8};}['_setupColumnsRowsFixing'](){const _0x473546=this['editor'],_0x1ea255=_0x473546['plugins']['get']('TrackChangesEditing'),_0x2ab439=_0x473546['plugins']['get']('TableUtils');_0x473546['model']['document']['on']('change:data',()=>{const _0x10453b=Array['from'](_0x473546['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x279521,data:_0x4c8ace}of _0x10453b){const {group:_0x307b30,id:_0x3a7ce3,subType:_0x3efc31}=_0x1ea255['_splitMarkerName'](_0x279521);if('suggestion'!=_0x307b30)continue;if(null!=_0x4c8ace['oldRange'])continue;const _0x328204=_0x1ea255['getSuggestion'](_0x3a7ce3);this['_tablePostFixingSubtypes']['includes'](_0x3efc31)&&this['_tableSuggestions']['add'](_0x328204);}},{'priority':'low'});const _0x2c3700=(_0x1ca25e,_0x38929d)=>{let _0x29d262=!0x1;const _0x3930a1=_0x38929d['createRangeOn'](_0x1ca25e),_0x179467=_0x1ca25e['findAncestor']('table'),_0x1abe0f=_0x2ab439['getCellLocation'](_0x1ca25e);for(const _0x5944eb of this['_tableSuggestions']){const _0x468dba=_0x5944eb['subType'],_0xa7a532=_0x468dba['startsWith']('tablePaste'),_0x212657=_0x468dba['substr'](_0xa7a532?0xa:0x5),_0x57fea7=_0x212657['toLowerCase'](),_0x19e70a=_0x57fea7['substr'](0x0,0x3)+'span',_0x277d84='min'+_0x212657,_0x2f0ade='max'+_0x212657;if(!_0x5944eb['isInContent'])continue;if(_0x179467!=_0x5944eb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5944eb['isIntersectingWithRange'](_0x3930a1))continue;const _0xc866aa=_0x1ca25e['hasAttribute'](_0x19e70a)?_0x1ca25e['getAttribute'](_0x19e70a)-0x1:0x0,_0x4202b6=this['_getSuggestionCoords'](_0x5944eb),_0x3ce6ac=_0x4202b6[_0x277d84],_0x446cf9=_0x4202b6[_0x2f0ade];_0x3ce6ac<=_0x1abe0f[_0x57fea7]&&_0x1abe0f[_0x57fea7]+_0xc866aa<=_0x446cf9&&(_0x5944eb['addRange'](_0x3930a1),_0x29d262=!0x0);}return _0x29d262;};_0x473546['model']['document']['registerPostFixer'](_0x558f6e=>{let _0x3243d8=!0x1;for(const _0xd3e8a3 of _0x473546['model']['document']['differ']['getChanges']())if('insert'==_0xd3e8a3['type']){if('tableRow'==_0xd3e8a3['name']){for(const _0x54c9a6 of _0xd3e8a3['position']['nodeAfter']['getChildren']())_0x3243d8=_0x3243d8||_0x2c3700(_0x54c9a6,_0x558f6e);}else'tableCell'==_0xd3e8a3['name']&&(_0x3243d8=_0x3243d8||_0x2c3700(_0xd3e8a3['position']['nodeAfter'],_0x558f6e));}return _0x3243d8;});}['_getSuggestionCoords'](_0x55a51e){return this['_getCoordsForCells'](_0x55a51e['getRanges']()['map'](_0x5ee454=>_0x5ee454['start']['nodeAfter']));}}function Ne(_0x4994a3){return Array['from'](new Set(_0x4994a3)['values']());}class Nt extends _0x54e516{static get['requires'](){return[Ct];}['afterInit'](){const _0x16f874=this['editor'],_0x1cfe17=_0x16f874['model']['document']['selection'],_0x189cec=_0x16f874['locale'];if(!_0x16f874['plugins']['has']('TableEditing'))return;const _0x2cdd17=_0x16f874['plugins']['get']('TrackChangesEditing'),_0x4a81c7=_0x16f874['plugins']['get']('TableUtils'),_0xfb8382=_0x16f874['plugins']['get'](Ct);_0xfb8382['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2cdd17['enableCommand']('mergeTableCells',()=>{const _0x339f00=_0x4a81c7['getSelectionAffectedTableCells'](_0x16f874['model']['document']['selection']);_0x16f874['model']['change'](()=>{_0x2cdd17['markMultiRangeBlockFormat'](_0x339f00,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x16f874['commands']['get']('mergeTableCells')['on']('execute',(_0x420ff3,_0x564416)=>{_0x16f874['commands']['get']('trackChanges')['value']&&(_0x564416['length']>0x0&&_0x564416[_0x564416['length']-0x1]&&_0x564416[_0x564416['length']-0x1]['forceDefaultExecution']||_0x2cdd17['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x420ff3['stop']());},{'priority':'highest'});for(const _0x18be57 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x31a9a9=_0x16f874['commands']['get'](_0x18be57);_0x2cdd17['enableCommand'](_0x18be57,()=>{const _0x4ce0da=_0x16f874['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x39e6ac=>_0x39e6ac['is']('element','tableCell')),_0x43fa91=_0x31a9a9['value'];_0x16f874['model']['change'](()=>{_0x2cdd17['markMultiRangeBlockFormat']([_0x4ce0da,_0x43fa91],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x15f509 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3caca8=_0x16f874['commands']['get'](_0x15f509);_0x2cdd17['enableCommand'](_0x15f509,()=>{const _0x301596=_0x4a81c7['getSelectionAffectedTableCells'](_0x16f874['model']['document']['selection'])[0x0],_0x2d3091=_0x301596['findAncestor']('table'),{column:_0x26dd1c,row:_0x4cf5cc}=_0x4a81c7['getCellLocation'](_0x301596);let _0x4a9622=[];if('horizontally'==_0x3caca8['direction']){const _0x50c070=_0x4a81c7['createTableWalker'](_0x2d3091,{'startRow':_0x4cf5cc,'endRow':_0x4cf5cc,'includeAllSlots':!0x0});_0x4a9622=Array['from'](_0x50c070)['map'](_0x5d32da=>_0x5d32da['cell']);}else{const _0x354c5c=_0x4a81c7['createTableWalker'](_0x2d3091,{'column':_0x26dd1c,'includeAllSlots':!0x0});_0x4a9622=Array['from'](_0x354c5c)['map'](_0x42c882=>_0x42c882['cell']);}_0x16f874['model']['change'](_0x14452b=>{_0x2cdd17['markBlockFormat'](_0x14452b['createRangeOn'](_0x301596),{'commandName':_0x15f509,'commandParams':[]},_0x4a9622,_0x15f509);});});}_0x2cdd17['descriptionFactory']['registerDescriptionCallback'](_0x29adb6=>{if('formatBlock'!=_0x29adb6['type']&&'formatInline'!=_0x29adb6['type'])return;const {data:_0x189612}=_0x29adb6;return _0x189612&&'mergeTableCells'==_0x189612['commandName']?{'type':'format','content':c(_0x189cec,'*Merge\x20cells*')}:void 0x0;}),_0x2cdd17['descriptionFactory']['registerDescriptionCallback'](_0x75c29e=>{if('formatBlock'!=_0x75c29e['type']&&'formatInline'!=_0x75c29e['type'])return;const {data:_0x49d675}=_0x75c29e;return _0x49d675?'splitTableCellVertically'==_0x49d675['commandName']?{'type':'format','content':c(_0x189cec,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x49d675['commandName']?{'type':'format','content':c(_0x189cec,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x40d4fb=_0xfb8382['_acceptFormatSuggestionCallbackFactory']();for(const _0xcc93db of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2cdd17['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xcc93db,'accept',_0x40d4fb);for(const _0x320b14 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2cdd17['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x320b14,'accept',_0x40d4fb);_0x2cdd17['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x446311=>{_0x16f874['model']['change'](_0x465ce3=>{const _0x4ff0f9=Array['from'](_0x1cfe17['getRanges']())['map'](_0x159b8a=>_0x6b53b6['fromRange'](_0x159b8a));_0x465ce3['setSelection'](_0x446311),_0x16f874['commands']['get']('mergeTableCells')['refresh'](),_0x16f874['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x138eb1=_0x4ff0f9['filter'](_0x3d142b=>'$graveyard'!=_0x3d142b['root']['rootName']);_0x138eb1['length']>0x0&&_0x465ce3['setSelection'](_0x138eb1);for(const _0x164206 of _0x4ff0f9)_0x164206['detach']();});});for(const _0x508bad of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x18249e=_0x16f874['commands']['get'](_0x508bad);_0x18249e['on']('set:isEnabled',(_0x569ebe,_0x1587a3,_0x303f0b)=>{if(_0x303f0b){const _0x444d01=_0x16f874['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d77cb=>_0x2d77cb['is']('element','tableCell'));this['_areMergableCells'](_0x18249e['value'],_0x444d01)||(_0x569ebe['return']=!0x1,_0x569ebe['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x15d2a8=this['editor']['commands']['get']('mergeTableCells'),_0xe898c4=this['editor']['plugins']['get']('TableUtils');if(!_0x15d2a8['isEnabled'])return!0x1;const _0x98e43a=_0xe898c4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x161a4b of _0x98e43a)for(const _0x557d56 of _0x98e43a)if(_0x161a4b!=_0x557d56&&!this['_areMergableCells'](_0x161a4b,_0x557d56))return!0x1;return!0x0;}['_areMergableCells'](_0x573c36,_0x2a9d78){const _0x344515=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e422f=this['editor']['model']['createRangeOn'](_0x573c36),_0x21ec30=this['editor']['model']['createRangeOn'](_0x2a9d78),_0x48fcce=new Set(),_0x6f1efb=new Set();for(const _0x259e81 of _0x344515['getSuggestions']())if(('insertion'==_0x259e81['type']||'deletion'==_0x259e81['type']||'mergeTableCells'==_0x259e81['subType'])&&_0x259e81['isInContent']){for(const _0x532854 of _0x259e81['getRanges']())_0x532854['containsRange'](_0x1e422f,!0x0)&&_0x48fcce['add'](_0x259e81['type']+':'+_0x259e81['author']['id']),_0x532854['containsRange'](_0x21ec30,!0x0)&&_0x6f1efb['add'](_0x259e81['type']+':'+_0x259e81['author']['id']);}if(_0x48fcce['size']!=_0x6f1efb['size'])return!0x1;for(const _0x19489b of _0x48fcce)if(!_0x6f1efb['has'](_0x19489b))return!0x1;return!0x0;}}class Dt extends _0x54e516{static get['requires'](){return[Ct];}['afterInit'](){const _0x1d7eb9=this['editor'];if(!_0x1d7eb9['plugins']['has']('TableEditing'))return;const _0x258e30=_0x1d7eb9['locale'],_0x103a0d=_0x1d7eb9['plugins']['get']('TrackChangesEditing');_0x103a0d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x103a0d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x103a0d['registerBlockAttribute']('headingRows'),_0x103a0d['registerBlockAttribute']('headingColumns'),_0x103a0d['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x258e30,'FORMAT_HEADER_ROW')),_0x103a0d['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x258e30,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x23c6ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4dfa16=this['editor']['plugins']['get']('TableUtils'),_0x2744a5=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x46d97a({showActiveMarker:_0x2055c3=!0x0,setDataAttribute:_0x42b2e5=!0x0}={}){return(_0x12dd40,_0x32456f,_0x5e20a4)=>{const {type:_0x1a5bff,id:_0x8300cb}=_0x23c6ca['_splitMarkerName'](_0x32456f['markerName']),_0xbc0a55=_0x23c6ca['getSuggestion'](_0x8300cb),_0x2e9699=_0xbc0a55['data'];if('formatBlock'!=_0xbc0a55['type']||!_0x2e9699||'setTableColumnHeader'!=_0x2e9699['commandName'])return;if(_0x32456f['item'])return void _0x12dd40['stop']();if(!_0x5e20a4['consumable']['consume'](_0x32456f['markerRange'],_0x12dd40['name']))return;const _0x51bc1a=_0x32456f['markerRange']['start']['nodeAfter'],_0x19875b=_0x32456f['markerRange']['end']['nodeBefore'],_0x3b242d=_0x51bc1a['parent']['parent'],{column:_0x134a9f}=_0x4dfa16['getCellLocation'](_0x51bc1a),{column:_0x1b090a}=_0x4dfa16['getCellLocation'](_0x19875b);for(let _0x2749f6=_0x134a9f;_0x2749f6<=_0x1b090a;_0x2749f6++){const _0x1bb56e=_0x4dfa16['createTableWalker'](_0x3b242d,{'column':_0x2749f6,'includeAllSlots':!0x1});for(const _0xff811d of _0x1bb56e){const _0x55d971=_0xff811d['cell'],_0x4786d2=_0x5e20a4['mapper']['toViewElement'](_0x55d971);_0x5e20a4['writer']['addClass']('ck-suggestion-marker-'+_0x1a5bff,_0x4786d2),_0x42b2e5&&_0x5e20a4['writer']['setAttribute']('data-suggestion',_0x8300cb,_0x4786d2),_0x5e20a4['mapper']['bindElementToMarker'](_0x4786d2,_0x32456f['markerName']),_0x2055c3&&(_0x23c6ca['activeMarkers']['includes'](_0x32456f['markerName'])?_0x5e20a4['writer']['addClass']('ck-suggestion-marker--active',_0x4786d2):_0x5e20a4['writer']['removeClass']('ck-suggestion-marker--active',_0x4786d2));}}};}_0x23c6ca['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2744a5),_0x23c6ca['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2744a5),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x46d97a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d595f,_0x2359f3,_0x2f5695)=>{_0x2f5695['options']['showSuggestionHighlights']&&_0x46d97a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2d595f,_0x2359f3,_0x2f5695);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4d32c6,_0x34d5d3,_0x1a62f9)=>{const {type:_0x1a7cd7,id:_0x411ecf}=_0x23c6ca['_splitMarkerName'](_0x34d5d3['markerName']),_0x8a031e=_0x23c6ca['getSuggestion'](_0x411ecf),_0x1fcbb0=_0x8a031e['data'];if('formatBlock'!=_0x8a031e['type']||!_0x1fcbb0||'setTableColumnHeader'!=_0x1fcbb0['commandName'])return;const _0x452d5a=_0x1a62f9['mapper']['markerNameToElements'](_0x34d5d3['markerName']);if(_0x452d5a){for(const _0x33ddf4 of _0x452d5a)_0x1a62f9['writer']['removeClass']('ck-suggestion-marker-'+_0x1a7cd7,_0x33ddf4),_0x1a62f9['writer']['removeClass']('ck-suggestion-marker--active',_0x33ddf4),_0x1a62f9['writer']['removeAttribute']('data-suggestion',_0x33ddf4),_0x1a62f9['mapper']['unbindElementFromMarkerName'](_0x33ddf4,_0x34d5d3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bba6f=this['editor'],_0x4b30f4=_0x3bba6f['locale'];function _0x5d333e(_0x3d2517){return{'type':'format','content':c(_0x4b30f4,'*Format:*\x20%0',_0x3d2517)};}_0x3bba6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38d3f4=>{if('formatBlock'!=_0x38d3f4['type'])return;const {data:_0x516279}=_0x38d3f4;if(_0x516279){if('setTableRowHeader'==_0x516279['commandName']){const _0x112282=_0x516279['commandParams'][0x0]['forceValue'];return _0x5d333e(c(_0x4b30f4,_0x112282?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x516279['commandName']){const _0x369a18=_0x516279['commandParams'][0x0]['forceValue'];return _0x5d333e(c(_0x4b30f4,_0x369a18?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x593270=>[_0x593270,null]));class Mt extends _0x54e516{static get['requires'](){return[Ct];}['afterInit'](){const _0x3c0d57=this['editor'];if(!_0x3c0d57['plugins']['has']('TableClipboard'))return;const _0x417ed4=_0x3c0d57['plugins']['get']('TrackChangesEditing'),_0x36ce93=_0x3c0d57['plugins']['get']('TableUtils'),_0x3a5d4f=_0x3c0d57['plugins']['get'](Ct),_0x5b2b9d=_0x3c0d57['plugins']['get']('TableClipboard');_0x3a5d4f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3c0d57['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3c0d57['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x36d71f=null;_0x3c0d57['model']['on']('insertContent',(_0x397315,_0x2c689e)=>{const [_0x46e92b,_0x53a959]=_0x2c689e,_0x14a6fe=_0x2c689e[_0x2c689e['length']-0x1];_0x14a6fe&&_0x14a6fe['forceDefaultExecution']||_0x417ed4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xf9ff36,_0x363ab6,_0x6767a0,_0x435ed3,_0x34411b){if(_0x363ab6&&!_0x363ab6['is']('documentSelection'))return!0x1;const _0x26d85e=_0x34411b['getTableIfOnlyTableInContent'](_0xf9ff36,_0x6767a0);if(!_0x26d85e||!Ue(_0x26d85e,void 0x0,_0x435ed3))return!0x1;const _0x34e2ef=_0x435ed3['getSelectionAffectedTableCells'](_0x6767a0['document']['selection']);if(!_0x34e2ef['length'])return!0x1;const _0x4f61ca=_0x34e2ef[0x0]['findAncestor']('table'),_0x91d11f=_0x435ed3['getRowIndexes'](_0x34e2ef),_0x1f6001=_0x435ed3['getColumnIndexes'](_0x34e2ef),_0x5dfe6c={'startRow':_0x91d11f['first'],'endRow':_0x91d11f['last'],'startColumn':_0x1f6001['first'],'endColumn':_0x1f6001['last']};return 0x1==_0x34e2ef['length']&&(_0x5dfe6c['endRow']+=_0x435ed3['getRows'](_0x26d85e)-0x1,_0x5dfe6c['endColumn']+=_0x435ed3['getColumns'](_0x26d85e)-0x1),Ue(_0x4f61ca,_0x5dfe6c,_0x435ed3);}(_0x46e92b,_0x53a959,_0x3c0d57['model'],_0x36ce93,_0x5b2b9d)&&(_0x397315['stop'](),_0x36d71f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3c0d57['model']['change'](()=>{_0x3c0d57['model']['insertContent'](_0x2c689e[0x0],_0x2c689e[0x1],_0x2c689e[0x2],{'forceDefaultExecution':!0x0});const _0x506bd0=_0x5310dd(),{rowInsertionRanges:_0x50af2a,columnInsertionRanges:_0x5c52a8,insertionRanges:_0x3fdfd9,deletionRanges:_0x3e9b2d,cells:_0x136596}=_0x36d71f;_0x50af2a['length']&&_0x417ed4['markMultiRangeInsertion'](_0x50af2a,'tablePasteRow',{'tablePasteChainId':_0x506bd0}),_0x5c52a8['length']&&_0x417ed4['markMultiRangeInsertion'](_0x5c52a8,'tablePasteColumn',{'tablePasteChainId':_0x506bd0}),_0x3fdfd9['length']&&(_0x417ed4['markMultiRangeInsertion'](_0x3fdfd9,'tablePaste',{'tablePasteChainId':_0x506bd0,'skipNestingCheck':!0x0}),_0x3fdfd9['forEach'](_0x1c7bc5=>_0x1c7bc5['detach']?.())),_0x3e9b2d['length']&&(_0x417ed4['markMultiRangeDeletion'](_0x3e9b2d,'tablePaste',{'tablePasteChainId':_0x506bd0,'skipNestingCheck':!0x0}),_0x3e9b2d['forEach'](_0x5e2a85=>_0x5e2a85['detach']?.()));const _0x5aac76=_0x417ed4['markMultiRangeBlockFormat'](_0x136596['map'](({element:_0x50c006})=>_0x50c006),{'formatGroupId':_0x5310dd()},[],'tablePasteCell',{'tablePasteChainId':_0x506bd0});if(_0x5aac76){const _0x24043c=_0x5aac76['getMarkers'](),_0x1b890f=[];for(const {element:_0x2ab80d,attributes:_0x59def1}of _0x136596){if(!_0x59def1)continue;const _0x5351de=_0x3c0d57['model']['createRangeOn'](_0x2ab80d),_0x8055f6=_0x24043c['find'](_0x5c71fe=>_0x5c71fe['getRange']()['isEqual'](_0x5351de));_0x8055f6&&_0x1b890f['push']([_0x8055f6['name'],_0x59def1]);}_0x1b890f['length']&&_0x5aac76['setAttribute']('markerAttributes',Object['fromEntries'](_0x1b890f));}_0x36d71f=null;}));},{'priority':_0x2800bb['high']+0xa}),_0x3c0d57['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4649f3,_0x42c700)=>{const [_0x3bac00,_0x5b588b,,_0x53c5fb]=_0x42c700;if(!_0x36d71f)return;_0x4649f3['stop']();const _0x37acf5=_0x3bac00['cell'],_0x30f77b=_0x5b588b,_0x58cdb6=Oe(_0x37acf5),_0x368b2e=Oe(_0x30f77b);_0x4649f3['return']=_0x37acf5;let _0x512c77=null,_0x46c362=null;if(_0x368b2e||_0x58cdb6){if(_0x58cdb6&&!_0x368b2e){_0x53c5fb['remove'](_0x37acf5['getChild'](0x0));for(const _0x698492 of Array['from'](_0x30f77b['getChildren']()))_0x53c5fb['insert'](_0x698492,_0x37acf5,'end');const _0x5287ea=_0x36d71f['rowInsertionIndexes']['includes'](_0x3bac00['row']),_0x53ad88=_0x36d71f['columnInsertionIndexes']['includes'](_0x3bac00['column']);_0x5287ea||_0x53ad88||(_0x512c77=_0x6b53b6['fromRange'](_0x53c5fb['createRangeIn'](_0x37acf5)));}else _0x368b2e&&!_0x58cdb6&&(_0x46c362=_0x53c5fb['createRangeIn'](_0x37acf5));}else{const _0x2bf929=_0x53c5fb['createElement']('tableCellSuggestion'),_0x4d6c06=_0x53c5fb['createElement']('tableCellSuggestion');_0x53c5fb['wrap'](_0x53c5fb['createRangeIn'](_0x37acf5),_0x4d6c06),_0x53c5fb['insert'](_0x2bf929,_0x37acf5,0x0);for(const _0x1dac04 of Array['from'](_0x30f77b['getChildren']()))_0x53c5fb['insert'](_0x1dac04,_0x2bf929,'end');_0x512c77=_0x6b53b6['fromRange'](_0x53c5fb['createRangeOn'](_0x2bf929)),_0x46c362=_0x6b53b6['fromRange'](_0x53c5fb['createRangeOn'](_0x4d6c06));}const _0x3b90fe=Array['from'](_0x30f77b['getAttributes']())['filter'](([_0x4a4a3c])=>Be['includes'](_0x4a4a3c));_0x36d71f['cells']['push']({'element':_0x37acf5,'attributes':_0x3b90fe['length']?Object['fromEntries'](_0x3b90fe):null}),_0x512c77&&_0x36d71f['insertionRanges']['push'](_0x512c77),_0x46c362&&_0x36d71f['deletionRanges']['push'](_0x46c362);},{'priority':'high'}),_0x36ce93['on']('insertColumns',(_0x398cbe,_0x2c0855)=>{const [_0x32d4d2,_0x250bb4={}]=_0x2c0855;if(!_0x36d71f)return;const _0x2dc524=_0x250bb4['at']||0x0,_0x51aed9=_0x250bb4['columns']||0x1;_0x36d71f['columnInsertionIndexes']=new Array(_0x51aed9)['fill'](_0x2dc524)['map']((_0x4255bc,_0x40eae7)=>_0x4255bc+_0x40eae7);for(const {cell:_0x3ecffa}of _0x36ce93['createTableWalker'](_0x32d4d2,{'startColumn':_0x2dc524,'endColumn':_0x2dc524+_0x51aed9-0x1}))_0x36d71f['columnInsertionRanges']['push'](_0x3c0d57['model']['createRangeOn'](_0x3ecffa));},{'priority':'low'}),_0x36ce93['on']('insertRows',(_0x368771,_0x2a1c9b)=>{const [_0x394a3b,_0x46ce80={}]=_0x2a1c9b;if(!_0x36d71f)return;const _0x226871=_0x46ce80['at']||0x0,_0x59a2b9=_0x46ce80['rows']||0x1;_0x36d71f['rowInsertionIndexes']=new Array(_0x59a2b9)['fill'](_0x226871)['map']((_0x4f0179,_0x4335d1)=>_0x4f0179+_0x4335d1);for(const {cell:_0x5e8dbf}of _0x36ce93['createTableWalker'](_0x394a3b,{'startRow':_0x226871,'endRow':_0x226871+_0x59a2b9-0x1}))_0x36d71f['rowInsertionRanges']['push'](_0x3c0d57['model']['createRangeOn'](_0x5e8dbf));},{'priority':'low'}),_0x417ed4['descriptionFactory']['registerDescriptionCallback'](_0x1235de=>{if(_0x1235de['subType']&&_0x1235de['subType']['startsWith']('tablePaste'))return _0x1235de['previous']?{}:{'type':'insertion','content':c(_0x3c0d57['locale'],'*Replace\x20table\x20cells*')};});const _0x50a128=()=>!0x1;for(const _0x51926b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x417ed4['_suggestionFactory']['registerCustomCallback']('insertion',_0x51926b,'join',_0x50a128),_0x417ed4['_suggestionFactory']['registerCustomCallback']('deletion',_0x51926b,'join',_0x50a128),_0x417ed4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x51926b,'join',_0x50a128);_0x417ed4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x50a128),_0x417ed4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3994d3,_0x3755e5,_0x4f4018)=>{const _0x23f182=_0x3994d3['map'](_0x55f569=>_0x55f569['getContainedElement']())['filter'](_0x3e0522=>_0x3e0522),_0x3dfcd8=new Map(_0x23f182['map'](_0x16059f=>[_0x16059f,null]));if(_0x36d71f){for(const {element:_0x420b9e,attributes:_0x53cee3}of _0x36d71f['cells'])_0x53cee3&&_0x3dfcd8['set'](_0x420b9e,_0x53cee3);}else{if(_0x4f4018&&_0x4f4018['markerAttributes'])for(const [_0x1cbc5b,_0x1d81d2]of Object['entries'](_0x4f4018['markerAttributes'])){const _0x52e044=_0x3c0d57['model']['markers']['get'](_0x1cbc5b),_0x12f7d9=_0x52e044?_0x52e044['getRange']()['getContainedElement']():null;_0x12f7d9&&_0x3dfcd8['set'](_0x12f7d9,_0x1d81d2);}}_0x3c0d57['model']['change'](_0x3c28be=>{for(const [_0x3105b9,_0x5d71c1]of _0x3dfcd8)_0x3c28be['setAttributes']({...xe,..._0x5d71c1},_0x3105b9);});});const _0x26af16=(_0x2aebd4,_0x307705)=>{_0x417ed4['_suggestionFactory']['registerCustomCallback'](_0x2aebd4,'tablePaste',_0x307705,(_0x167e3e,_0x35bab5,_0x302706)=>{_0x3c0d57['model']['change'](_0x4e2f07=>{const _0x11bc43=[];for(const _0x29e830 of _0x167e3e){const _0x45383c=_0x29e830['start']['nodeAfter'];_0x45383c['is']('element','tableCellSuggestion')&&_0x11bc43['push'](_0x45383c);}_0x417ed4['_suggestionFactory']['getSuggestionCallback'](_0x2aebd4,null,_0x307705)(_0x167e3e,_0x35bab5,_0x302706);for(const _0x1f794a of _0x11bc43)'$graveyard'!=_0x1f794a['root']['rootName']&&_0x4e2f07['unwrap'](_0x1f794a);});});};_0x26af16('insertion','accept'),_0x26af16('insertion','discard'),_0x26af16('deletion','accept'),_0x26af16('deletion','discard'),_0x417ed4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x56a900=>{const _0x2b56d0=_0x56a900['map'](_0x92b069=>_0x92b069['getContainedElement']()),_0x158c28=_0x2b56d0[0x0]['findAncestor']('table'),{minRow:_0x495106,maxRow:_0x47793e}=_0x3a5d4f['_getCoordsForCells'](_0x2b56d0);_0x36ce93['removeRows'](_0x158c28,{'at':_0x495106,'rows':_0x47793e-_0x495106+0x1});}),_0x417ed4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x480e9a=>{const _0x6a1677=_0x480e9a['map'](_0x288893=>_0x288893['getContainedElement']()),_0x69e176=_0x6a1677[0x0]['findAncestor']('table'),{minColumn:_0x23d9df,maxColumn:_0x168ff0}=_0x3a5d4f['_getCoordsForCells'](_0x6a1677);_0x36ce93['removeColumns'](_0x69e176,{'at':_0x23d9df,'columns':_0x168ff0-_0x23d9df+0x1});});const _0x1d79f1=(_0x205450,_0x525376)=>{if(!_0x525376['subType']||!_0x525376['subType']['startsWith']('tablePaste'))return;const _0x5b96e2=_0x525376['attributes']['tablePasteChainId'],_0x3beac1=_0x417ed4['getSuggestions']()['filter'](_0x33a56b=>_0x33a56b['isInContent']&&_0x33a56b['attributes']&&_0x33a56b['attributes']['tablePasteChainId']==_0x5b96e2);_0x3beac1['length']&&_0x525376['getAllAdjacentSuggestions']()['length']!=_0x3beac1['length']&&_0x3beac1['reduce']((_0xd4bcbf,_0x45776f)=>(_0xd4bcbf['next']=_0x45776f,_0x45776f['previous']=_0xd4bcbf,_0x45776f));};function _0x1f763d(_0x444160,_0x33b2ba=!0x0){const {id:_0x728fba,authorId:_0xe11c63}=_0x417ed4['_splitMarkerName'](_0x444160['markerName']),_0x4d13c1=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x494dc2=_0x417ed4['activeMarkers']['includes'](_0x444160['markerName']);return _0x494dc2&&_0x4d13c1['push']('ck-suggestion-marker--active'),{'classes':_0x4d13c1,'attributes':{'data-suggestion':_0x728fba,'data-author-id':_0xe11c63},'priority':_0x494dc2&&_0x33b2ba?0xbc2:0xbb8};}_0x417ed4['on']('suggestionLoaded',_0x1d79f1,{'priority':'high'}),_0x417ed4['on']('suggestionUnloaded',_0x1d79f1,{'priority':'high'}),_0x3c0d57['model']['document']['registerPostFixer'](()=>{let _0x3863fc=!0x1;const _0x41a261=Array['from'](_0x3c0d57['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x147ef6,data:_0x23c08d}of _0x41a261){const {group:_0x15ee5b,type:_0x2feadf,id:_0x3e2ca0}=_0x417ed4['_splitMarkerName'](_0x147ef6);if('suggestion'!=_0x15ee5b||'deletion'!=_0x2feadf||_0x23c08d['oldRange'])continue;if(!_0x417ed4['hasSuggestion'](_0x3e2ca0))continue;const _0x306b77=_0x417ed4['getSuggestion'](_0x3e2ca0)['getRanges'](),_0xf22f22=_0x3c0d57['plugins']['get']('Users')['me'];for(const _0x306831 of _0x417ed4['getSuggestions']()){if(!_0x306831['isInContent']||_0x306831['author']!=_0xf22f22)continue;if('formatBlock'!=_0x306831['type']||'tablePasteCell'!=_0x306831['subType'])continue;if(_0x306831['getRanges']()['every'](_0x5cd5b0=>_0x306b77['some'](_0x537f5e=>_0x537f5e['containsRange'](_0x5cd5b0,!0x0)))){for(const _0x2a53a9 of _0x306831['getAllAdjacentSuggestions']())_0x2a53a9['isInContent']&&(_0x2a53a9['discard'](),_0x3863fc=!0x0);}}}return _0x3863fc;}),_0x3c0d57['model']['document']['registerPostFixer'](_0x5768e0=>{const _0x49b519=_0x3c0d57['commands']['get']('redo');if(!_0x49b519||!_0x49b519['_createdBatches']['has'](_0x5768e0['batch']))return!0x1;let _0x216185=!0x1;const _0xa23237=_0x3c0d57['plugins']['get']('Users')['me'],_0x52d263=_0x3c0d57['model']['document']['differ']['getChanges'](),_0x5124ec=Array['from'](_0x3c0d57['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4693ba,data:_0x56d024})=>{const {group:_0x20e584,subType:_0x4301ad,authorId:_0x4ab268}=_0x417ed4['_splitMarkerName'](_0x4693ba);return'suggestion'==_0x20e584&&'tablePaste'==_0x4301ad&&_0x4ab268==_0xa23237['id']&&!_0x56d024['oldRange'];});for(const _0x35a309 of _0x52d263){if('insert'!=_0x35a309['type']||'tableCellSuggestion'!=_0x35a309['name']||0x1!=_0x35a309['length'])continue;const _0x326979=_0x5768e0['createRange'](_0x35a309['position'],_0x35a309['position']['getShiftedBy'](0x1));if(!_0x5124ec['find'](({data:_0x54e454})=>_0x54e454['newRange']['isEqual'](_0x326979))){for(const {name:_0x461ce0,data:_0x2e9df0}of _0x5124ec)if(_0x326979['containsRange'](_0x2e9df0['newRange'])){_0x5768e0['updateMarker'](_0x461ce0,{'range':_0x326979}),_0x216185=!0x0;break;}}}return _0x216185;}),_0x3c0d57['model']['document']['registerPostFixer'](_0x1147f1=>{let _0x468758=!0x1;const _0x538c96=_0x3c0d57['plugins']['get']('Users')['me'],_0x15ced6=_0x417ed4['getSuggestions']()['filter'](_0x426a27=>_0x426a27['isInContent']&&_0x426a27['author']==_0x538c96),_0x3cc81b=new Set(),_0x254a6b=new Set();for(const _0x2bb7c4 of _0x15ced6)if('tablePaste'==_0x2bb7c4['subType'])for(const _0x218e21 of _0x2bb7c4['getMarkers']()){const _0x470ed5=_0x218e21['getRange']()['getContainedElement']();if(_0x470ed5){if(_0x470ed5['is']('element','tableCellSuggestion')&&Oe(_0x470ed5)){_0x2bb7c4['removeMarker'](_0x218e21['name']),_0x3cc81b['add'](_0x470ed5),_0x468758=!0x0;const _0x523e6f=_0x470ed5['nextSibling'],_0xab002b=_0x470ed5['previousSibling'],_0x13efb2=_0x523e6f&&_0x523e6f['is']('element','tableCellSuggestion'),_0x4ce264=_0xab002b&&_0xab002b['is']('element','tableCellSuggestion');_0x13efb2&&!_0x3cc81b['has'](_0x523e6f)&&_0x254a6b['add'](_0x523e6f),_0x4ce264&&!_0x3cc81b['has'](_0xab002b)&&_0x254a6b['add'](_0xab002b);}else _0x470ed5['is']('element','paragraph')&&_0x470ed5['isEmpty']&&(_0x2bb7c4['removeMarker'](_0x218e21['name']),_0x468758=!0x0);}}else{if('tablePasteCell'==_0x2bb7c4['subType']){if(!_0x2bb7c4['attributes']||!_0x2bb7c4['attributes']['tablePasteChainId'])continue;const _0x2e3eaf=_0x2bb7c4['attributes']['markerAttributes'];if(_0x2e3eaf&&Object['keys'](_0x2e3eaf)['length'])continue;const _0x2ecf09=_0x2bb7c4['attributes']['tablePasteChainId'];let _0x4c4d60=!0x0,_0x367165=!0x0;for(const _0x18db75 of _0x15ced6)if(_0x18db75['subType']&&_0x18db75['subType']['startsWith']('tablePaste')){if(!_0x18db75['attributes']['tablePasteChainId']){_0x367165=!0x1;break;}if(_0x18db75['id']!=_0x2bb7c4['id']&&_0x18db75['attributes']['tablePasteChainId']==_0x2ecf09){_0x4c4d60=!0x1;break;}}_0x367165&&_0x4c4d60&&(_0x2bb7c4['removeMarkers'](),_0x468758=!0x0);}}for(const _0x3d80e1 of _0x3cc81b)_0x1147f1['remove'](_0x3d80e1);for(const _0x1d3c5e of _0x254a6b)_0x1147f1['unwrap'](_0x1d3c5e);return _0x468758;}),_0x3c0d57['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x56a836=>_0x1f763d(_0x56a836),'converterPriority':'high'}),_0x3c0d57['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x178470,_0x38f9b7)=>_0x38f9b7['options']['showSuggestionHighlights']?_0x1f763d(_0x178470,!0x1):null,'converterPriority':'high'});const _0x27a881=_0x3c0d57['editing']['view'];this['listenTo'](_0x27a881['document'],'clipboardOutput',(_0xa38c5d,_0x3b5b82)=>{const _0xf563d9=[];for(const _0xa5d82f of _0x27a881['createRangeIn'](_0x3b5b82['content'])['getItems']())_0xa5d82f['is']('element','suggestion-td')&&_0xf563d9['push'](_0xa5d82f);_0x27a881['change'](_0x540864=>{for(const _0xdbac5a of _0xf563d9)_0x540864['move'](_0x540864['createRangeIn'](_0xdbac5a),_0x540864['createPositionBefore'](_0xdbac5a)),_0x540864['remove'](_0xdbac5a);});});}}function Oe(_0xf166b4){if(_0xf166b4['isEmpty'])return!0x0;const _0xa19683=_0xf166b4['getChild'](0x0);return _0xa19683['is']('element','paragraph')&&_0xa19683['isEmpty'];}function Ue(_0x89ffb9,_0x33538a={},_0x18395b){for(const {isAnchor:_0x4cb5c3,cellHeight:_0x1dc547,cellWidth:_0x57f88d}of _0x18395b['createTableWalker'](_0x89ffb9,{'includeAllSlots':!0x0,..._0x33538a}))if(!_0x4cb5c3||0x1!=_0x1dc547||0x1!=_0x57f88d)return!0x1;return!0x0;}class $t extends _0x54e516{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x37afda=this['editor']['plugins']['get']('TrackChangesEditing');_0x37afda['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x37afda['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x37afda['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x37afda['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x37afda['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x37afda['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x87ed47,_0x36fc61){const _0x2c46e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c0cc6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x11828f=_0x36fc61['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2be5c7=_0x2c0cc6['getColumnGroupElement'](_0x11828f);let _0x146d30=_0x2be5c7?_0x2c0cc6['getTableColumnsWidths'](_0x2be5c7):null,_0x4e5401=_0x11828f['getAttribute']('tableWidth')||null;const _0x315e7f=_0x36fc61['tableWidth']||_0x4e5401,_0x4e9b60=_0x36fc61['columnWidths']||_0x146d30,_0x11824e=this['editor']['plugins']['get']('Users')['me'];for(const _0x48e76a of _0x2c46e5['getSuggestions']()){const _0x1daa20=_0x48e76a['getContainedElement']();if('resizeTable'===_0x48e76a['subType']&&_0x1daa20===_0x11828f){_0x48e76a['author']!==_0x11824e&&_0x48e76a['discard']();const _0x42bcec=_0x48e76a['data']['commandParams'];_0x4e5401=_0x42bcec[0x0]['tableWidth'],_0x146d30=_0x42bcec[0x0]['columnWidths'];break;}}_0x87ed47({'table':_0x11828f,'tableWidth':_0x315e7f,'columnWidths':_0x4e9b60}),_0x2c46e5['markBlockFormat'](_0x11828f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4e5401,'columnWidths':_0x146d30}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x54d51e){if('formatBlock'!=_0x54d51e['type']&&'formatInline'!=_0x54d51e['type'])return;const {data:_0x1d7a56}=_0x54d51e;if(_0x1d7a56&&'resizeTable'===_0x1d7a56['formatGroupId']){const _0x384960='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x384960)};}}}class Bt extends _0x54e516{['afterInit'](){const _0x310a83=this['editor'];_0x310a83['plugins']['has']('Template')&&_0x310a83['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x54e516{['afterInit'](){const _0x19a4e4=this['editor'];if(!_0x19a4e4['commands']['get']('insertTableOfContents'))return;_0x19a4e4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x123976=_0x19a4e4['plugins']['get']('TrackChangesEditing'),_0x3a2b4c=_0x19a4e4['locale'];_0x123976['descriptionFactory']['registerElementLabel']('tableOfContents',_0x478182=>c(_0x3a2b4c,'ELEMENT_TABLE_OF_CONTENTS',_0x478182));}}class Rt extends _0x54e516{['afterInit'](){const _0x1509bf=this['editor'];if(!_0x1509bf['plugins']['has']('Title'))return;const _0x1d051f=_0x1509bf['plugins']['get']('TrackChangesEditing');_0x1d051f['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x1509bf['locale'],'ELEMENT_TITLE')),_0x1509bf['model']['document']['registerPostFixer'](_0x26ce2a=>{let _0x1e2dfc=!0x1;const _0x4f0d81=Array['from'](_0x1509bf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3743f8,data:_0x555a27}of _0x4f0d81){const {group:_0x29de50}=_0x1d051f['_splitMarkerName'](_0x3743f8);if('suggestion'!==_0x29de50||!_0x555a27['newRange'])continue;const _0x5a923b=_0x555a27['newRange'],_0x2e0096=_0x5a923b['end']['nodeBefore'];if(!_0x2e0096||!_0x2e0096['is']('element','title-content'))continue;if(!_0x5a923b['start']['isTouching'](_0x5a923b['end']))continue;const _0x599c77=_0x1509bf['model']['schema']['getNearestSelectionRange'](_0x5a923b['end'],'forward');if(_0x599c77&&_0x599c77['isCollapsed']){const _0x533b33=_0x26ce2a['createRange'](_0x5a923b['start'],_0x599c77['start']);_0x533b33['isEqual'](_0x5a923b)||(_0x26ce2a['updateMarker'](_0x3743f8,{'range':_0x533b33}),_0x1e2dfc=!0x0);}_0x1e2dfc||(_0x26ce2a['removeMarker'](_0x3743f8),_0x1e2dfc=!0x0);}return _0x1e2dfc;});}}class xt extends _0x54e516{['afterInit'](){const _0x1c0bc3=this['editor'],_0x3cf4f8=_0x1c0bc3['plugins']['get']('TrackChangesEditing');_0x1c0bc3['plugins']['has']('Uploadcare')&&(_0x3cf4f8['enableCommand']('uploadcare'),_0x1c0bc3['plugins']['has']('UploadcareImageEdit')&&(_0x3cf4f8['enableCommand']('uploadcareImageEdit'),_0x3cf4f8['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3cf4f8['registerBlockAttribute']('uploadcareImageId'),_0x3cf4f8['descriptionFactory']['registerDescriptionCallback'](_0x19775f=>{if('attribute'!=_0x19775f['type'])return;const {data:_0xa4f5c0}=_0x19775f;return _0xa4f5c0&&'uploadcareImageId'==_0xa4f5c0['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x54e516{['afterInit'](){const _0x313f25=this['editor'],_0x1d7a6b=_0x313f25['plugins']['get']('TrackChangesEditing');_0x313f25['plugins']['has']('UndoEditing')&&(_0x1d7a6b['enableCommand']('undo'),_0x1d7a6b['enableCommand']('redo'));}}class Et extends _0x54e516{static get['requires'](){return[Ct];}['afterInit'](){const _0x1b9650=this['editor'];if(!_0x1b9650['plugins']['has']('TableCaptionEditing'))return;_0x1b9650['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x54e516{['tableProperties'];['tableCellProperties'];constructor(_0x103880){super(_0x103880),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x34940b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2f6621 of this['tableProperties'])_0x34940b['enableCommand'](_0x2f6621,(_0x6f244e,_0x133526)=>{const _0x596914=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2f6621,[_0x596914],this['tableProperties'],'tableProperties',_0x6f244e,_0x133526);});_0x34940b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x34940b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34940b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3e786c,_0xe7a2f0)=>this['handleDiscardAction'](this['tableProperties'],_0x3e786c,_0xe7a2f0)),_0x34940b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xc8ab38 of this['tableCellProperties'])_0x34940b['enableCommand'](_0xc8ab38,(_0x2b3db3,_0x353a2d)=>{const _0x9f2226=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xc8ab38,_0x9f2226,this['tableCellProperties'],'tableCellProperties',_0x2b3db3,_0x353a2d);});_0x34940b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x34940b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34940b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2b8c07,_0x1074d5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2b8c07,_0x1074d5)),_0x34940b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x34940b['descriptionFactory']['registerDescriptionCallback'](_0x39809f=>this['handleSuggestionDescription'](_0x39809f));}['_handlePropertyChange'](_0x36d99a,_0x314aa9,_0x479580,_0x222a44,_0x36961a,_0x5add81){const _0x1d3485=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5add81['batch'],()=>{for(const _0x43996c of _0x314aa9){if(this['_getSuggestion'](_0x43996c,_0x222a44))_0x36961a(_0x5add81);else{const _0x2a2260={};for(const _0x3f3572 of _0x479580){const _0x261840=_0x43996c['getAttribute'](_0x3f3572);void 0x0!==_0x261840&&(_0x2a2260[_0x3f3572]=_0x261840);}_0x36961a(_0x5add81),_0x1d3485['markBlockFormat'](_0x43996c,{'commandParams':[_0x2a2260]},[],_0x222a44);}}});}['handleDiscardAction'](_0x3c4070,_0x3a1e4,_0x2cc784){const _0x4d7c48=_0x3a1e4[0x0]['start']['nodeAfter'],_0x574e9f=_0x2cc784['commandParams'][0x0];this['editor']['model']['change'](_0x32f683=>{for(const _0x5d1041 of _0x3c4070)void 0x0!==_0x574e9f[_0x5d1041]?_0x32f683['setAttribute'](_0x5d1041,_0x574e9f[_0x5d1041],_0x4d7c48):_0x32f683['removeAttribute'](_0x5d1041,_0x4d7c48);});}['handleSuggestionDescription'](_0x1fcde6){if(_0x1fcde6['data'])switch(_0x1fcde6['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xe58193,_0x2a39b2){const _0x1898d1=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1f69e5 of _0x1898d1['getSuggestions']({'skipNotAttached':!0x0})){const _0x38350e=_0x1f69e5['getContainedElement']();if(_0x1f69e5['subType']===_0x2a39b2&&_0x38350e===_0xe58193)return _0x1f69e5;}return null;}}const u='$elementName';class p extends _0x54e516{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x25323f,_0x5cb8b7,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57f53e){super(_0x57f53e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3f9304,_0x12b8e0,_0x3d7813,_0x387fc2)=>{this['_model']['change'](()=>{for(const _0x514a79 of[..._0x387fc2,..._0x3d7813])this['_model']['markers']['has'](_0x514a79)&&_0x57f53e['editing']['reconvertMarker'](_0x514a79);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x57f53e['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x57f53e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x57f53e['config']['get']('trackChanges.trackFormatChanges'),_0x57f53e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x57f53e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x57f53e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x236a90=this['editor'],_0x522909=(_0x5cfb83,_0x554f57)=>{if('attribute'!=_0x5cfb83)return'ck-suggestion-marker-'+_0x5cfb83;const _0x21e6a1=_0x554f57['split']('|')[0x0];return this['_isBlockAttribute'](_0x21e6a1)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x236a90['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4f1f66=>{const {id:_0x33d03c,authorId:_0x4d1cd8,type:_0x56cb5c,subType:_0xcbce7f}=this['_splitMarkerName'](_0x4f1f66['markerName']),_0x2c8ba9=['ck-suggestion-marker',_0x522909(_0x56cb5c,_0xcbce7f)];let _0x7cbba8=0xbb8;return this['activeMarkers']['includes'](_0x4f1f66['markerName'])&&(_0x2c8ba9['push']('ck-suggestion-marker--active'),_0x7cbba8=0xbc2),'deletion'==_0x56cb5c&&(_0x7cbba8+=0x5),{'classes':_0x2c8ba9,'attributes':{'data-suggestion':_0x33d03c,'data-author-id':_0x4d1cd8},'priority':_0x7cbba8};}}),_0x236a90['conversion']['for']('dataDowncast')['add'](_0x1954dc=>{_0x1954dc['on']('addMarker:suggestion',(_0x567562,_0x438616,_0x8da66c)=>{if(!_0x8da66c['options']['showSuggestionHighlights'])return;const _0x29e4c9=_0x438616['item'];if(!_0x29e4c9)return;const _0x50dcc5=_0x8da66c['mapper']['toViewElement'](_0x29e4c9);_0x236a90['model']['schema']['isObject'](_0x29e4c9)&&_0x50dcc5&&!_0x50dcc5['getCustomProperty']('widget')&&_0x50dcc5['is']('containerElement')&&_0x2b5ac0(_0x50dcc5,_0x8da66c['writer']);},{'priority':'high'});}),_0x236a90['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2418f6,_0x28a411)=>{if(!_0x28a411['options']['showSuggestionHighlights'])return null;const {type:_0x2addab,subType:_0x20be98}=this['_splitMarkerName'](_0x2418f6['markerName']);return{'classes':['ck-suggestion-marker',_0x522909(_0x2addab,_0x20be98)],'priority':0xbb8};}});const _0x516a6e=({showActiveMarkers:_0x47d27c=!0x0,isAttributeSuggestion:_0x5efb22=!0x1}={})=>(_0x6e2367,_0x3efe9b,_0x24a084)=>{if(!_0x3efe9b['item'])return;const {id:_0x34dfae,authorId:_0x253e1}=this['_splitMarkerName'](_0x3efe9b['markerName']);if(_0x5efb22){const _0x279f44=this['_suggestions']['get'](_0x34dfae),_0x4d2829=this['_getAttributeKey'](_0x279f44);if(!this['_isBlockAttribute'](_0x4d2829))return;}if(_0x3efe9b['item']['is']('selection'))return void _0x24a084['consumable']['consume'](_0x3efe9b['item'],_0x6e2367['name']);const _0x2dfa0a=_0x24a084['mapper']['toViewElement'](_0x3efe9b['item']);if(_0x3efe9b['item']['is']('element')&&_0x236a90['model']['schema']['isBlock'](_0x3efe9b['item'])&&!_0x2dfa0a['getCustomProperty']('addHighlight')){_0x24a084['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2dfa0a),_0x24a084['writer']['setAttribute']('data-suggestion',_0x34dfae,_0x2dfa0a),_0x24a084['writer']['setAttribute']('data-author-id',_0x253e1,_0x2dfa0a),_0x24a084['mapper']['bindElementToMarker'](_0x2dfa0a,_0x3efe9b['markerName']),_0x47d27c&&(this['activeMarkers']['includes'](_0x3efe9b['markerName'])?_0x24a084['writer']['addClass']('ck-suggestion-marker--active',_0x2dfa0a):_0x24a084['writer']['removeClass']('ck-suggestion-marker--active',_0x2dfa0a));for(const _0x57d39d of _0x236a90['model']['createRangeIn'](_0x3efe9b['item'])['getItems']())_0x24a084['consumable']['consume'](_0x57d39d,_0x6e2367['name']);_0x24a084['consumable']['consume'](_0x3efe9b['item'],_0x6e2367['name']);}};_0x236a90['conversion']['for']('dataDowncast')['add'](_0xfe0c82=>{_0xfe0c82['on']('addMarker:suggestion:formatBlock',(_0x33b300,_0x19cc47,_0x1edae9)=>{_0x1edae9['options']['showSuggestionHighlights']&&_0x516a6e({'showActiveMarkers':!0x1})(_0x33b300,_0x19cc47,_0x1edae9);},{'priority':'highest'});}),_0x236a90['conversion']['for']('dataDowncast')['add'](_0x2e9bad=>{_0x2e9bad['on']('addMarker:suggestion:attribute',(_0x104054,_0x5438c5,_0x38f92a)=>{_0x38f92a['options']['showSuggestionHighlights']&&_0x516a6e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x104054,_0x5438c5,_0x38f92a);},{'priority':'highest'});}),_0x236a90['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3849c7,_0x4be598)=>_0x4be598['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3849c7['substr'](0xb)}}),_0x236a90['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x387a16,{writer:_0x4649bb})=>{let _0x32f2ec='suggestion:'+_0x387a16['getAttribute']('suggestion-type')+':'+_0x387a16['getAttribute']('id');return _0x387a16['getAttribute']('marker-count')&&(_0x32f2ec+=':'+_0x387a16['getAttribute']('marker-count')),_0x4649bb['createElement']('$marker',{'data-name':_0x32f2ec});}}),_0x236a90['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x236a90['conversion']['for']('editingDowncast')['add'](_0x1920eb=>{_0x1920eb['on']('addMarker:suggestion:formatBlock',_0x516a6e(),{'priority':'high'});}),_0x236a90['conversion']['for']('editingDowncast')['add'](_0x265c97=>{_0x265c97['on']('addMarker:suggestion:attribute',_0x516a6e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x236a90['conversion']['for']('editingDowncast')['add'](_0x470f64=>{_0x470f64['on']('removeMarker:suggestion:formatBlock',(_0xdfa3b4,_0x5a38b9,_0x476001)=>{const _0x4c1e4e=_0x476001['mapper']['markerNameToElements'](_0x5a38b9['markerName']);if(_0x4c1e4e){for(const _0x21ad1b of _0x4c1e4e)_0x21ad1b['getCustomProperty']('addHighlight')||(_0x476001['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x21ad1b),_0x476001['writer']['removeAttribute']('data-suggestion',_0x21ad1b),_0x476001['writer']['removeAttribute']('data-author-id',_0x21ad1b),_0x476001['mapper']['unbindElementFromMarkerName'](_0x21ad1b,_0x5a38b9['markerName']));}},{'priority':'high'});}),_0x236a90['conversion']['for']('editingDowncast')['add'](_0x226007=>{_0x226007['on']('removeMarker:suggestion:attribute',(_0x3aa953,_0x47cccd,_0xc172ef)=>{const _0x13be75=_0xc172ef['mapper']['markerNameToElements'](_0x47cccd['markerName']);if(!_0x13be75)return;const {id:_0x3499d9}=this['_splitMarkerName'](_0x47cccd['markerName']),_0x56c703=this['_suggestions']['get'](_0x3499d9),_0x7f952b=this['_getAttributeKey'](_0x56c703);if(this['_isBlockAttribute'](_0x7f952b)){for(const _0x3ab2e0 of _0x13be75)_0x3ab2e0['getCustomProperty']('addHighlight')||(_0xc172ef['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3ab2e0),_0xc172ef['writer']['removeAttribute']('data-suggestion',_0x3ab2e0),_0xc172ef['writer']['removeAttribute']('data-author-id',_0x3ab2e0),_0xc172ef['mapper']['unbindElementFromMarkerName'](_0x3ab2e0,_0x47cccd['markerName']));}},{'priority':'high'});}),_0x236a90['model']['document']['registerPostFixer'](_0x48ce19=>{let _0x286aeb=!0x1;const _0x50aae7=Array['from'](_0x236a90['model']['document']['differ']['getChangedMarkers']()),_0x377b46=new Set();for(const {name:_0x47fc23,data:_0x26fa5e}of _0x50aae7){const {group:_0x390df0,type:_0x2a9ee1,subType:_0x1638fe,id:_0xfacd4d}=this['_splitMarkerName'](_0x47fc23);if('suggestion'!==_0x390df0)continue;const _0x27bcde=this['_suggestions']['get'](_0xfacd4d);if(null!=_0x26fa5e['newRange']){'formatInline'==_0x2a9ee1&&(_0x286aeb=_0x286aeb||Lt(_0x26fa5e['newRange'],_0x47fc23,_0x48ce19,_0x236a90['model']['schema']));const _0x707966='attribute'==_0x2a9ee1&&this['_isBlockAttribute'](_0x1638fe['split']('|')[0x0]);if(_0x26fa5e['newRange']['isCollapsed']||'$graveyard'==_0x26fa5e['newRange']['root']['rootName']||'formatBlock'==_0x2a9ee1&&!Kt(_0x26fa5e['newRange'])||_0x707966&&!Kt(_0x26fa5e['newRange'])||'deletion'==_0x2a9ee1&&!(!Gt(_0x229c80=_0x26fa5e['newRange'])&&!function(_0x1c981a){return _0x1c981a['start']['parent']==_0x1c981a['end']['nodeBefore']&&_0x1c981a['start']['isAtEnd'];}(_0x229c80)))_0x48ce19['removeMarker'](_0x47fc23),_0x286aeb=!0x0;else{if(!_0x27bcde||!_0x27bcde['isInContent'])continue;if(_0x26fa5e['newRange']&&_0x26fa5e['oldRange']&&_0x26fa5e['newRange']['isEqual'](_0x26fa5e['oldRange']))continue;_0x377b46['add'](_0x27bcde);}}}var _0x229c80;return _0x377b46['size']>0x0&&(_0x286aeb=!!this['_joinWithAdjacentSuggestions'](_0x377b46)||_0x286aeb),_0x286aeb;}),_0x236a90['model']['document']['registerPostFixer'](_0x241db6=>{let _0x2214e0=!0x1;for(const _0xfff78e of _0x236a90['model']['document']['differ']['getChanges']())if('insert'==_0xfff78e['type'])for(const _0x100b13 of this['_suggestions']['values']()){if(_0x100b13['isMultiRange']||!_0x100b13['isInContent'])continue;const _0x34d917='formatBlock'==_0x100b13['type'],_0x3a76c8=this['_getAttributeKey'](_0x100b13),_0x38d5b1=_0x3a76c8&&this['_isBlockAttribute'](_0x3a76c8);if(!_0x34d917&&!_0x38d5b1)continue;const _0x5a6a38=_0x100b13['getFirstRange']();if(_0x5a6a38['start']['parent']!=_0x5a6a38['end']['parent']&&!_0x5a6a38['end']['isAtEnd']){const _0x1c3f91=_0x236a90['model']['createPositionAt'](_0x5a6a38['start']['nodeAfter'],'end'),_0x1ee40a=_0x236a90['model']['createRange'](_0x5a6a38['start'],_0x1c3f91);_0x241db6['updateMarker'](_0x100b13['getFirstMarker'](),{'range':_0x1ee40a}),_0x2214e0=!0x0;}}return _0x2214e0;}),_0x236a90['model']['document']['registerPostFixer'](_0x19aeb2=>this['_processAttributeChanges'](_0x19aeb2)),_0x236a90['model']['document']['registerPostFixer'](_0x594003=>!_0x594003['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x594003)),_0x236a90['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x236a90['model']['document']['on']('change:data',(_0x817efe,_0xfee1a8)=>{if(!_0xfee1a8['isLocal']||_0xfee1a8['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x26a1e6=_0x236a90['model']['document']['differ']['getChanges']();if(0x0==_0x26a1e6['length'])return;const _0x341607=[],_0xe957e6=_0x26a1e6['filter'](_0x2fcc89=>'attribute'==_0x2fcc89['type']),_0x515572=_0x26a1e6['filter'](_0x3a950a=>'insert'==_0x3a950a['type']&&'$text'!=_0x3a950a['name']);for(const _0x5a6c87 of _0xe957e6)this['_isRegisteredAttribute'](_0x5a6c87['attributeKey'])&&_0x341607['push']({'key':_0x5a6c87['attributeKey'],'newValue':_0x5a6c87['attributeNewValue'],'oldValue':_0x5a6c87['attributeOldValue'],'range':Ht(_0x5a6c87['range'],_0x236a90['model'])});for(const _0x5dec17 of _0x515572){if('rename'!=_0x5dec17['action']&&'refresh'!=_0x5dec17['action'])continue;const _0x49619f=qt(_0x5dec17['position']['nodeAfter'],_0x236a90['model']),_0x49560e=_0x5dec17['before'];'rename'==_0x5dec17['action']&&_0x341607['push']({'key':u,'newValue':_0x5dec17['name'],'oldValue':_0x49560e['name'],'range':_0x49619f});for(const [_0x5e923e,_0x2905d8]of _0x49560e['attributes']){if(!this['_isRegisteredAttribute'](_0x5e923e))continue;const _0x542361=_0x5dec17['attributes']['get'](_0x5e923e);_0x2905d8!==_0x542361&&_0x341607['push']({'key':_0x5e923e,'newValue':_0x542361,'oldValue':_0x2905d8,'range':_0x49619f});}for(const [_0x2db9fe,_0x1f736d]of _0x5dec17['attributes'])this['_isRegisteredAttribute'](_0x2db9fe)&&(_0x49560e['attributes']['has'](_0x2db9fe)||_0x341607['push']({'key':_0x2db9fe,'newValue':_0x1f736d,'oldValue':null,'range':_0x49619f}));}0x0!=_0x341607['length']&&_0x236a90['model']['enqueueChange'](_0xfee1a8,_0x495381=>{const _0x1b1022=_0x5310dd();for(const {range:_0x12812e,key:_0x2f961a,oldValue:_0x3a83c5,newValue:_0x468c}of _0x341607)this['markAttributeChange'](_0x12812e,_0x2f961a,_0x3a83c5,_0x468c,{'groupId':_0x1b1022});this['_reduceExistingSuggestions'](_0x495381,_0x341607);});},{'priority':'lowest'}),_0x236a90['model']['markers']['on']('update:suggestion',(_0x1defa4,_0x1d5d91,_0x52b951)=>{if(null==_0x52b951){const {id:_0x17afca}=this['_splitMarkerName'](_0x1d5d91['name']),_0x3c901f=this['_suggestions']['get'](_0x17afca);_0x3c901f&&_0x3c901f['addMarkerName'](_0x1d5d91['name']);}}),_0x236a90['model']['document']['on']('change:data',()=>{const _0x950b78=Array['from'](_0x236a90['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5c5051=>'suggestion'===this['_splitMarkerName'](_0x5c5051['name'])['group']);if(0x0===_0x950b78['length'])return;_0x950b78['sort']((_0x1989f3,_0x14ff54)=>{const _0x38606a=_0x1989f3['data']['oldRange'],_0x259a00=_0x14ff54['data']['oldRange'];return null===_0x38606a&&null===_0x259a00?0x0:null===_0x38606a&&null!==_0x259a00?-0x1:null!==_0x38606a&&null===_0x259a00?0x1:_0x38606a['start']['isBefore'](_0x259a00['start'])?-0x1:0x1;});const _0x149475=new Set(),_0x47258d=new Set();for(const {name:_0x30ca30,data:_0x197749}of _0x950b78){const {id:_0x23fadd}=this['_splitMarkerName'](_0x30ca30);if(null===_0x197749['oldRange']){const _0x55fcc8=this['_handleNewSuggestionMarker'](_0x30ca30);_0x47258d['add'](_0x55fcc8);}else{const _0x499246=this['_suggestions']['get'](_0x23fadd);null!==_0x197749['newRange']||_0x499246['isInContent']?(_0x149475['add'](_0x499246['head']),_0x47258d['add'](_0x499246)):this['_removeSuggestion'](_0x499246);}}_0x47258d['size']>0x0&&this['_refreshSuggestionsChain'](_0x47258d);for(const _0x37bec2 of _0x149475)this['fire']('suggestionChanged',_0x37bec2);}),_0x236a90['model']['on']('applyOperation',(_0x50cfbd,_0x5c07f0)=>{const _0x1c34cd=_0x5c07f0[0x0];if(!this['_suggestions']['size'])return;if(!_0x1c34cd['isDocumentOperation'])return;if(_0x1c34cd['batch']['isUndo']||!_0x1c34cd['batch']['isLocal'])return;let _0x599fb0,_0x1e10e8;switch(_0x1c34cd['type']){case'insert':_0x599fb0=_0x236a90['model']['createPositionAt'](_0x1c34cd['position']),_0x1e10e8=_0x599fb0['getShiftedBy'](_0x1c34cd['howMany']);break;case'split':_0x599fb0=_0x236a90['model']['createPositionAt'](_0x1c34cd['splitPosition']),_0x1e10e8=_0x236a90['model']['createPositionAt'](_0x1c34cd['moveTargetPosition']);break;case'move':_0x599fb0=_0x236a90['model']['createPositionAt'](_0x1c34cd['targetPosition']),_0x1e10e8=_0x599fb0['getShiftedBy'](_0x1c34cd['howMany']);break;default:return;}const _0x394e27=_0x236a90['model']['createRange'](_0x599fb0,_0x1e10e8);_0x236a90['model']['change'](()=>{for(const {suggestion:_0x2911c8,meta:_0xc98454}of this['_findSuggestions'](_0x394e27)){if(_0x2911c8['isMultiRange'])continue;if('formatInline'==_0x2911c8['type'])continue;const _0x37fe9d=this['_getAttributeKey'](_0x2911c8);if(_0x37fe9d&&this['_isBlockAttribute'](_0x37fe9d)&&'split'!=_0x1c34cd['type'])continue;const _0x4e343d=_0x2911c8['data']&&_0x2911c8['data']['multipleBlocks'];('formatBlock'!=_0x2911c8['type']||'split'==_0x1c34cd['type']&&!_0x4e343d)&&(_0xc98454['containsRangeInObject']||'insertion'==_0x2911c8['type']&&_0xc98454['isOwn']||_0x2911c8['getFirstRange']()['containsRange'](_0x394e27)&&this['_breakSuggestionMarker'](_0x2911c8,_0x599fb0,_0x1e10e8));}});},{'priority':'lowest'}),_0x236a90['model']['on']('deleteContent',(_0x4bddc1,_0x4702b0)=>{const _0x363f04=_0x4702b0[0x0],_0x1b9db5=_0x4702b0[0x1];if(_0x1b9db5&&_0x1b9db5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x363f04['isCollapsed'])return;const _0x1c2083=_0x236a90['model']['schema'],{start:_0x1be308,end:_0x7b1e8b}=_0x363f04['getFirstRange'](),_0x2bcc15=_0x1be308['nodeAfter']&&_0x1c2083['isLimit'](_0x1be308['nodeAfter'])?null:_0x1c2083['getNearestSelectionRange'](_0x1be308,'forward'),_0x2f5ff0=_0x7b1e8b['nodeBefore']&&_0x1c2083['isLimit'](_0x7b1e8b['nodeBefore'])?null:_0x1c2083['getNearestSelectionRange'](_0x7b1e8b,'backward'),_0x446ded=_0x236a90['model']['createRange'](_0x2bcc15?_0x2bcc15['start']:_0x1be308,_0x2f5ff0?_0x2f5ff0['end']:_0x7b1e8b);_0x236a90['model']['change'](_0x458d9f=>{this['markDeletion'](_0x446ded);const _0x3a29b3=_0x236a90['model']['schema']['getNearestSelectionRange'](_0x446ded['start']);_0x363f04['is']('documentSelection')?_0x458d9f['setSelection'](_0x3a29b3):_0x363f04['setTo'](_0x3a29b3);}),_0x4bddc1['stop']();},{'priority':_0x2800bb['normal']+0xa}),_0x236a90['model']['on']('insertContent',(_0x5dcf42,_0x3fe036)=>{const _0x57db29=_0x3fe036[_0x3fe036['length']-0x1];_0x57db29&&_0x57db29['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x236a90['model']['change'](()=>{let _0x5c55cb=_0x236a90['model']['insertContent'](_0x3fe036[0x0],_0x3fe036[0x1],_0x3fe036[0x2],{'forceDefaultExecution':!0x0});if(!_0x5c55cb)return;_0x5dcf42['return']=_0x5c55cb['clone']();const _0x3582e4=_0x5c55cb['end']['nodeBefore'],_0x319783=_0x236a90['model']['schema'];_0x3582e4&&_0x319783['isBlock'](_0x3582e4)&&!_0x319783['isObject'](_0x3582e4)&&(_0x5c55cb=_0x236a90['model']['createRange'](_0x5c55cb['start'],_0x236a90['model']['createPositionAt'](_0x3582e4,'end'))),this['markInsertion'](_0x5c55cb);}),_0x5dcf42['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3116e3=new O(_0x236a90,this['_suggestions']);_0x236a90['commands']['add']('acceptSuggestion',_0x3116e3),this['enableCommand']('acceptSuggestion');const _0x234b66=new R(_0x236a90,this['_suggestions']);_0x236a90['commands']['add']('discardSuggestion',_0x234b66),this['enableCommand']('discardSuggestion'),_0x236a90['commands']['add']('acceptAllSuggestions',new x(_0x236a90,_0x3116e3,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x236a90['commands']['add']('discardAllSuggestions',new x(_0x236a90,_0x234b66,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x236a90['commands']['add']('acceptSelectedSuggestions',new E(_0x236a90,_0x3116e3,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x236a90['commands']['add']('discardSelectedSuggestions',new E(_0x236a90,_0x234b66,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x423afa=_0x236a90['plugins']['get']('CommentsRepository');this['listenTo'](_0x423afa,'addComment',(_0xe31801,{threadId:_0x1d6670})=>{const _0x2c6895=this['_suggestions']['get'](_0x1d6670);_0x2c6895&&_0x2c6895['commentThread']&&0x1===_0x2c6895['commentThread']['length']&&this['_updateSuggestionData'](_0x1d6670,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x423afa,'removeComment',(_0x4b628c,{threadId:_0x3b4c81})=>{const _0x359385=this['_suggestions']['get'](_0x3b4c81);_0x359385&&_0x359385['commentThread']&&!_0x359385['commentThread']['length']&&this['_updateSuggestionData'](_0x3b4c81,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x37e4e8){const _0x31e2fa=_0xa6eea0([0x75,0x64,0x35,0x7a,0x42,0x6d,0x56,0x62,0x50,0x59,0x63,0x43,0x4b,0x30,0x33,0x46,0x4a,0x37,0x6b,0x78,0x76,0x52,0x45,0x53,0x72,0x65,0x47,0x69,0x41,0x66,0x6f,0x39,0x68,0x5a,0x6a,0x36,0x55,0x38,0x54,0x74,0x73,0x67,0x71,0x49,0x77,0x61,0x34,0x79,0x6c,0x4e,0x51,0x4f,0x4c,0x6e,0x48,0x44,0x31,0x70,0x32,0x57,0x4d,0x58]),_0x5aa0c4=0x7b2916ff,_0x2dd4f3=0x7b2e778f^_0x5aa0c4,_0x1cadef=window[_0xa6eea0([0x44,0x61,0x74,0x65])][_0xa6eea0([0x6e,0x6f,0x77])](),_0xd0c284=_0x37e4e8[_0xa6eea0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5da2b3=new window[(_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x316eb4=>{_0xd0c284[_0xa6eea0([0x6f,0x6e,0x63,0x65])](_0xa6eea0([0x72,0x65,0x61,0x64,0x79]),_0x316eb4);}),_0x42f385={[_0xa6eea0([0x6b,0x74,0x79])]:_0xa6eea0([0x45,0x43]),[_0xa6eea0([0x75,0x73,0x65])]:_0xa6eea0([0x73,0x69,0x67]),[_0xa6eea0([0x63,0x72,0x76])]:_0xa6eea0([0x50,0x2d,0x32,0x35,0x36]),[_0xa6eea0([0x78])]:_0xa6eea0([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]),[_0xa6eea0([0x79])]:_0xa6eea0([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]),[_0xa6eea0([0x61,0x6c,0x67])]:_0xa6eea0([0x45,0x53,0x32,0x35,0x36])},_0x401b28=_0xd0c284[_0xa6eea0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa6eea0([0x67,0x65,0x74])](_0xa6eea0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5caf6c(){let _0x12e867,_0x5728a6=null,_0x89cdc4=null;try{if(_0x401b28==_0xa6eea0([0x47,0x50,0x4c]))return _0xa6eea0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12e867=_0x354e53(),!_0x12e867)return _0xa6eea0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x12e867[_0xa6eea0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x89cdc4=_0xde57c(_0x12e867[_0xa6eea0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12e867[_0xa6eea0([0x6a,0x74,0x69])])),await _0x2a8956()?_0x1cbec8()?_0x1b3397()?_0xa6eea0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x579f87()?(_0x12e867[_0xa6eea0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa6eea0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5728a6=_0x5bbbd9(_0xa6eea0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x12e867[_0xa6eea0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa6eea0([0x74,0x72,0x69,0x61,0x6c])&&(_0x5728a6=_0x5bbbd9(_0xa6eea0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5f4cdc()):_0xa6eea0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa6eea0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa6eea0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x558fdc){return _0xa6eea0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1b3397(){const _0x4930b0=[_0xa6eea0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa6eea0([0x74,0x72,0x69,0x61,0x6c])][_0xa6eea0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12e867[_0xa6eea0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1cadef/0x3e8:0xe10*_0x2dd4f3;return _0x12e867[_0xa6eea0([0x65,0x78,0x70])]<_0x4930b0;}function _0x1cbec8(){const _0x5773b4=_0x12e867[_0xa6eea0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5773b4)return!0x1;if(_0x5773b4[_0xa6eea0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa6eea0([0x2a])))return!0x0;if(_0x5773b4[_0xa6eea0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa6eea0([0x54,0x43])))return!0x0;if(_0x5773b4[_0xa6eea0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa6eea0([0x52,0x54,0x43]))){if(_0x4b05de())return!0x0;if(_0x221bc5()||_0x4d69ae())return!0x0;}return!0x1;}function _0x579f87(){const _0x2d3816=_0x12e867[_0xa6eea0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2d3816||0x0==_0x2d3816[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xfd627f}=new URL(window[_0xa6eea0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2d3816[_0xa6eea0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfd627f))return!0x0;const _0x56441d=_0xfd627f[_0xa6eea0([0x73,0x70,0x6c,0x69,0x74])](_0xa6eea0([0x2e]));return _0x2d3816[_0xa6eea0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x52719f=>_0x52719f[_0xa6eea0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa6eea0([0x2a])))[_0xa6eea0([0x6d,0x61,0x70])](_0x121486=>_0x121486[_0xa6eea0([0x73,0x70,0x6c,0x69,0x74])](_0xa6eea0([0x2e])))[_0xa6eea0([0x73,0x6f,0x6d,0x65])](_0x5218ae=>_0x56441d[_0xa6eea0([0x65,0x76,0x65,0x72,0x79])]((_0x40dee6,_0x118580)=>_0x5218ae[_0x118580]===_0x40dee6||_0x5218ae[_0x118580]===_0xa6eea0([0x2a])));}function _0x5f4cdc(){return _0x5728a6&&_0x89cdc4?new window[(_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d616a,_0x3ae4ae)=>{_0x5728a6[_0xa6eea0([0x74,0x68,0x65,0x6e])](_0x4d616a,_0x3ae4ae),_0x89cdc4[_0xa6eea0([0x74,0x68,0x65,0x6e])](_0x100ebf=>{_0x100ebf!=_0xa6eea0([0x56,0x61,0x6c,0x69,0x64])&&_0x4d616a(_0x100ebf);},_0x3ae4ae);}):_0x5728a6||_0x89cdc4||_0xa6eea0([0x56,0x61,0x6c,0x69,0x64]);}}function _0xde57c(_0x15476d,_0x5547ef){return new window[(_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b4b94=>{if(_0x523334())return _0x5b4b94(_0xa6eea0([0x56,0x61,0x6c,0x69,0x64]));_0x877937(),_0xd0c284[_0xa6eea0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa6eea0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f7fc9=!0x1;const _0x253e4a=_0x5310dd();function _0x4e1ece(_0x5e4901){return!!_0x5e4901&&(typeof _0x5e4901===_0xa6eea0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e4901===_0xa6eea0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e4901[_0xa6eea0([0x74,0x68,0x65,0x6e])]===_0xa6eea0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e4901[_0xa6eea0([0x63,0x61,0x74,0x63,0x68])]===_0xa6eea0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1a2025(_0x18fdcb){_0x37172b(_0x18fdcb)[_0xa6eea0([0x74,0x68,0x65,0x6e])](_0x47c4ec=>{if(!_0x47c4ec||_0x47c4ec[_0xa6eea0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa6eea0([0x6f,0x6b]))return _0xa6eea0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x23654b(_0x40b67e(_0x253e4a+_0x5547ef))!=_0x47c4ec[_0xa6eea0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa6eea0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa6eea0([0x56,0x61,0x6c,0x69,0x64]);})[_0xa6eea0([0x74,0x68,0x65,0x6e])](_0x4a7902=>(_0x44634a(),_0x4a7902),()=>{const _0x2c90d7=_0x54e77d();return null==_0x2c90d7?(_0x44634a(),_0xa6eea0([0x56,0x61,0x6c,0x69,0x64])):_0xa6eea0(_0x1cadef-_0x2c90d7>(0x5f2592ff^_0x5aa0c4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa6eea0([0x74,0x68,0x65,0x6e])](_0x5b4b94)[_0xa6eea0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5b4b94(_0xa6eea0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xef70db=0x7b1ff87f^_0x5aa0c4;function _0x44634a(){const _0x5bffc3=_0xa6eea0([0x6c,0x6c,0x63,0x74,0x2d])+_0x23654b(_0x40b67e(_0x15476d)),_0x26cd65=_0x4b294a(_0x23654b(window[_0xa6eea0([0x4d,0x61,0x74,0x68])][_0xa6eea0([0x63,0x65,0x69,0x6c])](_0x1cadef/_0xef70db)));window[_0xa6eea0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa6eea0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bffc3,_0x26cd65);}function _0x54e77d(){const _0x32736f=_0xa6eea0([0x6c,0x6c,0x63,0x74,0x2d])+_0x23654b(_0x40b67e(_0x15476d)),_0x3a40ac=window[_0xa6eea0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa6eea0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32736f);return _0x3a40ac?window[_0xa6eea0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b294a(_0x3a40ac),0x10)*_0xef70db:null;}function _0x37172b(_0x44fdaf){return new window[(_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x100df5,_0x433f97)=>{_0x44fdaf[_0xa6eea0([0x74,0x68,0x65,0x6e])](_0x100df5,_0x433f97),window[_0xa6eea0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x433f97,0x7b28c23f^_0x5aa0c4);});}}_0xd0c284[_0xa6eea0([0x6f,0x6e])](_0xa6eea0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5af6d0,_0xa45a6f)=>{if(_0xa45a6f[0x0]!=_0x15476d)return _0x5b4b94(_0xa6eea0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa45a6f[0x1]={..._0xa45a6f[0x1],[_0xa6eea0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x253e4a};},{[_0xa6eea0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa6eea0([0x68,0x69,0x67,0x68])}),_0xd0c284[_0xa6eea0([0x6f,0x6e])](_0xa6eea0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55ffac=>{_0x4e1ece(_0x55ffac[_0xa6eea0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f7fc9=!0x0,_0x1a2025(_0x55ffac[_0xa6eea0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa6eea0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa6eea0([0x6c,0x6f,0x77])}),_0x5da2b3[_0xa6eea0([0x74,0x68,0x65,0x6e])](()=>{_0x2f7fc9||_0x5b4b94(_0xa6eea0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x523334(){return _0xd0c284[_0xa6eea0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa6eea0([0x76,0x69,0x65,0x77])][_0xa6eea0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa6eea0([0x61,0x75,0x74,0x6f]);}function _0x877937(){_0xd0c284[_0xa6eea0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa6eea0([0x76,0x69,0x65,0x77])][_0xa6eea0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa6eea0([0x61,0x75,0x74,0x6f]);}}function _0x5bbbd9(_0x33715f){const _0xd27d2=[new window[(_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16dd2a=>setTimeout(_0x16dd2a,0x7b202833^_0x5aa0c4)),_0x5da2b3[_0xa6eea0([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d6a02=>{let _0x3f0015=0x0;_0xd0c284[_0xa6eea0([0x6d,0x6f,0x64,0x65,0x6c])][_0xa6eea0([0x6f,0x6e])](_0xa6eea0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x51e4d9,_0x259972)=>{_0x259972[0x0][_0xa6eea0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f0015++,_0x3f0015==(0x7b291707^_0x5aa0c4)&&(_0x1d6a02(),_0x51e4d9[_0xa6eea0([0x6f,0x66,0x66])]());});}))];return window[_0xa6eea0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa6eea0([0x72,0x61,0x63,0x65])](_0xd27d2)[_0xa6eea0([0x74,0x68,0x65,0x6e])](()=>_0x33715f);}async function _0x5ec952(){await _0x5da2b3,_0xd0c284[_0xa6eea0([0x6d,0x6f,0x64,0x65,0x6c])][_0xa6eea0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x480e34,_0xd0c284[_0xa6eea0([0x6d,0x6f,0x64,0x65,0x6c])][_0xa6eea0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x480e34,_0xd0c284[_0xa6eea0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa6eea0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b05de(){return _0x408f3c(_0xa6eea0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x88f8bc(_0xa6eea0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xa6eea0([0x73,0x74,0x61,0x74,0x65])]==_0xa6eea0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x221bc5(){return _0x408f3c(_0xa6eea0([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 _0x4d69ae(){return _0x408f3c(_0xa6eea0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x36621a(_0x3ddcd0){const _0x2ed4b1=_0x2b4f48();_0xd0c284[_0x2ed4b1]=_0xa6eea0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ddcd0,_0x3ddcd0!=_0xa6eea0([0x56,0x61,0x6c,0x69,0x64])&&_0x5ec952();}function _0x2b4f48(){const _0x21c420=window[_0xa6eea0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa6eea0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa6eea0([0x6e,0x6f,0x77])]())[_0xa6eea0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa6eea0([0x2e]),'');let _0x103c15=_0xa6eea0([0x75]);for(let _0xf57cf1=0x0;_0xf57cf1<_0x21c420[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf57cf1+=0x2){let _0x3259ec=window[_0xa6eea0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21c420[_0xa6eea0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf57cf1,_0xf57cf1+0x2));_0x3259ec>=_0x31e2fa[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3259ec-=_0x31e2fa[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x103c15+=_0x31e2fa[_0x3259ec];}return _0x103c15;}function _0x354e53(){const _0x492902=_0x401b28[_0xa6eea0([0x73,0x70,0x6c,0x69,0x74])](_0xa6eea0([0x2e]));if(0x3!=_0x492902[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1632d3(_0x492902[0x1]);function _0x1632d3(_0x21a1eb){const _0x2e517c=_0x56a300(_0x21a1eb);return _0x2e517c&&_0x129165()?_0x2e517c:null;function _0x129165(){const _0x5375e9=_0x2e517c[_0xa6eea0([0x6a,0x74,0x69])],_0x18f7c0=window[_0xa6eea0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5375e9[_0xa6eea0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5375e9[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x59f8ee={..._0x2e517c,[_0xa6eea0([0x6a,0x74,0x69])]:_0x5375e9[_0xa6eea0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5375e9[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x59f8ee[_0xa6eea0([0x76,0x63])],_0x40b67e(_0x59f8ee)==_0x18f7c0;}}}async function _0x2a8956(){let _0x1fdc24=!0x0;try{const _0x521d73=_0x401b28[_0xa6eea0([0x73,0x70,0x6c,0x69,0x74])](_0xa6eea0([0x2e])),[_0x2df4f8,_0x3c9d3d,_0x3e56b7]=_0x521d73;return _0xfcb90e(_0x2df4f8),await _0x5e060d(_0x2df4f8,_0x3c9d3d,_0x3e56b7),_0x1fdc24;}catch(_0x169310){return!0x1;}function _0xfcb90e(_0x51d507){const _0x1b3bc4=_0x56a300(_0x51d507);_0x1b3bc4&&_0x1b3bc4[_0xa6eea0([0x61,0x6c,0x67])]==_0xa6eea0([0x45,0x53,0x32,0x35,0x36])||(_0x1fdc24=!0x1);}async function _0x5e060d(_0x32f26e,_0x502ad7,_0x380f61){const _0x4bf594=window[_0xa6eea0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa6eea0([0x66,0x72,0x6f,0x6d])](_0xc00f3c(_0x380f61),_0x499bbe=>_0x499bbe[_0xa6eea0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5b0e1e=new window[(_0xa6eea0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa6eea0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32f26e+_0xa6eea0([0x2e])+_0x502ad7),_0x2cf1a5=window[_0xa6eea0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa6eea0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2cf1a5)return;const _0x40c62e=await _0x2cf1a5[_0xa6eea0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa6eea0([0x6a,0x77,0x6b]),_0x42f385,{[_0xa6eea0([0x6e,0x61,0x6d,0x65])]:_0xa6eea0([0x45,0x43,0x44,0x53,0x41]),[_0xa6eea0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa6eea0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa6eea0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2cf1a5[_0xa6eea0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa6eea0([0x6e,0x61,0x6d,0x65])]:_0xa6eea0([0x45,0x43,0x44,0x53,0x41]),[_0xa6eea0([0x68,0x61,0x73,0x68])]:{[_0xa6eea0([0x6e,0x61,0x6d,0x65])]:_0xa6eea0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40c62e,_0x4bf594,_0x5b0e1e)||(_0x1fdc24=!0x1);}}function _0x56a300(_0x5672a6){return _0x5672a6[_0xa6eea0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa6eea0([0x65,0x79]))?JSON[_0xa6eea0([0x70,0x61,0x72,0x73,0x65])](_0xc00f3c(_0x5672a6)):null;}function _0xc00f3c(_0x19fe66){return window[_0xa6eea0([0x61,0x74,0x6f,0x62])](_0x19fe66[_0xa6eea0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa6eea0([0x2b]))[_0xa6eea0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa6eea0([0x2f])));}function _0x40b67e(_0x17f337){let _0x3ea4ec=0x1505;function _0x58f403(_0x5e7928){for(let _0x5199e6=0x0;_0x5199e6<_0x5e7928[_0xa6eea0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5199e6++){const _0x502051=_0x5e7928[_0xa6eea0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5199e6);_0x3ea4ec=(_0x3ea4ec<<0x5)+_0x3ea4ec+_0x502051,_0x3ea4ec&=_0x3ea4ec;}}function _0x326b04(_0x3816fa){Array[_0xa6eea0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3816fa)?_0x3816fa[_0xa6eea0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x326b04):_0x3816fa&&typeof _0x3816fa==_0xa6eea0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa6eea0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3816fa)[_0xa6eea0([0x73,0x6f,0x72,0x74])]()[_0xa6eea0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29bac8,_0x3ac13e])=>{_0x58f403(_0x29bac8),_0x326b04(_0x3ac13e);}):_0x58f403(window[_0xa6eea0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3816fa));}return _0x326b04(_0x17f337),_0x3ea4ec>>>0x0;}function _0x23654b(_0x3aef36){return _0x3aef36[_0xa6eea0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa6eea0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa6eea0([0x30]));}function _0x4b294a(_0x128154){return _0x128154[_0xa6eea0([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa6eea0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa6eea0([0x6a,0x6f,0x69,0x6e])]('');}function _0x408f3c(_0x454c7c){return _0xd0c284[_0xa6eea0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa6eea0([0x68,0x61,0x73])](_0x454c7c);}function _0x88f8bc(_0x2b1fc7){return _0xd0c284[_0xa6eea0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa6eea0([0x67,0x65,0x74])](_0x2b1fc7);}function _0x480e34(){}function _0xa6eea0(_0x326191){return _0x326191['map'](_0x3a8b00=>String['fromCharCode'](_0x3a8b00))['join']('');}_0x36621a(await _0x5caf6c());}(this);}set['adapter'](_0x41d23a){if(this['_adapter'])throw new _0x1a1d2d('track-changes-adapter-already-set',this);this['_adapter']=_0x41d23a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2127fc=!0x1,toJSON:_0x117964=!0x1}={}){const _0x7fd0e3=[];for(const _0xd40bff of this['_suggestions']['values']())_0x2127fc&&!_0xd40bff['isInContent']||_0x7fd0e3['push'](_0xd40bff);return _0x117964?_0x7fd0e3['map'](_0x334b0b=>_0x334b0b['toJSON']()):_0x7fd0e3;}['getSuggestion'](_0x3c1f81){const _0x4ac7ce=this['_suggestions']['get'](_0x3c1f81);if(!_0x4ac7ce)throw new _0x1a1d2d('track-changes-suggestion-not-found',this);return _0x4ac7ce;}['hasSuggestion'](_0x5ae0fa){return this['_suggestions']['has'](_0x5ae0fa);}['addSuggestionData'](_0x5d46bf){const {authorId:_0x119b60,id:_0x29998c,attributes:_0x4c6886}=_0x5d46bf,[_0x39ae9e,_0x34d1e7]=_0x5d46bf['type']['split'](':'),_0x619df7=this['_suggestions']['get'](_0x29998c)||this['_createSuggestion'](_0x39ae9e,_0x34d1e7,_0x29998c,_0x119b60,_0x4c6886);if(this['_addThreadToSuggestion'](_0x619df7),this['_checkSuggestionCorrectness'](_0x619df7,_0x39ae9e,_0x34d1e7||null,_0x119b60),_0x619df7['createdAt']=_0x5d46bf['createdAt'],_0x619df7['_isDataLoaded']=!0x0,_0x4c6886&&_0x4c6886['@external']){const _0xdd609a=_0x4c6886['@external'],_0x58b3a8=this['_getExternalAuthor'](_0xdd609a['authorName']);_0x619df7['authoredAt']=_0xdd609a['createdAt'],_0x619df7['author']=_0x58b3a8,_0x619df7['isExternal']=!0x0;}else _0x619df7['authoredAt']=_0x5d46bf['createdAt'];switch(_0x5d46bf['data']&&(_0x619df7['data']=_0x5d46bf['data']),_0x5d46bf['attributes']&&(_0x619df7['attributes']=_0x5d46bf['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x619df7['_saved']=!0x0),this['_suggestionState']['get'](_0x619df7)){case'notReady':this['_suggestionState']['set'](_0x619df7,'dataReady');break;case'markerReady':_0x619df7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x619df7])),this['_refreshSuggestionsChain'](new Set([_0x619df7])),this['_suggestionState']['set'](_0x619df7,'ready'),this['fire']('suggestionLoaded',_0x619df7)):this['_suggestionState']['set'](_0x619df7,'removed');}return _0x619df7;}['acceptSuggestion'](_0x2be8bd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1b8019 of _0x2be8bd['getAllAdjacentSuggestions']())_0x1b8019['accept']();});});}['discardSuggestion'](_0x1256c1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2c2457 of _0x1256c1['getAllAdjacentSuggestions']())_0x2c2457['discard']();});});}['enableCommand'](_0xf1f57f,_0x265c06){const _0x3afe87=this['editor']['commands']['get'](_0xf1f57f);if(!_0x3afe87)throw new _0x1a1d2d('track-changes-command-not-found',this,{'commandName':_0xf1f57f});if(this['_enabledCommands']['has'](_0x3afe87))throw new _0x1a1d2d('track-changes-enable-command-twice',this,{'commandName':_0xf1f57f});this['_enabledCommands']['add'](_0x3afe87),_0x265c06&&_0x3afe87['on']('execute',(_0x2c7133,_0x5279ef)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5279ef['length']>0x0&&_0x5279ef[_0x5279ef['length']-0x1]&&_0x5279ef[_0x5279ef['length']-0x1]['forceDefaultExecution']?_0x5279ef['pop']():(_0x2c7133['return']=_0x265c06((..._0x3acf78)=>_0x3afe87['execute'](..._0x3acf78,{'forceDefaultExecution':!0x0}),..._0x5279ef),_0x2c7133['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x50ad5f){let _0x184f8b,_0x19598e;const _0x766175=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x184f8b=_0x50ad5f();}catch(_0x58bdf5){_0x19598e=_0x58bdf5;}return _0x766175||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x19598e&&_0x1a1d2d['rethrowUnexpectedError'](_0x19598e,this),_0x184f8b;}['markInsertion'](_0x167660,_0x293554=null,_0x1f9877={}){if(_0x167660['isCollapsed'])return null;const _0x169d90=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x44761c,meta:_0x17bd33}of this['_findSuggestions'](_0x167660,'insertion'))if(_0x17bd33['isOwn']){if(!_0x17bd33['isNextTo']){if(_0x17bd33['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x44761c,_0x1f9877))continue;return _0x44761c;}if(Qt(_0x44761c,_0x1f9877))return _0x44761c;this['_breakSuggestionMarker'](_0x44761c,_0x167660['start'],_0x167660['end']);break;}if(_0x293554==_0x44761c['subType']&&Qt(_0x44761c,_0x1f9877)){const _0x852b73=_0x44761c['getFirstRange']();return _0x852b73['start']['isEqual'](_0x167660['end'])?this['_setSuggestionRange'](_0x44761c,this['_model']['createRange'](_0x167660['start'],_0x852b73['end'])):this['_setSuggestionRange'](_0x44761c,this['_model']['createRange'](_0x852b73['start'],_0x167660['end'])),_0x44761c;}}const _0x16629a=_0x5310dd(),_0x204e89=_0x169d90['id'],_0x3e14de=_0x293554?'insertion:'+_0x293554:'insertion',_0x17f822=this['_setSuggestionData']({'id':_0x16629a,'type':_0x3e14de,'createdAt':new Date(),'authorId':_0x204e89,'attributes':_0x1f9877});return this['_addSuggestionMarker'](_0x3e14de,_0x16629a,_0x204e89,_0x167660),_0x17f822;}['markMultiRangeInsertion'](_0x4e075e,_0xe20009='multi',_0x5aa0a0={}){const _0x520075=this['editor']['plugins']['get']('Users')['me'],_0x2c87bf=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xe20009,'join');for(const _0x115ec6 of this['getSuggestions']())if(_0x115ec6['author']['id']==_0x520075['id']&&'insertion'==_0x115ec6['type']&&_0x115ec6['subType']==_0xe20009&&Qt(_0x115ec6,_0x5aa0a0)&&(_0x2c87bf(_0x115ec6['getRanges'](),_0x4e075e)||_0x2c87bf(_0x4e075e,_0x115ec6['getRanges']()))){for(const _0x9de5a of _0x4e075e)_0x115ec6['addRange'](_0x9de5a);return _0x115ec6;}for(const {suggestion:_0x383e76,meta:_0x1dd3ef}of this['_findSuggestions'](_0x4e075e,'insertion')){if(!_0x1dd3ef['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1dd3ef['containsRangeInObject'])continue;if(!Qt(_0x383e76,_0x5aa0a0))continue;let _0x1d3817=!0x0;for(const _0x56e40d of _0x383e76['getRanges']())for(const _0x144a09 of _0x4e075e)if(!_0x56e40d['containsRange'](_0x144a09)){_0x1d3817=!0x1;break;}if(_0x1d3817)return _0x383e76;}const _0x373d11=_0x5310dd(),_0x3f83cd=_0x520075['id'],_0x3bd74e='insertion:'+_0xe20009,_0x5860fc=this['_setSuggestionData']({'id':_0x373d11,'type':_0x3bd74e,'createdAt':new Date(),'authorId':_0x3f83cd,'attributes':_0x5aa0a0});for(const _0x4a7c0d of _0x4e075e)this['_addSuggestionMarker'](_0x3bd74e,_0x373d11,_0x3f83cd,_0x4a7c0d,o['getMultiRangeId']());return _0x5860fc;}['markInlineFormat'](_0x3d241a,_0x64f01e,_0x2a92a2=null,_0x48bf66={}){if(_0x2a92a2=_0x2a92a2||Jt(_0x64f01e),_0x3d241a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1b3a55=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a92a2,'accept');return this['forceDefaultExecution'](()=>_0x1b3a55([_0x3d241a],_0x64f01e,_0x48bf66)),null;}const _0xd25a22=this['editor']['plugins']['get']('Users')['me'],_0x605baf=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2b2b1b,meta:_0x55948b}of this['_findSuggestions'](_0x3d241a,'insertion'))_0x55948b['isOwn']&&!_0x55948b['isInsideObject']&&_0x605baf['push'](..._0x2b2b1b['getRanges']());}const _0x1ff405=function(_0x25a65b,_0x3f2994){const _0x2a24d6=[];for(const _0x53b583 of _0x3f2994){const _0x2a91e8=_0x25a65b['getIntersection'](_0x53b583);_0x2a91e8&&_0x2a24d6['push'](_0x2a91e8);}return _0x2a24d6;}(_0x3d241a,_0x605baf),_0x2903fe=function(_0x51ec71,_0x4bb93b){const _0x448b56=[_0x51ec71];for(const _0x572adc of _0x4bb93b){let _0x4ccfd0=0x0;for(;_0x4ccfd0<_0x448b56['length'];){const _0x32f6d0=_0x448b56[_0x4ccfd0]['getDifference'](_0x572adc);_0x448b56['splice'](_0x4ccfd0,0x1,..._0x32f6d0),_0x4ccfd0+=_0x32f6d0['length'];}}return _0x448b56;}(_0x3d241a,_0x605baf);_0x1ff405['length']&&this['_model']['change'](()=>{for(const _0x187c7a of _0x1ff405){const _0x5de269=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a92a2,'accept');this['forceDefaultExecution'](()=>_0x5de269([_0x187c7a],_0x64f01e,_0x48bf66));}});for(const _0x5013e4 of _0x2903fe){let _0x4e53ea=null,_0x35324c=_0x5013e4['start'],_0x3daebc=_0x5013e4['end'];for(const {suggestion:_0x19b918,meta:_0x2e757e}of this['_findSuggestions'](_0x5013e4,'formatInline')){if(!_0x2e757e['isOwn'])continue;if(_0x19b918['subType']!=_0x2a92a2)continue;if(!Qt(_0x19b918,_0x48bf66))continue;const _0x37d60d=_0x19b918['getFirstRange']();if(_0x37d60d['containsRange'](_0x5013e4,!0x0))return null;_0x35324c=_0x35324c['isBefore'](_0x37d60d['start'])?_0x35324c:_0x37d60d['start'],_0x3daebc=_0x3daebc['isAfter'](_0x37d60d['end'])?_0x3daebc:_0x37d60d['end'],_0x4e53ea?_0x37d60d['start']['isBefore'](_0x4e53ea['getFirstRange']()['start'])?(_0x4e53ea['removeMarkers'](),_0x4e53ea=_0x19b918):_0x19b918['removeMarkers']():_0x4e53ea=_0x19b918;}const _0x3103e6=this['_model']['createRange'](_0x35324c,_0x3daebc);if(_0x4e53ea)this['_setSuggestionRange'](_0x4e53ea,_0x3103e6);else{const _0x3e8dae=_0x5310dd(),_0x1eba0b=_0xd25a22['id'];this['_setSuggestionData']({'id':_0x3e8dae,'type':'formatInline:'+_0x2a92a2,'data':_0x64f01e,'createdAt':new Date(),'authorId':_0x1eba0b,'attributes':_0x48bf66}),this['_addSuggestionMarker']('formatInline:'+_0x2a92a2,_0x3e8dae,_0x1eba0b,_0x3103e6);}}return null;}['markBlockFormat'](_0x58fb13,_0x34f1c9,_0xfdb31b=[],_0x49378e=null,_0x57f86b={}){_0x34f1c9['formatGroupId']||(_0x34f1c9['formatGroupId']=_0x34f1c9['commandName']),_0x34f1c9['multipleBlocks']=_0x58fb13['is']('range'),_0x49378e=_0x49378e||Jt(_0x34f1c9);const _0x5db68e=_0xfdb31b['map'](_0x4186ec=>qt(_0x4186ec,this['_model'])),_0x4ab831=_0x58fb13['is']('range')?_0x58fb13:qt(_0x58fb13,this['_model']);if('never'===this['_trackFormatChanges']){const _0x22c37f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49378e,'accept');return this['forceDefaultExecution'](()=>_0x22c37f([_0x4ab831],_0x34f1c9,_0x57f86b)),null;}_0x5db68e['push'](_0x4ab831);let _0x221a81=!0x0;for(const _0x5caf3d of _0x5db68e)if(!this['_rangeIsInLocalUserInsertion'](_0x5caf3d)){_0x221a81=!0x1;break;}if(_0x221a81&&'always'!==this['_trackFormatChanges']){const _0x3d14e3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x49378e,'accept');return this['forceDefaultExecution'](()=>_0x3d14e3([_0x4ab831],_0x34f1c9,_0x57f86b)),null;}let _0x22dc74=null,_0x309ebd=_0x4ab831['start'],_0x43a2ac=_0x4ab831['end'];for(const {suggestion:_0x4847ee,meta:_0x23f133}of this['_findSuggestions'](_0x4ab831,'formatBlock')){if(!_0x23f133['isOwn'])continue;if(_0x23f133['isNextTo']||_0x23f133['containsRangeInObject']||_0x23f133['isInsideObject'])continue;if(_0x4847ee['data']['formatGroupId']!=_0x34f1c9['formatGroupId'])continue;if(!Qt(_0x4847ee,_0x57f86b))continue;const _0x319358=_0x4847ee['getFirstRange']();if(_0x4847ee['subType']==_0x49378e){if(_0x319358['containsRange'](_0x4ab831,!0x0))return null;_0x309ebd=_0x309ebd['isBefore'](_0x319358['start'])?_0x309ebd:_0x319358['start'],_0x43a2ac=_0x43a2ac['isAfter'](_0x319358['end'])?_0x43a2ac:_0x319358['end'],_0x22dc74?_0x319358['start']['isBefore'](_0x22dc74['getFirstRange']()['start'])?(_0x22dc74['removeMarkers'](),_0x22dc74=_0x4847ee):_0x4847ee['removeMarkers']():_0x22dc74=_0x4847ee;}else{const _0x1fc634=_0x4ab831['getIntersection'](_0x319358);this['_cutOutSuggestionMarker'](_0x4847ee,_0x1fc634);}}const _0x544d01=this['editor']['plugins']['get']('Users')['me'],_0x503934=_0x5310dd(),_0x4c196c=_0x544d01['id'];if(_0x22dc74)return this['_setSuggestionRange'](_0x22dc74,this['_model']['createRange'](_0x309ebd,_0x43a2ac)),_0x22dc74;{const _0x476907=this['_setSuggestionData']({'id':_0x503934,'type':'formatBlock:'+_0x49378e,'data':_0x34f1c9,'createdAt':new Date(),'authorId':_0x4c196c,'attributes':_0x57f86b});return this['_addSuggestionMarker']('formatBlock:'+_0x49378e,_0x503934,_0x4c196c,this['_model']['createRange'](_0x309ebd,_0x43a2ac)),_0x476907;}}['markMultiRangeBlockFormat'](_0x4aaf37,_0x233318,_0xfa9aed=[],_0x80ab8b=null,_0x5839ca={}){_0x233318['formatGroupId']||(_0x233318['formatGroupId']=_0x233318['commandName']);const _0x3c2143=_0x4aaf37[0x0];_0x233318['multipleBlocks']=_0x3c2143['is']('range'),_0x80ab8b=_0x80ab8b||Jt(_0x233318);const _0xc95c02=_0xfa9aed['map'](_0x467b07=>qt(_0x467b07,this['_model'])),_0x26743d=_0x3c2143['is']('range')?_0x4aaf37:_0x4aaf37['map'](_0x328bc8=>qt(_0x328bc8,this['_model']));if('never'===this['_trackFormatChanges']){const _0x5792f8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x80ab8b,'accept');return this['forceDefaultExecution'](()=>_0x5792f8(_0x26743d,_0x233318,_0x5839ca)),null;}_0xc95c02['push'](..._0x26743d);let _0x391c69=!0x0;for(const _0x5c1422 of _0xc95c02)if(!this['_rangeIsInLocalUserInsertion'](_0x5c1422)){_0x391c69=!0x1;break;}if(_0x391c69&&'always'!==this['_trackFormatChanges']){const _0x576efb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x80ab8b,'accept');return this['forceDefaultExecution'](()=>_0x576efb(_0x26743d,_0x233318,_0x5839ca)),null;}const _0x494107=this['editor']['plugins']['get']('Users')['me'];for(const _0x20202c of this['getSuggestions']()){if(_0x20202c['author']['id']!=_0x494107['id'])continue;if('formatBlock'!=_0x20202c['type']||_0x20202c['data']['formatGroupId']!=_0x233318['formatGroupId'])continue;if(!Qt(_0x20202c,_0x5839ca))continue;const _0x3032eb=_0x20202c['subType']==_0x80ab8b;for(let _0x5a8002=0x0;_0x5a8002<_0x26743d['length'];_0x5a8002++){const _0xce2284=_0x26743d[_0x5a8002];for(const _0x41e707 of _0x20202c['getMarkers']()){const _0x477287=_0x41e707['getRange']();if(_0xce2284['isEqual'](_0x477287)){_0x3032eb?(_0x26743d['splice'](_0x5a8002,0x1),_0x5a8002--):_0x20202c['removeMarker'](_0x41e707['name']);break;}}}}if(0x0==_0x26743d['length'])return null;const _0x337508=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x80ab8b,'join');for(const _0x56e0f0 of this['getSuggestions']())if(_0x56e0f0['author']['id']==_0x494107['id']&&'formatBlock'==_0x56e0f0['type']&&_0x56e0f0['data']['formatGroupId']==_0x233318['formatGroupId']&&_0x56e0f0['subType']==_0x80ab8b&&Qt(_0x56e0f0,_0x5839ca)&&(_0x337508(_0x56e0f0['getRanges'](),_0x26743d)||_0x337508(_0x26743d,_0x56e0f0['getRanges']()))){for(const _0x3346dd of _0x26743d)_0x56e0f0['addRange'](_0x3346dd);return _0x56e0f0;}const _0x5efbd0=_0x5310dd(),_0x47cfe4=_0x494107['id'],_0x4f1fce='formatBlock:'+_0x80ab8b,_0x1403ba=this['_setSuggestionData']({'id':_0x5efbd0,'type':_0x4f1fce,'data':_0x233318,'createdAt':new Date(),'authorId':_0x47cfe4,'attributes':_0x5839ca});for(const _0x533b2b of _0x26743d)this['_addSuggestionMarker'](_0x4f1fce,_0x5efbd0,_0x47cfe4,_0x533b2b,o['getMultiRangeId']());return _0x1403ba;}['markDeletion'](_0x2c6bc1,_0x429e89=null,_0x2f2771={}){if(_0x2c6bc1['isCollapsed'])return null;const _0x290f55=this['editor']['plugins']['get']('Users')['me'],_0x31b282=new _0x6b53b6(_0x2c6bc1['start'],_0x2c6bc1['end']);for(const {suggestion:_0x3bde4e,meta:_0x4f4cfd}of this['_findSuggestions'](_0x31b282,'insertion'))if(_0x4f4cfd['isOwn']&&!_0x4f4cfd['isNextTo']){if(_0x3bde4e['isMultiRange']){const _0x1e9544=_0x3bde4e['getRanges']()['filter'](_0x24c492=>'$graveyard'!=_0x24c492['root']['rootName']);_0x1e9544['every'](_0x53b61a=>_0x31b282['containsRange'](_0x53b61a,!0x0))&&_0x3bde4e['discard']();if(_0x1e9544['some'](_0x2dc023=>_0x2dc023['containsRange'](_0x31b282,!0x0))){const _0x32d65c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x429e89,'accept');return this['forceDefaultExecution'](()=>_0x32d65c([_0x31b282],null,_0x2f2771)),null;}}else{const _0x27fa59=_0x31b282['getIntersection'](_0x3bde4e['getFirstRange']());null!==_0x27fa59&&_0x3bde4e['_onDiscard']([_0x27fa59],null,_0x2f2771);}}if(_0x31b282['detach'](),_0x31b282['isCollapsed']||'$graveyard'==_0x31b282['root']['rootName'])return null;let _0x8819a3=null,_0x33b4dd=_0x31b282['start'],_0x3bccca=_0x31b282['end'];const _0x3701f9=this['_findSuggestions'](_0x31b282,'deletion');for(const {suggestion:_0x4396b3,meta:_0x5170f2}of _0x3701f9){const _0x5d1daf=this['_model']['createRange'](_0x33b4dd,_0x3bccca);if(_0x5170f2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5170f2['containsRangeInObject']&&!_0x5170f2['isInsideObject'])){if(_0x4396b3['isMultiRange']){if(!Qt(_0x4396b3,_0x2f2771))continue;let _0x2e8222=!0x0;for(const _0x673414 of _0x4396b3['getRanges']()){if(_0x673414['containsRange'](_0x5d1daf,!0x0))return _0x4396b3;_0x5d1daf['containsRange'](_0x673414)||(_0x2e8222=!0x1);}_0x2e8222&&_0x4396b3['discard']();}else{const _0x3cd471=_0x4396b3['getFirstRange']();if(_0x3cd471['containsRange'](_0x5d1daf,!0x0))return _0x4396b3;if(!Qt(_0x4396b3,_0x2f2771)){_0x5d1daf['containsRange'](_0x3cd471)?_0x4396b3['removeMarkers']():_0x3cd471['containsPosition'](_0x33b4dd)?_0x33b4dd=_0x3cd471['end']:_0x3cd471['containsPosition'](_0x3bccca)&&(_0x3bccca=_0x3cd471['start']);continue;}_0x33b4dd=_0x33b4dd['isBefore'](_0x3cd471['start'])?_0x33b4dd:_0x3cd471['start'],_0x3bccca=_0x3bccca['isAfter'](_0x3cd471['end'])?_0x3bccca:_0x3cd471['end'],_0x2f2771=Object['assign']({},_0x4396b3['attributes']),_0x8819a3?_0x3cd471['start']['isBefore'](_0x8819a3['getFirstRange']()['start'])?(_0x8819a3['removeMarkers'](),_0x8819a3=_0x4396b3):_0x4396b3['removeMarkers']():_0x8819a3=_0x4396b3;}}}if(_0x8819a3)return this['_setSuggestionRange'](_0x8819a3,this['_model']['createRange'](_0x33b4dd,_0x3bccca)),_0x8819a3;{const _0x2fdfaf=_0x5310dd(),_0xe0c4f2=this['_model']['createRange'](_0x33b4dd,_0x3bccca),_0x483b7d=_0x290f55['id'],_0x3dfebd=_0x429e89?'deletion:'+_0x429e89:'deletion',_0x39ad86=this['_setSuggestionData']({'id':_0x2fdfaf,'type':_0x3dfebd,'createdAt':new Date(),'authorId':_0x483b7d,'attributes':_0x2f2771});return this['_addSuggestionMarker'](_0x3dfebd,_0x2fdfaf,_0x483b7d,_0xe0c4f2),_0x39ad86;}}['markMultiRangeDeletion'](_0x86c96,_0x46bdd3='multi',_0x7c0232={}){const _0x30d170=this['editor']['plugins']['get']('Users')['me'],_0x201aeb=_0x86c96['map'](_0x16eda5=>new _0x6b53b6(_0x16eda5['start'],_0x16eda5['end'])),_0xb72fd4=new Set();for(const {suggestion:_0x2a3ac8,meta:_0x1c0af3}of this['_findSuggestions'](_0x201aeb,'insertion'))_0x1c0af3['isOwn']&&!_0x1c0af3['isNextTo']&&_0xb72fd4['add'](_0x2a3ac8);for(const _0x22c394 of _0xb72fd4)if(_0x22c394['isMultiRange']){const _0x3cafb1=_0x22c394['getRanges']();(!_0x22c394['attributes']||!_0x22c394['attributes']['skipNestingCheck'])&&(_0x3cafb1['every'](_0x1ef503=>_0x201aeb['some'](_0x53088a=>_0x53088a['containsRange'](_0x1ef503,!0x0)))&&_0x22c394['discard']());if(_0x201aeb['every'](_0x211af7=>_0x3cafb1['some'](_0x3786f1=>_0x3786f1['containsRange'](_0x211af7,!0x0)))){const _0x2479e3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46bdd3,'accept');return this['forceDefaultExecution'](()=>_0x2479e3(_0x86c96,null,_0x7c0232)),null;}}else{const _0x39b1fc=_0x22c394['getFirstRange']();_0x201aeb['some'](_0x455e2b=>_0x455e2b['containsRange'](_0x39b1fc,!0x0))&&_0x22c394['discard']();if(_0x201aeb['every'](_0x43d771=>_0x39b1fc['containsRange'](_0x43d771,!0x0))){const _0x2753f0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46bdd3,'accept');return this['forceDefaultExecution'](()=>_0x2753f0(_0x201aeb,null,_0x7c0232)),null;}}const _0x58d513=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46bdd3,'join');let _0x37e6db=null;for(const _0x16e858 of this['getSuggestions']())if(_0x16e858['author']['id']==_0x30d170['id']&&_0x16e858['isInContent']&&'deletion'==_0x16e858['type']&&_0x16e858['subType']==_0x46bdd3&&Qt(_0x16e858,_0x7c0232)&&(_0x58d513(_0x16e858['getRanges'](),_0x201aeb)||_0x58d513(_0x201aeb,_0x16e858['getRanges']()))){if(_0x37e6db){if(_0x16e858['commentThread']&&_0x16e858['commentThread']['length'])continue;for(const _0x4ee853 of _0x16e858['getRanges']())_0x37e6db['isIntersectingWithRange'](_0x4ee853)||_0x37e6db['addRange'](_0x4ee853);_0x16e858['removeMarkers']();}else{_0x37e6db=_0x16e858;for(const _0x287ca2 of _0x201aeb)_0x16e858['isIntersectingWithRange'](_0x287ca2)||_0x16e858['addRange'](_0x287ca2);}}if(_0x37e6db)return _0x37e6db;_0xb72fd4['clear']();for(const {suggestion:_0x1ff578,meta:_0x28d01e}of this['_findSuggestions'](_0x201aeb,'deletion'))_0x28d01e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x28d01e['containsRangeInObject']&&!_0x28d01e['isInsideObject'])&&Qt(_0x1ff578,_0x7c0232)&&_0xb72fd4['add'](_0x1ff578);for(const _0x531d36 of _0xb72fd4){const _0xd9becf=_0x531d36['getRanges']();if(!_0x7c0232||!_0x7c0232['skipNestingCheck']){if(_0x201aeb['every'](_0x200d50=>_0xd9becf['some'](_0x5f13f5=>_0x5f13f5['containsRange'](_0x200d50,!0x0))))return _0x531d36;}(!_0x531d36['attributes']||!_0x531d36['attributes']['skipNestingCheck'])&&(_0xd9becf['every'](_0x45de7e=>_0x201aeb['some'](_0x38ed83=>_0x38ed83['containsRange'](_0x45de7e,!0x0)))&&_0x531d36['discard']());}const _0x3fcb93=_0x5310dd(),_0x323358=_0x30d170['id'],_0x5e7060='deletion:'+_0x46bdd3,_0x281c60=this['_setSuggestionData']({'id':_0x3fcb93,'type':_0x5e7060,'createdAt':new Date(),'authorId':_0x323358,'attributes':_0x7c0232});for(const _0x3a087 of _0x201aeb)_0x3a087['detach'](),_0x3a087['isCollapsed']||'$graveyard'==_0x3a087['root']['rootName']||this['_addSuggestionMarker'](_0x5e7060,_0x3fcb93,_0x323358,_0x3a087,o['getMultiRangeId']());return _0x281c60;}['markAttributeChange'](_0x26ff1d,_0x4e013e,_0x149536,_0x2c93d9,_0x3c3e50){if(_0x26ff1d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x464b10=this['editor']['plugins']['get']('Users')['me']['id'],_0x18b6a3=Array['from'](this['_suggestions']['values']())['filter'](_0x3ebb3c=>'attribute'==_0x3ebb3c['type']&&_0x3ebb3c['data']['key']==_0x4e013e&&_0x3ebb3c['isIntersectingWithRange'](_0x26ff1d));if('default'===this['_trackFormatChanges']){const _0x1314bf=this['_findSuggestions'](_0x26ff1d,'insertion')['filter'](({meta:_0x121273})=>_0x121273['isOwn']&&!_0x121273['isInsideObject']&&!_0x121273['isNextTo'])['map'](({suggestion:_0x4c661c})=>_0x4c661c);_0x18b6a3['unshift'](..._0x1314bf);}const _0x389173=new Map([[_0x26ff1d,_0x149536]]);for(const _0x5d26cd of _0x18b6a3){const _0x112dfe='attribute'==_0x5d26cd['type']?_0x5d26cd['data']['oldValue']:void 0x0,_0x123ae8=_0x5d26cd['getFirstRange'](),_0x1ebfed=Array['from'](_0x389173['keys']())['find'](_0x453b42=>_0x453b42['isIntersecting'](_0x123ae8));if(!_0x1ebfed)continue;const _0x2e1e1d=_0x1ebfed['getDifference'](_0x123ae8);this['_isBlockAttribute'](_0x4e013e)&&'insertion'==_0x5d26cd['type']&&0x0!=_0x2e1e1d['length']||(_0x389173['delete'](_0x1ebfed),_0x2e1e1d['forEach'](_0x137029=>{_0x389173['set'](_0x137029,_0x149536);}),'insertion'!=_0x5d26cd['type']&&_0x112dfe!=_0x2c93d9&&_0x389173['set'](_0x1ebfed['getIntersection'](_0x123ae8),_0x112dfe));}const _0x56461a=[];for(const [_0x200abc,_0x830fa5]of _0x389173){const _0x3d7065=_0x5310dd(),_0x47d6f2={'key':_0x4e013e,'oldValue':_0x830fa5,'newValue':_0x2c93d9};_0x4e013e['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':_0x4e013e});const _0x9afdf6=('attribute:'+(_0x4e013e+'|'+Jt({'newValue':_0x2c93d9})))['substring'](0x0,0x3c),_0x190ffb=this['_setSuggestionData']({'id':_0x3d7065,'type':_0x9afdf6,'data':_0x47d6f2,'createdAt':new Date(),'authorId':_0x464b10,'attributes':_0x3c3e50});_0x56461a['push'](_0x190ffb),this['_addSuggestionMarker'](_0x9afdf6,_0x3d7065,_0x464b10,_0x200abc);}return _0x56461a;}['enableDefaultAttributesIntegration'](_0xaadeb){this['enableCommand'](_0xaadeb,(_0x22e6f7,..._0x29af37)=>{this['_recordAttributeChanges'](()=>{_0x22e6f7(..._0x29af37);});});}['registerBlockAttribute'](_0x854fab){this['_blockAttributeKeys']['add'](_0x854fab);}['registerInlineAttribute'](_0x25c1c7){this['_inlineAttributeKeys']['add'](_0x25c1c7);}['_getAttributeKey'](_0x12e146){return'attribute'==_0x12e146['type']?_0x12e146['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5ab58a,_0x45cb96){const _0x5a53f4=_0x5ab58a['getFirstMarker']();this['_model']['change'](_0x2385d5=>{_0x2385d5['updateMarker'](_0x5a53f4,{'range':_0x45cb96});});}['_addThreadToSuggestion'](_0x48ccc6){const _0x47b1dc=_0x48ccc6['id'],_0x10107f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x47b1dc)||this['_commentsRepository']['addCommentThread']({'channelId':_0x10107f,'threadId':_0x47b1dc,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2aaa9b=this['_commentsRepository']['getCommentThread'](_0x47b1dc);_0x2aaa9b['unbind']('isRemovable'),_0x2aaa9b['isRemovable']=!0x1,_0x48ccc6['commentThread']=_0x2aaa9b;}['_checkSuggestionCorrectness'](_0x2a86f1,_0x3f1baa,_0x56b95c,_0x487cc1){if(_0x2a86f1['type']!=_0x3f1baa||_0x2a86f1['subType']!=_0x56b95c||_0x2a86f1['creator']['id']!=_0x487cc1)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1a1d2d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5a7e48,_0x1a75eb){const _0x38eb3d=_0x5a7e48['getFirstRange']();if(_0x1a75eb['isEqual'](_0x38eb3d))_0x5a7e48['removeMarkers']();else{if(_0x38eb3d['containsRange'](_0x1a75eb)){const _0x187178=this['_model']['createPositionAt'](_0x1a75eb['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5a7e48,this['_model']['createRange'](_0x38eb3d['start'],_0x187178));const _0x1a0e31=_0x5310dd(),_0x20db5b=_0x5a7e48['creator']['id'],_0x16d8a7=_0x5a7e48['type']+':'+_0x5a7e48['subType'];this['_setSuggestionData']({'id':_0x1a0e31,'type':_0x16d8a7,'createdAt':new Date(),'authorId':_0x20db5b,'data':_0x5a7e48['data'],'attributes':_0x5a7e48['attributes']});const _0x4e39c1=this['_model']['createPositionAt'](_0x1a75eb['end']['parent'],'after'),_0x5c3bc7=this['_model']['createRange'](_0x4e39c1,_0x38eb3d['end']);this['_addSuggestionMarker'](_0x16d8a7,_0x1a0e31,_0x20db5b,_0x5c3bc7);}else{if(_0x38eb3d['containsPosition'](_0x1a75eb['start'])){const _0x57d018=this['_model']['createPositionAt'](_0x1a75eb['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5a7e48,this['_model']['createRange'](_0x38eb3d['start'],_0x57d018));}else{const _0x539997=this['_model']['createPositionAt'](_0x1a75eb['end']['parent'],'after');this['_setSuggestionRange'](_0x5a7e48,this['_model']['createRange'](_0x539997,_0x38eb3d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x54fa05){for(const {suggestion:_0x42c95e,meta:_0x60f03a}of this['_findSuggestions'](_0x54fa05,'insertion')){if(!_0x60f03a['isOwn'])continue;const _0x362c95=_0x42c95e['getRanges']();for(const _0x562c76 of _0x362c95)if(!_0x54fa05['getDifference'](_0x562c76)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x11a5e4){const _0x2e47ca=this['editor']['plugins']['get']('Users')['getUser'](_0x11a5e4);if(!_0x2e47ca)throw new _0x1a1d2d('track-changes-user-not-found',this);return _0x2e47ca;}['_getExternalAuthor'](_0x53ee23){const _0x22c421=this['editor']['plugins']['get']('Users'),_0x29b091=_0x52257a('external:'+_0x53ee23),_0x5359a5=_0x22c421['getUser'](_0x29b091);return _0x5359a5||_0x22c421['addUser']({'id':_0x29b091,'name':_0x53ee23});}['_createSuggestion'](_0x17b2db,_0x29ff9d,_0xa5de4,_0x3aca9b,_0x4c99ca){const _0x36a9c8=this['_getAuthorFromId'](_0x3aca9b),_0x16759d=this['_suggestionFactory']['buildSuggestion'](_0x17b2db,_0x29ff9d,_0xa5de4,_0x36a9c8,_0x4c99ca,_0x39ee8d=>{this['_updateSuggestionData'](_0xa5de4,{'attributes':_0x39ee8d});const _0x3b2879=this['getSuggestion'](_0xa5de4);this['_joinWithAdjacentSuggestions'](new Set([_0x3b2879])),this['_refreshSuggestionsChain'](new Set([_0x3b2879]));});return this['listenTo'](_0x16759d,'accept',()=>{this['_updateSuggestionData'](_0xa5de4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x16759d,'discard',()=>{this['_updateSuggestionData'](_0xa5de4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xa5de4,_0x16759d),this['_suggestionState']['set'](_0x16759d,'notReady'),_0x16759d;}['_splitMarkerName'](_0x3b9143){const _0x3bb2d0=_0x3b9143['split'](':');return{'group':_0x3bb2d0[0x0],'type':_0x3bb2d0[0x1],'subType':_0x3bb2d0['length']>=0x5?_0x3bb2d0[0x2]:null,'id':_0x3bb2d0['length']<0x5?_0x3bb2d0[0x2]:_0x3bb2d0[0x3],'authorId':_0x3bb2d0['length']<0x5?_0x3bb2d0[0x3]:_0x3bb2d0[0x4],'markerCount':0x6==_0x3bb2d0['length']?_0x3bb2d0[0x5]:null};}['_breakSuggestionMarker'](_0x378108,_0x3c6ad3,_0x1fa4e2){const _0x29f15c=_0x378108['getFirstRange'](),_0x58fe9b=_0x29f15c['start'],_0xe5c84c=_0x29f15c['end'];this['_setSuggestionRange'](_0x378108,this['_model']['createRange'](_0x58fe9b,_0x3c6ad3));const _0x2e3471=_0x5310dd(),_0x48bf52=_0x378108['creator']['id'],_0x2fa9f9=_0x378108['type']+(_0x378108['subType']?':'+_0x378108['subType']:'');this['_setSuggestionData']({'id':_0x2e3471,'type':_0x2fa9f9,'createdAt':new Date(),'authorId':_0x48bf52,'originalSuggestionId':_0x378108['id'],'attributes':_0x378108['attributes'],'data':_0x378108['data']});const _0x28e127=this['_getAttributeKey'](_0x378108);('formatBlock'==_0x378108['type']||_0x28e127&&this['_isBlockAttribute'](_0x28e127))&&(_0x1fa4e2=this['_model']['createPositionBefore'](_0x1fa4e2['parent'])),this['_addSuggestionMarker'](_0x2fa9f9,_0x2e3471,_0x48bf52,this['_model']['createRange'](_0x1fa4e2,_0xe5c84c));}['_findSuggestions'](_0x3e3096,_0x344dd4=null){const _0x53a29a=[],_0x48968c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3e3096)||(_0x3e3096=[_0x3e3096]);for(const _0x57daa0 of this['getSuggestions']()){if(!_0x57daa0['isInContent'])continue;if(_0x344dd4&&_0x57daa0['type']!=_0x344dd4)continue;let _0x1a00c2=!0x1;for(const _0x537ad5 of _0x57daa0['getRanges']()){for(const _0x1868ec of _0x3e3096){const _0x5003c6=_0x1868ec['start']['isEqual'](_0x537ad5['end'])||_0x1868ec['end']['isEqual'](_0x537ad5['start']);if(_0x5003c6||_0x1868ec['getIntersection'](_0x537ad5)){const _0x208f34=_0x1868ec['containsRange'](_0x537ad5)&&Pt(this['_model']['schema'],_0x537ad5['start'],_0x1868ec),_0x4f7532=_0x537ad5['containsRange'](_0x1868ec)&&Pt(this['_model']['schema'],_0x1868ec['start'],_0x537ad5);_0x53a29a['push']({'suggestion':_0x57daa0,'meta':{'isOwn':_0x48968c==_0x57daa0['author'],'isNextTo':_0x5003c6,'isInsideObject':_0x208f34,'containsRangeInObject':_0x4f7532}}),_0x1a00c2=!0x0;break;}}if(_0x1a00c2)break;}}return _0x53a29a;}['_addSuggestionMarker'](_0x1eea14,_0x141dcc,_0x418636,_0x3237e5,_0x3b3781){this['_model']['change'](_0x59514f=>{let _0x5b0162='suggestion:'+_0x1eea14+':'+_0x141dcc+':'+_0x418636;_0x3b3781&&(_0x5b0162=_0x5b0162+':'+_0x3b3781),_0x59514f['addMarker'](_0x5b0162,{'range':_0x3237e5,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x255bb0){const _0x55fdee=_0x255bb0['previous'],_0xab93eb=_0x255bb0['next'];_0x255bb0['previous']=null,_0x255bb0['next']=null,null!=_0x55fdee&&_0x55fdee['next']==_0x255bb0&&(_0x55fdee['next']=_0xab93eb),null!=_0xab93eb&&_0xab93eb['previous']==_0x255bb0&&(_0xab93eb['previous']=_0x55fdee),'ready'==this['_suggestionState']['get'](_0x255bb0)&&(this['_suggestionState']['set'](_0x255bb0,'removed'),this['fire']('suggestionUnloaded',_0x255bb0,_0x55fdee,_0xab93eb));}['_setSuggestionData'](_0x3c37f1){const _0x7261e0=_0x3c37f1['id'],_0x40bf5e=this['addSuggestionData'](_0x3c37f1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x36c92a=this['editor']['plugins']['get']('PendingActions'),_0x47b33b=_0x40bf5e['hasComments'],_0x2c0418=_0x40bf5e['subType']?_0x40bf5e['type']+':'+_0x40bf5e['subType']:_0x40bf5e['type'],_0x104926=this['editor']['locale'],_0x5332bd=_0x36c92a['add'](c(_0x104926,'PENDING_ACTION_SUGGESTION')),_0x6b294f={'id':_0x7261e0,'type':_0x2c0418,'hasComments':_0x47b33b,'data':_0x3c37f1['data']||null,'originalSuggestionId':_0x3c37f1['originalSuggestionId']||null,'attributes':_0x40bf5e['attributes']};this['_adapter']['addSuggestion'](_0x6b294f)['then'](_0x28b077=>{_0x40bf5e['_saved']=!0x0,_0x36c92a['remove'](_0x5332bd),_0x28b077&&_0x28b077['createdAt']&&(this['_suggestions']['get'](_0x7261e0)['createdAt']=_0x28b077['createdAt']);})['catch'](_0x1d6ae0=>{throw _0x5b3cf6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x40bf5e['discard']();}),_0x40bf5e['stopListening'](),this['_suggestions']['delete'](_0x40bf5e['id']),this['_suggestionState']['delete'](_0x40bf5e),_0x1d6ae0;});}return _0x40bf5e;}['_isBlockAttribute'](_0x4a5a9f){return this['_blockAttributeKeys']['has'](_0x4a5a9f);}['_updateSuggestionData'](_0x3e8798,_0x3a0111){const _0x18cce9=this['editor']['plugins']['get']('PendingActions'),_0x2ff6f9=this['getSuggestion'](_0x3e8798);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2ff6f9['_saved']){const _0x4dc9f7=_0x18cce9['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3e8798,_0x3a0111)['then'](()=>{_0x18cce9['remove'](_0x4dc9f7);});}else _0x2ff6f9['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3e8798,_0x3a0111);});}}['_getSuggestionData'](_0x495bf1){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1a1d2d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x495bf1);}['_handleNewSuggestionMarker'](_0xf09a2c){const {id:_0x44efe6,type:_0x113004,subType:_0x2b9f02,authorId:_0x3c89b4}=this['_splitMarkerName'](_0xf09a2c),_0x1acabc=this['_suggestions']['get'](_0x44efe6)||this['_createSuggestion'](_0x113004,_0x2b9f02,_0x44efe6,_0x3c89b4,{});switch(this['_checkSuggestionCorrectness'](_0x1acabc,_0x113004,_0x2b9f02,_0x3c89b4),this['_suggestionState']['get'](_0x1acabc)){case'notReady':this['_getSuggestionData'](_0x44efe6)['then'](_0x4ae674=>{let _0x104fea=Promise['resolve']();_0x4ae674['hasComments']&&(_0x104fea=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x44efe6})),_0x104fea['then'](()=>{this['addSuggestionData'](_0x4ae674)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1acabc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x44efe6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1acabc,'ready'),this['fire']('suggestionLoaded',_0x1acabc);break;case'ready':this['fire']('suggestionChanged',_0x1acabc);}return _0x1acabc['addMarkerName'](_0xf09a2c),_0x1acabc;}['_refreshSuggestionsChain'](_0x417448){const _0x16dafc=Array['from'](_0x417448),_0x59d9cd=_0x16dafc['filter'](_0x17d3a8=>'attribute'==_0x17d3a8['type']);this['_refreshAttributeSuggestionsChain'](_0x59d9cd);const _0x50ebbb=_0x16dafc['filter'](_0x1769cf=>!_0x1769cf['isMultiRange']&&'attribute'!=_0x1769cf['type']),_0x51f4f1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ddd9b=>!_0x3ddd9b['isMultiRange']&&'attribute'!=_0x3ddd9b['type']),_0x36e39e=_0x51f4f1['filter'](_0x527423=>!_0x417448['has'](_0x527423)),_0x5ea752=new Map(_0x51f4f1['map'](_0x2c594a=>[_0x2c594a,this['_suggestionFactory']['getSuggestionCallback'](_0x2c594a['type'],_0x2c594a['subType'],'chain')])),_0x236aea=new Map(_0x51f4f1['map'](_0x12b2ae=>[_0x12b2ae,_0x12b2ae['getFirstRange']()])),_0xeebfee=new Set(),_0x14ff1a=new Set();for(let _0x9fcaab=0x0;_0x9fcaab<_0x50ebbb['length'];_0x9fcaab++)_0x5b4910(_0x50ebbb[_0x9fcaab],_0x50ebbb,_0x9fcaab+0x1);for(let _0x7f582c=0x0;_0x7f582c<_0x50ebbb['length'];_0x7f582c++)_0x5b4910(_0x50ebbb[_0x7f582c],_0x36e39e,0x0);const _0x55c713=new Set();for(let _0xf4ccf7=0x0;_0xf4ccf7<_0x50ebbb['length'];_0xf4ccf7++){const _0x4a9909=_0x50ebbb[_0xf4ccf7];!_0x14ff1a['has'](_0x4a9909)&&_0x4a9909['previous']&&(_0x55c713['add'](_0x4a9909['previous']),_0x4a9909['previous']['next']===_0x4a9909&&(_0x4a9909['previous']['next']=null),_0x4a9909['previous']=null),!_0xeebfee['has'](_0x4a9909)&&_0x4a9909['next']&&(_0x55c713['add'](_0x4a9909['next']),_0x4a9909['next']['previous']===_0x4a9909&&(_0x4a9909['next']['previous']=null),_0x4a9909['next']=null);}function _0x5b4910(_0x4df69e,_0x347c4a,_0x4fb7ab){for(let _0x3883c2=_0x4fb7ab;_0x3883c2<_0x347c4a['length'];_0x3883c2++){const _0x5e01b1=_0x4dcd6e(_0x4df69e,_0x347c4a[_0x3883c2]);_0x5e01b1&&(_0x5e01b1[0x0]['next']=_0x5e01b1[0x1],_0x5e01b1[0x1]['previous']=_0x5e01b1[0x0],_0xeebfee['add'](_0x5e01b1[0x0]),_0x14ff1a['add'](_0x5e01b1[0x1]));}}function _0x4dcd6e(_0x21ff1b,_0x1b3556){if(_0x21ff1b['author']['id']!==_0x1b3556['author']['id'])return null;const _0x25cf2c=_0x5ea752['get'](_0x21ff1b)(_0x21ff1b,_0x1b3556,_0x236aea['get'](_0x21ff1b),_0x236aea['get'](_0x1b3556));if(!_0x25cf2c)return null;return _0x5ea752['get'](_0x1b3556)(_0x21ff1b,_0x1b3556,_0x236aea['get'](_0x21ff1b),_0x236aea['get'](_0x1b3556))?_0x25cf2c[0x1]['commentThread']&&_0x25cf2c[0x1]['commentThread']['length']?null:_0x25cf2c:null;}_0x55c713['size']&&this['_refreshSuggestionsChain'](_0x55c713);}['_refreshAttributeSuggestionsChain'](_0x45bde0){if(0x0==_0x45bde0['length'])return;const _0x374d2b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48adf3=>'attribute'==_0x48adf3['type']&&_0x48adf3['_isDataLoaded']),_0x49ec49=[],_0x2ca34f=new Map();for(const _0x5ec4c7 of _0x374d2b){const _0x31decf=_0x52257a(_0x5ec4c7['attributes']);_0x2ca34f['has'](_0x31decf)||(_0x2ca34f['set'](_0x31decf,_0x49ec49['length']),_0x49ec49['push']([]));const _0x504399=_0x2ca34f['get'](_0x31decf);_0x49ec49[_0x504399]['push'](_0x5ec4c7);}!(function(){_0x49ec49['sort']((_0x2cf2d4,_0x23c181)=>{const _0x3361e1=_0x2cf2d4[0x0]['createdAt'],_0x4cbf03=_0x23c181[0x0]['createdAt'];return _0x3361e1==_0x4cbf03?_0x2cf2d4[0x0]['attributes']['groupId']<_0x23c181[0x0]['attributes']['groupId']?-0x1:0x1:_0x3361e1<_0x4cbf03?-0x1:0x1;});for(const _0x49b92e of _0x49ec49)_0x49b92e['sort']((_0x41fc08,_0xa28063)=>_0x41fc08['id']<_0xa28063['id']?-0x1:0x1);}());for(let _0x67fc89=0x0;_0x67fc89<_0x49ec49['length'];_0x67fc89++){if(0x0==_0x49ec49[_0x67fc89]['length'])continue;const _0x52420c=[];for(let _0x305689=_0x67fc89+0x1;_0x305689<_0x49ec49['length'];_0x305689++)0x0!=_0x49ec49[_0x305689]['length']&&_0x2cbb34(_0x49ec49[_0x67fc89],_0x49ec49[_0x305689])&&_0x52420c['push'](_0x305689);for(const _0x730e60 of _0x52420c)_0x49ec49[_0x67fc89]=_0x49ec49[_0x67fc89]['concat'](_0x49ec49[_0x730e60]),_0x49ec49[_0x730e60]=[];}for(const _0x1b919f of _0x49ec49)for(let _0x287424=0x0;_0x287424<_0x1b919f['length'];_0x287424++){const _0x562448=_0x1b919f[_0x287424+0x1]||null;_0x1b919f[_0x287424]['next']!==_0x562448&&(_0x1b919f[_0x287424]['next']=_0x562448);}for(const _0x57fd58 of _0x49ec49)for(let _0x5ef507=0x0;_0x5ef507<_0x57fd58['length'];_0x5ef507++){const _0xc8dc11=_0x57fd58[_0x5ef507-0x1]||null;_0x57fd58[_0x5ef507]['previous']!==_0xc8dc11&&(_0x57fd58[_0x5ef507]['previous']=_0xc8dc11);}function _0x2cbb34(_0x30f947,_0x3d5dc7){if(_0x30f947[0x0]['attributes']['groupId']!==_0x3d5dc7[0x0]['attributes']['groupId']&&_0x30f947[0x0]['author']!==_0x3d5dc7[0x0]['author'])return!0x1;if(!function(_0x55151e,_0x2c8cdb){if(!_0x55151e['hasComments']&&!_0x2c8cdb['hasComments'])return!0x0;if(_0x55151e['hasComments']&&_0x2c8cdb['hasComments'])return!0x1;if(_0x55151e['hasComments']&&_0x2c8cdb['createdAt']<_0x55151e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2c8cdb['hasComments']&&_0x55151e['createdAt']<_0x2c8cdb['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x30f947[0x0],_0x3d5dc7[0x0]))return!0x1;const _0xa488ea=Vt(_0x30f947[0x0]['attributes'],'groupId'),_0x46fa8c=Vt(_0x3d5dc7[0x0]['attributes'],'groupId');if(!_0x14f7b8(_0xa488ea,_0x46fa8c))return!0x1;return!!_0x30f947['every'](_0x14421a=>_0x3d5dc7['some'](_0x2957c8=>_0x14421a['getFirstRange']()['isEqual'](_0x2957c8['getFirstRange']())))&&_0x3d5dc7['every'](_0xa4377=>_0x30f947['some'](_0x172d0d=>_0xa4377['getFirstRange']()['isEqual'](_0x172d0d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x571b7a){const _0x1ab6df=Array['from'](_0x571b7a),_0x398bc2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x181d54=_0x398bc2['filter'](_0x785dba=>!_0x571b7a['has'](_0x785dba)),_0x1b6f15=new Map(_0x1ab6df['map'](_0x32beb7=>[_0x32beb7,this['_suggestionFactory']['getSuggestionCallback'](_0x32beb7['type'],_0x32beb7['subType'],'join')])),_0x252555=new Map(_0x398bc2['map'](_0xf616dc=>[_0xf616dc,_0xf616dc['getRanges']()]));for(let _0x39edf1=0x0;_0x39edf1<_0x1ab6df['length'];_0x39edf1++){if(_0x301188(this,_0x1ab6df[_0x39edf1],_0x1ab6df,_0x39edf1+0x1))return!0x0;}for(let _0x42d9c6=0x0;_0x42d9c6<_0x1ab6df['length'];_0x42d9c6++){if(_0x301188(this,_0x1ab6df[_0x42d9c6],_0x181d54,0x0))return!0x0;}return!0x1;function _0x301188(_0x31ad1f,_0x4f7ed1,_0x4a92f7,_0x109d5c){for(let _0x1bdda9=_0x109d5c;_0x1bdda9<_0x4a92f7['length'];_0x1bdda9++){const _0xee0e31=_0x4a92f7[_0x1bdda9];if(_0xee0e31['type']!==_0x4f7ed1['type']||_0xee0e31['author']['id']!==_0x4f7ed1['author']['id']||_0xee0e31['subType']!==_0x4f7ed1['subType'])continue;if(!Wt(_0x4f7ed1,_0xee0e31))continue;if('attribute'==_0x4f7ed1['type']&&_0x4f7ed1['data']['oldValue']!=_0xee0e31['data']['oldValue'])continue;if('attribute'==_0x4f7ed1['type']&&_0x31ad1f['_isBlockAttribute'](_0x4f7ed1['data']['key']))continue;if('formatBlock'==_0x4f7ed1['type']){const _0x35e730=_0x31ad1f['editor']['model'],_0x1943c5=_0x4f7ed1['getContainedElement']();if(_0x1943c5&&(_0x35e730['schema']['isObject'](_0x1943c5)||_0x35e730['schema']['isLimit'](_0x1943c5)))continue;}const _0x14f6f9=_0x1b6f15['get'](_0x4f7ed1),_0x4790e5=_0x252555['get'](_0x4f7ed1),_0x4e2145=_0x252555['get'](_0xee0e31),_0x3766f2=_0x4f7ed1['commentThread']&&_0x4f7ed1['commentThread']['length'],_0x33e50c=_0xee0e31['commentThread']&&_0xee0e31['commentThread']['length'];if(!_0x3766f2&&_0x14f6f9(_0x4e2145,_0x4790e5))return _0x31ad1f['_joinSuggestions'](_0xee0e31,_0x4f7ed1),_0x252555['delete'](_0x4f7ed1),!0x0;if(!_0x33e50c&&_0x14f6f9(_0x4790e5,_0x4e2145))return _0x31ad1f['_joinSuggestions'](_0x4f7ed1,_0xee0e31),_0x252555['delete'](_0xee0e31),!0x0;}return!0x1;}}['_joinSuggestions'](_0x48587e,_0x4f0a86){if(_0x48587e['isMultiRange']){for(const _0x5959fe of _0x4f0a86['getRanges']())_0x48587e['addRange'](_0x5959fe);}else{const _0x397a88=_0x4f0a86['getFirstRange']()['end'];this['_setSuggestionRange'](_0x48587e,this['_model']['createRange'](_0x48587e['getFirstRange']()['start'],_0x397a88));}_0x4f0a86['removeMarkers']();}['_getMarkerAnnouncementText'](_0x78d68d,_0x5d2bce,_0x2ef3ef){const _0x38362e=_0x78d68d['startsWith']('format')||_0x78d68d['startsWith']('attribute')?'FORMATTING':_0x78d68d['toUpperCase']();return c(this['editor']['locale'],_0x5d2bce+'_'+_0x38362e+'_SUGGESTION_ANNOUNCEMENT',_0x2ef3ef);}['_initAriaMarkerChangeAnnouncements'](){const _0x4826ef=this['editor'];if(!_0x4826ef['ui'])return;const {ariaLiveAnnouncer:_0x1862c3}=_0x4826ef['ui'];_0x492d76(this['_model'],({left:_0x324b89,entered:_0x4d7bd4})=>{for(const _0x3a450f of _0x324b89){const {group:_0x2f5c6a,type:_0x87a2c2}=this['_splitMarkerName'](_0x3a450f['name']);if('suggestion'===_0x2f5c6a){_0x1862c3['announce'](this['_getMarkerAnnouncementText'](_0x87a2c2,'LEAVE'));break;}}for(const _0xe8455 of _0x4d7bd4){const {group:_0x13f74a,type:_0x49a2c6}=this['_splitMarkerName'](_0xe8455['name']);if('suggestion'===_0x13f74a){_0x1862c3['announce'](this['_getMarkerAnnouncementText'](_0x49a2c6,'ENTER',_0x5f531a(_0x295ed7)));break;}}});}['_processAttributeChanges'](_0xc1e6fb){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1f009e=this['editor'],_0x1a312a=_0x1f009e['model']['document']['differ']['getChanges']();if(0x0==_0x1a312a['length'])return!0x1;const _0x13e79f=[],_0xb3cc9c=_0x1a312a['filter'](_0x5a2c48=>'attribute'==_0x5a2c48['type']),_0x13484e=_0x1a312a['filter'](_0x4e4bcf=>'insert'==_0x4e4bcf['type']&&'$text'!=_0x4e4bcf['name']),_0x24f756=_0x1a312a['filter'](_0x5a0ea2=>'remove'==_0x5a0ea2['type']&&'$text'!=_0x5a0ea2['name']);for(const _0x4d3e56 of _0xb3cc9c)_0x13e79f['push']({'key':_0x4d3e56['attributeKey'],'newValue':_0x4d3e56['attributeNewValue'],'oldValue':_0x4d3e56['attributeOldValue'],'range':Ht(_0x4d3e56['range'],_0x1f009e['model'])});for(const _0x1c7a4f of _0x13484e){const _0x4567b9=_0x24f756['find'](_0x2d5880=>_0x2d5880['position']['isEqual'](_0x1c7a4f['position']));_0x4567b9&&_0x13e79f['push']({'key':u,'newValue':_0x1c7a4f['name'],'oldValue':_0x4567b9['name'],'range':_0x1f009e['model']['createRangeOn'](_0x1c7a4f['position']['nodeAfter'])});}return 0x0!=_0x13e79f['length']&&this['_reduceExistingSuggestions'](_0xc1e6fb,_0x13e79f);}['_processAttributeSuggestions'](_0x1f2349){let _0x4300b7=!0x1;const _0x16b392=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x336d98=>_0x336d98['data']['newRange']&&_0x336d98['name']['startsWith']('suggestion:attribute:'));for(const _0x34469c of _0x16b392){const {subType:_0x531aa7,id:_0x445525}=this['_splitMarkerName'](_0x34469c['name']),_0x566817=_0x531aa7['split']('|')[0x0];for(const _0x5359dd of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5359dd['id']!=_0x445525&&'attribute'==_0x5359dd['type']&&_0x5359dd['data']&&_0x5359dd['data']['key']==_0x566817&&_0x5359dd['getFirstRange']()['isIntersecting'](_0x34469c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5359dd,_0x34469c['data']['newRange'],_0x1f2349),_0x4300b7=!0x0);}return _0x4300b7;}['_recordAttributeChanges'](_0x2c9cc3){this['_recordAttributeSuggestions']=!0x0,_0x2c9cc3();}['_isRegisteredAttribute'](_0x1a942e){const _0x241ee7=this['_isBlockAttribute'](_0x1a942e),_0x2c61c8=this['_inlineAttributeKeys']['has'](_0x1a942e);return _0x241ee7||_0x2c61c8;}['_reduceExistingSuggestions'](_0x445186,_0x57d3b5){if(0x0==_0x57d3b5['length'])return!0x1;let _0x215001=!0x1;for(const _0x5529d9 of _0x57d3b5){const _0xb939d7=this['_findSuggestions'](_0x5529d9['range'],'attribute')['filter'](_0x1e8106=>!_0x1e8106['meta']['isNextTo'])['map'](_0x29eb70=>_0x29eb70['suggestion']),_0x470d6b=_0x52257a({'newValue':_0x5529d9['newValue']});_0xb939d7['filter'](_0x32dc25=>{const [_0x368e1b,_0x49daac]=_0x32dc25['subType']['split']('|');return _0x368e1b==_0x5529d9['key']&&_0x49daac!=_0x470d6b;})['forEach'](_0x111a95=>{this['_reduceSuggestionAttributeRange'](_0x111a95,_0x5529d9['range'],_0x445186),_0x215001=!0x0;});}return _0x215001;}['_reduceSuggestionAttributeRange'](_0x2fd416,_0x2efe6d,_0x540bbf){const _0x3ef289=_0x2fd416['getFirstRange']()['getDifference'](_0x2efe6d);0x0!==_0x3ef289['length']?0x1!==_0x3ef289['length']?this['_breakSuggestionMarker'](_0x2fd416,_0x2efe6d['start'],_0x2efe6d['end']):this['_setSuggestionRange'](_0x2fd416,_0x3ef289[0x0]):_0x540bbf['removeMarker'](_0x2fd416['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x298275){this['_editor']=_0x298275,this['_model']=_0x298275['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xb525f3,_0x414f3c,_0x1048d8,_0x2cf7b0,_0x581797,_0x4ce114){return new o(this['_model'],{'type':_0xb525f3,'subType':_0x414f3c,'id':_0x1048d8,'author':_0x2cf7b0,'creator':_0x2cf7b0,'attributes':_0x581797,'onAttributesChange':_0x4ce114,'onAccept':(..._0x1021f6)=>this['getSuggestionCallback'](_0xb525f3,_0x414f3c,'accept')(..._0x1021f6),'onDiscard':(..._0x3e2c03)=>this['getSuggestionCallback'](_0xb525f3,_0x414f3c,'discard')(..._0x3e2c03)});}['registerCustomCallback'](_0x3b4ff5,_0x44a51b,_0x221312,_0x4a1e4f){const _0x22738f=_0x3b4ff5+':'+_0x44a51b+':'+_0x221312;this['_customCallbacks']['set'](_0x22738f,_0x4a1e4f);}['getSuggestionCallback'](_0x274e23,_0x13a3dd,_0x12ff8e){const _0x8a21d5=_0x274e23+':'+_0x13a3dd+':'+_0x12ff8e;return this['_customCallbacks']['get'](_0x8a21d5)||this['_defaultCallbacks']['get'](_0x274e23+':'+_0x12ff8e);}['_registerDefaultCallbacks'](){const _0x3b1fa8=()=>!0x1,_0x26d747=_0x11d751=>{_0x11d751['sort']((_0x23b4c3,_0x134d8b)=>_0x23b4c3['start']['isBefore'](_0x134d8b['start'])?0x1:-0x1),this['_model']['change'](_0x40f1fa=>{for(const _0x49f0bf of _0x11d751){let _0x2eabf2;_0x2eabf2=_0x49f0bf['end']['isAtEnd']&&_0x49f0bf['end']['parent']==_0x49f0bf['start']['nodeAfter']?_0x40f1fa['createSelection'](_0x49f0bf['start']['nodeAfter'],'on'):_0x40f1fa['createSelection'](_0x49f0bf),this['_model']['deleteContent'](_0x2eabf2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x597225=(_0x147b8f,_0xf7c17f)=>{_0xf7c17f&&this['_model']['change'](_0x53b0ea=>{const {commandName:_0x31b34d,commandParams:_0x3fd41a=[]}=_0xf7c17f,_0x5e21a7=_0x147b8f['map'](_0x34de76=>(Gt(_0x34de76)&&(_0x34de76=this['_model']['createRange'](_0x34de76['end'])),_0x34de76))['filter'](_0x5cda2a=>'$graveyard'!==_0x5cda2a['root']['rootName']);if(_0x5e21a7['length']<0x1)return;const _0x55e436=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x45329d=>_0x6b53b6['fromRange'](_0x45329d));_0x53b0ea['setSelection'](_0x5e21a7);for(const _0x47ca9b of this['_editor']['commands']['commands']())_0x47ca9b['refresh']();_0x3fd41a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x31b34d,..._0x3fd41a);const _0x37039a=_0x55e436['filter'](_0x1c713b=>'$graveyard'!=_0x1c713b['root']['rootName']);_0x37039a['length']>0x0&&_0x53b0ea['setSelection'](_0x37039a);for(const _0x127e35 of _0x55e436)_0x127e35['detach']();});},_0x152216=(_0x389eff,_0x418f2a)=>0x1==_0x389eff['length']&&0x1==_0x418f2a['length']&&_0x389eff[0x0]['end']['isEqual'](_0x418f2a[0x0]['start']),_0x523d0b=(_0x4727b7,_0x1acb8d,_0x299167,_0x4bb721)=>zt(_0x4727b7,_0x1acb8d,_0x299167,_0x4bb721)?[_0x4727b7,_0x1acb8d]:zt(_0x1acb8d,_0x4727b7,_0x4bb721,_0x299167)?[_0x1acb8d,_0x4727b7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3b1fa8),this['_defaultCallbacks']['set']('insertion:discard',_0x26d747),this['_defaultCallbacks']['set']('insertion:join',_0x152216),this['_defaultCallbacks']['set']('insertion:chain',_0x523d0b),this['_defaultCallbacks']['set']('deletion:accept',_0x26d747),this['_defaultCallbacks']['set']('deletion:discard',_0x3b1fa8),this['_defaultCallbacks']['set']('deletion:join',_0x152216),this['_defaultCallbacks']['set']('deletion:chain',_0x523d0b),this['_defaultCallbacks']['set']('formatInline:accept',_0x597225),this['_defaultCallbacks']['set']('formatInline:discard',_0x3b1fa8),this['_defaultCallbacks']['set']('formatInline:join',_0x152216),this['_defaultCallbacks']['set']('formatInline:chain',_0x3b1fa8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x597225),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3b1fa8),this['_defaultCallbacks']['set']('formatBlock:join',_0x152216),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3b1fa8),this['_defaultCallbacks']['set']('attribute:accept',_0x3b1fa8),this['_defaultCallbacks']['set']('attribute:discard',(_0x436b3a,_0x279568)=>{if(!_0x279568)return;const _0x41ce90=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2983fd=>{if(_0x279568['key']==u)for(const _0x3b2683 of _0x436b3a){const _0xc54ba4=_0x3b2683['start']['nodeAfter'],_0x5069ff=_0x279568['oldValue'];_0x2983fd['rename'](_0xc54ba4,_0x5069ff);}else{if(_0x41ce90['_isBlockAttribute'](_0x279568['key'])){for(const _0x527fc1 of _0x436b3a)void 0x0!==_0x279568['oldValue']?_0x2983fd['setAttribute'](_0x279568['key'],_0x279568['oldValue'],_0x527fc1['start']['nodeAfter']):_0x2983fd['removeAttribute'](_0x279568['key'],_0x527fc1['start']['nodeAfter']);}else{for(const _0x4037a1 of _0x436b3a)_0x279568['oldValue']?_0x2983fd['setAttribute'](_0x279568['key'],_0x279568['oldValue'],_0x4037a1):_0x2983fd['removeAttribute'](_0x279568['key'],_0x4037a1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x152216);}}function Pt(_0xc7906b,_0x26d94c,_0x35a008){for(const _0x5a7276 of _0x26d94c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5a7276['root']==_0x5a7276)return!0x1;if(!_0x35a008['containsItem'](_0x5a7276))return!0x1;if(_0xc7906b['isObject'](_0x5a7276)||_0xc7906b['isLimit'](_0x5a7276))return!0x0;}return!0x1;}function Gt(_0x546605){return _0x546605['end']['parent']==_0x546605['start']['nodeAfter']&&_0x546605['end']['isAtStart'];}function Lt(_0x5a8e55,_0x17d046,_0x101fe7,_0x2c33ba){const _0x2f57dd=_0x71dbc4=>!_0x71dbc4['item']['is']('$textProxy')&&!_0x2c33ba['isObject'](_0x71dbc4['item']),_0x3f30c7=_0x5a8e55['start']['getLastMatchingPosition'](_0x2f57dd),_0x50b724=_0x5a8e55['end']['getLastMatchingPosition'](_0x2f57dd,{'direction':'backward'});return(!_0x5a8e55['start']['isEqual'](_0x3f30c7)||!_0x5a8e55['end']['isEqual'](_0x50b724))&&(_0x3f30c7['isBefore'](_0x50b724)?_0x101fe7['updateMarker'](_0x17d046,{'range':_0x101fe7['createRange'](_0x3f30c7,_0x50b724)}):_0x101fe7['removeMarker'](_0x17d046),!0x0);}function Jt(_0x592e1d){return _0x52257a(_0x592e1d);}function Kt(_0x5763d8){const _0x4de1a2=_0x5763d8['start']['nodeAfter'];return _0x4de1a2&&_0x4de1a2['is']('element');}function Ht(_0x50c932,_0x44cca1){return null==_0x50c932['end']['nodeBefore']&&_0x50c932['end']['parent']==_0x50c932['start']['nodeAfter']?qt(_0x50c932['start']['nodeAfter'],_0x44cca1):_0x50c932;}function qt(_0x47b298,_0x136b8b){const _0x6f71f4=_0x136b8b['schema']['isObject'](_0x47b298)||_0x136b8b['schema']['isSelectable'](_0x47b298);return _0x136b8b['createRange'](_0x136b8b['createPositionAt'](_0x47b298,'before'),_0x6f71f4?_0x136b8b['createPositionAfter'](_0x47b298):_0x136b8b['createPositionAt'](_0x47b298,'end'));}function zt(_0x3d0438,_0x4732a3,_0x5e0635,_0xde191d){return!!Wt(_0x3d0438,_0x4732a3)&&_0x5e0635['end']['isEqual'](_0xde191d['start']);}function Wt(_0x548420,_0x1580d7){if(!_0x548420['_isDataLoaded']||!_0x1580d7['_isDataLoaded'])return!0x1;const _0xa93a0=new Set(Object['keys'](_0x548420['attributes'])),_0x53781c=new Set(Object['keys'](_0x1580d7['attributes']));if(_0xa93a0['delete']('groupId'),_0x53781c['delete']('groupId'),0x0==_0xa93a0['size']&&0x0==_0x53781c['size'])return!0x0;if(_0xa93a0['size']!=_0x53781c['size'])return!0x1;const _0x90eb32={..._0x548420['attributes']},_0x255736={..._0x1580d7['attributes']};return delete _0x90eb32['groupId'],delete _0x255736['groupId'],JSON['stringify'](_0x90eb32)==JSON['stringify'](_0x255736);}function Qt(_0x44b136,_0x402039){const _0x21905b=Xt(_0x44b136['attributes']),_0x200556=Xt(_0x402039);if(!_0x44b136['_isDataLoaded'])return!0x1;for(const _0x4fae30 of Object['keys'](_0x200556))if(!_0x14f7b8(_0x21905b[_0x4fae30],_0x200556[_0x4fae30]))return!0x1;return!0x0;}function Xt(_0xe56fc9){const _0x5a5d21=Object['assign']({},_0xe56fc9);return delete _0x5a5d21['skipNestingCheck'],delete _0x5a5d21['tablePasteChainId'],_0x5a5d21;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x1f73ca(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x138465,_0x4bad6b,_0x11fed1,_0x338f64){super(),this['model']=_0x4bad6b,this['view']=_0x11fed1,this['commentThreadController']=_0x338f64,this['_editor']=_0x138465,this['_acceptCommand']=_0x138465['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x138465['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x177990,_0x4e219e)=>_0x177990||_0x4e219e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x590079=>_0x590079&&this['_editor']['model']['canEditAt'](_0x4bad6b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x730845=>_0x730845&&this['_editor']['model']['canEditAt'](_0x4bad6b['getRanges']())),this['_pendingAction']=null,_0x11fed1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x11fed1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x11fed1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x11fed1,'change:isDirty',()=>{_0x11fed1['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 _0x1b5344=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1b5344);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1d3524{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5efcfa,_0x3fd104,_0x4da3e8,_0x1a8747){super(_0x5efcfa),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xa50ecc(_0x5efcfa,c(_0x5efcfa,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3fd104['authoredAt']),this['bind']('authoredAt')['to'](_0x3fd104),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',_0x3fd104,'authoredAt',this,'descriptionParts',(_0x3696c5,_0x202f9a,_0x334543)=>{const _0x5e31fd=_0x334543['map'](_0x24e203=>ls(_0x24e203['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3696c5-0x1,_0x3fd104['author']['name'],_0x202f9a?_0x1a8747['formatDateTime'](_0x202f9a):'',new DOMParser()['parseFromString'](_0x5e31fd,'text/html')['body']['textContent']]);}),this['focusables']=new _0x10e58e(),this['focusTracker']=new _0xc2e669(),this['keystrokes']=new _0x5188e6(),this['focusCycler']=new _0x279a0f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x574cef=>_0x574cef['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3fd104,this['_localUser']=_0x4da3e8,this['_config']=_0x1a8747,_0x1a8747['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x82ff32(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x397c0a}=this['_config'];this['commentsListView']=new _0x397c0a(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',_0x17e14e=>_0x17e14e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x40dc1f,_0x5e16ad)=>_0x40dc1f||!!_0x5e16ad);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4ab846}=this['_config'],_0x3c0d55=new _0x4ab846(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xf2a2f=_0x3c0d55['commentInputView'];return _0x3c0d55['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xf2a2f,'value',(_0x2076f1,_0x1abf3f,_0x480261)=>!!_0x480261||_0x2076f1&&!_0x1abf3f),_0xf2a2f['on']('submit',(_0xca709c,_0x205cf0)=>{this['fire']('addComment',_0x205cf0),_0xf2a2f['editor']['setData']('');}),_0xf2a2f['on']('cancel',()=>this['focus']()),_0xf2a2f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3c0d55;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x43d9cf,_0x1b67de,_0x411ff2,_0x1b7584){super(_0x43d9cf,_0x1b67de,_0x411ff2,_0x1b7584),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x346671=>_0x346671&&_0x346671[0x0]?_0x346671[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3acfc8,_0x4039a6)=>{let _0x2c3e4a='';for(const _0x2ad023 of _0x3acfc8)_0x2c3e4a+='<p>'+ls(_0x2ad023['content'],_0x2ad023['color'])+'</p>';return _0x4039a6?_0x2c3e4a:ti(_0x2c3e4a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1b7584['SuggestionView'](_0x43d9cf,_0x1b67de,{'formatDateTime':_0x1b7584['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 _0x583ce0=this['bindTemplate'],_0x4c6823=[this['suggestionView']];return this['commentsListView']&&_0x4c6823['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4c6823['push'](this['commentThreadInputView']),_0x4c6823['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x583ce0['if']('isActive','ck-suggestion-wrapper--active'),_0x583ce0['to']('type',_0x3d3331=>'ck-suggestion-'+_0x3d3331),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':_0x583ce0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4c6823};}['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 we extends _0x1d3524{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4c3d06,_0x53d039,_0x5ec176){super(_0x4c3d06),this['_model']=_0x53d039,this['_config']=_0x5ec176,this['set']('description',''),this['bind']('authoredAt')['to'](_0x53d039),this['acceptButton']=this['_createButton'](c(_0x4c3d06,'Accept\x20suggestion'),_0x35d65b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x4c3d06,'Discard\x20suggestion'),_0x12bc4e,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xecee32(_0x4c3d06,_0x53d039['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x10e58e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xc2e669(),this['keystrokes']=new _0x5188e6(),this['focusCycler']=new _0x279a0f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x23e813=>_0x23e813['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2392b4=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2392b4['innerHTML']=this['description'],this['on']('change:description',(_0x48f625,_0x15b37f,_0x3012d8)=>{_0x2392b4['innerHTML']=_0x3012d8;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x400184=this['bindTemplate'],_0x516ddd=[{'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':_0x400184['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x400184['to']('authoredAt',_0x46219a=>this['_config']['formatDateTime'](_0x46219a))}]}]},{'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']&&_0x516ddd['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':_0x516ddd}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5c010e,_0x593078,_0x207e0f,_0x7d77a,_0x32994e){const _0x16942d=new _0x2f4a77(this['locale']);return _0x16942d['set']({'label':_0x5c010e,'icon':_0x593078,'tooltip':!0x0,'tooltipPosition':_0x32994e}),_0x16942d['extendTemplate']({'attributes':{'class':_0x207e0f}}),_0x16942d['on']('execute',()=>{this['fire'](_0x7d77a,this['_model']['id']);}),_0x16942d;}['_setupKeyboardNavigation'](){const _0x2863b9=this['element'];this['keystrokes']['listenTo'](_0x2863b9);for(const _0x191588 of this['focusables'])this['focusTracker']['add'](_0x191588['element']),this['keystrokes']['listenTo'](_0x191588['element']);this['keystrokes']['set']('enter',(_0x5195b0,_0x5e306e)=>{_0x2863b9===_0x5195b0['target']&&(this['focusCycler']['focusFirst'](),_0x5e306e());}),this['keystrokes']['set']('esc',(_0x563d99,_0x460757)=>{_0x2863b9!==_0x563d99['target']&&(this['focus'](),_0x460757());});}}class d extends _0x54e516{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x25323f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1a8b6c){super(_0x1a8b6c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xda7927=this['editor']['config'];_0xda7927['define']('trackChanges.SuggestionThreadView',fe),_0xda7927['define']('trackChanges.SuggestionView',we),_0xda7927['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xda7927['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x394fc4,_0x4f1f25){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1d1bf2,_0x164bd8]of this['_handleControllerBuffer']){const _0x5acc99=this['_suggestionToController']['has'](_0x1d1bf2);_0x5acc99||_0x164bd8?_0x5acc99&&_0x164bd8&&this['_destroyController'](_0x1d1bf2):this['_initializeController'](_0x1d1bf2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x394fc4,_0x4f1f25);}['init'](){const _0x500011=this['editor'],_0x45850b=_0x500011['plugins']['get']('TrackChangesEditing'),_0x1bed96=_0x500011['plugins']['get']('Annotations'),_0x14fb3b=_0x500011['plugins']['get']('EditorAnnotations'),_0x20793a=_0x500011['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x14fb3b['addSourceCollector'](()=>{const _0x65493c=[];for(const [_0x55eb1c,_0x2a9050]of Array['from'](this['_suggestionToController'])){const _0x1525db=_0x55eb1c['getAllAdjacentSuggestions'](),_0x3152bc=[];for(const _0x2d16e9 of _0x1525db){if(!_0x2d16e9['isInContent'])continue;if(_0x2d16e9['isMultiRange']){_0x3152bc['push'](..._0x2d16e9['getRanges']());continue;}const _0x47b2e9=_0x2d16e9['getFirstRange']();if(_0x3152bc['length']>0x0){const _0x4cee85=_0x3152bc[0x0]['getJoined'](_0x47b2e9);if(_0x4cee85){_0x3152bc[0x0]=_0x4cee85;continue;}}_0x3152bc['push'](_0x47b2e9);}_0x65493c['push']([_0x2a9050['view'],_0x3152bc]);}return _0x65493c;}),this['listenTo'](_0x45850b,'suggestionLoaded',(_0xbb7b25,_0x1965b9)=>{this['listenTo'](_0x1965b9,'change:previous',(_0x328e37,_0x16a004,_0x540536,_0x326c57)=>{_0x1965b9['isInContent']&&(null==_0x540536?(this['_updateController'](_0x326c57['head']),this['_handleSuggestionControllerDelayed'](_0x1965b9,!0x1)):(this['_updateController'](_0x540536['head']),null==_0x326c57&&this['_handleSuggestionControllerDelayed'](_0x1965b9,!0x0)));}),null!==_0x1965b9['previous']?this['_updateController'](_0x1965b9['head']):this['_handleSuggestionControllerDelayed'](_0x1965b9,!0x1);}),this['listenTo'](_0x45850b,'suggestionUnloaded',(_0x5cea6a,_0x2b1da8,_0x5a3e02)=>{this['stopListening'](_0x2b1da8,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2b1da8),this['_suggestionToController']['has'](_0x2b1da8)&&this['_destroyController'](_0x2b1da8),_0x5a3e02&&this['_updateController'](_0x5a3e02['head']);}),this['listenTo'](_0x45850b,'suggestionChanged',(_0x4a0794,_0x5d6f85)=>{this['_updateController'](_0x5d6f85);}),this['listenTo'](_0x1bed96,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x20793a,'addComment',(_0x1ed433,{threadId:_0x1ce766,isFromAdapter:_0x1dd39e})=>{if(_0x1dd39e||!_0x45850b['hasSuggestion'](_0x1ce766))return;const _0x52c591=_0x45850b['getSuggestion'](_0x1ce766);this['_suggestionToController']['get'](_0x52c591)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x50dbb8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3919e6;for(const _0x2bc92f in _0x50dbb8){const _0x24d510=_0x2bc92f,_0x31b777=_0x50dbb8[_0x24d510];if('trackChangesLicenseKeyValid'==_0x31b777||'trackChangesLicenseKeyInvalid'==_0x31b777||'trackChangesLicenseKeyExpired'==_0x31b777||'trackChangesLicenseKeyDomainLimit'==_0x31b777||'trackChangesLicenseKeyNotAllowed'==_0x31b777||'trackChangesLicenseKeyEvaluationLimit'==_0x31b777||'trackChangesLicenseKeyTrialLimit'==_0x31b777||'trackChangesLicenseKeyUsageLimit'==_0x31b777){delete _0x50dbb8[_0x24d510],_0x3919e6=_0x31b777,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3919e6&&_0x50dbb8['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3919e6&&_0x50dbb8['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3919e6&&_0x50dbb8['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3919e6&&_0x50dbb8['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3919e6&&_0x50dbb8['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3919e6&&_0x50dbb8['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3919e6&&_0x50dbb8['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x588185=this['editor']['plugins']['get']('Annotations'),_0x17645b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a431f=Array['from'](_0x588185['activeAnnotations'],_0x4f26b3=>_0x4f26b3['innerView'])['filter'](_0x1e7b62=>this['_viewToController']['has'](_0x1e7b62)),_0x5de93d=[];for(const _0x2fdb8b of _0x3a431f){const _0xc7b842=this['_viewToController']['get'](_0x2fdb8b)['model']['getAllAdjacentSuggestions']();_0x5de93d['push'](..._0xc7b842['reduce']((_0x209820,_0x585b24)=>[..._0x209820,..._0x585b24['getMarkerNames']()],[]));}_0x17645b['activeMarkers']=_0x5de93d;}['_addUIComponentsToFactory'](){const _0x3f461e=this['editor'],_0xcf1027=_0x3f461e['locale'],_0x4fc038=c(_0xcf1027,'Track\x20changes'),_0x29b82c=new _0x2e0cef([{'type':'switchbutton','model':new _0x4e4f6a({'withText':!0x0,'isToggleable':!0x0,'label':_0x4fc038,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4e4f6a({'withText':!0x0,'label':c(_0xcf1027,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4e4f6a({'withText':!0x0,'label':c(_0xcf1027,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4e4f6a({'withText':!0x0,'label':c(_0xcf1027,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4e4f6a({'withText':!0x0,'label':c(_0xcf1027,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3f461e['plugins']['has']('TrackChangesPreview')&&_0x29b82c['addMany']([{'type':'separator'},{'type':'button','model':new _0x4e4f6a({'withText':!0x0,'label':c(_0xcf1027,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x19072c of _0x29b82c)if(ke(_0x19072c)){const _0x360bee=_0x3f461e['commands']['get'](_0x19072c['model']['commandName']);_0x19072c['model']['bind']('isOn','isEnabled')['to'](_0x360bee,'value','isEnabled');}_0x3f461e['ui']['componentFactory']['add']('trackChanges',_0x1d0388=>this['_createToolbarButton'](_0x1d0388,_0x29b82c,_0x4fc038)),_0x3f461e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x21640a=>this['_createMenuBarMenu'](_0x21640a,_0x29b82c,_0x4fc038));}['_createToolbarButton'](_0xb14fb7,_0x5189f7,_0x21d81c){const _0x5eae1f=_0x56e766(_0xb14fb7,_0x5c40a3),_0x5c7cb4=this['editor']['commands']['get']('trackChanges');_0x5eae1f['buttonView']['set']({'tooltip':_0x21d81c,'label':_0x21d81c,'icon':_0xd8a762}),_0x5eae1f['buttonView']['bind']('isOn')['to'](_0x5c7cb4,'value'),_0x5eae1f['buttonView']['on']('execute',()=>{_0x5c7cb4['execute'](),this['editor']['editing']['view']['focus']();}),_0x3efabf(_0x5eae1f,_0x5189f7,{'role':'menu'});const _0x423edc=[];for(const _0x2549ca of _0x5189f7)ke(_0x2549ca)&&_0x423edc['push'](this['editor']['commands']['get'](_0x2549ca['model']['commandName']));const _0x531684=_0x5eae1f['buttonView'];return _0x531684['actionView']['unbind']('isEnabled'),_0x531684['arrowView']['unbind']('isEnabled'),_0x531684['actionView']['bind']('isEnabled')['to'](_0x5c7cb4,'isEnabled'),_0x531684['arrowView']['bind']('isEnabled')['toMany'](_0x423edc,'isEnabled',(..._0x46ab7f)=>_0x46ab7f['some'](_0xc82994=>_0xc82994)),_0x5eae1f['on']('execute',_0x24539c=>{this['editor']['execute'](_0x24539c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5eae1f;}['_createMenuBarMenu'](_0x46a053,_0x2d498a,_0x1714b5){const _0x3ebaf4=new _0x1aee17(_0x46a053),_0x1b5bc7=this['editor']['commands']['get']('trackChanges');_0x3ebaf4['buttonView']['set']({'label':_0x1714b5,'icon':_0xd8a762});const _0x36a975=new _0x2d7c81(_0x46a053);for(const _0x593f76 of _0x2d498a){if('separator'==_0x593f76['type']){_0x36a975['items']['add'](new _0x36879a(_0x46a053));continue;}const _0x276e36=new _0x4592f0(_0x46a053,_0x3ebaf4),_0x33b7c7=new _0x89f640(_0x46a053),_0x10d4fb=_0x593f76['model'];_0x33b7c7['bind'](...Object['keys'](_0x10d4fb))['to'](_0x10d4fb),_0x33b7c7['delegate']('execute')['to'](_0x3ebaf4),_0x33b7c7['on']('execute',()=>{this['editor']['execute'](_0x10d4fb['commandName']),this['editor']['editing']['view']['focus']();}),_0x276e36['children']['add'](_0x33b7c7),_0x36a975['items']['add'](_0x276e36);}return _0x3ebaf4['bind']('isEnabled')['to'](_0x1b5bc7,'isEnabled'),_0x3ebaf4['panelView']['children']['add'](_0x36a975),_0x3ebaf4;}['_initializeController'](_0x84336c){const _0x4e91bc=this['editor'],_0x2a4e4b=_0x4e91bc['config'],_0x3b6817=_0x4e91bc['plugins']['get']('Annotations'),_0x1fac0a=_0x4e91bc['plugins']['get']('CommentsRepository'),_0x17d464=_0x4e91bc['plugins']['get']('EditorAnnotations'),_0x4978f1=_0x4e91bc['plugins']['get'](_0x25323f)['me'],_0x2dc753=_0x2a4e4b['get']('trackChanges')['SuggestionThreadView'],_0x4a2187=_0x2a4e4b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x23fa84,CommentThreadInputView:_0x56c5b0}=_0x4e91bc['plugins']['get']('CommentsUI');let _0x361464,_0x116799,_0x3834a1;this['_annotationViews']['has'](_0x84336c['id'])?(_0x116799=this['_annotationViews']['get'](_0x84336c['id']),_0x361464=_0x116799['mainView']):(_0x361464=new _0x2dc753(_0x4e91bc['locale'],_0x84336c,_0x4978f1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2a4e4b['get']('comments.editorConfig'),'licenseKey':_0x2a4e4b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2a4e4b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2a4e4b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2a4e4b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x31fc8e(_0x2a4e4b['get']('locale')),'CommentView':_0x2a4e4b['get']('comments')['CommentView'],'CommentsListView':_0x23fa84,'CommentThreadInputView':_0x56c5b0,'SuggestionView':_0x4a2187}),_0x361464['suggestionView']['acceptButton']['on']('execute',()=>{_0x4e91bc['editing']['view']['focus']();}),_0x361464['suggestionView']['discardButton']['on']('execute',()=>{_0x4e91bc['editing']['view']['focus']();}),_0x116799=_0x3b6817['createAnnotationView'](this['editor']['locale'],_0x361464),_0x116799['bind']('isDirty')['to'](_0x361464,'isDirty'),_0x116799['bind']('length')['to'](_0x361464),_0x116799['bind']('type')['to'](_0x361464,'type',_0x3201ab=>'suggestion-'+_0x3201ab),_0x361464['on']('escape',()=>{_0x3834a1['fire']('escape');}),this['_annotationViews']['set'](_0x84336c['id'],_0x116799));const _0x1ec94c=_0x1fac0a['createCommentThreadController'](_0x84336c['commentThread'],_0x361464),_0x35cdfa=new pe(_0x4e91bc,_0x84336c,_0x361464,_0x1ec94c),_0x3ee3c8=_0x84336c['getAllAdjacentSuggestions']()['filter'](_0x542498=>_0x542498['isInContent']);_0x361464['descriptionParts']=_0x4e91bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3ee3c8),this['_suggestionToController']['set'](_0x84336c,_0x35cdfa),this['_viewToController']['set'](_0x361464,_0x35cdfa),_0x3834a1=_0x3b6817['createAnnotation']({'view':_0x116799,'target':()=>{const _0x1aa890=[],_0x19d2e3=_0x84336c['getAllAdjacentSuggestions']()['filter'](_0x31bba0=>_0x31bba0['isInContent']);for(const _0x5cb6bf of _0x19d2e3)_0x1aa890['push'](..._0x5cb6bf['getMarkers']());return _0x1cd5aa(_0x4e91bc['editing'],_0x1aa890);},'type':()=>'suggestion-'+_0x35cdfa['view']['type']}),_0x1fac0a['_bindAnnotationToEditors'](_0x361464,_0x3834a1),_0x3b6817['add'](_0x3834a1),_0x17d464['registerAnnotation'](_0x3834a1);}['_destroyController'](_0x5e4fa0){const _0xbaa07c=this['editor']['plugins']['get']('CommentsRepository'),_0x46b779=this['editor']['plugins']['get']('Annotations'),_0x379604=this['_suggestionToController']['get'](_0x5e4fa0),_0x27bdc1=_0x379604['view'],_0x18ee01=_0x46b779['getByInnerView'](_0x27bdc1);_0xbaa07c['_unbindEditors'](_0x27bdc1),_0x18ee01&&_0x46b779['remove'](_0x18ee01),this['_suggestionToController']['delete'](_0x5e4fa0),this['_viewToController']['delete'](_0x27bdc1),_0x379604['destroy']();}['_updateController'](_0x26e460){if(!_0x26e460['isInContent']||!this['_suggestionToController']['has'](_0x26e460))return;const _0x34f603=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3600af=this['_suggestionToController']['get'](_0x26e460),_0x5a4f6e=_0x26e460['getAllAdjacentSuggestions']();_0x3600af['view']['descriptionParts']=_0x34f603['descriptionFactory']['getDescriptions'](_0x5a4f6e);}['destroy'](){for(const _0x35b041 of this['_suggestionToController']['keys']())this['_destroyController'](_0x35b041);for(const _0x2573cc of this['_annotationViews']['values']())_0x2573cc['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0xc30b38){return'model'in _0xc30b38;}class k extends _0x54e516{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x504270){this['editor']['plugins']['get'](p)['adapter']=_0x504270;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3da1ac){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3da1ac);}['getSuggestions']({skipNotAttached:_0x258b96=!0x1,toJSON:_0x11a7aa=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x258b96,'toJSON':_0x11a7aa});}['getSuggestion'](_0xc31a46){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xc31a46);}}const w=['Pagination'];class T extends _0x54e516{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1b3ce8=this['editor'];if(_0x1b3ce8['config']['define']('trackChangesData.editorCreator',_0x2b1cdb=>{const _0x3a850d=_0x1b3ce8['model']['document']['getRootNames']()['reduce']((_0xdb57fa,_0x28fcf8)=>(_0xdb57fa[_0x28fcf8]='',_0xdb57fa),{});return _0x1b3ce8['constructor']['create'](_0x3a850d,_0x2b1cdb);}),'function'!=typeof _0x1b3ce8['config']['get']('trackChangesData')['editorCreator'])throw new _0x1a1d2d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x6c22bc){return N(this['editor'],!0x0,_0x6c22bc);}['getDataWithDiscardedSuggestions'](_0x29975b){return N(this['editor'],!0x1,_0x29975b);}}class D extends _0x54e516{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56190f){function _0x504eab(_0x516c06){return _0x516c06['map'](_0x4e23df=>String['fromCharCode'](_0x4e23df))['join']('');}super(_0x56190f),this['result']='end',_0x56190f[_0x504eab([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x504eab([0x76,0x69,0x65,0x77])][_0x504eab([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x504eab([0x61,0x75,0x74,0x6f]),_0x56190f[_0x504eab([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x504eab([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x504eab([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x504eab([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x504eab([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 Fe(_0x4eb909){return void 0x0!==_0x4eb909['getRootsAttributes'];}async function N(_0x4acc15,_0x2335fe,_0x344d4e){const _0xfaf3af=_0x3a3895(_0x4acc15,w);_0xfaf3af['plugins']['push'](p,D),_0xfaf3af['rootsAttributes']=Fe(_0x4acc15)?_0x4acc15['getRootsAttributes']():void 0x0;const _0x9259e8=document['createDocumentFragment'](),_0x23f7be=_0x4acc15['config']['get']('trackChangesData')['editorCreator'],_0x18a595=await _0x23f7be(_0xfaf3af,()=>function(_0x285b33){const _0x191604=document['createElement']('div');return _0x285b33['appendChild'](_0x191604),_0x191604;}(_0x9259e8));!function(_0x5dc601,_0x4d0445){const _0x37911a=_0x5dc601['model']['document']['getRootNames']()['reduce']((_0xec86aa,_0x2d7908)=>(_0xec86aa[_0x2d7908]=_0x5dc601['data']['get']({'rootName':_0x2d7908}),_0xec86aa),{}),_0x229b56=_0x5dc601['plugins']['get']('Users')['users']['map'](_0x40c6fc=>({'id':_0x40c6fc['id'],'name':_0x40c6fc['name']})),_0x106864=_0x5dc601['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x149ccd=_0x5dc601['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x110776=_0x4d0445['plugins']['get']('Users'),_0x24c2ed=_0x4d0445['plugins']['get']('TrackChangesEditing'),_0x40cefd=_0x4d0445['plugins']['get']('CommentsRepository');for(const _0x53e7d4 of _0x40cefd['getCommentThreads']())_0x53e7d4['remove']();for(const _0x15627f of _0x229b56)_0x110776['getUser'](_0x15627f['id'])||_0x110776['addUser'](_0x15627f);_0x110776['me']||_0x110776['useAnonymousUser']();for(const _0x505f5c of _0x149ccd)_0x40cefd['addCommentThread'](_0x505f5c);for(const _0x15b863 of _0x106864)_0x24c2ed['addSuggestionData'](_0x15b863);_0x4d0445['data']['set'](_0x37911a);}(_0x4acc15,_0x18a595),_0x18a595['execute'](_0x2335fe?'acceptAllSuggestions':'discardAllSuggestions');const _0x97e301=Fe(_0x18a595)?_0x18a595['getFullData'](_0x344d4e):_0x18a595['data']['get'](_0x344d4e);return await _0x18a595['destroy'](),_0x97e301;}class Me extends _0x1d3524{['options'];constructor(_0x271eb3,_0x1d6d3a){super(_0x271eb3),this['options']=_0x1d6d3a,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'](_0x234434,_0x5e87e5){if(!this['element'])return;const _0x3b5e36=[];for(const [_0x42eeca,_0x9e5758]of _0x234434){const _0x5586d3=document['createElement']('div');_0x5586d3['setAttribute']('data-ck-root-name',_0x42eeca),_0x5586d3['className']=_0x9e5758['classes']+'\x20ck-track-changes-preview__root-container',_0x5586d3['innerHTML']=_0x9e5758['content'],_0x3b5e36['push'](_0x5586d3);}_0x5e87e5(this['element'],_0x3b5e36),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x339021{constructor(_0x4c9206){super(_0x4c9206),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4c2e03=this['editor'],_0x25a92a=_0x4c2e03['locale'],_0x5ae96f=_0x4c2e03['plugins']['get']('Dialog');let _0x26935d;const _0xfdaab7=function(_0x1c75af){const _0x3b3523={};if('editables'in _0x1c75af['ui']['view']){for(const [_0x54edcc,_0x2db791]of Object['entries'](_0x1c75af['ui']['view']['editables']))_0x3b3523[_0x54edcc]=_0x2db791['element'];}else _0x3b3523[_0x1c75af['model']['document']['getRootNames']()[0x0]]=_0x1c75af['ui']['view']['editable']['element'];return _0x3b3523;}(_0x4c2e03),_0x18f08d=function(_0x50210a){let _0x167956=0x0;for(const _0x48fc4d of Object['values'](_0x50210a))_0x167956=Math['max'](_0x167956,_0x48fc4d['getBoundingClientRect']()['width']);let _0x1ad214=0x0;for(const _0x37c7fe of Object['values'](_0x50210a))_0x1ad214+=_0x37c7fe['getBoundingClientRect']()['height'];const _0xc6f730=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x262dc2=Math['min'](_0x1ad214,_0xc6f730);return{'width':_0x167956,'height':_0x262dc2};}(_0xfdaab7);_0x5ae96f['show']({'id':'finalContentPreview','title':c(_0x25a92a,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x25a92a,{'dialogRects':_0x18f08d}),'onHide':()=>{_0x26935d['detachFromDom']();},'onShow':()=>{_0x4c2e03['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x57b65c=>{const _0x31e62a=this['_standarizeRootsData'](_0x57b65c,_0x4c2e03,_0xfdaab7);_0x5ae96f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x31e62a,_0x4c2e03['config']['get']('trackChanges.preview.renderFunction'));}),_0x26935d=new _0x36cf22(_0x25a92a,[_0x5ae96f['view']]),_0x26935d['attachToDom'](),_0x26935d['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4c2e03['once']('destroy',()=>{_0x26935d['detachFromDom']();});const _0x5e1a21=_0x5ae96f['view']['headerView']['class'];_0x5ae96f['view']['headerView']['class']=_0x5e1a21?_0x5e1a21+'\x20ck-reset_all':'ck-reset_all',_0x5ae96f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5ae96f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x525773=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x48d997=_0x525773['previewMode'],_0x2fe4c4={};if('$labels'===_0x48d997){for(const _0x2ba6a5 of _0x525773['getMergeFieldsIds']())_0x2fe4c4[_0x2ba6a5]=_0x525773['getLabel'](_0x2ba6a5)||_0x2ba6a5;}else{const _0x4ebb07='$defaultValues'===_0x48d997?_0x525773['getDefaultValues']():_0x525773['getDataSetValues'](_0x48d997,!0x0);for(const _0x29a617 of Object['entries'](_0x4ebb07)){const [_0x14961d,_0x4c7a97]=_0x29a617;_0x2fe4c4[_0x14961d]=null!==_0x4c7a97?_0x4c7a97:_0x525773['getLabel'](_0x14961d)||_0x14961d;}}return{'mergeFieldsData':_0x2fe4c4};}['_standarizeRootsData'](_0x1bf31d,_0x1a8131,_0x499892){let _0x9a7f03;if('string'==typeof _0x1bf31d){const _0x47bff7=_0x1a8131['model']['document']['getRootNames']()[0x0];_0x9a7f03={[_0x47bff7]:_0x1bf31d};}else _0x9a7f03=_0x1bf31d;const _0x1a8454=this['_fixMediaEmbeds'](_0x9a7f03,_0x1a8131),_0x42d372=function(_0x17ce85,_0x3d7f10){for(const [_0x535b86,_0x2dd2c0]of _0x17ce85)_0x2dd2c0['classes']=_0x3d7f10[_0x535b86]['classList']['value']['replace']('ck-focused','');return _0x17ce85;}(this['_sortRoots'](_0x1a8131)['reduce']((_0x4ab4d2,_0x19ae69)=>(_0x4ab4d2['push']([_0x19ae69,{'content':_0x1a8454[_0x19ae69],'classes':''}]),_0x4ab4d2),[]),_0x499892);return _0x42d372;}['_fixMediaEmbeds'](_0x1b561a,_0x5b4309){if(!_0x5b4309['plugins']['has']('MediaEmbedEditing'))return _0x1b561a;const _0x26b909=_0x5b4309['plugins']['get']('MediaEmbedEditing');for(const [_0x295c07,_0x2144cd]of Object['entries'](_0x1b561a)){const _0x35b78a=document['createElement']('div');_0x35b78a['innerHTML']=_0x2144cd,(_0x35b78a['querySelectorAll']('figure.media')['forEach'](_0x3b3ca4=>{const _0x553701=_0x3b3ca4['querySelector']('oembed');if(_0x553701){const _0x4d602b=_0x553701['getAttribute']('url');if(_0x4d602b){const _0x441745=_0x26b909['registry']['getMediaViewElement'](new _0x162b19(_0x5b4309['editing']['view']['document']),_0x4d602b,{'elementName':'','renderForEditingView':!0x0}),_0x519d67=document['createElement']('div');_0x519d67['classList']['add']('ck-media__wrapper'),_0x441745['render'](_0x519d67,_0x5b4309['editing']['view']['domConverter']),_0x553701['replaceWith'](_0x519d67);}}}),_0x1b561a[_0x295c07]=_0x35b78a['innerHTML']);}return _0x1b561a;}['_sortRoots'](_0x1d9e88){if(!function(_0x3c1480){return void 0x0!==_0x3c1480['getRootsAttributes'];}(_0x1d9e88))return _0x1d9e88['model']['document']['getRootNames']();const _0x331ad4=[],_0x13c807=new Map();for(const _0x386ec9 of _0x1d9e88['model']['document']['getRootNames']()){const _0xf1a4f=_0x1d9e88['editing']['view']['getDomRoot'](_0x386ec9)['getClientRects']()['item'](0x0);_0x331ad4['push'](_0x386ec9),_0x13c807['set'](_0x386ec9,_0xf1a4f);}return _0x331ad4['sort']((_0x310132,_0x25d822)=>{const _0x20ce32=_0x13c807['get'](_0x310132),_0x3c217c=_0x13c807['get'](_0x25d822);return _0x20ce32['y']-_0x3c217c['y']||_0x20ce32['x']-_0x3c217c['x'];}),_0x331ad4;}}class te extends _0x54e516{static get['requires'](){return[T,_0x7a5ccd];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f0b56){super(_0x4f0b56),_0x4f0b56['commands']['add']('previewFinalContent',new re(this['editor'])),_0x4f0b56['config']['define']('trackChanges.preview.renderFunction',(_0x5031a9,_0x3e4963)=>{for(const _0x3a6c5e of _0x3e4963)_0x5031a9['appendChild'](_0x3a6c5e);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};