@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250211.0 → 0.0.0-nightly-next-20250212.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 (226) hide show
  1. package/LICENSE.md +1 -1
  2. package/build/track-changes.js +1 -1
  3. package/ckeditor5-metadata.json +1 -1
  4. package/dist/index.js +3 -3
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +27 -26
  150. package/src/commands/acceptsuggestioncommand.js +1 -1
  151. package/src/commands/discardsuggestioncommand.js +1 -1
  152. package/src/commands/executeonallsuggestionscommand.js +1 -1
  153. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  154. package/src/commands/previewfinalcontentcommand.js +1 -1
  155. package/src/commands/trackchangescommand.js +1 -1
  156. package/src/index.js +1 -1
  157. package/src/integrations/aiassistant.js +1 -1
  158. package/src/integrations/alignment.js +1 -1
  159. package/src/integrations/basicstyles.js +1 -1
  160. package/src/integrations/blockquote.js +1 -1
  161. package/src/integrations/bookmark.js +1 -1
  162. package/src/integrations/casechange.js +1 -1
  163. package/src/integrations/ckbox.js +1 -1
  164. package/src/integrations/codeblock.js +1 -1
  165. package/src/integrations/comments.js +1 -1
  166. package/src/integrations/deletecommand.js +1 -1
  167. package/src/integrations/entercommand.js +1 -1
  168. package/src/integrations/findandreplace.js +1 -1
  169. package/src/integrations/font.js +1 -1
  170. package/src/integrations/formatpainter.js +1 -1
  171. package/src/integrations/heading.js +1 -1
  172. package/src/integrations/highlight.js +1 -1
  173. package/src/integrations/horizontalline.js +1 -1
  174. package/src/integrations/htmlembed.js +1 -1
  175. package/src/integrations/image.js +1 -1
  176. package/src/integrations/imagereplace.js +1 -1
  177. package/src/integrations/imagestyle.js +1 -1
  178. package/src/integrations/importword.js +1 -1
  179. package/src/integrations/indent.js +1 -1
  180. package/src/integrations/inputcommand.js +1 -1
  181. package/src/integrations/legacylist.js +1 -1
  182. package/src/integrations/legacylistproperties.js +1 -1
  183. package/src/integrations/link.js +1 -1
  184. package/src/integrations/list.js +1 -1
  185. package/src/integrations/listproperties.js +1 -1
  186. package/src/integrations/mediaembed.js +1 -1
  187. package/src/integrations/mention.js +1 -1
  188. package/src/integrations/mergefields.js +1 -1
  189. package/src/integrations/multilevellist.js +1 -1
  190. package/src/integrations/pagebreak.js +1 -1
  191. package/src/integrations/paragraph.js +1 -1
  192. package/src/integrations/removeformat.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
  224. package/theme/icons/track-changes-accept.svg +0 -11
  225. package/theme/icons/track-changes-discard.svg +0 -11
  226. package/theme/icons/track-changes.svg +0 -11
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Qt,Plugin as _0x47ce4c,PendingActions as _0x1c44fc,icons as _0x5c2bfa}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5e4c77,ObservableMixin as _0x2c73f1,uid as _0x2ace31,priorities as _0x259708,insertToPriorityArray as _0x49c713,logWarning as _0x544a15,getEnvKeystrokeText as _0x52409a,FocusTracker as _0x2b6109,KeystrokeHandler as _0x5443b,Collection as _0x393919}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x229798,View as _0xbe508b,ViewCollection as _0x38d1e7,FocusCycler as ts,ViewModel as _0xf94e8a,createDropdown as _0xf07a9c,SplitButtonView as _0x1f10cb,addListToDropdown as _0x49151a,MenuBarMenuView as _0x124480,MenuBarMenuListView as _0x1ef2a5,ListSeparatorView as _0x791a52,MenuBarMenuListItemView as _0x48218d,MenuBarMenuListItemButtonView as _0x501545,BodyCollection as _0xb66b60,Dialog as _0x4eee0a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4c014f,hashObject as _0x4806d6,surroundingMarkersDetector as _0x168c71,FOCUS_ANNOTATION_KEYSTROKE as _0xcda296,AriaDescriptionView as _0x3510bd,setupThreadKeyboardNavigation as _0x14900b,trimHtml as _0xe92c8e,UserView as _0x328d64,LateFocusButtonView as _0x4dc03b,getDateTimeFormatter as _0x50b5ab,getAllMarkersDomElementsSorted as _0x24bf9a,sanitizeEditorConfig as _0x587fa8}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x143479,LiveRange as _0x147a51,LivePosition as _0x574f39,DowncastWriter as _0x2cca3c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4a4f65,toWidget as _0x1fa617}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x15dc30,set as _0xc106e3,isEqual as _0x301073,unset as _0x581cc8,omit as Et}from'lodash-es';import{Delete as _0x58d80f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xb15ad8,ShiftEnter as _0xb540ab}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x5bc02a,_0x261291){super(_0x5bc02a),this['_enabledCommands']=_0x261291,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 _0x5b27a1 of this['editor']['commands']['commands']())_0x5b27a1['affectsData']&&!this['_enabledCommands']['has'](_0x5b27a1)&&_0x5b27a1['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2feeee of this['editor']['commands']['commands']())_0x2feeee['affectsData']&&!this['_enabledCommands']['has'](_0x2feeee)&&_0x2feeee['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x363add,_0x2fabab){super(_0x363add),this['_suggestions']=_0x2fabab,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4da2f4){const _0x42778f=this['_suggestions']['get'](_0x4da2f4);if(!_0x42778f)throw new _0x5e4c77('track-changes-accept-suggestion-not-found',this);const _0x1a015d=_0x42778f['getRanges']();this['editor']['model']['canEditAt'](_0x1a015d)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x42778f);}}class R extends Qt{['_suggestions'];constructor(_0x15b4b9,_0x59a50a){super(_0x15b4b9),this['_suggestions']=_0x59a50a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1c1a9b){const _0x542062=this['_suggestions']['get'](_0x1c1a9b);if(!_0x542062)throw new _0x5e4c77('track-changes-discard-suggestion-not-found',this);const _0x37ccb7=_0x542062['getRanges']();this['editor']['model']['canEditAt'](_0x37ccb7)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x542062);}}function ns(_0x3d1fc5,_0x27dd44){let _0x453ac8='';return _0x453ac8+=_0x3d1fc5['split']('*')['map']((_0x4d1437,_0x155fce)=>_0x155fce%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4d1437)+'</span>':nn(_0x4d1437))['join'](''),_0x27dd44&&(_0x453ac8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x27dd44['value']+'\x22\x20title=\x22'+_0x27dd44['title']+'\x22></span>'),_0x453ac8;}function nn(_0x26705c){const _0x46f54e=document['createElement']('span');return _0x46f54e['innerText']=_0x26705c,_0x46f54e['innerHTML'];}function Xt(_0x3dc8fe){return _0x3dc8fe['sort']((_0x5d9421,_0x1338bc)=>'deletion'==_0x5d9421['type']&&'deletion'!=_0x1338bc['type']?-0x1:'deletion'!=_0x5d9421['type']&&'deletion'==_0x1338bc['type']?0x1:0x0);}function to(_0x10d3ba,_0x3161e7){let _0x4b4078,_0x1fadc2=0x0;const _0x30b4e3=[],_0x51559c=_0x3161e7['schema'];for(;_0x1fadc2<_0x10d3ba['length'];){const _0x3f3fea=_0x10d3ba[_0x1fadc2],_0x5ea29f=_0x10d3ba[_0x1fadc2+0x1];_0x4b4078||(_0x4b4078=_0x3161e7['createPositionBefore'](_0x3f3fea)),on(_0x3161e7,_0x3f3fea,_0x5ea29f)||(_0x30b4e3['push'](_0x3161e7['createRange'](_0x4b4078,_0x51559c['isObject'](_0x3f3fea)?_0x3161e7['createPositionAfter'](_0x3f3fea):_0x3161e7['createPositionAt'](_0x3f3fea,'end'))),_0x4b4078=null),_0x1fadc2++;}return _0x30b4e3;}function on(_0x5cdd1a,_0x954845,_0x48e7ac){if(!_0x48e7ac)return!0x1;const _0x98a459=_0x5cdd1a['createPositionAfter'](_0x954845),_0x19a8fe=_0x5cdd1a['createPositionBefore'](_0x48e7ac);return _0x98a459['isTouching'](_0x19a8fe);}function Yt(_0x21ebcb,_0x13d240,_0x289a39){for(;_0x289a39['length'];){const _0x27b15c=_0x289a39['splice'](0x0,0x64);_0x21ebcb['change'](()=>{for(const _0x508e7b of _0x27b15c)_0x508e7b['isInContent']&&_0x13d240['execute'](_0x508e7b['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x532485,_0x14ac1d,_0x2a1d73){super(_0x532485),this['_command']=_0x14ac1d,this['_suggestions']=_0x2a1d73,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5c9ff6=Array['from'](this['_suggestions']['values']())['some'](_0x52fb40=>_0x52fb40['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5c9ff6;}['execute'](){const _0x3cd6b9=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x2c3036 of _0x3cd6b9){const _0x49aa64=_0x2c3036['getRanges']();if(!this['editor']['model']['canEditAt'](_0x49aa64))return;}Yt(this['editor']['model'],this['_command'],_0x3cd6b9);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xed6294,_0x5c51e7,_0x507e52){super(_0xed6294),this['_command']=_0x5c51e7,this['_suggestions']=_0x507e52,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x154070=this['editor']['model']['document']['selection'],_0x368e0c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x521c15,_0x36cd49){const _0x207e0b=Array['from'](_0x521c15['getRanges']()),_0x23106a=new Set();for(const _0x730071 of _0x36cd49)if(_0x730071['isInContent']){for(const _0x50046d of _0x207e0b)for(const _0x13b59d of _0x730071['getRanges']())(_0x50046d['isIntersecting'](_0x13b59d)||_0x521c15['isCollapsed']&&!_0x730071['isMultiRange']&&_0x730071['next']&&_0x13b59d['end']['isTouching'](_0x50046d['start']))&&_0x23106a['add'](_0x730071);}return _0x23106a;}(_0x154070,_0x368e0c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x10b890=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x410420 of _0x10b890){const _0x4efc9e=_0x410420['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4efc9e))return;}Yt(this['editor']['model'],this['_command'],_0x10b890);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x2c73f1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4bff9e,_0x234514){super(),this['id']=_0x234514['id'],this['type']=_0x234514['type'],this['subType']=_0x234514['subType']||null,this['author']=_0x234514['author'],this['creator']=_0x234514['creator']||_0x234514['author'],this['isExternal']=Boolean(_0x234514['attributes']&&_0x234514['attributes']['@external']),this['data']=null,this['_model']=_0x4bff9e,this['_onAccept']=_0x234514['onAccept'],this['_onDiscard']=_0x234514['onDiscard'],this['_onAttributesChange']=_0x234514['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x234514['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 _0x13e930=this;for(;_0x13e930['previous'];)_0x13e930=_0x13e930['previous'];return _0x13e930;}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'](_0x5796a5){this['_markerNames']['add'](_0x5796a5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3d5b67=>this['_model']['markers']['get'](_0x3d5b67))['filter'](_0x250c7a=>_0x250c7a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x57c1ec=>{for(const _0x3ed6d2 of this['getMarkers']())_0x57c1ec['removeMarker'](_0x3ed6d2);}),this['_markerNames']['clear']();}['removeMarker'](_0x14852f){this['_model']['change'](_0x3a4ba1=>{_0x3a4ba1['removeMarker'](_0x14852f);}),this['_markerNames']['delete'](_0x14852f);}['addRange'](_0x46a703){const _0x248de0='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x248de0),this['_model']['change'](_0x18b055=>{_0x18b055['addMarker'](_0x248de0,{'range':_0x46a703,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1e4c4f){for(const _0x45c782 of this['getRanges']())if(_0x45c782['isIntersecting'](_0x1e4c4f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4683c3=>_0x4683c3['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1584fd,_0x4289bd)=>[..._0x1584fd,..._0x4289bd['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2ae8fe=this['getRanges']();if(0x1!=_0x2ae8fe['length'])return null;const _0x1ee9d5=_0x2ae8fe[0x0],_0x70371a=_0x1ee9d5['start']['nodeAfter'],_0x1dd1c3=_0x1ee9d5['end']['nodeBefore'];return _0x70371a instanceof _0x143479?_0x70371a!=_0x1dd1c3?null:_0x70371a: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 _0x1d3748=[];let _0x5602f1=this['head'];for(;_0x5602f1;)_0x1d3748['push'](_0x5602f1),_0x5602f1=_0x5602f1['next'];return _0x1d3748;}['setAttribute'](_0x21fa7e,_0x4f5e95){const _0x2d464e=_0x15dc30(this['attributes']);_0xc106e3(_0x2d464e,_0x21fa7e,_0x4f5e95),_0x301073(_0x2d464e,this['attributes'])||(this['attributes']=_0x2d464e,this['_onAttributesChange'](_0x2d464e));}['removeAttribute'](_0x24f396){const _0x4e9d25=_0x15dc30(this['attributes']);_0x581cc8(_0x4e9d25,_0x24f396),_0x301073(_0x4e9d25,this['attributes'])||(this['attributes']=_0x4e9d25,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 _0x2ace31()['substr'](0x1,0x5);}}function o(_0x318490,_0x4e260b,_0x20b277){const _0x3bf70e=_0x318490['t'],t=_0x318490['t'];switch(_0x4e260b){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',_0x20b277);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x20b277);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x20b277);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x20b277);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x20b277);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',_0x20b277);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x20b277);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',_0x20b277);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x20b277);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x20b277);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x20b277);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x20b277);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x20b277);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x20b277);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x20b277);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x20b277);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x20b277);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x20b277);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x20b277);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x20b277);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x20b277);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x20b277);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x20b277);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x20b277);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'},_0x20b277);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x20b277);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x20b277);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x20b277);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x20b277);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x20b277);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'},_0x20b277);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x20b277);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x20b277);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x20b277);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x20b277);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'},_0x20b277);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x20b277);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'},_0x20b277);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'},_0x20b277);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x20b277);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'},_0x20b277);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x20b277);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'},_0x20b277);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x20b277);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x20b277);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'},_0x20b277);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x20b277);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 _0x3bf70e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x20b277);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3bf70e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x20b277);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x20b277);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'},_0x20b277);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'},_0x20b277);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'},_0x20b277);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4e260b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x43c724,_0x4e808c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x43c724,this['_locale']=_0x4e808c;}['getDescriptions'](_0x28bc0f){const _0x22a4d1=[],_0x49050b=new Set(),_0x1e2e34=new Set();for(let _0x116769=0x0;_0x116769<_0x28bc0f['length'];_0x116769++){const _0x2d5b7b=_0x28bc0f[_0x116769];if(!_0x2d5b7b['isInContent'])continue;const _0x167c2b=this['_handleCustomCallbackDescription'](_0x2d5b7b);if(_0x167c2b){if(null!=_0x2d5b7b['subType']){if(_0x49050b['has'](_0x2d5b7b['subType']))continue;_0x49050b['add'](_0x2d5b7b['subType']);}_0x22a4d1['push'](_0x167c2b);}else{if('attribute'!=_0x2d5b7b['type'])'insertion'!=_0x2d5b7b['type']&&'deletion'!=_0x2d5b7b['type']||this['_handleInsertRemoveSuggestionDescription'](_0x22a4d1,_0x2d5b7b,_0x28bc0f[_0x116769+0x1]);else{const _0x1a1c38=_0x2d5b7b['data']['key'];if(_0x1e2e34['has'](_0x1a1c38))continue;_0x1e2e34['add'](_0x2d5b7b['data']['key']),_0x1a1c38==m?this['_handleRenameSuggestionDescription'](_0x22a4d1,_0x2d5b7b):this['_handleAttributeSuggestionDescription'](_0x22a4d1,_0x2d5b7b);}}}return this['_resolveDescriptionItems'](_0x22a4d1);}['registerDescriptionCallback'](_0x2a4fb3){this['_customCallbacks']['push'](_0x2a4fb3);}['registerElementLabel'](_0x2b07f7,_0x339ecc,_0x3ce722=_0x259708['normal']){'function'==typeof _0x2b07f7?_0x49c713(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2b07f7,'label':_0x339ecc,'priority':_0x3ce722}):this['_itemLabels']['set'](_0x2b07f7,_0x339ecc);}['registerAttributeLabel'](_0xa7fc1c,_0x3a2f99){this['_attributeLabels']['set'](_0xa7fc1c,_0x3a2f99);}['getItemLabel'](_0x2e7ba5,_0x57ed4b=0x1){let _0x17d603;for(const _0x47a663 of this['_itemLabelsCallbacks'])if(_0x47a663['matchingCallback'](_0x2e7ba5)){_0x17d603=_0x47a663['label'];break;}return _0x17d603||(_0x17d603=this['_itemLabels']['get'](_0x2e7ba5['name'])),_0x17d603?_0x17d603(_0x57ed4b):0x1!==_0x57ed4b?_0x57ed4b+'\x20'+_0x2e7ba5['name']+'s':''+_0x2e7ba5['name'];}['_addDescriptionItems'](_0x47c95e,_0x33dabc){const _0x2b4e3b=_0x33dabc['getFirstRange']()['getWalker'](),_0x5a2ce7='insertion'==_0x33dabc['type']?'add':'remove';for(const _0x2f05fd of _0x2b4e3b){const _0x43d558=_0x2f05fd['item'],_0x47ebcc=_0x47c95e[_0x47c95e['length']-0x1];if(_0x43d558['is']('$textProxy'))_0x47ebcc&&_0x47ebcc['type']['indexOf']('Container')>-0x1&&_0x47c95e['pop'](),_0x47ebcc&&'text'==_0x47ebcc['type']?_0x47ebcc[_0x5a2ce7]+=_0x43d558['data']:_0x47c95e['push']({'type':'text','add':'add'==_0x5a2ce7?_0x43d558['data']:'','remove':'remove'==_0x5a2ce7?_0x43d558['data']:''});else{if(this['_schema']['isObject'](_0x43d558)){const _0x453e72=_0x43d558;if(_0x47ebcc&&_0x47ebcc['type']['indexOf']('Container')>-0x1&&_0x47c95e['pop'](),'elementEnd'==_0x2f05fd['type'])continue;_0x47ebcc&&_0x47ebcc['type']==_0x5a2ce7+'Object'&&_0x47ebcc['element']['name']==_0x453e72['name']?_0x47ebcc['quantity']++:_0x47c95e['push']({'type':_0x5a2ce7+'Object','element':_0x453e72,'quantity':0x1}),_0x2b4e3b['skip'](_0x3f5717=>!('elementEnd'==_0x3f5717['type']&&_0x3f5717['item']==_0x43d558));}else{if(this['_schema']['checkChild'](_0x43d558,'$text')||_0x43d558['is']('element','softBreak')){const _0x592b66=_0x43d558;if('add'==_0x5a2ce7&&'elementStart'==_0x2f05fd['type']||'remove'==_0x5a2ce7&&'elementEnd'==_0x2f05fd['type'])continue;if(_0x47ebcc&&-0x1==_0x47ebcc['type']['indexOf']('Container')){'text'==_0x47ebcc['type']&&(_0x47ebcc[_0x5a2ce7]+='\x0a');continue;}let _0x5e1215;if(_0x5e1215='add'==_0x5a2ce7?_0x592b66['nextSibling']&&!this['_schema']['isObject'](_0x592b66['nextSibling'])?_0x592b66['nextSibling']:null:_0x592b66['previousSibling']&&!this['_schema']['isObject'](_0x592b66['previousSibling'])?_0x592b66['previousSibling']:null,_0x592b66['isEmpty']||_0x5e1215&&_0x5e1215['isEmpty']){const _0x430ff5=_0x5e1215&&_0x5e1215['isEmpty']?_0x5e1215:_0x592b66;_0x47ebcc&&_0x47ebcc['type']==_0x5a2ce7+'EmptyContainer'&&_0x47ebcc['element']['name']==_0x430ff5['name']?_0x47ebcc['quantity']++:_0x47c95e['push']({'type':_0x5a2ce7+'EmptyContainer','element':_0x430ff5,'quantity':0x1});}else _0x47c95e['push']({'type':_0x5a2ce7+'Container','element':_0x592b66});}}}}}['_resolveDescriptionItems'](_0x586c31){const _0x27f813=this['_locale'],_0x4401b4=[],_0x548b5d=[],_0x46dcf9=[];for(const _0x2fb1b5 of _0x586c31)switch(_0x2fb1b5['type']){case'text':if(_0x2fb1b5['add']=_0x2fb1b5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2fb1b5['remove']=_0x2fb1b5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2fb1b5['add']&&''!=_0x2fb1b5['remove']){_0x4401b4['push']({'type':'replace','content':o(_0x27f813,'REPLACE_TEXT',['\x22'+_0x2fb1b5['remove']+'\x22','\x22'+_0x2fb1b5['add']+'\x22'])});continue;}if(null!=_0x2fb1b5['add']['match'](/^ +$/)){_0x4401b4['push']({'type':'insertion','content':o(_0x27f813,'*Insert:*\x20%0',o(_0x27f813,'ELEMENT_SPACE',_0x2fb1b5['add']['length']))});continue;}if(null!=_0x2fb1b5['remove']['match'](/^ +$/)){_0x4401b4['push']({'type':'deletion','content':o(_0x27f813,'*Remove:*\x20%0',o(_0x27f813,'ELEMENT_SPACE',_0x2fb1b5['remove']['length']))});continue;}if(''!=_0x2fb1b5['add']){_0x4401b4['push']({'type':'insertion','content':o(_0x27f813,'*Insert:*\x20%0','\x22'+_0x2fb1b5['add']+'\x22')});continue;}_0x4401b4['push']({'type':'deletion','content':o(_0x27f813,'*Remove:*\x20%0','\x22'+_0x2fb1b5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4401b4['push']({'type':'insertion','content':o(_0x27f813,'*Insert:*\x20%0',this['getItemLabel'](_0x2fb1b5['element'],_0x2fb1b5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4401b4['push']({'type':'deletion','content':o(_0x27f813,'*Remove:*\x20%0',this['getItemLabel'](_0x2fb1b5['element'],_0x2fb1b5['quantity']))});continue;case'addContainer':_0x4401b4['push']({'type':'insertion','content':o(_0x27f813,'*Split:*\x20%0',this['getItemLabel'](_0x2fb1b5['element'],_0x2fb1b5['quantity']))});continue;case'removeContainer':_0x4401b4['push']({'type':'deletion','content':o(_0x27f813,'*Merge:*\x20%0',this['getItemLabel'](_0x2fb1b5['element'],_0x2fb1b5['quantity']))});continue;case'addFormat':_0x548b5d['push'](_0x2fb1b5['key']);continue;case'removeFormat':_0x46dcf9['push'](_0x2fb1b5['key']);continue;default:_0x4401b4['push'](_0x2fb1b5);}if(_0x548b5d['length']){const _0x154e87=_0x548b5d['map'](_0x5d9fe2=>this['_attributeLabels']['has'](_0x5d9fe2)?this['_attributeLabels']['get'](_0x5d9fe2):_0x5d9fe2)['join'](',\x20');_0x4401b4['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x154e87)});}if(_0x46dcf9['length']){const _0x4c0ec2=_0x46dcf9['map'](_0x10ceae=>this['_attributeLabels']['has'](_0x10ceae)?this['_attributeLabels']['get'](_0x10ceae):_0x10ceae)['join'](',\x20');_0x4401b4['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4c0ec2)});}return _0x4401b4;}['_handleCustomCallbackDescription'](_0x32d73e){for(const _0x1aa2e4 of this['_customCallbacks']){const _0x522a6f=_0x1aa2e4(_0x32d73e);if(_0x522a6f&&'type'in _0x522a6f)return _0x522a6f;}}['_handleAttributeSuggestionDescription'](_0xc7f10b,_0x52d566){const _0x2ca107=_0x52d566['data'],_0x2deb65=void 0x0===_0x2ca107['newValue']?'removeFormat':'addFormat';_0xc7f10b['push']({'type':_0x2deb65,'key':_0x2ca107['key']});}['_handleRenameSuggestionDescription'](_0xb8b43b,_0x3ddea2){_0xb8b43b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3ddea2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x56601f,_0x34c6a2,_0x4b41a2){if(this['_addDescriptionItems'](_0x56601f,_0x34c6a2),_0x4b41a2&&_0x4b41a2['getFirstRange']()&&!_0x34c6a2['getFirstRange']()['end']['isEqual'](_0x4b41a2['getFirstRange']()['start'])){const _0x4998cd=_0x56601f[_0x56601f['length']-0x1],_0x2195fb='insertion'==_0x34c6a2['type']?'add':'remove';_0x4998cd&&'text'==_0x4998cd['type']&&(_0x4998cd[_0x2195fb]+='\x0a');}}}class U extends _0x47ce4c{['afterInit'](){const _0x4931bb=this['editor'],_0x9af9fe=_0x4931bb['plugins']['get']('TrackChangesEditing');_0x4931bb['commands']['get']('showAIAssistant')&&_0x9af9fe['enableCommand']('showAIAssistant');}}class V extends _0x47ce4c{['afterInit'](){const _0x5d6b2a=this['editor'],_0x451fac=_0x5d6b2a['locale'];if(!_0x5d6b2a['plugins']['has']('AlignmentEditing'))return;const _0x143fb6=_0x5d6b2a['plugins']['get']('TrackChangesEditing');_0x143fb6['enableDefaultAttributesIntegration']('alignment'),_0x143fb6['registerBlockAttribute']('alignment'),_0x143fb6['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x451fac,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b27f2=this['editor'],_0x167b3d=_0x3b27f2['locale'];_0x3b27f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3aafb5=>{if('formatBlock'!=_0x3aafb5['type'])return;const {data:_0x174c5e}=_0x3aafb5;if(_0x174c5e&&'alignment'==_0x174c5e['commandName']){const _0x38cf45=_0x174c5e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x167b3d,'*Format:*\x20%0',function(_0x5e3a41){switch(_0x5e3a41){case'left':return o(_0x167b3d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x167b3d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x167b3d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x167b3d,'FORMAT_JUSTIFY_TEXT');}}(_0x38cf45))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x47ce4c{['afterInit'](){const _0x14b8b2=this['editor'],_0x2e2fac=_0x14b8b2['plugins']['get']('TrackChangesEditing'),_0x28e3c2=_0x14b8b2['locale'];for(const _0xf87314 of ti){if(!_0x14b8b2['plugins']['has'](_0xf87314))continue;const _0xca7685=_0xf87314['slice'](0x0,-0x7)['toLowerCase'](),_0x24efc0='FORMAT_'+_0xca7685['toUpperCase']();_0x2e2fac['enableDefaultAttributesIntegration'](_0xca7685),_0x2e2fac['registerInlineAttribute'](_0xca7685),_0x2e2fac['descriptionFactory']['registerAttributeLabel'](_0xca7685,o(_0x28e3c2,_0x24efc0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5565b2=this['editor'],_0x3ab979=_0x5565b2['locale'],_0x1231d1=_0x5565b2['plugins']['get']('TrackChangesEditing');function _0x2f22b4(_0x578d3a,_0x12b6cb){_0x1231d1['descriptionFactory']['registerDescriptionCallback'](_0x3316f9=>{if('formatInline'!=_0x3316f9['type'])return;const {data:_0x569698}=_0x3316f9;return _0x569698&&_0x569698['commandName']===_0x578d3a?_0x569698['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ab979,'*Format:*\x20%0',_0x12b6cb)}:{'type':'format','content':o(_0x3ab979,'*Remove\x20format:*\x20%0',_0x12b6cb)}:void 0x0;});}_0x2f22b4('bold',o(_0x3ab979,'FORMAT_BOLD')),_0x2f22b4('italic',o(_0x3ab979,'FORMAT_ITALIC')),_0x2f22b4('underline',o(_0x3ab979,'FORMAT_UNDERLINE')),_0x2f22b4('code',o(_0x3ab979,'FORMAT_CODE')),_0x2f22b4('strikethrough',o(_0x3ab979,'FORMAT_STRIKETHROUGH')),_0x2f22b4('subscript',o(_0x3ab979,'FORMAT_SUBSCRIPT')),_0x2f22b4('superscript',o(_0x3ab979,'FORMAT_SUPERSCRIPT'));}}class F extends _0x47ce4c{['afterInit'](){const _0x4ddd05=this['editor'],_0x373d29=_0x4ddd05['locale'];if(!_0x4ddd05['plugins']['has']('BlockQuoteEditing'))return;const _0x1c877b=_0x4ddd05['plugins']['get']('TrackChangesEditing'),_0x3d183d=this['editor']['commands']['get']('blockQuote');_0x1c877b['enableCommand']('blockQuote',(_0x129f85,_0x510407={})=>{const _0x1f1648=this['editor']['model']['document']['selection'],_0x7a655c=_0x510407&&void 0x0!==_0x510407['forceValue']?_0x510407['forceValue']:!_0x3d183d['value'];let _0x13a144=[];if(_0x7a655c){const _0x4fe080=Array['from'](_0x1f1648['getSelectedBlocks']())['filter'](_0xb2e31e=>oo(_0xb2e31e)||function(_0x5d2c8c,_0x555342){const _0x2dc92c=_0x555342['checkChild'](_0x5d2c8c['parent'],'blockQuote'),_0x24c1e7=_0x555342['checkChild'](['$root','blockQuote'],_0x5d2c8c);return _0x2dc92c&&_0x24c1e7;}(_0xb2e31e,this['editor']['model']['schema']));_0x13a144=to(_0x4fe080,_0x4ddd05['model']);}else{const _0x478bfd=Array['from'](_0x1f1648['getSelectedBlocks']())['filter'](_0xbd8e7a=>oo(_0xbd8e7a));_0x13a144=to(_0x478bfd,_0x4ddd05['model']);}_0x4ddd05['model']['change'](()=>{for(const _0x2a1992 of _0x13a144)_0x1c877b['markBlockFormat'](_0x2a1992,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x7a655c}]});});}),_0x1c877b['descriptionFactory']['registerDescriptionCallback'](_0x5d4b49=>{const {data:_0xda6e00}=_0x5d4b49;if(_0xda6e00&&'blockQuote'==_0xda6e00['commandName']){const _0x3e3ba0=o(_0x373d29,'ELEMENT_BLOCK_QUOTE');return _0xda6e00['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x373d29,'*Set\x20format:*\x20%0',_0x3e3ba0)}:{'type':'format','content':o(_0x373d29,'*Remove\x20format:*\x20%0',_0x3e3ba0)};}});}}function oo(_0x41590f){return'blockQuote'==_0x41590f['parent']['name'];}class L extends _0x47ce4c{['afterInit'](){const _0x2a48ec=this['editor'],_0x1dce11=_0x2a48ec['locale'],_0x4c5aca=_0x2a48ec['plugins']['get']('TrackChangesEditing');_0x2a48ec['plugins']['has']('BookmarkEditing')&&(_0x4c5aca['enableCommand']('insertBookmark'),_0x4c5aca['enableDefaultAttributesIntegration']('updateBookmark'),_0x4c5aca['registerBlockAttribute']('bookmarkId'),_0x4c5aca['descriptionFactory']['registerDescriptionCallback'](_0x1e0f32=>{if('insertion'!=_0x1e0f32['type']&&'deletion'!=_0x1e0f32['type']&&'attribute'!=_0x1e0f32['type'])return;const _0x29c6f3=_0x1e0f32['getContainedElement']();if(null==_0x29c6f3)return;if(!_0x29c6f3['is']('element','bookmark'))return;const _0x98b4f=_0x29c6f3['getAttribute']('bookmarkId');if('insertion'==_0x1e0f32['type'])return{'type':'insertion','content':o(_0x1dce11,'*Insert:*\x20%0','\x22'+_0x98b4f+'\x22\x20'+o(_0x1dce11,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1e0f32['type'])return{'type':'deletion','content':o(_0x1dce11,'*Remove:*\x20%0','\x22'+_0x98b4f+'\x22\x20'+o(_0x1dce11,'ELEMENT_BOOKMARK'))};const {data:_0x1470ed}=_0x1e0f32;if(!_0x1470ed||'bookmarkId'!=_0x1470ed['key'])return;return{'type':'format','content':o(_0x1dce11,'*Set\x20bookmark:*\x20%0','\x22'+_0x1470ed['newValue']+'\x22')};}));}}class J extends _0x47ce4c{['afterInit'](){const _0x610a4b=this['editor'];_0x610a4b['plugins']['has']('CaseChange')&&(_0x610a4b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x610a4b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x610a4b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x47ce4c{['afterInit'](){const _0x25e8a8=this['editor'];_0x25e8a8['commands']['get']('ckbox')&&_0x25e8a8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x47ce4c{['afterInit'](){const _0x357371=this['editor'];if(!_0x357371['plugins']['has']('CodeBlock'))return;const _0x5aa6e5=_0x357371['plugins']['get']('TrackChangesEditing'),_0x4d811d=_0x357371['locale'],_0x5230c6=_0x357371['config']['get']('codeBlock')['languages'],_0x31ab69=_0x357371['commands']['get']('codeBlock');_0x5aa6e5['enableCommand']('indentCodeBlock'),_0x5aa6e5['enableCommand']('outdentCodeBlock'),_0x5aa6e5['enableCommand']('codeBlock',(_0x36974e,_0x51ed47={})=>{const _0x3c1c31=_0x357371['model'],_0x453a87=_0x357371['model']['document']['selection'],_0x550858=_0x51ed47&&void 0x0!==_0x51ed47['forceValue']?_0x51ed47['forceValue']:!_0x31ab69['value'];let _0xccd0c9;_0x51ed47['language']||(_0x51ed47['language']=_0x5230c6[0x0]['language']),_0xccd0c9=_0x550858?Array['from'](_0x453a87['getSelectedBlocks']())['filter'](_0xa99676=>eo(_0xa99676)||function(_0x67650b,_0xd427a7){if(_0x67650b['is']('rootElement')||_0xd427a7['isLimit'](_0x67650b))return!0x1;return _0xd427a7['checkChild'](_0x67650b['parent'],'codeBlock');}(_0xa99676,_0x3c1c31['schema'])):Array['from'](_0x453a87['getSelectedBlocks']())['filter'](_0x20d267=>eo(_0x20d267));const _0x724a7=to(_0xccd0c9,_0x3c1c31);_0x3c1c31['change'](()=>{for(const _0x2f1ba7 of _0x724a7)_0x5aa6e5['markBlockFormat'](_0x2f1ba7,{'commandName':'codeBlock','commandParams':[{..._0x51ed47,'forceValue':_0x550858}],'formatGroupId':'blockName'});});}),(_0x5aa6e5['descriptionFactory']['registerElementLabel']('codeBlock',_0x35f0b8=>o(_0x4d811d,'ELEMENT_CODE_BLOCK',_0x35f0b8)),_0x5aa6e5['descriptionFactory']['registerDescriptionCallback'](_0x504147=>{if('formatBlock'!=_0x504147['type'])return;const _0x3b2a8c=_0x4d811d['t'],{data:_0x83ca0d}=_0x504147;if(!_0x83ca0d||'codeBlock'!=_0x83ca0d['commandName'])return;const _0x36dbfb=_0x83ca0d['commandParams'][0x0]['language'],_0x5a97e5=_0x3b2a8c(_0x5230c6['find'](_0x3b6498=>_0x3b6498['language']===_0x36dbfb)['label'])['toLowerCase']();return _0x83ca0d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d811d,'*Set\x20format:*\x20%0',o(_0x4d811d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5a97e5+')')}:{'type':'format','content':o(_0x4d811d,'*Remove\x20format:*\x20%0',o(_0x4d811d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4be6b3){return'codeBlock'==_0x4be6b3['name'];}class z extends _0x47ce4c{['afterInit'](){const _0x2e0188=this['editor'];if(!_0x2e0188['plugins']['has']('CommentsEditing'))return;_0x2e0188['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2a5f9c,_0x31e981,_0x27e570){const _0x3c7fa6=[];for(const _0x1cd3a6 of _0x31e981['getItems']())_0x1cd3a6['hasAttribute'](_0x2a5f9c)&&_0x3c7fa6['push'](_0x27e570['createRangeOn'](_0x1cd3a6));return _0x3c7fa6;}function De(_0x1b6eb0,_0x3b9d83,{showActiveMarker:_0xf24632=!0x0}={}){const _0x177da0=_0x1b6eb0['plugins']['get']('TrackChangesEditing');return(_0x37cc93,_0x2cd4f8,_0x23de0c)=>{if(!_0x23de0c['consumable']['test'](_0x2cd4f8['markerRange'],_0x37cc93['name']))return;const _0x4f297d=_0x2cd4f8['markerRange']['getWalker'](),_0x6c2c1e=_0x2cd4f8['markerRange']['start'],_0x182463=_0x1b6eb0['model']['schema'];let _0x33a6f5=null,_0x45c6ce=null,_0xa21cfa=!0x1,_0x5d5900=!0x1;for(const _0x2ce0c1 of _0x4f297d){const _0x435803=_0x2ce0c1['item'];_0xa21cfa=_0xa21cfa||_0x182463['isContent'](_0x435803);const _0x3d5b1d=_0x23de0c['mapper']['toViewElement'](_0x435803);if(_0x3d5b1d&&_0x3d5b1d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2ce0c1['type']&&(_0x182463['isBlock'](_0x435803)&&!_0x182463['isLimit'](_0x435803)&&(_0x435803['nextSibling']||_0x6c2c1e['isAtEnd']?_0x33a6f5&&_0x33a6f5['parent']==_0x435803||(_0x33a6f5=_0x435803,_0x2cc1bf(_0x2ce0c1['previousPosition']),_0x5d5900=!0x0):_0x45c6ce=_0x45c6ce||_0x2ce0c1['previousPosition']));}function _0x2cc1bf(_0x535f72){const {authorId:_0x5a2602}=_0x177da0['_splitMarkerName'](_0x2cd4f8['markerName']),_0x3109d6=_0x23de0c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3b9d83,'data-author-id':_0x5a2602}),_0x19fd9d=_0x23de0c['mapper']['toViewPosition'](_0x535f72);_0xf24632&&_0x177da0['activeMarkers']['includes'](_0x2cd4f8['markerName'])&&_0x23de0c['writer']['addClass']('ck-suggestion-marker--active',_0x3109d6),_0x23de0c['writer']['insert'](_0x19fd9d,_0x3109d6),_0x23de0c['mapper']['bindElementToMarker'](_0x3109d6,_0x2cd4f8['markerName']);}_0xa21cfa||_0x5d5900||!_0x45c6ce||_0x2cc1bf(_0x45c6ce);};}class K extends _0x47ce4c{static get['requires'](){return[_0x58d80f];}['init'](){const _0x4944bd=this['editor'],_0x5bb01d=_0x4944bd['plugins']['get']('TrackChangesEditing');_0x5bb01d['enableCommand']('delete');const _0xc99a96=_0x4944bd['commands']['get']('deleteForward');_0x5bb01d['enableCommand']('deleteForward',(_0x8cedab,_0xeb8690={})=>{const _0x119a31=_0x4944bd['model']['createSelection'](_0x4944bd['model']['document']['selection']);_0x119a31['isCollapsed']&&_0x4944bd['model']['modifySelection'](_0x119a31,{'direction':'forward','unit':_0xeb8690['unit']});const _0x46889d=_0x119a31['getFirstRange'](),_0xa6bcd0=_0x147a51['fromRange'](_0x46889d);let _0x2cac06;_0x8cedab(_0xeb8690),_0x2cac06='$graveyard'==_0xa6bcd0['root']['rootName']?_0x4944bd['model']['createRange'](_0x46889d['start']):_0x4944bd['model']['createRange'](_0xa6bcd0['start'],_0xa6bcd0['end']),_0xa6bcd0['detach'](),_0x4944bd['model']['enqueueChange'](_0xc99a96['buffer']['batch'],_0x4f6380=>{_0xc99a96['buffer']['lock'](),_0x4f6380['setSelection'](_0x4f6380['createRange'](_0x2cac06['end'])),_0xc99a96['buffer']['unlock']();});}),_0x4944bd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x4944bd,'merge'),{'priority':'high'}),_0x4944bd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x49f829,_0x406a8c,_0x1afa91)=>{_0x1afa91['options']['showSuggestionHighlights']&&De(_0x4944bd,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x49f829,_0x406a8c,_0x1afa91);},{'priority':'high'}),_0x4944bd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x45d0e7,_0x34d525,_0x3d718e)=>{const _0x293ea8=_0x3d718e['mapper']['markerNameToElements'](_0x34d525['markerName']);if(_0x293ea8){for(const _0x24dc19 of _0x293ea8)_0x24dc19['is']('uiElement')&&(_0x3d718e['mapper']['unbindElementFromMarkerName'](_0x24dc19,_0x34d525['markerName']),_0x3d718e['writer']['remove'](_0x24dc19));}},{'priority':'high'});}}class W extends _0x47ce4c{['afterInit'](){const _0x566ab8=this['editor'];if(!_0x566ab8['plugins']['has']('ListEditing'))return;const _0x23502e=_0x566ab8['locale'],_0x51d7eb=_0x566ab8['plugins']['get']('TrackChangesEditing'),_0xc17818=_0x566ab8['plugins']['has']('TodoListEditing'),_0x1ac523=!!_0x566ab8['config']['get']('list.multiBlock');function _0x23f20a(_0x182dd8){return{'type':'format','content':''+o(_0x23502e,'*Set\x20format:*\x20%0',_0x182dd8)};}function _0x5692c0(_0x26de82){return{'type':'format','content':''+o(_0x23502e,'*Remove\x20format:*\x20%0',_0x26de82)};}_0x51d7eb['enableDefaultAttributesIntegration']('numberedList'),_0x51d7eb['enableDefaultAttributesIntegration']('bulletedList'),_0x51d7eb['enableDefaultAttributesIntegration']('customNumberedList'),_0x51d7eb['enableDefaultAttributesIntegration']('customBulletedList'),_0x51d7eb['enableDefaultAttributesIntegration']('indentList'),_0x51d7eb['enableDefaultAttributesIntegration']('outdentList'),_0x51d7eb['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x51d7eb['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x51d7eb['registerBlockAttribute']('listItemId'),_0x51d7eb['registerBlockAttribute']('listType'),_0x51d7eb['registerBlockAttribute']('listIndent'),_0x1ac523&&(_0x51d7eb['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x51d7eb['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xc17818&&(_0x51d7eb['enableDefaultAttributesIntegration']('todoList'),_0x51d7eb['enableDefaultAttributesIntegration']('checkTodoList'),_0x51d7eb['registerBlockAttribute']('todoListChecked'),_0x51d7eb['descriptionFactory']['registerDescriptionCallback'](_0x1ac0f4=>{const {data:_0x3916c6}=_0x1ac0f4;if(_0x3916c6&&'todoListChecked'==_0x3916c6['key'])return{'type':'format','content':_0x3916c6['newValue']?o(_0x23502e,'*Check\x20item*'):o(_0x23502e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1a2730=>{if(_0x1a2730['batch']['isUndo'])return!0x1;let _0x475c9c=!0x1;const _0x87e33b=_0x51d7eb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1104a0=>'todoListChecked'===_0x51d7eb['_getAttributeKey'](_0x1104a0));for(const _0x307afd of _0x87e33b){'todo'!=_0x307afd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x51d7eb['_findSuggestions'](_0x307afd['getFirstRange'](),'attribute')['find'](_0xe4fe2b=>'listType'===_0x51d7eb['_getAttributeKey'](_0xe4fe2b['suggestion']))||(_0x1a2730['removeMarker'](_0x307afd['getFirstMarker']()),_0x475c9c=!0x0));}return _0x475c9c;})),_0x51d7eb['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x23502e,'FORMAT_INDENT'));const _0x53e721={'type':'format','content':''};_0x51d7eb['descriptionFactory']['registerDescriptionCallback'](_0xae0b57=>{const {data:_0x408206}=_0xae0b57;if(!_0x408206||'listType'!=_0x408206['key'])return;let _0x50c7a4=_0xae0b57['head'];for(;_0x50c7a4;){if(_0x50c7a4['data']&&(('listStyle'==_0x50c7a4['data']['key']||'listMarkerStyle'==_0x50c7a4['data']['key'])&&(_0x50c7a4['data']['newValue']&&'default'!=_0x50c7a4['data']['newValue']||'default'!=_0x50c7a4['data']['oldValue']&&!_0x408206['newValue'])||!_0x1ac523&&_0x50c7a4['data']['key']==m))return _0x53e721;_0x50c7a4=_0x50c7a4['next'];}if(null==_0x408206['newValue'])switch(_0x408206['oldValue']){case'bulleted':return _0x5692c0(o(_0x23502e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5692c0(o(_0x23502e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5692c0(o(_0x23502e,'ELEMENT_TODO_LIST'));}switch(_0x408206['newValue']){case'bulleted':return _0x23f20a(o(_0x23502e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x23f20a(o(_0x23502e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x23f20a(o(_0x23502e,'ELEMENT_TODO_LIST'));}}),_0x51d7eb['descriptionFactory']['registerDescriptionCallback'](_0x4a4664=>{const {data:_0x55831f}=_0x4a4664;if(_0x55831f&&'listIndent'==_0x55831f['key'])return null==_0x55831f['newValue']||null==_0x55831f['oldValue']&&0x0==_0x55831f['newValue']?_0x53e721:void 0x0;}),_0x51d7eb['descriptionFactory']['registerDescriptionCallback'](_0x3f0d46=>{if('attribute'!=_0x3f0d46['type'])return;const {data:_0xf47ee3}=_0x3f0d46;if(!_0xf47ee3||'listItemId'!=_0xf47ee3['key'])return;const _0x33b136=Te(_0x3f0d46);return'newValue'==_0x33b136?{'type':'format','content':o(_0x23502e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x33b136?{'type':'format','content':o(_0x23502e,'*Split:*\x20list\x20item')}:_0x53e721;}),_0x566ab8['model']['document']['registerPostFixer'](_0x38ccb8=>this['listItemIdFixer'](_0x38ccb8)),_0x566ab8['model']['document']['registerPostFixer'](_0x3029f4=>this['noTrackChangesFixer'](_0x3029f4)),_0x566ab8['model']['document']['on']('change:data',(_0x5860f2,_0x396fff)=>{if(_0x396fff['isUndo']||!_0x396fff['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5c3c1f){if(_0x5c3c1f['batch']['isUndo']||!_0x5c3c1f['batch']['isLocal'])return!0x1;let _0x361ccf=!0x1;const _0x2ce7b2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x59bd72=>_0x59bd72['data']&&'listItemId'==_0x59bd72['data']['key'])['filter'](_0x563f0f=>_0x563f0f['data']['newValue']&&_0x563f0f['data']['oldValue']);for(const _0x2de7a2 of _0x2ce7b2)Te(_0x2de7a2)||(_0x5c3c1f['removeMarker'](_0x2de7a2['getFirstMarker']()),_0x361ccf=!0x0);return _0x361ccf;}['noTrackChangesFixer'](_0x24853){if(_0x24853['batch']['isUndo']||!_0x24853['batch']['isLocal'])return!0x1;const _0x33a0fd=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x33a0fd['trackChangesCommand']['value'])return!0x1;let _0x90fe5=!0x1;const _0x1b1b93=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x36cd15=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x403689=>'attribute'==_0x403689['type'])['filter'](_0x2a55ce=>_0x1b1b93['includes'](_0x2a55ce['attributeKey']));if(0x0==_0x36cd15['length'])return _0x90fe5;for(const _0x233059 of _0x36cd15){const _0x9f77ff=_0x33a0fd['_findSuggestions'](_0x233059['range'],'attribute')['filter'](_0x5edece=>!_0x5edece['meta']['isNextTo'])['map'](_0x2f559e=>_0x2f559e['suggestion'])['filter'](_0x5c7652=>{const _0x136bcb=_0x33a0fd['_getAttributeKey'](_0x5c7652);return _0x1b1b93['includes'](_0x136bcb);});if(_0x9f77ff['length']){for(const _0x309839 of _0x9f77ff)_0x24853['removeMarker'](_0x309839['getFirstMarker']());_0x90fe5=!0x0;}}return _0x90fe5;}['assureChains'](){const _0x32193f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52bb53=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1b6329;const _0x111b5a=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4144aa=>{if(_0x4144aa['data']['oldRange']||!_0x4144aa['data']['newRange'])return null;if(!_0x4144aa['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1a02a8}=_0x32193f['_splitMarkerName'](_0x4144aa['name']);if(!_0x32193f['hasSuggestion'](_0x1a02a8))return null;const _0x55623c=_0x32193f['getSuggestion'](_0x1a02a8);return _0x52bb53['includes'](_0x55623c['data']['key']);})['map'](_0x1ac981=>{const {id:_0x135e00}=_0x32193f['_splitMarkerName'](_0x1ac981['name']),_0x2af0d5=_0x32193f['getSuggestion'](_0x135e00);return _0x1b6329=_0x2af0d5['attributes']['groupId'],_0x2af0d5['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x111b5a['size'])return;const _0x5498ef=_0x32193f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x563da4=>'attribute'==_0x563da4['type']&&_0x563da4['data']&&_0x52bb53['includes'](_0x563da4['data']['key'])&&_0x563da4['attributes']['groupId']!=_0x1b6329)['map'](_0x3f787e=>({'listItem':_0x3f787e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3f787e['attributes']['groupId']})),_0x309ba8=new Set();for(const {groupId:_0x3537c8,listItem:_0x44413f}of _0x5498ef)_0x111b5a['has'](_0x44413f)&&_0x309ba8['add'](_0x3537c8);for(const _0x5102de of _0x32193f['getSuggestions']())_0x309ba8['has'](_0x5102de['attributes']['groupId'])&&_0x5102de['setAttribute']('groupId',_0x1b6329);}['_supportLegacySuggestions'](){const _0x17a928=this['editor'],_0x5c5d7e=_0x17a928['locale'],_0x3255fa=_0x17a928['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3255fa['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x44a7ec,_0x57c449){const _0x2381ff=[];for(let _0x53a868 of _0x44a7ec)_0x53a868['start']['nodeAfter']===_0x53a868['end']['parent']&&(_0x53a868=_0x17a928['model']['createRange'](_0x17a928['model']['createPositionAt'](_0x53a868['start']['nodeAfter'],0x0))),_0x2381ff['push'](_0x53a868);_0x17a928['model']['change'](_0x2fecee=>{const _0xfcfc48=_0x17a928['model']['document']['selection'],_0x57676e=Array['from'](_0xfcfc48['getRanges']())['map'](_0x47b9c5=>_0x147a51['fromRange'](_0x47b9c5));_0x2fecee['setSelection'](_0x2381ff),_0x17a928['commands']['get'](_0x57c449['commandName'])['refresh'](),_0x57c449['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x17a928['execute'](_0x57c449['commandName'],..._0x57c449['commandParams']),_0x2fecee['setSelection'](_0x57676e);for(const _0xb756c3 of _0x57676e)_0xb756c3['detach']();});}),_0x3255fa['descriptionFactory']['registerElementLabel'](function(_0x349a7f){const _0x25c169=!_0x17a928['model']['schema']['isObject'](_0x349a7f),_0x5b9364=_0x349a7f['previousSibling'],_0x3c1ec4=_0x349a7f['nextSibling'],_0x32827d=_0x349a7f['getAttribute']('listItemId'),_0xe19bf2=!_0x5b9364||_0x5b9364['getAttribute']('listItemId')!==_0x32827d,_0xd33ba9=!_0x3c1ec4||_0x3c1ec4['getAttribute']('listItemId')!==_0x32827d;return _0x25c169&&Boolean(_0x32827d)&&_0xe19bf2&&_0xd33ba9;},_0x383d0c=>o(_0x5c5d7e,'ELEMENT_LIST_ITEM',_0x383d0c));}['_registerLegacyDescription'](){const _0x126684=this['editor'],_0x2ce782=_0x126684['locale'];function _0x26f5c4(_0x53b58b){const _0x22a077=_0x126684['commands']['get']('bulletedList')['value'],_0x4cffcd=_0x126684['commands']['get']('numberedList')['value'];return'numberedList'===_0x53b58b?_0x22a077:_0x4cffcd;}_0x126684['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5f4bf8){if('formatBlock'!=_0x5f4bf8['type'])return;const {data:_0x11a55a}=_0x5f4bf8;if(!_0x11a55a)return;let _0x16bbba,_0x531ec8,_0x57f407,_0x434f64;switch(_0x11a55a['commandName']){case'bulletedList':_0x57f407=_0x11a55a['commandParams'][0x0]['forceValue'],_0x434f64=_0x26f5c4(_0x11a55a['commandName']),_0x16bbba=_0x57f407?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x434f64&&_0x126684['config']['get']('list.multiBlock')||(_0x16bbba='*Change\x20to:*\x20%0'),_0x531ec8={'type':'format','content':o(_0x2ce782,_0x16bbba,o(_0x2ce782,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x57f407=_0x11a55a['commandParams'][0x0]['forceValue'],_0x434f64=_0x26f5c4(_0x11a55a['commandName']),_0x16bbba=_0x57f407?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x434f64&&_0x126684['config']['get']('list.multiBlock')||(_0x16bbba='*Change\x20to:*\x20%0'),_0x531ec8={'type':'format','content':o(_0x2ce782,_0x16bbba,o(_0x2ce782,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x16bbba='*Indent:*\x20%0',_0x531ec8={'type':'format','content':o(_0x2ce782,_0x16bbba,o(_0x2ce782,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x16bbba=function(_0x58b696){const _0x2cf7bc=_0x58b696['getFirstRange']();let _0x74da47=_0x2cf7bc['start']['nodeAfter'];for(;_0x74da47&&_0x2cf7bc['containsItem'](_0x74da47);){if(_0x74da47['getAttribute']('listIndent')>0x0)return!0x1;_0x74da47=_0x74da47['nextSibling'];}return!0x0;}(_0x5f4bf8)?o(_0x2ce782,'*Format:*\x20remove\x20from\x20%0',o(_0x2ce782,function(_0x24ff86){return'ELEMENT_'+_0x24ff86['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5f4bf8))):o(_0x2ce782,'*Outdent:*\x20%0',o(_0x2ce782,'ELEMENT_LIST_ITEM')),_0x531ec8={'type':'format','content':_0x16bbba};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x11a55a['multipleBlocks']&&(_0x16bbba='*Merge:*\x20%0',_0x531ec8={'type':'deletion','content':o(_0x2ce782,_0x16bbba,o(_0x2ce782,'ELEMENT_LIST_ITEM'))});}return _0x531ec8;});}}function Te(_0x482992){let _0x529f94=_0x482992['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x529f94;){const _0x49841f=_0x529f94['getAttribute']('listItemId');if(!_0x49841f)return!0x1;if(_0x49841f==_0x482992['data']['newValue'])return'newValue';if(_0x49841f==_0x482992['data']['oldValue'])return'oldValue';_0x529f94=_0x529f94['previousSibling'];}return!0x1;}class Se extends _0x47ce4c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x398731=this['editor']['config']['get']('list.properties'),_0x23fa09=this['editor']['plugins']['get']('TrackChangesEditing');_0x398731['styles']&&(_0x23fa09['enableDefaultAttributesIntegration']('listStyle'),_0x23fa09['registerBlockAttribute']('listStyle')),_0x398731['reversed']&&(_0x23fa09['enableDefaultAttributesIntegration']('listReversed'),_0x23fa09['registerBlockAttribute']('listReversed')),_0x398731['startIndex']&&(_0x23fa09['enableDefaultAttributesIntegration']('listStart'),_0x23fa09['registerBlockAttribute']('listStart'));const _0x3d5519={'type':'format','content':''};_0x23fa09['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3c1676=this['editor']['locale'];_0x23fa09['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3c1676,'FORMAT_LIST_REVERSED')),_0x23fa09['descriptionFactory']['registerDescriptionCallback'](_0x23925e=>{const {data:_0x566c60}=_0x23925e;if(_0x566c60&&'listReversed'==_0x566c60['key'])return null==_0x566c60['newValue']||0x0==_0x566c60['newValue']&&null==_0x566c60['oldValue']?_0x3d5519:void 0x0;}),_0x23fa09['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3c1676,'FORMAT_LIST_START')),_0x23fa09['descriptionFactory']['registerDescriptionCallback'](_0x3f5e50=>{const {data:_0x40b621}=_0x3f5e50;if(_0x40b621&&'listStart'==_0x40b621['key'])return null==_0x40b621['newValue']||0x1==_0x40b621['newValue']&&null==_0x40b621['oldValue']?_0x3d5519:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4b67b9=>{if(_0x4b67b9['batch']['isUndo'])return!0x1;let _0x4b8329=!0x1;const _0x329462=_0x23fa09['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2991b4=>{const _0x5c1da5=_0x23fa09['_getAttributeKey'](_0x2991b4);return'listStart'==_0x5c1da5||'listReversed'==_0x5c1da5;});for(const _0x367148 of _0x329462){const _0x3e59c9=_0x367148['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3e59c9||'customNumbered'==_0x3e59c9)continue;_0x23fa09['_findSuggestions'](_0x367148['getFirstRange'](),'attribute')['find'](_0x5e834a=>'listType'==_0x23fa09['_getAttributeKey'](_0x5e834a['suggestion']))||(_0x4b67b9['removeMarker'](_0x367148['getFirstMarker']()),_0x4b8329=!0x0);}return _0x4b8329;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xa0f1bb){const _0x245e2a=this['editor']['locale'],{data:_0x33b4c4}=_0xa0f1bb,_0x3acc76={'type':'format','content':''};if(!_0x33b4c4||'listStyle'!=_0x33b4c4['key'])return;if(!_0x33b4c4['oldValue'])return'default'==_0x33b4c4['newValue']?_0x3acc76:{'type':'format','content':''+o(_0x245e2a,'*Set\x20format:*\x20%0',o(_0x245e2a,this['_getTranslationKeyForListStyle'](_0x33b4c4['newValue'])))};if(!_0x33b4c4['newValue']){if('default'==_0x33b4c4['oldValue'])return _0x3acc76;let _0x241047=_0xa0f1bb['head'];for(;_0x241047;){if(_0x241047['data']&&'listType'==_0x241047['data']['key']&&_0x241047['data']['newValue'])return _0x3acc76;_0x241047=_0x241047['next'];}return{'type':'format','content':''+o(_0x245e2a,'*Remove\x20format:*\x20%0',o(_0x245e2a,this['_getTranslationKeyForListStyle'](_0x33b4c4['oldValue'])))};}if('default'!=_0x33b4c4['newValue'])return{'type':'format','content':''+o(_0x245e2a,'*Set\x20format:*\x20%0',o(_0x245e2a,this['_getTranslationKeyForListStyle'](_0x33b4c4['newValue'])))};let _0x34bb01=_0xa0f1bb['head'];for(;_0x34bb01;){if(_0x34bb01['data']&&'listType'==_0x34bb01['data']['key']&&_0x34bb01['data']['newValue']&&_0x34bb01['data']['oldValue'])return _0x3acc76;_0x34bb01=_0x34bb01['next'];}return{'type':'format','content':o(_0x245e2a,'*Set\x20format:*\x20%0',o(_0x245e2a,'ELEMENT_'+_0xa0f1bb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x8fe18c=this['editor'],_0x45fd60=_0x8fe18c['locale'];_0x8fe18c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1923e4=>{if('formatBlock'!=_0x1923e4['type'])return;const {data:_0x241bdd}=_0x1923e4;if(!_0x241bdd)return;let _0x1ed813,_0x197d91;switch(_0x241bdd['commandName']){case'listStyle':_0x1ed813='*Change\x20to:*\x20%0',_0x197d91={'type':'format','content':o(_0x45fd60,_0x1ed813,o(_0x45fd60,this['_getTranslationKeyForListStyle'](_0x241bdd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1ed813=_0x241bdd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x197d91={'type':'format','content':o(_0x45fd60,_0x1ed813)};break;case'listStart':_0x1ed813='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x197d91={'type':'format','content':o(_0x45fd60,_0x1ed813,_0x241bdd['commandParams'][0x0]['startIndex'])};}return _0x197d91;});}['_getTranslationKeyForListStyle'](_0x22ca79){return'ELEMENT_'+function(_0x15c5c5){if(_e['includes'](_0x15c5c5))return'bulleted';if(Re['includes'](_0x15c5c5))return'numbered';return null;}(_0x22ca79)['toUpperCase']()+'_LIST_'+_0x22ca79['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x47ce4c{static get['requires'](){return[_0xb15ad8];}['init'](){const _0x356878=this['editor'],_0x3f0702=_0x356878['plugins']['get']('TrackChangesEditing'),_0x6224d5=_0x356878['commands']['get']('enter');_0x3f0702['enableCommand']('enter',()=>{_0x356878['model']['change'](_0xbaced5=>{const _0x5136d7=_0x356878['model']['document']['selection'],_0x3ec186=_0x5136d7['getFirstPosition'](),_0x25e7ab=_0x147a51['fromRange'](_0x5136d7['getFirstRange']());if(_0x6224d5['enterBlock'](_0xbaced5)){const _0x3656c8=_0x356878['model']['createPositionAt'](_0x3ec186['parent']['nextSibling'],0x0),_0xc1e816=_0xbaced5['createRange'](_0x3ec186,_0x3656c8);_0x3f0702['markInsertion'](_0xc1e816);}else _0xbaced5['setSelection'](_0xbaced5['createRange'](_0x25e7ab['end']));_0x25e7ab['detach'](),_0x6224d5['fire']('afterExecute',{'writer':_0xbaced5});});}),_0x356878['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x356878,'split'),{'priority':'high'}),_0x356878['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1147c2,_0x2e4756,_0x4e2850)=>{const _0x459547=_0x4e2850['mapper']['markerNameToElements'](_0x2e4756['markerName']);if(_0x459547){for(const _0x581536 of _0x459547)_0x581536['hasClass']('ck-suggestion-marker-split')&&(_0x4e2850['mapper']['unbindElementFromMarkerName'](_0x581536,_0x2e4756['markerName']),_0x4e2850['writer']['remove'](_0x581536));}},{'priority':'high'}),_0x356878['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x53b190,_0x518800,_0x5cfbb0)=>{_0x5cfbb0['options']['showSuggestionHighlights']&&De(_0x356878,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x53b190,_0x518800,_0x5cfbb0);},{'priority':'high'});}}class Y extends _0x47ce4c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3ec6f7=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ec6f7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3ec6f7['enableCommand']('findNext'),_0x3ec6f7['enableCommand']('findPrevious'),_0x3ec6f7['enableCommand']('replace'),_0x3ec6f7['enableCommand']('replaceAll');}['handleFindCommand'](_0xea3ae1,_0x34e860,_0x21481e={}){const _0x295b0c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xea3ae1(_0x468b1d=>{let _0x56b91d=('string'==typeof _0x34e860?_0x295b0c['findByTextCallback'](_0x34e860,_0x21481e):_0x34e860)(_0x468b1d);Array['isArray'](_0x56b91d)&&(_0x56b91d={'results':_0x56b91d,'searchText':'string'==typeof _0x34e860?_0x34e860:''});const _0x4958be=_0x56b91d['results']['filter'](_0x3d58e6=>!0x1===this['_isInDeletionRange'](_0x3d58e6,_0x468b1d['item']));return{..._0x56b91d,'results':_0x4958be};},_0x21481e);}['_isInDeletionRange'](_0x178263,_0x16282a){const _0x63bfe6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x16282a,_0x178263['start']),this['editor']['model']['createPositionAt'](_0x16282a,_0x178263['end']));for(const _0x507ed8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x63bfe6['getIntersection'](_0x507ed8['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x47ce4c{['afterInit'](){const _0x5b59f0=this['editor']['locale'],_0x42aa5b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x362360,commandName:_0x4a6680}of ro)this['editor']['plugins']['has'](_0x362360)&&(_0x42aa5b['enableDefaultAttributesIntegration'](_0x4a6680),_0x42aa5b['registerInlineAttribute'](_0x4a6680));_0x42aa5b['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5b59f0,'FORMAT_FONT_SIZE')),_0x42aa5b['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5b59f0,'FORMAT_FONT_FAMILY')),_0x42aa5b['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5b59f0,'FORMAT_FONT_COLOR')),_0x42aa5b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5b59f0,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x841766=this['editor'],_0x307736=_0x841766['locale'];_0x841766['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c5639=>{const _0x54524b=_0x307736['t'];if('formatInline'!=_0x3c5639['type'])return;const {data:_0x42e4db}=_0x3c5639;if(null!=_0x42e4db){if('fontSize'==_0x42e4db['commandName']){const _0x205754=_0x42e4db['commandParams'][0x0]['value'];if(_0x205754){const _0x1c7f58=_0x54524b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x111a12=>_0x111a12['model']==_0x205754)['title'])['toLowerCase']();return{'type':'format','content':o(_0x307736,'*Set\x20font\x20size:*\x20%0',_0x1c7f58)};}return{'type':'format','content':o(_0x307736,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x42e4db['commandName']){const _0x3f5b48=_0x42e4db['commandParams'][0x0]['value'];return _0x3f5b48?{'type':'format','content':o(_0x307736,'*Set\x20font\x20family:*\x20%0',_0x3f5b48)}:{'type':'format','content':o(_0x307736,'*Reset\x20font\x20family*')};}if('fontColor'==_0x42e4db['commandName']){const _0x550cd7=_0x42e4db['commandParams'][0x0]['value'];if(_0x550cd7){const _0x1e974f=_0x229798(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4aadd1=>_0x4aadd1['model']==_0x550cd7);let _0x3d8fbb=_0x550cd7,_0x240c97='';return _0x1e974f&&(_0x3d8fbb=_0x1e974f['label'],_0x240c97=_0x54524b(_0x3d8fbb)['toLowerCase']()),{'type':'format','content':o(_0x307736,'*Set\x20font\x20color:*\x20%0',_0x240c97)['trim'](),'color':{'value':_0x550cd7,'title':_0x240c97||_0x3d8fbb}};}return{'type':'format','content':o(_0x307736,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x42e4db['commandName']){const _0x336c81=_0x42e4db['commandParams'][0x0]['value'];if(_0x336c81){const _0x535553=_0x229798(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5c0150=>_0x5c0150['model']==_0x336c81);let _0x18038a=_0x336c81,_0x18ec38='';return _0x535553&&(_0x18038a=_0x535553['label'],_0x18ec38=_0x54524b(_0x18038a)['toLowerCase']()),{'type':'format','content':o(_0x307736,'*Set\x20font\x20background\x20color:*\x20%0',_0x18ec38)['trim'](),'color':{'value':_0x336c81,'title':_0x18ec38||_0x18038a}};}return{'type':'format','content':o(_0x307736,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x47ce4c{['afterInit'](){const _0x139097=this['editor'],_0x40ab5d=_0x139097['plugins']['get']('TrackChangesEditing'),_0x1137bc=_0x139097['commands']['get']('copyFormat'),_0x473929=_0x139097['commands']['get']('pasteFormat');_0x1137bc&&_0x473929&&(_0x40ab5d['enableDefaultAttributesIntegration']('pasteFormat'),_0x40ab5d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4ee107=this['editor'],_0x592e1a=_0x4ee107['locale'];_0x4ee107['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb743d9=>{if('formatBlock'!=_0xb743d9['type']&&'formatInline'!=_0xb743d9['type'])return;const {data:_0x323b36}=_0xb743d9;if(_0x323b36&&'pasteFormat'===_0x323b36['commandName']){const _0x2e4cd4=[],_0x5a2de2=_0x323b36['commandParams'][0x0];for(const [_0x3a62de,_0x4546ce]of Object['entries'](_0x5a2de2))_0x2e4cd4['push'](so(_0x4ee107,_0x3a62de,_0x4546ce));return _0x2e4cd4['length']?{'type':'format','content':o(_0x592e1a,'*Set\x20format\x20to:*\x20%0',_0x2e4cd4['join'](',\x20'))}:{'type':'format','content':o(_0x592e1a,'*Remove\x20all\x20formatting*')};}});}}function so(_0x6c160f,_0x1b98b8,_0x267778){const _0x3bed8c=_0x6c160f['locale']['t'],_0x51fcb6=_0x1b98b8['split'](/(?=[A-Z])/)['join']('\x20'),_0x328bd8=_0x3bed8c(_0x51fcb6['charAt'](0x0)['toUpperCase']()+_0x51fcb6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x267778)return _0x328bd8;if('fontColor'===_0x1b98b8||'fontBackgroundColor'===_0x1b98b8){const _0x101b33=_0x229798(_0x6c160f['config']['get']('fontColor.colors'))['find'](_0x44a6ba=>_0x44a6ba['model']==_0x267778);return _0x328bd8+'\x20('+(_0x101b33?_0x3bed8c(_0x101b33['label'])['toLowerCase']():_0x267778)+')';}if('fontSize'===_0x1b98b8&&isNaN(parseFloat(_0x267778))){const _0x797339=_0x6c160f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x6c160f['config']['get']('fontSize.options'))['find'](_0x5b2b9c=>_0x5b2b9c['model']==_0x267778);return _0x328bd8+'\x20('+(_0x797339?_0x3bed8c(_0x797339['title'])['toLowerCase']():_0x267778)+')';}return _0x328bd8+'\x20('+_0x267778+')';}class nt extends _0x47ce4c{['_headingOptions'];['afterInit'](){const _0x320c9f=this['editor'];if(!_0x320c9f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x320c9f['config']['get']('heading.options');const _0x36ca05=_0x320c9f['locale'],_0x1be16f=_0x320c9f['plugins']['get']('TrackChangesEditing');_0x1be16f['enableDefaultAttributesIntegration']('heading');for(const _0x31c6e7 of this['_headingOptions'])'paragraph'!=_0x31c6e7['model']&&_0x1be16f['descriptionFactory']['registerElementLabel'](_0x31c6e7['model'],_0x135017=>{const _0x4809a1=this['_getHeadingLevel'](_0x31c6e7['model']);return null!==_0x4809a1?_0x12aa99(_0x135017,_0x4809a1):_0x31a34f(_0x135017,_0x31c6e7['title']);});function _0x12aa99(_0x38edaa,_0xcb7039){return o(_0x36ca05,'ELEMENT_HEADING',[_0x38edaa,_0xcb7039]);}function _0x31a34f(_0x57836a,_0x109070){return o(_0x36ca05,'ELEMENT_HEADING_CUSTOM',[_0x57836a,_0x109070]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x850ea5=this['editor'],_0x1a0274=_0x850ea5['locale'];function _0x1e1c76(_0x1f9b98,_0x34fa9b){return o(_0x1a0274,'ELEMENT_HEADING_CUSTOM',[_0x1f9b98,_0x34fa9b]);}_0x850ea5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x185689=>{if('formatBlock'!=_0x185689['type'])return;const {data:_0x47bd0c}=_0x185689;if(_0x47bd0c&&'heading'==_0x47bd0c['commandName']){const _0x433377=_0x47bd0c['commandParams'][0x0]['value'],_0x3531f9=this['_getHeadingLevel'](_0x433377);if(null!==_0x3531f9)return{'type':'format','content':o(_0x1a0274,'*Change\x20to:*\x20%0',(_0x7475c0=0x1,_0x27d147=_0x3531f9,o(_0x1a0274,'ELEMENT_HEADING',[_0x7475c0,_0x27d147])))};const _0x5ad2ac=this['_headingOptions']['find'](_0x4a3970=>_0x4a3970['model']===_0x433377)['title'];return{'type':'format','content':o(_0x1a0274,'*Change\x20to:*\x20%0',_0x1e1c76(0x1,_0x5ad2ac))};}var _0x7475c0,_0x27d147;});}['_getHeadingLevel'](_0x38bf26){const _0x15c414=_0x38bf26['match'](/^heading(\d+)/);if(_0x15c414)return _0x15c414[0x1];const _0x207ef3=this['_headingOptions']?.['find'](_0x4240ae=>_0x4240ae['model']==_0x38bf26);if(_0x207ef3&&_0x207ef3['view']){const _0x217940=_0x207ef3['view'],_0xc1a83e=(_0x217940['name']??_0x217940)['match'](/^h(\d+)/);if(_0xc1a83e)return _0xc1a83e[0x1];}return null;}}class it extends _0x47ce4c{['afterInit'](){const _0x227d88=this['editor'];if(!_0x227d88['plugins']['has']('HighlightEditing'))return;const _0x147aad=_0x227d88['plugins']['get']('TrackChangesEditing'),_0x12d3f4=_0x227d88['locale'];_0x147aad['enableDefaultAttributesIntegration']('highlight'),_0x147aad['registerInlineAttribute']('highlight'),_0x147aad['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x12d3f4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42e314=this['editor'],_0x4d1c01=_0x42e314['locale'];_0x42e314['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x323c59=>{if('formatInline'!=_0x323c59['type'])return;const {data:_0x5e800c}=_0x323c59;if(_0x5e800c&&'highlight'==_0x5e800c['commandName']){const _0xd40b5e=_0x4d1c01['t'],_0x59a1cd=_0x5e800c['commandParams'][0x0]['value'];if(_0x59a1cd){const _0x53b315=_0x42e314['config']['get']('highlight.options')['find'](_0x1fb81c=>_0x1fb81c['model']==_0x59a1cd),_0x240f92=_0xd40b5e(_0x53b315['title'])['toLowerCase']();return{'type':'format','content':o(_0x4d1c01,'*Set\x20highlight:*\x20%0',_0x240f92),'color':{'value':_0x53b315['color'],'title':_0x53b315['title']}};}return{'type':'format','content':o(_0x4d1c01,'*Remove\x20highlight*',o(_0x4d1c01,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x47ce4c{['afterInit'](){const _0x213749=this['editor'];if(!_0x213749['plugins']['has']('HorizontalLineEditing'))return;_0x213749['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x55217e=_0x213749['plugins']['get']('TrackChangesEditing'),_0x526fc0=_0x213749['locale'];_0x55217e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x429ec4=>o(_0x526fc0,'ELEMENT_HORIZONTAL_LINE',_0x429ec4)),_0x213749['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x547a81,{writer:_0x22186d,options:_0x290591})=>{if(!_0x290591['showSuggestionHighlights'])return null;const _0x3482f8=_0x22186d['createContainerElement']('div'),_0x1f31c7=_0x22186d['createEmptyElement']('hr');return _0x22186d['addClass']('ck-horizontal-line',_0x3482f8),_0x22186d['insert'](_0x22186d['createPositionAt'](_0x3482f8,0x0),_0x1f31c7),_0x3482f8;},'converterPriority':'high'});}}class st extends _0x47ce4c{['afterInit'](){const _0x4799a8=this['editor'];if(!_0x4799a8['plugins']['has']('HtmlEmbed'))return;const _0x47fd47=_0x4799a8['plugins']['get']('TrackChangesEditing'),_0x3b28d6=_0x4799a8['locale'];_0x47fd47['descriptionFactory']['registerElementLabel']('rawHtml',_0x3b0b80=>o(_0x3b28d6,'ELEMENT_HTML_EMBED',_0x3b0b80)),_0x47fd47['enableDefaultAttributesIntegration']('htmlEmbed'),_0x47fd47['registerBlockAttribute']('value'),_0x47fd47['descriptionFactory']['registerDescriptionCallback'](_0x426550=>{if('attribute'!=_0x426550['type'])return;const {data:_0x489954}=_0x426550;if(_0x489954&&'value'==_0x489954['key']&&_0x426550['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1b0daf=o(_0x3b28d6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3b28d6,'*Change\x20%0\x20content*',_0x1b0daf)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a4a7b=this['editor'],_0x306b19=_0x5a4a7b['locale'];_0x5a4a7b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6ff81c=>{if('formatBlock'!=_0x6ff81c['type'])return;const {data:_0x4e4628}=_0x6ff81c;if(_0x4e4628&&'htmlEmbed'==_0x4e4628['commandName']){const _0x48d00c=o(_0x306b19,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x306b19,'*Change\x20%0\x20content*',_0x48d00c)};}});}}class ot extends _0x47ce4c{['afterInit'](){const _0x213b1b=this['editor'];if(!_0x213b1b['plugins']['has']('ImageEditing'))return;const _0x2cbf34=_0x213b1b['plugins']['get']('TrackChangesEditing'),_0x535443=_0x213b1b['plugins']['get']('ImageUtils'),_0x1c48c5=_0x213b1b['locale'];_0x2cbf34['enableCommand']('insertImage'),_0x2cbf34['descriptionFactory']['registerElementLabel']('imageBlock',_0x42fb7a=>o(_0x1c48c5,'ELEMENT_IMAGE',_0x42fb7a)),_0x2cbf34['descriptionFactory']['registerElementLabel']('imageInline',_0x2a5c3c=>o(_0x1c48c5,'ELEMENT_INLINE_IMAGE',_0x2a5c3c)),_0x2cbf34['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1c48c5,'ELEMENT_CAPTION')),_0x213b1b['plugins']['has']('ImageUploadEditing')&&_0x2cbf34['enableCommand']('uploadImage'),_0x213b1b['plugins']['has']('ImageBlockEditing')&&_0x213b1b['plugins']['has']('ImageInlineEditing')&&(_0x2cbf34['enableCommand']('imageTypeInline',(_0x3f2c28,_0x19840b)=>{const _0x3962a6=_0x535443['getClosestSelectedImageElement'](_0x213b1b['model']['document']['selection']);_0x213b1b['model']['change'](()=>{_0x2cbf34['markBlockFormat'](_0x3962a6,{'commandName':'imageTypeInline','commandParams':[_0x19840b]},[],'convertBlockImageToInline');});}),_0x2cbf34['enableCommand']('imageTypeBlock',(_0x33a36d,_0x4636ba)=>{_0x213b1b['model']['change'](_0x570c06=>{let _0xaec398=_0x535443['getClosestSelectedImageElement'](_0x213b1b['model']['document']['selection']),_0x4c82ec=_0x570c06['createRangeOn'](_0xaec398);const _0x40c641=_0x574f39['fromPosition'](_0x4c82ec['start'],'toPrevious'),_0x5c262f=_0x574f39['fromPosition'](_0x4c82ec['end'],'toNext');_0x2cbf34['forceDefaultExecution'](()=>_0x33a36d(_0x4636ba)),_0xaec398=_0x535443['getClosestSelectedImageElement'](_0x213b1b['model']['document']['selection']),_0x4c82ec=_0x570c06['createRangeOn'](_0xaec398);const _0x129f50=_0x570c06['createRange'](_0x40c641,_0x5c262f);_0x40c641['detach'](),_0x5c262f['detach'](),_0x2cbf34['markBlockFormat'](_0xaec398,{'commandName':'imageTypeInline','commandParams':[_0x4636ba]},[],'convertInlineImageToBlock'),_0x129f50['start']['isBefore'](_0x4c82ec['start'])&&_0x2cbf34['markInsertion'](_0x570c06['createRange'](_0x129f50['start'],_0x4c82ec['start']),'convertInlineImageToBlock'),_0x4c82ec['end']['isBefore'](_0x129f50['end'])&&_0x2cbf34['markInsertion'](_0x570c06['createRange'](_0x4c82ec['end'],_0x129f50['end']),'convertInlineImageToBlock');});}),_0x2cbf34['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2cbf34['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2cbf34['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2cbf34['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2cbf34['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2cbf34['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4fa2f1])=>{const _0x155d22=_0x2cbf34['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x537e21=_0x4fa2f1['start'],_0x572b6f=_0x4fa2f1['end'];const _0x58f879=_0x213b1b['model']['schema']['getNearestSelectionRange'](_0x537e21,'backward'),_0x2c2819=_0x213b1b['model']['schema']['getNearestSelectionRange'](_0x572b6f,'forward');_0x58f879['isCollapsed']&&(_0x537e21=_0x58f879['start']),_0x2c2819['isCollapsed']&&(_0x572b6f=_0x2c2819['end']),_0x155d22([_0x213b1b['model']['createRange'](_0x537e21,_0x572b6f)]);}),_0x2cbf34['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x205bce),_0x2cbf34['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x205bce)),_0x213b1b['plugins']['has']('ImageCaptionEditing')&&(_0x2cbf34['enableCommand']('toggleImageCaption',(_0x50c32d,_0x3bdf87)=>{const _0x52d28f=_0x213b1b['plugins']['get']('ImageCaptionUtils');let _0x4d1639=_0x535443['getClosestSelectedImageElement'](_0x213b1b['model']['document']['selection']),_0x450e59=_0x52d28f['getCaptionFromImageModelElement'](_0x4d1639);_0x213b1b['model']['change'](()=>{if(_0x450e59)return void _0x2cbf34['markDeletion'](_0x213b1b['model']['createRangeOn'](_0x450e59));const _0x30d93b=_0x535443['isBlockImage'](_0x4d1639);_0x50c32d(_0x3bdf87),_0x4d1639=_0x535443['getClosestSelectedImageElement'](_0x213b1b['model']['document']['selection']),_0x450e59=_0x52d28f['getCaptionFromImageModelElement'](_0x4d1639),_0x2cbf34['markInsertion'](_0x213b1b['model']['createRangeOn'](_0x450e59),_0x30d93b?null:'imageCaption');});}),_0x2cbf34['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x205bce));const _0x43f97f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3c6e18(_0x570e69,_0x5e6de6){const _0xc3e0f2=_0x43f97f['findIndex'](({type:_0x4a21a9,subType:_0x1c202e})=>_0x570e69['type']==_0x4a21a9&&_0x570e69['subType']==_0x1c202e),_0x1f0b42=_0x43f97f['findIndex'](({type:_0x140856,subType:_0x2a1719})=>_0x5e6de6['type']==_0x140856&&_0x5e6de6['subType']==_0x2a1719);if(_0xc3e0f2<0x0||_0x1f0b42<0x0)return!0x1;const _0x14384a=_0x570e69['getFirstRange'](),_0x8f0879=_0x5e6de6['getFirstRange']();if((0x0==_0xc3e0f2||0x1==_0xc3e0f2)&&0x2==_0x1f0b42&&_0x14384a['isIntersecting'](_0x8f0879))return!0x0;if(0x2==_0xc3e0f2&&0x3==_0x1f0b42){const _0x5a60ad=_0x2cbf34['_findSuggestions'](_0x14384a,'insertion')['filter'](({suggestion:_0x250c22,meta:_0x14dea9})=>_0x14dea9['isOwn']&&'convertInlineImageToBlock'==_0x250c22['subType']);if(_0x5a60ad['length']>0x1&&_0x8f0879['end']['isEqual'](_0x14384a['start']))return!0x0;if(0x1==_0x5a60ad['length']&&(_0x14384a['start']['isEqual'](_0x8f0879['end'])||_0x14384a['end']['isEqual'](_0x8f0879['start'])))return!0x0;}if(0x3==_0xc3e0f2&&0x3==_0x1f0b42&&_0x14384a['start']['isBefore'](_0x8f0879['start'])){const _0x49b324=_0x14384a['end']['nodeAfter'],_0x1517a4=_0x8f0879['start']['nodeBefore'];return _0x535443['isBlockImage'](_0x49b324)&&_0x49b324===_0x1517a4;}return!0x1;}function _0x205bce(_0xdc837,_0x4d4441){return _0x3c6e18(_0xdc837,_0x4d4441)?[_0xdc837,_0x4d4441]:_0x3c6e18(_0x4d4441,_0xdc837)?[_0x4d4441,_0xdc837]:null;}_0x213b1b['plugins']['has']('ImageResize')&&(_0x2cbf34['enableDefaultAttributesIntegration']('resizeImage'),_0x2cbf34['registerBlockAttribute']('resizedWidth'),_0x2cbf34['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1c48c5,'FORMAT_IMAGE_SIZE'))),_0x213b1b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2cbf34['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2cbf34['registerBlockAttribute']('alt')),_0x213b1b['plugins']['has']('PictureEditing')&&(_0x2cbf34['registerBlockAttribute']('sources'),_0x2cbf34['descriptionFactory']['registerDescriptionCallback'](_0x1c1a51=>{if('attribute'!=_0x1c1a51['type'])return;const {data:_0x2131d1}=_0x1c1a51;return _0x2131d1&&'sources'==_0x2131d1['key']?{'type':'format','content':''}:void 0x0;})),_0x213b1b['plugins']['has']('ImageSizeAttributes')&&(_0x2cbf34['registerBlockAttribute']('width'),_0x2cbf34['registerBlockAttribute']('height'),_0x2cbf34['descriptionFactory']['registerDescriptionCallback'](_0x123681=>{if('attribute'!=_0x123681['type'])return;const {data:_0x1a4d3e}=_0x123681;return!_0x1a4d3e||'width'!=_0x1a4d3e['key']&&'height'!=_0x1a4d3e['key']?void 0x0:{'type':'format','content':''};})),_0x2cbf34['descriptionFactory']['registerDescriptionCallback'](_0x1119bf=>{if(!!_0x43f97f['find'](({type:_0x6508c9,subType:_0x17da5b})=>_0x1119bf['type']==_0x6508c9&&_0x1119bf['subType']==_0x17da5b))return _0x1119bf['previous']?{}:void 0x0;}),_0x2cbf34['descriptionFactory']['registerDescriptionCallback'](_0x532649=>{if('insertion'==_0x532649['type']||'deletion'==_0x532649['type']){const _0xb59c2f=_0x532649['getContainedElement']();if(_0xb59c2f&&_0xb59c2f['is']('element','caption'))return{'type':'insertion'==_0x532649['type']?'addObject':'removeObject','element':_0xb59c2f,'quantity':0x1};}}),_0x2cbf34['descriptionFactory']['registerDescriptionCallback'](_0x4b2d2a=>'formatBlock'==_0x4b2d2a['type']&&'convertInlineImageToBlock'==_0x4b2d2a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4b2d2a['type']&&'convertBlockImageToInline'==_0x4b2d2a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2cbf34['descriptionFactory']['registerDescriptionCallback'](_0x560646=>{if('attribute'!=_0x560646['type'])return;const {data:_0x153b5d}=_0x560646;if(!_0x153b5d||'alt'!=_0x153b5d['key'])return;const _0x9176a6=_0x153b5d['newValue'];return _0x9176a6?{'type':'format','content':o(_0x1c48c5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x9176a6+'\x22')}:{'type':'format','content':o(_0x1c48c5,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x315502=this['editor'],_0x1b5145=_0x315502['locale'];_0x315502['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17322e=>{if('formatBlock'!=_0x17322e['type']&&'formatInline'!=_0x17322e['type'])return;const {data:_0x23dadd}=_0x17322e;if(_0x23dadd){if('imageTextAlternative'==_0x23dadd['commandName']){const _0x9a49f2=_0x23dadd['commandParams'][0x0]['newValue'];return _0x9a49f2?{'type':'format','content':o(_0x1b5145,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x9a49f2+'\x22')}:{'type':'format','content':o(_0x1b5145,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x23dadd['commandName']){const _0x196319=_0x23dadd['commandParams'][0x0]['width'];return _0x196319?{'type':'format','content':o(_0x1b5145,'*Set\x20image\x20width:*\x20%0',_0x196319)}:{'type':'format','content':o(_0x1b5145,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x47ce4c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1c2acf=this['editor']['locale'],_0x28958a=this['editor']['plugins']['get']('TrackChangesEditing');_0x28958a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x28958a['registerBlockAttribute']('src'),_0x28958a['descriptionFactory']['registerDescriptionCallback'](_0x4be123=>{if('attribute'!=_0x4be123['type'])return;const {data:_0x2cab42}=_0x4be123;return _0x2cab42&&'src'==_0x2cab42['key']?_0x2cab42['newValue']&&_0x2cab42['oldValue']?{'type':'format','content':o(_0x1c2acf,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xc6ad2b=this['editor']['plugins']['get']('TrackChangesEditing');_0xc6ad2b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xc6ad2b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc6ad2b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xc6ad2b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x566aa7=this['editor'],_0x57e433=_0x566aa7['locale'];_0x566aa7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dfb31=>{if('formatBlock'!=_0x1dfb31['type']&&'formatInline'!=_0x1dfb31['type'])return;const {data:_0x52abbf}=_0x1dfb31;if(!_0x52abbf||'replaceImageSource'!=_0x52abbf['commandName'])return;return{'type':'format','content':o(_0x57e433,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x47ce4c{['afterInit'](){const _0x1fc88d=this['editor'];if(!_0x1fc88d['plugins']['has']('ImageStyleEditing'))return;const _0x5705a7=_0x1fc88d['plugins']['get']('TrackChangesEditing'),_0xf58246=_0x1fc88d['plugins']['get']('ImageUtils'),_0x3d841b={};_0x5705a7['enableCommand']('imageStyle',(_0xbebd16,_0x51afc9)=>{const _0x2f9f42=_0x1fc88d['plugins']['get']('Users')['me'],_0x117bff=_0x1fc88d['commands']['get']('imageStyle');let _0x31847e=_0xf58246['getClosestSelectedImageElement'](_0x1fc88d['model']['document']['selection']),_0xb62e48=_0x1fc88d['model']['createRangeOn'](_0x31847e),_0xad0c4b=_0x117bff['value'];if(_0xad0c4b==_0x51afc9['value'])return;const _0x3c48eb={'commandName':'imageStyle','commandParams':[_0x51afc9],'formatGroupId':_0x2ace31()};_0x1fc88d['model']['change'](()=>{if(_0x5705a7['getSuggestions']()['filter'](_0x1c5894=>_0x1c5894['isInContent']&&_0x2f9f42==_0x1c5894['author']&&('formatBlock'==_0x1c5894['type']||'formatInline'==_0x1c5894['type'])&&('imageStylePreApply'==_0x1c5894['subType']||'imageStylePostApply'==_0x1c5894['subType'])&&_0x1c5894['getFirstRange']()['isEqual'](_0xb62e48))['forEach'](_0x1c7633=>_0x5705a7['discardSuggestion'](_0x1c7633['head'])),_0x31847e=_0xf58246['getClosestSelectedImageElement'](_0x1fc88d['model']['document']['selection']),_0xb62e48=_0x1fc88d['model']['createRangeOn'](_0x31847e),_0x117bff['refresh'](),_0x1fc88d['commands']['get']('imageTypeInline')['refresh'](),_0x1fc88d['commands']['get']('imageTypeBlock')['refresh'](),_0xad0c4b=_0x117bff['value'],_0xad0c4b!=_0x51afc9['value'])return _0xf58246['isInlineImage'](_0x31847e)&&_0x117bff['shouldConvertImageType'](_0x51afc9['value'],_0x31847e)?(_0xbebd16({..._0x51afc9,'setImageSizes':!0x1}),_0x31847e=_0xf58246['getClosestSelectedImageElement'](_0x1fc88d['model']['document']['selection']),void _0x5705a7['markBlockFormat'](_0x31847e,{..._0x3c48eb,'commandReversedParams':[{'value':_0xad0c4b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xf58246['isBlockImage'](_0x31847e)?_0x5705a7['markBlockFormat'](_0x31847e,_0x3c48eb,[],'imageStylePostApply'):_0x5705a7['markInlineFormat'](_0xb62e48,_0x3c48eb,'imageStylePostApply'));});});for(const _0x47a671 of _0x1fc88d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3d841b[_0x47a671['name']]=_0x47a671['title']['toLowerCase']();_0x5705a7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5705a7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5705a7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5705a7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1c8bc2])=>{_0xf58246['setImageNaturalSizeAttributes'](_0x1c8bc2['getContainedElement']());}),_0x5705a7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x453365,_0x52be12)=>{_0x5705a7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x453365,{'commandName':_0x52be12['commandName'],'commandParams':_0x52be12['commandReversedParams']});}),_0x5705a7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3d7f28,_0x16d748){if(_0x250503(_0x3d7f28,_0x16d748))return[_0x3d7f28,_0x16d748];if(_0x250503(_0x16d748,_0x3d7f28))return[_0x16d748,_0x3d7f28];return null;});const _0x57420c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x250503(_0x149643,_0x54ada0){const _0x5cd2e2=_0x57420c['findIndex'](({type:_0x2b2798,subType:_0x3d98a5})=>_0x149643['type']==_0x2b2798&&_0x149643['subType']==_0x3d98a5),_0x1f12b7=_0x57420c['findIndex'](({type:_0x36e2e5,subType:_0x4f587d})=>_0x54ada0['type']==_0x36e2e5&&_0x54ada0['subType']==_0x4f587d);if(_0x5cd2e2<0x0||_0x1f12b7<0x0)return!0x1;const _0x428c4e=_0x149643['getFirstRange'](),_0x43db9f=_0x54ada0['getFirstRange']();if((0x0==_0x5cd2e2||0x1==_0x5cd2e2)&&0x2==_0x1f12b7&&_0x428c4e['isIntersecting'](_0x43db9f))return!0x0;if(0x2==_0x5cd2e2&&0x3==_0x1f12b7){const _0x244862=_0x5705a7['_findSuggestions'](_0x428c4e,'insertion')['filter'](({suggestion:_0x159d67,meta:_0x53922d})=>_0x53922d['isOwn']&&'convertInlineImageToBlock'==_0x159d67['subType']);if(_0x244862['length']>0x1&&_0x43db9f['end']['isEqual'](_0x428c4e['start']))return!0x0;if(0x1==_0x244862['length']&&(_0x428c4e['start']['isEqual'](_0x43db9f['end'])||_0x428c4e['end']['isEqual'](_0x43db9f['start'])))return!0x0;}if(0x3==_0x5cd2e2&&0x3==_0x1f12b7&&_0x428c4e['start']['isBefore'](_0x43db9f['start'])){const _0x240113=_0x428c4e['end']['nodeAfter'],_0x5853d5=_0x43db9f['start']['nodeBefore'];return _0xf58246['isBlockImage'](_0x240113)&&_0x240113===_0x5853d5;}return!0x1;}_0x1fc88d['model']['document']['registerPostFixer'](()=>{let _0x1dce5a=!0x1;const _0x425439=Array['from'](_0x1fc88d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47011c,data:_0x29b6ba}of _0x425439){const {group:_0x45b4c2,type:_0x467af8,subType:_0x2cdba3,id:_0x29ac8d}=_0x5705a7['_splitMarkerName'](_0x47011c);if('suggestion'==_0x45b4c2&&_0x5705a7['hasSuggestion'](_0x29ac8d)){if('formatBlock'==_0x467af8&&('imageStylePreApply'==_0x2cdba3||'imageStylePostApply'==_0x2cdba3)){const _0x5c5f62=_0x5705a7['getSuggestion'](_0x29ac8d);if(_0x29b6ba['newRange']){const _0x5870b6=_0x5c5f62['getFirstRange']()['getContainedElement']();if(_0xf58246['isBlockImage'](_0x5870b6))continue;_0x5705a7['discardSuggestion'](_0x5c5f62),_0x1dce5a=!0x0;}}if('insertion'==_0x467af8&&'imageCaption'==_0x2cdba3&&!_0x29b6ba['newRange']){const _0x47e220=_0x5705a7['getSuggestion'](_0x29ac8d);_0x47e220['next']&&_0x47e220['next']['isInContent']&&(_0x5705a7['discardSuggestion'](_0x47e220['next']),_0x1dce5a=!0x0);}}}return _0x1dce5a;}),this['_registerLegacyDescription'](_0x3d841b);}['_registerLegacyDescription'](_0x5e7256){const _0x488d31=this['editor'],_0x1d1b9f=_0x488d31['locale'];_0x488d31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1808a9=>{if('formatBlock'!=_0x1808a9['type']&&'formatInline'!=_0x1808a9['type'])return;const {data:_0x53e2b4}=_0x1808a9;if(!_0x53e2b4||'imageStyle'!=_0x53e2b4['commandName'])return;const _0x4aef37=_0x53e2b4['commandParams'][0x0]['value'];return _0x10b1dc('side'===_0x4aef37?o(_0x1d1b9f,'FORMAT_SIDE_IMAGE'):_0x5e7256[_0x4aef37]||_0x4aef37);function _0x10b1dc(_0x45d150){return{'type':'format','content':o(_0x1d1b9f,'*Format:*\x20%0',_0x45d150)};}});}}class ct extends _0x47ce4c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x173545){super(_0x173545),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1c115f=this['editor'],_0x206acf=_0x1c115f['commands']['get']('importWord'),_0xf56eb=_0x1c115f['commands']['get']('trackChanges');_0x206acf&&(_0x206acf['on']('execute',(_0x5e5a15,[,_0x4622bd])=>{this['_trackChangesValueDuringImport']=_0xf56eb['value'],_0x4622bd['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x206acf,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x206acf,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xf56eb['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1c115f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x50c107,_0x3433dc){const {suggestions:_0x544e90}=_0x3433dc,_0x20829d=this['editor']['commands']['get']('trackChanges'),_0x2c61d1=_0x20829d['value'];this['_trackChangesValueDuringImport']!==_0x2c61d1&&(_0x20829d['execute'](),this['_trackChangesExecuted']=!0x0),_0x544e90&&_0x544e90['forEach'](({id:_0x2b25a7,type:_0xee2aef,author:_0x26832e,created_at:_0x452f64})=>{const _0x6257d2={'id':_0x2b25a7,'type':_0xee2aef,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x26832e,'createdAt':_0x452f64?new Date(_0x452f64):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x6257d2);});}}class ut extends _0x47ce4c{['afterInit'](){const _0xe4729b=this['editor'],_0x25b82e=_0xe4729b['plugins']['get']('TrackChangesEditing');if(_0xe4729b['plugins']['has']('IndentEditing')&&(_0x25b82e['enableCommand']('indent'),_0x25b82e['enableCommand']('outdent')),_0xe4729b['plugins']['has']('IndentBlock')){for(const _0x40f18b of['indentBlock','outdentBlock'])_0x25b82e['enableDefaultAttributesIntegration'](_0x40f18b);}const _0x497c25=_0xe4729b['locale'];_0x25b82e['registerBlockAttribute']('blockIndent'),_0x25b82e['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x497c25,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cd267=this['editor'],_0x539b0e=_0x3cd267['locale'],_0xc63a0c=_0x3cd267['plugins']['get']('TrackChangesEditing');_0xc63a0c['descriptionFactory']['registerDescriptionCallback'](_0x54e792=>{if('formatBlock'!=_0x54e792['type'])return;const {data:_0x439f97}=_0x54e792;if(!_0x439f97)return;if('indentBlock'!=_0x439f97['commandName']&&'outdentBlock'!=_0x439f97['commandName'])return;const _0x19730e=_0x54e792['getItems']()[0x0],_0x3f30a4=_0xc63a0c['descriptionFactory']['getItemLabel'](_0x19730e);return'indentBlock'==_0x439f97['commandName']?{'type':'format','content':o(_0x539b0e,'*Indent:*\x20%0',_0x3f30a4)}:'outdentBlock'==_0x439f97['commandName']?{'type':'format','content':o(_0x539b0e,'*Outdent:*\x20%0',_0x3f30a4)}:void 0x0;});}}class ft extends _0x47ce4c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x47ce4c{['afterInit'](){const _0x3bf4e8=this['editor'];if(!_0x3bf4e8['plugins']['has']('LinkEditing'))return;const _0x16d550=_0x3bf4e8['plugins']['get']('TrackChangesEditing'),_0x3846b7=_0x3bf4e8['commands']['get']('link');_0x16d550['enableDefaultAttributesIntegration']('link'),_0x16d550['enableDefaultAttributesIntegration']('unlink'),_0x16d550['registerInlineAttribute']('linkHref');for(const _0x4fd678 of _0x3846b7['manualDecorators'])_0x16d550['registerInlineAttribute'](_0x4fd678['id']),_0x16d550['descriptionFactory']['registerAttributeLabel'](_0x4fd678['id'],'link\x20('+_0x4fd678['label']['toLowerCase']()+')');_0x16d550['descriptionFactory']['registerDescriptionCallback'](_0x55d104=>{if('attribute'!=_0x55d104['type'])return;const {data:_0x31435b}=_0x55d104;if(!_0x31435b||'linkHref'!=_0x31435b['key'])return;const _0xa8ff59=_0x31435b['newValue'],_0x1be535=_0x3bf4e8['locale'];return{'type':'format','content':null==_0xa8ff59?o(_0x1be535,'*Remove\x20link*'):o(_0x1be535,'*Set\x20link:*\x20%0','\x22'+_0xa8ff59+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x227ab2=this['editor'],_0x2ec50c=_0x227ab2['locale'];_0x227ab2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51ca8b=>{if('formatInline'!=_0x51ca8b['type'])return;const {data:_0x3cab74}=_0x51ca8b;if(_0x3cab74){if('link'==_0x3cab74['commandName']){const _0x4f4593=_0x3cab74['commandParams'][0x0];return{'type':'format','content':o(_0x2ec50c,'*Set\x20link:*\x20%0','\x22'+_0x4f4593+'\x22')};}return'unlink'==_0x3cab74['commandName']?{'type':'format','content':o(_0x2ec50c,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x47ce4c{['afterInit'](){const _0x4fd1ac=this['editor'],_0x4760ce=_0x4fd1ac['locale'];if(!_0x4fd1ac['plugins']['has']('LegacyListEditing'))return;const _0x3e9564=_0x4fd1ac['plugins']['get']('TrackChangesEditing'),_0x24b1b9=_0x4fd1ac['plugins']['has']('LegacyTodoListEditing');function _0x1f8d76(_0x33f4e7){return()=>{const _0x49c396=_0x4fd1ac['model']['document']['selection'],_0x2dc36a=_0x4fd1ac['commands']['get'](_0x33f4e7);if(_0x2dc36a['value'])return void _0x4fd1ac['execute']('paragraph',{});const _0x5c964e=_0x33f4e7['slice'](0x0,-0x4),_0x2f6719=function(_0x23dc71,_0x838a72,_0xb9dc3){let _0x468b25=Array['from'](_0x23dc71)['filter'](_0x3dafeb=>function(_0x2ffd7c,_0x34deef){return _0x34deef['checkChild'](_0x2ffd7c['parent'],'listItem')&&!_0x34deef['isObject'](_0x2ffd7c);}(_0x3dafeb,_0xb9dc3));_0x468b25=_0x468b25['filter'](_0x8a127d=>!_0x8a127d['is']('element','listItem')||_0x8a127d['getAttribute']('listType')!=_0x838a72);const _0x27d3e6=new Set();for(const _0x2c4075 of _0x468b25)_0x2c4075['is']('element','listItem')?_0x27d3e6['add'](Le(_0x2c4075)):_0x27d3e6['add'](_0x2c4075);return Array['from'](_0x27d3e6);}(_0x49c396['getSelectedBlocks'](),_0x5c964e,_0x4fd1ac['model']['schema']);_0x4fd1ac['model']['change'](()=>{for(const _0x321a3a of _0x2f6719)_0x3e9564['markBlockFormat'](_0x321a3a,{'commandName':_0x33f4e7,'commandParams':[{'forceValue':!_0x2dc36a['value']}],'formatGroupId':'blockName'},Ee(_0x321a3a));});};}function _0x1b3ae6(_0x38546a){return()=>{const _0x1937b5=function(_0x2549c1){let _0x1b86fc=Array['from'](_0x2549c1);const _0x4c8b5e=_0x1b86fc['findIndex'](_0x507f54=>'listItem'!=_0x507f54['name']);return _0x4c8b5e>-0x1&&(_0x1b86fc=_0x1b86fc['slice'](0x0,_0x4c8b5e)),_0x1b86fc;}(_0x4fd1ac['model']['document']['selection']['getSelectedBlocks']()),_0x513c2e=_0x4fd1ac['model']['createRange'](_0x4fd1ac['model']['createPositionAt'](_0x1937b5[0x0],'before'),_0x4fd1ac['model']['createPositionAt'](_0x1937b5[_0x1937b5['length']-0x1],'end'));_0x4fd1ac['model']['change'](()=>{_0x3e9564['markBlockFormat'](_0x513c2e,{'commandName':_0x38546a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x505ad5){const _0x22921f=new Set();for(const _0x40ce93 of _0x505ad5){let _0xeb6bfd=_0x40ce93['nextSibling'];for(;_0xeb6bfd&&_0xeb6bfd['getAttribute']('listIndent')>_0x40ce93['getAttribute']('listIndent');)_0x22921f['add'](_0xeb6bfd),_0xeb6bfd=_0xeb6bfd['nextSibling'];}return Array['from'](_0x22921f);}(_0x1937b5));});};}_0x3e9564['enableCommand']('numberedList',_0x1f8d76('numberedList')),_0x3e9564['enableCommand']('bulletedList',_0x1f8d76('bulletedList')),_0x24b1b9&&_0x3e9564['enableCommand']('todoList',_0x1f8d76('todoList')),_0x3e9564['enableCommand']('indentList',_0x1b3ae6('indentList')),_0x3e9564['enableCommand']('outdentList',_0x1b3ae6('outdentList')),_0x24b1b9&&_0x3e9564['enableCommand']('checkTodoList',()=>{const _0x3626a8=_0x4fd1ac['commands']['get']('checkTodoList'),_0x499373=Array['from'](_0x3626a8['_selectedElements']);_0x499373['filter'](_0x56ca05=>_0x56ca05['getAttribute']('todoListChecked')!=_0x3626a8['value']),_0x4fd1ac['model']['change'](()=>{for(const _0x25b4aa of _0x499373)_0x3e9564['markBlockFormat'](_0x25b4aa,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3626a8['value']}]});});}),_0x3e9564['descriptionFactory']['registerElementLabel']('listItem',_0x36f3d4=>o(_0x4760ce,'ELEMENT_LIST_ITEM',_0x36f3d4)),_0x3e9564['descriptionFactory']['registerDescriptionCallback'](_0x17bbef=>{if('formatBlock'!=_0x17bbef['type']&&'formatInline'!=_0x17bbef['type'])return;const {data:_0xd5d84e}=_0x17bbef;if(_0xd5d84e){if('numberedList'==_0xd5d84e['commandName']||'bulletedList'==_0xd5d84e['commandName']||'todoList'==_0xd5d84e['commandName'])switch(_0xd5d84e['commandName']['replace']('List','')){case'bulleted':return _0x8c1a67(o(_0x4760ce,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x8c1a67(o(_0x4760ce,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x8c1a67(o(_0x4760ce,'ELEMENT_TODO_LIST'));}if('indentList'==_0xd5d84e['commandName'])return{'type':'format','content':o(_0x4760ce,'*Indent:*\x20%0',o(_0x4760ce,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xd5d84e['commandName'])return{'type':'format','content':o(_0x4760ce,'*Outdent:*\x20%0',o(_0x4760ce,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xd5d84e['commandName'])return _0xd5d84e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4760ce,'*Check\x20item*')}:{'type':'format','content':o(_0x4760ce,'*Uncheck\x20item*')};}function _0x8c1a67(_0x319405){return{'type':'format','content':o(_0x4760ce,'*Change\x20to:*\x20%0',_0x319405)};}});}}function Le(_0x1158a4){const _0x49ebd9=_0x1158a4['getAttribute']('listIndent');if(0x0==_0x49ebd9)return _0x1158a4;let _0x112e21=_0x1158a4;for(;_0x1158a4['previousSibling']&&_0x1158a4['previousSibling']['is']('element','listItem');){const _0x4d26e3=_0x1158a4['previousSibling']['getAttribute']('listIndent');if(_0x4d26e3==_0x49ebd9)_0x112e21=_0x1158a4['previousSibling'];else{if(_0x4d26e3<_0x49ebd9)break;}_0x1158a4=_0x1158a4['previousSibling'];}return _0x112e21;}function Ee(_0x5a66e7){const _0x222cef=[];if(_0x5a66e7['is']('element','listItem')&&_0x5a66e7['getAttribute']('listIndent')>0x0){let _0x21e77f=_0x5a66e7['nextSibling'];for(;_0x21e77f&&'listItem'==_0x21e77f['name']&&_0x21e77f['getAttribute']('listIndent')==_0x5a66e7['getAttribute']('listIndent');)_0x222cef['push'](_0x21e77f),_0x21e77f=_0x21e77f['nextSibling'];}return _0x222cef;}class Q extends _0x47ce4c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x17b09c=this['editor']['config']['get']('list.properties'),_0x57ea45=this['editor']['plugins']['get']('TrackChangesEditing');_0x17b09c['styles']&&_0x57ea45['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x17b09c['reversed']&&_0x57ea45['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x17b09c['startIndex']&&_0x57ea45['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x57ea45['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x191ab6,_0x4e86dc={}){const _0x55ac3a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x269838=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x55ac3a['markMultiRangeBlockFormat'](_0x269838,{'commandName':'listStyle','commandParams':[{'type':_0x4e86dc['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3851e4,_0x43d71b={}){const _0x24e678=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36d626=this['_getSuggestionBlocks'](_0x1a7e42=>_0x1a7e42['is']('element','listItem')&&'numbered'===_0x1a7e42['getAttribute']('listType'));if(_0x36d626['length']<0x1)return;const _0x1a08f7=_0x36d626['map'](_0x36f857=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x36f857,'before'),this['editor']['model']['createPositionAt'](_0x36f857,0x0)));this['editor']['model']['change'](()=>{_0x24e678['markMultiRangeBlockFormat'](_0x1a08f7,{'commandName':'listReversed','commandParams':[{'reversed':_0x43d71b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x7aafd1,_0x1af2e5={}){const _0x3628f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c9e5b=this['_getSuggestionBlocks'](_0x1a27e5=>_0x1a27e5['is']('element','listItem')&&'numbered'===_0x1a27e5['getAttribute']('listType'));if(_0x2c9e5b['length']<0x1)return;const _0x3262d9=_0x2c9e5b['map'](_0x1bb2c5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1bb2c5,'before'),this['editor']['model']['createPositionAt'](_0x1bb2c5,0x0)));this['editor']['model']['change'](()=>{_0x3628f3['markMultiRangeBlockFormat'](_0x3262d9,{'commandName':'listStart','commandParams':[{'startIndex':_0x1af2e5['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x35d2a9){if('formatBlock'!=_0x35d2a9['type']&&'formatInline'!=_0x35d2a9['type'])return;const _0xcf9af4=this['editor']['locale'],{data:_0x11737a}=_0x35d2a9;if(!_0x11737a)return;let _0x3736a8,_0x5ee1dd;switch(_0x11737a['commandName']){case'listStyle':_0x3736a8='*Change\x20to:*\x20%0',_0x5ee1dd={'type':'format','content':o(_0xcf9af4,_0x3736a8,o(_0xcf9af4,this['_getTranslationKeyForListStyle'](_0x11737a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3736a8=_0x11737a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5ee1dd={'type':'format','content':o(_0xcf9af4,_0x3736a8)};break;case'listStart':_0x3736a8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5ee1dd={'type':'format','content':o(_0xcf9af4,_0x3736a8,_0x11737a['commandParams'][0x0]['startIndex'])};}return _0x5ee1dd;}['_getSuggestionBlocksForListStyle'](){const _0x4ce111=this['editor']['plugins']['get']('LegacyListUtils');let _0x35d664=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x35d664[0x0]?.['is']('element','listItem')&&_0x35d664['unshift'](..._0x4ce111['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x35d664[_0x35d664['length']-0x1]?.['is']('element','listItem')&&_0x35d664['push'](..._0x4ce111['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x35d664=[...new Set(_0x35d664)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x35d664=_0x35d664['filter'](_0x816b11=>_0x816b11['is']('element','listItem'))),_0x35d664;}['_getSuggestionBlocks'](_0x425b9c){const _0x257498=this['editor']['plugins']['get']('LegacyListUtils');let _0x2863a4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x425b9c)['map'](_0x8ed9c5=>{const _0x45b98b=this['editor']['model']['createPositionAt'](_0x8ed9c5,0x0);return[..._0x257498['getSiblingNodes'](_0x45b98b,'backward'),..._0x257498['getSiblingNodes'](_0x45b98b,'forward')];})['flat']();return _0x2863a4=[...new Set(_0x2863a4)],_0x2863a4;}['_getTranslationKeyForListStyle'](_0x339de0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x339de0)||'default')['toUpperCase']()+'_LIST_'+_0x339de0['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x47ce4c{['afterInit'](){const _0x568587=this['editor'];if(!_0x568587['plugins']['has']('MediaEmbedEditing'))return;const _0x11004a=_0x568587['plugins']['get']('TrackChangesEditing'),_0xede4c8=_0x568587['locale'];_0x11004a['enableCommand']('mediaEmbed'),_0x11004a['descriptionFactory']['registerElementLabel']('media',_0x2c2656=>o(_0xede4c8,'ELEMENT_MEDIA',_0x2c2656)),_0x568587['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4f4112,{writer:_0x2bfd33,options:_0x3e3c8f})=>{if(_0x3e3c8f['showSuggestionHighlights'])return _0x2bfd33['createEmptyElement']('div');},'converterPriority':'high'}),_0x568587['data']['downcastDispatcher']['on']('attribute:url:media',(_0xd316b5,_0x16b21b,_0x1e7adb)=>{_0x1e7adb['options']['showSuggestionHighlights']&&_0xd316b5['stop']();},{'priority':'high'});}}class mt extends _0x47ce4c{['afterInit'](){const _0x30c406=this['editor'];_0x30c406['plugins']['has']('MentionEditing')&&_0x30c406['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x47ce4c{['afterInit'](){const _0x23ea35=this['editor'];if(!_0x23ea35['plugins']['has']('MergeFieldsEditing'))return;const _0x5bbc73=_0x23ea35['plugins']['get']('TrackChangesEditing'),_0x4d243d=_0x23ea35['locale'];_0x5bbc73['enableCommand']('insertMergeField'),_0x5bbc73['enableCommand']('insertMergeFieldBlock'),_0x5bbc73['enableCommand']('insertMergeFieldImage'),_0x5bbc73['descriptionFactory']['registerElementLabel']('mergeField',_0x3aba4e=>o(_0x4d243d,'ELEMENT_MERGE_FIELD',_0x3aba4e)),_0x5bbc73['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4235f9=>o(_0x4d243d,'ELEMENT_MERGE_FIELD',_0x4235f9)),_0x5bbc73['descriptionFactory']['registerDescriptionCallback'](_0x565bd2=>{if('insertion'!=_0x565bd2['type']&&'deletion'!=_0x565bd2['type'])return;const _0x1e3942=_0x565bd2['getContainedElement']();if(null==_0x1e3942)return;const _0x3c1102=_0x23ea35['plugins']['get']('MergeFieldsEditing');let _0x5c31ca;switch(_0x3c1102['getMergeFieldType'](_0x1e3942)){case null:return;case'image':{const _0x36d023=_0x3c1102['unwrapAffixes'](_0x1e3942['getAttribute']('src'));_0x5c31ca=_0x3c1102['getLabel'](_0x36d023)||_0x36d023;break;}default:{const _0x51ae2f=_0x1e3942['getAttribute']('id');_0x5c31ca=_0x3c1102['getLabel'](_0x51ae2f)||_0x51ae2f;break;}}return'insertion'==_0x565bd2['type']?{'type':'insertion','content':o(_0x4d243d,'*Insert:*\x20%0','\x22'+_0x5c31ca+'\x22\x20'+o(_0x4d243d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4d243d,'*Remove:*\x20%0','\x22'+_0x5c31ca+'\x22\x20'+o(_0x4d243d,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x47ce4c{['afterInit'](){const _0x3acc54=this['editor'],_0x46bfba=_0x3acc54['plugins']['get']('TrackChangesEditing');_0x3acc54['plugins']['has']('MultiLevelList')&&(_0x46bfba['enableDefaultAttributesIntegration']('multiLevelList'),_0x46bfba['registerBlockAttribute']('listMarkerStyle'),_0x46bfba['descriptionFactory']['registerDescriptionCallback'](_0x1dba5c=>this['handleDescriptions'](_0x1dba5c)));}['handleDescriptions'](_0x198868){const _0x464c95=this['editor']['locale'],{data:_0x49ccb4}=_0x198868,_0xe09698={'type':'format','content':''};if(_0x49ccb4&&'listMarkerStyle'==_0x49ccb4['key']){if(!_0x49ccb4['oldValue'])return{'type':'format','content':o(_0x464c95,'*Set\x20format:*\x20%0',o(_0x464c95,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x49ccb4['newValue']+')'};if(!_0x49ccb4['newValue']){let _0x537c78=_0x198868['head'];for(;_0x537c78;){if(_0x537c78['data']&&'listType'==_0x537c78['data']['key']&&_0x537c78['data']['newValue'])return _0xe09698;_0x537c78=_0x537c78['next'];}return{'type':'format','content':o(_0x464c95,'*Remove\x20format:*\x20%0',o(_0x464c95,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x49ccb4['oldValue']+')'};}}}}class kt extends _0x47ce4c{['afterInit'](){const _0x1ef7e4=this['editor'];if(!_0x1ef7e4['plugins']['has']('PageBreakEditing'))return;_0x1ef7e4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x545fe2=_0x1ef7e4['plugins']['get']('TrackChangesEditing'),_0x31a9bf=_0x1ef7e4['locale'];_0x545fe2['descriptionFactory']['registerElementLabel']('pageBreak',_0x1fac5e=>o(_0x31a9bf,'ELEMENT_PAGE_BREAK',_0x1fac5e));}}class bt extends _0x47ce4c{['afterInit'](){const _0x4bb641=this['editor'];if(!_0x4bb641['plugins']['has']('Paragraph'))return;const _0x24514a=_0x4bb641['locale'],_0x33188e=_0x4bb641['plugins']['get']('TrackChangesEditing');_0x33188e['descriptionFactory']['registerElementLabel']('paragraph',_0x786dce=>o(_0x24514a,'ELEMENT_PARAGRAPH',_0x786dce)),_0x33188e['enableDefaultAttributesIntegration']('paragraph'),_0x33188e['enableCommand']('insertParagraph'),_0x4bb641['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4bb641),{'priority':'highest'}),_0x4bb641['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x336eb3,_0x5188d9,_0x34f1f4)=>{_0x34f1f4['options']['showSuggestionHighlights']&&nr(_0x4bb641,{'showActiveMarker':!0x1})(_0x336eb3,_0x5188d9,_0x34f1f4);},{'priority':'highest'});const _0x37656a=_0x33188e['descriptionFactory'];_0x37656a['registerDescriptionCallback'](_0x22b574=>{if('insertion'!==_0x22b574['type'])return;const {start:_0x40e571,end:_0x51d2bc}=_0x22b574['getFirstRange']();if(!_0x40e571['isTouching'](_0x51d2bc)||!_0x40e571['nodeAfter'])return;const _0x42fa03=_0x4bb641['model']['schema'],_0x29cf38=_0x40e571['nodeAfter'];return _0x42fa03['isBlock'](_0x29cf38)&&!_0x42fa03['isLimit'](_0x29cf38)&&_0x42fa03['checkChild'](_0x29cf38,'$text')?{'type':'insertion','content':o(_0x24514a,'*Insert:*\x20%0',_0x37656a['getItemLabel'](_0x29cf38,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20b26f=this['editor'],_0x46f56b=_0x20b26f['locale'];_0x20b26f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51cd19=>{if('formatBlock'!=_0x51cd19['type'])return;const {data:_0xeb1037}=_0x51cd19;return _0xeb1037&&'paragraph'==_0xeb1037['commandName']?{'type':'format','content':o(_0x46f56b,'*Change\x20to:*\x20%0',o(_0x46f56b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5228aa,{showActiveMarker:_0x8bbdb2=!0x0}={}){return(_0x46e09b,_0x5cb3be,_0x171e40)=>{const _0x199c81=_0x5228aa['plugins']['get']('TrackChangesEditing'),_0x500dd8=_0x5cb3be['markerRange']['start'],_0x13e8fb=_0x5cb3be['markerRange']['end'],_0x4fe1ec=_0x5228aa['model']['schema'];if(!_0x500dd8['isTouching'](_0x13e8fb)||!_0x500dd8['nodeAfter'])return;const _0x204402=_0x500dd8['nodeAfter'];if(_0x4fe1ec['isBlock'](_0x204402)&&!_0x4fe1ec['isLimit'](_0x204402)&&_0x4fe1ec['checkChild'](_0x204402,'$text')){if(!_0x171e40['consumable']['consume'](_0x5cb3be['markerRange'],_0x46e09b['name']))return;const {authorId:_0x26e329}=_0x199c81['_splitMarkerName'](_0x5cb3be['markerName']),_0x3912b7=_0x171e40['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x26e329}),_0x4802af=_0x171e40['mapper']['toViewPosition'](_0x13e8fb);_0x8bbdb2&&_0x199c81['activeMarkers']['includes'](_0x5cb3be['markerName'])&&_0x171e40['writer']['addClass']('ck-suggestion-marker--active',_0x3912b7),_0x171e40['writer']['insert'](_0x4802af,_0x3912b7),_0x171e40['mapper']['bindElementToMarker'](_0x3912b7,_0x5cb3be['markerName']);}};}class yt extends _0x47ce4c{['afterInit'](){const _0x480c23=this['editor'];if(!_0x480c23['plugins']['has']('RemoveFormatEditing'))return;_0x480c23['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34c204=this['editor'];_0x34c204['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f435d=>{if('formatBlock'!=_0x5f435d['type']&&'formatInline'!=_0x5f435d['type'])return;const {data:_0x2c7108}=_0x5f435d;return _0x2c7108&&'removeFormat'==_0x2c7108['commandName']?{'type':'format','content':o(_0x34c204['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x47ce4c{['afterInit'](){const _0x1d0a10=this['editor'];if(!_0x1d0a10['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x32c34e=_0x1d0a10['plugins']['get']('TrackChangesEditing');_0x32c34e['enableCommand']('goToPreviousRestrictedEditingException'),_0x32c34e['enableCommand']('goToNextRestrictedEditingException');const _0x20a173=_0x1d0a10['plugins']['get']('RestrictedEditingModeEditing');_0x20a173['enableCommand']('trackChanges'),_0x20a173['enableCommand']('acceptSuggestion'),_0x20a173['enableCommand']('discardSuggestion'),_0x20a173['enableCommand']('acceptAllSuggestions'),_0x20a173['enableCommand']('discardAllSuggestions'),_0x20a173['enableCommand']('acceptSelectedSuggestions'),_0x20a173['enableCommand']('discardSelectedSuggestions');}}class St extends _0x47ce4c{static get['requires'](){return[_0xb540ab];}['init'](){const _0x2c909c=this['editor'],_0x5366a3=_0x2c909c['plugins']['get']('TrackChangesEditing');_0x5366a3['enableCommand']('shiftEnter'),_0x2c909c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2c909c),{'priority':'high'}),_0x2c909c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2c909c),{'priority':'high'}),_0x2c909c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x17a30d,_0x2ee767,_0xaa0eab)=>{_0xaa0eab['options']['showSuggestionHighlights']&&je(_0x2c909c,{'showActiveMarker':!0x1})(_0x17a30d,_0x2ee767,_0xaa0eab);}),_0x5366a3['descriptionFactory']['registerElementLabel']('softBreak',_0x5c9e72=>o(_0x2c909c['locale'],'ELEMENT_LINE_BREAK',_0x5c9e72));}}function je(_0x3fb92c,{showActiveMarker:_0x5eadb1=!0x0}={}){return(_0x233a69,_0x2c5388,_0x255b42)=>{const _0x3ab9b3=_0x3fb92c['plugins']['get']('TrackChangesEditing');if(!_0x255b42['consumable']['test'](_0x2c5388['markerRange'],_0x233a69['name']))return;const _0x2d1209=_0x3fb92c['model'];for(const _0x512253 of _0x2c5388['markerRange']['getItems']()){if(!_0x512253['is']('element','softBreak'))continue;const _0x16c667='deletion'==_0x2c5388['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5aba1a}=_0x3ab9b3['_splitMarkerName'](_0x2c5388['markerName']),_0x16e740=_0x255b42['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x16c667,'data-author-id':_0x5aba1a}),_0x33d976=_0x255b42['mapper']['toViewPosition'](_0x2d1209['createPositionBefore'](_0x512253));_0x5eadb1&&_0x3ab9b3['activeMarkers']['includes'](_0x2c5388['markerName'])&&_0x255b42['writer']['addClass']('ck-suggestion-marker--active',_0x16e740),_0x255b42['writer']['insert'](_0x33d976,_0x16e740),_0x255b42['mapper']['bindElementToMarker'](_0x16e740,_0x2c5388['markerName']);}};}class At extends _0x47ce4c{['afterInit'](){const _0x119223=this['editor'],_0x2c567f=_0x119223['model'],_0x3ede4c=_0x119223['locale'];if(!_0x119223['plugins']['has']('StandardEditingModeEditing'))return;const _0x361c84=_0x119223['plugins']['get']('TrackChangesEditing'),_0x50aca9='restrictedEditingException',_0x55e8aa=_0x119223['commands']['get'](_0x50aca9);_0x361c84['enableCommand'](_0x50aca9,(_0x157ebb,_0x1ecad1={})=>{const _0xc31a5b=_0x2c567f['document']['selection'];if(_0xc31a5b['isCollapsed'])return void _0x157ebb(_0x1ecad1);const _0x569f49=void 0x0!==_0x1ecad1['forceValue']?_0x1ecad1['forceValue']:!_0x55e8aa['value'];_0x2c567f['change'](()=>{const _0x3e835e=Array['from'](_0xc31a5b['getRanges']());for(const _0xbb157 of _0x3e835e){const _0x2387eb=_0x569f49?[_0xbb157]:io(_0x50aca9,_0xbb157,_0x2c567f);for(const _0x2a335a of _0x2387eb)_0x361c84['markInlineFormat'](_0x2a335a,{'commandName':_0x50aca9,'commandParams':[{'forceValue':_0x569f49}]});}});}),_0x361c84['descriptionFactory']['registerDescriptionCallback'](_0x51bf2e=>{if('formatBlock'!=_0x51bf2e['type']&&'formatInline'!=_0x51bf2e['type'])return;const {data:_0x303f3d}=_0x51bf2e;return _0x303f3d&&_0x303f3d['commandName']==_0x50aca9?_0x303f3d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ede4c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3ede4c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x47ce4c{['afterInit'](){const _0xd2e578=this['editor'];if(!_0xd2e578['plugins']['has']('Style')||!_0xd2e578['plugins']['has']('DataSchema'))return;const _0x57fe02=_0xd2e578['plugins']['get']('TrackChangesEditing'),_0x54298f=_0xd2e578['locale'],_0x19f3f3=_0xd2e578['config']['get']('style')||{},_0x4f125b=_0xd2e578['plugins']['get']('GeneralHtmlSupport'),_0x421565=_0xd2e578['plugins']['get']('StyleUtils')['normalizeConfig'](_0xd2e578['plugins']['get']('DataSchema'),_0x19f3f3['definitions']);_0x57fe02['enableDefaultAttributesIntegration']('style');const _0x170635=new Set();for(const _0x20b1ee of _0x421565['block']){const _0x3a0b00=_0x4f125b['getGhsAttributeNameForElement'](_0x20b1ee['element']);_0x170635['add'](_0x3a0b00);}const _0x3ba1f1=new Set();for(const _0x4f06c8 of _0x421565['inline']){const _0x26dfaa=_0x4f125b['getGhsAttributeNameForElement'](_0x4f06c8['element']);_0x3ba1f1['add'](_0x26dfaa);for(const _0x243f42 of _0x4f06c8['ghsAttributes'])_0x3ba1f1['add'](_0x243f42);}for(const _0x1c1d1b of _0x170635)_0x57fe02['registerBlockAttribute'](_0x1c1d1b),_0x57fe02['descriptionFactory']['registerAttributeLabel'](_0x1c1d1b,o(_0x54298f,'FORMAT_STYLE'));for(const _0x2c151f of _0x3ba1f1)_0x57fe02['registerInlineAttribute'](_0x2c151f),_0x57fe02['descriptionFactory']['registerAttributeLabel'](_0x2c151f,o(_0x54298f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d1c6=this['editor'],_0x32dc75=_0x5d1c6['locale'];_0x5d1c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d1f59=>{if('formatBlock'!=_0x2d1f59['type']&&'formatInline'!=_0x2d1f59['type'])return;const {data:_0x226cad}=_0x2d1f59;return _0x226cad&&'style'===_0x226cad['commandName']?_0x226cad['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32dc75,'*Set\x20format:*\x20%0',_0x226cad['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x32dc75,'*Remove\x20format:*\x20%0',_0x226cad['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x47ce4c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x23af11){super(_0x23af11),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x58172b=this['editor'],_0x234ab4=_0x58172b['model']['document']['selection'];if(!_0x58172b['plugins']['has']('TableEditing'))return;const _0x9aacd8=_0x58172b['locale'],_0x3a9543=_0x58172b['plugins']['get']('TrackChangesEditing'),_0x1af13f=_0x58172b['plugins']['get']('TableUtils');_0x3a9543['descriptionFactory']['registerElementLabel']('table',_0x26a8b3=>o(_0x9aacd8,'ELEMENT_TABLE',_0x26a8b3)),this['_setupColumnsRowsFixing'](),_0x3a9543['enableCommand']('insertTable'),_0x3a9543['enableCommand']('selectTableRow'),_0x3a9543['enableCommand']('selectTableColumn');for(const _0x3d4c04 of['insertTableRowAbove','insertTableRowBelow']){const _0x580165=_0x58172b['commands']['get'](_0x3d4c04);_0x3a9543['enableCommand'](_0x3d4c04,_0x2f98d7=>{_0x58172b['model']['change'](_0x54ed20=>{_0x2f98d7();const _0x5a0e05='above'===_0x580165['order'],_0x48302b=_0x1af13f['getSelectionAffectedTableCells'](_0x234ab4),_0x383d2b=_0x1af13f['getRowIndexes'](_0x48302b),_0x1898f0=_0x5a0e05?_0x383d2b['first']-0x1:_0x383d2b['last']+0x1,_0x2a141a=_0x48302b[0x0]['findAncestor']('table'),_0x43d5c4=_0x1af13f['createTableWalker'](_0x2a141a,{'startRow':_0x1898f0,'endRow':_0x1898f0}),_0x126a50=Array['from'](_0x43d5c4)['map'](_0x2ad03b=>_0x54ed20['createRangeOn'](_0x2ad03b['cell']));_0x3a9543['markMultiRangeInsertion'](_0x126a50,'tableRow');});});}for(const _0x4d2451 of['insertTableColumnLeft','insertTableColumnRight']){const _0x24d007=_0x58172b['commands']['get'](_0x4d2451);_0x3a9543['enableCommand'](_0x4d2451,_0x5d0cbc=>{_0x58172b['model']['change'](_0x95ab75=>{_0x5d0cbc();const _0x430ab4='left'===_0x24d007['order'],_0x3605b1=_0x1af13f['getSelectionAffectedTableCells'](_0x234ab4),_0x367673=_0x1af13f['getColumnIndexes'](_0x3605b1),_0x9d9b76=_0x430ab4?_0x367673['first']-0x1:_0x367673['last']+0x1,_0x48ec23=_0x3605b1[0x0]['findAncestor']('table'),_0x29f9fc=_0x1af13f['createTableWalker'](_0x48ec23,{'startRow':0x0,'column':_0x9d9b76,'includeAllSlots':!0x1}),_0x5a6261=Array['from'](_0x29f9fc)['map'](_0x172118=>_0x95ab75['createRangeOn'](_0x172118['cell']));_0x3a9543['markMultiRangeInsertion'](_0x5a6261,'tableColumn');});});}for(const _0x4a0999 of['removeTableRow','removeTableColumn']){const _0x4821d3=_0x4a0999['substr'](0xb),_0x2c0d76=_0x4821d3['toLowerCase'](),_0x516ec1=_0x2c0d76['substr'](0x0,0x3)+'span',_0x26f08a='table'+_0x4821d3,_0x252035='min'+_0x4821d3,_0x1880f2='max'+_0x4821d3;_0x3a9543['enableCommand'](_0x4a0999,()=>{_0x58172b['model']['change'](_0x448c46=>{const _0x466310=_0x1af13f['getSelectionAffectedTableCells'](_0x234ab4),_0x274405=_0x466310[0x0]['findAncestor']('table');let _0x6ddc2;if('removeTableRow'==_0x4a0999){const _0x55ede9=_0x1af13f['getRowIndexes'](_0x466310);_0x6ddc2={'startRow':_0x55ede9['first'],'endRow':_0x55ede9['last'],'includeAllSlots':!0x0};}else{const _0x5b7982=_0x1af13f['getColumnIndexes'](_0x466310);_0x6ddc2={'startColumn':_0x5b7982['first'],'endColumn':_0x5b7982['last'],'includeAllSlots':!0x0};}const _0x157257=_0x1af13f['createTableWalker'](_0x274405,_0x6ddc2),_0x5b5e55=Array['from'](_0x157257)['map'](({cell:_0x32a0e5})=>_0x32a0e5),_0x23b56e=Ne(_0x5b5e55['filter'](_0x2ac5b3=>_0x2ac5b3['hasAttribute'](_0x516ec1))),_0xf3ef7d=Ne(_0x5b5e55['filter'](_0x2df9ed=>!_0x2df9ed['hasAttribute'](_0x516ec1)))['map'](_0x3a0c7c=>_0x448c46['createRangeOn'](_0x3a0c7c)),_0x2b197a=_0x3a9543['markMultiRangeDeletion'](_0xf3ef7d,_0x26f08a);if(_0x2b197a&&('tableRow'==_0x2b197a['subType']||'tableColumn'==_0x2b197a['subType'])){const _0x44d4dd=this['_getSuggestionCoords'](_0x2b197a);for(const _0x3a6ee4 of _0x23b56e){const _0x4d3cfc=_0x448c46['createRangeOn'](_0x3a6ee4),_0x4f49f0=_0x1af13f['getCellLocation'](_0x3a6ee4),_0x3d18f7=_0x3a6ee4['getAttribute'](_0x516ec1)-0x1,_0x3c49b0=_0x44d4dd[_0x252035],_0xfd0a55=_0x44d4dd[_0x1880f2];_0x3c49b0<=_0x4f49f0[_0x2c0d76]&&_0x4f49f0[_0x2c0d76]+_0x3d18f7<=_0xfd0a55&&_0x2b197a['addRange'](_0x4d3cfc);}}});});}function _0x21b564(_0x5e87a7){const _0x453c6d=Array['from'](_0x234ab4['getRanges']())['map'](_0x882006=>_0x147a51['fromRange'](_0x882006));_0x58172b['model']['change'](_0x2d763f=>{const _0x350dea=_0x2d763f['batch'];_0x5e87a7=_0x5e87a7['filter'](_0x478a0a=>'$graveyard'!=_0x478a0a['root']['rootName']),_0x2d763f['setSelection'](_0x5e87a7),_0x58172b['commands']['get']('removeTableRow')['refresh'](),_0x58172b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x58172b['model']['enqueueChange'](()=>{_0x58172b['model']['enqueueChange'](_0x350dea,_0xb81861=>{const _0x59bbfd=_0x453c6d['filter'](_0x2a9fdd=>'$graveyard'!=_0x2a9fdd['root']['rootName']);_0x59bbfd['length']>0x0&&_0xb81861['setSelection'](_0x59bbfd);for(const _0x13e008 of _0x453c6d)_0x13e008['detach']();});});});}function _0x25c305(_0x3ffc5a){_0x58172b['model']['change'](_0x5af854=>{const _0x1a5c54=Array['from'](_0x234ab4['getRanges']())['map'](_0x10b784=>_0x147a51['fromRange'](_0x10b784)),_0x3c2b9b=[];for(const _0x327a1f of _0x3ffc5a)for(const _0x2bbdfc of _0x327a1f['getItems']({'shallow':!0x0}))_0x3c2b9b['push'](_0x2bbdfc);for(const _0x4f00be of _0x3c2b9b)'$graveyard'!=_0x4f00be['root']['rootName']&&(_0x5af854['setSelection'](_0x5af854['createPositionAt'](_0x4f00be,0x0)),_0x58172b['commands']['get']('removeTableColumn')['refresh'](),_0x58172b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x37b541=_0x1a5c54['filter'](_0x5eb5fc=>'$graveyard'!=_0x5eb5fc['root']['rootName']);_0x37b541['length']>0x0&&_0x5af854['setSelection'](_0x37b541);for(const _0x3c0bb9 of _0x1a5c54)_0x3c0bb9['detach']();});}function _0x10d028(_0x475649,_0x1f13bb){return _0x1f13bb['every'](_0x2264a8=>_0x475649['some'](_0x46b23c=>_0x46b23c['end']['isEqual'](_0x2264a8['start'])||_0x2264a8['end']['isEqual'](_0x46b23c['start'])));}function _0x50e1b0(_0x53bdc1,_0x53e358){return!_0x53bdc1['some'](_0x3663fa=>_0x53e358['some'](_0x2ea5a7=>_0x3663fa['isIntersecting'](_0x2ea5a7)))&&_0x53bdc1['some'](_0x5c648c=>_0x53e358['some'](_0x366ef8=>_0x5c648c['end']['isTouching'](_0x366ef8['start'])));}_0x58172b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x585a8b,_0x446576,_0x5a3923)=>{if(!_0x5a3923['options']['showSuggestionHighlights'])return;const _0x389225=_0x446576['item'];if(!_0x389225)return;const _0x139fcb=_0x5a3923['mapper']['toViewElement'](_0x389225);function _0x1a5f56(_0x1e7b93){return Array['isArray'](_0x1e7b93)?_0x1e7b93:[_0x1e7b93];}_0x139fcb&&'tableCell'===_0x389225['name']&&_0x4a4f65(_0x139fcb,_0x5a3923['writer'],(_0x30a6e2,_0x2a99a1,_0x5be5a6)=>_0x5be5a6['addClass'](_0x1a5f56(_0x2a99a1['classes']),_0x30a6e2),(_0x396c05,_0x5c96f6,_0x5513e9)=>_0x5513e9['removeClass'](_0x1a5f56(_0x5c96f6['classes']),_0x396c05));},{'priority':'highest'}),_0x3a9543['descriptionFactory']['registerDescriptionCallback'](_0xfac4c=>{if('insertion'!=_0xfac4c['type']&&'deletion'!=_0xfac4c['type'])return;const _0x19c2da=_0xfac4c['getContainedElement']();if(null!=_0x19c2da&&_0x19c2da['is']('element','table')){if('insertion'==_0xfac4c['type']){const _0x3c8d60=_0xfac4c['getItems']()['filter'](_0x205cee=>_0x205cee['is']('$textProxy'))['map'](_0x8fa366=>_0x8fa366['data']);if(_0x3c8d60['length'])return{'type':'insertion','content':o(_0x9aacd8,'*Insert:*\x20%0',o(_0x9aacd8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3c8d60['join']('\x20')+'\x22'))};}if('deletion'==_0xfac4c['type']){const _0x3ef8b1=_0xfac4c['getItems']()['filter'](_0x472a13=>_0x472a13['is']('$textProxy'))['map'](_0x18d6ca=>_0x18d6ca['data']);if(_0x3ef8b1['length'])return{'type':'deletion','content':o(_0x9aacd8,'*Remove:*\x20%0',o(_0x9aacd8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3ef8b1['join']('\x20')+'\x22'))};}}}),_0x3a9543['descriptionFactory']['registerDescriptionCallback'](_0x49b0ec=>{if('tableRow'==_0x49b0ec['subType']){const _0x89aba8=_0x49b0ec['getItems']()['filter'](_0x2aec05=>_0x2aec05['is']('$textProxy'))['map'](_0x804ec2=>_0x804ec2['data']),_0x29b6fc=this['_getSuggestionCoords'](_0x49b0ec),_0x52e0be=_0x29b6fc['maxRow']-_0x29b6fc['minRow']+0x1;if('insertion'==_0x49b0ec['type'])return _0x89aba8['length']?{'type':'insertion','content':o(_0x9aacd8,'*Insert:*\x20%0',o(_0x9aacd8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x52e0be,'\x22'+_0x89aba8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x9aacd8,'*Insert:*\x20%0',o(_0x9aacd8,'ELEMENT_TABLE_ROW',_0x52e0be))};if('deletion'==_0x49b0ec['type'])return _0x89aba8['length']?{'type':'deletion','content':o(_0x9aacd8,'*Remove:*\x20%0',o(_0x9aacd8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x52e0be,'\x22'+_0x89aba8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x9aacd8,'*Remove:*\x20%0',o(_0x9aacd8,'ELEMENT_TABLE_ROW',_0x52e0be))};}if('tableColumn'==_0x49b0ec['subType']){const _0x439563=_0x49b0ec['getItems']()['filter'](_0x4399c1=>_0x4399c1['is']('$textProxy'))['map'](_0x1fc697=>_0x1fc697['data']),_0x4024ad=this['_getSuggestionCoords'](_0x49b0ec),_0x4fe285=_0x4024ad['maxColumn']-_0x4024ad['minColumn']+0x1;if('insertion'==_0x49b0ec['type'])return _0x439563['length']?{'type':'insertion','content':o(_0x9aacd8,'*Insert:*\x20%0',o(_0x9aacd8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4fe285,'\x22'+_0x439563['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x9aacd8,'*Insert:*\x20%0',o(_0x9aacd8,'ELEMENT_TABLE_COLUMN',_0x4fe285))};if('deletion'==_0x49b0ec['type'])return _0x439563['length']?{'type':'deletion','content':o(_0x9aacd8,'*Remove:*\x20%0',o(_0x9aacd8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4fe285,'\x22'+_0x439563['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x9aacd8,'*Remove:*\x20%0',o(_0x9aacd8,'ELEMENT_TABLE_COLUMN',_0x4fe285))};}}),_0x3a9543['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x21b564),_0x3a9543['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x21b564),_0x3a9543['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x25c305),_0x3a9543['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x25c305),_0x3a9543['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x10d028),_0x3a9543['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x10d028),_0x3a9543['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x50e1b0),_0x3a9543['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x50e1b0);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3fc673=this['editor'],_0x5d1bed=_0x3fc673['model']['document']['selection'];return(_0x5b47ba,_0x5bd378)=>{_0x3fc673['model']['change'](_0x5830ba=>{const {commandName:_0xa74cd8,commandParams:_0x2ce77c}=_0x5bd378;let _0x2704e1=_0x5b47ba[0x0]['end']['nodeBefore'];_0x2ce77c&&_0x2ce77c[0x0]&&!0x1===_0x2ce77c[0x0]['forceValue']&&(_0x2704e1=_0x5b47ba[0x0]['start']['nodeAfter']);const _0x42e250=_0x5830ba['createRangeIn'](_0x2704e1);if('$graveyard'==_0x42e250['root']['rootName'])return;const _0x19cdcb=Array['from'](_0x5d1bed['getRanges']())['map'](_0x74bdf5=>_0x147a51['fromRange'](_0x74bdf5));_0x5830ba['setSelection'](_0x42e250),_0x3fc673['commands']['get'](_0xa74cd8)['refresh'](),_0x2ce77c['push']({'forceDefaultExecution':!0x0}),_0x3fc673['execute'](_0xa74cd8,..._0x2ce77c);const _0x19adeb=_0x19cdcb['filter'](_0x12d4e4=>'$graveyard'!=_0x12d4e4['root']['rootName']);_0x19adeb['length']>0x0&&_0x5830ba['setSelection'](_0x19adeb);for(const _0x53dc0c of _0x19cdcb)_0x53dc0c['detach']();});};}['_getCoordsForCells'](_0x49c7eb){const _0x1f7b9e=this['editor']['plugins']['get']('TableUtils');let _0x217032=Number['MAX_SAFE_INTEGER'],_0x2e67da=Number['MIN_SAFE_INTEGER'],_0x564841=Number['MAX_SAFE_INTEGER'],_0x2ec845=Number['MIN_SAFE_INTEGER'];for(const _0x5a486d of _0x49c7eb){if('$graveyard'==_0x5a486d['root']['rootName'])continue;const {row:_0x5e3e63,column:_0x902f5b}=_0x1f7b9e['getCellLocation'](_0x5a486d),_0x166d92=_0x5a486d['hasAttribute']('rowspan')?_0x5a486d['getAttribute']('rowspan')-0x1:0x0,_0xd21b1d=_0x5a486d['hasAttribute']('colspan')?_0x5a486d['getAttribute']('colspan')-0x1:0x0;_0x217032=_0x5e3e63<_0x217032?_0x5e3e63:_0x217032,_0x2e67da=_0x5e3e63+_0x166d92>_0x2e67da?_0x5e3e63+_0x166d92:_0x2e67da,_0x564841=_0x902f5b<_0x564841?_0x902f5b:_0x564841,_0x2ec845=_0x902f5b+_0xd21b1d>_0x2ec845?_0x902f5b+_0xd21b1d:_0x2ec845;}return{'minRow':_0x217032,'maxRow':_0x2e67da,'minColumn':_0x564841,'maxColumn':_0x2ec845};}['_setupColumnsRowsFixing'](){const _0x2a7e5a=this['editor'],_0x4ed7ff=_0x2a7e5a['plugins']['get']('TrackChangesEditing'),_0x217689=_0x2a7e5a['plugins']['get']('TableUtils');_0x2a7e5a['model']['document']['on']('change:data',()=>{const _0x2c45e8=Array['from'](_0x2a7e5a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e998c,data:_0x1d1f94}of _0x2c45e8){const {group:_0x46e28a,id:_0x44869a,subType:_0x55d347}=_0x4ed7ff['_splitMarkerName'](_0x4e998c);if('suggestion'!=_0x46e28a)continue;if(null!=_0x1d1f94['oldRange'])continue;const _0x24ff8f=_0x4ed7ff['getSuggestion'](_0x44869a);this['_tablePostFixingSubtypes']['includes'](_0x55d347)&&this['_tableSuggestions']['add'](_0x24ff8f);}},{'priority':'low'});const _0x5d325a=(_0x42a62e,_0x4b3a55)=>{let _0x5833e6=!0x1;const _0x6f3256=_0x4b3a55['createRangeOn'](_0x42a62e),_0x3838be=_0x42a62e['findAncestor']('table'),_0x1a6bdc=_0x217689['getCellLocation'](_0x42a62e);for(const _0x34f8fb of this['_tableSuggestions']){const _0x3e708a=_0x34f8fb['subType'],_0x232766=_0x3e708a['startsWith']('tablePaste'),_0x2a9dba=_0x3e708a['substr'](_0x232766?0xa:0x5),_0x19b7d5=_0x2a9dba['toLowerCase'](),_0x543a8=_0x19b7d5['substr'](0x0,0x3)+'span',_0x46fbc4='min'+_0x2a9dba,_0x258157='max'+_0x2a9dba;if(!_0x34f8fb['isInContent'])continue;if(_0x3838be!=_0x34f8fb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x34f8fb['isIntersectingWithRange'](_0x6f3256))continue;const _0x48440f=_0x42a62e['hasAttribute'](_0x543a8)?_0x42a62e['getAttribute'](_0x543a8)-0x1:0x0,_0x43c411=this['_getSuggestionCoords'](_0x34f8fb),_0x1a9015=_0x43c411[_0x46fbc4],_0x3e6a4b=_0x43c411[_0x258157];_0x1a9015<=_0x1a6bdc[_0x19b7d5]&&_0x1a6bdc[_0x19b7d5]+_0x48440f<=_0x3e6a4b&&(_0x34f8fb['addRange'](_0x6f3256),_0x5833e6=!0x0);}return _0x5833e6;};_0x2a7e5a['model']['document']['registerPostFixer'](_0x4d06b6=>{let _0x435a4a=!0x1;for(const _0x1b27aa of _0x2a7e5a['model']['document']['differ']['getChanges']())if('insert'==_0x1b27aa['type']){if('tableRow'==_0x1b27aa['name']){for(const _0x1760bf of _0x1b27aa['position']['nodeAfter']['getChildren']())_0x435a4a=_0x435a4a||_0x5d325a(_0x1760bf,_0x4d06b6);}else'tableCell'==_0x1b27aa['name']&&(_0x435a4a=_0x435a4a||_0x5d325a(_0x1b27aa['position']['nodeAfter'],_0x4d06b6));}return _0x435a4a;});}['_getSuggestionCoords'](_0x478680){return this['_getCoordsForCells'](_0x478680['getRanges']()['map'](_0x4b023a=>_0x4b023a['start']['nodeAfter']));}}function Ne(_0x2753f6){return Array['from'](new Set(_0x2753f6)['values']());}class _t extends _0x47ce4c{static get['requires'](){return[vt];}['afterInit'](){const _0x4c0dec=this['editor'],_0x5f2853=_0x4c0dec['model']['document']['selection'],_0x439de8=_0x4c0dec['locale'];if(!_0x4c0dec['plugins']['has']('TableEditing'))return;const _0x41b38e=_0x4c0dec['plugins']['get']('TrackChangesEditing'),_0x133f31=_0x4c0dec['plugins']['get']('TableUtils'),_0x22b5ad=_0x4c0dec['plugins']['get'](vt);_0x22b5ad['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x41b38e['enableCommand']('mergeTableCells',()=>{const _0x9a7fa4=_0x133f31['getSelectionAffectedTableCells'](_0x4c0dec['model']['document']['selection']);_0x4c0dec['model']['change'](()=>{_0x41b38e['markMultiRangeBlockFormat'](_0x9a7fa4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4c0dec['commands']['get']('mergeTableCells')['on']('execute',(_0x374278,_0x54ac98)=>{_0x4c0dec['commands']['get']('trackChanges')['value']&&(_0x54ac98['length']>0x0&&_0x54ac98[_0x54ac98['length']-0x1]&&_0x54ac98[_0x54ac98['length']-0x1]['forceDefaultExecution']||_0x41b38e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x374278['stop']());},{'priority':'highest'});for(const _0x3e440a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1d6df5=_0x4c0dec['commands']['get'](_0x3e440a);_0x41b38e['enableCommand'](_0x3e440a,()=>{const _0x4c125b=_0x4c0dec['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x392b12=>_0x392b12['is']('element','tableCell')),_0x156d3e=_0x1d6df5['value'];_0x4c0dec['model']['change'](()=>{_0x41b38e['markMultiRangeBlockFormat']([_0x4c125b,_0x156d3e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x107881 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x43ff78=_0x4c0dec['commands']['get'](_0x107881);_0x41b38e['enableCommand'](_0x107881,()=>{const _0x10a689=_0x133f31['getSelectionAffectedTableCells'](_0x4c0dec['model']['document']['selection'])[0x0],_0x444fb5=_0x10a689['findAncestor']('table'),{column:_0x257f32,row:_0x323f50}=_0x133f31['getCellLocation'](_0x10a689);let _0x36c9c8=[];if('horizontally'==_0x43ff78['direction']){const _0x5655fb=_0x133f31['createTableWalker'](_0x444fb5,{'startRow':_0x323f50,'endRow':_0x323f50,'includeAllSlots':!0x0});_0x36c9c8=Array['from'](_0x5655fb)['map'](_0x6f63a=>_0x6f63a['cell']);}else{const _0x1279b2=_0x133f31['createTableWalker'](_0x444fb5,{'column':_0x257f32,'includeAllSlots':!0x0});_0x36c9c8=Array['from'](_0x1279b2)['map'](_0x5f2fde=>_0x5f2fde['cell']);}_0x4c0dec['model']['change'](_0x75261a=>{_0x41b38e['markBlockFormat'](_0x75261a['createRangeOn'](_0x10a689),{'commandName':_0x107881,'commandParams':[]},_0x36c9c8,_0x107881);});});}_0x41b38e['descriptionFactory']['registerDescriptionCallback'](_0x44d535=>{if('formatBlock'!=_0x44d535['type']&&'formatInline'!=_0x44d535['type'])return;const {data:_0x3138bd}=_0x44d535;return _0x3138bd&&'mergeTableCells'==_0x3138bd['commandName']?{'type':'format','content':o(_0x439de8,'*Merge\x20cells*')}:void 0x0;}),_0x41b38e['descriptionFactory']['registerDescriptionCallback'](_0x569f2e=>{if('formatBlock'!=_0x569f2e['type']&&'formatInline'!=_0x569f2e['type'])return;const {data:_0x397c6c}=_0x569f2e;return _0x397c6c?'splitTableCellVertically'==_0x397c6c['commandName']?{'type':'format','content':o(_0x439de8,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x397c6c['commandName']?{'type':'format','content':o(_0x439de8,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x148e83=_0x22b5ad['_acceptFormatSuggestionCallbackFactory']();for(const _0x5ef1b2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x41b38e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ef1b2,'accept',_0x148e83);for(const _0x164b42 of['splitTableCellVertically','splitTableCellHorizontally'])_0x41b38e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x164b42,'accept',_0x148e83);_0x41b38e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x439bb1=>{_0x4c0dec['model']['change'](_0x30ddf3=>{const _0x395bf8=Array['from'](_0x5f2853['getRanges']())['map'](_0x34002a=>_0x147a51['fromRange'](_0x34002a));_0x30ddf3['setSelection'](_0x439bb1),_0x4c0dec['commands']['get']('mergeTableCells')['refresh'](),_0x4c0dec['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4cb969=_0x395bf8['filter'](_0x5ad538=>'$graveyard'!=_0x5ad538['root']['rootName']);_0x4cb969['length']>0x0&&_0x30ddf3['setSelection'](_0x4cb969);for(const _0x14785b of _0x395bf8)_0x14785b['detach']();});});for(const _0x1a9b01 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x20015b=_0x4c0dec['commands']['get'](_0x1a9b01);_0x20015b['on']('set:isEnabled',(_0x6dcf30,_0xd3a646,_0x4fd529)=>{if(_0x4fd529){const _0x388e24=_0x4c0dec['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1514e9=>_0x1514e9['is']('element','tableCell'));this['_areMergableCells'](_0x20015b['value'],_0x388e24)||(_0x6dcf30['return']=!0x1,_0x6dcf30['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x58bac9=this['editor']['commands']['get']('mergeTableCells'),_0x4e9c57=this['editor']['plugins']['get']('TableUtils');if(!_0x58bac9['isEnabled'])return!0x1;const _0x50f094=_0x4e9c57['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1780d0 of _0x50f094)for(const _0x3f8893 of _0x50f094)if(_0x1780d0!=_0x3f8893&&!this['_areMergableCells'](_0x1780d0,_0x3f8893))return!0x1;return!0x0;}['_areMergableCells'](_0x1723eb,_0x3c89a3){const _0x13636b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b3b8b=this['editor']['model']['createRangeOn'](_0x1723eb),_0x4ae4c6=this['editor']['model']['createRangeOn'](_0x3c89a3),_0x29438d=new Set(),_0x41e155=new Set();for(const _0x3a4355 of _0x13636b['getSuggestions']())if(('insertion'==_0x3a4355['type']||'deletion'==_0x3a4355['type']||'mergeTableCells'==_0x3a4355['subType'])&&_0x3a4355['isInContent']){for(const _0xeb36cf of _0x3a4355['getRanges']())_0xeb36cf['containsRange'](_0x1b3b8b,!0x0)&&_0x29438d['add'](_0x3a4355['type']+':'+_0x3a4355['author']['id']),_0xeb36cf['containsRange'](_0x4ae4c6,!0x0)&&_0x41e155['add'](_0x3a4355['type']+':'+_0x3a4355['author']['id']);}if(_0x29438d['size']!=_0x41e155['size'])return!0x1;for(const _0x39485b of _0x29438d)if(!_0x41e155['has'](_0x39485b))return!0x1;return!0x0;}}class Ct extends _0x47ce4c{static get['requires'](){return[vt];}['afterInit'](){const _0x2a337a=this['editor'];if(!_0x2a337a['plugins']['has']('TableEditing'))return;const _0x5d4ab7=_0x2a337a['locale'],_0x38f4ad=_0x2a337a['plugins']['get']('TrackChangesEditing');_0x38f4ad['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x38f4ad['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x38f4ad['registerBlockAttribute']('headingRows'),_0x38f4ad['registerBlockAttribute']('headingColumns'),_0x38f4ad['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5d4ab7,'FORMAT_HEADER_ROW')),_0x38f4ad['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5d4ab7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xbf9b0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19d7bb=this['editor']['plugins']['get']('TableUtils'),_0x3f8eed=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x2e34f1({showActiveMarker:_0x3aa003=!0x0,setDataAttribute:_0x13f87e=!0x0}={}){return(_0x51e4fc,_0x588a69,_0xcda62b)=>{const {type:_0x4749ee,id:_0x5bf9ae}=_0xbf9b0b['_splitMarkerName'](_0x588a69['markerName']),_0x254928=_0xbf9b0b['getSuggestion'](_0x5bf9ae),_0x2e7bc0=_0x254928['data'];if('formatBlock'!=_0x254928['type']||!_0x2e7bc0||'setTableColumnHeader'!=_0x2e7bc0['commandName'])return;if(_0x588a69['item'])return void _0x51e4fc['stop']();if(!_0xcda62b['consumable']['consume'](_0x588a69['markerRange'],_0x51e4fc['name']))return;const _0x3396d4=_0x588a69['markerRange']['start']['nodeAfter'],_0x1feb1c=_0x588a69['markerRange']['end']['nodeBefore'],_0x45c8ed=_0x3396d4['parent']['parent'],{column:_0x4589c4}=_0x19d7bb['getCellLocation'](_0x3396d4),{column:_0xd32a2e}=_0x19d7bb['getCellLocation'](_0x1feb1c);for(let _0x4de3e4=_0x4589c4;_0x4de3e4<=_0xd32a2e;_0x4de3e4++){const _0x4321f4=_0x19d7bb['createTableWalker'](_0x45c8ed,{'column':_0x4de3e4,'includeAllSlots':!0x1});for(const _0x3db592 of _0x4321f4){const _0x3ca84e=_0x3db592['cell'],_0x2446a1=_0xcda62b['mapper']['toViewElement'](_0x3ca84e);_0xcda62b['writer']['addClass']('ck-suggestion-marker-'+_0x4749ee,_0x2446a1),_0x13f87e&&_0xcda62b['writer']['setAttribute']('data-suggestion',_0x5bf9ae,_0x2446a1),_0xcda62b['mapper']['bindElementToMarker'](_0x2446a1,_0x588a69['markerName']),_0x3aa003&&(_0xbf9b0b['activeMarkers']['includes'](_0x588a69['markerName'])?_0xcda62b['writer']['addClass']('ck-suggestion-marker--active',_0x2446a1):_0xcda62b['writer']['removeClass']('ck-suggestion-marker--active',_0x2446a1));}}};}_0xbf9b0b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3f8eed),_0xbf9b0b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3f8eed),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2e34f1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1b377a,_0x403bb0,_0x163dc6)=>{_0x163dc6['options']['showSuggestionHighlights']&&_0x2e34f1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1b377a,_0x403bb0,_0x163dc6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x37a42b,_0x3c33a6,_0x1b2c77)=>{const {type:_0x120a3b,id:_0x105e12}=_0xbf9b0b['_splitMarkerName'](_0x3c33a6['markerName']),_0x1b166b=_0xbf9b0b['getSuggestion'](_0x105e12),_0x367d61=_0x1b166b['data'];if('formatBlock'!=_0x1b166b['type']||!_0x367d61||'setTableColumnHeader'!=_0x367d61['commandName'])return;const _0xd5f43d=_0x1b2c77['mapper']['markerNameToElements'](_0x3c33a6['markerName']);if(_0xd5f43d){for(const _0x417292 of _0xd5f43d)_0x1b2c77['writer']['removeClass']('ck-suggestion-marker-'+_0x120a3b,_0x417292),_0x1b2c77['writer']['removeClass']('ck-suggestion-marker--active',_0x417292),_0x1b2c77['writer']['removeAttribute']('data-suggestion',_0x417292),_0x1b2c77['mapper']['unbindElementFromMarkerName'](_0x417292,_0x3c33a6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59060f=this['editor'],_0x2ad642=_0x59060f['locale'];function _0x293809(_0x166a31){return{'type':'format','content':o(_0x2ad642,'*Format:*\x20%0',_0x166a31)};}_0x59060f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44e9e0=>{if('formatBlock'!=_0x44e9e0['type'])return;const {data:_0x122c9f}=_0x44e9e0;if(_0x122c9f){if('setTableRowHeader'==_0x122c9f['commandName']){const _0x2c8945=_0x122c9f['commandParams'][0x0]['forceValue'];return _0x293809(o(_0x2ad642,_0x2c8945?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x122c9f['commandName']){const _0x14edff=_0x122c9f['commandParams'][0x0]['forceValue'];return _0x293809(o(_0x2ad642,_0x14edff?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x5dfdfa=>[_0x5dfdfa,null]));class Nt extends _0x47ce4c{static get['requires'](){return[vt];}['afterInit'](){const _0x477c4f=this['editor'];if(!_0x477c4f['plugins']['has']('TableClipboard'))return;const _0x1fc412=_0x477c4f['plugins']['get']('TrackChangesEditing'),_0x3361d5=_0x477c4f['plugins']['get']('TableUtils'),_0x12f79f=_0x477c4f['plugins']['get'](vt),_0x21ad62=_0x477c4f['plugins']['get']('TableClipboard');_0x12f79f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x477c4f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x477c4f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x46142c=null;_0x477c4f['model']['on']('insertContent',(_0x2a6212,_0x4642a7)=>{const [_0x52c169,_0x7afa86]=_0x4642a7,_0x48afd1=_0x4642a7[_0x4642a7['length']-0x1];_0x48afd1&&_0x48afd1['forceDefaultExecution']||_0x1fc412['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5d757f,_0x35b13c,_0x126df3,_0xdebbf0,_0x2622c1){if(_0x35b13c&&!_0x35b13c['is']('documentSelection'))return!0x1;const _0xe13223=_0x2622c1['getTableIfOnlyTableInContent'](_0x5d757f,_0x126df3);if(!_0xe13223||!Ue(_0xe13223,void 0x0,_0xdebbf0))return!0x1;const _0xa62f9d=_0xdebbf0['getSelectionAffectedTableCells'](_0x126df3['document']['selection']);if(!_0xa62f9d['length'])return!0x1;const _0x53b4b6=_0xa62f9d[0x0]['findAncestor']('table'),_0x10e3d2=_0xdebbf0['getRowIndexes'](_0xa62f9d),_0xfac5d3=_0xdebbf0['getColumnIndexes'](_0xa62f9d),_0x2145b2={'startRow':_0x10e3d2['first'],'endRow':_0x10e3d2['last'],'startColumn':_0xfac5d3['first'],'endColumn':_0xfac5d3['last']};return 0x1==_0xa62f9d['length']&&(_0x2145b2['endRow']+=_0xdebbf0['getRows'](_0xe13223)-0x1,_0x2145b2['endColumn']+=_0xdebbf0['getColumns'](_0xe13223)-0x1),Ue(_0x53b4b6,_0x2145b2,_0xdebbf0);}(_0x52c169,_0x7afa86,_0x477c4f['model'],_0x3361d5,_0x21ad62)&&(_0x2a6212['stop'](),_0x46142c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x477c4f['model']['change'](()=>{_0x477c4f['model']['insertContent'](_0x4642a7[0x0],_0x4642a7[0x1],_0x4642a7[0x2],{'forceDefaultExecution':!0x0});const _0x249507=_0x2ace31(),{rowInsertionRanges:_0x4e4dc1,columnInsertionRanges:_0x1f7561,insertionRanges:_0x2590f8,deletionRanges:_0x398d55,cells:_0x126a20}=_0x46142c;_0x4e4dc1['length']&&_0x1fc412['markMultiRangeInsertion'](_0x4e4dc1,'tablePasteRow',{'tablePasteChainId':_0x249507}),_0x1f7561['length']&&_0x1fc412['markMultiRangeInsertion'](_0x1f7561,'tablePasteColumn',{'tablePasteChainId':_0x249507}),_0x2590f8['length']&&(_0x1fc412['markMultiRangeInsertion'](_0x2590f8,'tablePaste',{'tablePasteChainId':_0x249507,'skipNestingCheck':!0x0}),_0x2590f8['forEach'](_0x2c823c=>_0x2c823c['detach']?.())),_0x398d55['length']&&(_0x1fc412['markMultiRangeDeletion'](_0x398d55,'tablePaste',{'tablePasteChainId':_0x249507,'skipNestingCheck':!0x0}),_0x398d55['forEach'](_0x13be1e=>_0x13be1e['detach']?.()));const _0x53de06=_0x1fc412['markMultiRangeBlockFormat'](_0x126a20['map'](({element:_0x3ddb63})=>_0x3ddb63),{'formatGroupId':_0x2ace31()},[],'tablePasteCell',{'tablePasteChainId':_0x249507});if(_0x53de06){const _0x22d436=_0x53de06['getMarkers'](),_0x433c8b=[];for(const {element:_0x338863,attributes:_0x596a45}of _0x126a20){if(!_0x596a45)continue;const _0x521cdf=_0x477c4f['model']['createRangeOn'](_0x338863),_0x3e4522=_0x22d436['find'](_0x2f824a=>_0x2f824a['getRange']()['isEqual'](_0x521cdf));_0x3e4522&&_0x433c8b['push']([_0x3e4522['name'],_0x596a45]);}_0x433c8b['length']&&_0x53de06['setAttribute']('markerAttributes',Object['fromEntries'](_0x433c8b));}_0x46142c=null;}));},{'priority':_0x259708['high']+0xa}),_0x477c4f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2231e6,_0x2b7ab9)=>{const [_0x126af5,_0x47459f,,_0x5507ac]=_0x2b7ab9;if(!_0x46142c)return;_0x2231e6['stop']();const _0x4643fa=_0x126af5['cell'],_0x13edc7=_0x47459f,_0x7aaf45=Oe(_0x4643fa),_0xb5f54=Oe(_0x13edc7);_0x2231e6['return']=_0x4643fa;let _0x1f9134=null,_0x191a31=null;if(_0xb5f54||_0x7aaf45){if(_0x7aaf45&&!_0xb5f54){_0x5507ac['remove'](_0x4643fa['getChild'](0x0));for(const _0x3d24fc of Array['from'](_0x13edc7['getChildren']()))_0x5507ac['insert'](_0x3d24fc,_0x4643fa,'end');const _0x53f9cd=_0x46142c['rowInsertionIndexes']['includes'](_0x126af5['row']),_0x53314a=_0x46142c['columnInsertionIndexes']['includes'](_0x126af5['column']);_0x53f9cd||_0x53314a||(_0x1f9134=_0x147a51['fromRange'](_0x5507ac['createRangeIn'](_0x4643fa)));}else _0xb5f54&&!_0x7aaf45&&(_0x191a31=_0x5507ac['createRangeIn'](_0x4643fa));}else{const _0x2ced0a=_0x5507ac['createElement']('tableCellSuggestion'),_0x297c1d=_0x5507ac['createElement']('tableCellSuggestion');_0x5507ac['wrap'](_0x5507ac['createRangeIn'](_0x4643fa),_0x297c1d),_0x5507ac['insert'](_0x2ced0a,_0x4643fa,0x0);for(const _0x560df6 of Array['from'](_0x13edc7['getChildren']()))_0x5507ac['insert'](_0x560df6,_0x2ced0a,'end');_0x1f9134=_0x147a51['fromRange'](_0x5507ac['createRangeOn'](_0x2ced0a)),_0x191a31=_0x147a51['fromRange'](_0x5507ac['createRangeOn'](_0x297c1d));}const _0x5ee336=Array['from'](_0x13edc7['getAttributes']())['filter'](([_0x55720a])=>Be['includes'](_0x55720a));_0x46142c['cells']['push']({'element':_0x4643fa,'attributes':_0x5ee336['length']?Object['fromEntries'](_0x5ee336):null}),_0x1f9134&&_0x46142c['insertionRanges']['push'](_0x1f9134),_0x191a31&&_0x46142c['deletionRanges']['push'](_0x191a31);},{'priority':'high'}),_0x3361d5['on']('insertColumns',(_0x2d03bd,_0xa78432)=>{const [_0x42f761,_0x15c41c={}]=_0xa78432;if(!_0x46142c)return;const _0x5d2ebc=_0x15c41c['at']||0x0,_0x39f065=_0x15c41c['columns']||0x1;_0x46142c['columnInsertionIndexes']=new Array(_0x39f065)['fill'](_0x5d2ebc)['map']((_0x507517,_0x58a2e6)=>_0x507517+_0x58a2e6);for(const {cell:_0x5c57ca}of _0x3361d5['createTableWalker'](_0x42f761,{'startColumn':_0x5d2ebc,'endColumn':_0x5d2ebc+_0x39f065-0x1}))_0x46142c['columnInsertionRanges']['push'](_0x477c4f['model']['createRangeOn'](_0x5c57ca));},{'priority':'low'}),_0x3361d5['on']('insertRows',(_0x7ec1e2,_0x41dca8)=>{const [_0x39903d,_0x34fbec={}]=_0x41dca8;if(!_0x46142c)return;const _0x1d5c5f=_0x34fbec['at']||0x0,_0x558a47=_0x34fbec['rows']||0x1;_0x46142c['rowInsertionIndexes']=new Array(_0x558a47)['fill'](_0x1d5c5f)['map']((_0x1ae000,_0xff4b48)=>_0x1ae000+_0xff4b48);for(const {cell:_0x2a3bbf}of _0x3361d5['createTableWalker'](_0x39903d,{'startRow':_0x1d5c5f,'endRow':_0x1d5c5f+_0x558a47-0x1}))_0x46142c['rowInsertionRanges']['push'](_0x477c4f['model']['createRangeOn'](_0x2a3bbf));},{'priority':'low'}),_0x1fc412['descriptionFactory']['registerDescriptionCallback'](_0x5a8636=>{if(_0x5a8636['subType']&&_0x5a8636['subType']['startsWith']('tablePaste'))return _0x5a8636['previous']?{}:{'type':'insertion','content':o(_0x477c4f['locale'],'*Replace\x20table\x20cells*')};});const _0x14c994=()=>!0x1;for(const _0x36b246 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1fc412['_suggestionFactory']['registerCustomCallback']('insertion',_0x36b246,'join',_0x14c994),_0x1fc412['_suggestionFactory']['registerCustomCallback']('deletion',_0x36b246,'join',_0x14c994),_0x1fc412['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x36b246,'join',_0x14c994);_0x1fc412['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x14c994),_0x1fc412['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x53f578,_0x41aa08,_0xad3473)=>{const _0x8591e7=_0x53f578['map'](_0x515580=>_0x515580['getContainedElement']())['filter'](_0x27a90d=>_0x27a90d),_0x32ecfe=new Map(_0x8591e7['map'](_0x11841d=>[_0x11841d,null]));if(_0x46142c){for(const {element:_0x28c749,attributes:_0x573ac0}of _0x46142c['cells'])_0x573ac0&&_0x32ecfe['set'](_0x28c749,_0x573ac0);}else{if(_0xad3473&&_0xad3473['markerAttributes'])for(const [_0x1dea4c,_0x36cb68]of Object['entries'](_0xad3473['markerAttributes'])){const _0x1df018=_0x477c4f['model']['markers']['get'](_0x1dea4c),_0x594a36=_0x1df018?_0x1df018['getRange']()['getContainedElement']():null;_0x594a36&&_0x32ecfe['set'](_0x594a36,_0x36cb68);}}_0x477c4f['model']['change'](_0x164a96=>{for(const [_0x98da86,_0x39953b]of _0x32ecfe)_0x164a96['setAttributes']({...xe,..._0x39953b},_0x98da86);});});const _0x12b9cf=(_0x42b4d1,_0x1d47fc)=>{_0x1fc412['_suggestionFactory']['registerCustomCallback'](_0x42b4d1,'tablePaste',_0x1d47fc,(_0x56d8f3,_0x17118b,_0x2fefd8)=>{_0x477c4f['model']['change'](_0x269ed8=>{const _0x366349=[];for(const _0x484f29 of _0x56d8f3){const _0x2437d5=_0x484f29['start']['nodeAfter'];_0x2437d5['is']('element','tableCellSuggestion')&&_0x366349['push'](_0x2437d5);}_0x1fc412['_suggestionFactory']['getSuggestionCallback'](_0x42b4d1,null,_0x1d47fc)(_0x56d8f3,_0x17118b,_0x2fefd8);for(const _0x19e7f5 of _0x366349)'$graveyard'!=_0x19e7f5['root']['rootName']&&_0x269ed8['unwrap'](_0x19e7f5);});});};_0x12b9cf('insertion','accept'),_0x12b9cf('insertion','discard'),_0x12b9cf('deletion','accept'),_0x12b9cf('deletion','discard'),_0x1fc412['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2081e8=>{const _0x3a6ee5=_0x2081e8['map'](_0x5088a2=>_0x5088a2['getContainedElement']()),_0x24a965=_0x3a6ee5[0x0]['findAncestor']('table'),{minRow:_0x1deb28,maxRow:_0x521681}=_0x12f79f['_getCoordsForCells'](_0x3a6ee5);_0x3361d5['removeRows'](_0x24a965,{'at':_0x1deb28,'rows':_0x521681-_0x1deb28+0x1});}),_0x1fc412['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5b76f9=>{const _0x39080f=_0x5b76f9['map'](_0xf99993=>_0xf99993['getContainedElement']()),_0x32b0c7=_0x39080f[0x0]['findAncestor']('table'),{minColumn:_0x23465a,maxColumn:_0x382a90}=_0x12f79f['_getCoordsForCells'](_0x39080f);_0x3361d5['removeColumns'](_0x32b0c7,{'at':_0x23465a,'columns':_0x382a90-_0x23465a+0x1});});const _0xf544c2=(_0x24a07d,_0x18ec59)=>{if(!_0x18ec59['subType']||!_0x18ec59['subType']['startsWith']('tablePaste'))return;const _0x38e2db=_0x18ec59['attributes']['tablePasteChainId'],_0x26f04d=_0x1fc412['getSuggestions']()['filter'](_0x4ab1bb=>_0x4ab1bb['isInContent']&&_0x4ab1bb['attributes']&&_0x4ab1bb['attributes']['tablePasteChainId']==_0x38e2db);_0x26f04d['length']&&_0x18ec59['getAllAdjacentSuggestions']()['length']!=_0x26f04d['length']&&_0x26f04d['reduce']((_0x315e22,_0x13184a)=>(_0x315e22['next']=_0x13184a,_0x13184a['previous']=_0x315e22,_0x13184a));};function _0x478bc3(_0x346714,_0x2bc553=!0x0){const {id:_0x1eb7ab,authorId:_0x5e1c04}=_0x1fc412['_splitMarkerName'](_0x346714['markerName']),_0xb4991a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x386e0a=_0x1fc412['activeMarkers']['includes'](_0x346714['markerName']);return _0x386e0a&&_0xb4991a['push']('ck-suggestion-marker--active'),{'classes':_0xb4991a,'attributes':{'data-suggestion':_0x1eb7ab,'data-author-id':_0x5e1c04},'priority':_0x386e0a&&_0x2bc553?0xbc2:0xbb8};}_0x1fc412['on']('suggestionLoaded',_0xf544c2,{'priority':'high'}),_0x1fc412['on']('suggestionUnloaded',_0xf544c2,{'priority':'high'}),_0x477c4f['model']['document']['registerPostFixer'](()=>{let _0x47746e=!0x1;const _0xfb9d44=Array['from'](_0x477c4f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22d829,data:_0x1a523c}of _0xfb9d44){const {group:_0x38f98c,type:_0xdd17be,id:_0x44ed52}=_0x1fc412['_splitMarkerName'](_0x22d829);if('suggestion'!=_0x38f98c||'deletion'!=_0xdd17be||_0x1a523c['oldRange'])continue;if(!_0x1fc412['hasSuggestion'](_0x44ed52))continue;const _0x28dd5f=_0x1fc412['getSuggestion'](_0x44ed52)['getRanges'](),_0x93de6d=_0x477c4f['plugins']['get']('Users')['me'];for(const _0x211770 of _0x1fc412['getSuggestions']()){if(!_0x211770['isInContent']||_0x211770['author']!=_0x93de6d)continue;if('formatBlock'!=_0x211770['type']||'tablePasteCell'!=_0x211770['subType'])continue;if(_0x211770['getRanges']()['every'](_0x35f0e4=>_0x28dd5f['some'](_0x122526=>_0x122526['containsRange'](_0x35f0e4,!0x0)))){for(const _0x1740e5 of _0x211770['getAllAdjacentSuggestions']())_0x1740e5['isInContent']&&(_0x1740e5['discard'](),_0x47746e=!0x0);}}}return _0x47746e;}),_0x477c4f['model']['document']['registerPostFixer'](_0x552cc8=>{const _0x18e48b=_0x477c4f['commands']['get']('redo');if(!_0x18e48b||!_0x18e48b['_createdBatches']['has'](_0x552cc8['batch']))return!0x1;let _0x2ff3ab=!0x1;const _0x41494b=_0x477c4f['plugins']['get']('Users')['me'],_0x3c2b2b=_0x477c4f['model']['document']['differ']['getChanges'](),_0x3a4f04=Array['from'](_0x477c4f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3173d6,data:_0x163417})=>{const {group:_0xe8abcc,subType:_0x8db0f9,authorId:_0x40d56b}=_0x1fc412['_splitMarkerName'](_0x3173d6);return'suggestion'==_0xe8abcc&&'tablePaste'==_0x8db0f9&&_0x40d56b==_0x41494b['id']&&!_0x163417['oldRange'];});for(const _0x2d00c8 of _0x3c2b2b){if('insert'!=_0x2d00c8['type']||'tableCellSuggestion'!=_0x2d00c8['name']||0x1!=_0x2d00c8['length'])continue;const _0x2dc4e=_0x552cc8['createRange'](_0x2d00c8['position'],_0x2d00c8['position']['getShiftedBy'](0x1));if(!_0x3a4f04['find'](({data:_0x41b2bd})=>_0x41b2bd['newRange']['isEqual'](_0x2dc4e))){for(const {name:_0x3ca509,data:_0x3c81ae}of _0x3a4f04)if(_0x2dc4e['containsRange'](_0x3c81ae['newRange'])){_0x552cc8['updateMarker'](_0x3ca509,{'range':_0x2dc4e}),_0x2ff3ab=!0x0;break;}}}return _0x2ff3ab;}),_0x477c4f['model']['document']['registerPostFixer'](_0x17f106=>{let _0x3c393c=!0x1;const _0x388b2d=_0x477c4f['plugins']['get']('Users')['me'],_0x2023b7=_0x1fc412['getSuggestions']()['filter'](_0x299d99=>_0x299d99['isInContent']&&_0x299d99['author']==_0x388b2d),_0x23d0c5=new Set(),_0x11c244=new Set();for(const _0x2fa07f of _0x2023b7)if('tablePaste'==_0x2fa07f['subType'])for(const _0x24fa66 of _0x2fa07f['getMarkers']()){const _0x172ada=_0x24fa66['getRange']()['getContainedElement']();if(_0x172ada){if(_0x172ada['is']('element','tableCellSuggestion')&&Oe(_0x172ada)){_0x2fa07f['removeMarker'](_0x24fa66['name']),_0x23d0c5['add'](_0x172ada),_0x3c393c=!0x0;const _0x2e735d=_0x172ada['nextSibling'],_0x2ad50e=_0x172ada['previousSibling'],_0x24d431=_0x2e735d&&_0x2e735d['is']('element','tableCellSuggestion'),_0x150be4=_0x2ad50e&&_0x2ad50e['is']('element','tableCellSuggestion');_0x24d431&&!_0x23d0c5['has'](_0x2e735d)&&_0x11c244['add'](_0x2e735d),_0x150be4&&!_0x23d0c5['has'](_0x2ad50e)&&_0x11c244['add'](_0x2ad50e);}else _0x172ada['is']('element','paragraph')&&_0x172ada['isEmpty']&&(_0x2fa07f['removeMarker'](_0x24fa66['name']),_0x3c393c=!0x0);}}else{if('tablePasteCell'==_0x2fa07f['subType']){if(!_0x2fa07f['attributes']||!_0x2fa07f['attributes']['tablePasteChainId'])continue;const _0x473861=_0x2fa07f['attributes']['markerAttributes'];if(_0x473861&&Object['keys'](_0x473861)['length'])continue;const _0x486845=_0x2fa07f['attributes']['tablePasteChainId'];let _0x14df9d=!0x0,_0x41bbbc=!0x0;for(const _0x4a6d24 of _0x2023b7)if(_0x4a6d24['subType']&&_0x4a6d24['subType']['startsWith']('tablePaste')){if(!_0x4a6d24['attributes']['tablePasteChainId']){_0x41bbbc=!0x1;break;}if(_0x4a6d24['id']!=_0x2fa07f['id']&&_0x4a6d24['attributes']['tablePasteChainId']==_0x486845){_0x14df9d=!0x1;break;}}_0x41bbbc&&_0x14df9d&&(_0x2fa07f['removeMarkers'](),_0x3c393c=!0x0);}}for(const _0x19814e of _0x23d0c5)_0x17f106['remove'](_0x19814e);for(const _0x3a96c0 of _0x11c244)_0x17f106['unwrap'](_0x3a96c0);return _0x3c393c;}),_0x477c4f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x72372a=>_0x478bc3(_0x72372a),'converterPriority':'high'}),_0x477c4f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3b286d,_0xc459b3)=>_0xc459b3['options']['showSuggestionHighlights']?_0x478bc3(_0x3b286d,!0x1):null,'converterPriority':'high'});const _0x23e904=_0x477c4f['editing']['view'];this['listenTo'](_0x23e904['document'],'clipboardOutput',(_0x2adbb3,_0x47f0e5)=>{const _0x2eb66f=[];for(const _0x51a1b0 of _0x23e904['createRangeIn'](_0x47f0e5['content'])['getItems']())_0x51a1b0['is']('element','suggestion-td')&&_0x2eb66f['push'](_0x51a1b0);_0x23e904['change'](_0x19001f=>{for(const _0x7a3a1d of _0x2eb66f)_0x19001f['move'](_0x19001f['createRangeIn'](_0x7a3a1d),_0x19001f['createPositionBefore'](_0x7a3a1d)),_0x19001f['remove'](_0x7a3a1d);});});}}function Oe(_0x3d3897){if(_0x3d3897['isEmpty'])return!0x0;const _0x3bf657=_0x3d3897['getChild'](0x0);return _0x3bf657['is']('element','paragraph')&&_0x3bf657['isEmpty'];}function Ue(_0xa55e9a,_0x57def9={},_0x116586){for(const {isAnchor:_0xe62773,cellHeight:_0x5b9bf8,cellWidth:_0x291fd3}of _0x116586['createTableWalker'](_0xa55e9a,{'includeAllSlots':!0x0,..._0x57def9}))if(!_0xe62773||0x1!=_0x5b9bf8||0x1!=_0x291fd3)return!0x1;return!0x0;}class Dt extends _0x47ce4c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1088a3=this['editor']['plugins']['get']('TrackChangesEditing');_0x1088a3['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1088a3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1088a3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1088a3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1088a3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1088a3['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x38e5b9,_0x573078){const _0x1e06c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54268f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x51a0c7=_0x573078['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x44ac95=_0x54268f['getColumnGroupElement'](_0x51a0c7);let _0x386cda=_0x44ac95?_0x54268f['getTableColumnsWidths'](_0x44ac95):null,_0x49e6b2=_0x51a0c7['getAttribute']('tableWidth')||null;const _0x2168d6=_0x573078['tableWidth']||_0x49e6b2,_0x515906=_0x573078['columnWidths']||_0x386cda,_0x314c78=this['editor']['plugins']['get']('Users')['me'];for(const _0x11caee of _0x1e06c0['getSuggestions']()){const _0x271d20=_0x11caee['getContainedElement']();if('resizeTable'===_0x11caee['subType']&&_0x271d20===_0x51a0c7){_0x11caee['author']!==_0x314c78&&_0x11caee['discard']();const _0x2f73a1=_0x11caee['data']['commandParams'];_0x49e6b2=_0x2f73a1[0x0]['tableWidth'],_0x386cda=_0x2f73a1[0x0]['columnWidths'];break;}}_0x38e5b9({'table':_0x51a0c7,'tableWidth':_0x2168d6,'columnWidths':_0x515906}),_0x1e06c0['markBlockFormat'](_0x51a0c7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x49e6b2,'columnWidths':_0x386cda}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2ef198){if('formatBlock'!=_0x2ef198['type']&&'formatInline'!=_0x2ef198['type'])return;const {data:_0x2b2fbf}=_0x2ef198;if(_0x2b2fbf&&'resizeTable'===_0x2b2fbf['formatGroupId']){const _0x5a3e9d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5a3e9d)};}}}class Mt extends _0x47ce4c{['afterInit'](){const _0x431139=this['editor'];_0x431139['plugins']['has']('Template')&&_0x431139['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x47ce4c{['afterInit'](){const _0x2b86fc=this['editor'];if(!_0x2b86fc['commands']['get']('insertTableOfContents'))return;_0x2b86fc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x31db40=_0x2b86fc['plugins']['get']('TrackChangesEditing'),_0x48c631=_0x2b86fc['locale'];_0x31db40['descriptionFactory']['registerElementLabel']('tableOfContents',_0x47c644=>o(_0x48c631,'ELEMENT_TABLE_OF_CONTENTS',_0x47c644));}}class Bt extends _0x47ce4c{['afterInit'](){const _0x23663f=this['editor'];if(!_0x23663f['plugins']['has']('Title'))return;const _0x493553=_0x23663f['plugins']['get']('TrackChangesEditing');_0x493553['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x23663f['locale'],'ELEMENT_TITLE')),_0x23663f['model']['document']['registerPostFixer'](_0x2ed60e=>{let _0x1b612=!0x1;const _0x57cd31=Array['from'](_0x23663f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4ac527,data:_0x1c1c23}of _0x57cd31){const {group:_0x58e3dd}=_0x493553['_splitMarkerName'](_0x4ac527);if('suggestion'!==_0x58e3dd||!_0x1c1c23['newRange'])continue;const _0x1b81ab=_0x1c1c23['newRange'],_0x1ac191=_0x1b81ab['end']['nodeBefore'];if(!_0x1ac191||!_0x1ac191['is']('element','title-content'))continue;if(!_0x1b81ab['start']['isTouching'](_0x1b81ab['end']))continue;const _0x190506=_0x23663f['model']['schema']['getNearestSelectionRange'](_0x1b81ab['end'],'forward');if(_0x190506&&_0x190506['isCollapsed']){const _0x5ec129=_0x2ed60e['createRange'](_0x1b81ab['start'],_0x190506['start']);_0x5ec129['isEqual'](_0x1b81ab)||(_0x2ed60e['updateMarker'](_0x4ac527,{'range':_0x5ec129}),_0x1b612=!0x0);}_0x1b612||(_0x2ed60e['removeMarker'](_0x4ac527),_0x1b612=!0x0);}return _0x1b612;});}}class Ot extends _0x47ce4c{['afterInit'](){const _0x1beef5=this['editor'],_0x53c2e3=_0x1beef5['plugins']['get']('TrackChangesEditing');_0x1beef5['plugins']['has']('Uploadcare')&&(_0x53c2e3['enableCommand']('uploadcare'),_0x1beef5['plugins']['has']('UploadcareImageEdit')&&(_0x53c2e3['enableCommand']('uploadcareImageEdit'),_0x53c2e3['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x53c2e3['registerBlockAttribute']('uploadcareImageId'),_0x53c2e3['descriptionFactory']['registerDescriptionCallback'](_0x18fb58=>{if('attribute'!=_0x18fb58['type'])return;const {data:_0x32ca5c}=_0x18fb58;return _0x32ca5c&&'uploadcareImageId'==_0x32ca5c['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x47ce4c{['afterInit'](){const _0x15688b=this['editor'],_0x1cb04d=_0x15688b['plugins']['get']('TrackChangesEditing');_0x15688b['plugins']['has']('UndoEditing')&&(_0x1cb04d['enableCommand']('undo'),_0x1cb04d['enableCommand']('redo'));}}class Tt extends _0x47ce4c{static get['requires'](){return[vt];}['afterInit'](){const _0x3caeaa=this['editor'];if(!_0x3caeaa['plugins']['has']('TableCaptionEditing'))return;_0x3caeaa['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x47ce4c{['tableProperties'];['tableCellProperties'];constructor(_0x2c247a){super(_0x2c247a),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 _0x53f9be=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x22a279 of this['tableProperties'])_0x53f9be['enableCommand'](_0x22a279,(_0x12900b,_0x27a0ae)=>{const _0x4d0b0f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x22a279,[_0x4d0b0f],this['tableProperties'],'tableProperties',_0x12900b,_0x27a0ae);});_0x53f9be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x53f9be['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x53f9be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x310832,_0x48bdcc)=>this['handleDiscardAction'](this['tableProperties'],_0x310832,_0x48bdcc)),_0x53f9be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x56ee04 of this['tableCellProperties'])_0x53f9be['enableCommand'](_0x56ee04,(_0x480787,_0x4de4b4)=>{const _0x2515ec=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x56ee04,_0x2515ec,this['tableCellProperties'],'tableCellProperties',_0x480787,_0x4de4b4);});_0x53f9be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x53f9be['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x53f9be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x441049,_0x1e34e1)=>this['handleDiscardAction'](this['tableCellProperties'],_0x441049,_0x1e34e1)),_0x53f9be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x53f9be['descriptionFactory']['registerDescriptionCallback'](_0x8e9c04=>this['handleSuggestionDescription'](_0x8e9c04));}['_handlePropertyChange'](_0x31eec9,_0x585c66,_0x30278e,_0x2f824c,_0x5e2038,_0x3204b5){const _0x7d63a6=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3204b5['batch'],()=>{for(const _0x51325b of _0x585c66){if(this['_getSuggestion'](_0x51325b,_0x2f824c))_0x5e2038(_0x3204b5);else{const _0x10a28f={};for(const _0x291d88 of _0x30278e){const _0x176583=_0x51325b['getAttribute'](_0x291d88);void 0x0!==_0x176583&&(_0x10a28f[_0x291d88]=_0x176583);}_0x5e2038(_0x3204b5),_0x7d63a6['markBlockFormat'](_0x51325b,{'commandParams':[_0x10a28f]},[],_0x2f824c);}}});}['handleDiscardAction'](_0x16f101,_0x35cbd0,_0x68b87c){const _0x5d5ffe=_0x35cbd0[0x0]['start']['nodeAfter'],_0x421ac7=_0x68b87c['commandParams'][0x0];this['editor']['model']['change'](_0x282236=>{for(const _0x4de8fe of _0x16f101)void 0x0!==_0x421ac7[_0x4de8fe]?_0x282236['setAttribute'](_0x4de8fe,_0x421ac7[_0x4de8fe],_0x5d5ffe):_0x282236['removeAttribute'](_0x4de8fe,_0x5d5ffe);});}['handleSuggestionDescription'](_0x5d4212){if(_0x5d4212['data'])switch(_0x5d4212['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5c93b0,_0x3d79cd){const _0x164b07=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x24f54b of _0x164b07['getSuggestions']({'skipNotAttached':!0x0})){const _0x4c0b61=_0x24f54b['getContainedElement']();if(_0x24f54b['subType']===_0x3d79cd&&_0x4c0b61===_0x5c93b0)return _0x24f54b;}return null;}}const m='$elementName';class p extends _0x47ce4c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4c014f,_0x1c44fc,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x482fb3){super(_0x482fb3),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x959a7f,_0x3d98e3,_0x22ae71,_0x13162f)=>{this['_model']['change'](()=>{for(const _0x1b0f0c of[..._0x13162f,..._0x22ae71])this['_model']['markers']['has'](_0x1b0f0c)&&_0x482fb3['editing']['reconvertMarker'](_0x1b0f0c);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x482fb3['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x482fb3['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x482fb3['config']['get']('trackChanges.trackFormatChanges'),_0x482fb3['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x482fb3['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x482fb3,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5b9b45=this['editor'],_0x44420b=(_0x566bb1,_0x522c89)=>{if('attribute'!=_0x566bb1)return'ck-suggestion-marker-'+_0x566bb1;const _0x35aa22=_0x522c89['split']('|')[0x0];return this['_isBlockAttribute'](_0x35aa22)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5b9b45['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4cdd4e=>{const {id:_0x7ee3fb,authorId:_0x1b87ca,type:_0x5a45e6,subType:_0x542ca6}=this['_splitMarkerName'](_0x4cdd4e['markerName']),_0x280374=['ck-suggestion-marker',_0x44420b(_0x5a45e6,_0x542ca6)];let _0x99a258=0xbb8;return this['activeMarkers']['includes'](_0x4cdd4e['markerName'])&&(_0x280374['push']('ck-suggestion-marker--active'),_0x99a258=0xbc2),'deletion'==_0x5a45e6&&(_0x99a258+=0x5),{'classes':_0x280374,'attributes':{'data-suggestion':_0x7ee3fb,'data-author-id':_0x1b87ca},'priority':_0x99a258};}}),_0x5b9b45['conversion']['for']('dataDowncast')['add'](_0x3d31bf=>{_0x3d31bf['on']('addMarker:suggestion',(_0x4c3385,_0x2dabf8,_0x259bac)=>{if(!_0x259bac['options']['showSuggestionHighlights'])return;const _0x163c3a=_0x2dabf8['item'];if(!_0x163c3a)return;const _0x51b4c7=_0x259bac['mapper']['toViewElement'](_0x163c3a);_0x5b9b45['model']['schema']['isObject'](_0x163c3a)&&_0x51b4c7&&!_0x51b4c7['getCustomProperty']('widget')&&_0x51b4c7['is']('containerElement')&&_0x1fa617(_0x51b4c7,_0x259bac['writer']);},{'priority':'high'});}),_0x5b9b45['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2fca14,_0x45ff8d)=>{if(!_0x45ff8d['options']['showSuggestionHighlights'])return null;const {type:_0xac34d9,subType:_0x36eef0}=this['_splitMarkerName'](_0x2fca14['markerName']);return{'classes':['ck-suggestion-marker',_0x44420b(_0xac34d9,_0x36eef0)],'priority':0xbb8};}});const _0x962b5d=({showActiveMarkers:_0x3cda10=!0x0,isAttributeSuggestion:_0x472573=!0x1}={})=>(_0x34176c,_0x4c7865,_0x39c7c4)=>{if(!_0x4c7865['item'])return;const {id:_0x147d98,authorId:_0x34b7d9}=this['_splitMarkerName'](_0x4c7865['markerName']);if(_0x472573){const _0x54c48b=this['_suggestions']['get'](_0x147d98),_0x3de9c5=this['_getAttributeKey'](_0x54c48b);if(!this['_isBlockAttribute'](_0x3de9c5))return;}if(_0x4c7865['item']['is']('selection'))return void _0x39c7c4['consumable']['consume'](_0x4c7865['item'],_0x34176c['name']);const _0x22090e=_0x39c7c4['mapper']['toViewElement'](_0x4c7865['item']);if(_0x4c7865['item']['is']('element')&&_0x5b9b45['model']['schema']['isBlock'](_0x4c7865['item'])&&!_0x22090e['getCustomProperty']('addHighlight')){_0x39c7c4['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x22090e),_0x39c7c4['writer']['setAttribute']('data-suggestion',_0x147d98,_0x22090e),_0x39c7c4['writer']['setAttribute']('data-author-id',_0x34b7d9,_0x22090e),_0x39c7c4['mapper']['bindElementToMarker'](_0x22090e,_0x4c7865['markerName']),_0x3cda10&&(this['activeMarkers']['includes'](_0x4c7865['markerName'])?_0x39c7c4['writer']['addClass']('ck-suggestion-marker--active',_0x22090e):_0x39c7c4['writer']['removeClass']('ck-suggestion-marker--active',_0x22090e));for(const _0x10098e of _0x5b9b45['model']['createRangeIn'](_0x4c7865['item'])['getItems']())_0x39c7c4['consumable']['consume'](_0x10098e,_0x34176c['name']);_0x39c7c4['consumable']['consume'](_0x4c7865['item'],_0x34176c['name']);}};_0x5b9b45['conversion']['for']('dataDowncast')['add'](_0x3b693d=>{_0x3b693d['on']('addMarker:suggestion:formatBlock',(_0x19e696,_0x38a6a6,_0x1192ac)=>{_0x1192ac['options']['showSuggestionHighlights']&&_0x962b5d({'showActiveMarkers':!0x1})(_0x19e696,_0x38a6a6,_0x1192ac);},{'priority':'highest'});}),_0x5b9b45['conversion']['for']('dataDowncast')['add'](_0x550940=>{_0x550940['on']('addMarker:suggestion:attribute',(_0x4bf875,_0x26ce4c,_0x3bd009)=>{_0x3bd009['options']['showSuggestionHighlights']&&_0x962b5d({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4bf875,_0x26ce4c,_0x3bd009);},{'priority':'highest'});}),_0x5b9b45['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x26e7e4,_0x53ff6d)=>_0x53ff6d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x26e7e4['substr'](0xb)}}),_0x5b9b45['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x581163,{writer:_0x2c0f30})=>{let _0x3b0335='suggestion:'+_0x581163['getAttribute']('suggestion-type')+':'+_0x581163['getAttribute']('id');return _0x581163['getAttribute']('marker-count')&&(_0x3b0335+=':'+_0x581163['getAttribute']('marker-count')),_0x2c0f30['createElement']('$marker',{'data-name':_0x3b0335});}}),_0x5b9b45['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5b9b45['conversion']['for']('editingDowncast')['add'](_0x2e6770=>{_0x2e6770['on']('addMarker:suggestion:formatBlock',_0x962b5d(),{'priority':'high'});}),_0x5b9b45['conversion']['for']('editingDowncast')['add'](_0x3b5462=>{_0x3b5462['on']('addMarker:suggestion:attribute',_0x962b5d({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5b9b45['conversion']['for']('editingDowncast')['add'](_0x49b723=>{_0x49b723['on']('removeMarker:suggestion:formatBlock',(_0x168d55,_0x2a7a23,_0x12a088)=>{const _0x24ecf3=_0x12a088['mapper']['markerNameToElements'](_0x2a7a23['markerName']);if(_0x24ecf3){for(const _0x4eee1e of _0x24ecf3)_0x4eee1e['getCustomProperty']('addHighlight')||(_0x12a088['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4eee1e),_0x12a088['writer']['removeAttribute']('data-suggestion',_0x4eee1e),_0x12a088['writer']['removeAttribute']('data-author-id',_0x4eee1e),_0x12a088['mapper']['unbindElementFromMarkerName'](_0x4eee1e,_0x2a7a23['markerName']));}},{'priority':'high'});}),_0x5b9b45['conversion']['for']('editingDowncast')['add'](_0x1afbed=>{_0x1afbed['on']('removeMarker:suggestion:attribute',(_0x478272,_0x231de9,_0x53b184)=>{const _0x356ff5=_0x53b184['mapper']['markerNameToElements'](_0x231de9['markerName']);if(!_0x356ff5)return;const {id:_0x261db3}=this['_splitMarkerName'](_0x231de9['markerName']),_0x58a2ca=this['_suggestions']['get'](_0x261db3),_0x19990f=this['_getAttributeKey'](_0x58a2ca);if(this['_isBlockAttribute'](_0x19990f)){for(const _0x5009ee of _0x356ff5)_0x5009ee['getCustomProperty']('addHighlight')||(_0x53b184['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5009ee),_0x53b184['writer']['removeAttribute']('data-suggestion',_0x5009ee),_0x53b184['writer']['removeAttribute']('data-author-id',_0x5009ee),_0x53b184['mapper']['unbindElementFromMarkerName'](_0x5009ee,_0x231de9['markerName']));}},{'priority':'high'});}),_0x5b9b45['model']['document']['registerPostFixer'](_0x26c195=>{let _0x3a5ba9=!0x1;const _0xbd315b=Array['from'](_0x5b9b45['model']['document']['differ']['getChangedMarkers']()),_0x143ee9=new Set();for(const {name:_0x3ea622,data:_0x5d573e}of _0xbd315b){const {group:_0x469c26,type:_0x26cf5c,subType:_0x324170,id:_0x5966cb}=this['_splitMarkerName'](_0x3ea622);if('suggestion'!==_0x469c26)continue;const _0xb4afc=this['_suggestions']['get'](_0x5966cb);if(null!=_0x5d573e['newRange']){'formatInline'==_0x26cf5c&&(_0x3a5ba9=_0x3a5ba9||Gt(_0x5d573e['newRange'],_0x3ea622,_0x26c195,_0x5b9b45['model']['schema']));const _0x18ecbb='attribute'==_0x26cf5c&&this['_isBlockAttribute'](_0x324170['split']('|')[0x0]);if(_0x5d573e['newRange']['isCollapsed']||'$graveyard'==_0x5d573e['newRange']['root']['rootName']||'formatBlock'==_0x26cf5c&&!Lt(_0x5d573e['newRange'])||_0x18ecbb&&!Lt(_0x5d573e['newRange'])||'deletion'==_0x26cf5c&&!(!Pt(_0x3e0a9f=_0x5d573e['newRange'])&&!function(_0x41b982){return _0x41b982['start']['parent']==_0x41b982['end']['nodeBefore']&&_0x41b982['start']['isAtEnd'];}(_0x3e0a9f)))_0x26c195['removeMarker'](_0x3ea622),_0x3a5ba9=!0x0;else{if(!_0xb4afc||!_0xb4afc['isInContent'])continue;if(_0x5d573e['newRange']&&_0x5d573e['oldRange']&&_0x5d573e['newRange']['isEqual'](_0x5d573e['oldRange']))continue;_0x143ee9['add'](_0xb4afc);}}}var _0x3e0a9f;return _0x143ee9['size']>0x0&&(_0x3a5ba9=!!this['_joinWithAdjacentSuggestions'](_0x143ee9)||_0x3a5ba9),_0x3a5ba9;}),_0x5b9b45['model']['document']['registerPostFixer'](_0x13f2cf=>{let _0xf2fcfb=!0x1;for(const _0x2f2403 of _0x5b9b45['model']['document']['differ']['getChanges']())if('insert'==_0x2f2403['type'])for(const _0x12ad81 of this['_suggestions']['values']()){if(_0x12ad81['isMultiRange']||!_0x12ad81['isInContent'])continue;const _0x4a6a54='formatBlock'==_0x12ad81['type'],_0x2a1104=this['_getAttributeKey'](_0x12ad81),_0x4db64c=_0x2a1104&&this['_isBlockAttribute'](_0x2a1104);if(!_0x4a6a54&&!_0x4db64c)continue;const _0x1e5521=_0x12ad81['getFirstRange']();if(_0x1e5521['start']['parent']!=_0x1e5521['end']['parent']&&!_0x1e5521['end']['isAtEnd']){const _0x50fcf2=_0x5b9b45['model']['createPositionAt'](_0x1e5521['start']['nodeAfter'],'end'),_0x2f2f0b=_0x5b9b45['model']['createRange'](_0x1e5521['start'],_0x50fcf2);_0x13f2cf['updateMarker'](_0x12ad81['getFirstMarker'](),{'range':_0x2f2f0b}),_0xf2fcfb=!0x0;}}return _0xf2fcfb;}),_0x5b9b45['model']['document']['registerPostFixer'](_0x4311f5=>this['_processAttributeChanges'](_0x4311f5)),_0x5b9b45['model']['document']['registerPostFixer'](_0x447c9c=>!_0x447c9c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x447c9c)),_0x5b9b45['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5b9b45['model']['document']['on']('change:data',(_0x127013,_0x2235bd)=>{if(!_0x2235bd['isLocal']||_0x2235bd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2e4187=_0x5b9b45['model']['document']['differ']['getChanges']();if(0x0==_0x2e4187['length'])return;const _0xc416c8=[],_0x58a878=_0x2e4187['filter'](_0x5ced5e=>'attribute'==_0x5ced5e['type']),_0x498e9b=_0x2e4187['filter'](_0x982659=>'insert'==_0x982659['type']&&'$text'!=_0x982659['name']);for(const _0x2f6300 of _0x58a878)this['_isRegisteredAttribute'](_0x2f6300['attributeKey'])&&_0xc416c8['push']({'key':_0x2f6300['attributeKey'],'newValue':_0x2f6300['attributeNewValue'],'oldValue':_0x2f6300['attributeOldValue'],'range':Jt(_0x2f6300['range'],_0x5b9b45['model'])});for(const _0x38fbb3 of _0x498e9b){if('rename'!=_0x38fbb3['action']&&'refresh'!=_0x38fbb3['action'])continue;const _0x4f14de=Ht(_0x38fbb3['position']['nodeAfter'],_0x5b9b45['model']),_0x278e36=_0x38fbb3['before'];'rename'==_0x38fbb3['action']&&_0xc416c8['push']({'key':m,'newValue':_0x38fbb3['name'],'oldValue':_0x278e36['name'],'range':_0x4f14de});for(const [_0xbc6caf,_0x15a456]of _0x278e36['attributes']){if(!this['_isRegisteredAttribute'](_0xbc6caf))continue;const _0x20f8f6=_0x38fbb3['attributes']['get'](_0xbc6caf);_0x15a456!==_0x20f8f6&&_0xc416c8['push']({'key':_0xbc6caf,'newValue':_0x20f8f6,'oldValue':_0x15a456,'range':_0x4f14de});}for(const [_0x4f81c1,_0x4c85a7]of _0x38fbb3['attributes'])this['_isRegisteredAttribute'](_0x4f81c1)&&(_0x278e36['attributes']['has'](_0x4f81c1)||_0xc416c8['push']({'key':_0x4f81c1,'newValue':_0x4c85a7,'oldValue':null,'range':_0x4f14de}));}0x0!=_0xc416c8['length']&&_0x5b9b45['model']['enqueueChange'](_0x2235bd,_0x41cdec=>{const _0x2010df=_0x2ace31();for(const {range:_0x2779d7,key:_0x463f94,oldValue:_0x537290,newValue:_0x1b80a3}of _0xc416c8)this['markAttributeChange'](_0x2779d7,_0x463f94,_0x537290,_0x1b80a3,{'groupId':_0x2010df});this['_reduceExistingSuggestions'](_0x41cdec,_0xc416c8);});},{'priority':'lowest'}),_0x5b9b45['model']['markers']['on']('update:suggestion',(_0x44d3ac,_0xb088f7,_0x15acef)=>{if(null==_0x15acef){const {id:_0x52296b}=this['_splitMarkerName'](_0xb088f7['name']),_0xbd6642=this['_suggestions']['get'](_0x52296b);_0xbd6642&&_0xbd6642['addMarkerName'](_0xb088f7['name']);}}),_0x5b9b45['model']['document']['on']('change:data',()=>{const _0x578cef=Array['from'](_0x5b9b45['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4458dc=>'suggestion'===this['_splitMarkerName'](_0x4458dc['name'])['group']);if(0x0===_0x578cef['length'])return;_0x578cef['sort']((_0x3da7f4,_0x3f246b)=>{const _0x5d4f9b=_0x3da7f4['data']['oldRange'],_0x4ec2d6=_0x3f246b['data']['oldRange'];return null===_0x5d4f9b&&null===_0x4ec2d6?0x0:null===_0x5d4f9b&&null!==_0x4ec2d6?-0x1:null!==_0x5d4f9b&&null===_0x4ec2d6?0x1:_0x5d4f9b['start']['isBefore'](_0x4ec2d6['start'])?-0x1:0x1;});const _0xb9a595=new Set(),_0x33533d=new Set();for(const {name:_0x47925e,data:_0xf9b638}of _0x578cef){const {id:_0x1431e1}=this['_splitMarkerName'](_0x47925e);if(null===_0xf9b638['oldRange']){const _0x3a93cf=this['_handleNewSuggestionMarker'](_0x47925e);_0x33533d['add'](_0x3a93cf);}else{const _0x18ced0=this['_suggestions']['get'](_0x1431e1);null!==_0xf9b638['newRange']||_0x18ced0['isInContent']?(_0xb9a595['add'](_0x18ced0['head']),_0x33533d['add'](_0x18ced0)):this['_removeSuggestion'](_0x18ced0);}}_0x33533d['size']>0x0&&this['_refreshSuggestionsChain'](_0x33533d);for(const _0x5de487 of _0xb9a595)this['fire']('suggestionChanged',_0x5de487);}),_0x5b9b45['model']['on']('applyOperation',(_0x51fcf6,_0x361bbd)=>{const _0x14cd34=_0x361bbd[0x0];if(!this['_suggestions']['size'])return;if(!_0x14cd34['isDocumentOperation'])return;if(_0x14cd34['batch']['isUndo']||!_0x14cd34['batch']['isLocal'])return;let _0x3ffd6c,_0x369f88;switch(_0x14cd34['type']){case'insert':_0x3ffd6c=_0x5b9b45['model']['createPositionAt'](_0x14cd34['position']),_0x369f88=_0x3ffd6c['getShiftedBy'](_0x14cd34['howMany']);break;case'split':_0x3ffd6c=_0x5b9b45['model']['createPositionAt'](_0x14cd34['splitPosition']),_0x369f88=_0x5b9b45['model']['createPositionAt'](_0x14cd34['moveTargetPosition']);break;case'move':_0x3ffd6c=_0x5b9b45['model']['createPositionAt'](_0x14cd34['targetPosition']),_0x369f88=_0x3ffd6c['getShiftedBy'](_0x14cd34['howMany']);break;default:return;}const _0x322b0e=_0x5b9b45['model']['createRange'](_0x3ffd6c,_0x369f88);_0x5b9b45['model']['change'](()=>{for(const {suggestion:_0x1e6ccf,meta:_0x31c13d}of this['_findSuggestions'](_0x322b0e)){if(_0x1e6ccf['isMultiRange'])continue;if('formatInline'==_0x1e6ccf['type'])continue;const _0x53b5e5=this['_getAttributeKey'](_0x1e6ccf);if(_0x53b5e5&&this['_isBlockAttribute'](_0x53b5e5)&&'split'!=_0x14cd34['type'])continue;const _0x242acc=_0x1e6ccf['data']&&_0x1e6ccf['data']['multipleBlocks'];('formatBlock'!=_0x1e6ccf['type']||'split'==_0x14cd34['type']&&!_0x242acc)&&(_0x31c13d['containsRangeInObject']||'insertion'==_0x1e6ccf['type']&&_0x31c13d['isOwn']||_0x1e6ccf['getFirstRange']()['containsRange'](_0x322b0e)&&this['_breakSuggestionMarker'](_0x1e6ccf,_0x3ffd6c,_0x369f88));}});},{'priority':'lowest'}),_0x5b9b45['model']['on']('deleteContent',(_0x4cf193,_0x3d297b)=>{const _0x49f6f7=_0x3d297b[0x0],_0x56e6ed=_0x3d297b[0x1];if(_0x56e6ed&&_0x56e6ed['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x49f6f7['isCollapsed'])return;const _0x4b33f4=_0x5b9b45['model']['schema'],{start:_0x1ae0fb,end:_0x2dd167}=_0x49f6f7['getFirstRange'](),_0x5334cc=_0x1ae0fb['nodeAfter']&&_0x4b33f4['isLimit'](_0x1ae0fb['nodeAfter'])?null:_0x4b33f4['getNearestSelectionRange'](_0x1ae0fb,'forward'),_0x1f3ba1=_0x2dd167['nodeBefore']&&_0x4b33f4['isLimit'](_0x2dd167['nodeBefore'])?null:_0x4b33f4['getNearestSelectionRange'](_0x2dd167,'backward'),_0x29d2cd=_0x5b9b45['model']['createRange'](_0x5334cc?_0x5334cc['start']:_0x1ae0fb,_0x1f3ba1?_0x1f3ba1['end']:_0x2dd167);_0x5b9b45['model']['change'](_0x12aab0=>{this['markDeletion'](_0x29d2cd);const _0x5a4f48=_0x5b9b45['model']['schema']['getNearestSelectionRange'](_0x29d2cd['start']);_0x49f6f7['is']('documentSelection')?_0x12aab0['setSelection'](_0x5a4f48):_0x49f6f7['setTo'](_0x5a4f48);}),_0x4cf193['stop']();},{'priority':_0x259708['normal']+0xa}),_0x5b9b45['model']['on']('insertContent',(_0x3aa80a,_0x233fe9)=>{const _0x277e0d=_0x233fe9[_0x233fe9['length']-0x1];_0x277e0d&&_0x277e0d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5b9b45['model']['change'](()=>{let _0x308c0f=_0x5b9b45['model']['insertContent'](_0x233fe9[0x0],_0x233fe9[0x1],_0x233fe9[0x2],{'forceDefaultExecution':!0x0});if(!_0x308c0f)return;_0x3aa80a['return']=_0x308c0f['clone']();const _0x49a384=_0x308c0f['end']['nodeBefore'],_0x5b94c6=_0x5b9b45['model']['schema'];_0x49a384&&_0x5b94c6['isBlock'](_0x49a384)&&!_0x5b94c6['isObject'](_0x49a384)&&(_0x308c0f=_0x5b9b45['model']['createRange'](_0x308c0f['start'],_0x5b9b45['model']['createPositionAt'](_0x49a384,'end'))),this['markInsertion'](_0x308c0f);}),_0x3aa80a['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xf0f28b=new O(_0x5b9b45,this['_suggestions']);_0x5b9b45['commands']['add']('acceptSuggestion',_0xf0f28b),this['enableCommand']('acceptSuggestion');const _0x4adee2=new R(_0x5b9b45,this['_suggestions']);_0x5b9b45['commands']['add']('discardSuggestion',_0x4adee2),this['enableCommand']('discardSuggestion'),_0x5b9b45['commands']['add']('acceptAllSuggestions',new x(_0x5b9b45,_0xf0f28b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5b9b45['commands']['add']('discardAllSuggestions',new x(_0x5b9b45,_0x4adee2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5b9b45['commands']['add']('acceptSelectedSuggestions',new E(_0x5b9b45,_0xf0f28b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5b9b45['commands']['add']('discardSelectedSuggestions',new E(_0x5b9b45,_0x4adee2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xbc2e3f=_0x5b9b45['plugins']['get']('CommentsRepository');this['listenTo'](_0xbc2e3f,'addComment',(_0x2aefa7,{threadId:_0x233c87})=>{const _0x412b35=this['_suggestions']['get'](_0x233c87);_0x412b35&&_0x412b35['commentThread']&&0x1===_0x412b35['commentThread']['length']&&this['_updateSuggestionData'](_0x233c87,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xbc2e3f,'removeComment',(_0x316787,{threadId:_0x556ac6})=>{const _0x2946c5=this['_suggestions']['get'](_0x556ac6);_0x2946c5&&_0x2946c5['commentThread']&&!_0x2946c5['commentThread']['length']&&this['_updateSuggestionData'](_0x556ac6,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1461a0){const _0x63034=_0x5aa59d([0x4f,0x53,0x4c,0x36,0x58,0x39,0x35,0x64,0x63,0x65,0x49,0x6a,0x52,0x5a,0x32,0x74,0x61,0x76,0x69,0x31,0x72,0x51,0x4b,0x4e,0x75,0x41,0x6f,0x44,0x4a,0x46,0x56,0x47,0x7a,0x30,0x4d,0x78,0x33,0x50,0x38,0x55,0x67,0x6c,0x59,0x79,0x68,0x57,0x73,0x70,0x71,0x34,0x43,0x66,0x37,0x62,0x6e,0x6b,0x42,0x54,0x48,0x6d,0x77,0x45]),_0x1023d1=0x3400debc,_0x392ebb=0x3407818c^_0x1023d1,_0x4da8e4=window[_0x5aa59d([0x44,0x61,0x74,0x65])][_0x5aa59d([0x6e,0x6f,0x77])](),_0x12bfea=_0x1461a0[_0x5aa59d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x255fcf=new window[(_0x5aa59d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46c5c2=>{_0x12bfea[_0x5aa59d([0x6f,0x6e,0x63,0x65])](_0x5aa59d([0x72,0x65,0x61,0x64,0x79]),_0x46c5c2);}),_0x4bfc56={[_0x5aa59d([0x6b,0x74,0x79])]:_0x5aa59d([0x45,0x43]),[_0x5aa59d([0x75,0x73,0x65])]:_0x5aa59d([0x73,0x69,0x67]),[_0x5aa59d([0x63,0x72,0x76])]:_0x5aa59d([0x50,0x2d,0x32,0x35,0x36]),[_0x5aa59d([0x78])]:_0x5aa59d([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]),[_0x5aa59d([0x79])]:_0x5aa59d([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]),[_0x5aa59d([0x61,0x6c,0x67])]:_0x5aa59d([0x45,0x53,0x32,0x35,0x36])},_0x509200=_0x12bfea[_0x5aa59d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5aa59d([0x67,0x65,0x74])](_0x5aa59d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x540468(){let _0x55b00c,_0x18f1f3=null,_0x43c2fe=null;try{if(_0x509200==_0x5aa59d([0x47,0x50,0x4c]))return _0x5aa59d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x55b00c=_0x26dc1f(),!_0x55b00c)return _0x5aa59d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x55b00c[_0x5aa59d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43c2fe=_0x54f79c(_0x55b00c[_0x5aa59d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x55b00c[_0x5aa59d([0x6a,0x74,0x69])])),await _0x22861d()?_0x10b663()?_0x486842()?_0x5aa59d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x66855f()?(_0x55b00c[_0x5aa59d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5aa59d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x18f1f3=_0x3b5900(_0x5aa59d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x55b00c[_0x5aa59d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5aa59d([0x74,0x72,0x69,0x61,0x6c])&&(_0x18f1f3=_0x3b5900(_0x5aa59d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x567ab6()):_0x5aa59d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5aa59d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5aa59d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x45bd7e){return _0x5aa59d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x486842(){const _0x91ffaa=[_0x5aa59d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5aa59d([0x74,0x72,0x69,0x61,0x6c])][_0x5aa59d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55b00c[_0x5aa59d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4da8e4/0x3e8:0xe10*_0x392ebb;return _0x55b00c[_0x5aa59d([0x65,0x78,0x70])]<_0x91ffaa;}function _0x10b663(){const _0xd80fd9=_0x55b00c[_0x5aa59d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xd80fd9)return!0x1;if(_0xd80fd9[_0x5aa59d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aa59d([0x2a])))return!0x0;if(_0xd80fd9[_0x5aa59d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aa59d([0x54,0x43])))return!0x0;if(_0xd80fd9[_0x5aa59d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aa59d([0x52,0x54,0x43]))){if(_0x25a621())return!0x0;if(_0x1bc7f6()||_0x897c4())return!0x0;}return!0x1;}function _0x66855f(){const _0x587eb6=_0x55b00c[_0x5aa59d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x587eb6||0x0==_0x587eb6[_0x5aa59d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x256593}=new URL(window[_0x5aa59d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x587eb6[_0x5aa59d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256593))return!0x0;const _0x175fd8=_0x256593[_0x5aa59d([0x73,0x70,0x6c,0x69,0x74])](_0x5aa59d([0x2e]));return _0x587eb6[_0x5aa59d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13660c=>_0x13660c[_0x5aa59d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aa59d([0x2a])))[_0x5aa59d([0x6d,0x61,0x70])](_0x4cbded=>_0x4cbded[_0x5aa59d([0x73,0x70,0x6c,0x69,0x74])](_0x5aa59d([0x2e])))[_0x5aa59d([0x73,0x6f,0x6d,0x65])](_0x30662f=>_0x175fd8[_0x5aa59d([0x65,0x76,0x65,0x72,0x79])]((_0x1a6aab,_0x3ba976)=>_0x30662f[_0x3ba976]===_0x1a6aab||_0x30662f[_0x3ba976]===_0x5aa59d([0x2a])));}function _0x567ab6(){return _0x18f1f3&&_0x43c2fe?new window[(_0x5aa59d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4634cb,_0x19ef39)=>{_0x18f1f3[_0x5aa59d([0x74,0x68,0x65,0x6e])](_0x4634cb,_0x19ef39),_0x43c2fe[_0x5aa59d([0x74,0x68,0x65,0x6e])](_0x17a994=>{_0x17a994!=_0x5aa59d([0x56,0x61,0x6c,0x69,0x64])&&_0x4634cb(_0x17a994);},_0x19ef39);}):_0x18f1f3||_0x43c2fe||_0x5aa59d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x54f79c(_0x194b94,_0x4131c0){return new window[(_0x5aa59d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x376f27=>{if(_0x59ba14())return _0x376f27(_0x5aa59d([0x56,0x61,0x6c,0x69,0x64]));_0x467532(),_0x12bfea[_0x5aa59d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5aa59d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x339a6f=!0x1;const _0x34fcd0=_0x2ace31();function _0x5c28e8(_0x22de5d){return!!_0x22de5d&&(typeof _0x22de5d===_0x5aa59d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x22de5d===_0x5aa59d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x22de5d[_0x5aa59d([0x74,0x68,0x65,0x6e])]===_0x5aa59d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x22de5d[_0x5aa59d([0x63,0x61,0x74,0x63,0x68])]===_0x5aa59d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x44b9de(_0x32b142){_0x4ea8b5(_0x32b142)[_0x5aa59d([0x74,0x68,0x65,0x6e])](_0x7ba01f=>{if(!_0x7ba01f||_0x7ba01f[_0x5aa59d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5aa59d([0x6f,0x6b]))return _0x5aa59d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xbbb305(_0x21d0ab(_0x34fcd0+_0x4131c0))!=_0x7ba01f[_0x5aa59d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5aa59d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5aa59d([0x56,0x61,0x6c,0x69,0x64]);})[_0x5aa59d([0x74,0x68,0x65,0x6e])](_0x11e0af=>(_0x565c32(),_0x11e0af),()=>{const _0x503471=_0x31ff97();return null==_0x503471?(_0x565c32(),_0x5aa59d([0x56,0x61,0x6c,0x69,0x64])):_0x5aa59d(_0x4da8e4-_0x503471>(0x100c5abc^_0x1023d1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5aa59d([0x74,0x68,0x65,0x6e])](_0x376f27)[_0x5aa59d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x376f27(_0x5aa59d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x53c254=0x3436303c^_0x1023d1;function _0x565c32(){const _0x324542=_0x5aa59d([0x6c,0x6c,0x63,0x74,0x2d])+_0xbbb305(_0x21d0ab(_0x194b94)),_0x3c6b52=_0x3cee5d(_0xbbb305(window[_0x5aa59d([0x4d,0x61,0x74,0x68])][_0x5aa59d([0x63,0x65,0x69,0x6c])](_0x4da8e4/_0x53c254)));window[_0x5aa59d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5aa59d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x324542,_0x3c6b52);}function _0x31ff97(){const _0x252e6c=_0x5aa59d([0x6c,0x6c,0x63,0x74,0x2d])+_0xbbb305(_0x21d0ab(_0x194b94)),_0x34ec10=window[_0x5aa59d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5aa59d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x252e6c);return _0x34ec10?window[_0x5aa59d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3cee5d(_0x34ec10),0x10)*_0x53c254:null;}function _0x4ea8b5(_0x337f2b){return new window[(_0x5aa59d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a3757,_0x4f9306)=>{_0x337f2b[_0x5aa59d([0x74,0x68,0x65,0x6e])](_0x2a3757,_0x4f9306),window[_0x5aa59d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f9306,0x34010a7c^_0x1023d1);});}}_0x12bfea[_0x5aa59d([0x6f,0x6e])](_0x5aa59d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46777e,_0x2b317f)=>{if(_0x2b317f[0x0]!=_0x194b94)return _0x376f27(_0x5aa59d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2b317f[0x1]={..._0x2b317f[0x1],[_0x5aa59d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x34fcd0};},{[_0x5aa59d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5aa59d([0x68,0x69,0x67,0x68])}),_0x12bfea[_0x5aa59d([0x6f,0x6e])](_0x5aa59d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e75a6=>{_0x5c28e8(_0x1e75a6[_0x5aa59d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x339a6f=!0x0,_0x44b9de(_0x1e75a6[_0x5aa59d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5aa59d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5aa59d([0x6c,0x6f,0x77])}),_0x255fcf[_0x5aa59d([0x74,0x68,0x65,0x6e])](()=>{_0x339a6f||_0x376f27(_0x5aa59d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59ba14(){return _0x12bfea[_0x5aa59d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5aa59d([0x76,0x69,0x65,0x77])][_0x5aa59d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5aa59d([0x61,0x75,0x74,0x6f]);}function _0x467532(){_0x12bfea[_0x5aa59d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5aa59d([0x76,0x69,0x65,0x77])][_0x5aa59d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5aa59d([0x61,0x75,0x74,0x6f]);}}function _0x3b5900(_0x29f882){const _0x4c28cd=[new window[(_0x5aa59d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x461cf9=>setTimeout(_0x461cf9,0x3409e070^_0x1023d1)),_0x255fcf[_0x5aa59d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5aa59d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10c188=>{let _0xea6dbd=0x0;_0x12bfea[_0x5aa59d([0x6d,0x6f,0x64,0x65,0x6c])][_0x5aa59d([0x6f,0x6e])](_0x5aa59d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x9f20ab,_0x67949e)=>{_0x67949e[0x0][_0x5aa59d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xea6dbd++,_0xea6dbd==(0x3400df44^_0x1023d1)&&(_0x10c188(),_0x9f20ab[_0x5aa59d([0x6f,0x66,0x66])]());});}))];return window[_0x5aa59d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5aa59d([0x72,0x61,0x63,0x65])](_0x4c28cd)[_0x5aa59d([0x74,0x68,0x65,0x6e])](()=>_0x29f882);}async function _0x462e2d(){await _0x255fcf,_0x12bfea[_0x5aa59d([0x6d,0x6f,0x64,0x65,0x6c])][_0x5aa59d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ab65d,_0x12bfea[_0x5aa59d([0x6d,0x6f,0x64,0x65,0x6c])][_0x5aa59d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ab65d,_0x12bfea[_0x5aa59d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5aa59d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25a621(){return _0x5c1423(_0x5aa59d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xcc9574(_0x5aa59d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5aa59d([0x73,0x74,0x61,0x74,0x65])]==_0x5aa59d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1bc7f6(){return _0x5c1423(_0x5aa59d([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 _0x897c4(){return _0x5c1423(_0x5aa59d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4f5fa5(_0x4ad747){const _0x465e81=_0xc1c000();_0x12bfea[_0x465e81]=_0x5aa59d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ad747,_0x4ad747!=_0x5aa59d([0x56,0x61,0x6c,0x69,0x64])&&_0x462e2d();}function _0xc1c000(){const _0x2e3189=window[_0x5aa59d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5aa59d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5aa59d([0x6e,0x6f,0x77])]())[_0x5aa59d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5aa59d([0x2e]),'');let _0x4fb10d=_0x5aa59d([0x4f]);for(let _0x179dd4=0x0;_0x179dd4<_0x2e3189[_0x5aa59d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x179dd4+=0x2){let _0x112b2b=window[_0x5aa59d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e3189[_0x5aa59d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x179dd4,_0x179dd4+0x2));_0x112b2b>=_0x63034[_0x5aa59d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x112b2b-=_0x63034[_0x5aa59d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4fb10d+=_0x63034[_0x112b2b];}return _0x4fb10d;}function _0x26dc1f(){const _0x376a10=_0x509200[_0x5aa59d([0x73,0x70,0x6c,0x69,0x74])](_0x5aa59d([0x2e]));if(0x3!=_0x376a10[_0x5aa59d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x576cbf(_0x376a10[0x1]);function _0x576cbf(_0x2717c4){const _0x5e0352=_0xc4e068(_0x2717c4);return _0x5e0352&&_0x51c836()?_0x5e0352:null;function _0x51c836(){const _0x3238da=_0x5e0352[_0x5aa59d([0x6a,0x74,0x69])],_0x15acec=window[_0x5aa59d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3238da[_0x5aa59d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3238da[_0x5aa59d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c60fe={..._0x5e0352,[_0x5aa59d([0x6a,0x74,0x69])]:_0x3238da[_0x5aa59d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3238da[_0x5aa59d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c60fe[_0x5aa59d([0x76,0x63])],_0x21d0ab(_0x2c60fe)==_0x15acec;}}}async function _0x22861d(){let _0x56c940=!0x0;try{const _0x48d9c9=_0x509200[_0x5aa59d([0x73,0x70,0x6c,0x69,0x74])](_0x5aa59d([0x2e])),[_0x5e2159,_0x19c37b,_0x114e89]=_0x48d9c9;return _0x2265d9(_0x5e2159),await _0x216644(_0x5e2159,_0x19c37b,_0x114e89),_0x56c940;}catch(_0x223811){return!0x1;}function _0x2265d9(_0x28b0ca){const _0x24ac8d=_0xc4e068(_0x28b0ca);_0x24ac8d&&_0x24ac8d[_0x5aa59d([0x61,0x6c,0x67])]==_0x5aa59d([0x45,0x53,0x32,0x35,0x36])||(_0x56c940=!0x1);}async function _0x216644(_0x494491,_0x524d11,_0x362fee){const _0x371d3c=window[_0x5aa59d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5aa59d([0x66,0x72,0x6f,0x6d])](_0x5909ea(_0x362fee),_0xeb295c=>_0xeb295c[_0x5aa59d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x489784=new window[(_0x5aa59d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5aa59d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x494491+_0x5aa59d([0x2e])+_0x524d11),_0x27c532=window[_0x5aa59d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5aa59d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27c532)return;const _0x46cc33=await _0x27c532[_0x5aa59d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5aa59d([0x6a,0x77,0x6b]),_0x4bfc56,{[_0x5aa59d([0x6e,0x61,0x6d,0x65])]:_0x5aa59d([0x45,0x43,0x44,0x53,0x41]),[_0x5aa59d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5aa59d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5aa59d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27c532[_0x5aa59d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5aa59d([0x6e,0x61,0x6d,0x65])]:_0x5aa59d([0x45,0x43,0x44,0x53,0x41]),[_0x5aa59d([0x68,0x61,0x73,0x68])]:{[_0x5aa59d([0x6e,0x61,0x6d,0x65])]:_0x5aa59d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x46cc33,_0x371d3c,_0x489784)||(_0x56c940=!0x1);}}function _0xc4e068(_0x4ffe9e){return _0x4ffe9e[_0x5aa59d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5aa59d([0x65,0x79]))?JSON[_0x5aa59d([0x70,0x61,0x72,0x73,0x65])](_0x5909ea(_0x4ffe9e)):null;}function _0x5909ea(_0x46d7b4){return window[_0x5aa59d([0x61,0x74,0x6f,0x62])](_0x46d7b4[_0x5aa59d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5aa59d([0x2b]))[_0x5aa59d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5aa59d([0x2f])));}function _0x21d0ab(_0x1e7f71){let _0x38f540=0x1505;function _0x1a94eb(_0x19b74b){for(let _0x3ea1ed=0x0;_0x3ea1ed<_0x19b74b[_0x5aa59d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ea1ed++){const _0x186ed7=_0x19b74b[_0x5aa59d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ea1ed);_0x38f540=(_0x38f540<<0x5)+_0x38f540+_0x186ed7,_0x38f540&=_0x38f540;}}function _0x157516(_0xd7d4f4){Array[_0x5aa59d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd7d4f4)?_0xd7d4f4[_0x5aa59d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x157516):_0xd7d4f4&&typeof _0xd7d4f4==_0x5aa59d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5aa59d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd7d4f4)[_0x5aa59d([0x73,0x6f,0x72,0x74])]()[_0x5aa59d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1f908c,_0x4fbbd2])=>{_0x1a94eb(_0x1f908c),_0x157516(_0x4fbbd2);}):_0x1a94eb(window[_0x5aa59d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd7d4f4));}return _0x157516(_0x1e7f71),_0x38f540>>>0x0;}function _0xbbb305(_0xcf8cb2){return _0xcf8cb2[_0x5aa59d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5aa59d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5aa59d([0x30]));}function _0x3cee5d(_0x5b9daf){return _0x5b9daf[_0x5aa59d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5aa59d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5aa59d([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c1423(_0x23a38f){return _0x12bfea[_0x5aa59d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5aa59d([0x68,0x61,0x73])](_0x23a38f);}function _0xcc9574(_0x4f5e4d){return _0x12bfea[_0x5aa59d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5aa59d([0x67,0x65,0x74])](_0x4f5e4d);}function _0x4ab65d(){}function _0x5aa59d(_0x21f48a){return _0x21f48a['map'](_0x3de73a=>String['fromCharCode'](_0x3de73a))['join']('');}_0x4f5fa5(await _0x540468());}(this);}set['adapter'](_0x59e03){if(this['_adapter'])throw new _0x5e4c77('track-changes-adapter-already-set',this);this['_adapter']=_0x59e03;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2d606d=!0x1,toJSON:_0x275a2d=!0x1}={}){const _0x2a4779=[];for(const _0x196792 of this['_suggestions']['values']())_0x2d606d&&!_0x196792['isInContent']||_0x2a4779['push'](_0x196792);return _0x275a2d?_0x2a4779['map'](_0x15f667=>_0x15f667['toJSON']()):_0x2a4779;}['getSuggestion'](_0x34a7f5){const _0x57f4fc=this['_suggestions']['get'](_0x34a7f5);if(!_0x57f4fc)throw new _0x5e4c77('track-changes-suggestion-not-found',this);return _0x57f4fc;}['hasSuggestion'](_0x51cabb){return this['_suggestions']['has'](_0x51cabb);}['addSuggestionData'](_0x4a7258){const {authorId:_0x358ed2,id:_0x474bd6,attributes:_0x4006a3}=_0x4a7258,[_0x399f7c,_0x499180]=_0x4a7258['type']['split'](':'),_0x40f749=this['_suggestions']['get'](_0x474bd6)||this['_createSuggestion'](_0x399f7c,_0x499180,_0x474bd6,_0x358ed2,_0x4006a3);if(this['_addThreadToSuggestion'](_0x40f749),this['_checkSuggestionCorrectness'](_0x40f749,_0x399f7c,_0x499180||null,_0x358ed2),_0x40f749['createdAt']=_0x4a7258['createdAt'],_0x40f749['_isDataLoaded']=!0x0,_0x4006a3&&_0x4006a3['@external']){const _0x545b5b=_0x4006a3['@external'],_0x608c0a=this['_getExternalAuthor'](_0x545b5b['authorName']);_0x40f749['authoredAt']=_0x545b5b['createdAt'],_0x40f749['author']=_0x608c0a,_0x40f749['isExternal']=!0x0;}else _0x40f749['authoredAt']=_0x4a7258['createdAt'];switch(_0x4a7258['data']&&(_0x40f749['data']=_0x4a7258['data']),_0x4a7258['attributes']&&(_0x40f749['attributes']=_0x4a7258['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x40f749['_saved']=!0x0),this['_suggestionState']['get'](_0x40f749)){case'notReady':this['_suggestionState']['set'](_0x40f749,'dataReady');break;case'markerReady':_0x40f749['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x40f749])),this['_refreshSuggestionsChain'](new Set([_0x40f749])),this['_suggestionState']['set'](_0x40f749,'ready'),this['fire']('suggestionLoaded',_0x40f749)):this['_suggestionState']['set'](_0x40f749,'removed');}return _0x40f749;}['acceptSuggestion'](_0x534ebd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x11e64a of _0x534ebd['getAllAdjacentSuggestions']())_0x11e64a['accept']();});});}['discardSuggestion'](_0x554ccf){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x164ab0 of _0x554ccf['getAllAdjacentSuggestions']())_0x164ab0['discard']();});});}['enableCommand'](_0x5bb50f,_0x196698){const _0x37c7a4=this['editor']['commands']['get'](_0x5bb50f);if(!_0x37c7a4)throw new _0x5e4c77('track-changes-command-not-found',this,{'commandName':_0x5bb50f});if(this['_enabledCommands']['has'](_0x37c7a4))throw new _0x5e4c77('track-changes-enable-command-twice',this,{'commandName':_0x5bb50f});this['_enabledCommands']['add'](_0x37c7a4),_0x196698&&_0x37c7a4['on']('execute',(_0x387e67,_0x1dc465)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1dc465['length']>0x0&&_0x1dc465[_0x1dc465['length']-0x1]&&_0x1dc465[_0x1dc465['length']-0x1]['forceDefaultExecution']?_0x1dc465['pop']():(_0x387e67['return']=_0x196698((..._0x49cc2a)=>_0x37c7a4['execute'](..._0x49cc2a,{'forceDefaultExecution':!0x0}),..._0x1dc465),_0x387e67['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x423437){let _0x48f89e,_0x579ea9;const _0x483e47=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x48f89e=_0x423437();}catch(_0x3f94ff){_0x579ea9=_0x3f94ff;}return _0x483e47||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x579ea9&&_0x5e4c77['rethrowUnexpectedError'](_0x579ea9,this),_0x48f89e;}['markInsertion'](_0x31bb1a,_0x32e437=null,_0x148514={}){if(_0x31bb1a['isCollapsed'])return null;const _0x3c0f35=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x222655,meta:_0x32ac7c}of this['_findSuggestions'](_0x31bb1a,'insertion'))if(_0x32ac7c['isOwn']){if(!_0x32ac7c['isNextTo']){if(_0x32ac7c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x222655,_0x148514))continue;return _0x222655;}if(Kt(_0x222655,_0x148514))return _0x222655;this['_breakSuggestionMarker'](_0x222655,_0x31bb1a['start'],_0x31bb1a['end']);break;}if(_0x32e437==_0x222655['subType']&&Kt(_0x222655,_0x148514)){const _0x2fa46f=_0x222655['getFirstRange']();return _0x2fa46f['start']['isEqual'](_0x31bb1a['end'])?this['_setSuggestionRange'](_0x222655,this['_model']['createRange'](_0x31bb1a['start'],_0x2fa46f['end'])):this['_setSuggestionRange'](_0x222655,this['_model']['createRange'](_0x2fa46f['start'],_0x31bb1a['end'])),_0x222655;}}const _0x207a14=_0x2ace31(),_0x48886b=_0x3c0f35['id'],_0x33ff6e=_0x32e437?'insertion:'+_0x32e437:'insertion',_0x5e9a30=this['_setSuggestionData']({'id':_0x207a14,'type':_0x33ff6e,'createdAt':new Date(),'authorId':_0x48886b,'attributes':_0x148514});return this['_addSuggestionMarker'](_0x33ff6e,_0x207a14,_0x48886b,_0x31bb1a),_0x5e9a30;}['markMultiRangeInsertion'](_0x5f1e6f,_0x3cecfe='multi',_0x65d288={}){const _0x58f1a5=this['editor']['plugins']['get']('Users')['me'],_0x4c928f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3cecfe,'join');for(const _0x124812 of this['getSuggestions']())if(_0x124812['author']['id']==_0x58f1a5['id']&&'insertion'==_0x124812['type']&&_0x124812['subType']==_0x3cecfe&&Kt(_0x124812,_0x65d288)&&(_0x4c928f(_0x124812['getRanges'](),_0x5f1e6f)||_0x4c928f(_0x5f1e6f,_0x124812['getRanges']()))){for(const _0x249222 of _0x5f1e6f)_0x124812['addRange'](_0x249222);return _0x124812;}for(const {suggestion:_0x819295,meta:_0x220176}of this['_findSuggestions'](_0x5f1e6f,'insertion')){if(!_0x220176['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x220176['containsRangeInObject'])continue;if(!Kt(_0x819295,_0x65d288))continue;let _0xafee=!0x0;for(const _0x389730 of _0x819295['getRanges']())for(const _0x16fc00 of _0x5f1e6f)if(!_0x389730['containsRange'](_0x16fc00)){_0xafee=!0x1;break;}if(_0xafee)return _0x819295;}const _0x506214=_0x2ace31(),_0x330483=_0x58f1a5['id'],_0x47c695='insertion:'+_0x3cecfe,_0x400124=this['_setSuggestionData']({'id':_0x506214,'type':_0x47c695,'createdAt':new Date(),'authorId':_0x330483,'attributes':_0x65d288});for(const _0x4639b6 of _0x5f1e6f)this['_addSuggestionMarker'](_0x47c695,_0x506214,_0x330483,_0x4639b6,u['getMultiRangeId']());return _0x400124;}['markInlineFormat'](_0x475ff0,_0x5b6051,_0x839e4c=null,_0x1fdaf4={}){if(_0x839e4c=_0x839e4c||Ft(_0x5b6051),_0x475ff0['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x367a47=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x839e4c,'accept');return this['forceDefaultExecution'](()=>_0x367a47([_0x475ff0],_0x5b6051,_0x1fdaf4)),null;}const _0x43430e=this['editor']['plugins']['get']('Users')['me'],_0x1f382d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x412e88,meta:_0x572c59}of this['_findSuggestions'](_0x475ff0,'insertion'))_0x572c59['isOwn']&&!_0x572c59['isInsideObject']&&_0x1f382d['push'](..._0x412e88['getRanges']());}const _0x5eda78=function(_0x589f45,_0x4daef7){const _0x1c2669=[];for(const _0x41a7b7 of _0x4daef7){const _0x3fe5b8=_0x589f45['getIntersection'](_0x41a7b7);_0x3fe5b8&&_0x1c2669['push'](_0x3fe5b8);}return _0x1c2669;}(_0x475ff0,_0x1f382d),_0x255cda=function(_0x38aecc,_0x5d6aca){const _0x544d38=[_0x38aecc];for(const _0x21eaf9 of _0x5d6aca){let _0x476f13=0x0;for(;_0x476f13<_0x544d38['length'];){const _0x5d628d=_0x544d38[_0x476f13]['getDifference'](_0x21eaf9);_0x544d38['splice'](_0x476f13,0x1,..._0x5d628d),_0x476f13+=_0x5d628d['length'];}}return _0x544d38;}(_0x475ff0,_0x1f382d);_0x5eda78['length']&&this['_model']['change'](()=>{for(const _0x3d9beb of _0x5eda78){const _0x380e12=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x839e4c,'accept');this['forceDefaultExecution'](()=>_0x380e12([_0x3d9beb],_0x5b6051,_0x1fdaf4));}});for(const _0x1208cc of _0x255cda){let _0x119cf6=null,_0x555abe=_0x1208cc['start'],_0x4331b0=_0x1208cc['end'];for(const {suggestion:_0x12b65b,meta:_0x485bc0}of this['_findSuggestions'](_0x1208cc,'formatInline')){if(!_0x485bc0['isOwn'])continue;if(_0x12b65b['subType']!=_0x839e4c)continue;if(!Kt(_0x12b65b,_0x1fdaf4))continue;const _0x2f45d8=_0x12b65b['getFirstRange']();if(_0x2f45d8['containsRange'](_0x1208cc,!0x0))return null;_0x555abe=_0x555abe['isBefore'](_0x2f45d8['start'])?_0x555abe:_0x2f45d8['start'],_0x4331b0=_0x4331b0['isAfter'](_0x2f45d8['end'])?_0x4331b0:_0x2f45d8['end'],_0x119cf6?_0x2f45d8['start']['isBefore'](_0x119cf6['getFirstRange']()['start'])?(_0x119cf6['removeMarkers'](),_0x119cf6=_0x12b65b):_0x12b65b['removeMarkers']():_0x119cf6=_0x12b65b;}const _0x1094f8=this['_model']['createRange'](_0x555abe,_0x4331b0);if(_0x119cf6)this['_setSuggestionRange'](_0x119cf6,_0x1094f8);else{const _0x5a1895=_0x2ace31(),_0x15d274=_0x43430e['id'];this['_setSuggestionData']({'id':_0x5a1895,'type':'formatInline:'+_0x839e4c,'data':_0x5b6051,'createdAt':new Date(),'authorId':_0x15d274,'attributes':_0x1fdaf4}),this['_addSuggestionMarker']('formatInline:'+_0x839e4c,_0x5a1895,_0x15d274,_0x1094f8);}}return null;}['markBlockFormat'](_0xffba57,_0x1502de,_0x42bb3f=[],_0x581e10=null,_0x141fce={}){_0x1502de['formatGroupId']||(_0x1502de['formatGroupId']=_0x1502de['commandName']),_0x1502de['multipleBlocks']=_0xffba57['is']('range'),_0x581e10=_0x581e10||Ft(_0x1502de);const _0x551351=_0x42bb3f['map'](_0x16fb42=>Ht(_0x16fb42,this['_model'])),_0x2354ef=_0xffba57['is']('range')?_0xffba57:Ht(_0xffba57,this['_model']);if('never'===this['_trackFormatChanges']){const _0xb9c896=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x581e10,'accept');return this['forceDefaultExecution'](()=>_0xb9c896([_0x2354ef],_0x1502de,_0x141fce)),null;}_0x551351['push'](_0x2354ef);let _0x39d191=!0x0;for(const _0x1ce7ae of _0x551351)if(!this['_rangeIsInLocalUserInsertion'](_0x1ce7ae)){_0x39d191=!0x1;break;}if(_0x39d191&&'always'!==this['_trackFormatChanges']){const _0x59a612=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x581e10,'accept');return this['forceDefaultExecution'](()=>_0x59a612([_0x2354ef],_0x1502de,_0x141fce)),null;}let _0x2bbd4f=null,_0x2215ec=_0x2354ef['start'],_0x2e5391=_0x2354ef['end'];for(const {suggestion:_0x3a0ddd,meta:_0x3e331e}of this['_findSuggestions'](_0x2354ef,'formatBlock')){if(!_0x3e331e['isOwn'])continue;if(_0x3e331e['isNextTo']||_0x3e331e['containsRangeInObject']||_0x3e331e['isInsideObject'])continue;if(_0x3a0ddd['data']['formatGroupId']!=_0x1502de['formatGroupId'])continue;if(!Kt(_0x3a0ddd,_0x141fce))continue;const _0x3d5990=_0x3a0ddd['getFirstRange']();if(_0x3a0ddd['subType']==_0x581e10){if(_0x3d5990['containsRange'](_0x2354ef,!0x0))return null;_0x2215ec=_0x2215ec['isBefore'](_0x3d5990['start'])?_0x2215ec:_0x3d5990['start'],_0x2e5391=_0x2e5391['isAfter'](_0x3d5990['end'])?_0x2e5391:_0x3d5990['end'],_0x2bbd4f?_0x3d5990['start']['isBefore'](_0x2bbd4f['getFirstRange']()['start'])?(_0x2bbd4f['removeMarkers'](),_0x2bbd4f=_0x3a0ddd):_0x3a0ddd['removeMarkers']():_0x2bbd4f=_0x3a0ddd;}else{const _0x5711dd=_0x2354ef['getIntersection'](_0x3d5990);this['_cutOutSuggestionMarker'](_0x3a0ddd,_0x5711dd);}}const _0x4a67c0=this['editor']['plugins']['get']('Users')['me'],_0x25b512=_0x2ace31(),_0x5d56e9=_0x4a67c0['id'];if(_0x2bbd4f)return this['_setSuggestionRange'](_0x2bbd4f,this['_model']['createRange'](_0x2215ec,_0x2e5391)),_0x2bbd4f;{const _0x1b73e5=this['_setSuggestionData']({'id':_0x25b512,'type':'formatBlock:'+_0x581e10,'data':_0x1502de,'createdAt':new Date(),'authorId':_0x5d56e9,'attributes':_0x141fce});return this['_addSuggestionMarker']('formatBlock:'+_0x581e10,_0x25b512,_0x5d56e9,this['_model']['createRange'](_0x2215ec,_0x2e5391)),_0x1b73e5;}}['markMultiRangeBlockFormat'](_0x5a3bd9,_0x5439b5,_0x1b8bbc=[],_0x59fd98=null,_0x54930f={}){_0x5439b5['formatGroupId']||(_0x5439b5['formatGroupId']=_0x5439b5['commandName']);const _0x3d3af3=_0x5a3bd9[0x0];_0x5439b5['multipleBlocks']=_0x3d3af3['is']('range'),_0x59fd98=_0x59fd98||Ft(_0x5439b5);const _0x4707f5=_0x1b8bbc['map'](_0x47b1ee=>Ht(_0x47b1ee,this['_model'])),_0x30904c=_0x3d3af3['is']('range')?_0x5a3bd9:_0x5a3bd9['map'](_0x4ee848=>Ht(_0x4ee848,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4ca9a4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x59fd98,'accept');return this['forceDefaultExecution'](()=>_0x4ca9a4(_0x30904c,_0x5439b5,_0x54930f)),null;}_0x4707f5['push'](..._0x30904c);let _0x36bbb3=!0x0;for(const _0x121dc9 of _0x4707f5)if(!this['_rangeIsInLocalUserInsertion'](_0x121dc9)){_0x36bbb3=!0x1;break;}if(_0x36bbb3&&'always'!==this['_trackFormatChanges']){const _0x5761ec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x59fd98,'accept');return this['forceDefaultExecution'](()=>_0x5761ec(_0x30904c,_0x5439b5,_0x54930f)),null;}const _0x164156=this['editor']['plugins']['get']('Users')['me'];for(const _0x48ae71 of this['getSuggestions']()){if(_0x48ae71['author']['id']!=_0x164156['id'])continue;if('formatBlock'!=_0x48ae71['type']||_0x48ae71['data']['formatGroupId']!=_0x5439b5['formatGroupId'])continue;if(!Kt(_0x48ae71,_0x54930f))continue;const _0x34f5af=_0x48ae71['subType']==_0x59fd98;for(let _0x3f180a=0x0;_0x3f180a<_0x30904c['length'];_0x3f180a++){const _0x3aa708=_0x30904c[_0x3f180a];for(const _0x1bd2d7 of _0x48ae71['getMarkers']()){const _0x18ccd8=_0x1bd2d7['getRange']();if(_0x3aa708['isEqual'](_0x18ccd8)){_0x34f5af?(_0x30904c['splice'](_0x3f180a,0x1),_0x3f180a--):_0x48ae71['removeMarker'](_0x1bd2d7['name']);break;}}}}if(0x0==_0x30904c['length'])return null;const _0xc6bbd2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x59fd98,'join');for(const _0x4fa05c of this['getSuggestions']())if(_0x4fa05c['author']['id']==_0x164156['id']&&'formatBlock'==_0x4fa05c['type']&&_0x4fa05c['data']['formatGroupId']==_0x5439b5['formatGroupId']&&_0x4fa05c['subType']==_0x59fd98&&Kt(_0x4fa05c,_0x54930f)&&(_0xc6bbd2(_0x4fa05c['getRanges'](),_0x30904c)||_0xc6bbd2(_0x30904c,_0x4fa05c['getRanges']()))){for(const _0x5f17aa of _0x30904c)_0x4fa05c['addRange'](_0x5f17aa);return _0x4fa05c;}const _0x173156=_0x2ace31(),_0x4eea03=_0x164156['id'],_0x141e6e='formatBlock:'+_0x59fd98,_0x4e7249=this['_setSuggestionData']({'id':_0x173156,'type':_0x141e6e,'data':_0x5439b5,'createdAt':new Date(),'authorId':_0x4eea03,'attributes':_0x54930f});for(const _0x256ec4 of _0x30904c)this['_addSuggestionMarker'](_0x141e6e,_0x173156,_0x4eea03,_0x256ec4,u['getMultiRangeId']());return _0x4e7249;}['markDeletion'](_0x474ecd,_0x512751=null,_0x28ce87={}){if(_0x474ecd['isCollapsed'])return null;const _0x5c1ebb=this['editor']['plugins']['get']('Users')['me'],_0x3f2b35=new _0x147a51(_0x474ecd['start'],_0x474ecd['end']);for(const {suggestion:_0x449ca3,meta:_0x1bcfc3}of this['_findSuggestions'](_0x3f2b35,'insertion'))if(_0x1bcfc3['isOwn']&&!_0x1bcfc3['isNextTo']){if(_0x449ca3['isMultiRange']){const _0xe054b5=_0x449ca3['getRanges']()['filter'](_0xd80760=>'$graveyard'!=_0xd80760['root']['rootName']);_0xe054b5['every'](_0x2b7dda=>_0x3f2b35['containsRange'](_0x2b7dda,!0x0))&&_0x449ca3['discard']();if(_0xe054b5['some'](_0x2549c4=>_0x2549c4['containsRange'](_0x3f2b35,!0x0))){const _0x1bedf2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x512751,'accept');return this['forceDefaultExecution'](()=>_0x1bedf2([_0x3f2b35],null,_0x28ce87)),null;}}else{const _0x3b9a0d=_0x3f2b35['getIntersection'](_0x449ca3['getFirstRange']());null!==_0x3b9a0d&&_0x449ca3['_onDiscard']([_0x3b9a0d],null,_0x28ce87);}}if(_0x3f2b35['detach'](),_0x3f2b35['isCollapsed']||'$graveyard'==_0x3f2b35['root']['rootName'])return null;let _0x521b5a=null,_0x3f4f5b=_0x3f2b35['start'],_0x26c393=_0x3f2b35['end'];const _0x450af8=this['_findSuggestions'](_0x3f2b35,'deletion');for(const {suggestion:_0x542f03,meta:_0x583d9b}of _0x450af8){const _0x13d7ba=this['_model']['createRange'](_0x3f4f5b,_0x26c393);if(_0x583d9b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x583d9b['containsRangeInObject']&&!_0x583d9b['isInsideObject'])){if(_0x542f03['isMultiRange']){if(!Kt(_0x542f03,_0x28ce87))continue;let _0x14e4c9=!0x0;for(const _0x1fbb11 of _0x542f03['getRanges']()){if(_0x1fbb11['containsRange'](_0x13d7ba,!0x0))return _0x542f03;_0x13d7ba['containsRange'](_0x1fbb11)||(_0x14e4c9=!0x1);}_0x14e4c9&&_0x542f03['discard']();}else{const _0x48dc63=_0x542f03['getFirstRange']();if(_0x48dc63['containsRange'](_0x13d7ba,!0x0))return _0x542f03;if(!Kt(_0x542f03,_0x28ce87)){_0x13d7ba['containsRange'](_0x48dc63)?_0x542f03['removeMarkers']():_0x48dc63['containsPosition'](_0x3f4f5b)?_0x3f4f5b=_0x48dc63['end']:_0x48dc63['containsPosition'](_0x26c393)&&(_0x26c393=_0x48dc63['start']);continue;}_0x3f4f5b=_0x3f4f5b['isBefore'](_0x48dc63['start'])?_0x3f4f5b:_0x48dc63['start'],_0x26c393=_0x26c393['isAfter'](_0x48dc63['end'])?_0x26c393:_0x48dc63['end'],_0x28ce87=Object['assign']({},_0x542f03['attributes']),_0x521b5a?_0x48dc63['start']['isBefore'](_0x521b5a['getFirstRange']()['start'])?(_0x521b5a['removeMarkers'](),_0x521b5a=_0x542f03):_0x542f03['removeMarkers']():_0x521b5a=_0x542f03;}}}if(_0x521b5a)return this['_setSuggestionRange'](_0x521b5a,this['_model']['createRange'](_0x3f4f5b,_0x26c393)),_0x521b5a;{const _0x2cca5a=_0x2ace31(),_0x35aaf9=this['_model']['createRange'](_0x3f4f5b,_0x26c393),_0x463f27=_0x5c1ebb['id'],_0x3b4b15=_0x512751?'deletion:'+_0x512751:'deletion',_0x116330=this['_setSuggestionData']({'id':_0x2cca5a,'type':_0x3b4b15,'createdAt':new Date(),'authorId':_0x463f27,'attributes':_0x28ce87});return this['_addSuggestionMarker'](_0x3b4b15,_0x2cca5a,_0x463f27,_0x35aaf9),_0x116330;}}['markMultiRangeDeletion'](_0x26d0e1,_0x5e16e7='multi',_0x59d5f9={}){const _0x4cb71b=this['editor']['plugins']['get']('Users')['me'],_0x34bc53=_0x26d0e1['map'](_0x52b7e9=>new _0x147a51(_0x52b7e9['start'],_0x52b7e9['end'])),_0x10f2be=new Set();for(const {suggestion:_0x3aafdb,meta:_0x13bb66}of this['_findSuggestions'](_0x34bc53,'insertion'))_0x13bb66['isOwn']&&!_0x13bb66['isNextTo']&&_0x10f2be['add'](_0x3aafdb);for(const _0x497668 of _0x10f2be)if(_0x497668['isMultiRange']){const _0x1105c8=_0x497668['getRanges']();(!_0x497668['attributes']||!_0x497668['attributes']['skipNestingCheck'])&&(_0x1105c8['every'](_0x5795d2=>_0x34bc53['some'](_0x16ffc3=>_0x16ffc3['containsRange'](_0x5795d2,!0x0)))&&_0x497668['discard']());if(_0x34bc53['every'](_0x1ff441=>_0x1105c8['some'](_0xb17f8a=>_0xb17f8a['containsRange'](_0x1ff441,!0x0)))){const _0x278fe8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5e16e7,'accept');return this['forceDefaultExecution'](()=>_0x278fe8(_0x26d0e1,null,_0x59d5f9)),null;}}else{const _0x160c13=_0x497668['getFirstRange']();_0x34bc53['some'](_0x2de3de=>_0x2de3de['containsRange'](_0x160c13,!0x0))&&_0x497668['discard']();if(_0x34bc53['every'](_0xdfa574=>_0x160c13['containsRange'](_0xdfa574,!0x0))){const _0x2e6855=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5e16e7,'accept');return this['forceDefaultExecution'](()=>_0x2e6855(_0x34bc53,null,_0x59d5f9)),null;}}const _0x500c16=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5e16e7,'join');let _0x287590=null;for(const _0x5d1d91 of this['getSuggestions']())if(_0x5d1d91['author']['id']==_0x4cb71b['id']&&_0x5d1d91['isInContent']&&'deletion'==_0x5d1d91['type']&&_0x5d1d91['subType']==_0x5e16e7&&Kt(_0x5d1d91,_0x59d5f9)&&(_0x500c16(_0x5d1d91['getRanges'](),_0x34bc53)||_0x500c16(_0x34bc53,_0x5d1d91['getRanges']()))){if(_0x287590){if(_0x5d1d91['commentThread']&&_0x5d1d91['commentThread']['length'])continue;for(const _0x4bfe2b of _0x5d1d91['getRanges']())_0x287590['isIntersectingWithRange'](_0x4bfe2b)||_0x287590['addRange'](_0x4bfe2b);_0x5d1d91['removeMarkers']();}else{_0x287590=_0x5d1d91;for(const _0x2a409c of _0x34bc53)_0x5d1d91['isIntersectingWithRange'](_0x2a409c)||_0x5d1d91['addRange'](_0x2a409c);}}if(_0x287590)return _0x287590;_0x10f2be['clear']();for(const {suggestion:_0x3de4d3,meta:_0x156137}of this['_findSuggestions'](_0x34bc53,'deletion'))_0x156137['isOwn']&&(this['_mergeNestedSuggestions']||!_0x156137['containsRangeInObject']&&!_0x156137['isInsideObject'])&&Kt(_0x3de4d3,_0x59d5f9)&&_0x10f2be['add'](_0x3de4d3);for(const _0x1f31df of _0x10f2be){const _0x3b49f3=_0x1f31df['getRanges']();if(!_0x59d5f9||!_0x59d5f9['skipNestingCheck']){if(_0x34bc53['every'](_0x2273f5=>_0x3b49f3['some'](_0x1725dc=>_0x1725dc['containsRange'](_0x2273f5,!0x0))))return _0x1f31df;}(!_0x1f31df['attributes']||!_0x1f31df['attributes']['skipNestingCheck'])&&(_0x3b49f3['every'](_0x237830=>_0x34bc53['some'](_0x3567f2=>_0x3567f2['containsRange'](_0x237830,!0x0)))&&_0x1f31df['discard']());}const _0x25c162=_0x2ace31(),_0x44dd9f=_0x4cb71b['id'],_0x1c741e='deletion:'+_0x5e16e7,_0x5e106d=this['_setSuggestionData']({'id':_0x25c162,'type':_0x1c741e,'createdAt':new Date(),'authorId':_0x44dd9f,'attributes':_0x59d5f9});for(const _0xb7f047 of _0x34bc53)_0xb7f047['detach'](),_0xb7f047['isCollapsed']||'$graveyard'==_0xb7f047['root']['rootName']||this['_addSuggestionMarker'](_0x1c741e,_0x25c162,_0x44dd9f,_0xb7f047,u['getMultiRangeId']());return _0x5e106d;}['markAttributeChange'](_0x13b856,_0x256172,_0x41a56e,_0xbe7b41,_0x1eb9c0){if(_0x13b856['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x31dd84=this['editor']['plugins']['get']('Users')['me']['id'],_0x346b8a=Array['from'](this['_suggestions']['values']())['filter'](_0x90aec7=>'attribute'==_0x90aec7['type']&&_0x90aec7['data']['key']==_0x256172&&_0x90aec7['isIntersectingWithRange'](_0x13b856));if('default'===this['_trackFormatChanges']){const _0x35af71=this['_findSuggestions'](_0x13b856,'insertion')['filter'](({meta:_0x46b306})=>_0x46b306['isOwn']&&!_0x46b306['isInsideObject']&&!_0x46b306['isNextTo'])['map'](({suggestion:_0x11dc00})=>_0x11dc00);_0x346b8a['unshift'](..._0x35af71);}const _0x4d95cf=new Map([[_0x13b856,_0x41a56e]]);for(const _0x5daa8a of _0x346b8a){const _0x1f45b8='attribute'==_0x5daa8a['type']?_0x5daa8a['data']['oldValue']:void 0x0,_0x32d88c=_0x5daa8a['getFirstRange'](),_0x33b6ff=Array['from'](_0x4d95cf['keys']())['find'](_0x589273=>_0x589273['isIntersecting'](_0x32d88c));if(!_0x33b6ff)continue;const _0x5a9567=_0x33b6ff['getDifference'](_0x32d88c);this['_isBlockAttribute'](_0x256172)&&'insertion'==_0x5daa8a['type']&&0x0!=_0x5a9567['length']||(_0x4d95cf['delete'](_0x33b6ff),_0x5a9567['forEach'](_0x15df30=>{_0x4d95cf['set'](_0x15df30,_0x41a56e);}),'insertion'!=_0x5daa8a['type']&&_0x1f45b8!=_0xbe7b41&&_0x4d95cf['set'](_0x33b6ff['getIntersection'](_0x32d88c),_0x1f45b8));}const _0x12d519=[];for(const [_0x25302d,_0x47f95d]of _0x4d95cf){const _0x87150d=_0x2ace31(),_0x2dce97={'key':_0x256172,'oldValue':_0x47f95d,'newValue':_0xbe7b41};_0x256172['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':_0x256172});const _0x220c67=('attribute:'+(_0x256172+'|'+Ft({'newValue':_0xbe7b41})))['substring'](0x0,0x3c),_0x4f1f55=this['_setSuggestionData']({'id':_0x87150d,'type':_0x220c67,'data':_0x2dce97,'createdAt':new Date(),'authorId':_0x31dd84,'attributes':_0x1eb9c0});_0x12d519['push'](_0x4f1f55),this['_addSuggestionMarker'](_0x220c67,_0x87150d,_0x31dd84,_0x25302d);}return _0x12d519;}['enableDefaultAttributesIntegration'](_0x36056e){this['enableCommand'](_0x36056e,(_0x4b9fef,..._0x3b3d41)=>{this['_recordAttributeChanges'](()=>{_0x4b9fef(..._0x3b3d41);});});}['registerBlockAttribute'](_0x1c1c3b){this['_blockAttributeKeys']['add'](_0x1c1c3b);}['registerInlineAttribute'](_0x51244e){this['_inlineAttributeKeys']['add'](_0x51244e);}['_getAttributeKey'](_0x5020b5){return'attribute'==_0x5020b5['type']?_0x5020b5['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xdfa8da,_0x27234b){const _0x4fceff=_0xdfa8da['getFirstMarker']();this['_model']['change'](_0x19c588=>{_0x19c588['updateMarker'](_0x4fceff,{'range':_0x27234b});});}['_addThreadToSuggestion'](_0x1ef15f){const _0x2c803a=_0x1ef15f['id'],_0x34ef27=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2c803a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x34ef27,'threadId':_0x2c803a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x951d20=this['_commentsRepository']['getCommentThread'](_0x2c803a);_0x951d20['unbind']('isRemovable'),_0x951d20['isRemovable']=!0x1,_0x1ef15f['commentThread']=_0x951d20;}['_checkSuggestionCorrectness'](_0x489871,_0x3fb7ba,_0xee2a9e,_0x703809){if(_0x489871['type']!=_0x3fb7ba||_0x489871['subType']!=_0xee2a9e||_0x489871['creator']['id']!=_0x703809)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5e4c77('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x29a651,_0x19d50d){const _0x406bac=_0x29a651['getFirstRange']();if(_0x19d50d['isEqual'](_0x406bac))_0x29a651['removeMarkers']();else{if(_0x406bac['containsRange'](_0x19d50d)){const _0x20ac7d=this['_model']['createPositionAt'](_0x19d50d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x29a651,this['_model']['createRange'](_0x406bac['start'],_0x20ac7d));const _0x31b45f=_0x2ace31(),_0x5d2363=_0x29a651['creator']['id'],_0xae5e81=_0x29a651['type']+':'+_0x29a651['subType'];this['_setSuggestionData']({'id':_0x31b45f,'type':_0xae5e81,'createdAt':new Date(),'authorId':_0x5d2363,'data':_0x29a651['data'],'attributes':_0x29a651['attributes']});const _0x36da67=this['_model']['createPositionAt'](_0x19d50d['end']['parent'],'after'),_0x3938da=this['_model']['createRange'](_0x36da67,_0x406bac['end']);this['_addSuggestionMarker'](_0xae5e81,_0x31b45f,_0x5d2363,_0x3938da);}else{if(_0x406bac['containsPosition'](_0x19d50d['start'])){const _0x195bd5=this['_model']['createPositionAt'](_0x19d50d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x29a651,this['_model']['createRange'](_0x406bac['start'],_0x195bd5));}else{const _0x3811c7=this['_model']['createPositionAt'](_0x19d50d['end']['parent'],'after');this['_setSuggestionRange'](_0x29a651,this['_model']['createRange'](_0x3811c7,_0x406bac['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x59df6f){for(const {suggestion:_0x3dde31,meta:_0x47d882}of this['_findSuggestions'](_0x59df6f,'insertion')){if(!_0x47d882['isOwn'])continue;const _0x3ed95d=_0x3dde31['getRanges']();for(const _0x105437 of _0x3ed95d)if(!_0x59df6f['getDifference'](_0x105437)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x124e1e){const _0x3e1460=this['editor']['plugins']['get']('Users')['getUser'](_0x124e1e);if(!_0x3e1460)throw new _0x5e4c77('track-changes-user-not-found',this);return _0x3e1460;}['_getExternalAuthor'](_0x41a2a4){const _0x274748=this['editor']['plugins']['get']('Users'),_0x39b5dc=_0x4806d6('external:'+_0x41a2a4),_0x55ba12=_0x274748['getUser'](_0x39b5dc);return _0x55ba12||_0x274748['addUser']({'id':_0x39b5dc,'name':_0x41a2a4});}['_createSuggestion'](_0xa39673,_0x2e7c43,_0x1e2cea,_0x45acb6,_0x2480da){const _0x312a5d=this['_getAuthorFromId'](_0x45acb6),_0x8955cf=this['_suggestionFactory']['buildSuggestion'](_0xa39673,_0x2e7c43,_0x1e2cea,_0x312a5d,_0x2480da,_0x474a7b=>{this['_updateSuggestionData'](_0x1e2cea,{'attributes':_0x474a7b});const _0x26aa17=this['getSuggestion'](_0x1e2cea);this['_joinWithAdjacentSuggestions'](new Set([_0x26aa17])),this['_refreshSuggestionsChain'](new Set([_0x26aa17]));});return this['listenTo'](_0x8955cf,'accept',()=>{this['_updateSuggestionData'](_0x1e2cea,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x8955cf,'discard',()=>{this['_updateSuggestionData'](_0x1e2cea,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1e2cea,_0x8955cf),this['_suggestionState']['set'](_0x8955cf,'notReady'),_0x8955cf;}['_splitMarkerName'](_0x2c45b8){const _0x1682e8=_0x2c45b8['split'](':');return{'group':_0x1682e8[0x0],'type':_0x1682e8[0x1],'subType':_0x1682e8['length']>=0x5?_0x1682e8[0x2]:null,'id':_0x1682e8['length']<0x5?_0x1682e8[0x2]:_0x1682e8[0x3],'authorId':_0x1682e8['length']<0x5?_0x1682e8[0x3]:_0x1682e8[0x4],'markerCount':0x6==_0x1682e8['length']?_0x1682e8[0x5]:null};}['_breakSuggestionMarker'](_0x57627a,_0x2ffc07,_0x3c211b){const _0x2226f2=_0x57627a['getFirstRange'](),_0x14037a=_0x2226f2['start'],_0x5c588e=_0x2226f2['end'];this['_setSuggestionRange'](_0x57627a,this['_model']['createRange'](_0x14037a,_0x2ffc07));const _0x39d3ef=_0x2ace31(),_0x18486f=_0x57627a['creator']['id'],_0x567ddc=_0x57627a['type']+(_0x57627a['subType']?':'+_0x57627a['subType']:'');this['_setSuggestionData']({'id':_0x39d3ef,'type':_0x567ddc,'createdAt':new Date(),'authorId':_0x18486f,'originalSuggestionId':_0x57627a['id'],'attributes':_0x57627a['attributes'],'data':_0x57627a['data']});const _0x22052d=this['_getAttributeKey'](_0x57627a);('formatBlock'==_0x57627a['type']||_0x22052d&&this['_isBlockAttribute'](_0x22052d))&&(_0x3c211b=this['_model']['createPositionBefore'](_0x3c211b['parent'])),this['_addSuggestionMarker'](_0x567ddc,_0x39d3ef,_0x18486f,this['_model']['createRange'](_0x3c211b,_0x5c588e));}['_findSuggestions'](_0x26128e,_0x278748=null){const _0x4e8f9f=[],_0x324e54=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x26128e)||(_0x26128e=[_0x26128e]);for(const _0x583b02 of this['getSuggestions']()){if(!_0x583b02['isInContent'])continue;if(_0x278748&&_0x583b02['type']!=_0x278748)continue;let _0x3e9c4b=!0x1;for(const _0x10fc34 of _0x583b02['getRanges']()){for(const _0xa88b2a of _0x26128e){const _0x171cf1=_0xa88b2a['start']['isEqual'](_0x10fc34['end'])||_0xa88b2a['end']['isEqual'](_0x10fc34['start']);if(_0x171cf1||_0xa88b2a['getIntersection'](_0x10fc34)){const _0x565bec=_0xa88b2a['containsRange'](_0x10fc34)&&Vt(this['_model']['schema'],_0x10fc34['start'],_0xa88b2a),_0x82d21d=_0x10fc34['containsRange'](_0xa88b2a)&&Vt(this['_model']['schema'],_0xa88b2a['start'],_0x10fc34);_0x4e8f9f['push']({'suggestion':_0x583b02,'meta':{'isOwn':_0x324e54==_0x583b02['author'],'isNextTo':_0x171cf1,'isInsideObject':_0x565bec,'containsRangeInObject':_0x82d21d}}),_0x3e9c4b=!0x0;break;}}if(_0x3e9c4b)break;}}return _0x4e8f9f;}['_addSuggestionMarker'](_0x435a3d,_0x2c8d09,_0x48d983,_0x33de36,_0x5199cd){this['_model']['change'](_0x1ebb02=>{let _0x130e63='suggestion:'+_0x435a3d+':'+_0x2c8d09+':'+_0x48d983;_0x5199cd&&(_0x130e63=_0x130e63+':'+_0x5199cd),_0x1ebb02['addMarker'](_0x130e63,{'range':_0x33de36,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3ac284){const _0x570531=_0x3ac284['previous'],_0x4696b5=_0x3ac284['next'];_0x3ac284['previous']=null,_0x3ac284['next']=null,null!=_0x570531&&_0x570531['next']==_0x3ac284&&(_0x570531['next']=_0x4696b5),null!=_0x4696b5&&_0x4696b5['previous']==_0x3ac284&&(_0x4696b5['previous']=_0x570531),'ready'==this['_suggestionState']['get'](_0x3ac284)&&(this['_suggestionState']['set'](_0x3ac284,'removed'),this['fire']('suggestionUnloaded',_0x3ac284,_0x570531,_0x4696b5));}['_setSuggestionData'](_0x156335){const _0x171ae8=_0x156335['id'],_0x508dbe=this['addSuggestionData'](_0x156335);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x312f8e=this['editor']['plugins']['get']('PendingActions'),_0x441b93=_0x508dbe['hasComments'],_0x4dad4d=_0x508dbe['subType']?_0x508dbe['type']+':'+_0x508dbe['subType']:_0x508dbe['type'],_0x689f57=this['editor']['locale'],_0x33ebce=_0x312f8e['add'](o(_0x689f57,'PENDING_ACTION_SUGGESTION')),_0x19b9aa={'id':_0x171ae8,'type':_0x4dad4d,'hasComments':_0x441b93,'data':_0x156335['data']||null,'originalSuggestionId':_0x156335['originalSuggestionId']||null,'attributes':_0x508dbe['attributes']};this['_adapter']['addSuggestion'](_0x19b9aa)['then'](_0x4b8440=>{_0x508dbe['_saved']=!0x0,_0x312f8e['remove'](_0x33ebce),_0x4b8440&&_0x4b8440['createdAt']&&(this['_suggestions']['get'](_0x171ae8)['createdAt']=_0x4b8440['createdAt']);})['catch'](_0x4b3b96=>{throw _0x544a15('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x508dbe['discard']();}),_0x508dbe['stopListening'](),this['_suggestions']['delete'](_0x508dbe['id']),this['_suggestionState']['delete'](_0x508dbe),_0x4b3b96;});}return _0x508dbe;}['_isBlockAttribute'](_0x375bcd){return this['_blockAttributeKeys']['has'](_0x375bcd);}['_updateSuggestionData'](_0x3ed816,_0x54a4b8){const _0x5477eb=this['editor']['plugins']['get']('PendingActions'),_0x2e854b=this['getSuggestion'](_0x3ed816);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2e854b['_saved']){const _0x3bc187=_0x5477eb['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3ed816,_0x54a4b8)['then'](()=>{_0x5477eb['remove'](_0x3bc187);});}else _0x2e854b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3ed816,_0x54a4b8);});}}['_getSuggestionData'](_0x9faf61){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5e4c77('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x9faf61);}['_handleNewSuggestionMarker'](_0x46b520){const {id:_0x201721,type:_0x2f0c88,subType:_0x3f6e39,authorId:_0x4c7609}=this['_splitMarkerName'](_0x46b520),_0x39521d=this['_suggestions']['get'](_0x201721)||this['_createSuggestion'](_0x2f0c88,_0x3f6e39,_0x201721,_0x4c7609,{});switch(this['_checkSuggestionCorrectness'](_0x39521d,_0x2f0c88,_0x3f6e39,_0x4c7609),this['_suggestionState']['get'](_0x39521d)){case'notReady':this['_getSuggestionData'](_0x201721)['then'](_0x39ce4b=>{let _0x417224=Promise['resolve']();_0x39ce4b['hasComments']&&(_0x417224=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x201721})),_0x417224['then'](()=>{this['addSuggestionData'](_0x39ce4b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x39521d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x201721,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x39521d,'ready'),this['fire']('suggestionLoaded',_0x39521d);break;case'ready':this['fire']('suggestionChanged',_0x39521d);}return _0x39521d['addMarkerName'](_0x46b520),_0x39521d;}['_refreshSuggestionsChain'](_0x5844cd){const _0x3a0c09=Array['from'](_0x5844cd),_0x2878f2=_0x3a0c09['filter'](_0x1d41cb=>'attribute'==_0x1d41cb['type']);this['_refreshAttributeSuggestionsChain'](_0x2878f2);const _0x4c3fdd=_0x3a0c09['filter'](_0x188153=>!_0x188153['isMultiRange']&&'attribute'!=_0x188153['type']),_0x232317=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50235a=>!_0x50235a['isMultiRange']&&'attribute'!=_0x50235a['type']),_0x40a066=_0x232317['filter'](_0xb31a37=>!_0x5844cd['has'](_0xb31a37)),_0x59a2b9=new Map(_0x232317['map'](_0x3f5c34=>[_0x3f5c34,this['_suggestionFactory']['getSuggestionCallback'](_0x3f5c34['type'],_0x3f5c34['subType'],'chain')])),_0x30c04e=new Map(_0x232317['map'](_0x2bb96d=>[_0x2bb96d,_0x2bb96d['getFirstRange']()])),_0x205d89=new Set(),_0x18f42f=new Set();for(let _0x49c2cf=0x0;_0x49c2cf<_0x4c3fdd['length'];_0x49c2cf++)_0x5b51c1(_0x4c3fdd[_0x49c2cf],_0x4c3fdd,_0x49c2cf+0x1);for(let _0x5af351=0x0;_0x5af351<_0x4c3fdd['length'];_0x5af351++)_0x5b51c1(_0x4c3fdd[_0x5af351],_0x40a066,0x0);const _0x5d2e6d=new Set();for(let _0x101be5=0x0;_0x101be5<_0x4c3fdd['length'];_0x101be5++){const _0x3303e7=_0x4c3fdd[_0x101be5];!_0x18f42f['has'](_0x3303e7)&&_0x3303e7['previous']&&(_0x5d2e6d['add'](_0x3303e7['previous']),_0x3303e7['previous']['next']===_0x3303e7&&(_0x3303e7['previous']['next']=null),_0x3303e7['previous']=null),!_0x205d89['has'](_0x3303e7)&&_0x3303e7['next']&&(_0x5d2e6d['add'](_0x3303e7['next']),_0x3303e7['next']['previous']===_0x3303e7&&(_0x3303e7['next']['previous']=null),_0x3303e7['next']=null);}function _0x5b51c1(_0x270089,_0x55c13,_0x42c20f){for(let _0x1b5246=_0x42c20f;_0x1b5246<_0x55c13['length'];_0x1b5246++){const _0x71140=_0x16fa1e(_0x270089,_0x55c13[_0x1b5246]);_0x71140&&(_0x71140[0x0]['next']=_0x71140[0x1],_0x71140[0x1]['previous']=_0x71140[0x0],_0x205d89['add'](_0x71140[0x0]),_0x18f42f['add'](_0x71140[0x1]));}}function _0x16fa1e(_0x4dfe3a,_0x581e40){if(_0x4dfe3a['author']['id']!==_0x581e40['author']['id'])return null;const _0x1fb3f8=_0x59a2b9['get'](_0x4dfe3a)(_0x4dfe3a,_0x581e40,_0x30c04e['get'](_0x4dfe3a),_0x30c04e['get'](_0x581e40));if(!_0x1fb3f8)return null;return _0x59a2b9['get'](_0x581e40)(_0x4dfe3a,_0x581e40,_0x30c04e['get'](_0x4dfe3a),_0x30c04e['get'](_0x581e40))?_0x1fb3f8[0x1]['commentThread']&&_0x1fb3f8[0x1]['commentThread']['length']?null:_0x1fb3f8:null;}_0x5d2e6d['size']&&this['_refreshSuggestionsChain'](_0x5d2e6d);}['_refreshAttributeSuggestionsChain'](_0x196f7e){if(0x0==_0x196f7e['length'])return;const _0x217d88=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34c41d=>'attribute'==_0x34c41d['type']&&_0x34c41d['_isDataLoaded']),_0xb8998c=[],_0x1c9b45=new Map();for(const _0x27d39b of _0x217d88){const _0x1953b7=_0x4806d6(_0x27d39b['attributes']);_0x1c9b45['has'](_0x1953b7)||(_0x1c9b45['set'](_0x1953b7,_0xb8998c['length']),_0xb8998c['push']([]));const _0x5c291c=_0x1c9b45['get'](_0x1953b7);_0xb8998c[_0x5c291c]['push'](_0x27d39b);}!(function(){_0xb8998c['sort']((_0x533b67,_0x8f8501)=>{const _0x42e291=_0x533b67[0x0]['createdAt'],_0x2a3081=_0x8f8501[0x0]['createdAt'];return _0x42e291==_0x2a3081?_0x533b67[0x0]['attributes']['groupId']<_0x8f8501[0x0]['attributes']['groupId']?-0x1:0x1:_0x42e291<_0x2a3081?-0x1:0x1;});for(const _0x3b5274 of _0xb8998c)_0x3b5274['sort']((_0x16d3ad,_0x54382f)=>_0x16d3ad['id']<_0x54382f['id']?-0x1:0x1);}());for(let _0x49a37f=0x0;_0x49a37f<_0xb8998c['length'];_0x49a37f++){if(0x0==_0xb8998c[_0x49a37f]['length'])continue;const _0x5a484b=[];for(let _0x3eecb1=_0x49a37f+0x1;_0x3eecb1<_0xb8998c['length'];_0x3eecb1++)0x0!=_0xb8998c[_0x3eecb1]['length']&&_0x120f44(_0xb8998c[_0x49a37f],_0xb8998c[_0x3eecb1])&&_0x5a484b['push'](_0x3eecb1);for(const _0x1841c3 of _0x5a484b)_0xb8998c[_0x49a37f]=_0xb8998c[_0x49a37f]['concat'](_0xb8998c[_0x1841c3]),_0xb8998c[_0x1841c3]=[];}for(const _0x7e6821 of _0xb8998c)for(let _0x1a7e8a=0x0;_0x1a7e8a<_0x7e6821['length'];_0x1a7e8a++){const _0x5f38aa=_0x7e6821[_0x1a7e8a+0x1]||null;_0x7e6821[_0x1a7e8a]['next']!==_0x5f38aa&&(_0x7e6821[_0x1a7e8a]['next']=_0x5f38aa);}for(const _0x481dbf of _0xb8998c)for(let _0x34e392=0x0;_0x34e392<_0x481dbf['length'];_0x34e392++){const _0x4f6c2a=_0x481dbf[_0x34e392-0x1]||null;_0x481dbf[_0x34e392]['previous']!==_0x4f6c2a&&(_0x481dbf[_0x34e392]['previous']=_0x4f6c2a);}function _0x120f44(_0xab30c8,_0x2fd5a1){if(_0xab30c8[0x0]['attributes']['groupId']!==_0x2fd5a1[0x0]['attributes']['groupId']&&_0xab30c8[0x0]['author']!==_0x2fd5a1[0x0]['author'])return!0x1;if(!function(_0x2cb0b0,_0x4306dc){if(!_0x2cb0b0['hasComments']&&!_0x4306dc['hasComments'])return!0x0;if(_0x2cb0b0['hasComments']&&_0x4306dc['hasComments'])return!0x1;if(_0x2cb0b0['hasComments']&&_0x4306dc['createdAt']<_0x2cb0b0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4306dc['hasComments']&&_0x2cb0b0['createdAt']<_0x4306dc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xab30c8[0x0],_0x2fd5a1[0x0]))return!0x1;const _0x4de265=Et(_0xab30c8[0x0]['attributes'],'groupId'),_0x464974=Et(_0x2fd5a1[0x0]['attributes'],'groupId');if(!_0x301073(_0x4de265,_0x464974))return!0x1;return!!_0xab30c8['every'](_0x3ddc06=>_0x2fd5a1['some'](_0x409056=>_0x3ddc06['getFirstRange']()['isEqual'](_0x409056['getFirstRange']())))&&_0x2fd5a1['every'](_0x39746e=>_0xab30c8['some'](_0x43eae2=>_0x39746e['getFirstRange']()['isEqual'](_0x43eae2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x334b0b){const _0x3edbf0=Array['from'](_0x334b0b),_0x54856a=this['getSuggestions']({'skipNotAttached':!0x0}),_0xc5213d=_0x54856a['filter'](_0x21daff=>!_0x334b0b['has'](_0x21daff)),_0x31de8c=new Map(_0x3edbf0['map'](_0x1abc75=>[_0x1abc75,this['_suggestionFactory']['getSuggestionCallback'](_0x1abc75['type'],_0x1abc75['subType'],'join')])),_0x1e0da3=new Map(_0x54856a['map'](_0x186acb=>[_0x186acb,_0x186acb['getRanges']()]));for(let _0x58e838=0x0;_0x58e838<_0x3edbf0['length'];_0x58e838++){if(_0x170e8a(this,_0x3edbf0[_0x58e838],_0x3edbf0,_0x58e838+0x1))return!0x0;}for(let _0x33f8b1=0x0;_0x33f8b1<_0x3edbf0['length'];_0x33f8b1++){if(_0x170e8a(this,_0x3edbf0[_0x33f8b1],_0xc5213d,0x0))return!0x0;}return!0x1;function _0x170e8a(_0x4afb14,_0x1d7343,_0x270064,_0x5ac7cb){for(let _0x1a9a81=_0x5ac7cb;_0x1a9a81<_0x270064['length'];_0x1a9a81++){const _0x18ebd1=_0x270064[_0x1a9a81];if(_0x18ebd1['type']!==_0x1d7343['type']||_0x18ebd1['author']['id']!==_0x1d7343['author']['id']||_0x18ebd1['subType']!==_0x1d7343['subType'])continue;if(!zt(_0x1d7343,_0x18ebd1))continue;if('attribute'==_0x1d7343['type']&&_0x1d7343['data']['oldValue']!=_0x18ebd1['data']['oldValue'])continue;if('attribute'==_0x1d7343['type']&&_0x4afb14['_isBlockAttribute'](_0x1d7343['data']['key']))continue;if('formatBlock'==_0x1d7343['type']){const _0x4ba2b5=_0x4afb14['editor']['model'],_0x9f6a9f=_0x1d7343['getContainedElement']();if(_0x9f6a9f&&(_0x4ba2b5['schema']['isObject'](_0x9f6a9f)||_0x4ba2b5['schema']['isLimit'](_0x9f6a9f)))continue;}const _0x193fe3=_0x31de8c['get'](_0x1d7343),_0x4efe79=_0x1e0da3['get'](_0x1d7343),_0x3c80fc=_0x1e0da3['get'](_0x18ebd1),_0x1bdea5=_0x1d7343['commentThread']&&_0x1d7343['commentThread']['length'],_0xda643e=_0x18ebd1['commentThread']&&_0x18ebd1['commentThread']['length'];if(!_0x1bdea5&&_0x193fe3(_0x3c80fc,_0x4efe79))return _0x4afb14['_joinSuggestions'](_0x18ebd1,_0x1d7343),_0x1e0da3['delete'](_0x1d7343),!0x0;if(!_0xda643e&&_0x193fe3(_0x4efe79,_0x3c80fc))return _0x4afb14['_joinSuggestions'](_0x1d7343,_0x18ebd1),_0x1e0da3['delete'](_0x18ebd1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x17cd49,_0x3c5cad){if(_0x17cd49['isMultiRange']){for(const _0x2b7e89 of _0x3c5cad['getRanges']())_0x17cd49['addRange'](_0x2b7e89);}else{const _0x544c76=_0x3c5cad['getFirstRange']()['end'];this['_setSuggestionRange'](_0x17cd49,this['_model']['createRange'](_0x17cd49['getFirstRange']()['start'],_0x544c76));}_0x3c5cad['removeMarkers']();}['_getMarkerAnnouncementText'](_0x147e46,_0x570f8c,_0x1cf6ec){const _0x209783=_0x147e46['startsWith']('format')||_0x147e46['startsWith']('attribute')?'FORMATTING':_0x147e46['toUpperCase']();return o(this['editor']['locale'],_0x570f8c+'_'+_0x209783+'_SUGGESTION_ANNOUNCEMENT',_0x1cf6ec);}['_initAriaMarkerChangeAnnouncements'](){const _0x5b5ba3=this['editor'];if(!_0x5b5ba3['ui'])return;const {ariaLiveAnnouncer:_0x554be8}=_0x5b5ba3['ui'];_0x168c71(this['_model'],({left:_0x29fade,entered:_0x40db33})=>{for(const _0x1135e9 of _0x29fade){const {group:_0x3b82d3,type:_0x906f60}=this['_splitMarkerName'](_0x1135e9['name']);if('suggestion'===_0x3b82d3){_0x554be8['announce'](this['_getMarkerAnnouncementText'](_0x906f60,'LEAVE'));break;}}for(const _0x2c4618 of _0x40db33){const {group:_0x453347,type:_0x2f7b1e}=this['_splitMarkerName'](_0x2c4618['name']);if('suggestion'===_0x453347){_0x554be8['announce'](this['_getMarkerAnnouncementText'](_0x2f7b1e,'ENTER',_0x52409a(_0xcda296)));break;}}});}['_processAttributeChanges'](_0xdacf15){if(this['_recordAttributeSuggestions'])return!0x1;const _0x364a73=this['editor'],_0x41ff77=_0x364a73['model']['document']['differ']['getChanges']();if(0x0==_0x41ff77['length'])return!0x1;const _0x4daee4=[],_0x268b16=_0x41ff77['filter'](_0x195512=>'attribute'==_0x195512['type']),_0x5b254f=_0x41ff77['filter'](_0x139143=>'insert'==_0x139143['type']&&'$text'!=_0x139143['name']),_0x36db6f=_0x41ff77['filter'](_0x150c0e=>'remove'==_0x150c0e['type']&&'$text'!=_0x150c0e['name']);for(const _0x30ee63 of _0x268b16)_0x4daee4['push']({'key':_0x30ee63['attributeKey'],'newValue':_0x30ee63['attributeNewValue'],'oldValue':_0x30ee63['attributeOldValue'],'range':Jt(_0x30ee63['range'],_0x364a73['model'])});for(const _0x2e3a3b of _0x5b254f){const _0x5ab838=_0x36db6f['find'](_0x51662e=>_0x51662e['position']['isEqual'](_0x2e3a3b['position']));_0x5ab838&&_0x4daee4['push']({'key':m,'newValue':_0x2e3a3b['name'],'oldValue':_0x5ab838['name'],'range':_0x364a73['model']['createRangeOn'](_0x2e3a3b['position']['nodeAfter'])});}return 0x0!=_0x4daee4['length']&&this['_reduceExistingSuggestions'](_0xdacf15,_0x4daee4);}['_processAttributeSuggestions'](_0x546e9c){let _0xa631c9=!0x1;const _0x4e5db9=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1d9fda=>_0x1d9fda['data']['newRange']&&_0x1d9fda['name']['startsWith']('suggestion:attribute:'));for(const _0x336bc2 of _0x4e5db9){const {subType:_0x58bd28,id:_0x1d42d2}=this['_splitMarkerName'](_0x336bc2['name']),_0x1b03c2=_0x58bd28['split']('|')[0x0];for(const _0x2379e5 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2379e5['id']!=_0x1d42d2&&'attribute'==_0x2379e5['type']&&_0x2379e5['data']&&_0x2379e5['data']['key']==_0x1b03c2&&_0x2379e5['getFirstRange']()['isIntersecting'](_0x336bc2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2379e5,_0x336bc2['data']['newRange'],_0x546e9c),_0xa631c9=!0x0);}return _0xa631c9;}['_recordAttributeChanges'](_0x5b489d){this['_recordAttributeSuggestions']=!0x0,_0x5b489d();}['_isRegisteredAttribute'](_0x18b249){const _0x20eb4c=this['_isBlockAttribute'](_0x18b249),_0x5d4e80=this['_inlineAttributeKeys']['has'](_0x18b249);return _0x20eb4c||_0x5d4e80;}['_reduceExistingSuggestions'](_0x4db546,_0x48dea1){if(0x0==_0x48dea1['length'])return!0x1;let _0x2e2ddd=!0x1;for(const _0x13eb6c of _0x48dea1){const _0x2541d3=this['_findSuggestions'](_0x13eb6c['range'],'attribute')['filter'](_0x4cf909=>!_0x4cf909['meta']['isNextTo'])['map'](_0x5875af=>_0x5875af['suggestion']),_0x443329=_0x4806d6({'newValue':_0x13eb6c['newValue']});_0x2541d3['filter'](_0x1e520d=>{const [_0x4faf86,_0x4211f1]=_0x1e520d['subType']['split']('|');return _0x4faf86==_0x13eb6c['key']&&_0x4211f1!=_0x443329;})['forEach'](_0x67fc7b=>{this['_reduceSuggestionAttributeRange'](_0x67fc7b,_0x13eb6c['range'],_0x4db546),_0x2e2ddd=!0x0;});}return _0x2e2ddd;}['_reduceSuggestionAttributeRange'](_0x20924a,_0x2ffe8f,_0x83591a){const _0x172d23=_0x20924a['getFirstRange']()['getDifference'](_0x2ffe8f);0x0!==_0x172d23['length']?0x1!==_0x172d23['length']?this['_breakSuggestionMarker'](_0x20924a,_0x2ffe8f['start'],_0x2ffe8f['end']):this['_setSuggestionRange'](_0x20924a,_0x172d23[0x0]):_0x83591a['removeMarker'](_0x20924a['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x10afca){this['_editor']=_0x10afca,this['_model']=_0x10afca['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3c69c3,_0x1da9b9,_0x5cac44,_0x58b70d,_0xbbbb61,_0x43e579){return new u(this['_model'],{'type':_0x3c69c3,'subType':_0x1da9b9,'id':_0x5cac44,'author':_0x58b70d,'creator':_0x58b70d,'attributes':_0xbbbb61,'onAttributesChange':_0x43e579,'onAccept':(..._0x4dda2e)=>this['getSuggestionCallback'](_0x3c69c3,_0x1da9b9,'accept')(..._0x4dda2e),'onDiscard':(..._0x2b3c1d)=>this['getSuggestionCallback'](_0x3c69c3,_0x1da9b9,'discard')(..._0x2b3c1d)});}['registerCustomCallback'](_0x4cc10e,_0x322812,_0x2e6953,_0x540772){const _0xc3097d=_0x4cc10e+':'+_0x322812+':'+_0x2e6953;this['_customCallbacks']['set'](_0xc3097d,_0x540772);}['getSuggestionCallback'](_0xe2ce21,_0xad05a5,_0x48a2d7){const _0x2f61d7=_0xe2ce21+':'+_0xad05a5+':'+_0x48a2d7;return this['_customCallbacks']['get'](_0x2f61d7)||this['_defaultCallbacks']['get'](_0xe2ce21+':'+_0x48a2d7);}['_registerDefaultCallbacks'](){const _0x31af50=()=>!0x1,_0xb99894=_0x4744de=>{_0x4744de['sort']((_0x4b261e,_0x58ed6d)=>_0x4b261e['start']['isBefore'](_0x58ed6d['start'])?0x1:-0x1),this['_model']['change'](_0x4fb5db=>{for(const _0x12fd67 of _0x4744de){let _0x98367e;_0x98367e=_0x12fd67['end']['isAtEnd']&&_0x12fd67['end']['parent']==_0x12fd67['start']['nodeAfter']?_0x4fb5db['createSelection'](_0x12fd67['start']['nodeAfter'],'on'):_0x4fb5db['createSelection'](_0x12fd67),this['_model']['deleteContent'](_0x98367e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2374bd=(_0x433c35,_0x2dc588)=>{_0x2dc588&&this['_model']['change'](_0x27c3f1=>{const {commandName:_0x50e702,commandParams:_0x3c9583=[]}=_0x2dc588,_0x3441a1=_0x433c35['map'](_0x427535=>(Pt(_0x427535)&&(_0x427535=this['_model']['createRange'](_0x427535['end'])),_0x427535))['filter'](_0x497b9e=>'$graveyard'!==_0x497b9e['root']['rootName']);if(_0x3441a1['length']<0x1)return;const _0x17a0df=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x411309=>_0x147a51['fromRange'](_0x411309));_0x27c3f1['setSelection'](_0x3441a1);for(const _0x58544d of this['_editor']['commands']['commands']())_0x58544d['refresh']();_0x3c9583['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x50e702,..._0x3c9583);const _0x358f37=_0x17a0df['filter'](_0x2a2026=>'$graveyard'!=_0x2a2026['root']['rootName']);_0x358f37['length']>0x0&&_0x27c3f1['setSelection'](_0x358f37);for(const _0x317a7c of _0x17a0df)_0x317a7c['detach']();});},_0x4b2784=(_0x352e24,_0x3aaaf4)=>0x1==_0x352e24['length']&&0x1==_0x3aaaf4['length']&&_0x352e24[0x0]['end']['isEqual'](_0x3aaaf4[0x0]['start']),_0x20dde0=(_0x293fa6,_0x1e9aea,_0x234020,_0x5cb147)=>qt(_0x293fa6,_0x1e9aea,_0x234020,_0x5cb147)?[_0x293fa6,_0x1e9aea]:qt(_0x1e9aea,_0x293fa6,_0x5cb147,_0x234020)?[_0x1e9aea,_0x293fa6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x31af50),this['_defaultCallbacks']['set']('insertion:discard',_0xb99894),this['_defaultCallbacks']['set']('insertion:join',_0x4b2784),this['_defaultCallbacks']['set']('insertion:chain',_0x20dde0),this['_defaultCallbacks']['set']('deletion:accept',_0xb99894),this['_defaultCallbacks']['set']('deletion:discard',_0x31af50),this['_defaultCallbacks']['set']('deletion:join',_0x4b2784),this['_defaultCallbacks']['set']('deletion:chain',_0x20dde0),this['_defaultCallbacks']['set']('formatInline:accept',_0x2374bd),this['_defaultCallbacks']['set']('formatInline:discard',_0x31af50),this['_defaultCallbacks']['set']('formatInline:join',_0x4b2784),this['_defaultCallbacks']['set']('formatInline:chain',_0x31af50),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2374bd),this['_defaultCallbacks']['set']('formatBlock:discard',_0x31af50),this['_defaultCallbacks']['set']('formatBlock:join',_0x4b2784),this['_defaultCallbacks']['set']('formatBlock:chain',_0x31af50),this['_defaultCallbacks']['set']('attribute:accept',_0x31af50),this['_defaultCallbacks']['set']('attribute:discard',(_0x4fad56,_0x4ca92f)=>{if(!_0x4ca92f)return;const _0x24081e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x536e02=>{if(_0x4ca92f['key']==m)for(const _0x24a227 of _0x4fad56){const _0x94a22f=_0x24a227['start']['nodeAfter'],_0xf75487=_0x4ca92f['oldValue'];_0x536e02['rename'](_0x94a22f,_0xf75487);}else{if(_0x24081e['_isBlockAttribute'](_0x4ca92f['key'])){for(const _0x1f3c8f of _0x4fad56)void 0x0!==_0x4ca92f['oldValue']?_0x536e02['setAttribute'](_0x4ca92f['key'],_0x4ca92f['oldValue'],_0x1f3c8f['start']['nodeAfter']):_0x536e02['removeAttribute'](_0x4ca92f['key'],_0x1f3c8f['start']['nodeAfter']);}else{for(const _0x16ad59 of _0x4fad56)_0x4ca92f['oldValue']?_0x536e02['setAttribute'](_0x4ca92f['key'],_0x4ca92f['oldValue'],_0x16ad59):_0x536e02['removeAttribute'](_0x4ca92f['key'],_0x16ad59);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4b2784);}}function Vt(_0x46cb67,_0x2373c8,_0x36e5ce){for(const _0x517206 of _0x2373c8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x517206['root']==_0x517206)return!0x1;if(!_0x36e5ce['containsItem'](_0x517206))return!0x1;if(_0x46cb67['isObject'](_0x517206)||_0x46cb67['isLimit'](_0x517206))return!0x0;}return!0x1;}function Pt(_0x3ffad1){return _0x3ffad1['end']['parent']==_0x3ffad1['start']['nodeAfter']&&_0x3ffad1['end']['isAtStart'];}function Gt(_0x17c42c,_0x39d835,_0x2aeb20,_0x8773e3){const _0x1257cc=_0x482cb0=>!_0x482cb0['item']['is']('$textProxy')&&!_0x8773e3['isObject'](_0x482cb0['item']),_0x40f334=_0x17c42c['start']['getLastMatchingPosition'](_0x1257cc),_0x263509=_0x17c42c['end']['getLastMatchingPosition'](_0x1257cc,{'direction':'backward'});return(!_0x17c42c['start']['isEqual'](_0x40f334)||!_0x17c42c['end']['isEqual'](_0x263509))&&(_0x40f334['isBefore'](_0x263509)?_0x2aeb20['updateMarker'](_0x39d835,{'range':_0x2aeb20['createRange'](_0x40f334,_0x263509)}):_0x2aeb20['removeMarker'](_0x39d835),!0x0);}function Ft(_0x47f8db){return _0x4806d6(_0x47f8db);}function Lt(_0x15fc2c){const _0x1377a1=_0x15fc2c['start']['nodeAfter'];return _0x1377a1&&_0x1377a1['is']('element');}function Jt(_0x1525b6,_0x53e288){return null==_0x1525b6['end']['nodeBefore']&&_0x1525b6['end']['parent']==_0x1525b6['start']['nodeAfter']?Ht(_0x1525b6['start']['nodeAfter'],_0x53e288):_0x1525b6;}function Ht(_0x192c3d,_0x3b7165){const _0x46eda2=_0x3b7165['schema']['isObject'](_0x192c3d)||_0x3b7165['schema']['isSelectable'](_0x192c3d);return _0x3b7165['createRange'](_0x3b7165['createPositionAt'](_0x192c3d,'before'),_0x46eda2?_0x3b7165['createPositionAfter'](_0x192c3d):_0x3b7165['createPositionAt'](_0x192c3d,'end'));}function qt(_0x2b6eed,_0x126ab0,_0x42ab1d,_0x2e77e8){return!!zt(_0x2b6eed,_0x126ab0)&&_0x42ab1d['end']['isEqual'](_0x2e77e8['start']);}function zt(_0x21908b,_0x2f0082){if(!_0x21908b['_isDataLoaded']||!_0x2f0082['_isDataLoaded'])return!0x1;const _0x4c1887=new Set(Object['keys'](_0x21908b['attributes'])),_0x58c857=new Set(Object['keys'](_0x2f0082['attributes']));if(_0x4c1887['delete']('groupId'),_0x58c857['delete']('groupId'),0x0==_0x4c1887['size']&&0x0==_0x58c857['size'])return!0x0;if(_0x4c1887['size']!=_0x58c857['size'])return!0x1;const _0x224b91={..._0x21908b['attributes']},_0x4d492a={..._0x2f0082['attributes']};return delete _0x224b91['groupId'],delete _0x4d492a['groupId'],JSON['stringify'](_0x224b91)==JSON['stringify'](_0x4d492a);}function Kt(_0x15189a,_0x2e8474){const _0x1a7858=Wt(_0x15189a['attributes']),_0x50347=Wt(_0x2e8474);if(!_0x15189a['_isDataLoaded'])return!0x1;for(const _0x1d6eeb of Object['keys'](_0x50347))if(!_0x301073(_0x1a7858[_0x1d6eeb],_0x50347[_0x1d6eeb]))return!0x1;return!0x0;}function Wt(_0x709c55){const _0x1db289=Object['assign']({},_0x709c55);return delete _0x1db289['skipNestingCheck'],delete _0x1db289['tablePasteChainId'],_0x1db289;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x2c73f1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x12175d,_0x1c82f7,_0x28575a,_0x7bc100){super(),this['model']=_0x1c82f7,this['view']=_0x28575a,this['commentThreadController']=_0x7bc100,this['_editor']=_0x12175d,this['_acceptCommand']=_0x12175d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x12175d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1ca41f,_0x40d055)=>_0x1ca41f||_0x40d055),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x56a6d6=>_0x56a6d6&&this['_editor']['model']['canEditAt'](_0x1c82f7['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x12f6a0=>_0x12f6a0&&this['_editor']['model']['canEditAt'](_0x1c82f7['getRanges']())),this['_pendingAction']=null,_0x28575a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x28575a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x28575a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x28575a,'change:isDirty',()=>{_0x28575a['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 _0x3ca32d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3ca32d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0xbe508b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x222604,_0x534175,_0x432a25,_0x20ec2f){super(_0x222604),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3510bd(_0x222604,o(_0x222604,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x534175['authoredAt']),this['bind']('authoredAt')['to'](_0x534175),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',_0x534175,'authoredAt',this,'descriptionParts',(_0x20b2bd,_0x41e732,_0x521675)=>{const _0x298b5b=_0x521675['map'](_0x5c9993=>ns(_0x5c9993['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x20b2bd-0x1,_0x534175['author']['name'],_0x41e732?_0x20ec2f['formatDateTime'](_0x41e732):'',new DOMParser()['parseFromString'](_0x298b5b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x38d1e7(),this['focusTracker']=new _0x2b6109(),this['keystrokes']=new _0x5443b(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x42a16b=>_0x42a16b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x534175,this['_localUser']=_0x432a25,this['_config']=_0x20ec2f,_0x20ec2f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x14900b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xe98a32}=this['_config'];this['commentsListView']=new _0xe98a32(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',_0x47fd5c=>_0x47fd5c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4e8ebf,_0x497b83)=>_0x4e8ebf||!!_0x497b83);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4043c3}=this['_config'],_0x53256e=new _0x4043c3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x6418da=_0x53256e['commentInputView'];return _0x53256e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x6418da,'value',(_0x194394,_0x3a6e95,_0x2f8edd)=>!!_0x2f8edd||_0x194394&&!_0x3a6e95),_0x6418da['on']('submit',(_0x5112e9,_0x2baac4)=>{this['fire']('addComment',_0x2baac4),_0x6418da['editor']['setData']('');}),_0x6418da['on']('cancel',()=>this['focus']()),_0x6418da['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x53256e;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x19ad9e,_0xee0321,_0x50cad5,_0xbc09af){super(_0x19ad9e,_0xee0321,_0x50cad5,_0xbc09af),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x424543=>_0x424543&&_0x424543[0x0]?_0x424543[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3ffbd9,_0x4d3f67)=>{let _0x3807a8='';for(const _0x2f338b of _0x3ffbd9)_0x3807a8+='<p>'+ns(_0x2f338b['content'],_0x2f338b['color'])+'</p>';return _0x4d3f67?_0x3807a8:_0xe92c8e(_0x3807a8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xbc09af['SuggestionView'](_0x19ad9e,_0xee0321,{'formatDateTime':_0xbc09af['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 _0x5b9cf5=this['bindTemplate'],_0x43cf31=[this['suggestionView']];return this['commentsListView']&&_0x43cf31['push'](this['commentsListView']),this['commentThreadInputView']&&_0x43cf31['push'](this['commentThreadInputView']),_0x43cf31['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5b9cf5['if']('isActive','ck-suggestion-wrapper--active'),_0x5b9cf5['to']('type',_0x392515=>'ck-suggestion-'+_0x392515),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':_0x5b9cf5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x43cf31};}['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 fe extends _0xbe508b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4ad137,_0x29c2b3,_0x17e55f){super(_0x4ad137),this['_model']=_0x29c2b3,this['_config']=_0x17e55f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x29c2b3),this['acceptButton']=this['_createButton'](o(_0x4ad137,'Accept\x20suggestion'),_0x5c2bfa['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4ad137,'Discard\x20suggestion'),_0x5c2bfa['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x328d64(_0x4ad137,_0x29c2b3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x38d1e7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2b6109(),this['keystrokes']=new _0x5443b(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x8c22b0=>_0x8c22b0['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5ba595=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5ba595['innerHTML']=this['description'],this['on']('change:description',(_0x5186b1,_0x3945d9,_0x234633)=>{_0x5ba595['innerHTML']=_0x234633;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1bb6e2=this['bindTemplate'],_0x26526d=[{'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':_0x1bb6e2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1bb6e2['to']('authoredAt',_0x4b01ed=>this['_config']['formatDateTime'](_0x4b01ed))}]}]},{'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']&&_0x26526d['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':_0x26526d}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x37e4a7,_0x195712,_0x315f74,_0xe6d792,_0x267788){const _0x30d5d2=new _0x4dc03b(this['locale']);return _0x30d5d2['set']({'label':_0x37e4a7,'icon':_0x195712,'tooltip':!0x0,'tooltipPosition':_0x267788}),_0x30d5d2['extendTemplate']({'attributes':{'class':_0x315f74}}),_0x30d5d2['on']('execute',()=>{this['fire'](_0xe6d792,this['_model']['id']);}),_0x30d5d2;}['_setupKeyboardNavigation'](){const _0x580baf=this['element'];this['keystrokes']['listenTo'](_0x580baf);for(const _0xd6e392 of this['focusables'])this['focusTracker']['add'](_0xd6e392['element']),this['keystrokes']['listenTo'](_0xd6e392['element']);this['keystrokes']['set']('enter',(_0x3d6a77,_0x5e145b)=>{_0x580baf===_0x3d6a77['target']&&(this['focusCycler']['focusFirst'](),_0x5e145b());}),this['keystrokes']['set']('esc',(_0x2ab591,_0x57b00d)=>{_0x580baf!==_0x2ab591['target']&&(this['focus'](),_0x57b00d());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x47ce4c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4c014f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x35bcd0){super(_0x35bcd0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1cccc0=this['editor']['config'];_0x1cccc0['define']('trackChanges.SuggestionThreadView',pe),_0x1cccc0['define']('trackChanges.SuggestionView',fe),_0x1cccc0['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1cccc0['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1f0f62,_0x4b9d03){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xa7b212,_0x4b280a]of this['_handleControllerBuffer']){const _0x4c3824=this['_suggestionToController']['has'](_0xa7b212);_0x4c3824||_0x4b280a?_0x4c3824&&_0x4b280a&&this['_destroyController'](_0xa7b212):this['_initializeController'](_0xa7b212);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1f0f62,_0x4b9d03);}['init'](){const _0x184088=this['editor'],_0x1c8c35=_0x184088['plugins']['get']('TrackChangesEditing'),_0x3ab7d7=_0x184088['plugins']['get']('Annotations'),_0x293574=_0x184088['plugins']['get']('EditorAnnotations'),_0x547ede=_0x184088['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x293574['addSourceCollector'](()=>{const _0x284e3f=[];for(const [_0x85ac4d,_0x136148]of Array['from'](this['_suggestionToController'])){const _0x46bf5a=_0x85ac4d['getAllAdjacentSuggestions'](),_0xaf3515=[];for(const _0x238063 of _0x46bf5a){if(!_0x238063['isInContent'])continue;if(_0x238063['isMultiRange']){_0xaf3515['push'](..._0x238063['getRanges']());continue;}const _0x221217=_0x238063['getFirstRange']();if(_0xaf3515['length']>0x0){const _0x13afa8=_0xaf3515[0x0]['getJoined'](_0x221217);if(_0x13afa8){_0xaf3515[0x0]=_0x13afa8;continue;}}_0xaf3515['push'](_0x221217);}_0x284e3f['push']([_0x136148['view'],_0xaf3515]);}return _0x284e3f;}),this['listenTo'](_0x1c8c35,'suggestionLoaded',(_0xfdb200,_0x3174dc)=>{this['listenTo'](_0x3174dc,'change:previous',(_0x5274b3,_0x416763,_0x96ef7d,_0x2e0cfd)=>{_0x3174dc['isInContent']&&(null==_0x96ef7d?(this['_updateController'](_0x2e0cfd['head']),this['_handleSuggestionControllerDelayed'](_0x3174dc,!0x1)):(this['_updateController'](_0x96ef7d['head']),null==_0x2e0cfd&&this['_handleSuggestionControllerDelayed'](_0x3174dc,!0x0)));}),null!==_0x3174dc['previous']?this['_updateController'](_0x3174dc['head']):this['_handleSuggestionControllerDelayed'](_0x3174dc,!0x1);}),this['listenTo'](_0x1c8c35,'suggestionUnloaded',(_0x581824,_0x5c23ec,_0xcda0c3)=>{this['stopListening'](_0x5c23ec,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5c23ec),this['_suggestionToController']['has'](_0x5c23ec)&&this['_destroyController'](_0x5c23ec),_0xcda0c3&&this['_updateController'](_0xcda0c3['head']);}),this['listenTo'](_0x1c8c35,'suggestionChanged',(_0x9c28cb,_0x5bfb73)=>{this['_updateController'](_0x5bfb73);}),this['listenTo'](_0x3ab7d7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x547ede,'addComment',(_0x4c5333,{threadId:_0x506ebe,isFromAdapter:_0x399542})=>{if(_0x399542||!_0x1c8c35['hasSuggestion'](_0x506ebe))return;const _0x225b91=_0x1c8c35['getSuggestion'](_0x506ebe);this['_suggestionToController']['get'](_0x225b91)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x52ed02=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4c0b02;for(const _0x2dcee3 in _0x52ed02){const _0x1dcd1c=_0x2dcee3,_0x5c4d66=_0x52ed02[_0x1dcd1c];if('trackChangesLicenseKeyValid'==_0x5c4d66||'trackChangesLicenseKeyInvalid'==_0x5c4d66||'trackChangesLicenseKeyExpired'==_0x5c4d66||'trackChangesLicenseKeyDomainLimit'==_0x5c4d66||'trackChangesLicenseKeyNotAllowed'==_0x5c4d66||'trackChangesLicenseKeyEvaluationLimit'==_0x5c4d66||'trackChangesLicenseKeyTrialLimit'==_0x5c4d66||'trackChangesLicenseKeyUsageLimit'==_0x5c4d66){delete _0x52ed02[_0x1dcd1c],_0x4c0b02=_0x5c4d66,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4c0b02&&_0x52ed02['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4c0b02&&_0x52ed02['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4c0b02&&_0x52ed02['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4c0b02&&_0x52ed02['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4c0b02&&_0x52ed02['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4c0b02&&_0x52ed02['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4c0b02&&_0x52ed02['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3054ee=this['editor']['plugins']['get']('Annotations'),_0xe59d43=this['editor']['plugins']['get']('TrackChangesEditing'),_0x579cb3=Array['from'](_0x3054ee['activeAnnotations'],_0x287922=>_0x287922['innerView'])['filter'](_0x5633f8=>this['_viewToController']['has'](_0x5633f8)),_0x35fa6c=[];for(const _0x4fa173 of _0x579cb3){const _0x3d2f19=this['_viewToController']['get'](_0x4fa173)['model']['getAllAdjacentSuggestions']();_0x35fa6c['push'](..._0x3d2f19['reduce']((_0x12b8a0,_0x3b68cc)=>[..._0x12b8a0,..._0x3b68cc['getMarkerNames']()],[]));}_0xe59d43['activeMarkers']=_0x35fa6c;}['_addUIComponentsToFactory'](){const _0x4b57f0=this['editor'],_0x4a6eac=_0x4b57f0['locale'],_0x106233=o(_0x4a6eac,'Track\x20changes'),_0x48217e=new _0x393919([{'type':'switchbutton','model':new _0xf94e8a({'withText':!0x0,'isToggleable':!0x0,'label':_0x106233,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xf94e8a({'withText':!0x0,'label':o(_0x4a6eac,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xf94e8a({'withText':!0x0,'label':o(_0x4a6eac,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xf94e8a({'withText':!0x0,'label':o(_0x4a6eac,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xf94e8a({'withText':!0x0,'label':o(_0x4a6eac,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4b57f0['plugins']['has']('TrackChangesPreview')&&_0x48217e['addMany']([{'type':'separator'},{'type':'button','model':new _0xf94e8a({'withText':!0x0,'label':o(_0x4a6eac,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x345a20 of _0x48217e)if(ke(_0x345a20)){const _0x46003a=_0x4b57f0['commands']['get'](_0x345a20['model']['commandName']);_0x345a20['model']['bind']('isOn','isEnabled')['to'](_0x46003a,'value','isEnabled');}_0x4b57f0['ui']['componentFactory']['add']('trackChanges',_0x32657d=>this['_createToolbarButton'](_0x32657d,_0x48217e,_0x106233)),_0x4b57f0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x7bc53a=>this['_createMenuBarMenu'](_0x7bc53a,_0x48217e,_0x106233));}['_createToolbarButton'](_0x15f92c,_0x4f6392,_0x147744){const _0x19c39f=_0xf07a9c(_0x15f92c,_0x1f10cb),_0x5e9396=this['editor']['commands']['get']('trackChanges');_0x19c39f['buttonView']['set']({'tooltip':_0x147744,'label':_0x147744,'icon':we}),_0x19c39f['buttonView']['bind']('isOn')['to'](_0x5e9396,'value'),_0x19c39f['buttonView']['on']('execute',()=>{_0x5e9396['execute'](),this['editor']['editing']['view']['focus']();}),_0x49151a(_0x19c39f,_0x4f6392,{'role':'menu'});const _0x23dc4d=[];for(const _0x2504ba of _0x4f6392)ke(_0x2504ba)&&_0x23dc4d['push'](this['editor']['commands']['get'](_0x2504ba['model']['commandName']));const _0x33794a=_0x19c39f['buttonView'];return _0x33794a['actionView']['unbind']('isEnabled'),_0x33794a['arrowView']['unbind']('isEnabled'),_0x33794a['actionView']['bind']('isEnabled')['to'](_0x5e9396,'isEnabled'),_0x33794a['arrowView']['bind']('isEnabled')['toMany'](_0x23dc4d,'isEnabled',(..._0x291cf6)=>_0x291cf6['some'](_0x399e1b=>_0x399e1b)),_0x19c39f['on']('execute',_0x30e878=>{this['editor']['execute'](_0x30e878['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x19c39f;}['_createMenuBarMenu'](_0x4e4d57,_0x1eccd4,_0x5f09a0){const _0x12026b=new _0x124480(_0x4e4d57),_0x4f2b95=this['editor']['commands']['get']('trackChanges');_0x12026b['buttonView']['set']({'label':_0x5f09a0,'icon':we});const _0x30d096=new _0x1ef2a5(_0x4e4d57);for(const _0x5b05e7 of _0x1eccd4){if('separator'==_0x5b05e7['type']){_0x30d096['items']['add'](new _0x791a52(_0x4e4d57));continue;}const _0x26183d=new _0x48218d(_0x4e4d57,_0x12026b),_0x2d3fd1=new _0x501545(_0x4e4d57),_0xd48ebf=_0x5b05e7['model'];_0x2d3fd1['bind'](...Object['keys'](_0xd48ebf))['to'](_0xd48ebf),_0x2d3fd1['delegate']('execute')['to'](_0x12026b),_0x2d3fd1['on']('execute',()=>{this['editor']['execute'](_0xd48ebf['commandName']),this['editor']['editing']['view']['focus']();}),_0x26183d['children']['add'](_0x2d3fd1),_0x30d096['items']['add'](_0x26183d);}return _0x12026b['bind']('isEnabled')['to'](_0x4f2b95,'isEnabled'),_0x12026b['panelView']['children']['add'](_0x30d096),_0x12026b;}['_initializeController'](_0x2a534c){const _0x216386=this['editor'],_0x5df691=_0x216386['config'],_0x1d2f52=_0x216386['plugins']['get']('Annotations'),_0x4c46ef=_0x216386['plugins']['get']('CommentsRepository'),_0x311bbe=_0x216386['plugins']['get']('EditorAnnotations'),_0x34948d=_0x216386['plugins']['get'](_0x4c014f)['me'],_0x3779cc=_0x5df691['get']('trackChanges')['SuggestionThreadView'],_0x2b7d6f=_0x5df691['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3bdace,CommentThreadInputView:_0x3a304a}=_0x216386['plugins']['get']('CommentsUI');let _0x137932,_0x191ad0,_0x45eb32;this['_annotationViews']['has'](_0x2a534c['id'])?(_0x191ad0=this['_annotationViews']['get'](_0x2a534c['id']),_0x137932=_0x191ad0['mainView']):(_0x137932=new _0x3779cc(_0x216386['locale'],_0x2a534c,_0x34948d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5df691['get']('comments.editorConfig'),'licenseKey':_0x5df691['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5df691['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5df691['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5df691['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x50b5ab(_0x5df691['get']('locale')),'CommentView':_0x5df691['get']('comments')['CommentView'],'CommentsListView':_0x3bdace,'CommentThreadInputView':_0x3a304a,'SuggestionView':_0x2b7d6f}),_0x137932['suggestionView']['acceptButton']['on']('execute',()=>{_0x216386['editing']['view']['focus']();}),_0x137932['suggestionView']['discardButton']['on']('execute',()=>{_0x216386['editing']['view']['focus']();}),_0x191ad0=_0x1d2f52['createAnnotationView'](this['editor']['locale'],_0x137932),_0x191ad0['bind']('isDirty')['to'](_0x137932,'isDirty'),_0x191ad0['bind']('length')['to'](_0x137932),_0x191ad0['bind']('type')['to'](_0x137932,'type',_0x15386c=>'suggestion-'+_0x15386c),_0x137932['on']('escape',()=>{_0x45eb32['fire']('escape');}),this['_annotationViews']['set'](_0x2a534c['id'],_0x191ad0));const _0x1300b5=_0x4c46ef['createCommentThreadController'](_0x2a534c['commentThread'],_0x137932),_0x364149=new Ce(_0x216386,_0x2a534c,_0x137932,_0x1300b5),_0xd7b87f=_0x2a534c['getAllAdjacentSuggestions']()['filter'](_0x58da82=>_0x58da82['isInContent']);_0x137932['descriptionParts']=_0x216386['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xd7b87f),this['_suggestionToController']['set'](_0x2a534c,_0x364149),this['_viewToController']['set'](_0x137932,_0x364149),_0x45eb32=_0x1d2f52['createAnnotation']({'view':_0x191ad0,'target':()=>{const _0x2ee993=[],_0x54383f=_0x2a534c['getAllAdjacentSuggestions']()['filter'](_0x5e713e=>_0x5e713e['isInContent']);for(const _0x1b7f95 of _0x54383f)_0x2ee993['push'](..._0x1b7f95['getMarkers']());return _0x24bf9a(_0x216386['editing'],_0x2ee993);},'type':()=>'suggestion-'+_0x364149['view']['type']}),_0x4c46ef['_bindAnnotationToEditors'](_0x137932,_0x45eb32),_0x1d2f52['add'](_0x45eb32),_0x311bbe['registerAnnotation'](_0x45eb32);}['_destroyController'](_0x437cd1){const _0x22a8e2=this['editor']['plugins']['get']('CommentsRepository'),_0x119545=this['editor']['plugins']['get']('Annotations'),_0x216b47=this['_suggestionToController']['get'](_0x437cd1),_0x554e79=_0x216b47['view'],_0x5454af=_0x119545['getByInnerView'](_0x554e79);_0x22a8e2['_unbindEditors'](_0x554e79),_0x5454af&&_0x119545['remove'](_0x5454af),this['_suggestionToController']['delete'](_0x437cd1),this['_viewToController']['delete'](_0x554e79),_0x216b47['destroy']();}['_updateController'](_0x2745eb){if(!_0x2745eb['isInContent']||!this['_suggestionToController']['has'](_0x2745eb))return;const _0x2db8e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x104ab8=this['_suggestionToController']['get'](_0x2745eb),_0x17412f=_0x2745eb['getAllAdjacentSuggestions']();_0x104ab8['view']['descriptionParts']=_0x2db8e5['descriptionFactory']['getDescriptions'](_0x17412f);}['destroy'](){for(const _0x3709be of this['_suggestionToController']['keys']())this['_destroyController'](_0x3709be);for(const _0x2923fd of this['_annotationViews']['values']())_0x2923fd['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x534fe1){return'model'in _0x534fe1;}class k extends _0x47ce4c{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x554f33){this['editor']['plugins']['get'](p)['adapter']=_0x554f33;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xf43474){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xf43474);}['getSuggestions']({skipNotAttached:_0x4609c7=!0x1,toJSON:_0x146ea0=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4609c7,'toJSON':_0x146ea0});}['getSuggestion'](_0x3f393d){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3f393d);}}const w=['Pagination'];class T extends _0x47ce4c{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x23be73=this['editor'];if(_0x23be73['config']['define']('trackChangesData.editorCreator',_0x270f2f=>{const _0x598760=_0x23be73['model']['document']['getRootNames']()['reduce']((_0x556caf,_0x4c0e19)=>(_0x556caf[_0x4c0e19]='',_0x556caf),{});return _0x23be73['constructor']['create'](_0x598760,_0x270f2f);}),'function'!=typeof _0x23be73['config']['get']('trackChangesData')['editorCreator'])throw new _0x5e4c77('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xb86c60){return N(this['editor'],!0x0,_0xb86c60);}['getDataWithDiscardedSuggestions'](_0x53623c){return N(this['editor'],!0x1,_0x53623c);}}class D extends _0x47ce4c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38d64a){function _0x3f7fae(_0x24d9d5){return _0x24d9d5['map'](_0x21471d=>String['fromCharCode'](_0x21471d))['join']('');}super(_0x38d64a),this['result']='end',_0x38d64a[_0x3f7fae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f7fae([0x76,0x69,0x65,0x77])][_0x3f7fae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f7fae([0x61,0x75,0x74,0x6f]),_0x38d64a[_0x3f7fae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3f7fae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f7fae([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3f7fae([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3f7fae([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(_0x582663){return void 0x0!==_0x582663['getRootsAttributes'];}async function N(_0x15bbe2,_0x36c22a,_0x21b131){const _0x2318b5=_0x587fa8(_0x15bbe2,w);_0x2318b5['plugins']['push'](p,D),_0x2318b5['rootsAttributes']=Fe(_0x15bbe2)?_0x15bbe2['getRootsAttributes']():void 0x0;const _0x4c2857=document['createDocumentFragment'](),_0x286240=_0x15bbe2['config']['get']('trackChangesData')['editorCreator'],_0x30abaf=await _0x286240(_0x2318b5,()=>function(_0x2c74c9){const _0x6550=document['createElement']('div');return _0x2c74c9['appendChild'](_0x6550),_0x6550;}(_0x4c2857));!function(_0xf97ac1,_0x1ba2c6){const _0x4c88f4=_0xf97ac1['model']['document']['getRootNames']()['reduce']((_0x124f74,_0x4a42a5)=>(_0x124f74[_0x4a42a5]=_0xf97ac1['data']['get']({'rootName':_0x4a42a5}),_0x124f74),{}),_0x357e6f=_0xf97ac1['plugins']['get']('Users')['users']['map'](_0x53190c=>({'id':_0x53190c['id'],'name':_0x53190c['name']})),_0x239b34=_0xf97ac1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x386476=_0xf97ac1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1addb9=_0x1ba2c6['plugins']['get']('Users'),_0x29b4e9=_0x1ba2c6['plugins']['get']('TrackChangesEditing'),_0x2145d6=_0x1ba2c6['plugins']['get']('CommentsRepository');for(const _0x5c4b4c of _0x2145d6['getCommentThreads']())_0x5c4b4c['remove']();for(const _0x555e35 of _0x357e6f)_0x1addb9['getUser'](_0x555e35['id'])||_0x1addb9['addUser'](_0x555e35);_0x1addb9['me']||_0x1addb9['useAnonymousUser']();for(const _0x3faf68 of _0x386476)_0x2145d6['addCommentThread'](_0x3faf68);for(const _0x54ba86 of _0x239b34)_0x29b4e9['addSuggestionData'](_0x54ba86);_0x1ba2c6['data']['set'](_0x4c88f4);}(_0x15bbe2,_0x30abaf),_0x30abaf['execute'](_0x36c22a?'acceptAllSuggestions':'discardAllSuggestions');const _0x12c8ab=Fe(_0x30abaf)?_0x30abaf['getFullData'](_0x21b131):_0x30abaf['data']['get'](_0x21b131);return await _0x30abaf['destroy'](),_0x12c8ab;}class Me extends _0xbe508b{['options'];constructor(_0x37fa03,_0x3aa692){super(_0x37fa03),this['options']=_0x3aa692,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'](_0x243993,_0x24718f){if(!this['element'])return;const _0x86502f=[];for(const [_0x39142c,_0x150af5]of _0x243993){const _0x499e90=document['createElement']('div');_0x499e90['setAttribute']('data-ck-root-name',_0x39142c),_0x499e90['className']=_0x150af5['classes']+'\x20ck-track-changes-preview__root-container',_0x499e90['innerHTML']=_0x150af5['content'],_0x86502f['push'](_0x499e90);}_0x24718f(this['element'],_0x86502f),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x54e22c){super(_0x54e22c),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x379ff1=this['editor'],_0x386db6=_0x379ff1['locale'],_0x14f99b=_0x379ff1['plugins']['get']('Dialog');let _0x5aa685;const _0x5ccbf3=function(_0x147ae5){const _0x5d627b={};if('editables'in _0x147ae5['ui']['view']){for(const [_0x305374,_0x2b0574]of Object['entries'](_0x147ae5['ui']['view']['editables']))_0x5d627b[_0x305374]=_0x2b0574['element'];}else _0x5d627b[_0x147ae5['model']['document']['getRootNames']()[0x0]]=_0x147ae5['ui']['view']['editable']['element'];return _0x5d627b;}(_0x379ff1),_0x21313c=function(_0x1692fe){let _0x36e45f=0x0;for(const _0x10befe of Object['values'](_0x1692fe))_0x36e45f=Math['max'](_0x36e45f,_0x10befe['getBoundingClientRect']()['width']);let _0x1428b6=0x0;for(const _0x3212ec of Object['values'](_0x1692fe))_0x1428b6+=_0x3212ec['getBoundingClientRect']()['height'];const _0x2280e0=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5cf628=Math['min'](_0x1428b6,_0x2280e0);return{'width':_0x36e45f,'height':_0x5cf628};}(_0x5ccbf3);_0x14f99b['show']({'id':'finalContentPreview','title':o(_0x386db6,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x386db6,{'dialogRects':_0x21313c}),'onHide':()=>{_0x5aa685['detachFromDom']();},'onShow':()=>{_0x379ff1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x33fa06=>{const _0x37b797=this['_standarizeRootsData'](_0x33fa06,_0x379ff1,_0x5ccbf3);_0x14f99b['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x37b797,_0x379ff1['config']['get']('trackChanges.preview.renderFunction'));}),_0x5aa685=new _0xb66b60(_0x386db6,[_0x14f99b['view']]),_0x5aa685['attachToDom'](),_0x5aa685['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x379ff1['once']('destroy',()=>{_0x5aa685['detachFromDom']();});const _0x1273a2=_0x14f99b['view']['headerView']['class'];_0x14f99b['view']['headerView']['class']=_0x1273a2?_0x1273a2+'\x20ck-reset_all':'ck-reset_all',_0x14f99b['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x14f99b['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1caeef=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x499d21=_0x1caeef['previewMode'],_0x261099={};if('$labels'===_0x499d21){for(const _0x2a4f11 of _0x1caeef['getMergeFieldsIds']())_0x261099[_0x2a4f11]=_0x1caeef['getLabel'](_0x2a4f11)||_0x2a4f11;}else{const _0x434eae='$defaultValues'===_0x499d21?_0x1caeef['getDefaultValues']():_0x1caeef['getDataSetValues'](_0x499d21,!0x0);for(const _0x5145f4 of Object['entries'](_0x434eae)){const [_0xf5586e,_0x32abe2]=_0x5145f4;_0x261099[_0xf5586e]=null!==_0x32abe2?_0x32abe2:_0x1caeef['getLabel'](_0xf5586e)||_0xf5586e;}}return{'mergeFieldsData':_0x261099};}['_standarizeRootsData'](_0x477cc8,_0x272325,_0x6ff4be){let _0xf52c70;if('string'==typeof _0x477cc8){const _0x1903bb=_0x272325['model']['document']['getRootNames']()[0x0];_0xf52c70={[_0x1903bb]:_0x477cc8};}else _0xf52c70=_0x477cc8;const _0x6e48b5=this['_fixMediaEmbeds'](_0xf52c70,_0x272325),_0x5e2088=function(_0x1b7977,_0x381035){for(const [_0x12b3a1,_0x850374]of _0x1b7977)_0x850374['classes']=_0x381035[_0x12b3a1]['classList']['value']['replace']('ck-focused','');return _0x1b7977;}(this['_sortRoots'](_0x272325)['reduce']((_0x9eca7a,_0x38d361)=>(_0x9eca7a['push']([_0x38d361,{'content':_0x6e48b5[_0x38d361],'classes':''}]),_0x9eca7a),[]),_0x6ff4be);return _0x5e2088;}['_fixMediaEmbeds'](_0x42de8f,_0x6ca1e8){if(!_0x6ca1e8['plugins']['has']('MediaEmbedEditing'))return _0x42de8f;const _0xa27535=_0x6ca1e8['plugins']['get']('MediaEmbedEditing');for(const [_0x303114,_0xae674]of Object['entries'](_0x42de8f)){const _0x32d8e7=document['createElement']('div');_0x32d8e7['innerHTML']=_0xae674,(_0x32d8e7['querySelectorAll']('figure.media')['forEach'](_0xa6c8ba=>{const _0x4c075f=_0xa6c8ba['querySelector']('oembed');if(_0x4c075f){const _0x5a9d49=_0x4c075f['getAttribute']('url');if(_0x5a9d49){const _0x202071=_0xa27535['registry']['getMediaViewElement'](new _0x2cca3c(_0x6ca1e8['editing']['view']['document']),_0x5a9d49,{'elementName':'','renderForEditingView':!0x0}),_0x2d8126=document['createElement']('div');_0x2d8126['classList']['add']('ck-media__wrapper'),_0x202071['render'](_0x2d8126,_0x6ca1e8['editing']['view']['domConverter']),_0x4c075f['replaceWith'](_0x2d8126);}}}),_0x42de8f[_0x303114]=_0x32d8e7['innerHTML']);}return _0x42de8f;}['_sortRoots'](_0x245543){if(!function(_0x3aa39c){return void 0x0!==_0x3aa39c['getRootsAttributes'];}(_0x245543))return _0x245543['model']['document']['getRootNames']();const _0x31ffd4=[],_0x58814f=new Map();for(const _0xa1bcd5 of _0x245543['model']['document']['getRootNames']()){const _0x27d07a=_0x245543['editing']['view']['getDomRoot'](_0xa1bcd5)['getClientRects']()['item'](0x0);_0x31ffd4['push'](_0xa1bcd5),_0x58814f['set'](_0xa1bcd5,_0x27d07a);}return _0x31ffd4['sort']((_0x2d2b17,_0x41e259)=>{const _0x3b7e73=_0x58814f['get'](_0x2d2b17),_0x8adb1e=_0x58814f['get'](_0x41e259);return _0x3b7e73['y']-_0x8adb1e['y']||_0x3b7e73['x']-_0x8adb1e['x'];}),_0x31ffd4;}}class te extends _0x47ce4c{static get['requires'](){return[T,_0x4eee0a];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3472ab){super(_0x3472ab),_0x3472ab['commands']['add']('previewFinalContent',new re(this['editor'])),_0x3472ab['config']['define']('trackChanges.preview.renderFunction',(_0x59bdbc,_0x4ee149)=>{for(const _0x245726 of _0x4ee149)_0x59bdbc['appendChild'](_0x245726);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x2699b4,Plugin as _0x53ae92,PendingActions as _0xe8a11}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3d4351,ObservableMixin as _0x26da1b,uid as _0x33987a,priorities as _0x9eec71,insertToPriorityArray as _0x2b1d38,logWarning as _0x2d4306,getEnvKeystrokeText as _0x3a2a25,FocusTracker as _0x3f3e84,KeystrokeHandler as _0x21acad,Collection as _0x3abf58}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x8f20bd,IconCancel as _0x297710,IconTrackChanges as _0x274568}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as Zt,View as _0x5297f1,ViewCollection as _0x2e2014,FocusCycler as _0x197fc3,ViewModel as _0x2e500b,createDropdown as _0xc838a8,SplitButtonView as _0x206658,addListToDropdown as _0x185cd5,MenuBarMenuView as _0x4e0aa7,MenuBarMenuListView as _0x2170a6,ListSeparatorView as _0x1a819b,MenuBarMenuListItemView as _0x3d208e,MenuBarMenuListItemButtonView as _0xbe4a96,BodyCollection as _0x5bf6bf,Dialog as _0xc3148a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xd79e0a,hashObject as _0x1c269b,surroundingMarkersDetector as _0x298a0a,FOCUS_ANNOTATION_KEYSTROKE as _0x3a9486,AriaDescriptionView as _0x5eb931,setupThreadKeyboardNavigation as _0x16eee3,trimHtml as ti,UserView as _0x25b38c,LateFocusButtonView as _0xd3f9ac,getDateTimeFormatter as _0x4e981b,getAllMarkersDomElementsSorted as _0x472501,sanitizeEditorConfig as _0x4681f7}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x11a90c,LiveRange as _0x7362da,LivePosition as _0x36d914,DowncastWriter as _0xc616a3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xc49cfd,toWidget as _0x5442e8}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x46ebd3,set as _0x53ca67,isEqual as _0x17e1e9,unset as _0x5e0f8b,omit as Et}from'es-toolkit/compat';import{Delete as _0x27e985,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x39beb8,ShiftEnter as _0x35e7df}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x2699b4{['_enabledCommands'];constructor(_0x1f709b,_0x4fdc2c){super(_0x1f709b),this['_enabledCommands']=_0x4fdc2c,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 _0x43824e of this['editor']['commands']['commands']())_0x43824e['affectsData']&&!this['_enabledCommands']['has'](_0x43824e)&&_0x43824e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4794c6 of this['editor']['commands']['commands']())_0x4794c6['affectsData']&&!this['_enabledCommands']['has'](_0x4794c6)&&_0x4794c6['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x2699b4{['_suggestions'];constructor(_0x2b35a0,_0x32b381){super(_0x2b35a0),this['_suggestions']=_0x32b381,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c583f){const _0x584912=this['_suggestions']['get'](_0x5c583f);if(!_0x584912)throw new _0x3d4351('track-changes-accept-suggestion-not-found',this);const _0x20efc1=_0x584912['getRanges']();this['editor']['model']['canEditAt'](_0x20efc1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x584912);}}class R extends _0x2699b4{['_suggestions'];constructor(_0x519143,_0x46e24d){super(_0x519143),this['_suggestions']=_0x46e24d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x11d2c5){const _0x5590da=this['_suggestions']['get'](_0x11d2c5);if(!_0x5590da)throw new _0x3d4351('track-changes-discard-suggestion-not-found',this);const _0x40b251=_0x5590da['getRanges']();this['editor']['model']['canEditAt'](_0x40b251)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5590da);}}function ls(_0x2d5e06,_0x9ea59d){let _0x5a84e0='';return _0x5a84e0+=_0x2d5e06['split']('*')['map']((_0x219724,_0x7bfb2c)=>_0x7bfb2c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x219724)+'</span>':nn(_0x219724))['join'](''),_0x9ea59d&&(_0x5a84e0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x9ea59d['value']+'\x22\x20title=\x22'+_0x9ea59d['title']+'\x22></span>'),_0x5a84e0;}function nn(_0x4186f5){const _0x3eb65e=document['createElement']('span');return _0x3eb65e['innerText']=_0x4186f5,_0x3eb65e['innerHTML'];}function ts(_0x3b67e3){return _0x3b67e3['sort']((_0x116335,_0xc3290a)=>'deletion'==_0x116335['type']&&'deletion'!=_0xc3290a['type']?-0x1:'deletion'!=_0x116335['type']&&'deletion'==_0xc3290a['type']?0x1:0x0);}function Xt(_0x3afa9d,_0x4e642c){let _0x221519,_0x28bedb=0x0;const _0xdf66fe=[],_0x511019=_0x4e642c['schema'];for(;_0x28bedb<_0x3afa9d['length'];){const _0x4dc29d=_0x3afa9d[_0x28bedb],_0xda4e1c=_0x3afa9d[_0x28bedb+0x1];_0x221519||(_0x221519=_0x4e642c['createPositionBefore'](_0x4dc29d)),on(_0x4e642c,_0x4dc29d,_0xda4e1c)||(_0xdf66fe['push'](_0x4e642c['createRange'](_0x221519,_0x511019['isObject'](_0x4dc29d)?_0x4e642c['createPositionAfter'](_0x4dc29d):_0x4e642c['createPositionAt'](_0x4dc29d,'end'))),_0x221519=null),_0x28bedb++;}return _0xdf66fe;}function on(_0x59dc8e,_0x5059b5,_0x1d036f){if(!_0x1d036f)return!0x1;const _0x37faca=_0x59dc8e['createPositionAfter'](_0x5059b5),_0x52f9ee=_0x59dc8e['createPositionBefore'](_0x1d036f);return _0x37faca['isTouching'](_0x52f9ee);}function rs(_0x51a8c0,_0x39a9a8,_0x3a8f3f){for(;_0x3a8f3f['length'];){const _0x46ff10=_0x3a8f3f['splice'](0x0,0x64);_0x51a8c0['change'](()=>{for(const _0xf87f0c of _0x46ff10)_0xf87f0c['isInContent']&&_0x39a9a8['execute'](_0xf87f0c['id']);});}}class x extends _0x2699b4{['_command'];['_suggestions'];constructor(_0x6dffeb,_0x32e0b5,_0xd53713){super(_0x6dffeb),this['_command']=_0x32e0b5,this['_suggestions']=_0xd53713,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3fd39d=Array['from'](this['_suggestions']['values']())['some'](_0x132bb8=>_0x132bb8['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3fd39d;}['execute'](){const _0x1dd9a0=ts(Array['from'](this['_suggestions']['values']()));for(const _0x5d982a of _0x1dd9a0){const _0x5eefdf=_0x5d982a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5eefdf))return;}rs(this['editor']['model'],this['_command'],_0x1dd9a0);}}class E extends _0x2699b4{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x729add,_0x595039,_0x3c4e40){super(_0x729add),this['_command']=_0x595039,this['_suggestions']=_0x3c4e40,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x188731=this['editor']['model']['document']['selection'],_0x2b60b3=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1d1d82,_0x3e092f){const _0x45e9fd=Array['from'](_0x1d1d82['getRanges']()),_0x22d223=new Set();for(const _0xf85ae of _0x3e092f)if(_0xf85ae['isInContent']){for(const _0x57d0e1 of _0x45e9fd)for(const _0x1aaac8 of _0xf85ae['getRanges']())(_0x57d0e1['isIntersecting'](_0x1aaac8)||_0x1d1d82['isCollapsed']&&!_0xf85ae['isMultiRange']&&_0xf85ae['next']&&_0x1aaac8['end']['isTouching'](_0x57d0e1['start']))&&_0x22d223['add'](_0xf85ae);}return _0x22d223;}(_0x188731,_0x2b60b3),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x232abc=ts(Array['from'](this['_selectedSuggestions']));for(const _0x379e41 of _0x232abc){const _0x4a4751=_0x379e41['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4a4751))return;}rs(this['editor']['model'],this['_command'],_0x232abc);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x26da1b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4de20c,_0xb9b5ec){super(),this['id']=_0xb9b5ec['id'],this['type']=_0xb9b5ec['type'],this['subType']=_0xb9b5ec['subType']||null,this['author']=_0xb9b5ec['author'],this['creator']=_0xb9b5ec['creator']||_0xb9b5ec['author'],this['isExternal']=Boolean(_0xb9b5ec['attributes']&&_0xb9b5ec['attributes']['@external']),this['data']=null,this['_model']=_0x4de20c,this['_onAccept']=_0xb9b5ec['onAccept'],this['_onDiscard']=_0xb9b5ec['onDiscard'],this['_onAttributesChange']=_0xb9b5ec['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xb9b5ec['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 _0x434cde=this;for(;_0x434cde['previous'];)_0x434cde=_0x434cde['previous'];return _0x434cde;}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'](_0x45810e){this['_markerNames']['add'](_0x45810e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1e7329=>this['_model']['markers']['get'](_0x1e7329))['filter'](_0x2635a6=>_0x2635a6);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4f7c8b=>{for(const _0x311849 of this['getMarkers']())_0x4f7c8b['removeMarker'](_0x311849);}),this['_markerNames']['clear']();}['removeMarker'](_0x5814bb){this['_model']['change'](_0x4de677=>{_0x4de677['removeMarker'](_0x5814bb);}),this['_markerNames']['delete'](_0x5814bb);}['addRange'](_0x1d9f82){const _0x1ccf6e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x1ccf6e),this['_model']['change'](_0x3f406f=>{_0x3f406f['addMarker'](_0x1ccf6e,{'range':_0x1d9f82,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x200071){for(const _0x542d65 of this['getRanges']())if(_0x542d65['isIntersecting'](_0x200071))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xabb97e=>_0xabb97e['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2854af,_0x2b23cf)=>[..._0x2854af,..._0x2b23cf['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x41ef1c=this['getRanges']();if(0x1!=_0x41ef1c['length'])return null;const _0x2d2f8b=_0x41ef1c[0x0],_0x3d59b0=_0x2d2f8b['start']['nodeAfter'],_0x55e1ff=_0x2d2f8b['end']['nodeBefore'];return _0x3d59b0 instanceof _0x11a90c?_0x3d59b0!=_0x55e1ff?null:_0x3d59b0: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 _0x447753=[];let _0x26ba63=this['head'];for(;_0x26ba63;)_0x447753['push'](_0x26ba63),_0x26ba63=_0x26ba63['next'];return _0x447753;}['setAttribute'](_0x5a9c71,_0x1ce070){const _0x12bd32=_0x46ebd3(this['attributes']);_0x53ca67(_0x12bd32,_0x5a9c71,_0x1ce070),_0x17e1e9(_0x12bd32,this['attributes'])||(this['attributes']=_0x12bd32,this['_onAttributesChange'](_0x12bd32));}['removeAttribute'](_0xea21c6){const _0x1877f3=_0x46ebd3(this['attributes']);_0x5e0f8b(_0x1877f3,_0xea21c6),_0x17e1e9(_0x1877f3,this['attributes'])||(this['attributes']=_0x1877f3,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 _0x33987a()['substr'](0x1,0x5);}}function c(_0x445258,_0x161206,_0x36a579){const _0x46ccb5=_0x445258['t'],t=_0x445258['t'];switch(_0x161206){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',_0x36a579);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x36a579);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x36a579);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x36a579);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x36a579);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',_0x36a579);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x36a579);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',_0x36a579);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x36a579);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x36a579);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x36a579);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x36a579);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x36a579);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x36a579);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x36a579);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x36a579);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x36a579);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x36a579);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x36a579);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x36a579);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x36a579);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x36a579);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x36a579);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x36a579);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'},_0x36a579);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x36a579);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x36a579);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x36a579);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x36a579);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x36a579);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'},_0x36a579);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x36a579);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x36a579);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x36a579);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x36a579);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'},_0x36a579);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x36a579);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'},_0x36a579);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'},_0x36a579);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x36a579);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'},_0x36a579);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x36a579);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'},_0x36a579);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x36a579);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x36a579);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'},_0x36a579);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x36a579);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 _0x46ccb5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x36a579);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x46ccb5({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x36a579);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x36a579);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'},_0x36a579);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'},_0x36a579);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'},_0x36a579);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x161206;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x173372,_0x5ddfac){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x173372,this['_locale']=_0x5ddfac;}['getDescriptions'](_0x40cbd0){const _0x3728e8=[],_0x1e5fbb=new Set(),_0xe36461=new Set();for(let _0x4565ee=0x0;_0x4565ee<_0x40cbd0['length'];_0x4565ee++){const _0x527b7d=_0x40cbd0[_0x4565ee];if(!_0x527b7d['isInContent'])continue;const _0x137cc7=this['_handleCustomCallbackDescription'](_0x527b7d);if(_0x137cc7){if(null!=_0x527b7d['subType']){if(_0x1e5fbb['has'](_0x527b7d['subType']))continue;_0x1e5fbb['add'](_0x527b7d['subType']);}_0x3728e8['push'](_0x137cc7);}else{if('attribute'!=_0x527b7d['type'])'insertion'!=_0x527b7d['type']&&'deletion'!=_0x527b7d['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3728e8,_0x527b7d,_0x40cbd0[_0x4565ee+0x1]);else{const _0x161383=_0x527b7d['data']['key'];if(_0xe36461['has'](_0x161383))continue;_0xe36461['add'](_0x527b7d['data']['key']),_0x161383==u?this['_handleRenameSuggestionDescription'](_0x3728e8,_0x527b7d):this['_handleAttributeSuggestionDescription'](_0x3728e8,_0x527b7d);}}}return this['_resolveDescriptionItems'](_0x3728e8);}['registerDescriptionCallback'](_0x3823dd){this['_customCallbacks']['push'](_0x3823dd);}['registerElementLabel'](_0x2a400d,_0x487465,_0x56ee06=_0x9eec71['normal']){'function'==typeof _0x2a400d?_0x2b1d38(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2a400d,'label':_0x487465,'priority':_0x56ee06}):this['_itemLabels']['set'](_0x2a400d,_0x487465);}['registerAttributeLabel'](_0x27ca9b,_0x518b5a){this['_attributeLabels']['set'](_0x27ca9b,_0x518b5a);}['getItemLabel'](_0x825058,_0x23ec8a=0x1){let _0x26d345;for(const _0x539a94 of this['_itemLabelsCallbacks'])if(_0x539a94['matchingCallback'](_0x825058)){_0x26d345=_0x539a94['label'];break;}return _0x26d345||(_0x26d345=this['_itemLabels']['get'](_0x825058['name'])),_0x26d345?_0x26d345(_0x23ec8a):0x1!==_0x23ec8a?_0x23ec8a+'\x20'+_0x825058['name']+'s':''+_0x825058['name'];}['_addDescriptionItems'](_0x22b9ee,_0x4dc5d6){const _0x2daf35=_0x4dc5d6['getFirstRange']()['getWalker'](),_0x5936fd='insertion'==_0x4dc5d6['type']?'add':'remove';for(const _0x5d58a1 of _0x2daf35){const _0x2adece=_0x5d58a1['item'],_0x161266=_0x22b9ee[_0x22b9ee['length']-0x1];if(_0x2adece['is']('$textProxy'))_0x161266&&_0x161266['type']['indexOf']('Container')>-0x1&&_0x22b9ee['pop'](),_0x161266&&'text'==_0x161266['type']?_0x161266[_0x5936fd]+=_0x2adece['data']:_0x22b9ee['push']({'type':'text','add':'add'==_0x5936fd?_0x2adece['data']:'','remove':'remove'==_0x5936fd?_0x2adece['data']:''});else{if(this['_schema']['isObject'](_0x2adece)){const _0x5bfd4d=_0x2adece;if(_0x161266&&_0x161266['type']['indexOf']('Container')>-0x1&&_0x22b9ee['pop'](),'elementEnd'==_0x5d58a1['type'])continue;_0x161266&&_0x161266['type']==_0x5936fd+'Object'&&_0x161266['element']['name']==_0x5bfd4d['name']?_0x161266['quantity']++:_0x22b9ee['push']({'type':_0x5936fd+'Object','element':_0x5bfd4d,'quantity':0x1}),_0x2daf35['skip'](_0x48235c=>!('elementEnd'==_0x48235c['type']&&_0x48235c['item']==_0x2adece));}else{if(this['_schema']['checkChild'](_0x2adece,'$text')||_0x2adece['is']('element','softBreak')){const _0x458e20=_0x2adece;if('add'==_0x5936fd&&'elementStart'==_0x5d58a1['type']||'remove'==_0x5936fd&&'elementEnd'==_0x5d58a1['type'])continue;if(_0x161266&&-0x1==_0x161266['type']['indexOf']('Container')){'text'==_0x161266['type']&&(_0x161266[_0x5936fd]+='\x0a');continue;}let _0x43f1d6;if(_0x43f1d6='add'==_0x5936fd?_0x458e20['nextSibling']&&!this['_schema']['isObject'](_0x458e20['nextSibling'])?_0x458e20['nextSibling']:null:_0x458e20['previousSibling']&&!this['_schema']['isObject'](_0x458e20['previousSibling'])?_0x458e20['previousSibling']:null,_0x458e20['isEmpty']||_0x43f1d6&&_0x43f1d6['isEmpty']){const _0x35a29e=_0x43f1d6&&_0x43f1d6['isEmpty']?_0x43f1d6:_0x458e20;_0x161266&&_0x161266['type']==_0x5936fd+'EmptyContainer'&&_0x161266['element']['name']==_0x35a29e['name']?_0x161266['quantity']++:_0x22b9ee['push']({'type':_0x5936fd+'EmptyContainer','element':_0x35a29e,'quantity':0x1});}else _0x22b9ee['push']({'type':_0x5936fd+'Container','element':_0x458e20});}}}}}['_resolveDescriptionItems'](_0xe74452){const _0x383897=this['_locale'],_0x399312=[],_0x2ca003=[],_0x5ba6ae=[];for(const _0x160e2f of _0xe74452)switch(_0x160e2f['type']){case'text':if(_0x160e2f['add']=_0x160e2f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x160e2f['remove']=_0x160e2f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x160e2f['add']&&''!=_0x160e2f['remove']){_0x399312['push']({'type':'replace','content':c(_0x383897,'REPLACE_TEXT',['\x22'+_0x160e2f['remove']+'\x22','\x22'+_0x160e2f['add']+'\x22'])});continue;}if(null!=_0x160e2f['add']['match'](/^ +$/)){_0x399312['push']({'type':'insertion','content':c(_0x383897,'*Insert:*\x20%0',c(_0x383897,'ELEMENT_SPACE',_0x160e2f['add']['length']))});continue;}if(null!=_0x160e2f['remove']['match'](/^ +$/)){_0x399312['push']({'type':'deletion','content':c(_0x383897,'*Remove:*\x20%0',c(_0x383897,'ELEMENT_SPACE',_0x160e2f['remove']['length']))});continue;}if(''!=_0x160e2f['add']){_0x399312['push']({'type':'insertion','content':c(_0x383897,'*Insert:*\x20%0','\x22'+_0x160e2f['add']+'\x22')});continue;}_0x399312['push']({'type':'deletion','content':c(_0x383897,'*Remove:*\x20%0','\x22'+_0x160e2f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x399312['push']({'type':'insertion','content':c(_0x383897,'*Insert:*\x20%0',this['getItemLabel'](_0x160e2f['element'],_0x160e2f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x399312['push']({'type':'deletion','content':c(_0x383897,'*Remove:*\x20%0',this['getItemLabel'](_0x160e2f['element'],_0x160e2f['quantity']))});continue;case'addContainer':_0x399312['push']({'type':'insertion','content':c(_0x383897,'*Split:*\x20%0',this['getItemLabel'](_0x160e2f['element'],_0x160e2f['quantity']))});continue;case'removeContainer':_0x399312['push']({'type':'deletion','content':c(_0x383897,'*Merge:*\x20%0',this['getItemLabel'](_0x160e2f['element'],_0x160e2f['quantity']))});continue;case'addFormat':_0x2ca003['push'](_0x160e2f['key']);continue;case'removeFormat':_0x5ba6ae['push'](_0x160e2f['key']);continue;default:_0x399312['push'](_0x160e2f);}if(_0x2ca003['length']){const _0x5a3f36=_0x2ca003['map'](_0x17458a=>this['_attributeLabels']['has'](_0x17458a)?this['_attributeLabels']['get'](_0x17458a):_0x17458a)['join'](',\x20');_0x399312['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x5a3f36)});}if(_0x5ba6ae['length']){const _0xfcb476=_0x5ba6ae['map'](_0x5aaed0=>this['_attributeLabels']['has'](_0x5aaed0)?this['_attributeLabels']['get'](_0x5aaed0):_0x5aaed0)['join'](',\x20');_0x399312['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0xfcb476)});}return _0x399312;}['_handleCustomCallbackDescription'](_0x229eac){for(const _0x1c8987 of this['_customCallbacks']){const _0x2a824b=_0x1c8987(_0x229eac);if(_0x2a824b&&'type'in _0x2a824b)return _0x2a824b;}}['_handleAttributeSuggestionDescription'](_0x146db3,_0x1c1381){const _0x5d8b29=_0x1c1381['data'],_0x5658c1=void 0x0===_0x5d8b29['newValue']?'removeFormat':'addFormat';_0x146db3['push']({'type':_0x5658c1,'key':_0x5d8b29['key']});}['_handleRenameSuggestionDescription'](_0x137400,_0x35ab5d){_0x137400['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x35ab5d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x47e149,_0x3432a9,_0x2444c2){if(this['_addDescriptionItems'](_0x47e149,_0x3432a9),_0x2444c2&&_0x2444c2['getFirstRange']()&&!_0x3432a9['getFirstRange']()['end']['isEqual'](_0x2444c2['getFirstRange']()['start'])){const _0x11f32e=_0x47e149[_0x47e149['length']-0x1],_0x42e749='insertion'==_0x3432a9['type']?'add':'remove';_0x11f32e&&'text'==_0x11f32e['type']&&(_0x11f32e[_0x42e749]+='\x0a');}}}class U extends _0x53ae92{['afterInit'](){const _0x276d9e=this['editor'],_0xba4c06=_0x276d9e['plugins']['get']('TrackChangesEditing');_0x276d9e['commands']['get']('showAIAssistant')&&_0xba4c06['enableCommand']('showAIAssistant');}}class V extends _0x53ae92{['afterInit'](){const _0x504fec=this['editor'],_0x55a0f6=_0x504fec['locale'];if(!_0x504fec['plugins']['has']('AlignmentEditing'))return;const _0x4c6ad6=_0x504fec['plugins']['get']('TrackChangesEditing');_0x4c6ad6['enableDefaultAttributesIntegration']('alignment'),_0x4c6ad6['registerBlockAttribute']('alignment'),_0x4c6ad6['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x55a0f6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a76d3=this['editor'],_0x1ce5ac=_0x3a76d3['locale'];_0x3a76d3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb1aac9=>{if('formatBlock'!=_0xb1aac9['type'])return;const {data:_0xbe0c71}=_0xb1aac9;if(_0xbe0c71&&'alignment'==_0xbe0c71['commandName']){const _0x25f98b=_0xbe0c71['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1ce5ac,'*Format:*\x20%0',function(_0x370b26){switch(_0x370b26){case'left':return c(_0x1ce5ac,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1ce5ac,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1ce5ac,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1ce5ac,'FORMAT_JUSTIFY_TEXT');}}(_0x25f98b))};}});}}const Qt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x53ae92{['afterInit'](){const _0x4fa6e3=this['editor'],_0x31c3e4=_0x4fa6e3['plugins']['get']('TrackChangesEditing'),_0x209e58=_0x4fa6e3['locale'];for(const _0x112da9 of Qt){if(!_0x4fa6e3['plugins']['has'](_0x112da9))continue;const _0x222b57=_0x112da9['slice'](0x0,-0x7)['toLowerCase'](),_0x2f99ea='FORMAT_'+_0x222b57['toUpperCase']();_0x31c3e4['enableDefaultAttributesIntegration'](_0x222b57),_0x31c3e4['registerInlineAttribute'](_0x222b57),_0x31c3e4['descriptionFactory']['registerAttributeLabel'](_0x222b57,c(_0x209e58,_0x2f99ea));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fbe7a=this['editor'],_0x347a52=_0x4fbe7a['locale'],_0x267250=_0x4fbe7a['plugins']['get']('TrackChangesEditing');function _0x136496(_0x2d3e6d,_0x305dac){_0x267250['descriptionFactory']['registerDescriptionCallback'](_0x18d288=>{if('formatInline'!=_0x18d288['type'])return;const {data:_0x39394a}=_0x18d288;return _0x39394a&&_0x39394a['commandName']===_0x2d3e6d?_0x39394a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x347a52,'*Format:*\x20%0',_0x305dac)}:{'type':'format','content':c(_0x347a52,'*Remove\x20format:*\x20%0',_0x305dac)}:void 0x0;});}_0x136496('bold',c(_0x347a52,'FORMAT_BOLD')),_0x136496('italic',c(_0x347a52,'FORMAT_ITALIC')),_0x136496('underline',c(_0x347a52,'FORMAT_UNDERLINE')),_0x136496('code',c(_0x347a52,'FORMAT_CODE')),_0x136496('strikethrough',c(_0x347a52,'FORMAT_STRIKETHROUGH')),_0x136496('subscript',c(_0x347a52,'FORMAT_SUBSCRIPT')),_0x136496('superscript',c(_0x347a52,'FORMAT_SUPERSCRIPT'));}}class G extends _0x53ae92{['afterInit'](){const _0x2efce5=this['editor'],_0x1ab3dc=_0x2efce5['locale'];if(!_0x2efce5['plugins']['has']('BlockQuoteEditing'))return;const _0x3b33cd=_0x2efce5['plugins']['get']('TrackChangesEditing'),_0x55e0aa=this['editor']['commands']['get']('blockQuote');_0x3b33cd['enableCommand']('blockQuote',(_0x4e3933,_0x3be6c7={})=>{const _0x4b406c=this['editor']['model']['document']['selection'],_0x51ada5=_0x3be6c7&&void 0x0!==_0x3be6c7['forceValue']?_0x3be6c7['forceValue']:!_0x55e0aa['value'];let _0x1a4300=[];if(_0x51ada5){const _0x4bc6d3=Array['from'](_0x4b406c['getSelectedBlocks']())['filter'](_0x3a8db9=>Yt(_0x3a8db9)||function(_0x59b68d,_0x17aef6){const _0x2cc66c=_0x17aef6['checkChild'](_0x59b68d['parent'],'blockQuote'),_0x5cfaef=_0x17aef6['checkChild'](['$root','blockQuote'],_0x59b68d);return _0x2cc66c&&_0x5cfaef;}(_0x3a8db9,this['editor']['model']['schema']));_0x1a4300=Xt(_0x4bc6d3,_0x2efce5['model']);}else{const _0x22bf98=Array['from'](_0x4b406c['getSelectedBlocks']())['filter'](_0x279dee=>Yt(_0x279dee));_0x1a4300=Xt(_0x22bf98,_0x2efce5['model']);}_0x2efce5['model']['change'](()=>{for(const _0x16ee15 of _0x1a4300)_0x3b33cd['markBlockFormat'](_0x16ee15,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x51ada5}]});});}),_0x3b33cd['descriptionFactory']['registerDescriptionCallback'](_0x52cb22=>{const {data:_0x177d7d}=_0x52cb22;if(_0x177d7d&&'blockQuote'==_0x177d7d['commandName']){const _0x308d32=c(_0x1ab3dc,'ELEMENT_BLOCK_QUOTE');return _0x177d7d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1ab3dc,'*Set\x20format:*\x20%0',_0x308d32)}:{'type':'format','content':c(_0x1ab3dc,'*Remove\x20format:*\x20%0',_0x308d32)};}});}}function Yt(_0x3cb39e){return'blockQuote'==_0x3cb39e['parent']['name'];}class L extends _0x53ae92{['afterInit'](){const _0x86a8eb=this['editor'],_0x23b107=_0x86a8eb['locale'],_0x402b50=_0x86a8eb['plugins']['get']('TrackChangesEditing');_0x86a8eb['plugins']['has']('BookmarkEditing')&&(_0x402b50['enableCommand']('insertBookmark'),_0x402b50['enableDefaultAttributesIntegration']('updateBookmark'),_0x402b50['registerBlockAttribute']('bookmarkId'),_0x402b50['descriptionFactory']['registerDescriptionCallback'](_0x4b0776=>{if('insertion'!=_0x4b0776['type']&&'deletion'!=_0x4b0776['type']&&'attribute'!=_0x4b0776['type'])return;const _0x57db06=_0x4b0776['getContainedElement']();if(null==_0x57db06)return;if(!_0x57db06['is']('element','bookmark'))return;const _0xb47439=_0x57db06['getAttribute']('bookmarkId');if('insertion'==_0x4b0776['type'])return{'type':'insertion','content':c(_0x23b107,'*Insert:*\x20%0','\x22'+_0xb47439+'\x22\x20'+c(_0x23b107,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4b0776['type'])return{'type':'deletion','content':c(_0x23b107,'*Remove:*\x20%0','\x22'+_0xb47439+'\x22\x20'+c(_0x23b107,'ELEMENT_BOOKMARK'))};const {data:_0x129ea3}=_0x4b0776;if(!_0x129ea3||'bookmarkId'!=_0x129ea3['key'])return;return{'type':'format','content':c(_0x23b107,'*Set\x20bookmark:*\x20%0','\x22'+_0x129ea3['newValue']+'\x22')};}));}}class J extends _0x53ae92{['afterInit'](){const _0x2d3c16=this['editor'];_0x2d3c16['plugins']['has']('CaseChange')&&(_0x2d3c16['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2d3c16['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2d3c16['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x53ae92{['afterInit'](){const _0x543d7f=this['editor'];_0x543d7f['commands']['get']('ckbox')&&_0x543d7f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x53ae92{['afterInit'](){const _0x23ceff=this['editor'];if(!_0x23ceff['plugins']['has']('CodeBlock'))return;const _0x55db41=_0x23ceff['plugins']['get']('TrackChangesEditing'),_0x2e5684=_0x23ceff['locale'],_0x6114ac=_0x23ceff['config']['get']('codeBlock')['languages'],_0x249821=_0x23ceff['commands']['get']('codeBlock');_0x55db41['enableCommand']('indentCodeBlock'),_0x55db41['enableCommand']('outdentCodeBlock'),_0x55db41['enableCommand']('codeBlock',(_0x14680a,_0x4cb19d={})=>{const _0x54f9cf=_0x23ceff['model'],_0x5b5565=_0x23ceff['model']['document']['selection'],_0x4fbfa9=_0x4cb19d&&void 0x0!==_0x4cb19d['forceValue']?_0x4cb19d['forceValue']:!_0x249821['value'];let _0x2b74fe;_0x4cb19d['language']||(_0x4cb19d['language']=_0x6114ac[0x0]['language']),_0x2b74fe=_0x4fbfa9?Array['from'](_0x5b5565['getSelectedBlocks']())['filter'](_0x159df9=>oo(_0x159df9)||function(_0x4db4cf,_0x2fddcf){if(_0x4db4cf['is']('rootElement')||_0x2fddcf['isLimit'](_0x4db4cf))return!0x1;return _0x2fddcf['checkChild'](_0x4db4cf['parent'],'codeBlock');}(_0x159df9,_0x54f9cf['schema'])):Array['from'](_0x5b5565['getSelectedBlocks']())['filter'](_0x4fb2d7=>oo(_0x4fb2d7));const _0x290455=Xt(_0x2b74fe,_0x54f9cf);_0x54f9cf['change'](()=>{for(const _0x47836e of _0x290455)_0x55db41['markBlockFormat'](_0x47836e,{'commandName':'codeBlock','commandParams':[{..._0x4cb19d,'forceValue':_0x4fbfa9}],'formatGroupId':'blockName'});});}),(_0x55db41['descriptionFactory']['registerElementLabel']('codeBlock',_0x41c6c5=>c(_0x2e5684,'ELEMENT_CODE_BLOCK',_0x41c6c5)),_0x55db41['descriptionFactory']['registerDescriptionCallback'](_0x4dab37=>{if('formatBlock'!=_0x4dab37['type'])return;const _0x163334=_0x2e5684['t'],{data:_0x567ae4}=_0x4dab37;if(!_0x567ae4||'codeBlock'!=_0x567ae4['commandName'])return;const _0xada14=_0x567ae4['commandParams'][0x0]['language'],_0x293d56=_0x163334(_0x6114ac['find'](_0x10ad23=>_0x10ad23['language']===_0xada14)['label'])['toLowerCase']();return _0x567ae4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2e5684,'*Set\x20format:*\x20%0',c(_0x2e5684,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x293d56+')')}:{'type':'format','content':c(_0x2e5684,'*Remove\x20format:*\x20%0',c(_0x2e5684,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x1ffecf){return'codeBlock'==_0x1ffecf['name'];}class q extends _0x53ae92{['afterInit'](){const _0x2034c7=this['editor'];if(!_0x2034c7['plugins']['has']('CommentsEditing'))return;_0x2034c7['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function no(_0x215951,_0x391360,_0x4dc630){const _0x38aa22=[];for(const _0x5ed86c of _0x391360['getItems']())_0x5ed86c['hasAttribute'](_0x215951)&&_0x38aa22['push'](_0x4dc630['createRangeOn'](_0x5ed86c));return _0x38aa22;}function De(_0xc8f7eb,_0x3b85dc,{showActiveMarker:_0x106872=!0x0}={}){const _0x17c13e=_0xc8f7eb['plugins']['get']('TrackChangesEditing');return(_0x9ef24d,_0x2f249b,_0x3b9a82)=>{if(!_0x3b9a82['consumable']['test'](_0x2f249b['markerRange'],_0x9ef24d['name']))return;const _0x9dc369=_0x2f249b['markerRange']['getWalker'](),_0x107aa5=_0x2f249b['markerRange']['start'],_0xf4150b=_0xc8f7eb['model']['schema'];let _0x19e9a1=null,_0x950ce7=null,_0x484845=!0x1,_0x232993=!0x1;for(const _0x4bf9a7 of _0x9dc369){const _0x30a874=_0x4bf9a7['item'];_0x484845=_0x484845||_0xf4150b['isContent'](_0x30a874);const _0x332d15=_0x3b9a82['mapper']['toViewElement'](_0x30a874);if(_0x332d15&&_0x332d15['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4bf9a7['type']&&(_0xf4150b['isBlock'](_0x30a874)&&!_0xf4150b['isLimit'](_0x30a874)&&(_0x30a874['nextSibling']||_0x107aa5['isAtEnd']?_0x19e9a1&&_0x19e9a1['parent']==_0x30a874||(_0x19e9a1=_0x30a874,_0x5a5522(_0x4bf9a7['previousPosition']),_0x232993=!0x0):_0x950ce7=_0x950ce7||_0x4bf9a7['previousPosition']));}function _0x5a5522(_0x2a88a0){const {authorId:_0x4f39ff}=_0x17c13e['_splitMarkerName'](_0x2f249b['markerName']),_0x5cdce7=_0x3b9a82['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3b85dc,'data-author-id':_0x4f39ff}),_0x24b3c0=_0x3b9a82['mapper']['toViewPosition'](_0x2a88a0);_0x106872&&_0x17c13e['activeMarkers']['includes'](_0x2f249b['markerName'])&&_0x3b9a82['writer']['addClass']('ck-suggestion-marker--active',_0x5cdce7),_0x3b9a82['writer']['insert'](_0x24b3c0,_0x5cdce7),_0x3b9a82['mapper']['bindElementToMarker'](_0x5cdce7,_0x2f249b['markerName']);}_0x484845||_0x232993||!_0x950ce7||_0x5a5522(_0x950ce7);};}class z extends _0x53ae92{static get['requires'](){return[_0x27e985];}['init'](){const _0x2da285=this['editor'],_0x57d240=_0x2da285['plugins']['get']('TrackChangesEditing');_0x57d240['enableCommand']('delete');const _0x2516d4=_0x2da285['commands']['get']('deleteForward');_0x57d240['enableCommand']('deleteForward',(_0x506332,_0x255afa={})=>{const _0x32b11c=_0x2da285['model']['createSelection'](_0x2da285['model']['document']['selection']);_0x32b11c['isCollapsed']&&_0x2da285['model']['modifySelection'](_0x32b11c,{'direction':'forward','unit':_0x255afa['unit']});const _0x1a4222=_0x32b11c['getFirstRange'](),_0x4db71b=_0x7362da['fromRange'](_0x1a4222);let _0x5dbf04;_0x506332(_0x255afa),_0x5dbf04='$graveyard'==_0x4db71b['root']['rootName']?_0x2da285['model']['createRange'](_0x1a4222['start']):_0x2da285['model']['createRange'](_0x4db71b['start'],_0x4db71b['end']),_0x4db71b['detach'](),_0x2da285['model']['enqueueChange'](_0x2516d4['buffer']['batch'],_0x17021f=>{_0x2516d4['buffer']['lock'](),_0x17021f['setSelection'](_0x17021f['createRange'](_0x5dbf04['end'])),_0x2516d4['buffer']['unlock']();});}),_0x2da285['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x2da285,'merge'),{'priority':'high'}),_0x2da285['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x34d0e0,_0x1ec797,_0xad5f10)=>{_0xad5f10['options']['showSuggestionHighlights']&&De(_0x2da285,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x34d0e0,_0x1ec797,_0xad5f10);},{'priority':'high'}),_0x2da285['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x318cda,_0x18887b,_0xba3322)=>{const _0x45c113=_0xba3322['mapper']['markerNameToElements'](_0x18887b['markerName']);if(_0x45c113){for(const _0x21b54b of _0x45c113)_0x21b54b['is']('uiElement')&&(_0xba3322['mapper']['unbindElementFromMarkerName'](_0x21b54b,_0x18887b['markerName']),_0xba3322['writer']['remove'](_0x21b54b));}},{'priority':'high'});}}class W extends _0x53ae92{['afterInit'](){const _0x1e6a8c=this['editor'];if(!_0x1e6a8c['plugins']['has']('ListEditing'))return;const _0x47055a=_0x1e6a8c['locale'],_0x4b38f8=_0x1e6a8c['plugins']['get']('TrackChangesEditing'),_0x57261a=_0x1e6a8c['plugins']['has']('TodoListEditing'),_0x146c6c=!!_0x1e6a8c['config']['get']('list.multiBlock');function _0xd2a890(_0x4490ab){return{'type':'format','content':''+c(_0x47055a,'*Set\x20format:*\x20%0',_0x4490ab)};}function _0xa7f148(_0x4a336e){return{'type':'format','content':''+c(_0x47055a,'*Remove\x20format:*\x20%0',_0x4a336e)};}_0x4b38f8['enableDefaultAttributesIntegration']('numberedList'),_0x4b38f8['enableDefaultAttributesIntegration']('bulletedList'),_0x4b38f8['enableDefaultAttributesIntegration']('customNumberedList'),_0x4b38f8['enableDefaultAttributesIntegration']('customBulletedList'),_0x4b38f8['enableDefaultAttributesIntegration']('indentList'),_0x4b38f8['enableDefaultAttributesIntegration']('outdentList'),_0x4b38f8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4b38f8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4b38f8['registerBlockAttribute']('listItemId'),_0x4b38f8['registerBlockAttribute']('listType'),_0x4b38f8['registerBlockAttribute']('listIndent'),_0x146c6c&&(_0x4b38f8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4b38f8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x57261a&&(_0x4b38f8['enableDefaultAttributesIntegration']('todoList'),_0x4b38f8['enableDefaultAttributesIntegration']('checkTodoList'),_0x4b38f8['registerBlockAttribute']('todoListChecked'),_0x4b38f8['descriptionFactory']['registerDescriptionCallback'](_0x550d74=>{const {data:_0x57b6eb}=_0x550d74;if(_0x57b6eb&&'todoListChecked'==_0x57b6eb['key'])return{'type':'format','content':_0x57b6eb['newValue']?c(_0x47055a,'*Check\x20item*'):c(_0x47055a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3f0df1=>{if(_0x3f0df1['batch']['isUndo'])return!0x1;let _0x1984e8=!0x1;const _0xddb77c=_0x4b38f8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x371b62=>'todoListChecked'===_0x4b38f8['_getAttributeKey'](_0x371b62));for(const _0x46db92 of _0xddb77c){'todo'!=_0x46db92['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4b38f8['_findSuggestions'](_0x46db92['getFirstRange'](),'attribute')['find'](_0x59ceb1=>'listType'===_0x4b38f8['_getAttributeKey'](_0x59ceb1['suggestion']))||(_0x3f0df1['removeMarker'](_0x46db92['getFirstMarker']()),_0x1984e8=!0x0));}return _0x1984e8;})),_0x4b38f8['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x47055a,'FORMAT_INDENT'));const _0x3c687e={'type':'format','content':''};_0x4b38f8['descriptionFactory']['registerDescriptionCallback'](_0x9fe488=>{const {data:_0x179acb}=_0x9fe488;if(!_0x179acb||'listType'!=_0x179acb['key'])return;let _0x57ae32=_0x9fe488['head'];for(;_0x57ae32;){if(_0x57ae32['data']&&(('listStyle'==_0x57ae32['data']['key']||'listMarkerStyle'==_0x57ae32['data']['key'])&&(_0x57ae32['data']['newValue']&&'default'!=_0x57ae32['data']['newValue']||'default'!=_0x57ae32['data']['oldValue']&&!_0x179acb['newValue'])||!_0x146c6c&&_0x57ae32['data']['key']==u))return _0x3c687e;_0x57ae32=_0x57ae32['next'];}if(null==_0x179acb['newValue'])switch(_0x179acb['oldValue']){case'bulleted':return _0xa7f148(c(_0x47055a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa7f148(c(_0x47055a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa7f148(c(_0x47055a,'ELEMENT_TODO_LIST'));}switch(_0x179acb['newValue']){case'bulleted':return _0xd2a890(c(_0x47055a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xd2a890(c(_0x47055a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xd2a890(c(_0x47055a,'ELEMENT_TODO_LIST'));}}),_0x4b38f8['descriptionFactory']['registerDescriptionCallback'](_0x3098e1=>{const {data:_0x1f65cb}=_0x3098e1;if(_0x1f65cb&&'listIndent'==_0x1f65cb['key'])return null==_0x1f65cb['newValue']||null==_0x1f65cb['oldValue']&&0x0==_0x1f65cb['newValue']?_0x3c687e:void 0x0;}),_0x4b38f8['descriptionFactory']['registerDescriptionCallback'](_0x3e03e2=>{if('attribute'!=_0x3e03e2['type'])return;const {data:_0x5085d0}=_0x3e03e2;if(!_0x5085d0||'listItemId'!=_0x5085d0['key'])return;const _0x48837c=Te(_0x3e03e2);return'newValue'==_0x48837c?{'type':'format','content':c(_0x47055a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x48837c?{'type':'format','content':c(_0x47055a,'*Split:*\x20list\x20item')}:_0x3c687e;}),_0x1e6a8c['model']['document']['registerPostFixer'](_0x5bb07a=>this['listItemIdFixer'](_0x5bb07a)),_0x1e6a8c['model']['document']['registerPostFixer'](_0x2a1d72=>this['noTrackChangesFixer'](_0x2a1d72)),_0x1e6a8c['model']['document']['on']('change:data',(_0x49c2f1,_0x1f51e1)=>{if(_0x1f51e1['isUndo']||!_0x1f51e1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3fd294){if(_0x3fd294['batch']['isUndo']||!_0x3fd294['batch']['isLocal'])return!0x1;let _0x53ad04=!0x1;const _0x45ea2e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x355c58=>_0x355c58['data']&&'listItemId'==_0x355c58['data']['key'])['filter'](_0x316f5f=>_0x316f5f['data']['newValue']&&_0x316f5f['data']['oldValue']);for(const _0x2ff5cf of _0x45ea2e)Te(_0x2ff5cf)||(_0x3fd294['removeMarker'](_0x2ff5cf['getFirstMarker']()),_0x53ad04=!0x0);return _0x53ad04;}['noTrackChangesFixer'](_0x813549){if(_0x813549['batch']['isUndo']||!_0x813549['batch']['isLocal'])return!0x1;const _0x2fc8ea=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2fc8ea['trackChangesCommand']['value'])return!0x1;let _0x2e0421=!0x1;const _0x256b78=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x246647=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2b06d8=>'attribute'==_0x2b06d8['type'])['filter'](_0x5dae9e=>_0x256b78['includes'](_0x5dae9e['attributeKey']));if(0x0==_0x246647['length'])return _0x2e0421;for(const _0x615b59 of _0x246647){const _0x4770d4=_0x2fc8ea['_findSuggestions'](_0x615b59['range'],'attribute')['filter'](_0x1a9546=>!_0x1a9546['meta']['isNextTo'])['map'](_0x1b2c2a=>_0x1b2c2a['suggestion'])['filter'](_0x6c2f8e=>{const _0x42d3a7=_0x2fc8ea['_getAttributeKey'](_0x6c2f8e);return _0x256b78['includes'](_0x42d3a7);});if(_0x4770d4['length']){for(const _0x1f1508 of _0x4770d4)_0x813549['removeMarker'](_0x1f1508['getFirstMarker']());_0x2e0421=!0x0;}}return _0x2e0421;}['assureChains'](){const _0x5d56e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x113ebc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1bddc6;const _0x494dce=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xcb0e42=>{if(_0xcb0e42['data']['oldRange']||!_0xcb0e42['data']['newRange'])return null;if(!_0xcb0e42['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x427620}=_0x5d56e2['_splitMarkerName'](_0xcb0e42['name']);if(!_0x5d56e2['hasSuggestion'](_0x427620))return null;const _0xfb0464=_0x5d56e2['getSuggestion'](_0x427620);return _0x113ebc['includes'](_0xfb0464['data']['key']);})['map'](_0xa9774f=>{const {id:_0x58e7e4}=_0x5d56e2['_splitMarkerName'](_0xa9774f['name']),_0x196127=_0x5d56e2['getSuggestion'](_0x58e7e4);return _0x1bddc6=_0x196127['attributes']['groupId'],_0x196127['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x494dce['size'])return;const _0x37cb87=_0x5d56e2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x179fc7=>'attribute'==_0x179fc7['type']&&_0x179fc7['data']&&_0x113ebc['includes'](_0x179fc7['data']['key'])&&_0x179fc7['attributes']['groupId']!=_0x1bddc6)['map'](_0x1abdc2=>({'listItem':_0x1abdc2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1abdc2['attributes']['groupId']})),_0x4103f5=new Set();for(const {groupId:_0x236c0b,listItem:_0x362162}of _0x37cb87)_0x494dce['has'](_0x362162)&&_0x4103f5['add'](_0x236c0b);for(const _0x36529b of _0x5d56e2['getSuggestions']())_0x4103f5['has'](_0x36529b['attributes']['groupId'])&&_0x36529b['setAttribute']('groupId',_0x1bddc6);}['_supportLegacySuggestions'](){const _0x557b24=this['editor'],_0x5e9da7=_0x557b24['locale'],_0xe5cd=_0x557b24['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xe5cd['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x42cbaf,_0x1b7e44){const _0x43cab9=[];for(let _0x159d7e of _0x42cbaf)_0x159d7e['start']['nodeAfter']===_0x159d7e['end']['parent']&&(_0x159d7e=_0x557b24['model']['createRange'](_0x557b24['model']['createPositionAt'](_0x159d7e['start']['nodeAfter'],0x0))),_0x43cab9['push'](_0x159d7e);_0x557b24['model']['change'](_0x54821b=>{const _0x3d64d2=_0x557b24['model']['document']['selection'],_0x27cce2=Array['from'](_0x3d64d2['getRanges']())['map'](_0x4d115c=>_0x7362da['fromRange'](_0x4d115c));_0x54821b['setSelection'](_0x43cab9),_0x557b24['commands']['get'](_0x1b7e44['commandName'])['refresh'](),_0x1b7e44['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x557b24['execute'](_0x1b7e44['commandName'],..._0x1b7e44['commandParams']),_0x54821b['setSelection'](_0x27cce2);for(const _0x250add of _0x27cce2)_0x250add['detach']();});}),_0xe5cd['descriptionFactory']['registerElementLabel'](function(_0x5d2c7a){const _0x466676=!_0x557b24['model']['schema']['isObject'](_0x5d2c7a),_0x4fac8d=_0x5d2c7a['previousSibling'],_0x4d3247=_0x5d2c7a['nextSibling'],_0x11e159=_0x5d2c7a['getAttribute']('listItemId'),_0x2c3561=!_0x4fac8d||_0x4fac8d['getAttribute']('listItemId')!==_0x11e159,_0x4ae8f5=!_0x4d3247||_0x4d3247['getAttribute']('listItemId')!==_0x11e159;return _0x466676&&Boolean(_0x11e159)&&_0x2c3561&&_0x4ae8f5;},_0x350313=>c(_0x5e9da7,'ELEMENT_LIST_ITEM',_0x350313));}['_registerLegacyDescription'](){const _0x35779c=this['editor'],_0x2d6d2d=_0x35779c['locale'];function _0x19f4b1(_0x44fb9a){const _0x8b5af=_0x35779c['commands']['get']('bulletedList')['value'],_0x10cd82=_0x35779c['commands']['get']('numberedList')['value'];return'numberedList'===_0x44fb9a?_0x8b5af:_0x10cd82;}_0x35779c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1ed8e3){if('formatBlock'!=_0x1ed8e3['type'])return;const {data:_0x37405c}=_0x1ed8e3;if(!_0x37405c)return;let _0x449451,_0x38bc2b,_0x47eb44,_0x3e7384;switch(_0x37405c['commandName']){case'bulletedList':_0x47eb44=_0x37405c['commandParams'][0x0]['forceValue'],_0x3e7384=_0x19f4b1(_0x37405c['commandName']),_0x449451=_0x47eb44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3e7384&&_0x35779c['config']['get']('list.multiBlock')||(_0x449451='*Change\x20to:*\x20%0'),_0x38bc2b={'type':'format','content':c(_0x2d6d2d,_0x449451,c(_0x2d6d2d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x47eb44=_0x37405c['commandParams'][0x0]['forceValue'],_0x3e7384=_0x19f4b1(_0x37405c['commandName']),_0x449451=_0x47eb44?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3e7384&&_0x35779c['config']['get']('list.multiBlock')||(_0x449451='*Change\x20to:*\x20%0'),_0x38bc2b={'type':'format','content':c(_0x2d6d2d,_0x449451,c(_0x2d6d2d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x449451='*Indent:*\x20%0',_0x38bc2b={'type':'format','content':c(_0x2d6d2d,_0x449451,c(_0x2d6d2d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x449451=function(_0x6acdad){const _0x518514=_0x6acdad['getFirstRange']();let _0x4890e2=_0x518514['start']['nodeAfter'];for(;_0x4890e2&&_0x518514['containsItem'](_0x4890e2);){if(_0x4890e2['getAttribute']('listIndent')>0x0)return!0x1;_0x4890e2=_0x4890e2['nextSibling'];}return!0x0;}(_0x1ed8e3)?c(_0x2d6d2d,'*Format:*\x20remove\x20from\x20%0',c(_0x2d6d2d,function(_0x4acde0){return'ELEMENT_'+_0x4acde0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1ed8e3))):c(_0x2d6d2d,'*Outdent:*\x20%0',c(_0x2d6d2d,'ELEMENT_LIST_ITEM')),_0x38bc2b={'type':'format','content':_0x449451};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x37405c['multipleBlocks']&&(_0x449451='*Merge:*\x20%0',_0x38bc2b={'type':'deletion','content':c(_0x2d6d2d,_0x449451,c(_0x2d6d2d,'ELEMENT_LIST_ITEM'))});}return _0x38bc2b;});}}function Te(_0x2e230a){let _0x20f13b=_0x2e230a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x20f13b;){const _0x3260bb=_0x20f13b['getAttribute']('listItemId');if(!_0x3260bb)return!0x1;if(_0x3260bb==_0x2e230a['data']['newValue'])return'newValue';if(_0x3260bb==_0x2e230a['data']['oldValue'])return'oldValue';_0x20f13b=_0x20f13b['previousSibling'];}return!0x1;}class Se extends _0x53ae92{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x17529c=this['editor']['config']['get']('list.properties'),_0xefcd5c=this['editor']['plugins']['get']('TrackChangesEditing');_0x17529c['styles']&&(_0xefcd5c['enableDefaultAttributesIntegration']('listStyle'),_0xefcd5c['registerBlockAttribute']('listStyle')),_0x17529c['reversed']&&(_0xefcd5c['enableDefaultAttributesIntegration']('listReversed'),_0xefcd5c['registerBlockAttribute']('listReversed')),_0x17529c['startIndex']&&(_0xefcd5c['enableDefaultAttributesIntegration']('listStart'),_0xefcd5c['registerBlockAttribute']('listStart'));const _0x208c6e={'type':'format','content':''};_0xefcd5c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4a5034=this['editor']['locale'];_0xefcd5c['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x4a5034,'FORMAT_LIST_REVERSED')),_0xefcd5c['descriptionFactory']['registerDescriptionCallback'](_0x3b5521=>{const {data:_0x401140}=_0x3b5521;if(_0x401140&&'listReversed'==_0x401140['key'])return null==_0x401140['newValue']||0x0==_0x401140['newValue']&&null==_0x401140['oldValue']?_0x208c6e:void 0x0;}),_0xefcd5c['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x4a5034,'FORMAT_LIST_START')),_0xefcd5c['descriptionFactory']['registerDescriptionCallback'](_0x366cda=>{const {data:_0x399c67}=_0x366cda;if(_0x399c67&&'listStart'==_0x399c67['key'])return null==_0x399c67['newValue']||0x1==_0x399c67['newValue']&&null==_0x399c67['oldValue']?_0x208c6e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x128dba=>{if(_0x128dba['batch']['isUndo'])return!0x1;let _0x2cfd76=!0x1;const _0x354303=_0xefcd5c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5eb88a=>{const _0x33e70f=_0xefcd5c['_getAttributeKey'](_0x5eb88a);return'listStart'==_0x33e70f||'listReversed'==_0x33e70f;});for(const _0x24d34d of _0x354303){const _0x3164cc=_0x24d34d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3164cc||'customNumbered'==_0x3164cc)continue;_0xefcd5c['_findSuggestions'](_0x24d34d['getFirstRange'](),'attribute')['find'](_0x1a335c=>'listType'==_0xefcd5c['_getAttributeKey'](_0x1a335c['suggestion']))||(_0x128dba['removeMarker'](_0x24d34d['getFirstMarker']()),_0x2cfd76=!0x0);}return _0x2cfd76;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3744d8){const _0x57ee15=this['editor']['locale'],{data:_0xcd177}=_0x3744d8,_0x489f5b={'type':'format','content':''};if(!_0xcd177||'listStyle'!=_0xcd177['key'])return;if(!_0xcd177['oldValue'])return'default'==_0xcd177['newValue']?_0x489f5b:{'type':'format','content':''+c(_0x57ee15,'*Set\x20format:*\x20%0',c(_0x57ee15,this['_getTranslationKeyForListStyle'](_0xcd177['newValue'])))};if(!_0xcd177['newValue']){if('default'==_0xcd177['oldValue'])return _0x489f5b;let _0x5ec66a=_0x3744d8['head'];for(;_0x5ec66a;){if(_0x5ec66a['data']&&'listType'==_0x5ec66a['data']['key']&&_0x5ec66a['data']['newValue'])return _0x489f5b;_0x5ec66a=_0x5ec66a['next'];}return{'type':'format','content':''+c(_0x57ee15,'*Remove\x20format:*\x20%0',c(_0x57ee15,this['_getTranslationKeyForListStyle'](_0xcd177['oldValue'])))};}if('default'!=_0xcd177['newValue'])return{'type':'format','content':''+c(_0x57ee15,'*Set\x20format:*\x20%0',c(_0x57ee15,this['_getTranslationKeyForListStyle'](_0xcd177['newValue'])))};let _0x4ba047=_0x3744d8['head'];for(;_0x4ba047;){if(_0x4ba047['data']&&'listType'==_0x4ba047['data']['key']&&_0x4ba047['data']['newValue']&&_0x4ba047['data']['oldValue'])return _0x489f5b;_0x4ba047=_0x4ba047['next'];}return{'type':'format','content':c(_0x57ee15,'*Set\x20format:*\x20%0',c(_0x57ee15,'ELEMENT_'+_0x3744d8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1ed82f=this['editor'],_0x2f6419=_0x1ed82f['locale'];_0x1ed82f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a4155=>{if('formatBlock'!=_0x1a4155['type'])return;const {data:_0x4d10e5}=_0x1a4155;if(!_0x4d10e5)return;let _0x49899b,_0x4a7d67;switch(_0x4d10e5['commandName']){case'listStyle':_0x49899b='*Change\x20to:*\x20%0',_0x4a7d67={'type':'format','content':c(_0x2f6419,_0x49899b,c(_0x2f6419,this['_getTranslationKeyForListStyle'](_0x4d10e5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x49899b=_0x4d10e5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4a7d67={'type':'format','content':c(_0x2f6419,_0x49899b)};break;case'listStart':_0x49899b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4a7d67={'type':'format','content':c(_0x2f6419,_0x49899b,_0x4d10e5['commandParams'][0x0]['startIndex'])};}return _0x4a7d67;});}['_getTranslationKeyForListStyle'](_0x4cb4a8){return'ELEMENT_'+function(_0x1e97fd){if(_e['includes'](_0x1e97fd))return'bulleted';if(Re['includes'](_0x1e97fd))return'numbered';return null;}(_0x4cb4a8)['toUpperCase']()+'_LIST_'+_0x4cb4a8['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x53ae92{static get['requires'](){return[_0x39beb8];}['init'](){const _0x3c2132=this['editor'],_0x30d709=_0x3c2132['plugins']['get']('TrackChangesEditing'),_0x43a93e=_0x3c2132['commands']['get']('enter');_0x30d709['enableCommand']('enter',()=>{_0x3c2132['model']['change'](_0x45da12=>{const _0x499753=_0x3c2132['model']['document']['selection'],_0x4854ba=_0x499753['getFirstPosition'](),_0x431c4f=_0x7362da['fromRange'](_0x499753['getFirstRange']());if(_0x43a93e['enterBlock'](_0x45da12)){const _0x10a4e5=_0x3c2132['model']['createPositionAt'](_0x4854ba['parent']['nextSibling'],0x0),_0x37991e=_0x45da12['createRange'](_0x4854ba,_0x10a4e5);_0x30d709['markInsertion'](_0x37991e);}else _0x45da12['setSelection'](_0x45da12['createRange'](_0x431c4f['end']));_0x431c4f['detach'](),_0x43a93e['fire']('afterExecute',{'writer':_0x45da12});});}),_0x3c2132['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x3c2132,'split'),{'priority':'high'}),_0x3c2132['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x8519d9,_0x3ef895,_0x4ee01f)=>{const _0x4c59c8=_0x4ee01f['mapper']['markerNameToElements'](_0x3ef895['markerName']);if(_0x4c59c8){for(const _0x542f3d of _0x4c59c8)_0x542f3d['hasClass']('ck-suggestion-marker-split')&&(_0x4ee01f['mapper']['unbindElementFromMarkerName'](_0x542f3d,_0x3ef895['markerName']),_0x4ee01f['writer']['remove'](_0x542f3d));}},{'priority':'high'}),_0x3c2132['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x484a8b,_0x200df1,_0x5cebaf)=>{_0x5cebaf['options']['showSuggestionHighlights']&&De(_0x3c2132,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x484a8b,_0x200df1,_0x5cebaf);},{'priority':'high'});}}class Y extends _0x53ae92{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3630a4=this['editor']['plugins']['get']('TrackChangesEditing');_0x3630a4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3630a4['enableCommand']('findNext'),_0x3630a4['enableCommand']('findPrevious'),_0x3630a4['enableCommand']('replace'),_0x3630a4['enableCommand']('replaceAll');}['handleFindCommand'](_0x2585ab,_0x353657,_0x44d1de={}){const _0x4dea26=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2585ab(_0x5a29d8=>{let _0x37f182=('string'==typeof _0x353657?_0x4dea26['findByTextCallback'](_0x353657,_0x44d1de):_0x353657)(_0x5a29d8);Array['isArray'](_0x37f182)&&(_0x37f182={'results':_0x37f182,'searchText':'string'==typeof _0x353657?_0x353657:''});const _0x55d9b0=_0x37f182['results']['filter'](_0x16b67c=>!0x1===this['_isInDeletionRange'](_0x16b67c,_0x5a29d8['item']));return{..._0x37f182,'results':_0x55d9b0};},_0x44d1de);}['_isInDeletionRange'](_0x23a480,_0x5e1fa9){const _0x30cd04=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5e1fa9,_0x23a480['start']),this['editor']['model']['createPositionAt'](_0x5e1fa9,_0x23a480['end']));for(const _0x37635d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x30cd04['getIntersection'](_0x37635d['getRange']()))return!0x0;return!0x1;}}const to=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x53ae92{['afterInit'](){const _0x48bd56=this['editor']['locale'],_0x3af2ea=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2a013c,commandName:_0x4a3604}of to)this['editor']['plugins']['has'](_0x2a013c)&&(_0x3af2ea['enableDefaultAttributesIntegration'](_0x4a3604),_0x3af2ea['registerInlineAttribute'](_0x4a3604));_0x3af2ea['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x48bd56,'FORMAT_FONT_SIZE')),_0x3af2ea['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x48bd56,'FORMAT_FONT_FAMILY')),_0x3af2ea['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x48bd56,'FORMAT_FONT_COLOR')),_0x3af2ea['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x48bd56,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x405b95=this['editor'],_0x3e448c=_0x405b95['locale'];_0x405b95['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36e8ce=>{const _0x2e6faf=_0x3e448c['t'];if('formatInline'!=_0x36e8ce['type'])return;const {data:_0x5223a6}=_0x36e8ce;if(null!=_0x5223a6){if('fontSize'==_0x5223a6['commandName']){const _0x1fbb78=_0x5223a6['commandParams'][0x0]['value'];if(_0x1fbb78){const _0x47f989=_0x2e6faf(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x40cda7=>_0x40cda7['model']==_0x1fbb78)['title'])['toLowerCase']();return{'type':'format','content':c(_0x3e448c,'*Set\x20font\x20size:*\x20%0',_0x47f989)};}return{'type':'format','content':c(_0x3e448c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5223a6['commandName']){const _0x8c6364=_0x5223a6['commandParams'][0x0]['value'];return _0x8c6364?{'type':'format','content':c(_0x3e448c,'*Set\x20font\x20family:*\x20%0',_0x8c6364)}:{'type':'format','content':c(_0x3e448c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5223a6['commandName']){const _0x164f18=_0x5223a6['commandParams'][0x0]['value'];if(_0x164f18){const _0x31882c=Zt(this['editor']['config']['get']('fontColor.colors'))['find'](_0xa22a96=>_0xa22a96['model']==_0x164f18);let _0x144726=_0x164f18,_0x387ec3='';return _0x31882c&&(_0x144726=_0x31882c['label'],_0x387ec3=_0x2e6faf(_0x144726)['toLowerCase']()),{'type':'format','content':c(_0x3e448c,'*Set\x20font\x20color:*\x20%0',_0x387ec3)['trim'](),'color':{'value':_0x164f18,'title':_0x387ec3||_0x144726}};}return{'type':'format','content':c(_0x3e448c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5223a6['commandName']){const _0x14371a=_0x5223a6['commandParams'][0x0]['value'];if(_0x14371a){const _0x27f306=Zt(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x442a30=>_0x442a30['model']==_0x14371a);let _0x3a4646=_0x14371a,_0x390a5b='';return _0x27f306&&(_0x3a4646=_0x27f306['label'],_0x390a5b=_0x2e6faf(_0x3a4646)['toLowerCase']()),{'type':'format','content':c(_0x3e448c,'*Set\x20font\x20background\x20color:*\x20%0',_0x390a5b)['trim'](),'color':{'value':_0x14371a,'title':_0x390a5b||_0x3a4646}};}return{'type':'format','content':c(_0x3e448c,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x53ae92{['afterInit'](){const _0x5a30ae=this['editor'],_0x5ddf37=_0x5a30ae['plugins']['get']('TrackChangesEditing'),_0x4076c2=_0x5a30ae['commands']['get']('copyFormat'),_0x3d2a29=_0x5a30ae['commands']['get']('pasteFormat');_0x4076c2&&_0x3d2a29&&(_0x5ddf37['enableDefaultAttributesIntegration']('pasteFormat'),_0x5ddf37['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5ab5bc=this['editor'],_0x5851e0=_0x5ab5bc['locale'];_0x5ab5bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4af5f8=>{if('formatBlock'!=_0x4af5f8['type']&&'formatInline'!=_0x4af5f8['type'])return;const {data:_0x386858}=_0x4af5f8;if(_0x386858&&'pasteFormat'===_0x386858['commandName']){const _0x522668=[],_0x17672f=_0x386858['commandParams'][0x0];for(const [_0x4e0f5f,_0x171e69]of Object['entries'](_0x17672f))_0x522668['push'](ro(_0x5ab5bc,_0x4e0f5f,_0x171e69));return _0x522668['length']?{'type':'format','content':c(_0x5851e0,'*Set\x20format\x20to:*\x20%0',_0x522668['join'](',\x20'))}:{'type':'format','content':c(_0x5851e0,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3993f9,_0x12d941,_0x3afa78){const _0xa5d918=_0x3993f9['locale']['t'],_0x4c4c82=_0x12d941['split'](/(?=[A-Z])/)['join']('\x20'),_0x2df07e=_0xa5d918(_0x4c4c82['charAt'](0x0)['toUpperCase']()+_0x4c4c82['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3afa78)return _0x2df07e;if('fontColor'===_0x12d941||'fontBackgroundColor'===_0x12d941){const _0x1d7d12=Zt(_0x3993f9['config']['get']('fontColor.colors'))['find'](_0x27e2e5=>_0x27e2e5['model']==_0x3afa78);return _0x2df07e+'\x20('+(_0x1d7d12?_0xa5d918(_0x1d7d12['label'])['toLowerCase']():_0x3afa78)+')';}if('fontSize'===_0x12d941&&isNaN(parseFloat(_0x3afa78))){const _0xd3e637=_0x3993f9['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3993f9['config']['get']('fontSize.options'))['find'](_0x15b4e3=>_0x15b4e3['model']==_0x3afa78);return _0x2df07e+'\x20('+(_0xd3e637?_0xa5d918(_0xd3e637['title'])['toLowerCase']():_0x3afa78)+')';}return _0x2df07e+'\x20('+_0x3afa78+')';}class et extends _0x53ae92{['_headingOptions'];['afterInit'](){const _0x31b738=this['editor'];if(!_0x31b738['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x31b738['config']['get']('heading.options');const _0x3cbffa=_0x31b738['locale'],_0x41d7c3=_0x31b738['plugins']['get']('TrackChangesEditing');_0x41d7c3['enableDefaultAttributesIntegration']('heading');for(const _0x38f028 of this['_headingOptions'])'paragraph'!=_0x38f028['model']&&_0x41d7c3['descriptionFactory']['registerElementLabel'](_0x38f028['model'],_0x512e74=>{const _0x417c18=this['_getHeadingLevel'](_0x38f028['model']);return null!==_0x417c18?_0x454489(_0x512e74,_0x417c18):_0x4a5461(_0x512e74,_0x38f028['title']);});function _0x454489(_0x26e00d,_0x1cc3c2){return c(_0x3cbffa,'ELEMENT_HEADING',[_0x26e00d,_0x1cc3c2]);}function _0x4a5461(_0x1c7b50,_0x9abfca){return c(_0x3cbffa,'ELEMENT_HEADING_CUSTOM',[_0x1c7b50,_0x9abfca]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bc3df=this['editor'],_0x2b39e0=_0x1bc3df['locale'];function _0x464bbd(_0x687da0,_0x32f8c6){return c(_0x2b39e0,'ELEMENT_HEADING_CUSTOM',[_0x687da0,_0x32f8c6]);}_0x1bc3df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x407aaa=>{if('formatBlock'!=_0x407aaa['type'])return;const {data:_0x327dab}=_0x407aaa;if(_0x327dab&&'heading'==_0x327dab['commandName']){const _0x2f0418=_0x327dab['commandParams'][0x0]['value'],_0x3a135c=this['_getHeadingLevel'](_0x2f0418);if(null!==_0x3a135c)return{'type':'format','content':c(_0x2b39e0,'*Change\x20to:*\x20%0',(_0x69da39=0x1,_0x2c7737=_0x3a135c,c(_0x2b39e0,'ELEMENT_HEADING',[_0x69da39,_0x2c7737])))};const _0x201faa=this['_headingOptions']['find'](_0x47f0c3=>_0x47f0c3['model']===_0x2f0418)['title'];return{'type':'format','content':c(_0x2b39e0,'*Change\x20to:*\x20%0',_0x464bbd(0x1,_0x201faa))};}var _0x69da39,_0x2c7737;});}['_getHeadingLevel'](_0x258d5c){const _0x26d94f=_0x258d5c['match'](/^heading(\d+)/);if(_0x26d94f)return _0x26d94f[0x1];const _0x489f0d=this['_headingOptions']?.['find'](_0x227433=>_0x227433['model']==_0x258d5c);if(_0x489f0d&&_0x489f0d['view']){const _0x59f12e=_0x489f0d['view'],_0x4cadff=(_0x59f12e['name']??_0x59f12e)['match'](/^h(\d+)/);if(_0x4cadff)return _0x4cadff[0x1];}return null;}}class nt extends _0x53ae92{['afterInit'](){const _0x5485f6=this['editor'];if(!_0x5485f6['plugins']['has']('HighlightEditing'))return;const _0x4aec11=_0x5485f6['plugins']['get']('TrackChangesEditing'),_0x407ad9=_0x5485f6['locale'];_0x4aec11['enableDefaultAttributesIntegration']('highlight'),_0x4aec11['registerInlineAttribute']('highlight'),_0x4aec11['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x407ad9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bf753=this['editor'],_0x4a411d=_0x2bf753['locale'];_0x2bf753['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x506978=>{if('formatInline'!=_0x506978['type'])return;const {data:_0x5950ae}=_0x506978;if(_0x5950ae&&'highlight'==_0x5950ae['commandName']){const _0x24d1c6=_0x4a411d['t'],_0x257c6d=_0x5950ae['commandParams'][0x0]['value'];if(_0x257c6d){const _0xf80511=_0x2bf753['config']['get']('highlight.options')['find'](_0x20c920=>_0x20c920['model']==_0x257c6d),_0x42719f=_0x24d1c6(_0xf80511['title'])['toLowerCase']();return{'type':'format','content':c(_0x4a411d,'*Set\x20highlight:*\x20%0',_0x42719f),'color':{'value':_0xf80511['color'],'title':_0xf80511['title']}};}return{'type':'format','content':c(_0x4a411d,'*Remove\x20highlight*',c(_0x4a411d,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x53ae92{['afterInit'](){const _0xcef95b=this['editor'];if(!_0xcef95b['plugins']['has']('HorizontalLineEditing'))return;_0xcef95b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x311e9f=_0xcef95b['plugins']['get']('TrackChangesEditing'),_0x50e30e=_0xcef95b['locale'];_0x311e9f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3a5c8f=>c(_0x50e30e,'ELEMENT_HORIZONTAL_LINE',_0x3a5c8f)),_0xcef95b['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5d3d24,{writer:_0x563138,options:_0x2c977e})=>{if(!_0x2c977e['showSuggestionHighlights'])return null;const _0x3caf3a=_0x563138['createContainerElement']('div'),_0x1e8ffe=_0x563138['createEmptyElement']('hr');return _0x563138['addClass']('ck-horizontal-line',_0x3caf3a),_0x563138['insert'](_0x563138['createPositionAt'](_0x3caf3a,0x0),_0x1e8ffe),_0x3caf3a;},'converterPriority':'high'});}}class st extends _0x53ae92{['afterInit'](){const _0xd825b2=this['editor'];if(!_0xd825b2['plugins']['has']('HtmlEmbed'))return;const _0x42068a=_0xd825b2['plugins']['get']('TrackChangesEditing'),_0x52f56c=_0xd825b2['locale'];_0x42068a['descriptionFactory']['registerElementLabel']('rawHtml',_0x256315=>c(_0x52f56c,'ELEMENT_HTML_EMBED',_0x256315)),_0x42068a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x42068a['registerBlockAttribute']('value'),_0x42068a['descriptionFactory']['registerDescriptionCallback'](_0x487483=>{if('attribute'!=_0x487483['type'])return;const {data:_0x487ee7}=_0x487483;if(_0x487ee7&&'value'==_0x487ee7['key']&&_0x487483['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5c01ec=c(_0x52f56c,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x52f56c,'*Change\x20%0\x20content*',_0x5c01ec)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19c893=this['editor'],_0xc215fe=_0x19c893['locale'];_0x19c893['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x351918=>{if('formatBlock'!=_0x351918['type'])return;const {data:_0x4657ca}=_0x351918;if(_0x4657ca&&'htmlEmbed'==_0x4657ca['commandName']){const _0x3dd5e4=c(_0xc215fe,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0xc215fe,'*Change\x20%0\x20content*',_0x3dd5e4)};}});}}class ot extends _0x53ae92{['afterInit'](){const _0x7aa3a3=this['editor'];if(!_0x7aa3a3['plugins']['has']('ImageEditing'))return;const _0x3045e4=_0x7aa3a3['plugins']['get']('TrackChangesEditing'),_0x398571=_0x7aa3a3['plugins']['get']('ImageUtils'),_0x45d506=_0x7aa3a3['locale'];_0x3045e4['enableCommand']('insertImage'),_0x3045e4['descriptionFactory']['registerElementLabel']('imageBlock',_0x7d7038=>c(_0x45d506,'ELEMENT_IMAGE',_0x7d7038)),_0x3045e4['descriptionFactory']['registerElementLabel']('imageInline',_0x2a1539=>c(_0x45d506,'ELEMENT_INLINE_IMAGE',_0x2a1539)),_0x3045e4['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x45d506,'ELEMENT_CAPTION')),_0x7aa3a3['plugins']['has']('ImageUploadEditing')&&_0x3045e4['enableCommand']('uploadImage'),_0x7aa3a3['plugins']['has']('ImageBlockEditing')&&_0x7aa3a3['plugins']['has']('ImageInlineEditing')&&(_0x3045e4['enableCommand']('imageTypeInline',(_0x4088a4,_0xeab741)=>{const _0x3a4f2e=_0x398571['getClosestSelectedImageElement'](_0x7aa3a3['model']['document']['selection']);_0x7aa3a3['model']['change'](()=>{_0x3045e4['markBlockFormat'](_0x3a4f2e,{'commandName':'imageTypeInline','commandParams':[_0xeab741]},[],'convertBlockImageToInline');});}),_0x3045e4['enableCommand']('imageTypeBlock',(_0x346ed9,_0x288212)=>{_0x7aa3a3['model']['change'](_0x4aeed6=>{let _0x855c2d=_0x398571['getClosestSelectedImageElement'](_0x7aa3a3['model']['document']['selection']),_0x52832c=_0x4aeed6['createRangeOn'](_0x855c2d);const _0x264be7=_0x36d914['fromPosition'](_0x52832c['start'],'toPrevious'),_0x626e4d=_0x36d914['fromPosition'](_0x52832c['end'],'toNext');_0x3045e4['forceDefaultExecution'](()=>_0x346ed9(_0x288212)),_0x855c2d=_0x398571['getClosestSelectedImageElement'](_0x7aa3a3['model']['document']['selection']),_0x52832c=_0x4aeed6['createRangeOn'](_0x855c2d);const _0x3b4a44=_0x4aeed6['createRange'](_0x264be7,_0x626e4d);_0x264be7['detach'](),_0x626e4d['detach'](),_0x3045e4['markBlockFormat'](_0x855c2d,{'commandName':'imageTypeInline','commandParams':[_0x288212]},[],'convertInlineImageToBlock'),_0x3b4a44['start']['isBefore'](_0x52832c['start'])&&_0x3045e4['markInsertion'](_0x4aeed6['createRange'](_0x3b4a44['start'],_0x52832c['start']),'convertInlineImageToBlock'),_0x52832c['end']['isBefore'](_0x3b4a44['end'])&&_0x3045e4['markInsertion'](_0x4aeed6['createRange'](_0x52832c['end'],_0x3b4a44['end']),'convertInlineImageToBlock');});}),_0x3045e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3045e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3045e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3045e4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3045e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3045e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x36e021])=>{const _0x454e99=_0x3045e4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2e7b34=_0x36e021['start'],_0x24ed53=_0x36e021['end'];const _0x28df9c=_0x7aa3a3['model']['schema']['getNearestSelectionRange'](_0x2e7b34,'backward'),_0x1daac3=_0x7aa3a3['model']['schema']['getNearestSelectionRange'](_0x24ed53,'forward');_0x28df9c['isCollapsed']&&(_0x2e7b34=_0x28df9c['start']),_0x1daac3['isCollapsed']&&(_0x24ed53=_0x1daac3['end']),_0x454e99([_0x7aa3a3['model']['createRange'](_0x2e7b34,_0x24ed53)]);}),_0x3045e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1360a2),_0x3045e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1360a2)),_0x7aa3a3['plugins']['has']('ImageCaptionEditing')&&(_0x3045e4['enableCommand']('toggleImageCaption',(_0x514db,_0x37e831)=>{const _0x159f79=_0x7aa3a3['plugins']['get']('ImageCaptionUtils');let _0x12da71=_0x398571['getClosestSelectedImageElement'](_0x7aa3a3['model']['document']['selection']),_0x42e5d6=_0x159f79['getCaptionFromImageModelElement'](_0x12da71);_0x7aa3a3['model']['change'](()=>{if(_0x42e5d6)return void _0x3045e4['markDeletion'](_0x7aa3a3['model']['createRangeOn'](_0x42e5d6));const _0x297a2d=_0x398571['isBlockImage'](_0x12da71);_0x514db(_0x37e831),_0x12da71=_0x398571['getClosestSelectedImageElement'](_0x7aa3a3['model']['document']['selection']),_0x42e5d6=_0x159f79['getCaptionFromImageModelElement'](_0x12da71),_0x3045e4['markInsertion'](_0x7aa3a3['model']['createRangeOn'](_0x42e5d6),_0x297a2d?null:'imageCaption');});}),_0x3045e4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1360a2));const _0x3a9caa=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x53cd32(_0x511f8a,_0xd648a){const _0x5b9d8d=_0x3a9caa['findIndex'](({type:_0x1394da,subType:_0x3a1d12})=>_0x511f8a['type']==_0x1394da&&_0x511f8a['subType']==_0x3a1d12),_0x2185c1=_0x3a9caa['findIndex'](({type:_0x466d14,subType:_0x5ea4a5})=>_0xd648a['type']==_0x466d14&&_0xd648a['subType']==_0x5ea4a5);if(_0x5b9d8d<0x0||_0x2185c1<0x0)return!0x1;const _0x53c598=_0x511f8a['getFirstRange'](),_0x284e78=_0xd648a['getFirstRange']();if((0x0==_0x5b9d8d||0x1==_0x5b9d8d)&&0x2==_0x2185c1&&_0x53c598['isIntersecting'](_0x284e78))return!0x0;if(0x2==_0x5b9d8d&&0x3==_0x2185c1){const _0xd9420a=_0x3045e4['_findSuggestions'](_0x53c598,'insertion')['filter'](({suggestion:_0x587dc4,meta:_0x47624c})=>_0x47624c['isOwn']&&'convertInlineImageToBlock'==_0x587dc4['subType']);if(_0xd9420a['length']>0x1&&_0x284e78['end']['isEqual'](_0x53c598['start']))return!0x0;if(0x1==_0xd9420a['length']&&(_0x53c598['start']['isEqual'](_0x284e78['end'])||_0x53c598['end']['isEqual'](_0x284e78['start'])))return!0x0;}if(0x3==_0x5b9d8d&&0x3==_0x2185c1&&_0x53c598['start']['isBefore'](_0x284e78['start'])){const _0x4e1164=_0x53c598['end']['nodeAfter'],_0x11587e=_0x284e78['start']['nodeBefore'];return _0x398571['isBlockImage'](_0x4e1164)&&_0x4e1164===_0x11587e;}return!0x1;}function _0x1360a2(_0x2bb243,_0x1d3b3b){return _0x53cd32(_0x2bb243,_0x1d3b3b)?[_0x2bb243,_0x1d3b3b]:_0x53cd32(_0x1d3b3b,_0x2bb243)?[_0x1d3b3b,_0x2bb243]:null;}_0x7aa3a3['plugins']['has']('ImageResize')&&(_0x3045e4['enableDefaultAttributesIntegration']('resizeImage'),_0x3045e4['registerBlockAttribute']('resizedWidth'),_0x3045e4['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x45d506,'FORMAT_IMAGE_SIZE'))),_0x7aa3a3['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3045e4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3045e4['registerBlockAttribute']('alt')),_0x7aa3a3['plugins']['has']('PictureEditing')&&(_0x3045e4['registerBlockAttribute']('sources'),_0x3045e4['descriptionFactory']['registerDescriptionCallback'](_0x4201ab=>{if('attribute'!=_0x4201ab['type'])return;const {data:_0x3e9487}=_0x4201ab;return _0x3e9487&&'sources'==_0x3e9487['key']?{'type':'format','content':''}:void 0x0;})),_0x7aa3a3['plugins']['has']('ImageSizeAttributes')&&(_0x3045e4['registerBlockAttribute']('width'),_0x3045e4['registerBlockAttribute']('height'),_0x3045e4['descriptionFactory']['registerDescriptionCallback'](_0x353d12=>{if('attribute'!=_0x353d12['type'])return;const {data:_0x4e8859}=_0x353d12;return!_0x4e8859||'width'!=_0x4e8859['key']&&'height'!=_0x4e8859['key']?void 0x0:{'type':'format','content':''};})),_0x3045e4['descriptionFactory']['registerDescriptionCallback'](_0x8a1e8a=>{if(!!_0x3a9caa['find'](({type:_0x17f26f,subType:_0x299dcb})=>_0x8a1e8a['type']==_0x17f26f&&_0x8a1e8a['subType']==_0x299dcb))return _0x8a1e8a['previous']?{}:void 0x0;}),_0x3045e4['descriptionFactory']['registerDescriptionCallback'](_0x41f433=>{if('insertion'==_0x41f433['type']||'deletion'==_0x41f433['type']){const _0x1b8e69=_0x41f433['getContainedElement']();if(_0x1b8e69&&_0x1b8e69['is']('element','caption'))return{'type':'insertion'==_0x41f433['type']?'addObject':'removeObject','element':_0x1b8e69,'quantity':0x1};}}),_0x3045e4['descriptionFactory']['registerDescriptionCallback'](_0x41773a=>'formatBlock'==_0x41773a['type']&&'convertInlineImageToBlock'==_0x41773a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x41773a['type']&&'convertBlockImageToInline'==_0x41773a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3045e4['descriptionFactory']['registerDescriptionCallback'](_0x40022a=>{if('attribute'!=_0x40022a['type'])return;const {data:_0x7155b9}=_0x40022a;if(!_0x7155b9||'alt'!=_0x7155b9['key'])return;const _0x1a7a8e=_0x7155b9['newValue'];return _0x1a7a8e?{'type':'format','content':c(_0x45d506,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1a7a8e+'\x22')}:{'type':'format','content':c(_0x45d506,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e7dc6=this['editor'],_0x2bf0ca=_0x2e7dc6['locale'];_0x2e7dc6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54b775=>{if('formatBlock'!=_0x54b775['type']&&'formatInline'!=_0x54b775['type'])return;const {data:_0xe8f6e}=_0x54b775;if(_0xe8f6e){if('imageTextAlternative'==_0xe8f6e['commandName']){const _0x2fb45f=_0xe8f6e['commandParams'][0x0]['newValue'];return _0x2fb45f?{'type':'format','content':c(_0x2bf0ca,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2fb45f+'\x22')}:{'type':'format','content':c(_0x2bf0ca,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xe8f6e['commandName']){const _0x26ff76=_0xe8f6e['commandParams'][0x0]['width'];return _0x26ff76?{'type':'format','content':c(_0x2bf0ca,'*Set\x20image\x20width:*\x20%0',_0x26ff76)}:{'type':'format','content':c(_0x2bf0ca,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x53ae92{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x414f4f=this['editor']['locale'],_0xfb8e42=this['editor']['plugins']['get']('TrackChangesEditing');_0xfb8e42['enableDefaultAttributesIntegration']('replaceImageSource'),_0xfb8e42['registerBlockAttribute']('src'),_0xfb8e42['descriptionFactory']['registerDescriptionCallback'](_0x3c9480=>{if('attribute'!=_0x3c9480['type'])return;const {data:_0x428a48}=_0x3c9480;return _0x428a48&&'src'==_0x428a48['key']?_0x428a48['newValue']&&_0x428a48['oldValue']?{'type':'format','content':c(_0x414f4f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x47c087=this['editor']['plugins']['get']('TrackChangesEditing');_0x47c087['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x47c087['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x47c087['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x47c087['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x398b3a=this['editor'],_0x2a4eff=_0x398b3a['locale'];_0x398b3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21dcd5=>{if('formatBlock'!=_0x21dcd5['type']&&'formatInline'!=_0x21dcd5['type'])return;const {data:_0x5d3804}=_0x21dcd5;if(!_0x5d3804||'replaceImageSource'!=_0x5d3804['commandName'])return;return{'type':'format','content':c(_0x2a4eff,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x53ae92{['afterInit'](){const _0x4625b9=this['editor'];if(!_0x4625b9['plugins']['has']('ImageStyleEditing'))return;const _0x19622b=_0x4625b9['plugins']['get']('TrackChangesEditing'),_0x465784=_0x4625b9['plugins']['get']('ImageUtils'),_0x215f7e={};_0x19622b['enableCommand']('imageStyle',(_0x20759c,_0x35b699)=>{const _0x11b6fb=_0x4625b9['plugins']['get']('Users')['me'],_0x4588c0=_0x4625b9['commands']['get']('imageStyle');let _0x593bac=_0x465784['getClosestSelectedImageElement'](_0x4625b9['model']['document']['selection']),_0x25c09b=_0x4625b9['model']['createRangeOn'](_0x593bac),_0x40677b=_0x4588c0['value'];if(_0x40677b==_0x35b699['value'])return;const _0x112b84={'commandName':'imageStyle','commandParams':[_0x35b699],'formatGroupId':_0x33987a()};_0x4625b9['model']['change'](()=>{if(_0x19622b['getSuggestions']()['filter'](_0x5d74ec=>_0x5d74ec['isInContent']&&_0x11b6fb==_0x5d74ec['author']&&('formatBlock'==_0x5d74ec['type']||'formatInline'==_0x5d74ec['type'])&&('imageStylePreApply'==_0x5d74ec['subType']||'imageStylePostApply'==_0x5d74ec['subType'])&&_0x5d74ec['getFirstRange']()['isEqual'](_0x25c09b))['forEach'](_0x3e6891=>_0x19622b['discardSuggestion'](_0x3e6891['head'])),_0x593bac=_0x465784['getClosestSelectedImageElement'](_0x4625b9['model']['document']['selection']),_0x25c09b=_0x4625b9['model']['createRangeOn'](_0x593bac),_0x4588c0['refresh'](),_0x4625b9['commands']['get']('imageTypeInline')['refresh'](),_0x4625b9['commands']['get']('imageTypeBlock')['refresh'](),_0x40677b=_0x4588c0['value'],_0x40677b!=_0x35b699['value'])return _0x465784['isInlineImage'](_0x593bac)&&_0x4588c0['shouldConvertImageType'](_0x35b699['value'],_0x593bac)?(_0x20759c({..._0x35b699,'setImageSizes':!0x1}),_0x593bac=_0x465784['getClosestSelectedImageElement'](_0x4625b9['model']['document']['selection']),void _0x19622b['markBlockFormat'](_0x593bac,{..._0x112b84,'commandReversedParams':[{'value':_0x40677b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x465784['isBlockImage'](_0x593bac)?_0x19622b['markBlockFormat'](_0x593bac,_0x112b84,[],'imageStylePostApply'):_0x19622b['markInlineFormat'](_0x25c09b,_0x112b84,'imageStylePostApply'));});});for(const _0xf2c4c4 of _0x4625b9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x215f7e[_0xf2c4c4['name']]=_0xf2c4c4['title']['toLowerCase']();_0x19622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x19622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x19622b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x19622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1a5593])=>{_0x465784['setImageNaturalSizeAttributes'](_0x1a5593['getContainedElement']());}),_0x19622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x532b4b,_0x1fb428)=>{_0x19622b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x532b4b,{'commandName':_0x1fb428['commandName'],'commandParams':_0x1fb428['commandReversedParams']});}),_0x19622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3fbcb3,_0x5800de){if(_0x310fad(_0x3fbcb3,_0x5800de))return[_0x3fbcb3,_0x5800de];if(_0x310fad(_0x5800de,_0x3fbcb3))return[_0x5800de,_0x3fbcb3];return null;});const _0x3e1ff7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x310fad(_0x5a3273,_0x1e338d){const _0x2c8a32=_0x3e1ff7['findIndex'](({type:_0x12c3cf,subType:_0x5c0978})=>_0x5a3273['type']==_0x12c3cf&&_0x5a3273['subType']==_0x5c0978),_0x157c66=_0x3e1ff7['findIndex'](({type:_0x55eda4,subType:_0x89a48a})=>_0x1e338d['type']==_0x55eda4&&_0x1e338d['subType']==_0x89a48a);if(_0x2c8a32<0x0||_0x157c66<0x0)return!0x1;const _0x4ebc33=_0x5a3273['getFirstRange'](),_0x3c5fc1=_0x1e338d['getFirstRange']();if((0x0==_0x2c8a32||0x1==_0x2c8a32)&&0x2==_0x157c66&&_0x4ebc33['isIntersecting'](_0x3c5fc1))return!0x0;if(0x2==_0x2c8a32&&0x3==_0x157c66){const _0x2ebbcd=_0x19622b['_findSuggestions'](_0x4ebc33,'insertion')['filter'](({suggestion:_0x3716a8,meta:_0x17822c})=>_0x17822c['isOwn']&&'convertInlineImageToBlock'==_0x3716a8['subType']);if(_0x2ebbcd['length']>0x1&&_0x3c5fc1['end']['isEqual'](_0x4ebc33['start']))return!0x0;if(0x1==_0x2ebbcd['length']&&(_0x4ebc33['start']['isEqual'](_0x3c5fc1['end'])||_0x4ebc33['end']['isEqual'](_0x3c5fc1['start'])))return!0x0;}if(0x3==_0x2c8a32&&0x3==_0x157c66&&_0x4ebc33['start']['isBefore'](_0x3c5fc1['start'])){const _0x49c2fe=_0x4ebc33['end']['nodeAfter'],_0x5e2631=_0x3c5fc1['start']['nodeBefore'];return _0x465784['isBlockImage'](_0x49c2fe)&&_0x49c2fe===_0x5e2631;}return!0x1;}_0x4625b9['model']['document']['registerPostFixer'](()=>{let _0x3ebf1c=!0x1;const _0x2b6ee2=Array['from'](_0x4625b9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x262ce5,data:_0x368adf}of _0x2b6ee2){const {group:_0x4fcf8f,type:_0x2424f1,subType:_0x1334ae,id:_0x4f0583}=_0x19622b['_splitMarkerName'](_0x262ce5);if('suggestion'==_0x4fcf8f&&_0x19622b['hasSuggestion'](_0x4f0583)){if('formatBlock'==_0x2424f1&&('imageStylePreApply'==_0x1334ae||'imageStylePostApply'==_0x1334ae)){const _0xa7308e=_0x19622b['getSuggestion'](_0x4f0583);if(_0x368adf['newRange']){const _0xd1c50c=_0xa7308e['getFirstRange']()['getContainedElement']();if(_0x465784['isBlockImage'](_0xd1c50c))continue;_0x19622b['discardSuggestion'](_0xa7308e),_0x3ebf1c=!0x0;}}if('insertion'==_0x2424f1&&'imageCaption'==_0x1334ae&&!_0x368adf['newRange']){const _0x153664=_0x19622b['getSuggestion'](_0x4f0583);_0x153664['next']&&_0x153664['next']['isInContent']&&(_0x19622b['discardSuggestion'](_0x153664['next']),_0x3ebf1c=!0x0);}}}return _0x3ebf1c;}),this['_registerLegacyDescription'](_0x215f7e);}['_registerLegacyDescription'](_0x263b59){const _0x1e0482=this['editor'],_0x612777=_0x1e0482['locale'];_0x1e0482['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x158935=>{if('formatBlock'!=_0x158935['type']&&'formatInline'!=_0x158935['type'])return;const {data:_0xd4aca9}=_0x158935;if(!_0xd4aca9||'imageStyle'!=_0xd4aca9['commandName'])return;const _0x58fce8=_0xd4aca9['commandParams'][0x0]['value'];return _0x349d35('side'===_0x58fce8?c(_0x612777,'FORMAT_SIDE_IMAGE'):_0x263b59[_0x58fce8]||_0x58fce8);function _0x349d35(_0x526003){return{'type':'format','content':c(_0x612777,'*Format:*\x20%0',_0x526003)};}});}}class ct extends _0x53ae92{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x11b93d){super(_0x11b93d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x233cdf=this['editor'],_0x57e772=_0x233cdf['commands']['get']('importWord'),_0x4862b7=_0x233cdf['commands']['get']('trackChanges');_0x57e772&&(_0x57e772['on']('execute',(_0x311a50,[,_0xbb6f33])=>{this['_trackChangesValueDuringImport']=_0x4862b7['value'],_0xbb6f33['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x57e772,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x57e772,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4862b7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x233cdf['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x42c599,_0x24cd3e){const {suggestions:_0x2c43a4}=_0x24cd3e,_0x2cfaa9=this['editor']['commands']['get']('trackChanges'),_0xb81741=_0x2cfaa9['value'];this['_trackChangesValueDuringImport']!==_0xb81741&&(_0x2cfaa9['execute'](),this['_trackChangesExecuted']=!0x0),_0x2c43a4&&_0x2c43a4['forEach'](({id:_0x18124c,type:_0x27d84f,author:_0x1aadcf,created_at:_0x209511})=>{const _0x1622d7={'id':_0x18124c,'type':_0x27d84f,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1aadcf,'createdAt':_0x209511?new Date(_0x209511):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1622d7);});}}class ut extends _0x53ae92{['afterInit'](){const _0x161c6c=this['editor'],_0x43d4cf=_0x161c6c['plugins']['get']('TrackChangesEditing');if(_0x161c6c['plugins']['has']('IndentEditing')&&(_0x43d4cf['enableCommand']('indent'),_0x43d4cf['enableCommand']('outdent')),_0x161c6c['plugins']['has']('IndentBlock')){for(const _0x3f4820 of['indentBlock','outdentBlock'])_0x43d4cf['enableDefaultAttributesIntegration'](_0x3f4820);}const _0x46af60=_0x161c6c['locale'];_0x43d4cf['registerBlockAttribute']('blockIndent'),_0x43d4cf['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x46af60,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13e2d6=this['editor'],_0x4c08eb=_0x13e2d6['locale'],_0x65b4ad=_0x13e2d6['plugins']['get']('TrackChangesEditing');_0x65b4ad['descriptionFactory']['registerDescriptionCallback'](_0x37c428=>{if('formatBlock'!=_0x37c428['type'])return;const {data:_0xdc2fbb}=_0x37c428;if(!_0xdc2fbb)return;if('indentBlock'!=_0xdc2fbb['commandName']&&'outdentBlock'!=_0xdc2fbb['commandName'])return;const _0x1688eb=_0x37c428['getItems']()[0x0],_0x4904f5=_0x65b4ad['descriptionFactory']['getItemLabel'](_0x1688eb);return'indentBlock'==_0xdc2fbb['commandName']?{'type':'format','content':c(_0x4c08eb,'*Indent:*\x20%0',_0x4904f5)}:'outdentBlock'==_0xdc2fbb['commandName']?{'type':'format','content':c(_0x4c08eb,'*Outdent:*\x20%0',_0x4904f5)}:void 0x0;});}}class ft extends _0x53ae92{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x53ae92{['afterInit'](){const _0x26d4e4=this['editor'];if(!_0x26d4e4['plugins']['has']('LinkEditing'))return;const _0x2fb99f=_0x26d4e4['plugins']['get']('TrackChangesEditing'),_0x57b65c=_0x26d4e4['commands']['get']('link');_0x2fb99f['enableDefaultAttributesIntegration']('link'),_0x2fb99f['enableDefaultAttributesIntegration']('unlink'),_0x2fb99f['registerInlineAttribute']('linkHref');for(const _0x14d7d5 of _0x57b65c['manualDecorators'])_0x2fb99f['registerInlineAttribute'](_0x14d7d5['id']),_0x2fb99f['descriptionFactory']['registerAttributeLabel'](_0x14d7d5['id'],'link\x20('+_0x14d7d5['label']['toLowerCase']()+')');_0x2fb99f['descriptionFactory']['registerDescriptionCallback'](_0x12e629=>{if('attribute'!=_0x12e629['type'])return;const {data:_0x52db5d}=_0x12e629;if(!_0x52db5d||'linkHref'!=_0x52db5d['key'])return;const _0x42c658=_0x52db5d['newValue'],_0x38cc08=_0x26d4e4['locale'];return{'type':'format','content':null==_0x42c658?c(_0x38cc08,'*Remove\x20link*'):c(_0x38cc08,'*Set\x20link:*\x20%0','\x22'+_0x42c658+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54c3e5=this['editor'],_0x1bbc42=_0x54c3e5['locale'];_0x54c3e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2de999=>{if('formatInline'!=_0x2de999['type'])return;const {data:_0x5ee7b4}=_0x2de999;if(_0x5ee7b4){if('link'==_0x5ee7b4['commandName']){const _0x3d8a9e=_0x5ee7b4['commandParams'][0x0];return{'type':'format','content':c(_0x1bbc42,'*Set\x20link:*\x20%0','\x22'+_0x3d8a9e+'\x22')};}return'unlink'==_0x5ee7b4['commandName']?{'type':'format','content':c(_0x1bbc42,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x53ae92{['afterInit'](){const _0x3b2fa5=this['editor'],_0x4e5274=_0x3b2fa5['locale'];if(!_0x3b2fa5['plugins']['has']('LegacyListEditing'))return;const _0x459bd9=_0x3b2fa5['plugins']['get']('TrackChangesEditing'),_0x46ea79=_0x3b2fa5['plugins']['has']('LegacyTodoListEditing');function _0x52320a(_0x2e2d3f){return()=>{const _0x4e337f=_0x3b2fa5['model']['document']['selection'],_0x17377d=_0x3b2fa5['commands']['get'](_0x2e2d3f);if(_0x17377d['value'])return void _0x3b2fa5['execute']('paragraph',{});const _0x138a31=_0x2e2d3f['slice'](0x0,-0x4),_0x487e7d=function(_0x2c10ff,_0x25fde6,_0x36c516){let _0x4da2ff=Array['from'](_0x2c10ff)['filter'](_0x1cb16f=>function(_0x39fb30,_0x19f967){return _0x19f967['checkChild'](_0x39fb30['parent'],'listItem')&&!_0x19f967['isObject'](_0x39fb30);}(_0x1cb16f,_0x36c516));_0x4da2ff=_0x4da2ff['filter'](_0x30dc74=>!_0x30dc74['is']('element','listItem')||_0x30dc74['getAttribute']('listType')!=_0x25fde6);const _0x589fb6=new Set();for(const _0x5d6eae of _0x4da2ff)_0x5d6eae['is']('element','listItem')?_0x589fb6['add'](Le(_0x5d6eae)):_0x589fb6['add'](_0x5d6eae);return Array['from'](_0x589fb6);}(_0x4e337f['getSelectedBlocks'](),_0x138a31,_0x3b2fa5['model']['schema']);_0x3b2fa5['model']['change'](()=>{for(const _0x371da0 of _0x487e7d)_0x459bd9['markBlockFormat'](_0x371da0,{'commandName':_0x2e2d3f,'commandParams':[{'forceValue':!_0x17377d['value']}],'formatGroupId':'blockName'},Ee(_0x371da0));});};}function _0x537bfa(_0x33c947){return()=>{const _0xe76d53=function(_0x3734d5){let _0x5a317b=Array['from'](_0x3734d5);const _0x4377df=_0x5a317b['findIndex'](_0x31f6f2=>'listItem'!=_0x31f6f2['name']);return _0x4377df>-0x1&&(_0x5a317b=_0x5a317b['slice'](0x0,_0x4377df)),_0x5a317b;}(_0x3b2fa5['model']['document']['selection']['getSelectedBlocks']()),_0x495e28=_0x3b2fa5['model']['createRange'](_0x3b2fa5['model']['createPositionAt'](_0xe76d53[0x0],'before'),_0x3b2fa5['model']['createPositionAt'](_0xe76d53[_0xe76d53['length']-0x1],'end'));_0x3b2fa5['model']['change'](()=>{_0x459bd9['markBlockFormat'](_0x495e28,{'commandName':_0x33c947,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3c8a52){const _0x41a4f3=new Set();for(const _0x2e2c3b of _0x3c8a52){let _0x4b80c7=_0x2e2c3b['nextSibling'];for(;_0x4b80c7&&_0x4b80c7['getAttribute']('listIndent')>_0x2e2c3b['getAttribute']('listIndent');)_0x41a4f3['add'](_0x4b80c7),_0x4b80c7=_0x4b80c7['nextSibling'];}return Array['from'](_0x41a4f3);}(_0xe76d53));});};}_0x459bd9['enableCommand']('numberedList',_0x52320a('numberedList')),_0x459bd9['enableCommand']('bulletedList',_0x52320a('bulletedList')),_0x46ea79&&_0x459bd9['enableCommand']('todoList',_0x52320a('todoList')),_0x459bd9['enableCommand']('indentList',_0x537bfa('indentList')),_0x459bd9['enableCommand']('outdentList',_0x537bfa('outdentList')),_0x46ea79&&_0x459bd9['enableCommand']('checkTodoList',()=>{const _0x206e38=_0x3b2fa5['commands']['get']('checkTodoList'),_0x443961=Array['from'](_0x206e38['_selectedElements']);_0x443961['filter'](_0x1886aa=>_0x1886aa['getAttribute']('todoListChecked')!=_0x206e38['value']),_0x3b2fa5['model']['change'](()=>{for(const _0x143fa9 of _0x443961)_0x459bd9['markBlockFormat'](_0x143fa9,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x206e38['value']}]});});}),_0x459bd9['descriptionFactory']['registerElementLabel']('listItem',_0x11f561=>c(_0x4e5274,'ELEMENT_LIST_ITEM',_0x11f561)),_0x459bd9['descriptionFactory']['registerDescriptionCallback'](_0x3eb263=>{if('formatBlock'!=_0x3eb263['type']&&'formatInline'!=_0x3eb263['type'])return;const {data:_0x159d35}=_0x3eb263;if(_0x159d35){if('numberedList'==_0x159d35['commandName']||'bulletedList'==_0x159d35['commandName']||'todoList'==_0x159d35['commandName'])switch(_0x159d35['commandName']['replace']('List','')){case'bulleted':return _0x14c662(c(_0x4e5274,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x14c662(c(_0x4e5274,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x14c662(c(_0x4e5274,'ELEMENT_TODO_LIST'));}if('indentList'==_0x159d35['commandName'])return{'type':'format','content':c(_0x4e5274,'*Indent:*\x20%0',c(_0x4e5274,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x159d35['commandName'])return{'type':'format','content':c(_0x4e5274,'*Outdent:*\x20%0',c(_0x4e5274,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x159d35['commandName'])return _0x159d35['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4e5274,'*Check\x20item*')}:{'type':'format','content':c(_0x4e5274,'*Uncheck\x20item*')};}function _0x14c662(_0x1abe71){return{'type':'format','content':c(_0x4e5274,'*Change\x20to:*\x20%0',_0x1abe71)};}});}}function Le(_0xfb85e2){const _0x2575c1=_0xfb85e2['getAttribute']('listIndent');if(0x0==_0x2575c1)return _0xfb85e2;let _0x16a58f=_0xfb85e2;for(;_0xfb85e2['previousSibling']&&_0xfb85e2['previousSibling']['is']('element','listItem');){const _0x565d75=_0xfb85e2['previousSibling']['getAttribute']('listIndent');if(_0x565d75==_0x2575c1)_0x16a58f=_0xfb85e2['previousSibling'];else{if(_0x565d75<_0x2575c1)break;}_0xfb85e2=_0xfb85e2['previousSibling'];}return _0x16a58f;}function Ee(_0x2f771c){const _0x71f8d6=[];if(_0x2f771c['is']('element','listItem')&&_0x2f771c['getAttribute']('listIndent')>0x0){let _0x13989c=_0x2f771c['nextSibling'];for(;_0x13989c&&'listItem'==_0x13989c['name']&&_0x13989c['getAttribute']('listIndent')==_0x2f771c['getAttribute']('listIndent');)_0x71f8d6['push'](_0x13989c),_0x13989c=_0x13989c['nextSibling'];}return _0x71f8d6;}class Q extends _0x53ae92{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2408f8=this['editor']['config']['get']('list.properties'),_0x166997=this['editor']['plugins']['get']('TrackChangesEditing');_0x2408f8['styles']&&_0x166997['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2408f8['reversed']&&_0x166997['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2408f8['startIndex']&&_0x166997['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x166997['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xf2d1cf,_0x8799a9={}){const _0x13b554=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2976a7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x13b554['markMultiRangeBlockFormat'](_0x2976a7,{'commandName':'listStyle','commandParams':[{'type':_0x8799a9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3b16da,_0xcc0bfb={}){const _0x1a0935=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51dea9=this['_getSuggestionBlocks'](_0x451ca2=>_0x451ca2['is']('element','listItem')&&'numbered'===_0x451ca2['getAttribute']('listType'));if(_0x51dea9['length']<0x1)return;const _0x5641cd=_0x51dea9['map'](_0x19b0b6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x19b0b6,'before'),this['editor']['model']['createPositionAt'](_0x19b0b6,0x0)));this['editor']['model']['change'](()=>{_0x1a0935['markMultiRangeBlockFormat'](_0x5641cd,{'commandName':'listReversed','commandParams':[{'reversed':_0xcc0bfb['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x110434,_0x2c2e9f={}){const _0x2b0ba2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17c278=this['_getSuggestionBlocks'](_0x380058=>_0x380058['is']('element','listItem')&&'numbered'===_0x380058['getAttribute']('listType'));if(_0x17c278['length']<0x1)return;const _0x34ab16=_0x17c278['map'](_0x2d7dc6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2d7dc6,'before'),this['editor']['model']['createPositionAt'](_0x2d7dc6,0x0)));this['editor']['model']['change'](()=>{_0x2b0ba2['markMultiRangeBlockFormat'](_0x34ab16,{'commandName':'listStart','commandParams':[{'startIndex':_0x2c2e9f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x43819f){if('formatBlock'!=_0x43819f['type']&&'formatInline'!=_0x43819f['type'])return;const _0x367662=this['editor']['locale'],{data:_0x4b6db9}=_0x43819f;if(!_0x4b6db9)return;let _0x5a4d13,_0x27f21e;switch(_0x4b6db9['commandName']){case'listStyle':_0x5a4d13='*Change\x20to:*\x20%0',_0x27f21e={'type':'format','content':c(_0x367662,_0x5a4d13,c(_0x367662,this['_getTranslationKeyForListStyle'](_0x4b6db9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5a4d13=_0x4b6db9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x27f21e={'type':'format','content':c(_0x367662,_0x5a4d13)};break;case'listStart':_0x5a4d13='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x27f21e={'type':'format','content':c(_0x367662,_0x5a4d13,_0x4b6db9['commandParams'][0x0]['startIndex'])};}return _0x27f21e;}['_getSuggestionBlocksForListStyle'](){const _0x5865fc=this['editor']['plugins']['get']('LegacyListUtils');let _0x322253=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x322253[0x0]?.['is']('element','listItem')&&_0x322253['unshift'](..._0x5865fc['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x322253[_0x322253['length']-0x1]?.['is']('element','listItem')&&_0x322253['push'](..._0x5865fc['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x322253=[...new Set(_0x322253)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x322253=_0x322253['filter'](_0x1df09a=>_0x1df09a['is']('element','listItem'))),_0x322253;}['_getSuggestionBlocks'](_0x194d62){const _0x57b30=this['editor']['plugins']['get']('LegacyListUtils');let _0x142b8d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x194d62)['map'](_0x40ff5c=>{const _0x269229=this['editor']['model']['createPositionAt'](_0x40ff5c,0x0);return[..._0x57b30['getSiblingNodes'](_0x269229,'backward'),..._0x57b30['getSiblingNodes'](_0x269229,'forward')];})['flat']();return _0x142b8d=[...new Set(_0x142b8d)],_0x142b8d;}['_getTranslationKeyForListStyle'](_0x4aa9cb){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4aa9cb)||'default')['toUpperCase']()+'_LIST_'+_0x4aa9cb['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x53ae92{['afterInit'](){const _0x17da02=this['editor'];if(!_0x17da02['plugins']['has']('MediaEmbedEditing'))return;const _0x4a97df=_0x17da02['plugins']['get']('TrackChangesEditing'),_0x5a8176=_0x17da02['locale'];_0x4a97df['enableCommand']('mediaEmbed'),_0x4a97df['descriptionFactory']['registerElementLabel']('media',_0x442027=>c(_0x5a8176,'ELEMENT_MEDIA',_0x442027)),_0x17da02['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x21a631,{writer:_0x3853f7,options:_0x396d34})=>{if(_0x396d34['showSuggestionHighlights'])return _0x3853f7['createEmptyElement']('div');},'converterPriority':'high'}),_0x17da02['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5306a4,_0x4fadbb,_0x1cb441)=>{_0x1cb441['options']['showSuggestionHighlights']&&_0x5306a4['stop']();},{'priority':'high'});}}class mt extends _0x53ae92{['afterInit'](){const _0x440940=this['editor'];_0x440940['plugins']['has']('MentionEditing')&&_0x440940['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x53ae92{['afterInit'](){const _0x5470a0=this['editor'];if(!_0x5470a0['plugins']['has']('MergeFieldsEditing'))return;const _0x2275cb=_0x5470a0['plugins']['get']('TrackChangesEditing'),_0x9d5190=_0x5470a0['locale'];_0x2275cb['enableCommand']('insertMergeField'),_0x2275cb['enableCommand']('insertMergeFieldBlock'),_0x2275cb['enableCommand']('insertMergeFieldImage'),_0x2275cb['descriptionFactory']['registerElementLabel']('mergeField',_0x3133bd=>c(_0x9d5190,'ELEMENT_MERGE_FIELD',_0x3133bd)),_0x2275cb['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x341d84=>c(_0x9d5190,'ELEMENT_MERGE_FIELD',_0x341d84)),_0x2275cb['descriptionFactory']['registerDescriptionCallback'](_0x5d3e45=>{if('insertion'!=_0x5d3e45['type']&&'deletion'!=_0x5d3e45['type'])return;const _0x2477a8=_0x5d3e45['getContainedElement']();if(null==_0x2477a8)return;const _0x741d9e=_0x5470a0['plugins']['get']('MergeFieldsEditing');let _0x2c30c3;switch(_0x741d9e['getMergeFieldType'](_0x2477a8)){case null:return;case'image':{const _0x47e665=_0x741d9e['unwrapAffixes'](_0x2477a8['getAttribute']('src'));_0x2c30c3=_0x741d9e['getLabel'](_0x47e665)||_0x47e665;break;}default:{const _0x479911=_0x2477a8['getAttribute']('id');_0x2c30c3=_0x741d9e['getLabel'](_0x479911)||_0x479911;break;}}return'insertion'==_0x5d3e45['type']?{'type':'insertion','content':c(_0x9d5190,'*Insert:*\x20%0','\x22'+_0x2c30c3+'\x22\x20'+c(_0x9d5190,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x9d5190,'*Remove:*\x20%0','\x22'+_0x2c30c3+'\x22\x20'+c(_0x9d5190,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x53ae92{['afterInit'](){const _0x182151=this['editor'],_0x46360a=_0x182151['plugins']['get']('TrackChangesEditing');_0x182151['plugins']['has']('MultiLevelList')&&(_0x46360a['enableDefaultAttributesIntegration']('multiLevelList'),_0x46360a['registerBlockAttribute']('listMarkerStyle'),_0x46360a['descriptionFactory']['registerDescriptionCallback'](_0x29ed2b=>this['handleDescriptions'](_0x29ed2b)));}['handleDescriptions'](_0x30dcec){const _0x2b4a88=this['editor']['locale'],{data:_0x2b13c3}=_0x30dcec,_0x504311={'type':'format','content':''};if(_0x2b13c3&&'listMarkerStyle'==_0x2b13c3['key']){if(!_0x2b13c3['oldValue'])return{'type':'format','content':c(_0x2b4a88,'*Set\x20format:*\x20%0',c(_0x2b4a88,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2b13c3['newValue']+')'};if(!_0x2b13c3['newValue']){let _0x598d6e=_0x30dcec['head'];for(;_0x598d6e;){if(_0x598d6e['data']&&'listType'==_0x598d6e['data']['key']&&_0x598d6e['data']['newValue'])return _0x504311;_0x598d6e=_0x598d6e['next'];}return{'type':'format','content':c(_0x2b4a88,'*Remove\x20format:*\x20%0',c(_0x2b4a88,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2b13c3['oldValue']+')'};}}}}class kt extends _0x53ae92{['afterInit'](){const _0x2f9660=this['editor'];if(!_0x2f9660['plugins']['has']('PageBreakEditing'))return;_0x2f9660['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xa79cbe=_0x2f9660['plugins']['get']('TrackChangesEditing'),_0x42fcb3=_0x2f9660['locale'];_0xa79cbe['descriptionFactory']['registerElementLabel']('pageBreak',_0x2a0ba1=>c(_0x42fcb3,'ELEMENT_PAGE_BREAK',_0x2a0ba1));}}class bt extends _0x53ae92{['afterInit'](){const _0x2b6f60=this['editor'];if(!_0x2b6f60['plugins']['has']('Paragraph'))return;const _0x2f325e=_0x2b6f60['locale'],_0x47a980=_0x2b6f60['plugins']['get']('TrackChangesEditing');_0x47a980['descriptionFactory']['registerElementLabel']('paragraph',_0x12134b=>c(_0x2f325e,'ELEMENT_PARAGRAPH',_0x12134b)),_0x47a980['enableDefaultAttributesIntegration']('paragraph'),_0x47a980['enableCommand']('insertParagraph'),_0x2b6f60['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2b6f60),{'priority':'highest'}),_0x2b6f60['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x36d191,_0xb375d8,_0x33109b)=>{_0x33109b['options']['showSuggestionHighlights']&&nr(_0x2b6f60,{'showActiveMarker':!0x1})(_0x36d191,_0xb375d8,_0x33109b);},{'priority':'highest'});const _0x482141=_0x47a980['descriptionFactory'];_0x482141['registerDescriptionCallback'](_0x2628f7=>{if('insertion'!==_0x2628f7['type'])return;const {start:_0x4d3304,end:_0x34db03}=_0x2628f7['getFirstRange']();if(!_0x4d3304['isTouching'](_0x34db03)||!_0x4d3304['nodeAfter'])return;const _0x44cdba=_0x2b6f60['model']['schema'],_0x48b50c=_0x4d3304['nodeAfter'];return _0x44cdba['isBlock'](_0x48b50c)&&!_0x44cdba['isLimit'](_0x48b50c)&&_0x44cdba['checkChild'](_0x48b50c,'$text')?{'type':'insertion','content':c(_0x2f325e,'*Insert:*\x20%0',_0x482141['getItemLabel'](_0x48b50c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e8207=this['editor'],_0x5ef767=_0x5e8207['locale'];_0x5e8207['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x417b26=>{if('formatBlock'!=_0x417b26['type'])return;const {data:_0x2edce3}=_0x417b26;return _0x2edce3&&'paragraph'==_0x2edce3['commandName']?{'type':'format','content':c(_0x5ef767,'*Change\x20to:*\x20%0',c(_0x5ef767,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xd81303,{showActiveMarker:_0x3da493=!0x0}={}){return(_0x110a1c,_0x19c4b4,_0x2e274e)=>{const _0x51517a=_0xd81303['plugins']['get']('TrackChangesEditing'),_0x5e2b84=_0x19c4b4['markerRange']['start'],_0x5eec5f=_0x19c4b4['markerRange']['end'],_0xab7b00=_0xd81303['model']['schema'];if(!_0x5e2b84['isTouching'](_0x5eec5f)||!_0x5e2b84['nodeAfter'])return;const _0x12df27=_0x5e2b84['nodeAfter'];if(_0xab7b00['isBlock'](_0x12df27)&&!_0xab7b00['isLimit'](_0x12df27)&&_0xab7b00['checkChild'](_0x12df27,'$text')){if(!_0x2e274e['consumable']['consume'](_0x19c4b4['markerRange'],_0x110a1c['name']))return;const {authorId:_0x4be3dd}=_0x51517a['_splitMarkerName'](_0x19c4b4['markerName']),_0x566526=_0x2e274e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4be3dd}),_0x18f55f=_0x2e274e['mapper']['toViewPosition'](_0x5eec5f);_0x3da493&&_0x51517a['activeMarkers']['includes'](_0x19c4b4['markerName'])&&_0x2e274e['writer']['addClass']('ck-suggestion-marker--active',_0x566526),_0x2e274e['writer']['insert'](_0x18f55f,_0x566526),_0x2e274e['mapper']['bindElementToMarker'](_0x566526,_0x19c4b4['markerName']);}};}class yt extends _0x53ae92{['afterInit'](){const _0x2f6097=this['editor'];if(!_0x2f6097['plugins']['has']('RemoveFormatEditing'))return;_0x2f6097['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c5da5=this['editor'];_0x5c5da5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2222ef=>{if('formatBlock'!=_0x2222ef['type']&&'formatInline'!=_0x2222ef['type'])return;const {data:_0xab216d}=_0x2222ef;return _0xab216d&&'removeFormat'==_0xab216d['commandName']?{'type':'format','content':c(_0x5c5da5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x53ae92{['afterInit'](){const _0x1eb560=this['editor'];if(!_0x1eb560['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1ee3fe=_0x1eb560['plugins']['get']('TrackChangesEditing');_0x1ee3fe['enableCommand']('goToPreviousRestrictedEditingException'),_0x1ee3fe['enableCommand']('goToNextRestrictedEditingException');const _0x1cdcfe=_0x1eb560['plugins']['get']('RestrictedEditingModeEditing');_0x1cdcfe['enableCommand']('trackChanges'),_0x1cdcfe['enableCommand']('acceptSuggestion'),_0x1cdcfe['enableCommand']('discardSuggestion'),_0x1cdcfe['enableCommand']('acceptAllSuggestions'),_0x1cdcfe['enableCommand']('discardAllSuggestions'),_0x1cdcfe['enableCommand']('acceptSelectedSuggestions'),_0x1cdcfe['enableCommand']('discardSelectedSuggestions');}}class St extends _0x53ae92{static get['requires'](){return[_0x35e7df];}['init'](){const _0x3563d7=this['editor'],_0x3df5e4=_0x3563d7['plugins']['get']('TrackChangesEditing');_0x3df5e4['enableCommand']('shiftEnter'),_0x3563d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3563d7),{'priority':'high'}),_0x3563d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3563d7),{'priority':'high'}),_0x3563d7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b4304,_0x36cdc6,_0x2298d9)=>{_0x2298d9['options']['showSuggestionHighlights']&&je(_0x3563d7,{'showActiveMarker':!0x1})(_0x2b4304,_0x36cdc6,_0x2298d9);}),_0x3df5e4['descriptionFactory']['registerElementLabel']('softBreak',_0x327ce8=>c(_0x3563d7['locale'],'ELEMENT_LINE_BREAK',_0x327ce8));}}function je(_0x3e38f5,{showActiveMarker:_0xa0d30a=!0x0}={}){return(_0x3ce727,_0x44f710,_0x3d5272)=>{const _0x37fc77=_0x3e38f5['plugins']['get']('TrackChangesEditing');if(!_0x3d5272['consumable']['test'](_0x44f710['markerRange'],_0x3ce727['name']))return;const _0x41d434=_0x3e38f5['model'];for(const _0x1a4283 of _0x44f710['markerRange']['getItems']()){if(!_0x1a4283['is']('element','softBreak'))continue;const _0x49c313='deletion'==_0x44f710['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4e6554}=_0x37fc77['_splitMarkerName'](_0x44f710['markerName']),_0xe03664=_0x3d5272['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x49c313,'data-author-id':_0x4e6554}),_0x4e10f2=_0x3d5272['mapper']['toViewPosition'](_0x41d434['createPositionBefore'](_0x1a4283));_0xa0d30a&&_0x37fc77['activeMarkers']['includes'](_0x44f710['markerName'])&&_0x3d5272['writer']['addClass']('ck-suggestion-marker--active',_0xe03664),_0x3d5272['writer']['insert'](_0x4e10f2,_0xe03664),_0x3d5272['mapper']['bindElementToMarker'](_0xe03664,_0x44f710['markerName']);}};}class At extends _0x53ae92{['afterInit'](){const _0x580296=this['editor'],_0x11e1da=_0x580296['model'],_0x28d1b4=_0x580296['locale'];if(!_0x580296['plugins']['has']('StandardEditingModeEditing'))return;const _0x5aeebf=_0x580296['plugins']['get']('TrackChangesEditing'),_0x1a2eb8='restrictedEditingException',_0x1dd46c=_0x580296['commands']['get'](_0x1a2eb8);_0x5aeebf['enableCommand'](_0x1a2eb8,(_0x5a7d4e,_0x40933f={})=>{const _0x5ae51a=_0x11e1da['document']['selection'];if(_0x5ae51a['isCollapsed'])return void _0x5a7d4e(_0x40933f);const _0x1ad46a=void 0x0!==_0x40933f['forceValue']?_0x40933f['forceValue']:!_0x1dd46c['value'];_0x11e1da['change'](()=>{const _0x4b9129=Array['from'](_0x5ae51a['getRanges']());for(const _0xc97528 of _0x4b9129){const _0x45f654=_0x1ad46a?[_0xc97528]:no(_0x1a2eb8,_0xc97528,_0x11e1da);for(const _0x1cd78f of _0x45f654)_0x5aeebf['markInlineFormat'](_0x1cd78f,{'commandName':_0x1a2eb8,'commandParams':[{'forceValue':_0x1ad46a}]});}});}),_0x5aeebf['descriptionFactory']['registerDescriptionCallback'](_0x1d8d97=>{if('formatBlock'!=_0x1d8d97['type']&&'formatInline'!=_0x1d8d97['type'])return;const {data:_0x20776c}=_0x1d8d97;return _0x20776c&&_0x20776c['commandName']==_0x1a2eb8?_0x20776c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x28d1b4,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x28d1b4,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x53ae92{['afterInit'](){const _0x3bc567=this['editor'];if(!_0x3bc567['plugins']['has']('Style')||!_0x3bc567['plugins']['has']('DataSchema'))return;const _0x12b2c0=_0x3bc567['plugins']['get']('TrackChangesEditing'),_0x378bdd=_0x3bc567['locale'],_0x4e1008=_0x3bc567['config']['get']('style')||{},_0x4c295a=_0x3bc567['plugins']['get']('GeneralHtmlSupport'),_0x2cb967=_0x3bc567['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3bc567['plugins']['get']('DataSchema'),_0x4e1008['definitions']);_0x12b2c0['enableDefaultAttributesIntegration']('style');const _0x148096=new Set();for(const _0x2467c3 of _0x2cb967['block']){const _0x4673ec=_0x4c295a['getGhsAttributeNameForElement'](_0x2467c3['element']);_0x148096['add'](_0x4673ec);}const _0x52e730=new Set();for(const _0x236a45 of _0x2cb967['inline']){const _0x8bef94=_0x4c295a['getGhsAttributeNameForElement'](_0x236a45['element']);_0x52e730['add'](_0x8bef94);for(const _0x2d41d0 of _0x236a45['ghsAttributes'])_0x52e730['add'](_0x2d41d0);}for(const _0x1466c3 of _0x148096)_0x12b2c0['registerBlockAttribute'](_0x1466c3),_0x12b2c0['descriptionFactory']['registerAttributeLabel'](_0x1466c3,c(_0x378bdd,'FORMAT_STYLE'));for(const _0x3941ca of _0x52e730)_0x12b2c0['registerInlineAttribute'](_0x3941ca),_0x12b2c0['descriptionFactory']['registerAttributeLabel'](_0x3941ca,c(_0x378bdd,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4afeee=this['editor'],_0x4dc2ae=_0x4afeee['locale'];_0x4afeee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e65ae=>{if('formatBlock'!=_0x4e65ae['type']&&'formatInline'!=_0x4e65ae['type'])return;const {data:_0x45f7ab}=_0x4e65ae;return _0x45f7ab&&'style'===_0x45f7ab['commandName']?_0x45f7ab['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4dc2ae,'*Set\x20format:*\x20%0',_0x45f7ab['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x4dc2ae,'*Remove\x20format:*\x20%0',_0x45f7ab['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x53ae92{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5afabc){super(_0x5afabc),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5072e4=this['editor'],_0x53b595=_0x5072e4['model']['document']['selection'];if(!_0x5072e4['plugins']['has']('TableEditing'))return;const _0x8d5024=_0x5072e4['locale'],_0x180aca=_0x5072e4['plugins']['get']('TrackChangesEditing'),_0x51aff6=_0x5072e4['plugins']['get']('TableUtils');_0x180aca['descriptionFactory']['registerElementLabel']('table',_0x3209d3=>c(_0x8d5024,'ELEMENT_TABLE',_0x3209d3)),this['_setupColumnsRowsFixing'](),_0x180aca['enableCommand']('insertTable'),_0x180aca['enableCommand']('selectTableRow'),_0x180aca['enableCommand']('selectTableColumn');for(const _0xbcd3ba of['insertTableRowAbove','insertTableRowBelow']){const _0xe286bd=_0x5072e4['commands']['get'](_0xbcd3ba);_0x180aca['enableCommand'](_0xbcd3ba,_0x823ab8=>{_0x5072e4['model']['change'](_0x201c00=>{_0x823ab8();const _0x5606c4='above'===_0xe286bd['order'],_0x5cb7d1=_0x51aff6['getSelectionAffectedTableCells'](_0x53b595),_0x44c54a=_0x51aff6['getRowIndexes'](_0x5cb7d1),_0x44595a=_0x5606c4?_0x44c54a['first']-0x1:_0x44c54a['last']+0x1,_0x30131b=_0x5cb7d1[0x0]['findAncestor']('table'),_0x1cd015=_0x51aff6['createTableWalker'](_0x30131b,{'startRow':_0x44595a,'endRow':_0x44595a}),_0x3701cc=Array['from'](_0x1cd015)['map'](_0x3f2552=>_0x201c00['createRangeOn'](_0x3f2552['cell']));_0x180aca['markMultiRangeInsertion'](_0x3701cc,'tableRow');});});}for(const _0x1331b3 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4f8ff3=_0x5072e4['commands']['get'](_0x1331b3);_0x180aca['enableCommand'](_0x1331b3,_0x406262=>{_0x5072e4['model']['change'](_0x3f5775=>{_0x406262();const _0x42c6ee='left'===_0x4f8ff3['order'],_0x32e34c=_0x51aff6['getSelectionAffectedTableCells'](_0x53b595),_0x1fe7b7=_0x51aff6['getColumnIndexes'](_0x32e34c),_0x4a660a=_0x42c6ee?_0x1fe7b7['first']-0x1:_0x1fe7b7['last']+0x1,_0x42e32e=_0x32e34c[0x0]['findAncestor']('table'),_0x5d8ecd=_0x51aff6['createTableWalker'](_0x42e32e,{'startRow':0x0,'column':_0x4a660a,'includeAllSlots':!0x1}),_0x467e01=Array['from'](_0x5d8ecd)['map'](_0x37d77f=>_0x3f5775['createRangeOn'](_0x37d77f['cell']));_0x180aca['markMultiRangeInsertion'](_0x467e01,'tableColumn');});});}for(const _0x2450b6 of['removeTableRow','removeTableColumn']){const _0x1ed5d6=_0x2450b6['substr'](0xb),_0x90d4e=_0x1ed5d6['toLowerCase'](),_0x11230b=_0x90d4e['substr'](0x0,0x3)+'span',_0x587ccc='table'+_0x1ed5d6,_0x500d87='min'+_0x1ed5d6,_0x353abf='max'+_0x1ed5d6;_0x180aca['enableCommand'](_0x2450b6,()=>{_0x5072e4['model']['change'](_0x1eb875=>{const _0x384018=_0x51aff6['getSelectionAffectedTableCells'](_0x53b595),_0x83a344=_0x384018[0x0]['findAncestor']('table');let _0x520511;if('removeTableRow'==_0x2450b6){const _0x51b931=_0x51aff6['getRowIndexes'](_0x384018);_0x520511={'startRow':_0x51b931['first'],'endRow':_0x51b931['last'],'includeAllSlots':!0x0};}else{const _0x4ba385=_0x51aff6['getColumnIndexes'](_0x384018);_0x520511={'startColumn':_0x4ba385['first'],'endColumn':_0x4ba385['last'],'includeAllSlots':!0x0};}const _0xa361c7=_0x51aff6['createTableWalker'](_0x83a344,_0x520511),_0x2b8ce3=Array['from'](_0xa361c7)['map'](({cell:_0x157e94})=>_0x157e94),_0x1b622b=Ne(_0x2b8ce3['filter'](_0x4e1ce8=>_0x4e1ce8['hasAttribute'](_0x11230b))),_0x5872da=Ne(_0x2b8ce3['filter'](_0x3b66d2=>!_0x3b66d2['hasAttribute'](_0x11230b)))['map'](_0x195443=>_0x1eb875['createRangeOn'](_0x195443)),_0x3a81a0=_0x180aca['markMultiRangeDeletion'](_0x5872da,_0x587ccc);if(_0x3a81a0&&('tableRow'==_0x3a81a0['subType']||'tableColumn'==_0x3a81a0['subType'])){const _0x214d86=this['_getSuggestionCoords'](_0x3a81a0);for(const _0x18d2fb of _0x1b622b){const _0x3af098=_0x1eb875['createRangeOn'](_0x18d2fb),_0x277a70=_0x51aff6['getCellLocation'](_0x18d2fb),_0x49c855=_0x18d2fb['getAttribute'](_0x11230b)-0x1,_0x299799=_0x214d86[_0x500d87],_0xbc423f=_0x214d86[_0x353abf];_0x299799<=_0x277a70[_0x90d4e]&&_0x277a70[_0x90d4e]+_0x49c855<=_0xbc423f&&_0x3a81a0['addRange'](_0x3af098);}}});});}function _0x57b576(_0x237099){const _0x42d8ec=Array['from'](_0x53b595['getRanges']())['map'](_0x144c14=>_0x7362da['fromRange'](_0x144c14));_0x5072e4['model']['change'](_0x1397d3=>{const _0x274e52=_0x1397d3['batch'];_0x237099=_0x237099['filter'](_0x534543=>'$graveyard'!=_0x534543['root']['rootName']),_0x1397d3['setSelection'](_0x237099),_0x5072e4['commands']['get']('removeTableRow')['refresh'](),_0x5072e4['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5072e4['model']['enqueueChange'](()=>{_0x5072e4['model']['enqueueChange'](_0x274e52,_0x1a1912=>{const _0x3f8ca4=_0x42d8ec['filter'](_0x47d0cf=>'$graveyard'!=_0x47d0cf['root']['rootName']);_0x3f8ca4['length']>0x0&&_0x1a1912['setSelection'](_0x3f8ca4);for(const _0x265106 of _0x42d8ec)_0x265106['detach']();});});});}function _0x57466d(_0x3da264){_0x5072e4['model']['change'](_0x1db899=>{const _0x165ab1=Array['from'](_0x53b595['getRanges']())['map'](_0x2d8ab8=>_0x7362da['fromRange'](_0x2d8ab8)),_0x30e9d6=[];for(const _0x3ab38e of _0x3da264)for(const _0x203c1 of _0x3ab38e['getItems']({'shallow':!0x0}))_0x30e9d6['push'](_0x203c1);for(const _0x2f9391 of _0x30e9d6)'$graveyard'!=_0x2f9391['root']['rootName']&&(_0x1db899['setSelection'](_0x1db899['createPositionAt'](_0x2f9391,0x0)),_0x5072e4['commands']['get']('removeTableColumn')['refresh'](),_0x5072e4['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x42b52b=_0x165ab1['filter'](_0x3be1ab=>'$graveyard'!=_0x3be1ab['root']['rootName']);_0x42b52b['length']>0x0&&_0x1db899['setSelection'](_0x42b52b);for(const _0x5bccb6 of _0x165ab1)_0x5bccb6['detach']();});}function _0x54a618(_0x3100ed,_0xbcf869){return _0xbcf869['every'](_0x679c48=>_0x3100ed['some'](_0x6a0a68=>_0x6a0a68['end']['isEqual'](_0x679c48['start'])||_0x679c48['end']['isEqual'](_0x6a0a68['start'])));}function _0xaec4ea(_0x1ad1ca,_0x517479){return!_0x1ad1ca['some'](_0x2a3cc8=>_0x517479['some'](_0x3bb874=>_0x2a3cc8['isIntersecting'](_0x3bb874)))&&_0x1ad1ca['some'](_0x4b692e=>_0x517479['some'](_0x2234c0=>_0x4b692e['end']['isTouching'](_0x2234c0['start'])));}_0x5072e4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1c5192,_0x5d8c2f,_0x2d67d2)=>{if(!_0x2d67d2['options']['showSuggestionHighlights'])return;const _0x175bdb=_0x5d8c2f['item'];if(!_0x175bdb)return;const _0x196140=_0x2d67d2['mapper']['toViewElement'](_0x175bdb);function _0x4a1af7(_0xd69928){return Array['isArray'](_0xd69928)?_0xd69928:[_0xd69928];}_0x196140&&'tableCell'===_0x175bdb['name']&&_0xc49cfd(_0x196140,_0x2d67d2['writer'],(_0x6dbf3e,_0x822dc4,_0x2c5954)=>_0x2c5954['addClass'](_0x4a1af7(_0x822dc4['classes']),_0x6dbf3e),(_0x473698,_0x334e38,_0x35dbdf)=>_0x35dbdf['removeClass'](_0x4a1af7(_0x334e38['classes']),_0x473698));},{'priority':'highest'}),_0x180aca['descriptionFactory']['registerDescriptionCallback'](_0x3fc6dd=>{if('insertion'!=_0x3fc6dd['type']&&'deletion'!=_0x3fc6dd['type'])return;const _0x1dfb97=_0x3fc6dd['getContainedElement']();if(null!=_0x1dfb97&&_0x1dfb97['is']('element','table')){if('insertion'==_0x3fc6dd['type']){const _0x4c2471=_0x3fc6dd['getItems']()['filter'](_0x2d3494=>_0x2d3494['is']('$textProxy'))['map'](_0x27403e=>_0x27403e['data']);if(_0x4c2471['length'])return{'type':'insertion','content':c(_0x8d5024,'*Insert:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4c2471['join']('\x20')+'\x22'))};}if('deletion'==_0x3fc6dd['type']){const _0x357a3e=_0x3fc6dd['getItems']()['filter'](_0x4d5511=>_0x4d5511['is']('$textProxy'))['map'](_0x5618d4=>_0x5618d4['data']);if(_0x357a3e['length'])return{'type':'deletion','content':c(_0x8d5024,'*Remove:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x357a3e['join']('\x20')+'\x22'))};}}}),_0x180aca['descriptionFactory']['registerDescriptionCallback'](_0x257a4d=>{if('tableRow'==_0x257a4d['subType']){const _0x106d06=_0x257a4d['getItems']()['filter'](_0x4d8502=>_0x4d8502['is']('$textProxy'))['map'](_0x376f14=>_0x376f14['data']),_0x1797fe=this['_getSuggestionCoords'](_0x257a4d),_0x2bb18a=_0x1797fe['maxRow']-_0x1797fe['minRow']+0x1;if('insertion'==_0x257a4d['type'])return _0x106d06['length']?{'type':'insertion','content':c(_0x8d5024,'*Insert:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2bb18a,'\x22'+_0x106d06['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x8d5024,'*Insert:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_ROW',_0x2bb18a))};if('deletion'==_0x257a4d['type'])return _0x106d06['length']?{'type':'deletion','content':c(_0x8d5024,'*Remove:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2bb18a,'\x22'+_0x106d06['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x8d5024,'*Remove:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_ROW',_0x2bb18a))};}if('tableColumn'==_0x257a4d['subType']){const _0x1ec317=_0x257a4d['getItems']()['filter'](_0x29203=>_0x29203['is']('$textProxy'))['map'](_0xff08b2=>_0xff08b2['data']),_0x1cbc3e=this['_getSuggestionCoords'](_0x257a4d),_0x5336f1=_0x1cbc3e['maxColumn']-_0x1cbc3e['minColumn']+0x1;if('insertion'==_0x257a4d['type'])return _0x1ec317['length']?{'type':'insertion','content':c(_0x8d5024,'*Insert:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5336f1,'\x22'+_0x1ec317['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x8d5024,'*Insert:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_COLUMN',_0x5336f1))};if('deletion'==_0x257a4d['type'])return _0x1ec317['length']?{'type':'deletion','content':c(_0x8d5024,'*Remove:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5336f1,'\x22'+_0x1ec317['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x8d5024,'*Remove:*\x20%0',c(_0x8d5024,'ELEMENT_TABLE_COLUMN',_0x5336f1))};}}),_0x180aca['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x57b576),_0x180aca['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x57b576),_0x180aca['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x57466d),_0x180aca['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x57466d),_0x180aca['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x54a618),_0x180aca['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x54a618),_0x180aca['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xaec4ea),_0x180aca['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xaec4ea);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2fc7fa=this['editor'],_0x580801=_0x2fc7fa['model']['document']['selection'];return(_0x3b4388,_0x5e4ef9)=>{_0x2fc7fa['model']['change'](_0x1fcba3=>{const {commandName:_0xd7b28e,commandParams:_0x31d7c0}=_0x5e4ef9;let _0x1030e5=_0x3b4388[0x0]['end']['nodeBefore'];_0x31d7c0&&_0x31d7c0[0x0]&&!0x1===_0x31d7c0[0x0]['forceValue']&&(_0x1030e5=_0x3b4388[0x0]['start']['nodeAfter']);const _0x4c4de1=_0x1fcba3['createRangeIn'](_0x1030e5);if('$graveyard'==_0x4c4de1['root']['rootName'])return;const _0x5b83b9=Array['from'](_0x580801['getRanges']())['map'](_0x5eb473=>_0x7362da['fromRange'](_0x5eb473));_0x1fcba3['setSelection'](_0x4c4de1),_0x2fc7fa['commands']['get'](_0xd7b28e)['refresh'](),_0x31d7c0['push']({'forceDefaultExecution':!0x0}),_0x2fc7fa['execute'](_0xd7b28e,..._0x31d7c0);const _0x8c9678=_0x5b83b9['filter'](_0x563c89=>'$graveyard'!=_0x563c89['root']['rootName']);_0x8c9678['length']>0x0&&_0x1fcba3['setSelection'](_0x8c9678);for(const _0x2405d1 of _0x5b83b9)_0x2405d1['detach']();});};}['_getCoordsForCells'](_0x4084c2){const _0x38dbab=this['editor']['plugins']['get']('TableUtils');let _0x5e1955=Number['MAX_SAFE_INTEGER'],_0x57ee36=Number['MIN_SAFE_INTEGER'],_0x3b5ae7=Number['MAX_SAFE_INTEGER'],_0x1586b3=Number['MIN_SAFE_INTEGER'];for(const _0x34ee43 of _0x4084c2){if('$graveyard'==_0x34ee43['root']['rootName'])continue;const {row:_0xe1f5eb,column:_0x3abac7}=_0x38dbab['getCellLocation'](_0x34ee43),_0x30803a=_0x34ee43['hasAttribute']('rowspan')?_0x34ee43['getAttribute']('rowspan')-0x1:0x0,_0x3624a7=_0x34ee43['hasAttribute']('colspan')?_0x34ee43['getAttribute']('colspan')-0x1:0x0;_0x5e1955=_0xe1f5eb<_0x5e1955?_0xe1f5eb:_0x5e1955,_0x57ee36=_0xe1f5eb+_0x30803a>_0x57ee36?_0xe1f5eb+_0x30803a:_0x57ee36,_0x3b5ae7=_0x3abac7<_0x3b5ae7?_0x3abac7:_0x3b5ae7,_0x1586b3=_0x3abac7+_0x3624a7>_0x1586b3?_0x3abac7+_0x3624a7:_0x1586b3;}return{'minRow':_0x5e1955,'maxRow':_0x57ee36,'minColumn':_0x3b5ae7,'maxColumn':_0x1586b3};}['_setupColumnsRowsFixing'](){const _0x4e04de=this['editor'],_0x424b0e=_0x4e04de['plugins']['get']('TrackChangesEditing'),_0x444489=_0x4e04de['plugins']['get']('TableUtils');_0x4e04de['model']['document']['on']('change:data',()=>{const _0x12da05=Array['from'](_0x4e04de['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7c37a7,data:_0x42ba17}of _0x12da05){const {group:_0x3c7111,id:_0x247848,subType:_0x330113}=_0x424b0e['_splitMarkerName'](_0x7c37a7);if('suggestion'!=_0x3c7111)continue;if(null!=_0x42ba17['oldRange'])continue;const _0x1c3482=_0x424b0e['getSuggestion'](_0x247848);this['_tablePostFixingSubtypes']['includes'](_0x330113)&&this['_tableSuggestions']['add'](_0x1c3482);}},{'priority':'low'});const _0x8646ba=(_0x344248,_0x5201d1)=>{let _0x1c7093=!0x1;const _0x1634d7=_0x5201d1['createRangeOn'](_0x344248),_0x4751fe=_0x344248['findAncestor']('table'),_0x3549a8=_0x444489['getCellLocation'](_0x344248);for(const _0x3e1a0f of this['_tableSuggestions']){const _0x24c9a9=_0x3e1a0f['subType'],_0x2674d4=_0x24c9a9['startsWith']('tablePaste'),_0xc22ce9=_0x24c9a9['substr'](_0x2674d4?0xa:0x5),_0x25b7ee=_0xc22ce9['toLowerCase'](),_0x13d72a=_0x25b7ee['substr'](0x0,0x3)+'span',_0x100af7='min'+_0xc22ce9,_0x1af9cc='max'+_0xc22ce9;if(!_0x3e1a0f['isInContent'])continue;if(_0x4751fe!=_0x3e1a0f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3e1a0f['isIntersectingWithRange'](_0x1634d7))continue;const _0x2d697b=_0x344248['hasAttribute'](_0x13d72a)?_0x344248['getAttribute'](_0x13d72a)-0x1:0x0,_0x131998=this['_getSuggestionCoords'](_0x3e1a0f),_0x2b4a3b=_0x131998[_0x100af7],_0x3b43dc=_0x131998[_0x1af9cc];_0x2b4a3b<=_0x3549a8[_0x25b7ee]&&_0x3549a8[_0x25b7ee]+_0x2d697b<=_0x3b43dc&&(_0x3e1a0f['addRange'](_0x1634d7),_0x1c7093=!0x0);}return _0x1c7093;};_0x4e04de['model']['document']['registerPostFixer'](_0x533eae=>{let _0x3d4439=!0x1;for(const _0x1ab58e of _0x4e04de['model']['document']['differ']['getChanges']())if('insert'==_0x1ab58e['type']){if('tableRow'==_0x1ab58e['name']){for(const _0x2b2f3b of _0x1ab58e['position']['nodeAfter']['getChildren']())_0x3d4439=_0x3d4439||_0x8646ba(_0x2b2f3b,_0x533eae);}else'tableCell'==_0x1ab58e['name']&&(_0x3d4439=_0x3d4439||_0x8646ba(_0x1ab58e['position']['nodeAfter'],_0x533eae));}return _0x3d4439;});}['_getSuggestionCoords'](_0x36b9){return this['_getCoordsForCells'](_0x36b9['getRanges']()['map'](_0x2e6ece=>_0x2e6ece['start']['nodeAfter']));}}function Ne(_0x333f51){return Array['from'](new Set(_0x333f51)['values']());}class vt extends _0x53ae92{static get['requires'](){return[_t];}['afterInit'](){const _0x15dc41=this['editor'],_0x42a91a=_0x15dc41['model']['document']['selection'],_0x2cf320=_0x15dc41['locale'];if(!_0x15dc41['plugins']['has']('TableEditing'))return;const _0xe31d4c=_0x15dc41['plugins']['get']('TrackChangesEditing'),_0x1a71ba=_0x15dc41['plugins']['get']('TableUtils'),_0x1f4605=_0x15dc41['plugins']['get'](_t);_0x1f4605['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xe31d4c['enableCommand']('mergeTableCells',()=>{const _0x2290b7=_0x1a71ba['getSelectionAffectedTableCells'](_0x15dc41['model']['document']['selection']);_0x15dc41['model']['change'](()=>{_0xe31d4c['markMultiRangeBlockFormat'](_0x2290b7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x15dc41['commands']['get']('mergeTableCells')['on']('execute',(_0x40b290,_0xb644b7)=>{_0x15dc41['commands']['get']('trackChanges')['value']&&(_0xb644b7['length']>0x0&&_0xb644b7[_0xb644b7['length']-0x1]&&_0xb644b7[_0xb644b7['length']-0x1]['forceDefaultExecution']||_0xe31d4c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x40b290['stop']());},{'priority':'highest'});for(const _0x3465c4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2b21b8=_0x15dc41['commands']['get'](_0x3465c4);_0xe31d4c['enableCommand'](_0x3465c4,()=>{const _0x5e126d=_0x15dc41['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x9ecb39=>_0x9ecb39['is']('element','tableCell')),_0x5d7aa5=_0x2b21b8['value'];_0x15dc41['model']['change'](()=>{_0xe31d4c['markMultiRangeBlockFormat']([_0x5e126d,_0x5d7aa5],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x22286e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3fd25e=_0x15dc41['commands']['get'](_0x22286e);_0xe31d4c['enableCommand'](_0x22286e,()=>{const _0x57e2d0=_0x1a71ba['getSelectionAffectedTableCells'](_0x15dc41['model']['document']['selection'])[0x0],_0x17f135=_0x57e2d0['findAncestor']('table'),{column:_0x5b25bf,row:_0x42c816}=_0x1a71ba['getCellLocation'](_0x57e2d0);let _0x5a3aab=[];if('horizontally'==_0x3fd25e['direction']){const _0x2a353e=_0x1a71ba['createTableWalker'](_0x17f135,{'startRow':_0x42c816,'endRow':_0x42c816,'includeAllSlots':!0x0});_0x5a3aab=Array['from'](_0x2a353e)['map'](_0x2b8d60=>_0x2b8d60['cell']);}else{const _0x3771fe=_0x1a71ba['createTableWalker'](_0x17f135,{'column':_0x5b25bf,'includeAllSlots':!0x0});_0x5a3aab=Array['from'](_0x3771fe)['map'](_0x2cf1b5=>_0x2cf1b5['cell']);}_0x15dc41['model']['change'](_0x2f39f2=>{_0xe31d4c['markBlockFormat'](_0x2f39f2['createRangeOn'](_0x57e2d0),{'commandName':_0x22286e,'commandParams':[]},_0x5a3aab,_0x22286e);});});}_0xe31d4c['descriptionFactory']['registerDescriptionCallback'](_0x1dc541=>{if('formatBlock'!=_0x1dc541['type']&&'formatInline'!=_0x1dc541['type'])return;const {data:_0x16a1b6}=_0x1dc541;return _0x16a1b6&&'mergeTableCells'==_0x16a1b6['commandName']?{'type':'format','content':c(_0x2cf320,'*Merge\x20cells*')}:void 0x0;}),_0xe31d4c['descriptionFactory']['registerDescriptionCallback'](_0x3a23b2=>{if('formatBlock'!=_0x3a23b2['type']&&'formatInline'!=_0x3a23b2['type'])return;const {data:_0x1910a0}=_0x3a23b2;return _0x1910a0?'splitTableCellVertically'==_0x1910a0['commandName']?{'type':'format','content':c(_0x2cf320,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1910a0['commandName']?{'type':'format','content':c(_0x2cf320,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x46b722=_0x1f4605['_acceptFormatSuggestionCallbackFactory']();for(const _0x5ebd8f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xe31d4c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ebd8f,'accept',_0x46b722);for(const _0x4bcb8 of['splitTableCellVertically','splitTableCellHorizontally'])_0xe31d4c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4bcb8,'accept',_0x46b722);_0xe31d4c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x58872c=>{_0x15dc41['model']['change'](_0x228d2b=>{const _0x1fb6da=Array['from'](_0x42a91a['getRanges']())['map'](_0x25f0a0=>_0x7362da['fromRange'](_0x25f0a0));_0x228d2b['setSelection'](_0x58872c),_0x15dc41['commands']['get']('mergeTableCells')['refresh'](),_0x15dc41['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1740c3=_0x1fb6da['filter'](_0x3e20f4=>'$graveyard'!=_0x3e20f4['root']['rootName']);_0x1740c3['length']>0x0&&_0x228d2b['setSelection'](_0x1740c3);for(const _0x18d758 of _0x1fb6da)_0x18d758['detach']();});});for(const _0x3ee2fe of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x155c65=_0x15dc41['commands']['get'](_0x3ee2fe);_0x155c65['on']('set:isEnabled',(_0x90df34,_0x39e9bc,_0x4bb20d)=>{if(_0x4bb20d){const _0x1ff565=_0x15dc41['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4ac616=>_0x4ac616['is']('element','tableCell'));this['_areMergableCells'](_0x155c65['value'],_0x1ff565)||(_0x90df34['return']=!0x1,_0x90df34['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3202a8=this['editor']['commands']['get']('mergeTableCells'),_0x1b8595=this['editor']['plugins']['get']('TableUtils');if(!_0x3202a8['isEnabled'])return!0x1;const _0x270404=_0x1b8595['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x130104 of _0x270404)for(const _0x3aae8f of _0x270404)if(_0x130104!=_0x3aae8f&&!this['_areMergableCells'](_0x130104,_0x3aae8f))return!0x1;return!0x0;}['_areMergableCells'](_0x34e5a6,_0x4e5065){const _0x3a0b6d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f4bda=this['editor']['model']['createRangeOn'](_0x34e5a6),_0x477442=this['editor']['model']['createRangeOn'](_0x4e5065),_0x3e4c5b=new Set(),_0x27644b=new Set();for(const _0x95dea1 of _0x3a0b6d['getSuggestions']())if(('insertion'==_0x95dea1['type']||'deletion'==_0x95dea1['type']||'mergeTableCells'==_0x95dea1['subType'])&&_0x95dea1['isInContent']){for(const _0x3c855a of _0x95dea1['getRanges']())_0x3c855a['containsRange'](_0x3f4bda,!0x0)&&_0x3e4c5b['add'](_0x95dea1['type']+':'+_0x95dea1['author']['id']),_0x3c855a['containsRange'](_0x477442,!0x0)&&_0x27644b['add'](_0x95dea1['type']+':'+_0x95dea1['author']['id']);}if(_0x3e4c5b['size']!=_0x27644b['size'])return!0x1;for(const _0x84e4a of _0x3e4c5b)if(!_0x27644b['has'](_0x84e4a))return!0x1;return!0x0;}}class Ct extends _0x53ae92{static get['requires'](){return[_t];}['afterInit'](){const _0x2dcd5f=this['editor'];if(!_0x2dcd5f['plugins']['has']('TableEditing'))return;const _0x25c8a0=_0x2dcd5f['locale'],_0x1b4a2b=_0x2dcd5f['plugins']['get']('TrackChangesEditing');_0x1b4a2b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1b4a2b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1b4a2b['registerBlockAttribute']('headingRows'),_0x1b4a2b['registerBlockAttribute']('headingColumns'),_0x1b4a2b['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x25c8a0,'FORMAT_HEADER_ROW')),_0x1b4a2b['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x25c8a0,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1273b2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31ac2c=this['editor']['plugins']['get']('TableUtils'),_0x4e68b6=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0x476c86({showActiveMarker:_0x12f94b=!0x0,setDataAttribute:_0x2e030f=!0x0}={}){return(_0x169731,_0x280e4a,_0x1b559d)=>{const {type:_0x2d2cdb,id:_0x1fa0ab}=_0x1273b2['_splitMarkerName'](_0x280e4a['markerName']),_0x3d2a37=_0x1273b2['getSuggestion'](_0x1fa0ab),_0x2d3194=_0x3d2a37['data'];if('formatBlock'!=_0x3d2a37['type']||!_0x2d3194||'setTableColumnHeader'!=_0x2d3194['commandName'])return;if(_0x280e4a['item'])return void _0x169731['stop']();if(!_0x1b559d['consumable']['consume'](_0x280e4a['markerRange'],_0x169731['name']))return;const _0x3bc7f5=_0x280e4a['markerRange']['start']['nodeAfter'],_0x220ef0=_0x280e4a['markerRange']['end']['nodeBefore'],_0x56dc0e=_0x3bc7f5['parent']['parent'],{column:_0x30e5f0}=_0x31ac2c['getCellLocation'](_0x3bc7f5),{column:_0x27c6be}=_0x31ac2c['getCellLocation'](_0x220ef0);for(let _0x18e1bc=_0x30e5f0;_0x18e1bc<=_0x27c6be;_0x18e1bc++){const _0xadab8a=_0x31ac2c['createTableWalker'](_0x56dc0e,{'column':_0x18e1bc,'includeAllSlots':!0x1});for(const _0x241f4a of _0xadab8a){const _0x389406=_0x241f4a['cell'],_0x21c1fe=_0x1b559d['mapper']['toViewElement'](_0x389406);_0x1b559d['writer']['addClass']('ck-suggestion-marker-'+_0x2d2cdb,_0x21c1fe),_0x2e030f&&_0x1b559d['writer']['setAttribute']('data-suggestion',_0x1fa0ab,_0x21c1fe),_0x1b559d['mapper']['bindElementToMarker'](_0x21c1fe,_0x280e4a['markerName']),_0x12f94b&&(_0x1273b2['activeMarkers']['includes'](_0x280e4a['markerName'])?_0x1b559d['writer']['addClass']('ck-suggestion-marker--active',_0x21c1fe):_0x1b559d['writer']['removeClass']('ck-suggestion-marker--active',_0x21c1fe));}}};}_0x1273b2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4e68b6),_0x1273b2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4e68b6),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x476c86(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a7ff0,_0x383e69,_0x214f5b)=>{_0x214f5b['options']['showSuggestionHighlights']&&_0x476c86({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1a7ff0,_0x383e69,_0x214f5b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x495cf7,_0x25b282,_0x360113)=>{const {type:_0x422fc2,id:_0x38f5f2}=_0x1273b2['_splitMarkerName'](_0x25b282['markerName']),_0x5d6d56=_0x1273b2['getSuggestion'](_0x38f5f2),_0x3fcc1f=_0x5d6d56['data'];if('formatBlock'!=_0x5d6d56['type']||!_0x3fcc1f||'setTableColumnHeader'!=_0x3fcc1f['commandName'])return;const _0x1bb643=_0x360113['mapper']['markerNameToElements'](_0x25b282['markerName']);if(_0x1bb643){for(const _0x6058f of _0x1bb643)_0x360113['writer']['removeClass']('ck-suggestion-marker-'+_0x422fc2,_0x6058f),_0x360113['writer']['removeClass']('ck-suggestion-marker--active',_0x6058f),_0x360113['writer']['removeAttribute']('data-suggestion',_0x6058f),_0x360113['mapper']['unbindElementFromMarkerName'](_0x6058f,_0x25b282['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cd324=this['editor'],_0x25b734=_0x2cd324['locale'];function _0x1b03e6(_0x3672bf){return{'type':'format','content':c(_0x25b734,'*Format:*\x20%0',_0x3672bf)};}_0x2cd324['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f1439=>{if('formatBlock'!=_0x2f1439['type'])return;const {data:_0x1f1d6}=_0x2f1439;if(_0x1f1d6){if('setTableRowHeader'==_0x1f1d6['commandName']){const _0x5392af=_0x1f1d6['commandParams'][0x0]['forceValue'];return _0x1b03e6(c(_0x25b734,_0x5392af?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1f1d6['commandName']){const _0x4b4046=_0x1f1d6['commandParams'][0x0]['forceValue'];return _0x1b03e6(c(_0x25b734,_0x4b4046?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x824190=>[_0x824190,null]));class Nt extends _0x53ae92{static get['requires'](){return[_t];}['afterInit'](){const _0x233079=this['editor'];if(!_0x233079['plugins']['has']('TableClipboard'))return;const _0x5a48ab=_0x233079['plugins']['get']('TrackChangesEditing'),_0x5d85ec=_0x233079['plugins']['get']('TableUtils'),_0x4b6819=_0x233079['plugins']['get'](_t),_0x4119af=_0x233079['plugins']['get']('TableClipboard');_0x4b6819['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x233079['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x233079['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x397af9=null;_0x233079['model']['on']('insertContent',(_0x296cda,_0x253c91)=>{const [_0x22e53d,_0x44615c]=_0x253c91,_0x357443=_0x253c91[_0x253c91['length']-0x1];_0x357443&&_0x357443['forceDefaultExecution']||_0x5a48ab['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4bd918,_0x187650,_0x4e54ff,_0x1ab07b,_0x51307){if(_0x187650&&!_0x187650['is']('documentSelection'))return!0x1;const _0x5c6ed3=_0x51307['getTableIfOnlyTableInContent'](_0x4bd918,_0x4e54ff);if(!_0x5c6ed3||!Ue(_0x5c6ed3,void 0x0,_0x1ab07b))return!0x1;const _0x52f7f5=_0x1ab07b['getSelectionAffectedTableCells'](_0x4e54ff['document']['selection']);if(!_0x52f7f5['length'])return!0x1;const _0x239ae0=_0x52f7f5[0x0]['findAncestor']('table'),_0x3d4251=_0x1ab07b['getRowIndexes'](_0x52f7f5),_0x539a42=_0x1ab07b['getColumnIndexes'](_0x52f7f5),_0x45b5b4={'startRow':_0x3d4251['first'],'endRow':_0x3d4251['last'],'startColumn':_0x539a42['first'],'endColumn':_0x539a42['last']};return 0x1==_0x52f7f5['length']&&(_0x45b5b4['endRow']+=_0x1ab07b['getRows'](_0x5c6ed3)-0x1,_0x45b5b4['endColumn']+=_0x1ab07b['getColumns'](_0x5c6ed3)-0x1),Ue(_0x239ae0,_0x45b5b4,_0x1ab07b);}(_0x22e53d,_0x44615c,_0x233079['model'],_0x5d85ec,_0x4119af)&&(_0x296cda['stop'](),_0x397af9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x233079['model']['change'](()=>{_0x233079['model']['insertContent'](_0x253c91[0x0],_0x253c91[0x1],_0x253c91[0x2],{'forceDefaultExecution':!0x0});const _0x34c94d=_0x33987a(),{rowInsertionRanges:_0x5bc970,columnInsertionRanges:_0x1e5354,insertionRanges:_0x198bad,deletionRanges:_0x465adf,cells:_0x5f2050}=_0x397af9;_0x5bc970['length']&&_0x5a48ab['markMultiRangeInsertion'](_0x5bc970,'tablePasteRow',{'tablePasteChainId':_0x34c94d}),_0x1e5354['length']&&_0x5a48ab['markMultiRangeInsertion'](_0x1e5354,'tablePasteColumn',{'tablePasteChainId':_0x34c94d}),_0x198bad['length']&&(_0x5a48ab['markMultiRangeInsertion'](_0x198bad,'tablePaste',{'tablePasteChainId':_0x34c94d,'skipNestingCheck':!0x0}),_0x198bad['forEach'](_0x3b813f=>_0x3b813f['detach']?.())),_0x465adf['length']&&(_0x5a48ab['markMultiRangeDeletion'](_0x465adf,'tablePaste',{'tablePasteChainId':_0x34c94d,'skipNestingCheck':!0x0}),_0x465adf['forEach'](_0x505870=>_0x505870['detach']?.()));const _0x2c469a=_0x5a48ab['markMultiRangeBlockFormat'](_0x5f2050['map'](({element:_0x2e771a})=>_0x2e771a),{'formatGroupId':_0x33987a()},[],'tablePasteCell',{'tablePasteChainId':_0x34c94d});if(_0x2c469a){const _0x1cb144=_0x2c469a['getMarkers'](),_0xbb3264=[];for(const {element:_0x548510,attributes:_0x4ff22e}of _0x5f2050){if(!_0x4ff22e)continue;const _0x250a85=_0x233079['model']['createRangeOn'](_0x548510),_0x4edb3c=_0x1cb144['find'](_0x51c0ce=>_0x51c0ce['getRange']()['isEqual'](_0x250a85));_0x4edb3c&&_0xbb3264['push']([_0x4edb3c['name'],_0x4ff22e]);}_0xbb3264['length']&&_0x2c469a['setAttribute']('markerAttributes',Object['fromEntries'](_0xbb3264));}_0x397af9=null;}));},{'priority':_0x9eec71['high']+0xa}),_0x233079['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x22c142,_0x436c45)=>{const [_0x2afcd2,_0x445c15,,_0x1c567c]=_0x436c45;if(!_0x397af9)return;_0x22c142['stop']();const _0x57a5ae=_0x2afcd2['cell'],_0x11bd90=_0x445c15,_0x3c8790=Oe(_0x57a5ae),_0x330458=Oe(_0x11bd90);_0x22c142['return']=_0x57a5ae;let _0x330514=null,_0x5c0662=null;if(_0x330458||_0x3c8790){if(_0x3c8790&&!_0x330458){_0x1c567c['remove'](_0x57a5ae['getChild'](0x0));for(const _0x1f790d of Array['from'](_0x11bd90['getChildren']()))_0x1c567c['insert'](_0x1f790d,_0x57a5ae,'end');const _0x48c164=_0x397af9['rowInsertionIndexes']['includes'](_0x2afcd2['row']),_0x4ce7d7=_0x397af9['columnInsertionIndexes']['includes'](_0x2afcd2['column']);_0x48c164||_0x4ce7d7||(_0x330514=_0x7362da['fromRange'](_0x1c567c['createRangeIn'](_0x57a5ae)));}else _0x330458&&!_0x3c8790&&(_0x5c0662=_0x1c567c['createRangeIn'](_0x57a5ae));}else{const _0xf2ce66=_0x1c567c['createElement']('tableCellSuggestion'),_0x442bc2=_0x1c567c['createElement']('tableCellSuggestion');_0x1c567c['wrap'](_0x1c567c['createRangeIn'](_0x57a5ae),_0x442bc2),_0x1c567c['insert'](_0xf2ce66,_0x57a5ae,0x0);for(const _0x167151 of Array['from'](_0x11bd90['getChildren']()))_0x1c567c['insert'](_0x167151,_0xf2ce66,'end');_0x330514=_0x7362da['fromRange'](_0x1c567c['createRangeOn'](_0xf2ce66)),_0x5c0662=_0x7362da['fromRange'](_0x1c567c['createRangeOn'](_0x442bc2));}const _0x86168=Array['from'](_0x11bd90['getAttributes']())['filter'](([_0x145add])=>Be['includes'](_0x145add));_0x397af9['cells']['push']({'element':_0x57a5ae,'attributes':_0x86168['length']?Object['fromEntries'](_0x86168):null}),_0x330514&&_0x397af9['insertionRanges']['push'](_0x330514),_0x5c0662&&_0x397af9['deletionRanges']['push'](_0x5c0662);},{'priority':'high'}),_0x5d85ec['on']('insertColumns',(_0x31fc62,_0x335f32)=>{const [_0x4323c5,_0x1b8021={}]=_0x335f32;if(!_0x397af9)return;const _0x438978=_0x1b8021['at']||0x0,_0x1cc1cc=_0x1b8021['columns']||0x1;_0x397af9['columnInsertionIndexes']=new Array(_0x1cc1cc)['fill'](_0x438978)['map']((_0x25381f,_0xaefa5b)=>_0x25381f+_0xaefa5b);for(const {cell:_0x6497a6}of _0x5d85ec['createTableWalker'](_0x4323c5,{'startColumn':_0x438978,'endColumn':_0x438978+_0x1cc1cc-0x1}))_0x397af9['columnInsertionRanges']['push'](_0x233079['model']['createRangeOn'](_0x6497a6));},{'priority':'low'}),_0x5d85ec['on']('insertRows',(_0x562a2b,_0x1f84a6)=>{const [_0x2d88f1,_0x4fa269={}]=_0x1f84a6;if(!_0x397af9)return;const _0x28c7ba=_0x4fa269['at']||0x0,_0x24597b=_0x4fa269['rows']||0x1;_0x397af9['rowInsertionIndexes']=new Array(_0x24597b)['fill'](_0x28c7ba)['map']((_0xd062b9,_0x15fdf2)=>_0xd062b9+_0x15fdf2);for(const {cell:_0x5e8a67}of _0x5d85ec['createTableWalker'](_0x2d88f1,{'startRow':_0x28c7ba,'endRow':_0x28c7ba+_0x24597b-0x1}))_0x397af9['rowInsertionRanges']['push'](_0x233079['model']['createRangeOn'](_0x5e8a67));},{'priority':'low'}),_0x5a48ab['descriptionFactory']['registerDescriptionCallback'](_0x2b94ab=>{if(_0x2b94ab['subType']&&_0x2b94ab['subType']['startsWith']('tablePaste'))return _0x2b94ab['previous']?{}:{'type':'insertion','content':c(_0x233079['locale'],'*Replace\x20table\x20cells*')};});const _0x238f6e=()=>!0x1;for(const _0x1ee99a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5a48ab['_suggestionFactory']['registerCustomCallback']('insertion',_0x1ee99a,'join',_0x238f6e),_0x5a48ab['_suggestionFactory']['registerCustomCallback']('deletion',_0x1ee99a,'join',_0x238f6e),_0x5a48ab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ee99a,'join',_0x238f6e);_0x5a48ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x238f6e),_0x5a48ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x42525e,_0x1014fc,_0x2baca6)=>{const _0x8b35d5=_0x42525e['map'](_0x3d18f0=>_0x3d18f0['getContainedElement']())['filter'](_0x2ad483=>_0x2ad483),_0x28b04d=new Map(_0x8b35d5['map'](_0x39b21a=>[_0x39b21a,null]));if(_0x397af9){for(const {element:_0x3d2dbe,attributes:_0x4ef7d4}of _0x397af9['cells'])_0x4ef7d4&&_0x28b04d['set'](_0x3d2dbe,_0x4ef7d4);}else{if(_0x2baca6&&_0x2baca6['markerAttributes'])for(const [_0x542835,_0x576254]of Object['entries'](_0x2baca6['markerAttributes'])){const _0xb7c00b=_0x233079['model']['markers']['get'](_0x542835),_0x3d40d5=_0xb7c00b?_0xb7c00b['getRange']()['getContainedElement']():null;_0x3d40d5&&_0x28b04d['set'](_0x3d40d5,_0x576254);}}_0x233079['model']['change'](_0x57653d=>{for(const [_0x2d96e4,_0x59f550]of _0x28b04d)_0x57653d['setAttributes']({...xe,..._0x59f550},_0x2d96e4);});});const _0x549e90=(_0x3d0d17,_0x4565d4)=>{_0x5a48ab['_suggestionFactory']['registerCustomCallback'](_0x3d0d17,'tablePaste',_0x4565d4,(_0x594600,_0x432b88,_0x1c2b19)=>{_0x233079['model']['change'](_0x354cd9=>{const _0x5d2f91=[];for(const _0x57b91e of _0x594600){const _0xa95793=_0x57b91e['start']['nodeAfter'];_0xa95793['is']('element','tableCellSuggestion')&&_0x5d2f91['push'](_0xa95793);}_0x5a48ab['_suggestionFactory']['getSuggestionCallback'](_0x3d0d17,null,_0x4565d4)(_0x594600,_0x432b88,_0x1c2b19);for(const _0x2a6e54 of _0x5d2f91)'$graveyard'!=_0x2a6e54['root']['rootName']&&_0x354cd9['unwrap'](_0x2a6e54);});});};_0x549e90('insertion','accept'),_0x549e90('insertion','discard'),_0x549e90('deletion','accept'),_0x549e90('deletion','discard'),_0x5a48ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x255825=>{const _0xc83fa=_0x255825['map'](_0x95c196=>_0x95c196['getContainedElement']()),_0x3bb59f=_0xc83fa[0x0]['findAncestor']('table'),{minRow:_0x3f6ffe,maxRow:_0x312d2e}=_0x4b6819['_getCoordsForCells'](_0xc83fa);_0x5d85ec['removeRows'](_0x3bb59f,{'at':_0x3f6ffe,'rows':_0x312d2e-_0x3f6ffe+0x1});}),_0x5a48ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xe53278=>{const _0x91db17=_0xe53278['map'](_0x335025=>_0x335025['getContainedElement']()),_0x19fd9d=_0x91db17[0x0]['findAncestor']('table'),{minColumn:_0x88c5ee,maxColumn:_0x340b27}=_0x4b6819['_getCoordsForCells'](_0x91db17);_0x5d85ec['removeColumns'](_0x19fd9d,{'at':_0x88c5ee,'columns':_0x340b27-_0x88c5ee+0x1});});const _0x72c78e=(_0x559d8c,_0xd91659)=>{if(!_0xd91659['subType']||!_0xd91659['subType']['startsWith']('tablePaste'))return;const _0x1df730=_0xd91659['attributes']['tablePasteChainId'],_0x5b6ddf=_0x5a48ab['getSuggestions']()['filter'](_0x1d4b10=>_0x1d4b10['isInContent']&&_0x1d4b10['attributes']&&_0x1d4b10['attributes']['tablePasteChainId']==_0x1df730);_0x5b6ddf['length']&&_0xd91659['getAllAdjacentSuggestions']()['length']!=_0x5b6ddf['length']&&_0x5b6ddf['reduce']((_0x31aab0,_0x4c831f)=>(_0x31aab0['next']=_0x4c831f,_0x4c831f['previous']=_0x31aab0,_0x4c831f));};function _0x4073e6(_0x38bc47,_0x46adb2=!0x0){const {id:_0x2ea17e,authorId:_0x4755ed}=_0x5a48ab['_splitMarkerName'](_0x38bc47['markerName']),_0x5da199=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x161503=_0x5a48ab['activeMarkers']['includes'](_0x38bc47['markerName']);return _0x161503&&_0x5da199['push']('ck-suggestion-marker--active'),{'classes':_0x5da199,'attributes':{'data-suggestion':_0x2ea17e,'data-author-id':_0x4755ed},'priority':_0x161503&&_0x46adb2?0xbc2:0xbb8};}_0x5a48ab['on']('suggestionLoaded',_0x72c78e,{'priority':'high'}),_0x5a48ab['on']('suggestionUnloaded',_0x72c78e,{'priority':'high'}),_0x233079['model']['document']['registerPostFixer'](()=>{let _0x3ece77=!0x1;const _0x5bea20=Array['from'](_0x233079['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x135c53,data:_0x3dfa48}of _0x5bea20){const {group:_0x10c2e1,type:_0xed3a57,id:_0x325e3a}=_0x5a48ab['_splitMarkerName'](_0x135c53);if('suggestion'!=_0x10c2e1||'deletion'!=_0xed3a57||_0x3dfa48['oldRange'])continue;if(!_0x5a48ab['hasSuggestion'](_0x325e3a))continue;const _0x578899=_0x5a48ab['getSuggestion'](_0x325e3a)['getRanges'](),_0x392e28=_0x233079['plugins']['get']('Users')['me'];for(const _0x1d3fd8 of _0x5a48ab['getSuggestions']()){if(!_0x1d3fd8['isInContent']||_0x1d3fd8['author']!=_0x392e28)continue;if('formatBlock'!=_0x1d3fd8['type']||'tablePasteCell'!=_0x1d3fd8['subType'])continue;if(_0x1d3fd8['getRanges']()['every'](_0x370b5a=>_0x578899['some'](_0x375f7b=>_0x375f7b['containsRange'](_0x370b5a,!0x0)))){for(const _0x72852c of _0x1d3fd8['getAllAdjacentSuggestions']())_0x72852c['isInContent']&&(_0x72852c['discard'](),_0x3ece77=!0x0);}}}return _0x3ece77;}),_0x233079['model']['document']['registerPostFixer'](_0x4397c8=>{const _0x246ca3=_0x233079['commands']['get']('redo');if(!_0x246ca3||!_0x246ca3['_createdBatches']['has'](_0x4397c8['batch']))return!0x1;let _0x22ac05=!0x1;const _0x995032=_0x233079['plugins']['get']('Users')['me'],_0x10be27=_0x233079['model']['document']['differ']['getChanges'](),_0x4c358a=Array['from'](_0x233079['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5c32dc,data:_0x5b99ad})=>{const {group:_0x586a87,subType:_0x38a640,authorId:_0x223b3c}=_0x5a48ab['_splitMarkerName'](_0x5c32dc);return'suggestion'==_0x586a87&&'tablePaste'==_0x38a640&&_0x223b3c==_0x995032['id']&&!_0x5b99ad['oldRange'];});for(const _0x34b4eb of _0x10be27){if('insert'!=_0x34b4eb['type']||'tableCellSuggestion'!=_0x34b4eb['name']||0x1!=_0x34b4eb['length'])continue;const _0x491b16=_0x4397c8['createRange'](_0x34b4eb['position'],_0x34b4eb['position']['getShiftedBy'](0x1));if(!_0x4c358a['find'](({data:_0x100ce1})=>_0x100ce1['newRange']['isEqual'](_0x491b16))){for(const {name:_0x40bcbe,data:_0x253886}of _0x4c358a)if(_0x491b16['containsRange'](_0x253886['newRange'])){_0x4397c8['updateMarker'](_0x40bcbe,{'range':_0x491b16}),_0x22ac05=!0x0;break;}}}return _0x22ac05;}),_0x233079['model']['document']['registerPostFixer'](_0x4b85f3=>{let _0x46673d=!0x1;const _0x53658d=_0x233079['plugins']['get']('Users')['me'],_0x20c88f=_0x5a48ab['getSuggestions']()['filter'](_0x4bb632=>_0x4bb632['isInContent']&&_0x4bb632['author']==_0x53658d),_0x2a0963=new Set(),_0x47fbe1=new Set();for(const _0xa4f46c of _0x20c88f)if('tablePaste'==_0xa4f46c['subType'])for(const _0x4e93df of _0xa4f46c['getMarkers']()){const _0x2f5d96=_0x4e93df['getRange']()['getContainedElement']();if(_0x2f5d96){if(_0x2f5d96['is']('element','tableCellSuggestion')&&Oe(_0x2f5d96)){_0xa4f46c['removeMarker'](_0x4e93df['name']),_0x2a0963['add'](_0x2f5d96),_0x46673d=!0x0;const _0x30c5d2=_0x2f5d96['nextSibling'],_0x1867ba=_0x2f5d96['previousSibling'],_0x380812=_0x30c5d2&&_0x30c5d2['is']('element','tableCellSuggestion'),_0x594b8e=_0x1867ba&&_0x1867ba['is']('element','tableCellSuggestion');_0x380812&&!_0x2a0963['has'](_0x30c5d2)&&_0x47fbe1['add'](_0x30c5d2),_0x594b8e&&!_0x2a0963['has'](_0x1867ba)&&_0x47fbe1['add'](_0x1867ba);}else _0x2f5d96['is']('element','paragraph')&&_0x2f5d96['isEmpty']&&(_0xa4f46c['removeMarker'](_0x4e93df['name']),_0x46673d=!0x0);}}else{if('tablePasteCell'==_0xa4f46c['subType']){if(!_0xa4f46c['attributes']||!_0xa4f46c['attributes']['tablePasteChainId'])continue;const _0x579319=_0xa4f46c['attributes']['markerAttributes'];if(_0x579319&&Object['keys'](_0x579319)['length'])continue;const _0x5c2d8a=_0xa4f46c['attributes']['tablePasteChainId'];let _0x595b7a=!0x0,_0xef8216=!0x0;for(const _0x2af319 of _0x20c88f)if(_0x2af319['subType']&&_0x2af319['subType']['startsWith']('tablePaste')){if(!_0x2af319['attributes']['tablePasteChainId']){_0xef8216=!0x1;break;}if(_0x2af319['id']!=_0xa4f46c['id']&&_0x2af319['attributes']['tablePasteChainId']==_0x5c2d8a){_0x595b7a=!0x1;break;}}_0xef8216&&_0x595b7a&&(_0xa4f46c['removeMarkers'](),_0x46673d=!0x0);}}for(const _0x57a9c0 of _0x2a0963)_0x4b85f3['remove'](_0x57a9c0);for(const _0x3633d0 of _0x47fbe1)_0x4b85f3['unwrap'](_0x3633d0);return _0x46673d;}),_0x233079['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1b0d67=>_0x4073e6(_0x1b0d67),'converterPriority':'high'}),_0x233079['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x38c874,_0x380651)=>_0x380651['options']['showSuggestionHighlights']?_0x4073e6(_0x38c874,!0x1):null,'converterPriority':'high'});const _0x1fbaa3=_0x233079['editing']['view'];this['listenTo'](_0x1fbaa3['document'],'clipboardOutput',(_0x328fc6,_0x25cd8b)=>{const _0x1738c5=[];for(const _0xc09065 of _0x1fbaa3['createRangeIn'](_0x25cd8b['content'])['getItems']())_0xc09065['is']('element','suggestion-td')&&_0x1738c5['push'](_0xc09065);_0x1fbaa3['change'](_0x355c86=>{for(const _0x488f7b of _0x1738c5)_0x355c86['move'](_0x355c86['createRangeIn'](_0x488f7b),_0x355c86['createPositionBefore'](_0x488f7b)),_0x355c86['remove'](_0x488f7b);});});}}function Oe(_0x1489c9){if(_0x1489c9['isEmpty'])return!0x0;const _0x380e62=_0x1489c9['getChild'](0x0);return _0x380e62['is']('element','paragraph')&&_0x380e62['isEmpty'];}function Ue(_0x258fe1,_0x48c481={},_0x55b733){for(const {isAnchor:_0x4f72ad,cellHeight:_0x1f4b7d,cellWidth:_0x57e794}of _0x55b733['createTableWalker'](_0x258fe1,{'includeAllSlots':!0x0,..._0x48c481}))if(!_0x4f72ad||0x1!=_0x1f4b7d||0x1!=_0x57e794)return!0x1;return!0x0;}class Dt extends _0x53ae92{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x45e726=this['editor']['plugins']['get']('TrackChangesEditing');_0x45e726['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x45e726['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x45e726['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45e726['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x45e726['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x45e726['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1db68f,_0x405eab){const _0x116d61=this['editor']['plugins']['get']('TrackChangesEditing'),_0x544f1e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x7bb863=_0x405eab['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x44e451=_0x544f1e['getColumnGroupElement'](_0x7bb863);let _0x11d78e=_0x44e451?_0x544f1e['getTableColumnsWidths'](_0x44e451):null,_0x4fe5fe=_0x7bb863['getAttribute']('tableWidth')||null;const _0x25b844=_0x405eab['tableWidth']||_0x4fe5fe,_0x380b0c=_0x405eab['columnWidths']||_0x11d78e,_0x369627=this['editor']['plugins']['get']('Users')['me'];for(const _0x3fa167 of _0x116d61['getSuggestions']()){const _0x11f9e5=_0x3fa167['getContainedElement']();if('resizeTable'===_0x3fa167['subType']&&_0x11f9e5===_0x7bb863){_0x3fa167['author']!==_0x369627&&_0x3fa167['discard']();const _0x454f4d=_0x3fa167['data']['commandParams'];_0x4fe5fe=_0x454f4d[0x0]['tableWidth'],_0x11d78e=_0x454f4d[0x0]['columnWidths'];break;}}_0x1db68f({'table':_0x7bb863,'tableWidth':_0x25b844,'columnWidths':_0x380b0c}),_0x116d61['markBlockFormat'](_0x7bb863,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4fe5fe,'columnWidths':_0x11d78e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1ee07f){if('formatBlock'!=_0x1ee07f['type']&&'formatInline'!=_0x1ee07f['type'])return;const {data:_0x1baf3a}=_0x1ee07f;if(_0x1baf3a&&'resizeTable'===_0x1baf3a['formatGroupId']){const _0x30817d='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x30817d)};}}}class Mt extends _0x53ae92{['afterInit'](){const _0xe2b253=this['editor'];_0xe2b253['plugins']['has']('Template')&&_0xe2b253['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x53ae92{['afterInit'](){const _0x117ab7=this['editor'];if(!_0x117ab7['commands']['get']('insertTableOfContents'))return;_0x117ab7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5e957d=_0x117ab7['plugins']['get']('TrackChangesEditing'),_0x28bdf9=_0x117ab7['locale'];_0x5e957d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x49e100=>c(_0x28bdf9,'ELEMENT_TABLE_OF_CONTENTS',_0x49e100));}}class Bt extends _0x53ae92{['afterInit'](){const _0x302e69=this['editor'];if(!_0x302e69['plugins']['has']('Title'))return;const _0x326bb8=_0x302e69['plugins']['get']('TrackChangesEditing');_0x326bb8['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x302e69['locale'],'ELEMENT_TITLE')),_0x302e69['model']['document']['registerPostFixer'](_0x4f9069=>{let _0x372209=!0x1;const _0xde41d1=Array['from'](_0x302e69['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43dd2a,data:_0x3c09f8}of _0xde41d1){const {group:_0x56007c}=_0x326bb8['_splitMarkerName'](_0x43dd2a);if('suggestion'!==_0x56007c||!_0x3c09f8['newRange'])continue;const _0x56e76e=_0x3c09f8['newRange'],_0x3df9b8=_0x56e76e['end']['nodeBefore'];if(!_0x3df9b8||!_0x3df9b8['is']('element','title-content'))continue;if(!_0x56e76e['start']['isTouching'](_0x56e76e['end']))continue;const _0x4de331=_0x302e69['model']['schema']['getNearestSelectionRange'](_0x56e76e['end'],'forward');if(_0x4de331&&_0x4de331['isCollapsed']){const _0x296e56=_0x4f9069['createRange'](_0x56e76e['start'],_0x4de331['start']);_0x296e56['isEqual'](_0x56e76e)||(_0x4f9069['updateMarker'](_0x43dd2a,{'range':_0x296e56}),_0x372209=!0x0);}_0x372209||(_0x4f9069['removeMarker'](_0x43dd2a),_0x372209=!0x0);}return _0x372209;});}}class Ot extends _0x53ae92{['afterInit'](){const _0x534b0d=this['editor'],_0x46ad6f=_0x534b0d['plugins']['get']('TrackChangesEditing');_0x534b0d['plugins']['has']('Uploadcare')&&(_0x46ad6f['enableCommand']('uploadcare'),_0x534b0d['plugins']['has']('UploadcareImageEdit')&&(_0x46ad6f['enableCommand']('uploadcareImageEdit'),_0x46ad6f['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x46ad6f['registerBlockAttribute']('uploadcareImageId'),_0x46ad6f['descriptionFactory']['registerDescriptionCallback'](_0x50696a=>{if('attribute'!=_0x50696a['type'])return;const {data:_0x2cf865}=_0x50696a;return _0x2cf865&&'uploadcareImageId'==_0x2cf865['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x53ae92{['afterInit'](){const _0x473ced=this['editor'],_0x187200=_0x473ced['plugins']['get']('TrackChangesEditing');_0x473ced['plugins']['has']('UndoEditing')&&(_0x187200['enableCommand']('undo'),_0x187200['enableCommand']('redo'));}}class xt extends _0x53ae92{static get['requires'](){return[_t];}['afterInit'](){const _0x3572fd=this['editor'];if(!_0x3572fd['plugins']['has']('TableCaptionEditing'))return;_0x3572fd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x53ae92{['tableProperties'];['tableCellProperties'];constructor(_0x31db57){super(_0x31db57),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 _0x5563fd=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4ee2bf of this['tableProperties'])_0x5563fd['enableCommand'](_0x4ee2bf,(_0x9010e2,_0x1f22fe)=>{const _0x3c5e1d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4ee2bf,[_0x3c5e1d],this['tableProperties'],'tableProperties',_0x9010e2,_0x1f22fe);});_0x5563fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5563fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5563fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x52c062,_0x196ceb)=>this['handleDiscardAction'](this['tableProperties'],_0x52c062,_0x196ceb)),_0x5563fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x12c8b1 of this['tableCellProperties'])_0x5563fd['enableCommand'](_0x12c8b1,(_0x2a6ac3,_0x2c477b)=>{const _0x4c055f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x12c8b1,_0x4c055f,this['tableCellProperties'],'tableCellProperties',_0x2a6ac3,_0x2c477b);});_0x5563fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5563fd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5563fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x36f5c3,_0x2d3796)=>this['handleDiscardAction'](this['tableCellProperties'],_0x36f5c3,_0x2d3796)),_0x5563fd['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5563fd['descriptionFactory']['registerDescriptionCallback'](_0x409974=>this['handleSuggestionDescription'](_0x409974));}['_handlePropertyChange'](_0x3b88c7,_0x5a3e05,_0x29cc0c,_0x30d303,_0x5498ce,_0x207531){const _0x2a4f32=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x207531['batch'],()=>{for(const _0x33fe6f of _0x5a3e05){if(this['_getSuggestion'](_0x33fe6f,_0x30d303))_0x5498ce(_0x207531);else{const _0x3e7b86={};for(const _0x362799 of _0x29cc0c){const _0x1dcf80=_0x33fe6f['getAttribute'](_0x362799);void 0x0!==_0x1dcf80&&(_0x3e7b86[_0x362799]=_0x1dcf80);}_0x5498ce(_0x207531),_0x2a4f32['markBlockFormat'](_0x33fe6f,{'commandParams':[_0x3e7b86]},[],_0x30d303);}}});}['handleDiscardAction'](_0x3561a2,_0x5b9ced,_0x4e7842){const _0x44a9c0=_0x5b9ced[0x0]['start']['nodeAfter'],_0x6865bf=_0x4e7842['commandParams'][0x0];this['editor']['model']['change'](_0xbef41=>{for(const _0x199b3c of _0x3561a2)void 0x0!==_0x6865bf[_0x199b3c]?_0xbef41['setAttribute'](_0x199b3c,_0x6865bf[_0x199b3c],_0x44a9c0):_0xbef41['removeAttribute'](_0x199b3c,_0x44a9c0);});}['handleSuggestionDescription'](_0x2615b7){if(_0x2615b7['data'])switch(_0x2615b7['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'](_0x2c5fa3,_0x3944d7){const _0x1e9525=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x32726a of _0x1e9525['getSuggestions']({'skipNotAttached':!0x0})){const _0x46b026=_0x32726a['getContainedElement']();if(_0x32726a['subType']===_0x3944d7&&_0x46b026===_0x2c5fa3)return _0x32726a;}return null;}}const u='$elementName';class p extends _0x53ae92{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xd79e0a,_0xe8a11,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,xt,Nt,Dt,$t,Tt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x130072){super(_0x130072),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xab41f4,_0x304434,_0xcb673e,_0x515c15)=>{this['_model']['change'](()=>{for(const _0x10bbb1 of[..._0x515c15,..._0xcb673e])this['_model']['markers']['has'](_0x10bbb1)&&_0x130072['editing']['reconvertMarker'](_0x10bbb1);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x130072['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(),_0x130072['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x130072['config']['get']('trackChanges.trackFormatChanges'),_0x130072['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x130072['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x130072,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5f5ac2=this['editor'],_0x7f06a0=(_0x1afc83,_0x4b3907)=>{if('attribute'!=_0x1afc83)return'ck-suggestion-marker-'+_0x1afc83;const _0xd1203c=_0x4b3907['split']('|')[0x0];return this['_isBlockAttribute'](_0xd1203c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5f5ac2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3e5fbb=>{const {id:_0x4dc045,authorId:_0x35e1cf,type:_0x42cb04,subType:_0x1d95ec}=this['_splitMarkerName'](_0x3e5fbb['markerName']),_0x1456a6=['ck-suggestion-marker',_0x7f06a0(_0x42cb04,_0x1d95ec)];let _0x57cc41=0xbb8;return this['activeMarkers']['includes'](_0x3e5fbb['markerName'])&&(_0x1456a6['push']('ck-suggestion-marker--active'),_0x57cc41=0xbc2),'deletion'==_0x42cb04&&(_0x57cc41+=0x5),{'classes':_0x1456a6,'attributes':{'data-suggestion':_0x4dc045,'data-author-id':_0x35e1cf},'priority':_0x57cc41};}}),_0x5f5ac2['conversion']['for']('dataDowncast')['add'](_0x5c651e=>{_0x5c651e['on']('addMarker:suggestion',(_0x27ced6,_0xc4f7d2,_0x3917b1)=>{if(!_0x3917b1['options']['showSuggestionHighlights'])return;const _0x51b53a=_0xc4f7d2['item'];if(!_0x51b53a)return;const _0x1f4738=_0x3917b1['mapper']['toViewElement'](_0x51b53a);_0x5f5ac2['model']['schema']['isObject'](_0x51b53a)&&_0x1f4738&&!_0x1f4738['getCustomProperty']('widget')&&_0x1f4738['is']('containerElement')&&_0x5442e8(_0x1f4738,_0x3917b1['writer']);},{'priority':'high'});}),_0x5f5ac2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xcad25e,_0x75f508)=>{if(!_0x75f508['options']['showSuggestionHighlights'])return null;const {type:_0x185262,subType:_0x50a21a}=this['_splitMarkerName'](_0xcad25e['markerName']);return{'classes':['ck-suggestion-marker',_0x7f06a0(_0x185262,_0x50a21a)],'priority':0xbb8};}});const _0x47abfb=({showActiveMarkers:_0x37ec69=!0x0,isAttributeSuggestion:_0x7f8433=!0x1}={})=>(_0x141f24,_0x111bc6,_0x4469eb)=>{if(!_0x111bc6['item'])return;const {id:_0x456afb,authorId:_0x18b476}=this['_splitMarkerName'](_0x111bc6['markerName']);if(_0x7f8433){const _0x4a5803=this['_suggestions']['get'](_0x456afb),_0x30a5d9=this['_getAttributeKey'](_0x4a5803);if(!this['_isBlockAttribute'](_0x30a5d9))return;}if(_0x111bc6['item']['is']('selection'))return void _0x4469eb['consumable']['consume'](_0x111bc6['item'],_0x141f24['name']);const _0x54428a=_0x4469eb['mapper']['toViewElement'](_0x111bc6['item']);if(_0x111bc6['item']['is']('element')&&_0x5f5ac2['model']['schema']['isBlock'](_0x111bc6['item'])&&!_0x54428a['getCustomProperty']('addHighlight')){_0x4469eb['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x54428a),_0x4469eb['writer']['setAttribute']('data-suggestion',_0x456afb,_0x54428a),_0x4469eb['writer']['setAttribute']('data-author-id',_0x18b476,_0x54428a),_0x4469eb['mapper']['bindElementToMarker'](_0x54428a,_0x111bc6['markerName']),_0x37ec69&&(this['activeMarkers']['includes'](_0x111bc6['markerName'])?_0x4469eb['writer']['addClass']('ck-suggestion-marker--active',_0x54428a):_0x4469eb['writer']['removeClass']('ck-suggestion-marker--active',_0x54428a));for(const _0x29704c of _0x5f5ac2['model']['createRangeIn'](_0x111bc6['item'])['getItems']())_0x4469eb['consumable']['consume'](_0x29704c,_0x141f24['name']);_0x4469eb['consumable']['consume'](_0x111bc6['item'],_0x141f24['name']);}};_0x5f5ac2['conversion']['for']('dataDowncast')['add'](_0x1af5e8=>{_0x1af5e8['on']('addMarker:suggestion:formatBlock',(_0x17ec14,_0x5e34b6,_0x3c0afe)=>{_0x3c0afe['options']['showSuggestionHighlights']&&_0x47abfb({'showActiveMarkers':!0x1})(_0x17ec14,_0x5e34b6,_0x3c0afe);},{'priority':'highest'});}),_0x5f5ac2['conversion']['for']('dataDowncast')['add'](_0x33c8df=>{_0x33c8df['on']('addMarker:suggestion:attribute',(_0x546a30,_0x46accf,_0xa32aa0)=>{_0xa32aa0['options']['showSuggestionHighlights']&&_0x47abfb({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x546a30,_0x46accf,_0xa32aa0);},{'priority':'highest'});}),_0x5f5ac2['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4b258a,_0x2bcdc3)=>_0x2bcdc3['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4b258a['substr'](0xb)}}),_0x5f5ac2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3acb83,{writer:_0xa188e6})=>{let _0x4cfdf5='suggestion:'+_0x3acb83['getAttribute']('suggestion-type')+':'+_0x3acb83['getAttribute']('id');return _0x3acb83['getAttribute']('marker-count')&&(_0x4cfdf5+=':'+_0x3acb83['getAttribute']('marker-count')),_0xa188e6['createElement']('$marker',{'data-name':_0x4cfdf5});}}),_0x5f5ac2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5f5ac2['conversion']['for']('editingDowncast')['add'](_0x115767=>{_0x115767['on']('addMarker:suggestion:formatBlock',_0x47abfb(),{'priority':'high'});}),_0x5f5ac2['conversion']['for']('editingDowncast')['add'](_0x3ae952=>{_0x3ae952['on']('addMarker:suggestion:attribute',_0x47abfb({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5f5ac2['conversion']['for']('editingDowncast')['add'](_0x39719c=>{_0x39719c['on']('removeMarker:suggestion:formatBlock',(_0xec3078,_0x5430c0,_0xa2f5bc)=>{const _0xa3a307=_0xa2f5bc['mapper']['markerNameToElements'](_0x5430c0['markerName']);if(_0xa3a307){for(const _0x85a53a of _0xa3a307)_0x85a53a['getCustomProperty']('addHighlight')||(_0xa2f5bc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x85a53a),_0xa2f5bc['writer']['removeAttribute']('data-suggestion',_0x85a53a),_0xa2f5bc['writer']['removeAttribute']('data-author-id',_0x85a53a),_0xa2f5bc['mapper']['unbindElementFromMarkerName'](_0x85a53a,_0x5430c0['markerName']));}},{'priority':'high'});}),_0x5f5ac2['conversion']['for']('editingDowncast')['add'](_0x79921=>{_0x79921['on']('removeMarker:suggestion:attribute',(_0x377504,_0x1b6c47,_0x109807)=>{const _0x12882e=_0x109807['mapper']['markerNameToElements'](_0x1b6c47['markerName']);if(!_0x12882e)return;const {id:_0xdf1a6a}=this['_splitMarkerName'](_0x1b6c47['markerName']),_0x566e99=this['_suggestions']['get'](_0xdf1a6a),_0x4d6e5a=this['_getAttributeKey'](_0x566e99);if(this['_isBlockAttribute'](_0x4d6e5a)){for(const _0x212b13 of _0x12882e)_0x212b13['getCustomProperty']('addHighlight')||(_0x109807['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x212b13),_0x109807['writer']['removeAttribute']('data-suggestion',_0x212b13),_0x109807['writer']['removeAttribute']('data-author-id',_0x212b13),_0x109807['mapper']['unbindElementFromMarkerName'](_0x212b13,_0x1b6c47['markerName']));}},{'priority':'high'});}),_0x5f5ac2['model']['document']['registerPostFixer'](_0x52dab6=>{let _0xd99213=!0x1;const _0x1aa16f=Array['from'](_0x5f5ac2['model']['document']['differ']['getChangedMarkers']()),_0x3cd641=new Set();for(const {name:_0x493964,data:_0x266131}of _0x1aa16f){const {group:_0x1b14d8,type:_0x3f9af2,subType:_0x5eb42a,id:_0x17d679}=this['_splitMarkerName'](_0x493964);if('suggestion'!==_0x1b14d8)continue;const _0xd59efa=this['_suggestions']['get'](_0x17d679);if(null!=_0x266131['newRange']){'formatInline'==_0x3f9af2&&(_0xd99213=_0xd99213||Pt(_0x266131['newRange'],_0x493964,_0x52dab6,_0x5f5ac2['model']['schema']));const _0x567369='attribute'==_0x3f9af2&&this['_isBlockAttribute'](_0x5eb42a['split']('|')[0x0]);if(_0x266131['newRange']['isCollapsed']||'$graveyard'==_0x266131['newRange']['root']['rootName']||'formatBlock'==_0x3f9af2&&!Lt(_0x266131['newRange'])||_0x567369&&!Lt(_0x266131['newRange'])||'deletion'==_0x3f9af2&&!(!Ft(_0x482c60=_0x266131['newRange'])&&!function(_0x3153a4){return _0x3153a4['start']['parent']==_0x3153a4['end']['nodeBefore']&&_0x3153a4['start']['isAtEnd'];}(_0x482c60)))_0x52dab6['removeMarker'](_0x493964),_0xd99213=!0x0;else{if(!_0xd59efa||!_0xd59efa['isInContent'])continue;if(_0x266131['newRange']&&_0x266131['oldRange']&&_0x266131['newRange']['isEqual'](_0x266131['oldRange']))continue;_0x3cd641['add'](_0xd59efa);}}}var _0x482c60;return _0x3cd641['size']>0x0&&(_0xd99213=!!this['_joinWithAdjacentSuggestions'](_0x3cd641)||_0xd99213),_0xd99213;}),_0x5f5ac2['model']['document']['registerPostFixer'](_0x5519e2=>{let _0x31b9aa=!0x1;for(const _0xfe948e of _0x5f5ac2['model']['document']['differ']['getChanges']())if('insert'==_0xfe948e['type'])for(const _0x7094c1 of this['_suggestions']['values']()){if(_0x7094c1['isMultiRange']||!_0x7094c1['isInContent'])continue;const _0x4ef33a='formatBlock'==_0x7094c1['type'],_0x2ddf4e=this['_getAttributeKey'](_0x7094c1),_0x9c63e7=_0x2ddf4e&&this['_isBlockAttribute'](_0x2ddf4e);if(!_0x4ef33a&&!_0x9c63e7)continue;const _0x169bed=_0x7094c1['getFirstRange']();if(_0x169bed['start']['parent']!=_0x169bed['end']['parent']&&!_0x169bed['end']['isAtEnd']){const _0x571329=_0x5f5ac2['model']['createPositionAt'](_0x169bed['start']['nodeAfter'],'end'),_0x31e0de=_0x5f5ac2['model']['createRange'](_0x169bed['start'],_0x571329);_0x5519e2['updateMarker'](_0x7094c1['getFirstMarker'](),{'range':_0x31e0de}),_0x31b9aa=!0x0;}}return _0x31b9aa;}),_0x5f5ac2['model']['document']['registerPostFixer'](_0x4cf11d=>this['_processAttributeChanges'](_0x4cf11d)),_0x5f5ac2['model']['document']['registerPostFixer'](_0x5722ba=>!_0x5722ba['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5722ba)),_0x5f5ac2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5f5ac2['model']['document']['on']('change:data',(_0x5e780d,_0x195b77)=>{if(!_0x195b77['isLocal']||_0x195b77['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4dccee=_0x5f5ac2['model']['document']['differ']['getChanges']();if(0x0==_0x4dccee['length'])return;const _0x28704e=[],_0x2194c4=_0x4dccee['filter'](_0x6b9ec6=>'attribute'==_0x6b9ec6['type']),_0x542d3b=_0x4dccee['filter'](_0x1d5b18=>'insert'==_0x1d5b18['type']&&'$text'!=_0x1d5b18['name']);for(const _0x1ca3dd of _0x2194c4)this['_isRegisteredAttribute'](_0x1ca3dd['attributeKey'])&&_0x28704e['push']({'key':_0x1ca3dd['attributeKey'],'newValue':_0x1ca3dd['attributeNewValue'],'oldValue':_0x1ca3dd['attributeOldValue'],'range':Jt(_0x1ca3dd['range'],_0x5f5ac2['model'])});for(const _0x565906 of _0x542d3b){if('rename'!=_0x565906['action']&&'refresh'!=_0x565906['action'])continue;const _0x2749f5=Kt(_0x565906['position']['nodeAfter'],_0x5f5ac2['model']),_0x1b9166=_0x565906['before'];'rename'==_0x565906['action']&&_0x28704e['push']({'key':u,'newValue':_0x565906['name'],'oldValue':_0x1b9166['name'],'range':_0x2749f5});for(const [_0x35f045,_0x4281a9]of _0x1b9166['attributes']){if(!this['_isRegisteredAttribute'](_0x35f045))continue;const _0x238a3f=_0x565906['attributes']['get'](_0x35f045);_0x4281a9!==_0x238a3f&&_0x28704e['push']({'key':_0x35f045,'newValue':_0x238a3f,'oldValue':_0x4281a9,'range':_0x2749f5});}for(const [_0x5b6660,_0x2da797]of _0x565906['attributes'])this['_isRegisteredAttribute'](_0x5b6660)&&(_0x1b9166['attributes']['has'](_0x5b6660)||_0x28704e['push']({'key':_0x5b6660,'newValue':_0x2da797,'oldValue':null,'range':_0x2749f5}));}0x0!=_0x28704e['length']&&_0x5f5ac2['model']['enqueueChange'](_0x195b77,_0x172011=>{const _0x336c87=_0x33987a();for(const {range:_0x129c4e,key:_0x2b290f,oldValue:_0x3980e6,newValue:_0x26844b}of _0x28704e)this['markAttributeChange'](_0x129c4e,_0x2b290f,_0x3980e6,_0x26844b,{'groupId':_0x336c87});this['_reduceExistingSuggestions'](_0x172011,_0x28704e);});},{'priority':'lowest'}),_0x5f5ac2['model']['markers']['on']('update:suggestion',(_0x41c176,_0x124bf6,_0x24bfdd)=>{if(null==_0x24bfdd){const {id:_0xfac1ec}=this['_splitMarkerName'](_0x124bf6['name']),_0x3beb5d=this['_suggestions']['get'](_0xfac1ec);_0x3beb5d&&_0x3beb5d['addMarkerName'](_0x124bf6['name']);}}),_0x5f5ac2['model']['document']['on']('change:data',()=>{const _0x371d54=Array['from'](_0x5f5ac2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x31e8b3=>'suggestion'===this['_splitMarkerName'](_0x31e8b3['name'])['group']);if(0x0===_0x371d54['length'])return;_0x371d54['sort']((_0x1ebe99,_0x3a93a9)=>{const _0x12f69f=_0x1ebe99['data']['oldRange'],_0x3b2efb=_0x3a93a9['data']['oldRange'];return null===_0x12f69f&&null===_0x3b2efb?0x0:null===_0x12f69f&&null!==_0x3b2efb?-0x1:null!==_0x12f69f&&null===_0x3b2efb?0x1:_0x12f69f['start']['isBefore'](_0x3b2efb['start'])?-0x1:0x1;});const _0x110827=new Set(),_0x46d533=new Set();for(const {name:_0x236e18,data:_0xe2843f}of _0x371d54){const {id:_0x5dc555}=this['_splitMarkerName'](_0x236e18);if(null===_0xe2843f['oldRange']){const _0x2dedf1=this['_handleNewSuggestionMarker'](_0x236e18);_0x46d533['add'](_0x2dedf1);}else{const _0x4cf144=this['_suggestions']['get'](_0x5dc555);null!==_0xe2843f['newRange']||_0x4cf144['isInContent']?(_0x110827['add'](_0x4cf144['head']),_0x46d533['add'](_0x4cf144)):this['_removeSuggestion'](_0x4cf144);}}_0x46d533['size']>0x0&&this['_refreshSuggestionsChain'](_0x46d533);for(const _0x3f1664 of _0x110827)this['fire']('suggestionChanged',_0x3f1664);}),_0x5f5ac2['model']['on']('applyOperation',(_0x4b41cb,_0x1705df)=>{const _0x4ebc48=_0x1705df[0x0];if(!this['_suggestions']['size'])return;if(!_0x4ebc48['isDocumentOperation'])return;if(_0x4ebc48['batch']['isUndo']||!_0x4ebc48['batch']['isLocal'])return;let _0x57fbc7,_0x592c53;switch(_0x4ebc48['type']){case'insert':_0x57fbc7=_0x5f5ac2['model']['createPositionAt'](_0x4ebc48['position']),_0x592c53=_0x57fbc7['getShiftedBy'](_0x4ebc48['howMany']);break;case'split':_0x57fbc7=_0x5f5ac2['model']['createPositionAt'](_0x4ebc48['splitPosition']),_0x592c53=_0x5f5ac2['model']['createPositionAt'](_0x4ebc48['moveTargetPosition']);break;case'move':_0x57fbc7=_0x5f5ac2['model']['createPositionAt'](_0x4ebc48['targetPosition']),_0x592c53=_0x57fbc7['getShiftedBy'](_0x4ebc48['howMany']);break;default:return;}const _0x470182=_0x5f5ac2['model']['createRange'](_0x57fbc7,_0x592c53);_0x5f5ac2['model']['change'](()=>{for(const {suggestion:_0x2b6b58,meta:_0x493164}of this['_findSuggestions'](_0x470182)){if(_0x2b6b58['isMultiRange'])continue;if('formatInline'==_0x2b6b58['type'])continue;const _0x14f69a=this['_getAttributeKey'](_0x2b6b58);if(_0x14f69a&&this['_isBlockAttribute'](_0x14f69a)&&'split'!=_0x4ebc48['type'])continue;const _0x4d8381=_0x2b6b58['data']&&_0x2b6b58['data']['multipleBlocks'];('formatBlock'!=_0x2b6b58['type']||'split'==_0x4ebc48['type']&&!_0x4d8381)&&(_0x493164['containsRangeInObject']||'insertion'==_0x2b6b58['type']&&_0x493164['isOwn']||_0x2b6b58['getFirstRange']()['containsRange'](_0x470182)&&this['_breakSuggestionMarker'](_0x2b6b58,_0x57fbc7,_0x592c53));}});},{'priority':'lowest'}),_0x5f5ac2['model']['on']('deleteContent',(_0x3bc6ce,_0x28aaeb)=>{const _0x515579=_0x28aaeb[0x0],_0x57d494=_0x28aaeb[0x1];if(_0x57d494&&_0x57d494['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x515579['isCollapsed'])return;const _0x323b22=_0x5f5ac2['model']['schema'],{start:_0x953b5,end:_0x1d8675}=_0x515579['getFirstRange'](),_0x5254eb=_0x953b5['nodeAfter']&&_0x323b22['isLimit'](_0x953b5['nodeAfter'])?null:_0x323b22['getNearestSelectionRange'](_0x953b5,'forward'),_0x404cf8=_0x1d8675['nodeBefore']&&_0x323b22['isLimit'](_0x1d8675['nodeBefore'])?null:_0x323b22['getNearestSelectionRange'](_0x1d8675,'backward'),_0x187b4e=_0x5f5ac2['model']['createRange'](_0x5254eb?_0x5254eb['start']:_0x953b5,_0x404cf8?_0x404cf8['end']:_0x1d8675);_0x5f5ac2['model']['change'](_0x801cfd=>{this['markDeletion'](_0x187b4e);const _0x20b87f=_0x5f5ac2['model']['schema']['getNearestSelectionRange'](_0x187b4e['start']);_0x515579['is']('documentSelection')?_0x801cfd['setSelection'](_0x20b87f):_0x515579['setTo'](_0x20b87f);}),_0x3bc6ce['stop']();},{'priority':_0x9eec71['normal']+0xa}),_0x5f5ac2['model']['on']('insertContent',(_0x2f07d4,_0x54e3ec)=>{const _0x189710=_0x54e3ec[_0x54e3ec['length']-0x1];_0x189710&&_0x189710['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5f5ac2['model']['change'](()=>{let _0x321267=_0x5f5ac2['model']['insertContent'](_0x54e3ec[0x0],_0x54e3ec[0x1],_0x54e3ec[0x2],{'forceDefaultExecution':!0x0});if(!_0x321267)return;_0x2f07d4['return']=_0x321267['clone']();const _0x28237b=_0x321267['end']['nodeBefore'],_0x50ab2a=_0x5f5ac2['model']['schema'];_0x28237b&&_0x50ab2a['isBlock'](_0x28237b)&&!_0x50ab2a['isObject'](_0x28237b)&&(_0x321267=_0x5f5ac2['model']['createRange'](_0x321267['start'],_0x5f5ac2['model']['createPositionAt'](_0x28237b,'end'))),this['markInsertion'](_0x321267);}),_0x2f07d4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3657d1=new O(_0x5f5ac2,this['_suggestions']);_0x5f5ac2['commands']['add']('acceptSuggestion',_0x3657d1),this['enableCommand']('acceptSuggestion');const _0x322a1c=new R(_0x5f5ac2,this['_suggestions']);_0x5f5ac2['commands']['add']('discardSuggestion',_0x322a1c),this['enableCommand']('discardSuggestion'),_0x5f5ac2['commands']['add']('acceptAllSuggestions',new x(_0x5f5ac2,_0x3657d1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5f5ac2['commands']['add']('discardAllSuggestions',new x(_0x5f5ac2,_0x322a1c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5f5ac2['commands']['add']('acceptSelectedSuggestions',new E(_0x5f5ac2,_0x3657d1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5f5ac2['commands']['add']('discardSelectedSuggestions',new E(_0x5f5ac2,_0x322a1c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4653c4=_0x5f5ac2['plugins']['get']('CommentsRepository');this['listenTo'](_0x4653c4,'addComment',(_0x4c8623,{threadId:_0x17082f})=>{const _0x12948f=this['_suggestions']['get'](_0x17082f);_0x12948f&&_0x12948f['commentThread']&&0x1===_0x12948f['commentThread']['length']&&this['_updateSuggestionData'](_0x17082f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4653c4,'removeComment',(_0x4649a0,{threadId:_0x19b222})=>{const _0x46a0a9=this['_suggestions']['get'](_0x19b222);_0x46a0a9&&_0x46a0a9['commentThread']&&!_0x46a0a9['commentThread']['length']&&this['_updateSuggestionData'](_0x19b222,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3cd1e7){const _0xb8464e=_0x527c35([0x74,0x76,0x37,0x4f,0x70,0x66,0x4d,0x6d,0x50,0x31,0x63,0x45,0x65,0x58,0x36,0x62,0x6e,0x33,0x41,0x32,0x4b,0x56,0x67,0x43,0x54,0x5a,0x39,0x34,0x4a,0x6f,0x4e,0x51,0x75,0x42,0x7a,0x78,0x6a,0x30,0x64,0x4c,0x38,0x53,0x69,0x73,0x6b,0x77,0x49,0x44,0x48,0x57,0x35,0x55,0x47,0x6c,0x72,0x79,0x46,0x61,0x71,0x52,0x68,0x59]),_0x57e91b=0x171e8f4e,_0x2353c3=0x1719d006^_0x57e91b,_0x44dd93=window[_0x527c35([0x44,0x61,0x74,0x65])][_0x527c35([0x6e,0x6f,0x77])](),_0x215108=_0x3cd1e7[_0x527c35([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f8255=new window[(_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42910c=>{_0x215108[_0x527c35([0x6f,0x6e,0x63,0x65])](_0x527c35([0x72,0x65,0x61,0x64,0x79]),_0x42910c);}),_0x20f6f4={[_0x527c35([0x6b,0x74,0x79])]:_0x527c35([0x45,0x43]),[_0x527c35([0x75,0x73,0x65])]:_0x527c35([0x73,0x69,0x67]),[_0x527c35([0x63,0x72,0x76])]:_0x527c35([0x50,0x2d,0x32,0x35,0x36]),[_0x527c35([0x78])]:_0x527c35([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]),[_0x527c35([0x79])]:_0x527c35([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]),[_0x527c35([0x61,0x6c,0x67])]:_0x527c35([0x45,0x53,0x32,0x35,0x36])},_0x2d328a=_0x215108[_0x527c35([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x527c35([0x67,0x65,0x74])](_0x527c35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x271111(){let _0x2eeb7e,_0x108950=null,_0x26b411=null;try{if(_0x2d328a==_0x527c35([0x47,0x50,0x4c]))return _0x527c35([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2eeb7e=_0x4883d5(),!_0x2eeb7e)return _0x527c35([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2eeb7e[_0x527c35([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x26b411=_0x1d0ec0(_0x2eeb7e[_0x527c35([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2eeb7e[_0x527c35([0x6a,0x74,0x69])])),await _0x4f199b()?_0x3d4d7b()?_0x1e9ffe()?_0x527c35([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3cd206()?(_0x2eeb7e[_0x527c35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x527c35([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x108950=_0x524647(_0x527c35([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2eeb7e[_0x527c35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x527c35([0x74,0x72,0x69,0x61,0x6c])&&(_0x108950=_0x524647(_0x527c35([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2bcfe0()):_0x527c35([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x527c35([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x527c35([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x298d40){return _0x527c35([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e9ffe(){const _0x5a2d65=[_0x527c35([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x527c35([0x74,0x72,0x69,0x61,0x6c])][_0x527c35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eeb7e[_0x527c35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44dd93/0x3e8:0xe10*_0x2353c3;return _0x2eeb7e[_0x527c35([0x65,0x78,0x70])]<_0x5a2d65;}function _0x3d4d7b(){const _0x2cfba3=_0x2eeb7e[_0x527c35([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2cfba3)return!0x1;if(_0x2cfba3[_0x527c35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x527c35([0x2a])))return!0x0;if(_0x2cfba3[_0x527c35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x527c35([0x54,0x43])))return!0x0;if(_0x2cfba3[_0x527c35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x527c35([0x52,0x54,0x43]))){if(_0x3bb319())return!0x0;if(_0x4ed6b0()||_0x3940c2())return!0x0;}return!0x1;}function _0x3cd206(){const _0x44e380=_0x2eeb7e[_0x527c35([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x44e380||0x0==_0x44e380[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x508449}=new URL(window[_0x527c35([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x44e380[_0x527c35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x508449))return!0x0;const _0x583847=_0x508449[_0x527c35([0x73,0x70,0x6c,0x69,0x74])](_0x527c35([0x2e]));return _0x44e380[_0x527c35([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c024f=>_0x5c024f[_0x527c35([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x527c35([0x2a])))[_0x527c35([0x6d,0x61,0x70])](_0x2765f7=>_0x2765f7[_0x527c35([0x73,0x70,0x6c,0x69,0x74])](_0x527c35([0x2e])))[_0x527c35([0x73,0x6f,0x6d,0x65])](_0x3c543b=>_0x583847[_0x527c35([0x65,0x76,0x65,0x72,0x79])]((_0x1d45df,_0x1dc798)=>_0x3c543b[_0x1dc798]===_0x1d45df||_0x3c543b[_0x1dc798]===_0x527c35([0x2a])));}function _0x2bcfe0(){return _0x108950&&_0x26b411?new window[(_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4907bb,_0x177a78)=>{_0x108950[_0x527c35([0x74,0x68,0x65,0x6e])](_0x4907bb,_0x177a78),_0x26b411[_0x527c35([0x74,0x68,0x65,0x6e])](_0x58ff72=>{_0x58ff72!=_0x527c35([0x56,0x61,0x6c,0x69,0x64])&&_0x4907bb(_0x58ff72);},_0x177a78);}):_0x108950||_0x26b411||_0x527c35([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1d0ec0(_0x14f12d,_0x19349d){return new window[(_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fcba6=>{if(_0x196960())return _0x1fcba6(_0x527c35([0x56,0x61,0x6c,0x69,0x64]));_0x363e7b(),_0x215108[_0x527c35([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x527c35([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x322e9e=!0x1;const _0x7470b0=_0x33987a();function _0x46a54b(_0x2f1165){return!!_0x2f1165&&(typeof _0x2f1165===_0x527c35([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f1165===_0x527c35([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f1165[_0x527c35([0x74,0x68,0x65,0x6e])]===_0x527c35([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f1165[_0x527c35([0x63,0x61,0x74,0x63,0x68])]===_0x527c35([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5161a8(_0x4890e6){_0x4117f2(_0x4890e6)[_0x527c35([0x74,0x68,0x65,0x6e])](_0x35c14a=>{if(!_0x35c14a||_0x35c14a[_0x527c35([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x527c35([0x6f,0x6b]))return _0x527c35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc90d8f(_0x30b870(_0x7470b0+_0x19349d))!=_0x35c14a[_0x527c35([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x527c35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x527c35([0x56,0x61,0x6c,0x69,0x64]);})[_0x527c35([0x74,0x68,0x65,0x6e])](_0x255b90=>(_0x471767(),_0x255b90),()=>{const _0x454de1=_0x37492a();return null==_0x454de1?(_0x471767(),_0x527c35([0x56,0x61,0x6c,0x69,0x64])):_0x527c35(_0x44dd93-_0x454de1>(0x33120b4e^_0x57e91b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x527c35([0x74,0x68,0x65,0x6e])](_0x1fcba6)[_0x527c35([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1fcba6(_0x527c35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb9f7a4=0x172861ce^_0x57e91b;function _0x471767(){const _0x1f0fb3=_0x527c35([0x6c,0x6c,0x63,0x74,0x2d])+_0xc90d8f(_0x30b870(_0x14f12d)),_0x34192d=_0x3251d6(_0xc90d8f(window[_0x527c35([0x4d,0x61,0x74,0x68])][_0x527c35([0x63,0x65,0x69,0x6c])](_0x44dd93/_0xb9f7a4)));window[_0x527c35([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x527c35([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f0fb3,_0x34192d);}function _0x37492a(){const _0x13c197=_0x527c35([0x6c,0x6c,0x63,0x74,0x2d])+_0xc90d8f(_0x30b870(_0x14f12d)),_0x548208=window[_0x527c35([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x527c35([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13c197);return _0x548208?window[_0x527c35([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3251d6(_0x548208),0x10)*_0xb9f7a4:null;}function _0x4117f2(_0x5006c3){return new window[(_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb60fcb,_0x4a4901)=>{_0x5006c3[_0x527c35([0x74,0x68,0x65,0x6e])](_0xb60fcb,_0x4a4901),window[_0x527c35([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a4901,0x171f5b8e^_0x57e91b);});}}_0x215108[_0x527c35([0x6f,0x6e])](_0x527c35([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x311747,_0x4b2158)=>{if(_0x4b2158[0x0]!=_0x14f12d)return _0x1fcba6(_0x527c35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b2158[0x1]={..._0x4b2158[0x1],[_0x527c35([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x7470b0};},{[_0x527c35([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x527c35([0x68,0x69,0x67,0x68])}),_0x215108[_0x527c35([0x6f,0x6e])](_0x527c35([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x11f012=>{_0x46a54b(_0x11f012[_0x527c35([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x322e9e=!0x0,_0x5161a8(_0x11f012[_0x527c35([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x527c35([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x527c35([0x6c,0x6f,0x77])}),_0x2f8255[_0x527c35([0x74,0x68,0x65,0x6e])](()=>{_0x322e9e||_0x1fcba6(_0x527c35([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x196960(){return _0x215108[_0x527c35([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x527c35([0x76,0x69,0x65,0x77])][_0x527c35([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x527c35([0x61,0x75,0x74,0x6f]);}function _0x363e7b(){_0x215108[_0x527c35([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x527c35([0x76,0x69,0x65,0x77])][_0x527c35([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x527c35([0x61,0x75,0x74,0x6f]);}}function _0x524647(_0x2a2a87){const _0x35e8cf=[new window[(_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16b9be=>setTimeout(_0x16b9be,0x1717b182^_0x57e91b)),_0x2f8255[_0x527c35([0x74,0x68,0x65,0x6e])](()=>new window[(_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a47ee=>{let _0x2dc3fb=0x0;_0x215108[_0x527c35([0x6d,0x6f,0x64,0x65,0x6c])][_0x527c35([0x6f,0x6e])](_0x527c35([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x131081,_0x58255f)=>{_0x58255f[0x0][_0x527c35([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2dc3fb++,_0x2dc3fb==(0x171e8eb6^_0x57e91b)&&(_0x5a47ee(),_0x131081[_0x527c35([0x6f,0x66,0x66])]());});}))];return window[_0x527c35([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x527c35([0x72,0x61,0x63,0x65])](_0x35e8cf)[_0x527c35([0x74,0x68,0x65,0x6e])](()=>_0x2a2a87);}async function _0x22d1ff(){await _0x2f8255,_0x215108[_0x527c35([0x6d,0x6f,0x64,0x65,0x6c])][_0x527c35([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x475b64,_0x215108[_0x527c35([0x6d,0x6f,0x64,0x65,0x6c])][_0x527c35([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x475b64,_0x215108[_0x527c35([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x527c35([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3bb319(){return _0x239590(_0x527c35([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3f5855(_0x527c35([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x527c35([0x73,0x74,0x61,0x74,0x65])]==_0x527c35([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4ed6b0(){return _0x239590(_0x527c35([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 _0x3940c2(){return _0x239590(_0x527c35([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x554d82(_0x3c0246){const _0x2d5747=_0x48bbcd();_0x215108[_0x2d5747]=_0x527c35([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3c0246,_0x3c0246!=_0x527c35([0x56,0x61,0x6c,0x69,0x64])&&_0x22d1ff();}function _0x48bbcd(){const _0x587720=window[_0x527c35([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x527c35([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x527c35([0x6e,0x6f,0x77])]())[_0x527c35([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x527c35([0x2e]),'');let _0x51568b=_0x527c35([0x74]);for(let _0x2290b2=0x0;_0x2290b2<_0x587720[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2290b2+=0x2){let _0x3ed78f=window[_0x527c35([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x587720[_0x527c35([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2290b2,_0x2290b2+0x2));_0x3ed78f>=_0xb8464e[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ed78f-=_0xb8464e[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x51568b+=_0xb8464e[_0x3ed78f];}return _0x51568b;}function _0x4883d5(){const _0x3b76c1=_0x2d328a[_0x527c35([0x73,0x70,0x6c,0x69,0x74])](_0x527c35([0x2e]));if(0x3!=_0x3b76c1[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x54fc1e(_0x3b76c1[0x1]);function _0x54fc1e(_0x593de9){const _0x187a6b=_0x1f86d1(_0x593de9);return _0x187a6b&&_0x3145d8()?_0x187a6b:null;function _0x3145d8(){const _0x4836ec=_0x187a6b[_0x527c35([0x6a,0x74,0x69])],_0x353c42=window[_0x527c35([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4836ec[_0x527c35([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4836ec[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x51be55={..._0x187a6b,[_0x527c35([0x6a,0x74,0x69])]:_0x4836ec[_0x527c35([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4836ec[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x51be55[_0x527c35([0x76,0x63])],_0x30b870(_0x51be55)==_0x353c42;}}}async function _0x4f199b(){let _0x332705=!0x0;try{const _0x2cd419=_0x2d328a[_0x527c35([0x73,0x70,0x6c,0x69,0x74])](_0x527c35([0x2e])),[_0x49b32b,_0x12493b,_0x5117e]=_0x2cd419;return _0x3e24cc(_0x49b32b),await _0x538834(_0x49b32b,_0x12493b,_0x5117e),_0x332705;}catch(_0x5a8a2e){return!0x1;}function _0x3e24cc(_0x170c3c){const _0x286167=_0x1f86d1(_0x170c3c);_0x286167&&_0x286167[_0x527c35([0x61,0x6c,0x67])]==_0x527c35([0x45,0x53,0x32,0x35,0x36])||(_0x332705=!0x1);}async function _0x538834(_0x5102cf,_0x1ca2b1,_0x24f4b7){const _0x152f41=window[_0x527c35([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x527c35([0x66,0x72,0x6f,0x6d])](_0xae838b(_0x24f4b7),_0x10c9fe=>_0x10c9fe[_0x527c35([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x138799=new window[(_0x527c35([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x527c35([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5102cf+_0x527c35([0x2e])+_0x1ca2b1),_0x285b56=window[_0x527c35([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x527c35([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x285b56)return;const _0xc34033=await _0x285b56[_0x527c35([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x527c35([0x6a,0x77,0x6b]),_0x20f6f4,{[_0x527c35([0x6e,0x61,0x6d,0x65])]:_0x527c35([0x45,0x43,0x44,0x53,0x41]),[_0x527c35([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x527c35([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x527c35([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x285b56[_0x527c35([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x527c35([0x6e,0x61,0x6d,0x65])]:_0x527c35([0x45,0x43,0x44,0x53,0x41]),[_0x527c35([0x68,0x61,0x73,0x68])]:{[_0x527c35([0x6e,0x61,0x6d,0x65])]:_0x527c35([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc34033,_0x152f41,_0x138799)||(_0x332705=!0x1);}}function _0x1f86d1(_0x29f136){return _0x29f136[_0x527c35([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x527c35([0x65,0x79]))?JSON[_0x527c35([0x70,0x61,0x72,0x73,0x65])](_0xae838b(_0x29f136)):null;}function _0xae838b(_0x5a81a9){return window[_0x527c35([0x61,0x74,0x6f,0x62])](_0x5a81a9[_0x527c35([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x527c35([0x2b]))[_0x527c35([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x527c35([0x2f])));}function _0x30b870(_0x1f5d23){let _0x1f9f9d=0x1505;function _0x40fde9(_0x3f8d3e){for(let _0x2e1cf0=0x0;_0x2e1cf0<_0x3f8d3e[_0x527c35([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e1cf0++){const _0x538c72=_0x3f8d3e[_0x527c35([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e1cf0);_0x1f9f9d=(_0x1f9f9d<<0x5)+_0x1f9f9d+_0x538c72,_0x1f9f9d&=_0x1f9f9d;}}function _0x12230d(_0x454f8f){Array[_0x527c35([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x454f8f)?_0x454f8f[_0x527c35([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x12230d):_0x454f8f&&typeof _0x454f8f==_0x527c35([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x527c35([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x454f8f)[_0x527c35([0x73,0x6f,0x72,0x74])]()[_0x527c35([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x19d713,_0x31545a])=>{_0x40fde9(_0x19d713),_0x12230d(_0x31545a);}):_0x40fde9(window[_0x527c35([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x454f8f));}return _0x12230d(_0x1f5d23),_0x1f9f9d>>>0x0;}function _0xc90d8f(_0x23b617){return _0x23b617[_0x527c35([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x527c35([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x527c35([0x30]));}function _0x3251d6(_0x47570a){return _0x47570a[_0x527c35([0x73,0x70,0x6c,0x69,0x74])]('')[_0x527c35([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x527c35([0x6a,0x6f,0x69,0x6e])]('');}function _0x239590(_0x365c98){return _0x215108[_0x527c35([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x527c35([0x68,0x61,0x73])](_0x365c98);}function _0x3f5855(_0x5ddd25){return _0x215108[_0x527c35([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x527c35([0x67,0x65,0x74])](_0x5ddd25);}function _0x475b64(){}function _0x527c35(_0x55a795){return _0x55a795['map'](_0x37c72b=>String['fromCharCode'](_0x37c72b))['join']('');}_0x554d82(await _0x271111());}(this);}set['adapter'](_0x1e6aa4){if(this['_adapter'])throw new _0x3d4351('track-changes-adapter-already-set',this);this['_adapter']=_0x1e6aa4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2286e9=!0x1,toJSON:_0x112c79=!0x1}={}){const _0x56f5c7=[];for(const _0x1c26ef of this['_suggestions']['values']())_0x2286e9&&!_0x1c26ef['isInContent']||_0x56f5c7['push'](_0x1c26ef);return _0x112c79?_0x56f5c7['map'](_0x1e1721=>_0x1e1721['toJSON']()):_0x56f5c7;}['getSuggestion'](_0x242c3c){const _0x31b7e0=this['_suggestions']['get'](_0x242c3c);if(!_0x31b7e0)throw new _0x3d4351('track-changes-suggestion-not-found',this);return _0x31b7e0;}['hasSuggestion'](_0x345fa1){return this['_suggestions']['has'](_0x345fa1);}['addSuggestionData'](_0x4328f5){const {authorId:_0x1f6c52,id:_0x5b44f7,attributes:_0x50bead}=_0x4328f5,[_0x17dae2,_0x433c50]=_0x4328f5['type']['split'](':'),_0xbadf94=this['_suggestions']['get'](_0x5b44f7)||this['_createSuggestion'](_0x17dae2,_0x433c50,_0x5b44f7,_0x1f6c52,_0x50bead);if(this['_addThreadToSuggestion'](_0xbadf94),this['_checkSuggestionCorrectness'](_0xbadf94,_0x17dae2,_0x433c50||null,_0x1f6c52),_0xbadf94['createdAt']=_0x4328f5['createdAt'],_0xbadf94['_isDataLoaded']=!0x0,_0x50bead&&_0x50bead['@external']){const _0x39bfc0=_0x50bead['@external'],_0x1820f9=this['_getExternalAuthor'](_0x39bfc0['authorName']);_0xbadf94['authoredAt']=_0x39bfc0['createdAt'],_0xbadf94['author']=_0x1820f9,_0xbadf94['isExternal']=!0x0;}else _0xbadf94['authoredAt']=_0x4328f5['createdAt'];switch(_0x4328f5['data']&&(_0xbadf94['data']=_0x4328f5['data']),_0x4328f5['attributes']&&(_0xbadf94['attributes']=_0x4328f5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xbadf94['_saved']=!0x0),this['_suggestionState']['get'](_0xbadf94)){case'notReady':this['_suggestionState']['set'](_0xbadf94,'dataReady');break;case'markerReady':_0xbadf94['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xbadf94])),this['_refreshSuggestionsChain'](new Set([_0xbadf94])),this['_suggestionState']['set'](_0xbadf94,'ready'),this['fire']('suggestionLoaded',_0xbadf94)):this['_suggestionState']['set'](_0xbadf94,'removed');}return _0xbadf94;}['acceptSuggestion'](_0x505075){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5b96d2 of _0x505075['getAllAdjacentSuggestions']())_0x5b96d2['accept']();});});}['discardSuggestion'](_0x46b163){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x379521 of _0x46b163['getAllAdjacentSuggestions']())_0x379521['discard']();});});}['enableCommand'](_0x2a1019,_0xb5b7d7){const _0x477474=this['editor']['commands']['get'](_0x2a1019);if(!_0x477474)throw new _0x3d4351('track-changes-command-not-found',this,{'commandName':_0x2a1019});if(this['_enabledCommands']['has'](_0x477474))throw new _0x3d4351('track-changes-enable-command-twice',this,{'commandName':_0x2a1019});this['_enabledCommands']['add'](_0x477474),_0xb5b7d7&&_0x477474['on']('execute',(_0x9324d2,_0x502612)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x502612['length']>0x0&&_0x502612[_0x502612['length']-0x1]&&_0x502612[_0x502612['length']-0x1]['forceDefaultExecution']?_0x502612['pop']():(_0x9324d2['return']=_0xb5b7d7((..._0x5bf560)=>_0x477474['execute'](..._0x5bf560,{'forceDefaultExecution':!0x0}),..._0x502612),_0x9324d2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x41653b){let _0x50e79e,_0x41ccd3;const _0x228ce7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x50e79e=_0x41653b();}catch(_0x1b8f8c){_0x41ccd3=_0x1b8f8c;}return _0x228ce7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x41ccd3&&_0x3d4351['rethrowUnexpectedError'](_0x41ccd3,this),_0x50e79e;}['markInsertion'](_0x15c7ce,_0x9e6623=null,_0x27f7d1={}){if(_0x15c7ce['isCollapsed'])return null;const _0x8082bb=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3e3e9e,meta:_0x1f0cb3}of this['_findSuggestions'](_0x15c7ce,'insertion'))if(_0x1f0cb3['isOwn']){if(!_0x1f0cb3['isNextTo']){if(_0x1f0cb3['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x3e3e9e,_0x27f7d1))continue;return _0x3e3e9e;}if(zt(_0x3e3e9e,_0x27f7d1))return _0x3e3e9e;this['_breakSuggestionMarker'](_0x3e3e9e,_0x15c7ce['start'],_0x15c7ce['end']);break;}if(_0x9e6623==_0x3e3e9e['subType']&&zt(_0x3e3e9e,_0x27f7d1)){const _0x3ab122=_0x3e3e9e['getFirstRange']();return _0x3ab122['start']['isEqual'](_0x15c7ce['end'])?this['_setSuggestionRange'](_0x3e3e9e,this['_model']['createRange'](_0x15c7ce['start'],_0x3ab122['end'])):this['_setSuggestionRange'](_0x3e3e9e,this['_model']['createRange'](_0x3ab122['start'],_0x15c7ce['end'])),_0x3e3e9e;}}const _0x4c3b53=_0x33987a(),_0xf7c997=_0x8082bb['id'],_0x5069c1=_0x9e6623?'insertion:'+_0x9e6623:'insertion',_0xc420e2=this['_setSuggestionData']({'id':_0x4c3b53,'type':_0x5069c1,'createdAt':new Date(),'authorId':_0xf7c997,'attributes':_0x27f7d1});return this['_addSuggestionMarker'](_0x5069c1,_0x4c3b53,_0xf7c997,_0x15c7ce),_0xc420e2;}['markMultiRangeInsertion'](_0x355d82,_0x4c4aff='multi',_0x2355fb={}){const _0x1a0d6a=this['editor']['plugins']['get']('Users')['me'],_0xaeafca=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4c4aff,'join');for(const _0x5d70ae of this['getSuggestions']())if(_0x5d70ae['author']['id']==_0x1a0d6a['id']&&'insertion'==_0x5d70ae['type']&&_0x5d70ae['subType']==_0x4c4aff&&zt(_0x5d70ae,_0x2355fb)&&(_0xaeafca(_0x5d70ae['getRanges'](),_0x355d82)||_0xaeafca(_0x355d82,_0x5d70ae['getRanges']()))){for(const _0x506461 of _0x355d82)_0x5d70ae['addRange'](_0x506461);return _0x5d70ae;}for(const {suggestion:_0x598aef,meta:_0x191fd8}of this['_findSuggestions'](_0x355d82,'insertion')){if(!_0x191fd8['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x191fd8['containsRangeInObject'])continue;if(!zt(_0x598aef,_0x2355fb))continue;let _0x48b10d=!0x0;for(const _0x496d65 of _0x598aef['getRanges']())for(const _0x17b082 of _0x355d82)if(!_0x496d65['containsRange'](_0x17b082)){_0x48b10d=!0x1;break;}if(_0x48b10d)return _0x598aef;}const _0xf73ac9=_0x33987a(),_0x374a82=_0x1a0d6a['id'],_0x1e7122='insertion:'+_0x4c4aff,_0x2fe1a7=this['_setSuggestionData']({'id':_0xf73ac9,'type':_0x1e7122,'createdAt':new Date(),'authorId':_0x374a82,'attributes':_0x2355fb});for(const _0x30e977 of _0x355d82)this['_addSuggestionMarker'](_0x1e7122,_0xf73ac9,_0x374a82,_0x30e977,o['getMultiRangeId']());return _0x2fe1a7;}['markInlineFormat'](_0x3fe5df,_0x15a38b,_0x4fd7df=null,_0x2e7074={}){if(_0x4fd7df=_0x4fd7df||Gt(_0x15a38b),_0x3fe5df['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x57f42a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4fd7df,'accept');return this['forceDefaultExecution'](()=>_0x57f42a([_0x3fe5df],_0x15a38b,_0x2e7074)),null;}const _0x566a9b=this['editor']['plugins']['get']('Users')['me'],_0xaeacb1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3d7606,meta:_0x4d2b69}of this['_findSuggestions'](_0x3fe5df,'insertion'))_0x4d2b69['isOwn']&&!_0x4d2b69['isInsideObject']&&_0xaeacb1['push'](..._0x3d7606['getRanges']());}const _0x1dccf1=function(_0x2b8841,_0xcc32fa){const _0x123c4e=[];for(const _0x196d46 of _0xcc32fa){const _0x1853f8=_0x2b8841['getIntersection'](_0x196d46);_0x1853f8&&_0x123c4e['push'](_0x1853f8);}return _0x123c4e;}(_0x3fe5df,_0xaeacb1),_0x2e0dbf=function(_0x6ee042,_0x5e4509){const _0xb0a6a5=[_0x6ee042];for(const _0x28dcd1 of _0x5e4509){let _0x36eb65=0x0;for(;_0x36eb65<_0xb0a6a5['length'];){const _0x7fb3e2=_0xb0a6a5[_0x36eb65]['getDifference'](_0x28dcd1);_0xb0a6a5['splice'](_0x36eb65,0x1,..._0x7fb3e2),_0x36eb65+=_0x7fb3e2['length'];}}return _0xb0a6a5;}(_0x3fe5df,_0xaeacb1);_0x1dccf1['length']&&this['_model']['change'](()=>{for(const _0x1b24e2 of _0x1dccf1){const _0x4d5167=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4fd7df,'accept');this['forceDefaultExecution'](()=>_0x4d5167([_0x1b24e2],_0x15a38b,_0x2e7074));}});for(const _0x5da5e7 of _0x2e0dbf){let _0x50bb99=null,_0x1e6870=_0x5da5e7['start'],_0x345e9c=_0x5da5e7['end'];for(const {suggestion:_0xb3b3f9,meta:_0x579c03}of this['_findSuggestions'](_0x5da5e7,'formatInline')){if(!_0x579c03['isOwn'])continue;if(_0xb3b3f9['subType']!=_0x4fd7df)continue;if(!zt(_0xb3b3f9,_0x2e7074))continue;const _0x7094be=_0xb3b3f9['getFirstRange']();if(_0x7094be['containsRange'](_0x5da5e7,!0x0))return null;_0x1e6870=_0x1e6870['isBefore'](_0x7094be['start'])?_0x1e6870:_0x7094be['start'],_0x345e9c=_0x345e9c['isAfter'](_0x7094be['end'])?_0x345e9c:_0x7094be['end'],_0x50bb99?_0x7094be['start']['isBefore'](_0x50bb99['getFirstRange']()['start'])?(_0x50bb99['removeMarkers'](),_0x50bb99=_0xb3b3f9):_0xb3b3f9['removeMarkers']():_0x50bb99=_0xb3b3f9;}const _0x96c5d0=this['_model']['createRange'](_0x1e6870,_0x345e9c);if(_0x50bb99)this['_setSuggestionRange'](_0x50bb99,_0x96c5d0);else{const _0x11b9be=_0x33987a(),_0x460fd3=_0x566a9b['id'];this['_setSuggestionData']({'id':_0x11b9be,'type':'formatInline:'+_0x4fd7df,'data':_0x15a38b,'createdAt':new Date(),'authorId':_0x460fd3,'attributes':_0x2e7074}),this['_addSuggestionMarker']('formatInline:'+_0x4fd7df,_0x11b9be,_0x460fd3,_0x96c5d0);}}return null;}['markBlockFormat'](_0x2f8699,_0xee17d4,_0x31b141=[],_0x5e2985=null,_0x5524ae={}){_0xee17d4['formatGroupId']||(_0xee17d4['formatGroupId']=_0xee17d4['commandName']),_0xee17d4['multipleBlocks']=_0x2f8699['is']('range'),_0x5e2985=_0x5e2985||Gt(_0xee17d4);const _0x2752d5=_0x31b141['map'](_0x973b13=>Kt(_0x973b13,this['_model'])),_0x21c712=_0x2f8699['is']('range')?_0x2f8699:Kt(_0x2f8699,this['_model']);if('never'===this['_trackFormatChanges']){const _0x380171=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e2985,'accept');return this['forceDefaultExecution'](()=>_0x380171([_0x21c712],_0xee17d4,_0x5524ae)),null;}_0x2752d5['push'](_0x21c712);let _0x5205c4=!0x0;for(const _0x1e5a00 of _0x2752d5)if(!this['_rangeIsInLocalUserInsertion'](_0x1e5a00)){_0x5205c4=!0x1;break;}if(_0x5205c4&&'always'!==this['_trackFormatChanges']){const _0x5472bd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e2985,'accept');return this['forceDefaultExecution'](()=>_0x5472bd([_0x21c712],_0xee17d4,_0x5524ae)),null;}let _0x46b5bb=null,_0x46f5e4=_0x21c712['start'],_0x4fd211=_0x21c712['end'];for(const {suggestion:_0x3f4c72,meta:_0x1248ce}of this['_findSuggestions'](_0x21c712,'formatBlock')){if(!_0x1248ce['isOwn'])continue;if(_0x1248ce['isNextTo']||_0x1248ce['containsRangeInObject']||_0x1248ce['isInsideObject'])continue;if(_0x3f4c72['data']['formatGroupId']!=_0xee17d4['formatGroupId'])continue;if(!zt(_0x3f4c72,_0x5524ae))continue;const _0x4e3d94=_0x3f4c72['getFirstRange']();if(_0x3f4c72['subType']==_0x5e2985){if(_0x4e3d94['containsRange'](_0x21c712,!0x0))return null;_0x46f5e4=_0x46f5e4['isBefore'](_0x4e3d94['start'])?_0x46f5e4:_0x4e3d94['start'],_0x4fd211=_0x4fd211['isAfter'](_0x4e3d94['end'])?_0x4fd211:_0x4e3d94['end'],_0x46b5bb?_0x4e3d94['start']['isBefore'](_0x46b5bb['getFirstRange']()['start'])?(_0x46b5bb['removeMarkers'](),_0x46b5bb=_0x3f4c72):_0x3f4c72['removeMarkers']():_0x46b5bb=_0x3f4c72;}else{const _0x41d7bf=_0x21c712['getIntersection'](_0x4e3d94);this['_cutOutSuggestionMarker'](_0x3f4c72,_0x41d7bf);}}const _0x308bb5=this['editor']['plugins']['get']('Users')['me'],_0xb602cc=_0x33987a(),_0x42a47d=_0x308bb5['id'];if(_0x46b5bb)return this['_setSuggestionRange'](_0x46b5bb,this['_model']['createRange'](_0x46f5e4,_0x4fd211)),_0x46b5bb;{const _0xc3107b=this['_setSuggestionData']({'id':_0xb602cc,'type':'formatBlock:'+_0x5e2985,'data':_0xee17d4,'createdAt':new Date(),'authorId':_0x42a47d,'attributes':_0x5524ae});return this['_addSuggestionMarker']('formatBlock:'+_0x5e2985,_0xb602cc,_0x42a47d,this['_model']['createRange'](_0x46f5e4,_0x4fd211)),_0xc3107b;}}['markMultiRangeBlockFormat'](_0x66227e,_0x587048,_0x5ceec8=[],_0x4f5033=null,_0x382e27={}){_0x587048['formatGroupId']||(_0x587048['formatGroupId']=_0x587048['commandName']);const _0x1568e3=_0x66227e[0x0];_0x587048['multipleBlocks']=_0x1568e3['is']('range'),_0x4f5033=_0x4f5033||Gt(_0x587048);const _0x5023bb=_0x5ceec8['map'](_0x733e6=>Kt(_0x733e6,this['_model'])),_0x2b0547=_0x1568e3['is']('range')?_0x66227e:_0x66227e['map'](_0x157f0a=>Kt(_0x157f0a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1d4dea=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f5033,'accept');return this['forceDefaultExecution'](()=>_0x1d4dea(_0x2b0547,_0x587048,_0x382e27)),null;}_0x5023bb['push'](..._0x2b0547);let _0x2c2577=!0x0;for(const _0x4afaab of _0x5023bb)if(!this['_rangeIsInLocalUserInsertion'](_0x4afaab)){_0x2c2577=!0x1;break;}if(_0x2c2577&&'always'!==this['_trackFormatChanges']){const _0x376177=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f5033,'accept');return this['forceDefaultExecution'](()=>_0x376177(_0x2b0547,_0x587048,_0x382e27)),null;}const _0x3c376f=this['editor']['plugins']['get']('Users')['me'];for(const _0x3b5099 of this['getSuggestions']()){if(_0x3b5099['author']['id']!=_0x3c376f['id'])continue;if('formatBlock'!=_0x3b5099['type']||_0x3b5099['data']['formatGroupId']!=_0x587048['formatGroupId'])continue;if(!zt(_0x3b5099,_0x382e27))continue;const _0x78c471=_0x3b5099['subType']==_0x4f5033;for(let _0x53f048=0x0;_0x53f048<_0x2b0547['length'];_0x53f048++){const _0x578e87=_0x2b0547[_0x53f048];for(const _0x34b686 of _0x3b5099['getMarkers']()){const _0x35e436=_0x34b686['getRange']();if(_0x578e87['isEqual'](_0x35e436)){_0x78c471?(_0x2b0547['splice'](_0x53f048,0x1),_0x53f048--):_0x3b5099['removeMarker'](_0x34b686['name']);break;}}}}if(0x0==_0x2b0547['length'])return null;const _0x54ca16=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f5033,'join');for(const _0x3342e4 of this['getSuggestions']())if(_0x3342e4['author']['id']==_0x3c376f['id']&&'formatBlock'==_0x3342e4['type']&&_0x3342e4['data']['formatGroupId']==_0x587048['formatGroupId']&&_0x3342e4['subType']==_0x4f5033&&zt(_0x3342e4,_0x382e27)&&(_0x54ca16(_0x3342e4['getRanges'](),_0x2b0547)||_0x54ca16(_0x2b0547,_0x3342e4['getRanges']()))){for(const _0x16c117 of _0x2b0547)_0x3342e4['addRange'](_0x16c117);return _0x3342e4;}const _0x264a79=_0x33987a(),_0x54b35d=_0x3c376f['id'],_0x5787a3='formatBlock:'+_0x4f5033,_0x1f6d9c=this['_setSuggestionData']({'id':_0x264a79,'type':_0x5787a3,'data':_0x587048,'createdAt':new Date(),'authorId':_0x54b35d,'attributes':_0x382e27});for(const _0x13793f of _0x2b0547)this['_addSuggestionMarker'](_0x5787a3,_0x264a79,_0x54b35d,_0x13793f,o['getMultiRangeId']());return _0x1f6d9c;}['markDeletion'](_0x56769c,_0x2b59d4=null,_0x4c819f={}){if(_0x56769c['isCollapsed'])return null;const _0x57fc8a=this['editor']['plugins']['get']('Users')['me'],_0x31bb26=new _0x7362da(_0x56769c['start'],_0x56769c['end']);for(const {suggestion:_0x4c97e5,meta:_0x4d94bd}of this['_findSuggestions'](_0x31bb26,'insertion'))if(_0x4d94bd['isOwn']&&!_0x4d94bd['isNextTo']){if(_0x4c97e5['isMultiRange']){const _0x2e7837=_0x4c97e5['getRanges']()['filter'](_0x1a5d5c=>'$graveyard'!=_0x1a5d5c['root']['rootName']);_0x2e7837['every'](_0x507912=>_0x31bb26['containsRange'](_0x507912,!0x0))&&_0x4c97e5['discard']();if(_0x2e7837['some'](_0x50a2f0=>_0x50a2f0['containsRange'](_0x31bb26,!0x0))){const _0x58700c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b59d4,'accept');return this['forceDefaultExecution'](()=>_0x58700c([_0x31bb26],null,_0x4c819f)),null;}}else{const _0x24dcd9=_0x31bb26['getIntersection'](_0x4c97e5['getFirstRange']());null!==_0x24dcd9&&_0x4c97e5['_onDiscard']([_0x24dcd9],null,_0x4c819f);}}if(_0x31bb26['detach'](),_0x31bb26['isCollapsed']||'$graveyard'==_0x31bb26['root']['rootName'])return null;let _0x5a495e=null,_0x40fbec=_0x31bb26['start'],_0x3a3e6a=_0x31bb26['end'];const _0x181042=this['_findSuggestions'](_0x31bb26,'deletion');for(const {suggestion:_0x595ed3,meta:_0xf84f8f}of _0x181042){const _0x378756=this['_model']['createRange'](_0x40fbec,_0x3a3e6a);if(_0xf84f8f['isOwn']&&(this['_mergeNestedSuggestions']||!_0xf84f8f['containsRangeInObject']&&!_0xf84f8f['isInsideObject'])){if(_0x595ed3['isMultiRange']){if(!zt(_0x595ed3,_0x4c819f))continue;let _0x12f60b=!0x0;for(const _0x1a86e4 of _0x595ed3['getRanges']()){if(_0x1a86e4['containsRange'](_0x378756,!0x0))return _0x595ed3;_0x378756['containsRange'](_0x1a86e4)||(_0x12f60b=!0x1);}_0x12f60b&&_0x595ed3['discard']();}else{const _0x4c469a=_0x595ed3['getFirstRange']();if(_0x4c469a['containsRange'](_0x378756,!0x0))return _0x595ed3;if(!zt(_0x595ed3,_0x4c819f)){_0x378756['containsRange'](_0x4c469a)?_0x595ed3['removeMarkers']():_0x4c469a['containsPosition'](_0x40fbec)?_0x40fbec=_0x4c469a['end']:_0x4c469a['containsPosition'](_0x3a3e6a)&&(_0x3a3e6a=_0x4c469a['start']);continue;}_0x40fbec=_0x40fbec['isBefore'](_0x4c469a['start'])?_0x40fbec:_0x4c469a['start'],_0x3a3e6a=_0x3a3e6a['isAfter'](_0x4c469a['end'])?_0x3a3e6a:_0x4c469a['end'],_0x4c819f=Object['assign']({},_0x595ed3['attributes']),_0x5a495e?_0x4c469a['start']['isBefore'](_0x5a495e['getFirstRange']()['start'])?(_0x5a495e['removeMarkers'](),_0x5a495e=_0x595ed3):_0x595ed3['removeMarkers']():_0x5a495e=_0x595ed3;}}}if(_0x5a495e)return this['_setSuggestionRange'](_0x5a495e,this['_model']['createRange'](_0x40fbec,_0x3a3e6a)),_0x5a495e;{const _0x2096c1=_0x33987a(),_0x106a46=this['_model']['createRange'](_0x40fbec,_0x3a3e6a),_0x259814=_0x57fc8a['id'],_0x15e0ce=_0x2b59d4?'deletion:'+_0x2b59d4:'deletion',_0x180b85=this['_setSuggestionData']({'id':_0x2096c1,'type':_0x15e0ce,'createdAt':new Date(),'authorId':_0x259814,'attributes':_0x4c819f});return this['_addSuggestionMarker'](_0x15e0ce,_0x2096c1,_0x259814,_0x106a46),_0x180b85;}}['markMultiRangeDeletion'](_0x2ffb02,_0xc3d40f='multi',_0x2c1e6c={}){const _0x349f1b=this['editor']['plugins']['get']('Users')['me'],_0x229d56=_0x2ffb02['map'](_0x230d8d=>new _0x7362da(_0x230d8d['start'],_0x230d8d['end'])),_0x436eac=new Set();for(const {suggestion:_0x5d2bf0,meta:_0x672a6a}of this['_findSuggestions'](_0x229d56,'insertion'))_0x672a6a['isOwn']&&!_0x672a6a['isNextTo']&&_0x436eac['add'](_0x5d2bf0);for(const _0x527c2a of _0x436eac)if(_0x527c2a['isMultiRange']){const _0x5e086e=_0x527c2a['getRanges']();(!_0x527c2a['attributes']||!_0x527c2a['attributes']['skipNestingCheck'])&&(_0x5e086e['every'](_0x2cb7a8=>_0x229d56['some'](_0x5ba418=>_0x5ba418['containsRange'](_0x2cb7a8,!0x0)))&&_0x527c2a['discard']());if(_0x229d56['every'](_0x551a43=>_0x5e086e['some'](_0x2565ee=>_0x2565ee['containsRange'](_0x551a43,!0x0)))){const _0x429664=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc3d40f,'accept');return this['forceDefaultExecution'](()=>_0x429664(_0x2ffb02,null,_0x2c1e6c)),null;}}else{const _0x34e218=_0x527c2a['getFirstRange']();_0x229d56['some'](_0x4dfc4b=>_0x4dfc4b['containsRange'](_0x34e218,!0x0))&&_0x527c2a['discard']();if(_0x229d56['every'](_0x115e27=>_0x34e218['containsRange'](_0x115e27,!0x0))){const _0x43ee5b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc3d40f,'accept');return this['forceDefaultExecution'](()=>_0x43ee5b(_0x229d56,null,_0x2c1e6c)),null;}}const _0x31b2d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc3d40f,'join');let _0x26ca11=null;for(const _0x3030ec of this['getSuggestions']())if(_0x3030ec['author']['id']==_0x349f1b['id']&&_0x3030ec['isInContent']&&'deletion'==_0x3030ec['type']&&_0x3030ec['subType']==_0xc3d40f&&zt(_0x3030ec,_0x2c1e6c)&&(_0x31b2d6(_0x3030ec['getRanges'](),_0x229d56)||_0x31b2d6(_0x229d56,_0x3030ec['getRanges']()))){if(_0x26ca11){if(_0x3030ec['commentThread']&&_0x3030ec['commentThread']['length'])continue;for(const _0x40f214 of _0x3030ec['getRanges']())_0x26ca11['isIntersectingWithRange'](_0x40f214)||_0x26ca11['addRange'](_0x40f214);_0x3030ec['removeMarkers']();}else{_0x26ca11=_0x3030ec;for(const _0x291831 of _0x229d56)_0x3030ec['isIntersectingWithRange'](_0x291831)||_0x3030ec['addRange'](_0x291831);}}if(_0x26ca11)return _0x26ca11;_0x436eac['clear']();for(const {suggestion:_0x4f565a,meta:_0x4c3bd9}of this['_findSuggestions'](_0x229d56,'deletion'))_0x4c3bd9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4c3bd9['containsRangeInObject']&&!_0x4c3bd9['isInsideObject'])&&zt(_0x4f565a,_0x2c1e6c)&&_0x436eac['add'](_0x4f565a);for(const _0x59d816 of _0x436eac){const _0x32bd62=_0x59d816['getRanges']();if(!_0x2c1e6c||!_0x2c1e6c['skipNestingCheck']){if(_0x229d56['every'](_0x2ad065=>_0x32bd62['some'](_0x2d3469=>_0x2d3469['containsRange'](_0x2ad065,!0x0))))return _0x59d816;}(!_0x59d816['attributes']||!_0x59d816['attributes']['skipNestingCheck'])&&(_0x32bd62['every'](_0x249521=>_0x229d56['some'](_0x50c655=>_0x50c655['containsRange'](_0x249521,!0x0)))&&_0x59d816['discard']());}const _0x536cfb=_0x33987a(),_0x5c79b5=_0x349f1b['id'],_0x3837b='deletion:'+_0xc3d40f,_0x6f1314=this['_setSuggestionData']({'id':_0x536cfb,'type':_0x3837b,'createdAt':new Date(),'authorId':_0x5c79b5,'attributes':_0x2c1e6c});for(const _0x5450e4 of _0x229d56)_0x5450e4['detach'](),_0x5450e4['isCollapsed']||'$graveyard'==_0x5450e4['root']['rootName']||this['_addSuggestionMarker'](_0x3837b,_0x536cfb,_0x5c79b5,_0x5450e4,o['getMultiRangeId']());return _0x6f1314;}['markAttributeChange'](_0x27a808,_0x3effcb,_0x83263e,_0x3fd40a,_0x25ed7a){if(_0x27a808['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x25e919=this['editor']['plugins']['get']('Users')['me']['id'],_0x351165=Array['from'](this['_suggestions']['values']())['filter'](_0x492f18=>'attribute'==_0x492f18['type']&&_0x492f18['data']['key']==_0x3effcb&&_0x492f18['isIntersectingWithRange'](_0x27a808));if('default'===this['_trackFormatChanges']){const _0x414edb=this['_findSuggestions'](_0x27a808,'insertion')['filter'](({meta:_0x39e467})=>_0x39e467['isOwn']&&!_0x39e467['isInsideObject']&&!_0x39e467['isNextTo'])['map'](({suggestion:_0x4010f7})=>_0x4010f7);_0x351165['unshift'](..._0x414edb);}const _0x58a782=new Map([[_0x27a808,_0x83263e]]);for(const _0x1784c5 of _0x351165){const _0x2031d6='attribute'==_0x1784c5['type']?_0x1784c5['data']['oldValue']:void 0x0,_0x2fc091=_0x1784c5['getFirstRange'](),_0x566cf4=Array['from'](_0x58a782['keys']())['find'](_0x2a0cb4=>_0x2a0cb4['isIntersecting'](_0x2fc091));if(!_0x566cf4)continue;const _0x1f1b79=_0x566cf4['getDifference'](_0x2fc091);this['_isBlockAttribute'](_0x3effcb)&&'insertion'==_0x1784c5['type']&&0x0!=_0x1f1b79['length']||(_0x58a782['delete'](_0x566cf4),_0x1f1b79['forEach'](_0x32ee9a=>{_0x58a782['set'](_0x32ee9a,_0x83263e);}),'insertion'!=_0x1784c5['type']&&_0x2031d6!=_0x3fd40a&&_0x58a782['set'](_0x566cf4['getIntersection'](_0x2fc091),_0x2031d6));}const _0x403168=[];for(const [_0x125451,_0x322fc3]of _0x58a782){const _0x230f86=_0x33987a(),_0x5afed4={'key':_0x3effcb,'oldValue':_0x322fc3,'newValue':_0x3fd40a};_0x3effcb['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':_0x3effcb});const _0x30f891=('attribute:'+(_0x3effcb+'|'+Gt({'newValue':_0x3fd40a})))['substring'](0x0,0x3c),_0x5a434e=this['_setSuggestionData']({'id':_0x230f86,'type':_0x30f891,'data':_0x5afed4,'createdAt':new Date(),'authorId':_0x25e919,'attributes':_0x25ed7a});_0x403168['push'](_0x5a434e),this['_addSuggestionMarker'](_0x30f891,_0x230f86,_0x25e919,_0x125451);}return _0x403168;}['enableDefaultAttributesIntegration'](_0x59128f){this['enableCommand'](_0x59128f,(_0x1e0644,..._0x10635a)=>{this['_recordAttributeChanges'](()=>{_0x1e0644(..._0x10635a);});});}['registerBlockAttribute'](_0x58b66e){this['_blockAttributeKeys']['add'](_0x58b66e);}['registerInlineAttribute'](_0x3cc797){this['_inlineAttributeKeys']['add'](_0x3cc797);}['_getAttributeKey'](_0x5c7d33){return'attribute'==_0x5c7d33['type']?_0x5c7d33['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5308be,_0x263a86){const _0xa6e686=_0x5308be['getFirstMarker']();this['_model']['change'](_0x63a28e=>{_0x63a28e['updateMarker'](_0xa6e686,{'range':_0x263a86});});}['_addThreadToSuggestion'](_0xa74d30){const _0x46cca0=_0xa74d30['id'],_0x551638=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x46cca0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x551638,'threadId':_0x46cca0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5381f8=this['_commentsRepository']['getCommentThread'](_0x46cca0);_0x5381f8['unbind']('isRemovable'),_0x5381f8['isRemovable']=!0x1,_0xa74d30['commentThread']=_0x5381f8;}['_checkSuggestionCorrectness'](_0x2aea19,_0x3474e8,_0x1c11db,_0x3e59e9){if(_0x2aea19['type']!=_0x3474e8||_0x2aea19['subType']!=_0x1c11db||_0x2aea19['creator']['id']!=_0x3e59e9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3d4351('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3b9f36,_0x4a3cfe){const _0x37a129=_0x3b9f36['getFirstRange']();if(_0x4a3cfe['isEqual'](_0x37a129))_0x3b9f36['removeMarkers']();else{if(_0x37a129['containsRange'](_0x4a3cfe)){const _0x4a2b0b=this['_model']['createPositionAt'](_0x4a3cfe['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b9f36,this['_model']['createRange'](_0x37a129['start'],_0x4a2b0b));const _0x280e53=_0x33987a(),_0x1b949f=_0x3b9f36['creator']['id'],_0x4cdae0=_0x3b9f36['type']+':'+_0x3b9f36['subType'];this['_setSuggestionData']({'id':_0x280e53,'type':_0x4cdae0,'createdAt':new Date(),'authorId':_0x1b949f,'data':_0x3b9f36['data'],'attributes':_0x3b9f36['attributes']});const _0x285787=this['_model']['createPositionAt'](_0x4a3cfe['end']['parent'],'after'),_0x5408bb=this['_model']['createRange'](_0x285787,_0x37a129['end']);this['_addSuggestionMarker'](_0x4cdae0,_0x280e53,_0x1b949f,_0x5408bb);}else{if(_0x37a129['containsPosition'](_0x4a3cfe['start'])){const _0x2d1bae=this['_model']['createPositionAt'](_0x4a3cfe['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b9f36,this['_model']['createRange'](_0x37a129['start'],_0x2d1bae));}else{const _0x4e0c75=this['_model']['createPositionAt'](_0x4a3cfe['end']['parent'],'after');this['_setSuggestionRange'](_0x3b9f36,this['_model']['createRange'](_0x4e0c75,_0x37a129['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x10c634){for(const {suggestion:_0x4fd2f8,meta:_0x2fc112}of this['_findSuggestions'](_0x10c634,'insertion')){if(!_0x2fc112['isOwn'])continue;const _0x36ace2=_0x4fd2f8['getRanges']();for(const _0x5ae507 of _0x36ace2)if(!_0x10c634['getDifference'](_0x5ae507)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4d8c11){const _0x906d94=this['editor']['plugins']['get']('Users')['getUser'](_0x4d8c11);if(!_0x906d94)throw new _0x3d4351('track-changes-user-not-found',this);return _0x906d94;}['_getExternalAuthor'](_0x55739c){const _0x1684f1=this['editor']['plugins']['get']('Users'),_0x5302c7=_0x1c269b('external:'+_0x55739c),_0x200643=_0x1684f1['getUser'](_0x5302c7);return _0x200643||_0x1684f1['addUser']({'id':_0x5302c7,'name':_0x55739c});}['_createSuggestion'](_0x5221bc,_0x25e7a2,_0x3ea1c6,_0x5e6158,_0x3c57f4){const _0x31d78a=this['_getAuthorFromId'](_0x5e6158),_0x3b7013=this['_suggestionFactory']['buildSuggestion'](_0x5221bc,_0x25e7a2,_0x3ea1c6,_0x31d78a,_0x3c57f4,_0x329893=>{this['_updateSuggestionData'](_0x3ea1c6,{'attributes':_0x329893});const _0x5548d6=this['getSuggestion'](_0x3ea1c6);this['_joinWithAdjacentSuggestions'](new Set([_0x5548d6])),this['_refreshSuggestionsChain'](new Set([_0x5548d6]));});return this['listenTo'](_0x3b7013,'accept',()=>{this['_updateSuggestionData'](_0x3ea1c6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3b7013,'discard',()=>{this['_updateSuggestionData'](_0x3ea1c6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3ea1c6,_0x3b7013),this['_suggestionState']['set'](_0x3b7013,'notReady'),_0x3b7013;}['_splitMarkerName'](_0x29f092){const _0x1d5864=_0x29f092['split'](':');return{'group':_0x1d5864[0x0],'type':_0x1d5864[0x1],'subType':_0x1d5864['length']>=0x5?_0x1d5864[0x2]:null,'id':_0x1d5864['length']<0x5?_0x1d5864[0x2]:_0x1d5864[0x3],'authorId':_0x1d5864['length']<0x5?_0x1d5864[0x3]:_0x1d5864[0x4],'markerCount':0x6==_0x1d5864['length']?_0x1d5864[0x5]:null};}['_breakSuggestionMarker'](_0x828720,_0x47abc5,_0x520399){const _0x53fad5=_0x828720['getFirstRange'](),_0x26f24f=_0x53fad5['start'],_0x5a1a8=_0x53fad5['end'];this['_setSuggestionRange'](_0x828720,this['_model']['createRange'](_0x26f24f,_0x47abc5));const _0x567214=_0x33987a(),_0xf040a1=_0x828720['creator']['id'],_0x35ec0d=_0x828720['type']+(_0x828720['subType']?':'+_0x828720['subType']:'');this['_setSuggestionData']({'id':_0x567214,'type':_0x35ec0d,'createdAt':new Date(),'authorId':_0xf040a1,'originalSuggestionId':_0x828720['id'],'attributes':_0x828720['attributes'],'data':_0x828720['data']});const _0x265958=this['_getAttributeKey'](_0x828720);('formatBlock'==_0x828720['type']||_0x265958&&this['_isBlockAttribute'](_0x265958))&&(_0x520399=this['_model']['createPositionBefore'](_0x520399['parent'])),this['_addSuggestionMarker'](_0x35ec0d,_0x567214,_0xf040a1,this['_model']['createRange'](_0x520399,_0x5a1a8));}['_findSuggestions'](_0x228ecb,_0x12f3c7=null){const _0x50f929=[],_0x2e820c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x228ecb)||(_0x228ecb=[_0x228ecb]);for(const _0x52c9bf of this['getSuggestions']()){if(!_0x52c9bf['isInContent'])continue;if(_0x12f3c7&&_0x52c9bf['type']!=_0x12f3c7)continue;let _0x324abd=!0x1;for(const _0x49a0c4 of _0x52c9bf['getRanges']()){for(const _0x5a3c62 of _0x228ecb){const _0x2f7f9f=_0x5a3c62['start']['isEqual'](_0x49a0c4['end'])||_0x5a3c62['end']['isEqual'](_0x49a0c4['start']);if(_0x2f7f9f||_0x5a3c62['getIntersection'](_0x49a0c4)){const _0x4b9bbe=_0x5a3c62['containsRange'](_0x49a0c4)&&Vt(this['_model']['schema'],_0x49a0c4['start'],_0x5a3c62),_0xb11e8d=_0x49a0c4['containsRange'](_0x5a3c62)&&Vt(this['_model']['schema'],_0x5a3c62['start'],_0x49a0c4);_0x50f929['push']({'suggestion':_0x52c9bf,'meta':{'isOwn':_0x2e820c==_0x52c9bf['author'],'isNextTo':_0x2f7f9f,'isInsideObject':_0x4b9bbe,'containsRangeInObject':_0xb11e8d}}),_0x324abd=!0x0;break;}}if(_0x324abd)break;}}return _0x50f929;}['_addSuggestionMarker'](_0x48e55b,_0x928fb5,_0x4592c7,_0x4d5816,_0x4758ee){this['_model']['change'](_0x4c0d81=>{let _0x783fa0='suggestion:'+_0x48e55b+':'+_0x928fb5+':'+_0x4592c7;_0x4758ee&&(_0x783fa0=_0x783fa0+':'+_0x4758ee),_0x4c0d81['addMarker'](_0x783fa0,{'range':_0x4d5816,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x31ea2c){const _0x273be5=_0x31ea2c['previous'],_0x2de416=_0x31ea2c['next'];_0x31ea2c['previous']=null,_0x31ea2c['next']=null,null!=_0x273be5&&_0x273be5['next']==_0x31ea2c&&(_0x273be5['next']=_0x2de416),null!=_0x2de416&&_0x2de416['previous']==_0x31ea2c&&(_0x2de416['previous']=_0x273be5),'ready'==this['_suggestionState']['get'](_0x31ea2c)&&(this['_suggestionState']['set'](_0x31ea2c,'removed'),this['fire']('suggestionUnloaded',_0x31ea2c,_0x273be5,_0x2de416));}['_setSuggestionData'](_0x11ac40){const _0x5a2fc2=_0x11ac40['id'],_0x5e1a8e=this['addSuggestionData'](_0x11ac40);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x32f76e=this['editor']['plugins']['get']('PendingActions'),_0x50bbfc=_0x5e1a8e['hasComments'],_0x3c8fa6=_0x5e1a8e['subType']?_0x5e1a8e['type']+':'+_0x5e1a8e['subType']:_0x5e1a8e['type'],_0x3bd2c6=this['editor']['locale'],_0x19d56c=_0x32f76e['add'](c(_0x3bd2c6,'PENDING_ACTION_SUGGESTION')),_0x33f393={'id':_0x5a2fc2,'type':_0x3c8fa6,'hasComments':_0x50bbfc,'data':_0x11ac40['data']||null,'originalSuggestionId':_0x11ac40['originalSuggestionId']||null,'attributes':_0x5e1a8e['attributes']};this['_adapter']['addSuggestion'](_0x33f393)['then'](_0x12ec49=>{_0x5e1a8e['_saved']=!0x0,_0x32f76e['remove'](_0x19d56c),_0x12ec49&&_0x12ec49['createdAt']&&(this['_suggestions']['get'](_0x5a2fc2)['createdAt']=_0x12ec49['createdAt']);})['catch'](_0x16c19d=>{throw _0x2d4306('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5e1a8e['discard']();}),_0x5e1a8e['stopListening'](),this['_suggestions']['delete'](_0x5e1a8e['id']),this['_suggestionState']['delete'](_0x5e1a8e),_0x16c19d;});}return _0x5e1a8e;}['_isBlockAttribute'](_0x8aa0be){return this['_blockAttributeKeys']['has'](_0x8aa0be);}['_updateSuggestionData'](_0x41f062,_0x5bc587){const _0x2d98dc=this['editor']['plugins']['get']('PendingActions'),_0x28b92d=this['getSuggestion'](_0x41f062);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x28b92d['_saved']){const _0x26406a=_0x2d98dc['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x41f062,_0x5bc587)['then'](()=>{_0x2d98dc['remove'](_0x26406a);});}else _0x28b92d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x41f062,_0x5bc587);});}}['_getSuggestionData'](_0x17f8a8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3d4351('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x17f8a8);}['_handleNewSuggestionMarker'](_0x31c368){const {id:_0x5974c6,type:_0x67b688,subType:_0x5bb10b,authorId:_0x495f8a}=this['_splitMarkerName'](_0x31c368),_0x128b06=this['_suggestions']['get'](_0x5974c6)||this['_createSuggestion'](_0x67b688,_0x5bb10b,_0x5974c6,_0x495f8a,{});switch(this['_checkSuggestionCorrectness'](_0x128b06,_0x67b688,_0x5bb10b,_0x495f8a),this['_suggestionState']['get'](_0x128b06)){case'notReady':this['_getSuggestionData'](_0x5974c6)['then'](_0x41f57b=>{let _0x356ea5=Promise['resolve']();_0x41f57b['hasComments']&&(_0x356ea5=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5974c6})),_0x356ea5['then'](()=>{this['addSuggestionData'](_0x41f57b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x128b06,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5974c6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x128b06,'ready'),this['fire']('suggestionLoaded',_0x128b06);break;case'ready':this['fire']('suggestionChanged',_0x128b06);}return _0x128b06['addMarkerName'](_0x31c368),_0x128b06;}['_refreshSuggestionsChain'](_0x1fd433){const _0x56a3e5=Array['from'](_0x1fd433),_0x262e78=_0x56a3e5['filter'](_0xb3094b=>'attribute'==_0xb3094b['type']);this['_refreshAttributeSuggestionsChain'](_0x262e78);const _0x2ce37c=_0x56a3e5['filter'](_0x1657a1=>!_0x1657a1['isMultiRange']&&'attribute'!=_0x1657a1['type']),_0x3d0999=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b81f4=>!_0x4b81f4['isMultiRange']&&'attribute'!=_0x4b81f4['type']),_0x2a06c6=_0x3d0999['filter'](_0x6da58=>!_0x1fd433['has'](_0x6da58)),_0x34d9e6=new Map(_0x3d0999['map'](_0x27be52=>[_0x27be52,this['_suggestionFactory']['getSuggestionCallback'](_0x27be52['type'],_0x27be52['subType'],'chain')])),_0x472ee1=new Map(_0x3d0999['map'](_0xb92032=>[_0xb92032,_0xb92032['getFirstRange']()])),_0x3ced7a=new Set(),_0x37684f=new Set();for(let _0x3b5f24=0x0;_0x3b5f24<_0x2ce37c['length'];_0x3b5f24++)_0x5cb92c(_0x2ce37c[_0x3b5f24],_0x2ce37c,_0x3b5f24+0x1);for(let _0x164c27=0x0;_0x164c27<_0x2ce37c['length'];_0x164c27++)_0x5cb92c(_0x2ce37c[_0x164c27],_0x2a06c6,0x0);const _0x4e8ce5=new Set();for(let _0x2b1ef0=0x0;_0x2b1ef0<_0x2ce37c['length'];_0x2b1ef0++){const _0x1c431d=_0x2ce37c[_0x2b1ef0];!_0x37684f['has'](_0x1c431d)&&_0x1c431d['previous']&&(_0x4e8ce5['add'](_0x1c431d['previous']),_0x1c431d['previous']['next']===_0x1c431d&&(_0x1c431d['previous']['next']=null),_0x1c431d['previous']=null),!_0x3ced7a['has'](_0x1c431d)&&_0x1c431d['next']&&(_0x4e8ce5['add'](_0x1c431d['next']),_0x1c431d['next']['previous']===_0x1c431d&&(_0x1c431d['next']['previous']=null),_0x1c431d['next']=null);}function _0x5cb92c(_0xfe5cd5,_0x29f7c8,_0x23070f){for(let _0x4fdd6c=_0x23070f;_0x4fdd6c<_0x29f7c8['length'];_0x4fdd6c++){const _0x4a5b03=_0x320dde(_0xfe5cd5,_0x29f7c8[_0x4fdd6c]);_0x4a5b03&&(_0x4a5b03[0x0]['next']=_0x4a5b03[0x1],_0x4a5b03[0x1]['previous']=_0x4a5b03[0x0],_0x3ced7a['add'](_0x4a5b03[0x0]),_0x37684f['add'](_0x4a5b03[0x1]));}}function _0x320dde(_0x3defda,_0x29e6d3){if(_0x3defda['author']['id']!==_0x29e6d3['author']['id'])return null;const _0x5a62a5=_0x34d9e6['get'](_0x3defda)(_0x3defda,_0x29e6d3,_0x472ee1['get'](_0x3defda),_0x472ee1['get'](_0x29e6d3));if(!_0x5a62a5)return null;return _0x34d9e6['get'](_0x29e6d3)(_0x3defda,_0x29e6d3,_0x472ee1['get'](_0x3defda),_0x472ee1['get'](_0x29e6d3))?_0x5a62a5[0x1]['commentThread']&&_0x5a62a5[0x1]['commentThread']['length']?null:_0x5a62a5:null;}_0x4e8ce5['size']&&this['_refreshSuggestionsChain'](_0x4e8ce5);}['_refreshAttributeSuggestionsChain'](_0x3af53a){if(0x0==_0x3af53a['length'])return;const _0x191040=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e51b6=>'attribute'==_0x3e51b6['type']&&_0x3e51b6['_isDataLoaded']),_0x346ab4=[],_0x385574=new Map();for(const _0x17f3a2 of _0x191040){const _0x1115b1=_0x1c269b(_0x17f3a2['attributes']);_0x385574['has'](_0x1115b1)||(_0x385574['set'](_0x1115b1,_0x346ab4['length']),_0x346ab4['push']([]));const _0x1418df=_0x385574['get'](_0x1115b1);_0x346ab4[_0x1418df]['push'](_0x17f3a2);}!(function(){_0x346ab4['sort']((_0x24887e,_0x15b6ea)=>{const _0x55a5fa=_0x24887e[0x0]['createdAt'],_0x1c3743=_0x15b6ea[0x0]['createdAt'];return _0x55a5fa==_0x1c3743?_0x24887e[0x0]['attributes']['groupId']<_0x15b6ea[0x0]['attributes']['groupId']?-0x1:0x1:_0x55a5fa<_0x1c3743?-0x1:0x1;});for(const _0x1d078b of _0x346ab4)_0x1d078b['sort']((_0x204d03,_0x58aecc)=>_0x204d03['id']<_0x58aecc['id']?-0x1:0x1);}());for(let _0x147a1b=0x0;_0x147a1b<_0x346ab4['length'];_0x147a1b++){if(0x0==_0x346ab4[_0x147a1b]['length'])continue;const _0x3524dc=[];for(let _0x54635c=_0x147a1b+0x1;_0x54635c<_0x346ab4['length'];_0x54635c++)0x0!=_0x346ab4[_0x54635c]['length']&&_0x224c0e(_0x346ab4[_0x147a1b],_0x346ab4[_0x54635c])&&_0x3524dc['push'](_0x54635c);for(const _0x2d404b of _0x3524dc)_0x346ab4[_0x147a1b]=_0x346ab4[_0x147a1b]['concat'](_0x346ab4[_0x2d404b]),_0x346ab4[_0x2d404b]=[];}for(const _0x2f8c38 of _0x346ab4)for(let _0x3d54cc=0x0;_0x3d54cc<_0x2f8c38['length'];_0x3d54cc++){const _0x55de67=_0x2f8c38[_0x3d54cc+0x1]||null;_0x2f8c38[_0x3d54cc]['next']!==_0x55de67&&(_0x2f8c38[_0x3d54cc]['next']=_0x55de67);}for(const _0x1b8220 of _0x346ab4)for(let _0x2d54e9=0x0;_0x2d54e9<_0x1b8220['length'];_0x2d54e9++){const _0x401e72=_0x1b8220[_0x2d54e9-0x1]||null;_0x1b8220[_0x2d54e9]['previous']!==_0x401e72&&(_0x1b8220[_0x2d54e9]['previous']=_0x401e72);}function _0x224c0e(_0x55c963,_0x599a18){if(_0x55c963[0x0]['attributes']['groupId']!==_0x599a18[0x0]['attributes']['groupId']&&_0x55c963[0x0]['author']!==_0x599a18[0x0]['author'])return!0x1;if(!function(_0x233176,_0x3f497a){if(!_0x233176['hasComments']&&!_0x3f497a['hasComments'])return!0x0;if(_0x233176['hasComments']&&_0x3f497a['hasComments'])return!0x1;if(_0x233176['hasComments']&&_0x3f497a['createdAt']<_0x233176['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3f497a['hasComments']&&_0x233176['createdAt']<_0x3f497a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x55c963[0x0],_0x599a18[0x0]))return!0x1;const _0x30f2dc=Et(_0x55c963[0x0]['attributes'],'groupId'),_0x18a7a1=Et(_0x599a18[0x0]['attributes'],'groupId');if(!_0x17e1e9(_0x30f2dc,_0x18a7a1))return!0x1;return!!_0x55c963['every'](_0x228bdc=>_0x599a18['some'](_0x59b151=>_0x228bdc['getFirstRange']()['isEqual'](_0x59b151['getFirstRange']())))&&_0x599a18['every'](_0x1f1a8f=>_0x55c963['some'](_0x36a9a2=>_0x1f1a8f['getFirstRange']()['isEqual'](_0x36a9a2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2c4e3d){const _0x2f1ad1=Array['from'](_0x2c4e3d),_0x43d7f2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x290532=_0x43d7f2['filter'](_0x7f722c=>!_0x2c4e3d['has'](_0x7f722c)),_0x4e997a=new Map(_0x2f1ad1['map'](_0x5e7836=>[_0x5e7836,this['_suggestionFactory']['getSuggestionCallback'](_0x5e7836['type'],_0x5e7836['subType'],'join')])),_0x2c1e89=new Map(_0x43d7f2['map'](_0x32be3f=>[_0x32be3f,_0x32be3f['getRanges']()]));for(let _0x3dd267=0x0;_0x3dd267<_0x2f1ad1['length'];_0x3dd267++){if(_0x365df2(this,_0x2f1ad1[_0x3dd267],_0x2f1ad1,_0x3dd267+0x1))return!0x0;}for(let _0x4d6dd1=0x0;_0x4d6dd1<_0x2f1ad1['length'];_0x4d6dd1++){if(_0x365df2(this,_0x2f1ad1[_0x4d6dd1],_0x290532,0x0))return!0x0;}return!0x1;function _0x365df2(_0x5f4b5f,_0x14d0fa,_0x264f44,_0x3c3f4b){for(let _0xd62686=_0x3c3f4b;_0xd62686<_0x264f44['length'];_0xd62686++){const _0x49b757=_0x264f44[_0xd62686];if(_0x49b757['type']!==_0x14d0fa['type']||_0x49b757['author']['id']!==_0x14d0fa['author']['id']||_0x49b757['subType']!==_0x14d0fa['subType'])continue;if(!qt(_0x14d0fa,_0x49b757))continue;if('attribute'==_0x14d0fa['type']&&_0x14d0fa['data']['oldValue']!=_0x49b757['data']['oldValue'])continue;if('attribute'==_0x14d0fa['type']&&_0x5f4b5f['_isBlockAttribute'](_0x14d0fa['data']['key']))continue;if('formatBlock'==_0x14d0fa['type']){const _0x2f4d7c=_0x5f4b5f['editor']['model'],_0x5e225b=_0x14d0fa['getContainedElement']();if(_0x5e225b&&(_0x2f4d7c['schema']['isObject'](_0x5e225b)||_0x2f4d7c['schema']['isLimit'](_0x5e225b)))continue;}const _0x2d57b3=_0x4e997a['get'](_0x14d0fa),_0x579b69=_0x2c1e89['get'](_0x14d0fa),_0x399888=_0x2c1e89['get'](_0x49b757),_0x4529a3=_0x14d0fa['commentThread']&&_0x14d0fa['commentThread']['length'],_0x4ddb8a=_0x49b757['commentThread']&&_0x49b757['commentThread']['length'];if(!_0x4529a3&&_0x2d57b3(_0x399888,_0x579b69))return _0x5f4b5f['_joinSuggestions'](_0x49b757,_0x14d0fa),_0x2c1e89['delete'](_0x14d0fa),!0x0;if(!_0x4ddb8a&&_0x2d57b3(_0x579b69,_0x399888))return _0x5f4b5f['_joinSuggestions'](_0x14d0fa,_0x49b757),_0x2c1e89['delete'](_0x49b757),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5b5ef8,_0x1546ec){if(_0x5b5ef8['isMultiRange']){for(const _0x1e0f85 of _0x1546ec['getRanges']())_0x5b5ef8['addRange'](_0x1e0f85);}else{const _0x45a7f8=_0x1546ec['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5b5ef8,this['_model']['createRange'](_0x5b5ef8['getFirstRange']()['start'],_0x45a7f8));}_0x1546ec['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5e8109,_0x33f637,_0x4ea188){const _0x15854a=_0x5e8109['startsWith']('format')||_0x5e8109['startsWith']('attribute')?'FORMATTING':_0x5e8109['toUpperCase']();return c(this['editor']['locale'],_0x33f637+'_'+_0x15854a+'_SUGGESTION_ANNOUNCEMENT',_0x4ea188);}['_initAriaMarkerChangeAnnouncements'](){const _0x520133=this['editor'];if(!_0x520133['ui'])return;const {ariaLiveAnnouncer:_0x21c7cc}=_0x520133['ui'];_0x298a0a(this['_model'],({left:_0x4b904e,entered:_0x50987b})=>{for(const _0x55aa88 of _0x4b904e){const {group:_0x3a8b09,type:_0x47532e}=this['_splitMarkerName'](_0x55aa88['name']);if('suggestion'===_0x3a8b09){_0x21c7cc['announce'](this['_getMarkerAnnouncementText'](_0x47532e,'LEAVE'));break;}}for(const _0x5c6e77 of _0x50987b){const {group:_0x546a7a,type:_0x1832c8}=this['_splitMarkerName'](_0x5c6e77['name']);if('suggestion'===_0x546a7a){_0x21c7cc['announce'](this['_getMarkerAnnouncementText'](_0x1832c8,'ENTER',_0x3a2a25(_0x3a9486)));break;}}});}['_processAttributeChanges'](_0x16bb5b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x46e37e=this['editor'],_0x488160=_0x46e37e['model']['document']['differ']['getChanges']();if(0x0==_0x488160['length'])return!0x1;const _0x9d25db=[],_0x53c250=_0x488160['filter'](_0x57488b=>'attribute'==_0x57488b['type']),_0x1303cf=_0x488160['filter'](_0x153733=>'insert'==_0x153733['type']&&'$text'!=_0x153733['name']),_0x137713=_0x488160['filter'](_0x5ad43a=>'remove'==_0x5ad43a['type']&&'$text'!=_0x5ad43a['name']);for(const _0x27bba3 of _0x53c250)_0x9d25db['push']({'key':_0x27bba3['attributeKey'],'newValue':_0x27bba3['attributeNewValue'],'oldValue':_0x27bba3['attributeOldValue'],'range':Jt(_0x27bba3['range'],_0x46e37e['model'])});for(const _0x54b2ea of _0x1303cf){const _0x3e30b1=_0x137713['find'](_0x5e18d7=>_0x5e18d7['position']['isEqual'](_0x54b2ea['position']));_0x3e30b1&&_0x9d25db['push']({'key':u,'newValue':_0x54b2ea['name'],'oldValue':_0x3e30b1['name'],'range':_0x46e37e['model']['createRangeOn'](_0x54b2ea['position']['nodeAfter'])});}return 0x0!=_0x9d25db['length']&&this['_reduceExistingSuggestions'](_0x16bb5b,_0x9d25db);}['_processAttributeSuggestions'](_0x41c7d7){let _0x2123ab=!0x1;const _0x595a44=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x240506=>_0x240506['data']['newRange']&&_0x240506['name']['startsWith']('suggestion:attribute:'));for(const _0x499bd7 of _0x595a44){const {subType:_0x17c0a9,id:_0x3aed44}=this['_splitMarkerName'](_0x499bd7['name']),_0xae18dd=_0x17c0a9['split']('|')[0x0];for(const _0x377c29 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x377c29['id']!=_0x3aed44&&'attribute'==_0x377c29['type']&&_0x377c29['data']&&_0x377c29['data']['key']==_0xae18dd&&_0x377c29['getFirstRange']()['isIntersecting'](_0x499bd7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x377c29,_0x499bd7['data']['newRange'],_0x41c7d7),_0x2123ab=!0x0);}return _0x2123ab;}['_recordAttributeChanges'](_0x137938){this['_recordAttributeSuggestions']=!0x0,_0x137938();}['_isRegisteredAttribute'](_0xbfe987){const _0x5510b3=this['_isBlockAttribute'](_0xbfe987),_0x368131=this['_inlineAttributeKeys']['has'](_0xbfe987);return _0x5510b3||_0x368131;}['_reduceExistingSuggestions'](_0x2abc7c,_0x5b2849){if(0x0==_0x5b2849['length'])return!0x1;let _0x266db1=!0x1;for(const _0x4c5638 of _0x5b2849){const _0x25d7ab=this['_findSuggestions'](_0x4c5638['range'],'attribute')['filter'](_0x204a04=>!_0x204a04['meta']['isNextTo'])['map'](_0x3d1d62=>_0x3d1d62['suggestion']),_0x425088=_0x1c269b({'newValue':_0x4c5638['newValue']});_0x25d7ab['filter'](_0x2da84e=>{const [_0xf5360c,_0x4512a3]=_0x2da84e['subType']['split']('|');return _0xf5360c==_0x4c5638['key']&&_0x4512a3!=_0x425088;})['forEach'](_0x8d45dc=>{this['_reduceSuggestionAttributeRange'](_0x8d45dc,_0x4c5638['range'],_0x2abc7c),_0x266db1=!0x0;});}return _0x266db1;}['_reduceSuggestionAttributeRange'](_0x37e31e,_0x117c30,_0xf561a4){const _0x47c65e=_0x37e31e['getFirstRange']()['getDifference'](_0x117c30);0x0!==_0x47c65e['length']?0x1!==_0x47c65e['length']?this['_breakSuggestionMarker'](_0x37e31e,_0x117c30['start'],_0x117c30['end']):this['_setSuggestionRange'](_0x37e31e,_0x47c65e[0x0]):_0xf561a4['removeMarker'](_0x37e31e['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4fc557){this['_editor']=_0x4fc557,this['_model']=_0x4fc557['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1526cd,_0x466923,_0x825352,_0x58b509,_0x3ccf3f,_0x3d7a3b){return new o(this['_model'],{'type':_0x1526cd,'subType':_0x466923,'id':_0x825352,'author':_0x58b509,'creator':_0x58b509,'attributes':_0x3ccf3f,'onAttributesChange':_0x3d7a3b,'onAccept':(..._0x4fd3d6)=>this['getSuggestionCallback'](_0x1526cd,_0x466923,'accept')(..._0x4fd3d6),'onDiscard':(..._0x243f1e)=>this['getSuggestionCallback'](_0x1526cd,_0x466923,'discard')(..._0x243f1e)});}['registerCustomCallback'](_0x1dd82d,_0x23a881,_0x44af1d,_0x5d84c0){const _0x4759db=_0x1dd82d+':'+_0x23a881+':'+_0x44af1d;this['_customCallbacks']['set'](_0x4759db,_0x5d84c0);}['getSuggestionCallback'](_0x447dea,_0x5ca52b,_0x2d6e5c){const _0x46b1fc=_0x447dea+':'+_0x5ca52b+':'+_0x2d6e5c;return this['_customCallbacks']['get'](_0x46b1fc)||this['_defaultCallbacks']['get'](_0x447dea+':'+_0x2d6e5c);}['_registerDefaultCallbacks'](){const _0x281967=()=>!0x1,_0xa630a=_0x15810d=>{_0x15810d['sort']((_0x475bf2,_0x233deb)=>_0x475bf2['start']['isBefore'](_0x233deb['start'])?0x1:-0x1),this['_model']['change'](_0x4fc8e9=>{for(const _0x3595be of _0x15810d){let _0x4610a1;_0x4610a1=_0x3595be['end']['isAtEnd']&&_0x3595be['end']['parent']==_0x3595be['start']['nodeAfter']?_0x4fc8e9['createSelection'](_0x3595be['start']['nodeAfter'],'on'):_0x4fc8e9['createSelection'](_0x3595be),this['_model']['deleteContent'](_0x4610a1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3b5654=(_0x59b36e,_0x43a768)=>{_0x43a768&&this['_model']['change'](_0x2d45f7=>{const {commandName:_0x332b04,commandParams:_0x1f1cbb=[]}=_0x43a768,_0x4b4994=_0x59b36e['map'](_0x590eb3=>(Ft(_0x590eb3)&&(_0x590eb3=this['_model']['createRange'](_0x590eb3['end'])),_0x590eb3))['filter'](_0x242a9f=>'$graveyard'!==_0x242a9f['root']['rootName']);if(_0x4b4994['length']<0x1)return;const _0x3139c5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4904da=>_0x7362da['fromRange'](_0x4904da));_0x2d45f7['setSelection'](_0x4b4994);for(const _0x5f15a8 of this['_editor']['commands']['commands']())_0x5f15a8['refresh']();_0x1f1cbb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x332b04,..._0x1f1cbb);const _0x5a67e6=_0x3139c5['filter'](_0x4f6b3d=>'$graveyard'!=_0x4f6b3d['root']['rootName']);_0x5a67e6['length']>0x0&&_0x2d45f7['setSelection'](_0x5a67e6);for(const _0x322c60 of _0x3139c5)_0x322c60['detach']();});},_0x2cb1da=(_0x36c48b,_0x5a35c2)=>0x1==_0x36c48b['length']&&0x1==_0x5a35c2['length']&&_0x36c48b[0x0]['end']['isEqual'](_0x5a35c2[0x0]['start']),_0x30d5ba=(_0x346381,_0x40c43f,_0x7658fb,_0x3dc0c5)=>Ht(_0x346381,_0x40c43f,_0x7658fb,_0x3dc0c5)?[_0x346381,_0x40c43f]:Ht(_0x40c43f,_0x346381,_0x3dc0c5,_0x7658fb)?[_0x40c43f,_0x346381]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x281967),this['_defaultCallbacks']['set']('insertion:discard',_0xa630a),this['_defaultCallbacks']['set']('insertion:join',_0x2cb1da),this['_defaultCallbacks']['set']('insertion:chain',_0x30d5ba),this['_defaultCallbacks']['set']('deletion:accept',_0xa630a),this['_defaultCallbacks']['set']('deletion:discard',_0x281967),this['_defaultCallbacks']['set']('deletion:join',_0x2cb1da),this['_defaultCallbacks']['set']('deletion:chain',_0x30d5ba),this['_defaultCallbacks']['set']('formatInline:accept',_0x3b5654),this['_defaultCallbacks']['set']('formatInline:discard',_0x281967),this['_defaultCallbacks']['set']('formatInline:join',_0x2cb1da),this['_defaultCallbacks']['set']('formatInline:chain',_0x281967),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3b5654),this['_defaultCallbacks']['set']('formatBlock:discard',_0x281967),this['_defaultCallbacks']['set']('formatBlock:join',_0x2cb1da),this['_defaultCallbacks']['set']('formatBlock:chain',_0x281967),this['_defaultCallbacks']['set']('attribute:accept',_0x281967),this['_defaultCallbacks']['set']('attribute:discard',(_0x48c96a,_0x334dc5)=>{if(!_0x334dc5)return;const _0x336162=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x383522=>{if(_0x334dc5['key']==u)for(const _0x1a9167 of _0x48c96a){const _0x28bec0=_0x1a9167['start']['nodeAfter'],_0x40fb9a=_0x334dc5['oldValue'];_0x383522['rename'](_0x28bec0,_0x40fb9a);}else{if(_0x336162['_isBlockAttribute'](_0x334dc5['key'])){for(const _0x411837 of _0x48c96a)void 0x0!==_0x334dc5['oldValue']?_0x383522['setAttribute'](_0x334dc5['key'],_0x334dc5['oldValue'],_0x411837['start']['nodeAfter']):_0x383522['removeAttribute'](_0x334dc5['key'],_0x411837['start']['nodeAfter']);}else{for(const _0x212dd3 of _0x48c96a)_0x334dc5['oldValue']?_0x383522['setAttribute'](_0x334dc5['key'],_0x334dc5['oldValue'],_0x212dd3):_0x383522['removeAttribute'](_0x334dc5['key'],_0x212dd3);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2cb1da);}}function Vt(_0x343b53,_0xa38478,_0x554a28){for(const _0x23be16 of _0xa38478['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x23be16['root']==_0x23be16)return!0x1;if(!_0x554a28['containsItem'](_0x23be16))return!0x1;if(_0x343b53['isObject'](_0x23be16)||_0x343b53['isLimit'](_0x23be16))return!0x0;}return!0x1;}function Ft(_0x400b77){return _0x400b77['end']['parent']==_0x400b77['start']['nodeAfter']&&_0x400b77['end']['isAtStart'];}function Pt(_0x4daae7,_0x4b6a1c,_0x3fd618,_0x10cda2){const _0x24229b=_0x5234d6=>!_0x5234d6['item']['is']('$textProxy')&&!_0x10cda2['isObject'](_0x5234d6['item']),_0x279653=_0x4daae7['start']['getLastMatchingPosition'](_0x24229b),_0x849104=_0x4daae7['end']['getLastMatchingPosition'](_0x24229b,{'direction':'backward'});return(!_0x4daae7['start']['isEqual'](_0x279653)||!_0x4daae7['end']['isEqual'](_0x849104))&&(_0x279653['isBefore'](_0x849104)?_0x3fd618['updateMarker'](_0x4b6a1c,{'range':_0x3fd618['createRange'](_0x279653,_0x849104)}):_0x3fd618['removeMarker'](_0x4b6a1c),!0x0);}function Gt(_0x1daa8c){return _0x1c269b(_0x1daa8c);}function Lt(_0x30514b){const _0x20669d=_0x30514b['start']['nodeAfter'];return _0x20669d&&_0x20669d['is']('element');}function Jt(_0x4f7092,_0x305237){return null==_0x4f7092['end']['nodeBefore']&&_0x4f7092['end']['parent']==_0x4f7092['start']['nodeAfter']?Kt(_0x4f7092['start']['nodeAfter'],_0x305237):_0x4f7092;}function Kt(_0x5dcc53,_0x50646d){const _0x357045=_0x50646d['schema']['isObject'](_0x5dcc53)||_0x50646d['schema']['isSelectable'](_0x5dcc53);return _0x50646d['createRange'](_0x50646d['createPositionAt'](_0x5dcc53,'before'),_0x357045?_0x50646d['createPositionAfter'](_0x5dcc53):_0x50646d['createPositionAt'](_0x5dcc53,'end'));}function Ht(_0x25c9ce,_0x3d6b7b,_0x3d7e93,_0x4295dc){return!!qt(_0x25c9ce,_0x3d6b7b)&&_0x3d7e93['end']['isEqual'](_0x4295dc['start']);}function qt(_0x29a6c3,_0x14f630){if(!_0x29a6c3['_isDataLoaded']||!_0x14f630['_isDataLoaded'])return!0x1;const _0x34f231=new Set(Object['keys'](_0x29a6c3['attributes'])),_0x521205=new Set(Object['keys'](_0x14f630['attributes']));if(_0x34f231['delete']('groupId'),_0x521205['delete']('groupId'),0x0==_0x34f231['size']&&0x0==_0x521205['size'])return!0x0;if(_0x34f231['size']!=_0x521205['size'])return!0x1;const _0x3397b2={..._0x29a6c3['attributes']},_0x1e0a9b={..._0x14f630['attributes']};return delete _0x3397b2['groupId'],delete _0x1e0a9b['groupId'],JSON['stringify'](_0x3397b2)==JSON['stringify'](_0x1e0a9b);}function zt(_0xc1ea3e,_0x33b1ee){const _0x3bb657=Wt(_0xc1ea3e['attributes']),_0x5ba07e=Wt(_0x33b1ee);if(!_0xc1ea3e['_isDataLoaded'])return!0x1;for(const _0x6406e4 of Object['keys'](_0x5ba07e))if(!_0x17e1e9(_0x3bb657[_0x6406e4],_0x5ba07e[_0x6406e4]))return!0x1;return!0x0;}function Wt(_0x15f20e){const _0x25fc6b=Object['assign']({},_0x15f20e);return delete _0x25fc6b['skipNestingCheck'],delete _0x25fc6b['tablePasteChainId'],_0x25fc6b;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x26da1b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x8accac,_0x2882d2,_0x184157,_0x4524ff){super(),this['model']=_0x2882d2,this['view']=_0x184157,this['commentThreadController']=_0x4524ff,this['_editor']=_0x8accac,this['_acceptCommand']=_0x8accac['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x8accac['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x52590d,_0x2b91ef)=>_0x52590d||_0x2b91ef),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x55ea49=>_0x55ea49&&this['_editor']['model']['canEditAt'](_0x2882d2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x587ada=>_0x587ada&&this['_editor']['model']['canEditAt'](_0x2882d2['getRanges']())),this['_pendingAction']=null,_0x184157['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x184157,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x184157,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x184157,'change:isDirty',()=>{_0x184157['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 _0x28296b=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x28296b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5297f1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4af207,_0x243414,_0x226e13,_0x1e4d48){super(_0x4af207),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5eb931(_0x4af207,c(_0x4af207,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x243414['authoredAt']),this['bind']('authoredAt')['to'](_0x243414),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',_0x243414,'authoredAt',this,'descriptionParts',(_0x1cd80a,_0x2c34ee,_0x2b4945)=>{const _0x1080f6=_0x2b4945['map'](_0x52cdc7=>ls(_0x52cdc7['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1cd80a-0x1,_0x243414['author']['name'],_0x2c34ee?_0x1e4d48['formatDateTime'](_0x2c34ee):'',new DOMParser()['parseFromString'](_0x1080f6,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2e2014(),this['focusTracker']=new _0x3f3e84(),this['keystrokes']=new _0x21acad(),this['focusCycler']=new _0x197fc3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xef760d=>_0xef760d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x243414,this['_localUser']=_0x226e13,this['_config']=_0x1e4d48,_0x1e4d48['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x16eee3(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1ef34c}=this['_config'];this['commentsListView']=new _0x1ef34c(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',_0x3e4b94=>_0x3e4b94+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4abcf4,_0x104e84)=>_0x4abcf4||!!_0x104e84);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xdd191}=this['_config'],_0xc35378=new _0xdd191(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x453aa=_0xc35378['commentInputView'];return _0xc35378['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x453aa,'value',(_0x267724,_0x372200,_0x214dd2)=>!!_0x214dd2||_0x267724&&!_0x372200),_0x453aa['on']('submit',(_0x9dba32,_0x1b3d8a)=>{this['fire']('addComment',_0x1b3d8a),_0x453aa['editor']['setData']('');}),_0x453aa['on']('cancel',()=>this['focus']()),_0x453aa['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xc35378;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x56bd42,_0x474f14,_0x15b268,_0x265c2c){super(_0x56bd42,_0x474f14,_0x15b268,_0x265c2c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x290f2f=>_0x290f2f&&_0x290f2f[0x0]?_0x290f2f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3df544,_0x36d764)=>{let _0x5bc320='';for(const _0xe65c9f of _0x3df544)_0x5bc320+='<p>'+ls(_0xe65c9f['content'],_0xe65c9f['color'])+'</p>';return _0x36d764?_0x5bc320:ti(_0x5bc320,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x265c2c['SuggestionView'](_0x56bd42,_0x474f14,{'formatDateTime':_0x265c2c['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 _0x5a9290=this['bindTemplate'],_0x5e7de5=[this['suggestionView']];return this['commentsListView']&&_0x5e7de5['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5e7de5['push'](this['commentThreadInputView']),_0x5e7de5['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5a9290['if']('isActive','ck-suggestion-wrapper--active'),_0x5a9290['to']('type',_0x419daf=>'ck-suggestion-'+_0x419daf),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':_0x5a9290['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5e7de5};}['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 _0x5297f1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3726b9,_0x1d8a50,_0x3df107){super(_0x3726b9),this['_model']=_0x1d8a50,this['_config']=_0x3df107,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1d8a50),this['acceptButton']=this['_createButton'](c(_0x3726b9,'Accept\x20suggestion'),_0x8f20bd,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x3726b9,'Discard\x20suggestion'),_0x297710,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x25b38c(_0x3726b9,_0x1d8a50['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2e2014([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3f3e84(),this['keystrokes']=new _0x21acad(),this['focusCycler']=new _0x197fc3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3a10da=>_0x3a10da['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xbbeaac=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xbbeaac['innerHTML']=this['description'],this['on']('change:description',(_0x3d94dc,_0x384a6e,_0x3086a4)=>{_0xbbeaac['innerHTML']=_0x3086a4;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1a3b7d=this['bindTemplate'],_0x5cdaf1=[{'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':_0x1a3b7d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1a3b7d['to']('authoredAt',_0x1db1ae=>this['_config']['formatDateTime'](_0x1db1ae))}]}]},{'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']&&_0x5cdaf1['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':_0x5cdaf1}]};}['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'](_0x113f47,_0x49e8cf,_0x13242e,_0x498b18,_0x451a5b){const _0x5017a7=new _0xd3f9ac(this['locale']);return _0x5017a7['set']({'label':_0x113f47,'icon':_0x49e8cf,'tooltip':!0x0,'tooltipPosition':_0x451a5b}),_0x5017a7['extendTemplate']({'attributes':{'class':_0x13242e}}),_0x5017a7['on']('execute',()=>{this['fire'](_0x498b18,this['_model']['id']);}),_0x5017a7;}['_setupKeyboardNavigation'](){const _0x4fd74c=this['element'];this['keystrokes']['listenTo'](_0x4fd74c);for(const _0x2def7b of this['focusables'])this['focusTracker']['add'](_0x2def7b['element']),this['keystrokes']['listenTo'](_0x2def7b['element']);this['keystrokes']['set']('enter',(_0x428bba,_0xb8e7b9)=>{_0x4fd74c===_0x428bba['target']&&(this['focusCycler']['focusFirst'](),_0xb8e7b9());}),this['keystrokes']['set']('esc',(_0x79b2b6,_0x5bf632)=>{_0x4fd74c!==_0x79b2b6['target']&&(this['focus'](),_0x5bf632());});}}class d extends _0x53ae92{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xd79e0a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a4db1){super(_0x2a4db1),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4eea47=this['editor']['config'];_0x4eea47['define']('trackChanges.SuggestionThreadView',fe),_0x4eea47['define']('trackChanges.SuggestionView',we),_0x4eea47['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4eea47['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x66a836,_0x1f05cd){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2e01cd,_0x3b4253]of this['_handleControllerBuffer']){const _0x17f310=this['_suggestionToController']['has'](_0x2e01cd);_0x17f310||_0x3b4253?_0x17f310&&_0x3b4253&&this['_destroyController'](_0x2e01cd):this['_initializeController'](_0x2e01cd);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x66a836,_0x1f05cd);}['init'](){const _0x390075=this['editor'],_0x22bd80=_0x390075['plugins']['get']('TrackChangesEditing'),_0x5a6f9f=_0x390075['plugins']['get']('Annotations'),_0x877bc2=_0x390075['plugins']['get']('EditorAnnotations'),_0x1fa7c3=_0x390075['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x877bc2['addSourceCollector'](()=>{const _0x99fcd3=[];for(const [_0x207c39,_0x3697f2]of Array['from'](this['_suggestionToController'])){const _0x2084ca=_0x207c39['getAllAdjacentSuggestions'](),_0x26a821=[];for(const _0x16d4f8 of _0x2084ca){if(!_0x16d4f8['isInContent'])continue;if(_0x16d4f8['isMultiRange']){_0x26a821['push'](..._0x16d4f8['getRanges']());continue;}const _0x3ee623=_0x16d4f8['getFirstRange']();if(_0x26a821['length']>0x0){const _0x1c950a=_0x26a821[0x0]['getJoined'](_0x3ee623);if(_0x1c950a){_0x26a821[0x0]=_0x1c950a;continue;}}_0x26a821['push'](_0x3ee623);}_0x99fcd3['push']([_0x3697f2['view'],_0x26a821]);}return _0x99fcd3;}),this['listenTo'](_0x22bd80,'suggestionLoaded',(_0x23f7ac,_0x65b284)=>{this['listenTo'](_0x65b284,'change:previous',(_0x760b39,_0x4f0ae9,_0x2130e8,_0x4c99c6)=>{_0x65b284['isInContent']&&(null==_0x2130e8?(this['_updateController'](_0x4c99c6['head']),this['_handleSuggestionControllerDelayed'](_0x65b284,!0x1)):(this['_updateController'](_0x2130e8['head']),null==_0x4c99c6&&this['_handleSuggestionControllerDelayed'](_0x65b284,!0x0)));}),null!==_0x65b284['previous']?this['_updateController'](_0x65b284['head']):this['_handleSuggestionControllerDelayed'](_0x65b284,!0x1);}),this['listenTo'](_0x22bd80,'suggestionUnloaded',(_0x1d863e,_0x3f201c,_0x2e2fa2)=>{this['stopListening'](_0x3f201c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3f201c),this['_suggestionToController']['has'](_0x3f201c)&&this['_destroyController'](_0x3f201c),_0x2e2fa2&&this['_updateController'](_0x2e2fa2['head']);}),this['listenTo'](_0x22bd80,'suggestionChanged',(_0x112cfb,_0x1911bc)=>{this['_updateController'](_0x1911bc);}),this['listenTo'](_0x5a6f9f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1fa7c3,'addComment',(_0x350506,{threadId:_0x52d362,isFromAdapter:_0x24e9b4})=>{if(_0x24e9b4||!_0x22bd80['hasSuggestion'](_0x52d362))return;const _0x509f7d=_0x22bd80['getSuggestion'](_0x52d362);this['_suggestionToController']['get'](_0x509f7d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4b3d78=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x8d4eae;for(const _0x374c13 in _0x4b3d78){const _0x26965b=_0x374c13,_0x3f6421=_0x4b3d78[_0x26965b];if('trackChangesLicenseKeyValid'==_0x3f6421||'trackChangesLicenseKeyInvalid'==_0x3f6421||'trackChangesLicenseKeyExpired'==_0x3f6421||'trackChangesLicenseKeyDomainLimit'==_0x3f6421||'trackChangesLicenseKeyNotAllowed'==_0x3f6421||'trackChangesLicenseKeyEvaluationLimit'==_0x3f6421||'trackChangesLicenseKeyTrialLimit'==_0x3f6421||'trackChangesLicenseKeyUsageLimit'==_0x3f6421){delete _0x4b3d78[_0x26965b],_0x8d4eae=_0x3f6421,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x8d4eae&&_0x4b3d78['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x1d01d7=this['editor']['plugins']['get']('Annotations'),_0x5a81f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35ac71=Array['from'](_0x1d01d7['activeAnnotations'],_0x263c58=>_0x263c58['innerView'])['filter'](_0x2d4b62=>this['_viewToController']['has'](_0x2d4b62)),_0x144902=[];for(const _0x223bed of _0x35ac71){const _0x2d7291=this['_viewToController']['get'](_0x223bed)['model']['getAllAdjacentSuggestions']();_0x144902['push'](..._0x2d7291['reduce']((_0x28b752,_0x840384)=>[..._0x28b752,..._0x840384['getMarkerNames']()],[]));}_0x5a81f8['activeMarkers']=_0x144902;}['_addUIComponentsToFactory'](){const _0x1a9f5d=this['editor'],_0x35d612=_0x1a9f5d['locale'],_0x26423e=c(_0x35d612,'Track\x20changes'),_0x421147=new _0x3abf58([{'type':'switchbutton','model':new _0x2e500b({'withText':!0x0,'isToggleable':!0x0,'label':_0x26423e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2e500b({'withText':!0x0,'label':c(_0x35d612,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e500b({'withText':!0x0,'label':c(_0x35d612,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e500b({'withText':!0x0,'label':c(_0x35d612,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2e500b({'withText':!0x0,'label':c(_0x35d612,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1a9f5d['plugins']['has']('TrackChangesPreview')&&_0x421147['addMany']([{'type':'separator'},{'type':'button','model':new _0x2e500b({'withText':!0x0,'label':c(_0x35d612,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x438dd8 of _0x421147)if(ke(_0x438dd8)){const _0x47ac6b=_0x1a9f5d['commands']['get'](_0x438dd8['model']['commandName']);_0x438dd8['model']['bind']('isOn','isEnabled')['to'](_0x47ac6b,'value','isEnabled');}_0x1a9f5d['ui']['componentFactory']['add']('trackChanges',_0x1cf24f=>this['_createToolbarButton'](_0x1cf24f,_0x421147,_0x26423e)),_0x1a9f5d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x44afb5=>this['_createMenuBarMenu'](_0x44afb5,_0x421147,_0x26423e));}['_createToolbarButton'](_0xd2636,_0x36d68f,_0x344d68){const _0x296e00=_0xc838a8(_0xd2636,_0x206658),_0x3f32a1=this['editor']['commands']['get']('trackChanges');_0x296e00['buttonView']['set']({'tooltip':_0x344d68,'label':_0x344d68,'icon':_0x274568}),_0x296e00['buttonView']['bind']('isOn')['to'](_0x3f32a1,'value'),_0x296e00['buttonView']['on']('execute',()=>{_0x3f32a1['execute'](),this['editor']['editing']['view']['focus']();}),_0x185cd5(_0x296e00,_0x36d68f,{'role':'menu'});const _0x599938=[];for(const _0x176ddd of _0x36d68f)ke(_0x176ddd)&&_0x599938['push'](this['editor']['commands']['get'](_0x176ddd['model']['commandName']));const _0x45e15f=_0x296e00['buttonView'];return _0x45e15f['actionView']['unbind']('isEnabled'),_0x45e15f['arrowView']['unbind']('isEnabled'),_0x45e15f['actionView']['bind']('isEnabled')['to'](_0x3f32a1,'isEnabled'),_0x45e15f['arrowView']['bind']('isEnabled')['toMany'](_0x599938,'isEnabled',(..._0x159918)=>_0x159918['some'](_0x171c50=>_0x171c50)),_0x296e00['on']('execute',_0x53b212=>{this['editor']['execute'](_0x53b212['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x296e00;}['_createMenuBarMenu'](_0x35a977,_0x7f074a,_0x2d800a){const _0x5f0ab4=new _0x4e0aa7(_0x35a977),_0x437934=this['editor']['commands']['get']('trackChanges');_0x5f0ab4['buttonView']['set']({'label':_0x2d800a,'icon':_0x274568});const _0x433bc3=new _0x2170a6(_0x35a977);for(const _0x325a77 of _0x7f074a){if('separator'==_0x325a77['type']){_0x433bc3['items']['add'](new _0x1a819b(_0x35a977));continue;}const _0x4ec499=new _0x3d208e(_0x35a977,_0x5f0ab4),_0x4ca64d=new _0xbe4a96(_0x35a977),_0x245e61=_0x325a77['model'];_0x4ca64d['bind'](...Object['keys'](_0x245e61))['to'](_0x245e61),_0x4ca64d['delegate']('execute')['to'](_0x5f0ab4),_0x4ca64d['on']('execute',()=>{this['editor']['execute'](_0x245e61['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ec499['children']['add'](_0x4ca64d),_0x433bc3['items']['add'](_0x4ec499);}return _0x5f0ab4['bind']('isEnabled')['to'](_0x437934,'isEnabled'),_0x5f0ab4['panelView']['children']['add'](_0x433bc3),_0x5f0ab4;}['_initializeController'](_0x5b9218){const _0x10a66a=this['editor'],_0xbede38=_0x10a66a['config'],_0x47e9c7=_0x10a66a['plugins']['get']('Annotations'),_0x5eadbc=_0x10a66a['plugins']['get']('CommentsRepository'),_0x2b827f=_0x10a66a['plugins']['get']('EditorAnnotations'),_0x350790=_0x10a66a['plugins']['get'](_0xd79e0a)['me'],_0x3505cb=_0xbede38['get']('trackChanges')['SuggestionThreadView'],_0xc06f9=_0xbede38['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3eb983,CommentThreadInputView:_0x24b072}=_0x10a66a['plugins']['get']('CommentsUI');let _0x30c56f,_0x2a2cb3,_0x2ef6d3;this['_annotationViews']['has'](_0x5b9218['id'])?(_0x2a2cb3=this['_annotationViews']['get'](_0x5b9218['id']),_0x30c56f=_0x2a2cb3['mainView']):(_0x30c56f=new _0x3505cb(_0x10a66a['locale'],_0x5b9218,_0x350790,{'disableComments':this['_disableComments'],'editorConfig':{..._0xbede38['get']('comments.editorConfig'),'licenseKey':_0xbede38['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xbede38['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xbede38['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xbede38['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4e981b(_0xbede38['get']('locale')),'CommentView':_0xbede38['get']('comments')['CommentView'],'CommentsListView':_0x3eb983,'CommentThreadInputView':_0x24b072,'SuggestionView':_0xc06f9}),_0x30c56f['suggestionView']['acceptButton']['on']('execute',()=>{_0x10a66a['editing']['view']['focus']();}),_0x30c56f['suggestionView']['discardButton']['on']('execute',()=>{_0x10a66a['editing']['view']['focus']();}),_0x2a2cb3=_0x47e9c7['createAnnotationView'](this['editor']['locale'],_0x30c56f),_0x2a2cb3['bind']('isDirty')['to'](_0x30c56f,'isDirty'),_0x2a2cb3['bind']('length')['to'](_0x30c56f),_0x2a2cb3['bind']('type')['to'](_0x30c56f,'type',_0x24c9fd=>'suggestion-'+_0x24c9fd),_0x30c56f['on']('escape',()=>{_0x2ef6d3['fire']('escape');}),this['_annotationViews']['set'](_0x5b9218['id'],_0x2a2cb3));const _0x2935ed=_0x5eadbc['createCommentThreadController'](_0x5b9218['commentThread'],_0x30c56f),_0x5bcb59=new pe(_0x10a66a,_0x5b9218,_0x30c56f,_0x2935ed),_0x1f4ea7=_0x5b9218['getAllAdjacentSuggestions']()['filter'](_0x5df376=>_0x5df376['isInContent']);_0x30c56f['descriptionParts']=_0x10a66a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1f4ea7),this['_suggestionToController']['set'](_0x5b9218,_0x5bcb59),this['_viewToController']['set'](_0x30c56f,_0x5bcb59),_0x2ef6d3=_0x47e9c7['createAnnotation']({'view':_0x2a2cb3,'target':()=>{const _0x23548a=[],_0x39476d=_0x5b9218['getAllAdjacentSuggestions']()['filter'](_0x4d0948=>_0x4d0948['isInContent']);for(const _0x3a6f84 of _0x39476d)_0x23548a['push'](..._0x3a6f84['getMarkers']());return _0x472501(_0x10a66a['editing'],_0x23548a);},'type':()=>'suggestion-'+_0x5bcb59['view']['type']}),_0x5eadbc['_bindAnnotationToEditors'](_0x30c56f,_0x2ef6d3),_0x47e9c7['add'](_0x2ef6d3),_0x2b827f['registerAnnotation'](_0x2ef6d3);}['_destroyController'](_0x2b7271){const _0x338fde=this['editor']['plugins']['get']('CommentsRepository'),_0x56df67=this['editor']['plugins']['get']('Annotations'),_0x2cb806=this['_suggestionToController']['get'](_0x2b7271),_0x2e41e8=_0x2cb806['view'],_0x3e044e=_0x56df67['getByInnerView'](_0x2e41e8);_0x338fde['_unbindEditors'](_0x2e41e8),_0x3e044e&&_0x56df67['remove'](_0x3e044e),this['_suggestionToController']['delete'](_0x2b7271),this['_viewToController']['delete'](_0x2e41e8),_0x2cb806['destroy']();}['_updateController'](_0x29094b){if(!_0x29094b['isInContent']||!this['_suggestionToController']['has'](_0x29094b))return;const _0x3004e6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6c0187=this['_suggestionToController']['get'](_0x29094b),_0x59966f=_0x29094b['getAllAdjacentSuggestions']();_0x6c0187['view']['descriptionParts']=_0x3004e6['descriptionFactory']['getDescriptions'](_0x59966f);}['destroy'](){for(const _0x4013c6 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4013c6);for(const _0x4b1ad4 of this['_annotationViews']['values']())_0x4b1ad4['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5b06f8){return'model'in _0x5b06f8;}class k extends _0x53ae92{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x237319){this['editor']['plugins']['get'](p)['adapter']=_0x237319;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x15672d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x15672d);}['getSuggestions']({skipNotAttached:_0x265990=!0x1,toJSON:_0x4e0df7=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x265990,'toJSON':_0x4e0df7});}['getSuggestion'](_0x249971){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x249971);}}const w=['Pagination'];class T extends _0x53ae92{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x583a5d=this['editor'];if(_0x583a5d['config']['define']('trackChangesData.editorCreator',_0x3fae25=>{const _0x247de7=_0x583a5d['model']['document']['getRootNames']()['reduce']((_0x41cb1d,_0xcb2603)=>(_0x41cb1d[_0xcb2603]='',_0x41cb1d),{});return _0x583a5d['constructor']['create'](_0x247de7,_0x3fae25);}),'function'!=typeof _0x583a5d['config']['get']('trackChangesData')['editorCreator'])throw new _0x3d4351('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5427e3){return N(this['editor'],!0x0,_0x5427e3);}['getDataWithDiscardedSuggestions'](_0x253a32){return N(this['editor'],!0x1,_0x253a32);}}class D extends _0x53ae92{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3eda32){function _0x473e0c(_0x43ecc5){return _0x43ecc5['map'](_0x485581=>String['fromCharCode'](_0x485581))['join']('');}super(_0x3eda32),this['result']='end',_0x3eda32[_0x473e0c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x473e0c([0x76,0x69,0x65,0x77])][_0x473e0c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x473e0c([0x61,0x75,0x74,0x6f]),_0x3eda32[_0x473e0c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x473e0c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x473e0c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x473e0c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x473e0c([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(_0x2f0a04){return void 0x0!==_0x2f0a04['getRootsAttributes'];}async function N(_0x53f1e2,_0x4d6dc2,_0x45d964){const _0x16bff3=_0x4681f7(_0x53f1e2,w);_0x16bff3['plugins']['push'](p,D),_0x16bff3['rootsAttributes']=Fe(_0x53f1e2)?_0x53f1e2['getRootsAttributes']():void 0x0;const _0x443e34=document['createDocumentFragment'](),_0x5584e6=_0x53f1e2['config']['get']('trackChangesData')['editorCreator'],_0x1cd3d2=await _0x5584e6(_0x16bff3,()=>function(_0x11d662){const _0x238e3b=document['createElement']('div');return _0x11d662['appendChild'](_0x238e3b),_0x238e3b;}(_0x443e34));!function(_0x23cbc9,_0x957ed1){const _0x1833bc=_0x23cbc9['model']['document']['getRootNames']()['reduce']((_0x5f3742,_0x36bd66)=>(_0x5f3742[_0x36bd66]=_0x23cbc9['data']['get']({'rootName':_0x36bd66}),_0x5f3742),{}),_0x5c0bfa=_0x23cbc9['plugins']['get']('Users')['users']['map'](_0xdd0f49=>({'id':_0xdd0f49['id'],'name':_0xdd0f49['name']})),_0x49b385=_0x23cbc9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xc520a6=_0x23cbc9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1829bc=_0x957ed1['plugins']['get']('Users'),_0x11da87=_0x957ed1['plugins']['get']('TrackChangesEditing'),_0x2bcdc4=_0x957ed1['plugins']['get']('CommentsRepository');for(const _0x4a9bc5 of _0x2bcdc4['getCommentThreads']())_0x4a9bc5['remove']();for(const _0x5da4ed of _0x5c0bfa)_0x1829bc['getUser'](_0x5da4ed['id'])||_0x1829bc['addUser'](_0x5da4ed);_0x1829bc['me']||_0x1829bc['useAnonymousUser']();for(const _0x47d479 of _0xc520a6)_0x2bcdc4['addCommentThread'](_0x47d479);for(const _0xc3d409 of _0x49b385)_0x11da87['addSuggestionData'](_0xc3d409);_0x957ed1['data']['set'](_0x1833bc);}(_0x53f1e2,_0x1cd3d2),_0x1cd3d2['execute'](_0x4d6dc2?'acceptAllSuggestions':'discardAllSuggestions');const _0x3efc6b=Fe(_0x1cd3d2)?_0x1cd3d2['getFullData'](_0x45d964):_0x1cd3d2['data']['get'](_0x45d964);return await _0x1cd3d2['destroy'](),_0x3efc6b;}class Me extends _0x5297f1{['options'];constructor(_0x39ceab,_0xe9745c){super(_0x39ceab),this['options']=_0xe9745c,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'](_0x584347,_0x2c7bb3){if(!this['element'])return;const _0x1165c6=[];for(const [_0x23daf4,_0x54eb3b]of _0x584347){const _0x24e340=document['createElement']('div');_0x24e340['setAttribute']('data-ck-root-name',_0x23daf4),_0x24e340['className']=_0x54eb3b['classes']+'\x20ck-track-changes-preview__root-container',_0x24e340['innerHTML']=_0x54eb3b['content'],_0x1165c6['push'](_0x24e340);}_0x2c7bb3(this['element'],_0x1165c6),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x2699b4{constructor(_0x449d65){super(_0x449d65),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x406043=this['editor'],_0x2b2ddc=_0x406043['locale'],_0x5303ec=_0x406043['plugins']['get']('Dialog');let _0x3ce1d7;const _0x2d3cf3=function(_0x4ddfe6){const _0x388493={};if('editables'in _0x4ddfe6['ui']['view']){for(const [_0x26eb25,_0x594a14]of Object['entries'](_0x4ddfe6['ui']['view']['editables']))_0x388493[_0x26eb25]=_0x594a14['element'];}else _0x388493[_0x4ddfe6['model']['document']['getRootNames']()[0x0]]=_0x4ddfe6['ui']['view']['editable']['element'];return _0x388493;}(_0x406043),_0x3e650f=function(_0x2491d7){let _0x5943ec=0x0;for(const _0x519fd9 of Object['values'](_0x2491d7))_0x5943ec=Math['max'](_0x5943ec,_0x519fd9['getBoundingClientRect']()['width']);let _0x3ff59a=0x0;for(const _0x433ad6 of Object['values'](_0x2491d7))_0x3ff59a+=_0x433ad6['getBoundingClientRect']()['height'];const _0x327f05=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x7dfaa0=Math['min'](_0x3ff59a,_0x327f05);return{'width':_0x5943ec,'height':_0x7dfaa0};}(_0x2d3cf3);_0x5303ec['show']({'id':'finalContentPreview','title':c(_0x2b2ddc,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2b2ddc,{'dialogRects':_0x3e650f}),'onHide':()=>{_0x3ce1d7['detachFromDom']();},'onShow':()=>{_0x406043['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x25e5a6=>{const _0x44693e=this['_standarizeRootsData'](_0x25e5a6,_0x406043,_0x2d3cf3);_0x5303ec['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x44693e,_0x406043['config']['get']('trackChanges.preview.renderFunction'));}),_0x3ce1d7=new _0x5bf6bf(_0x2b2ddc,[_0x5303ec['view']]),_0x3ce1d7['attachToDom'](),_0x3ce1d7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x406043['once']('destroy',()=>{_0x3ce1d7['detachFromDom']();});const _0x958c0e=_0x5303ec['view']['headerView']['class'];_0x5303ec['view']['headerView']['class']=_0x958c0e?_0x958c0e+'\x20ck-reset_all':'ck-reset_all',_0x5303ec['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5303ec['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x30a4bf=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x278df0=_0x30a4bf['previewMode'],_0xf13a97={};if('$labels'===_0x278df0){for(const _0x4f8f9e of _0x30a4bf['getMergeFieldsIds']())_0xf13a97[_0x4f8f9e]=_0x30a4bf['getLabel'](_0x4f8f9e)||_0x4f8f9e;}else{const _0x43e29a='$defaultValues'===_0x278df0?_0x30a4bf['getDefaultValues']():_0x30a4bf['getDataSetValues'](_0x278df0,!0x0);for(const _0x5bbed3 of Object['entries'](_0x43e29a)){const [_0x19bb3f,_0x364ee5]=_0x5bbed3;_0xf13a97[_0x19bb3f]=null!==_0x364ee5?_0x364ee5:_0x30a4bf['getLabel'](_0x19bb3f)||_0x19bb3f;}}return{'mergeFieldsData':_0xf13a97};}['_standarizeRootsData'](_0x251f17,_0x20b998,_0x341a7b){let _0x1ffb62;if('string'==typeof _0x251f17){const _0x51cc45=_0x20b998['model']['document']['getRootNames']()[0x0];_0x1ffb62={[_0x51cc45]:_0x251f17};}else _0x1ffb62=_0x251f17;const _0x23e02a=this['_fixMediaEmbeds'](_0x1ffb62,_0x20b998),_0x42ed7b=function(_0x1f8032,_0x51b6b5){for(const [_0x37c171,_0x4f4ff9]of _0x1f8032)_0x4f4ff9['classes']=_0x51b6b5[_0x37c171]['classList']['value']['replace']('ck-focused','');return _0x1f8032;}(this['_sortRoots'](_0x20b998)['reduce']((_0xa760b7,_0x155a6d)=>(_0xa760b7['push']([_0x155a6d,{'content':_0x23e02a[_0x155a6d],'classes':''}]),_0xa760b7),[]),_0x341a7b);return _0x42ed7b;}['_fixMediaEmbeds'](_0x5f3fae,_0xc2e022){if(!_0xc2e022['plugins']['has']('MediaEmbedEditing'))return _0x5f3fae;const _0x15bda0=_0xc2e022['plugins']['get']('MediaEmbedEditing');for(const [_0x3d2bc2,_0x23e6f0]of Object['entries'](_0x5f3fae)){const _0x1db52c=document['createElement']('div');_0x1db52c['innerHTML']=_0x23e6f0,(_0x1db52c['querySelectorAll']('figure.media')['forEach'](_0x163f66=>{const _0x158f53=_0x163f66['querySelector']('oembed');if(_0x158f53){const _0x1c482f=_0x158f53['getAttribute']('url');if(_0x1c482f){const _0x55d2c0=_0x15bda0['registry']['getMediaViewElement'](new _0xc616a3(_0xc2e022['editing']['view']['document']),_0x1c482f,{'elementName':'','renderForEditingView':!0x0}),_0x3706ba=document['createElement']('div');_0x3706ba['classList']['add']('ck-media__wrapper'),_0x55d2c0['render'](_0x3706ba,_0xc2e022['editing']['view']['domConverter']),_0x158f53['replaceWith'](_0x3706ba);}}}),_0x5f3fae[_0x3d2bc2]=_0x1db52c['innerHTML']);}return _0x5f3fae;}['_sortRoots'](_0x15e8b7){if(!function(_0x4646c6){return void 0x0!==_0x4646c6['getRootsAttributes'];}(_0x15e8b7))return _0x15e8b7['model']['document']['getRootNames']();const _0x119ae0=[],_0x477704=new Map();for(const _0x4971c6 of _0x15e8b7['model']['document']['getRootNames']()){const _0x4b4f7f=_0x15e8b7['editing']['view']['getDomRoot'](_0x4971c6)['getClientRects']()['item'](0x0);_0x119ae0['push'](_0x4971c6),_0x477704['set'](_0x4971c6,_0x4b4f7f);}return _0x119ae0['sort']((_0x2421c9,_0x4c3275)=>{const _0x5ec352=_0x477704['get'](_0x2421c9),_0x8c5cc6=_0x477704['get'](_0x4c3275);return _0x5ec352['y']-_0x8c5cc6['y']||_0x5ec352['x']-_0x8c5cc6['x'];}),_0x119ae0;}}class te extends _0x53ae92{static get['requires'](){return[T,_0xc3148a];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x39970f){super(_0x39970f),_0x39970f['commands']['add']('previewFinalContent',new re(this['editor'])),_0x39970f['config']['define']('trackChanges.preview.renderFunction',(_0x441c4b,_0x1c6ad7)=>{for(const _0x25cac5 of _0x1c6ad7)_0x441c4b['appendChild'](_0x25cac5);});}}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};